/* ═══════════════════════════════════════════════════════════
   Home — Styles (faithful to Home.dc.html design source)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: clamp(560px, 88vh, 840px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--wine-950);
}

.hero-bg {
    position: absolute;
    inset: -14% 0 0 0;
    z-index: 0;
}

.hero-bg-inner {
    position: absolute;
    inset: 0;
    animation: pmken 26s ease-in-out infinite alternate;
    transform-origin: 62% 42%;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desativa Ken Burns quando há vídeo */
.hero-bg.has-video .hero-bg-inner {
    animation: none;
}

/* Hero gradient overlays */
.hero-overlay-lr {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(26,7,15,0.9) 0%, rgba(26,7,15,0.72) 40%, rgba(26,7,15,0.34) 78%, rgba(26,7,15,0.2) 100%);
    pointer-events: none;
}

.hero-overlay-bt {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(26,7,15,0.5) 0%, rgba(26,7,15,0) 42%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: clamp(88px, 13vh, 148px) 24px;
    pointer-events: none;
}

.hero-content-inner {
    max-width: 720px;
}

.hero-badge {
    animation: pmheroin 0.7s var(--ease-out) both;
}

.hero h1 {
    margin: 22px 0 0;
    font-family: var(--font-serif-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.9rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: var(--cream-050);
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(20, 6, 13, 0.4);
    animation: pmheroin 0.8s var(--ease-out) 0.12s both;
}

.hero h1 .accent {
    color: var(--gold-400);
    font-style: italic;
    font-weight: 500;
}

.hero-subtitle {
    margin: 24px 0 0;
    font: var(--f-lead);
    font-size: clamp(1.08rem, 2.2vw, 1.4rem);
    line-height: 1.55;
    color: var(--wine-200);
    max-width: 600px;
    text-wrap: pretty;
    animation: pmheroin 0.8s var(--ease-out) 0.26s both;
}

.hero-ctas {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    pointer-events: auto;
    animation: pmheroin 0.8s var(--ease-out) 0.4s both;
}

.hero-scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: pmheroin 0.8s var(--ease-out) 0.9s both;
}

.hero-scroll-label {
    font: 600 0.65rem/1 var(--font-sans);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(251, 247, 236, 0.55);
}

.hero-scroll-line {
    position: relative;
    width: 1px;
    height: 44px;
    background: rgba(251, 247, 236, 0.22);
    overflow: hidden;
    display: block;
}

.hero-scroll-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 14px;
    background: var(--gold-400);
    animation: pmscrolldot 2.2s ease-in-out infinite;
    display: block;
}

/* ── Âncora Emocional ─────────────────────────────────────── */

.ancora {
    background: var(--surface-card-alt);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

/* Desktop layout */
.ancora-desktop {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(72px, 9vw, 128px) 24px;
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(48px, 7vw, 110px);
    align-items: center;
}

.ancora-texto {
    margin: 0;
    font-family: var(--font-serif-display);
    font-weight: 500;
    font-size: clamp(1.275rem, 2.175vw, 1.95rem);
    line-height: 1.38;
    text-wrap: pretty;
}

.ancora-texto span {
    color: #C9A4B6;
    transition: color 200ms linear;
}

.ancora-right {
    border-left: 1px solid var(--border-subtle);
    padding-left: clamp(36px, 4vw, 64px);
}

.ancora-triade {
    display: flex;
    width: clamp(260px, 26vw, 380px);
}

.ancora-triade img {
    position: relative;
    width: 33.333%;
    height: auto;
    opacity: 0;
    transform: translateX(-24px);
    transition: transform 920ms cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 640ms ease;
    will-change: transform, opacity;
}

.ancora-triade img:nth-child(1) { z-index: 3; }
.ancora-triade img:nth-child(2) { z-index: 2; transform: translateX(-100%); }
.ancora-triade img:nth-child(3) { z-index: 1; transform: translateX(-100%); }

.ancora-triade.is-visible img {
    opacity: 1;
    transform: translateX(0);
}

.ancora-triade.is-visible img:nth-child(2) { transition-delay: 340ms; }
.ancora-triade.is-visible img:nth-child(3) { transition-delay: 680ms; }

.ancora-line {
    margin: 30px 0 0;
    width: 56px;
    height: 1.5px;
    background: var(--gold-500);
    transform-origin: left;
}

.ancora-quote {
    margin: 22px 0 0;
    max-width: 30ch;
    font-style: italic;
    font-weight: 400;
    font-family: var(--font-serif-display);
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.55;
    color: var(--gold-700);
    text-wrap: pretty;
}

/* Mobile layout */
.ancora-mobile {
    display: none;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: clamp(72px, 10vw, 132px) 24px;
    position: relative;
    text-align: center;
}

.ancora-mobile .ancora-triade {
    width: clamp(220px, 56vw, 300px);
    margin: 0 auto;
}

.ancora-mobile .ancora-texto {
    margin: 36px auto 0;
    font-size: clamp(1.1625rem, 4.5vw, 1.5rem);
    line-height: 1.42;
    text-wrap: balance;
}

.ancora-mobile .ancora-line {
    margin: 32px auto 0;
}

.ancora-mobile .ancora-quote {
    margin: 22px auto 0;
    max-width: 42ch;
    font-size: clamp(1.15rem, 5vw, 1.45rem);
    line-height: 1.5;
    text-wrap: balance;
}

@media (max-width: 767px) {
    .ancora-desktop { display: none; }
    .ancora-mobile { display: block; }
}

/* ── Termômetro de Sentimentos ────────────────────────────── */

.termometro {
    position: relative;
    overflow: hidden;
    background: var(--wine-950);
}

.termometro::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/pattern-wine.png');
    background-size: 680px auto;
    background-repeat: repeat;
    opacity: 0.1;
    pointer-events: none;
}

