:root {
    /* Base vinho escuro (dark) */
    --bg-body: #12040A;      /* vinho quase preto */
    --bg-section: #1A0A12;   /* vinho profundo */
    --clr-text: #f6f1f3;     /* off-white levemente rosado */
    --clr-muted: #c2a8b4;    /* muted com “vinho” */
    --clr-accent: #d6b24c;   /* ouro quente */
}

html {
    scroll-behavior: smooth;
}

section[id] {
    padding-top: 120px;
}

@media (max-width: 576px) {
    section[id] {
        padding-top: 140px;
    }
}

body {
    background-color: var(--bg-body);
    color: var(--clr-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", "Times New Roman", serif;
}

/* ===== HEADER (LOGO + MENU) ===== */

.site-header {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at top,
            rgba(255,255,255,0.05) 0,
            var(--bg-section) 42%,
            var(--bg-body) 100%);
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: -50%;
    background-image:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.045) 0, transparent 52%),
        radial-gradient(circle at 82% 0%, rgba(214, 178, 76, 0.10) 0, transparent 58%);
    opacity: .75;
    pointer-events: none;
    z-index: 0;
}

.navbar {
    padding-top: 1.6rem;
    padding-bottom: 1.3rem;
    backdrop-filter: blur(14px);

    /* preto-vinho translúcido */
    background-color: rgba(12, 2, 6, 0.78) !important;

    /* borda com vinho */
    border-bottom: 1px solid rgba(210, 160, 182, 0.22);
    z-index: 10;
}

.navbar-brand {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.brand-logo {
    height: 60px;
    width: auto;
    padding: 0.2rem 0.6rem;
    border: 3px solid var(--clr-accent);
    border-radius: 999px;
    background-color: transparent;
    transform: translateY(-3px);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text-title {
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.brand-text-sub {
    font-size: .7rem;
    color: var(--clr-muted);
}

.navbar-nav .nav-link {
    position: relative;
    font-family: "Playfair Display", "Times New Roman", serif;
    padding-inline: 0.9rem;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--clr-accent), transparent);
    transform: translateX(27px);
    transition: width .22s ease-out;
}

@media (max-width: 576px) {
    .navbar-nav .nav-link::after {
        left: 41%;
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-link.active::after,
    .navbar-nav .nav-link:hover::after {
        width: 60%;
    }
}

.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav.is-hovering .nav-link.active::after {
    width: 0;
}

.language-switch .lang-link {
    position: relative;
    top: -2px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    color: #fff;
    letter-spacing: .5px;
    font-size: .75rem;
    text-transform: uppercase;
    padding: 0px 6px 2px 6px;
    text-decoration: none;
}

body.nav-scrolling .navbar-nav .nav-link::after {
    width: 0;
    transition: none;
}

body.nav-scrolling .navbar-nav .nav-link.nav-clicked::after {
    width: 60%;
}

/* ===== NAVBAR - AJUSTES MOBILE ===== */
@media (max-width: 991.98px) {

    .navbar-collapse {
        background: rgba(10, 1, 5, 0.95);
        backdrop-filter: blur(14px);
        padding: 0.75rem 1rem 1rem;
        margin-top: 0.75rem;
        border-radius: 0.75rem;

        border: 1px solid rgba(210, 160, 182, 0.16);
    }

    .navbar-nav .nav-link {
        padding-block: 0.5rem;
    }

    .navbar-brand {
        position: relative;
        z-index: 11;
    }
}

/* ===== SLIDER FULLWIDTH ===== */

.main-slider {
    position: relative;
    margin-top: 56px;
}

.main-slider .carousel-inner {
    height: 680px;
}

.main-slider .carousel-item {
    position: relative;
    height: 100%;
}

.carousel-caption {
    bottom: 40%;
}

@media(max-width: 576px) {
    .carousel-caption {
        bottom: 0;
        left: 0;
        right: 0;
    }
}

.slider-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.78);
}