.termometro::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 160px 40px var(--wine-950);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.termo-inner {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(64px, 9vw, 120px) 24px;
    text-align: center;
}

.termo-header .eyebrow {
    color: var(--gold-400);
}

.termo-header h2 {
    margin: 14px auto 0;
    max-width: 720px;
    font-family: var(--font-serif-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.1;
    color: var(--cream-050);
    text-wrap: balance;
}

.termo-header h2 .accent {
    color: var(--gold-400);
    font-style: italic;
    font-weight: 500;
}

/* Mode choice buttons */
.termo-choices {
    margin: 26px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 760px;
}

.termo-choice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 999px;
    font: 500 1rem/1.2 var(--font-sans);
    cursor: pointer;
    border: 1.5px solid rgba(251, 247, 236, 0.45);
    background: rgba(251, 247, 236, 0.06);
    color: var(--cream-050);
    box-shadow: none;
    transition: background var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.termo-choice-btn:hover {
    background: rgba(251, 247, 236, 0.15);
    border-color: var(--cream-050);
}

.termo-choice-btn.is-active {
    background: var(--cream-050);
    color: var(--wine-950);
    border: 1.5px solid var(--cream-050);
    box-shadow: 0 12px 30px rgba(10, 2, 6, 0.35);
}

/* Desktop stage (orbital) */
.termo-stage {
    position: relative;
    width: 900px;
    max-width: 100%;
    height: 600px;
    margin: 30px auto 0;
}

.termo-stage-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 480px;
    height: 480px;
    max-width: 90%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(203,164,63,0.15) 0%, rgba(203,164,63,0) 62%);
    animation: pmpulse 4.8s ease-in-out infinite alternate;
    pointer-events: none;
}

.termo-casulo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s var(--ease-out);
    z-index: 1;
    pointer-events: none;
}

.termo-casulo img {
    width: 340px;
    height: auto;
    display: block;
    animation: pmbob 6.5s var(--ease-standard) infinite;
}

/* Pills */
.termo-pills {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.termo-pill-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.22);
    pointer-events: none;
    transition: transform 0.62s cubic-bezier(0.34, 1.42, 0.5, 1),
                opacity 0.44s ease;
}

.termo-pill-wrap.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.termo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border-radius: 999px;
    font: 500 0.875rem/1.1 var(--font-sans);
    cursor: pointer;
    white-space: nowrap;
    background: rgba(251, 247, 236, 0.07);
    color: var(--cream-050);
    border: 1px solid rgba(251, 247, 236, 0.34);
    box-shadow: none;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.termo-pill:hover {
    background: var(--gold-400);
    color: var(--wine-950);
    border-color: var(--gold-400);
}

.termo-pill.is-selected {
    background: var(--gold-500);
    color: var(--wine-950);
    border: 1px solid var(--gold-500);
    box-shadow: 0 10px 26px rgba(10, 2, 6, 0.35);
}

/* Mobile pills: flex wrap */
.termo-mobile-pills {
    margin: 24px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 480px;
}

.termo-mobile-pills .termo-pill {
    min-height: 44px;
}

.termo-mobile-casulo {
    width: 208px;
    height: auto;
    display: block;
    animation: pmfloat2 6.5s var(--ease-standard) infinite;
    position: relative;
}

.termo-mobile-glow {
    position: absolute;
    left: 50%;
    top: 104px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(203,164,63,0.14) 0%, rgba(203,164,63,0) 62%);
    animation: pmpulse 4.8s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Support text */
.termo-support {
    margin: 22px auto 0;
    max-width: var(--container-narrow);
}

.termo-support p {
    margin: 0;
    font: var(--f-body-l);
    font-family: var(--font-sans);
    color: var(--wine-200);
}

.termo-cta {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .termo-stage {
        width: 660px;
        height: 470px;
    }
    .termo-casulo img {
        width: 250px;
    }
}

@media (max-width: 767px) {
    .termo-stage {
        display: none;
    }
}

/* ── Sentimento Modal ─────────────────────────────────────── */