/* mantém o overlay dark, mas puxa pro vinho */
.slider-bg-1 {
    background-image:
        linear-gradient(to bottom, rgba(18, 4, 10, 0.08), rgba(18, 4, 10, 0.82)),
        url("../images/slide1.jpg");
}

.slider-bg-2 {
    background-image:
        linear-gradient(to bottom, rgba(18, 4, 10, 0.08), rgba(18, 4, 10, 0.82)),
        url("../images/slide2.jpg");
}

.slider-bg-3 {
    background-image:
        linear-gradient(to bottom, rgba(18, 4, 10, 0.08), rgba(18, 4, 10, 0.82)),
        url("../images/slide3.jpg");
}

.slider-caption {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 680px;
    z-index: 2;
}

.slider-caption1 {
    position: absolute;
    left: 70%;
    top: 55%;
    transform: translate(-50%, -50%);
    max-width: 680px;
    z-index: 2;
}

.slider-caption2 {
    position: absolute;
    left: 70%;
    top: 55%;
    transform: translate(-50%, -50%);
    max-width: 680px;
    z-index: 2;
}

.slider-caption3 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 680px;
    z-index: 2;
}

.slider-eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: .4rem;
}

.slider-title {
    font-size: clamp(1.6rem, 3vw, 3.1rem);
    margin-bottom: .5rem;
    text-shadow: 0 14px 30px rgba(0, 0, 0, 0.50);
}

.slider-text {
    color: rgba(246, 241, 243, 0.86);
    text-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.main-slider .carousel-control-prev-icon,
.main-slider .carousel-control-next-icon {
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.85));
}

.main-slider .carousel-control-prev,
.main-slider .carousel-control-next {
    width: 7%;
}

@media (max-width: 767.98px) {
    .main-slider .carousel-inner {
        height: 60vh;
    }

    .slider-caption,
    .slider-caption1,
    .slider-caption2,
    .slider-caption3 {
        top: 50%;
        left: 50%;
        bottom: 12%;
        transform: translate(-50%, 0);
        padding-inline: 1.5rem;
    }

    .slider-title {
        font-size: 1.4rem;
    }
}

/* ===== HERO / HEADER DE CONTEÚDO ===== */

.hero-section {
    position: relative;
    z-index: 1;
    padding: 7.5rem 0 5.5rem;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-subtitle {
    color: var(--clr-muted);
    max-width: 38rem;
}

.accent-line {
    width: 70px;
    height: 2px;
    background: linear-gradient(to right, var(--clr-accent), transparent);
    margin: 1.2rem 0 2.2rem;
}

.badge-tag {
    background-color: rgba(214, 178, 76, 0.10);
    border: 1px solid rgba(214, 178, 76, 0.45);
    color: var(--clr-accent);
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.2rem;
    margin-top: 1rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--clr-muted);
}

.hero-meta span::before {
    content: "•";
    margin-right: .35rem;
    color: var(--clr-accent);
}

.hero-media {
    position: relative;
}

.hero-media .ratio {
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.75);
}

.hero-media-caption {
    font-size: .7rem;
    margin-top: .5rem;
}

/* ===== SEÇÕES GERAIS ===== */

section {
    padding: 5rem 0;
    background:
        radial-gradient(circle at top,
            rgba(255,255,255,0.03) 0,
            var(--bg-section) 42%,
            var(--bg-body) 100%);
}

.section-title-wrap {
    margin-bottom: 2.5rem;
}

.section-eyebrow {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

.section-title {
    margin: .3rem 0 0;
}

.section-title + .section-subtitle {
    margin-top: .6rem;
    color: var(--clr-muted);
    max-width: 34rem;
}

/* ===== CARDS ===== */

.card-dark {
    color: var(--clr-text);

    /* vinho profundo */
    background: radial-gradient(circle at top left,
        rgba(255, 255, 255, 0.06) 0,
        rgba(50, 12, 24, 0.92) 45%,
        rgba(18, 4, 10, 1) 100%);

    border: 1px solid rgba(210, 160, 182, 0.22);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.card-dark .card-body {
    position: relative;
    z-index: 1;
}

.card-dark .card-title {
    color: var(--clr-accent);
}

.card-dark .text-muted {
    color: rgba(246, 241, 243, 0.78);
}

.card-dark {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.72);
    border-color: rgba(214, 178, 76, 0.55);
}

/* ===== TIMELINE ===== */
#timeline {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top,
            rgba(255,255,255,0.03) 0,
            var(--bg-section) 42%,
            var(--bg-body) 100%);
}

#timeline .timeline {
    position: relative;
    padding: 1rem 0;
    max-width: 620px;
}

#timeline .timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2.3rem;
}

#timeline .timeline-item:last-child {
    margin-bottom: 0;
}

#timeline .timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(214, 178, 76, 0.85),
            rgba(214, 178, 76, 0.24));
}

.timeline-marker {
    position: absolute;
    left: 7px;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--clr-accent);
    background: var(--clr-accent);
    box-shadow: 0 0 12px rgba(214, 178, 76, 0.55);
}

@media (max-width: 574px) {
    .timeline-marker {
        left: 1px;
    }
}

.timeline-content {
    color: var(--clr-text);
    font-size: 0.88rem;
}

.timeline-content h4 {
    font-family: "Playfair Display", "Times New Roman", serif;
    color: var(--clr-accent);
    margin-bottom: 0.15rem;
    letter-spacing: .04em;
}

.timeline-content p {
    margin: 0;
    opacity: .90;
}

.timeline-context {
    padding: 1.5rem 1.7rem;
    border-radius: 1.1rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.timeline-context-eyebrow {
    letter-spacing: .16em;
    color: var(--clr-muted);
    opacity: .9;
    margin-bottom: .35rem;
}

@media (max-width: 575.98px) {
    #timeline .timeline {
        padding-left: 0.4rem;
    }
}

.small, small {
    font-size: .85rem;
}

/* ===== FOOTER ===== */

footer {
    font-family: "Playfair Display", "Times New Roman", serif;
    color: var(--clr-text);
    border-top: 1px solid rgba(210, 160, 182, 0.18);
    background-color: rgba(12, 2, 6, 1);
}

@media (max-width: 574px) {
    footer div {
        flex-direction: column;
    }
}

/* ===== TEXTOS MUTED ===== */

.text-muted {
    color: rgba(246, 241, 243, 0.78) !important;
    opacity: .78;
}

/* ===== BOTÕES ===== */

.btn-outline-light {
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 999px;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-width: 1px;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: var(--clr-accent);
    color: rgba(18, 4, 10, 1);
    border-color: var(--clr-accent);
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 6.5rem;
    }

    .hero-title {
        letter-spacing: 0.08em;
    }
}

.dev {
    position: absolute;
    right: 15px;
}

.dev img {
    position: relative;
    top: -1px;
}

@media (max-width: 574px) {
    .dev {
        position: relative;
    }
}

.dev,
.dev a {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 11px;
    color: var(--clr-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PLAYER DE VÍDEO ===== */

.custom-video-player {
    position: relative;

    /* vinho */
    background: radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.06) 0,
            rgba(50, 12, 24, 0.92) 45%,
            rgba(18, 4, 10, 1) 100%);

    border-radius: 1.4rem;
    border: 1px solid rgba(210, 160, 182, 0.26);
    overflow: hidden;
    padding: 0.75rem 0.75rem 0.55rem;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.custom-video-player .video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;

    /* fundo vinho escuro */
    background-color: rgba(18, 4, 10, 1);
}

.custom-video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.custom-video-player.is-loading video {
    filter: blur(8px) brightness(0.7);
    transform: scale(1.03);
}