.sentimento-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 6, 13, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sentimento-modal.is-open {
    display: flex;
    animation: pmfade 220ms ease;
}

.sentimento-modal-content {
    position: relative;
    width: 100%;
    max-width: 860px;
    overflow: hidden;
    background: rgba(43, 11, 27, 0.55);
    border: 1px solid rgba(251, 247, 236, 0.16);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    border-radius: 28px;
    box-shadow: 0 40px 90px rgba(10, 2, 6, 0.55);
    padding: clamp(36px, 6vw, 64px);
    text-align: left;
    animation: pmzoom 380ms var(--ease-out);
}

.sentimento-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(251, 247, 236, 0.2);
    border-radius: var(--radius-pill);
    cursor: pointer;
    color: var(--cream-050);
    font: 300 24px/1 var(--font-sans);
    transition: background var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard);
}

.sentimento-modal-close:hover {
    background: rgba(251, 247, 236, 0.14);
    border-color: rgba(251, 247, 236, 0.55);
}

.sentimento-modal .eyebrow {
    color: var(--gold-400);
}

.sentimento-modal-header {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.sentimento-modal-casulo {
    width: 58px;
    height: auto;
    flex: none;
    animation: pmdive 560ms var(--ease-out);
}

.sentimento-modal-nome {
    margin: 0;
    font-family: var(--font-serif-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5.4vw, 3.5rem);
    line-height: 1.02;
    color: var(--cream-050);
    text-wrap: balance;
}

.sentimento-modal-line {
    flex: 1;
    min-width: 40px;
    height: 1px;
    background: linear-gradient(90deg, rgba(203,164,63,0.65), rgba(203,164,63,0));
}

.sentimento-modal-texto {
    margin: 26px 0 0;
    max-width: 60ch;
    font: var(--f-body-l);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: var(--wine-200);
    text-wrap: pretty;
}

.sentimento-modal-actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.sentimento-modal-attrib {
    font: var(--f-small);
    font-family: var(--font-sans);
    color: rgba(251, 247, 236, 0.55);
}

.sentimento-modal-bg {
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 360px;
    opacity: 0.12;
    pointer-events: none;
}

/* ── Abordagem ────────────────────────────────────────────── */

.abordagem {
    background: var(--surface-card-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.abordagem-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(64px, 9vw, 120px) 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.abordagem-text .eyebrow {
    color: var(--gold-700);
}

.abordagem-text h2 {
    margin: 14px 0 0;
    font-family: var(--font-serif-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.1;
    color: var(--wine-900);
    text-wrap: balance;
}

.abordagem-text h2 .accent {
    color: var(--gold-700);
    font-style: italic;
    font-weight: 500;
}

.abordagem-text .decor-line {
    margin-top: 22px;
}

.abordagem-text p {
    margin-top: 24px;
    font: var(--f-body-l);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.abordagem-text p + p {
    margin-top: 20px;
}

.abordagem-text .btn {
    margin-top: 32px;
}

.abordagem-img {
    position: relative;
    width: min(100%, 448px);
    margin: 0 auto;
}

.abordagem-img-frame {
    position: absolute;
    inset: 20px -18px -18px 20px;
    border: 1px solid var(--gold-500);
    border-radius: 28px;
    opacity: 0.5;
    pointer-events: none;
}

.abordagem-img-clip {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.abordagem-img-clip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Blog Cut ─────────────────────────────────────────────── */

.blog-cut {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(64px, 9vw, 120px) 24px;
}

.blog-cut-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.blog-cut-header-text {
    max-width: 620px;
}

.blog-cut-header h2 {
    margin: 0;
    font-family: var(--font-serif-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.1;
    color: var(--wine-900);
}

.blog-cut-header .decor-line {
    margin-top: 18px;
}

.blog-cut-header p {
    margin: 16px 0 0;
    font: var(--f-lead);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    text-wrap: pretty;
}

.blog-cut-grid {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Blog cards (from design source) */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 150ms var(--ease-out),
                transform 150ms var(--ease-out);
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.blog-card-img {
    aspect-ratio: 16/10;
    background: var(--wine-050);
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 28px 30px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-tag {
    display: inline-block;
    font: var(--f-caption);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--gold-700);
}

.blog-card-body h3 {
    margin: 14px 0 0;
    font-family: var(--font-serif-display);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.2;
    color: var(--wine-900);
}

.blog-card-body p {
    margin: 12px 0 0;
    font: var(--f-body);
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.blog-card-link {
    margin-top: auto;
    padding-top: 20px;
    font: 600 0.875rem/1 var(--font-sans);
    color: var(--gold-700);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.blog-card-link:hover {
    color: var(--gold-700);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 767px) {
    .hero-content-inner {
        text-align: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-inner {
        animation: none;
    }
    .hero-scroll-dot {
        animation: none;
    }
    .termo-casulo img {
        animation: none;
    }
    .termo-mobile-casulo {
        animation: none;
    }
    .termo-stage-glow {
        animation: none;
    }
}