.video-loading-tag {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(214, 178, 76, 0.55);

    /* tag com vinho translúcido */
    background-color: rgba(18, 4, 10, 0.86);

    color: var(--clr-accent);
    font-size: 0.65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.custom-video-player.is-loading .video-loading-tag {
    opacity: 1;
    transform: translateY(0);
}

.video-overlay-toggle {
    position: absolute;
    inset: 0;
    border: none;
    background: radial-gradient(circle at center,
            rgba(0, 0, 0, 0.25) 0,
            transparent 55%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, opacity 0.25s ease;
}

.video-overlay-toggle:hover {
    background: radial-gradient(circle at center,
            rgba(0, 0, 0, 0.35) 0,
            transparent 60%);
}

.overlay-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 2px solid rgba(214, 178, 76, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--clr-accent);

    /* círculo do play com vinho */
    background: radial-gradient(circle at top,
            rgba(50, 12, 24, 1) 0,
            rgba(50, 12, 24, 0.82) 50%,
            rgba(0, 0, 0, 0.92) 100%);

    box-shadow: 0 0 25px rgba(214, 178, 76, 0.55);
    transition: transform 0.18s ease;
}

.video-overlay-toggle:hover .overlay-icon {
    transform: scale(1.04);
}

.overlay-icon-pause {
    display: none;
}

.custom-video-player.is-playing .overlay-icon-play {
    display: none;
}

.custom-video-player.is-playing .overlay-icon-pause {
    display: inline-flex;
}

.custom-video-player.is-playing .video-overlay-toggle {
    opacity: 0;
    pointer-events: none;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-top: 0.4rem;
}

.video-progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

.video-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;

    /* barra com vinho */
    background: rgba(18, 4, 10, 0.90);

    overflow: hidden;
    cursor: pointer;
}

.video-progress-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(to right,
            var(--clr-accent),
            rgba(214, 178, 76, 0.16));
    transition: width 0.08s linear;
}

.video-control-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(214, 178, 76, 0.7);

    /* botão com vinho */
    background: radial-gradient(circle at top,
            rgba(50, 12, 24, 1) 0,
            rgba(50, 12, 24, 0.88) 45%,
            rgba(0, 0, 0, 1) 100%);

    color: var(--clr-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(214, 178, 76, 0.35);
    transition:
        background 0.18s ease,
        transform 0.12s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.video-control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(214, 178, 76, 0.6);
    border-color: rgba(250, 204, 21, 0.95);
}

.volume-icon {
    display: none;
}

.custom-video-player:not(.is-muted) .volume-on {
    font-size: 1rem;
    display: inline;
}

.custom-video-player.is-muted .volume-off {
    font-size: 1rem;
    display: inline;
}

.fullscreen-icon {
    font-size: 0.8rem;
    display: none;
}

.custom-video-player:not(.is-fullscreen) .fullscreen-enter {
    display: inline;
}

.custom-video-player.is-fullscreen .fullscreen-exit {
    display: inline;
}

.custom-video-player.is-fullscreen {
    border-radius: 0;
    border-color: rgba(214, 178, 76, 0.9);
}

.video-time {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    font-size: 0.72rem;
    color: var(--clr-muted);
    min-width: 72px;
    justify-content: flex-end;
}

/* ===== VARIAÇÃO COMPACTA (cards) ===== */

.custom-video-player.compact {
    padding: 0.6rem 0.6rem 0.45rem;
    border-radius: 1rem;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.7);
}

.custom-video-player.compact .overlay-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}

.custom-video-player.compact .video-controls {
    gap: 0.45rem;
    padding-top: 0.35rem;
}

.custom-video-player.compact .video-progress-bar {
    height: 3px;
}

.custom-video-player.compact .video-control-btn {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    box-shadow: 0 0 10px rgba(214, 178, 76, 0.25);
}

.custom-video-player.compact .video-time {
    font-size: 0.68rem;
}

.video-sources {
    font-size: 0.7rem;
    opacity: 0.65;
}

@media (max-width: 575.98px) {
    .video-time {
        font-size: 0.65rem;
        min-width: 60px;
    }
}
