/* ==========================================================================
   EcoMadeira - Home (Landing Page)

   Design 100% fiel ao Figma (frame "page", 1920x7943).
   Medidas fluidas calculadas em vw/cqw com clamp() para escala proporcional.
   
   SumÃ¡rio das SeÃ§Ãµes:
   1. Estrutura Geral & Canvas
   2. Hero (Banner Principal & CTA)
   3. Planilha (ApresentaÃ§Ã£o & VÃ­deo Interativo)
   4. Wave Divider (TransiÃ§Ã£o OrgÃ¢nica)
   5. Funcionalidades (Cards Interativos & AlternÃ¢ncia Mobile)
   6. Passo a Passo & Resultados (Fluxo de Uso & Pranchas TÃ©cnicas)
   7. Nossos Planos (Tabela de Planos Integrada)
   8. Nossa Equipe (Cards Interativos, Timer & Sanfona Mobile)
   9. Meios de Contato (InformaÃ§Ãµes & FormulÃ¡rio de Envio)
   ========================================================================== */

/* ==========================================================================
   1. ESTRUTURA GERAL & CANVAS
   ========================================================================== */
.home-canvas {
    width: 100%;
    overflow-x: clip;
}

.home-canvas section[id] {
    scroll-margin-top: 0;
}


/* ==========================================================================
   2. HERO (Padronizado conforme Treinamentos / Figma 0:2965)
   ========================================================================== */
.hero-wrapper {
    position: relative;
    width: min(calc(100% - 32px), 1880px);
    margin: 18px auto 0;
    z-index: 1;
}

.hero {
    position: relative;
    width: 100%;
    height: clamp(480px, 52vw, 860px);
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(60px, 8vw, 120px) clamp(30px, 5vw, 80px);
    box-shadow: var(--shadow-lg);
}

/* MÃ¡scara orgÃ¢nica apenas para desktop */
@media (min-width: 1101px) {
    @supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
        .hero {
            -webkit-mask-image: url("../img/treinamentos/union_hero_mask.c1dcce9c7221.svg");
            mask-image: url("../img/treinamentos/union_hero_mask.c1dcce9c7221.svg");
            -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            border-radius: 0;
            box-shadow: none;
        }
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 740px;
    margin-top: -20px;
    display: flex;
    flex-direction: column;
}

.hero-title {
    overflow-wrap: anywhere;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(48px, 6.2vw, 96px);
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    margin: 0 0 16px;
}

.hero-text {
    max-width: 740px;
    width: 100%;
    min-width: 260px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(16px, 1.6vw, 24px);
    line-height: 1.5;
    color: var(--color-text-light);
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    margin: 0;
}

.hero-cta {
    max-width: 100%;
    position: absolute;
    right: clamp(24px, 4.5vw, 90px);
    bottom: clamp(46px, 5.5vw, 88px);
    z-index: 3;
    display: flex;
    align-items: center;
}

/* Hero Responsivo (Mobile & Tablet) */
@media (max-width: 1100px) {
    .hero-wrapper {
        width: 100%;
        margin-top: 0;
    }

    .hero {
        position: relative;
        width: 100%;
        min-height: min(88svh, 680px);
        height: auto;
        max-height: none;
        margin: 0;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(90px, 20vw, 120px) clamp(22px, 5.5vw, 30px) clamp(44px, 10vw, 64px);
        -webkit-mask: none;
        mask: none;
        box-shadow: var(--shadow-md);
    }

    .hero-bg {
        object-position: center 30%;
    }

    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.12) 35%,
            rgba(0, 0, 0, 0.55) 100%);
    }

    .hero-content {
        gap: clamp(14px, 3.5vw, 22px);
        margin: 0;
        padding: 0;
        max-width: 560px;
    }

    .hero-title {
        font-size: clamp(48px, 13vw, 68px);
        text-align: left;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
        margin: 0;
    }

    .hero-text {
        max-width: 540px;
        font-weight: 600;
        font-size: clamp(16px, 4.2vw, 20px);
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.92);
        margin-top: clamp(2px, 1vw, 6px);
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    }

    .hero-cta {
        width: min(100%, 360px);
        position: static;
        margin-top: clamp(20px, 5vw, 32px);
        align-self: flex-start;
        transform: none;
    }

    .hero-cta .btn-pill {
        white-space: normal;
        min-height: 56px;
        height: auto;
        font-size: 16px;
        font-weight: 700;
        min-width: 0;
        width: 100%;
        max-width: 360px;
        padding: 7px 10px 7px 22px;
        gap: 12px;
        border-radius: var(--radius-pill);
        box-shadow: var(--shadow-md);
    }

    .hero-cta .btn-pill-arrow {
        width: 42px;
        height: 42px;
    }
}


/* ==========================================================================
   3. PLANILHA (ApresentaÃ§Ã£o & VÃ­deo Demonstrativo)
   ========================================================================== */
.planilha {
    position: relative;
    margin: clamp(60px, 7.34vw, 141px) auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 48px);
}

.planilha-text {
    flex: 1 1 42%;
    max-width: 620px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.35vw, 26px);
}

.planilha-media {
    position: relative;
    flex: 1 1 56%;
    max-width: 820px;
    min-width: 0;
    aspect-ratio: 1035 / 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planilha-blob {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
}

.planilha-mockup {
    position: relative;
    z-index: 1;
    display: block;
    width: 90%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Planilha Responsivo */
@media (max-width: 1100px) {
    .planilha {
        flex-direction: column;
        margin-top: clamp(24px, 6vw, 40px);
        gap: 20px;
        padding-inline: clamp(16px, 4vw, 24px);
    }

    .planilha-text {
        flex: 1 1 auto;
        text-align: center;
        gap: 14px;
    }

    .planilha-text .section-title {
        font-size: clamp(36px, 10vw, 48px);
        line-height: 1.12;
    }

    .planilha-text .section-text {
        font-size: 16px;
        line-height: 1.6;
        max-width: 540px;
        margin: 0 auto;
        color: var(--color-text-body);
    }

    .planilha-media {
        width: 100%;
        max-width: 420px;
        margin: 8px auto 0;
        aspect-ratio: 1035 / 650;
    }

    .planilha-mockup {
        width: 94%;
        max-width: 100%;
        margin: 0 auto;
    }
}


/* ==========================================================================
   4. WAVE DIVIDER (TransiÃ§Ã£o OrgÃ¢nica)
   ========================================================================== */
/* Herdado de global.css com ajuste responsivo local */
@media (max-width: 1100px) {
    .wave-divider {
        margin-top: 20px;
    }
}


/* ==========================================================================
   5. FUNCIONALIDADES (Component Set "arts", 1536x826)
   Cards com alturas decrescentes e topos escalonados.
   No hover desktop, o card expande ocupando o palco inteiro (SMART_ANIMATE).
   ========================================================================== */
.features {
    margin: clamp(48px, 6.56vw, 126px) auto 0;
}

.features-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1900 / 826;
    container-type: inline-size;
}

/* a foto Ã© recortada aqui */
.feature-media {
    position: absolute;
    inset: 0;
    border-radius: clamp(16px, 2.14vw, 41px);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.65s cubic-bezier(0.25, 0.9, 0.35, 1), transform 0.65s cubic-bezier(0.25, 0.9, 0.35, 1);
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0) 100%);
}

.feature-title {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    transition: all 0.65s cubic-bezier(0.25, 0.9, 0.35, 1);
}

.feature-text {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-text-light);
    transition: all 0.65s cubic-bezier(0.25, 0.9, 0.35, 1);
}

.feature-hit {
    display: none;
}

.features-mobile-nav {
    display: none;
}

/* Desktop: layout escalonado inteligente */
@media (min-width: 1101px) {
    .feature-card {
        position: absolute;
        left: var(--l);
        top: var(--t);
        width: var(--w);
        height: var(--h);
        z-index: 1;
        isolation: isolate;
        transition:
            left 0.65s cubic-bezier(0.25, 0.9, 0.35, 1),
            top 0.65s cubic-bezier(0.25, 0.9, 0.35, 1),
            width 0.65s cubic-bezier(0.25, 0.9, 0.35, 1),
            height 0.65s cubic-bezier(0.25, 0.9, 0.35, 1);
    }

    /* Geometria de cada card (% do palco) */
    .feature-card--trama     { --l:  1.05%; --t: 15.50%; --w: 22.26%; --h: 84.50%; }
    .feature-card--dxf       { --l: 26.26%; --t: 24.94%; --w: 22.32%; --h: 75.06%; }
    .feature-card--memorial  { --l: 51.53%; --t: 31.33%; --w: 22.26%; --h: 68.67%; }
    .feature-card--elementos { --l: 76.74%; --t: 37.43%; --w: 22.26%; --h: 62.57%; }

    .feature-title {
        position: absolute;
        left: var(--title-l);
        top: var(--title-t);
        width: var(--title-w);
        z-index: 2;
        font-size: clamp(24px, 5.0526cqw, 96px);
        text-align: center;
    }

    .feature-card--trama     { --title-l: 16.31%; --title-t: -18.34%; --title-w: 71.4%; }
    .feature-card--dxf       { --title-l:  1.65%; --title-t: -16.94%; --title-w: 96.7%; }
    .feature-card--memorial  { --title-l:  8.98%; --title-t: -23.06%; --title-w: 85.8%; }
    .feature-card--elementos { --title-l:  0.00%; --title-t: -23.06%; --title-w: 94.8%; }

    .feature-text {
        position: absolute;
        left: var(--text-l);
        top: var(--text-t);
        width: var(--text-w);
        z-index: 2;
        font-size: clamp(9px, 1.2632cqw, 24px);
        line-height: 1.645;
        text-align: justify;
    }

    .feature-card--trama     { --text-l: 7.80%; --text-t: 60.60%; --text-w: 84.4%; }
    .feature-card--dxf       { --text-l: 9.91%; --text-t: 52.42%; --text-w: 80.0%; }
    .feature-card--memorial  { --text-l: 8.98%; --text-t: 52.77%; --text-w: 84.6%; }
    .feature-card--elementos { --text-l: 8.98%; --text-t: 52.77%; --text-w: 84.6%; }

    /* Estado expandido (via hover desktop ou hit-zone ativa) */
    .feature-card.is-active,
    .feature-card:hover,
    .feature-card:focus-within {
        --l: 0%;
        --t: 0.69%;
        --w: 98.91%;
        --h: 99.31%;
        --title-l: 6.27%;
        --title-t: 7.21%;
        --title-w: 48.10%;
        --text-l: 6.27%;
        --text-t: 74.90%;
        --text-w: 61.75%;
        z-index: 10;
    }

    .feature-card.is-active .title-br,
    .feature-card:hover .title-br,
    .feature-card:focus-within .title-br {
        display: none;
    }

    .feature-card.is-active .feature-title,
    .feature-card:hover .feature-title,
    .feature-card:focus-within .feature-title {
        font-size: clamp(24px, 6.2105cqw, 118px);
        text-align: left;
        white-space: nowrap;
    }

    .feature-card.is-active .feature-title span,
    .feature-card:hover .feature-title span,
    .feature-card:focus-within .feature-title span {
        color: var(--color-text-light);
    }

    .feature-card.is-active .feature-text,
    .feature-card:hover .feature-text,
    .feature-card:focus-within .feature-text {
        font-size: clamp(11px, 2.1053cqw, 40px);
        text-align: left;
    }

    .feature-card.is-active .feature-media,
    .feature-card:hover .feature-media,
    .feature-card:focus-within .feature-media {
        background: #262626;
        box-shadow: var(--shadow-xl);
    }

    .feature-hit {
        display: block;
        position: absolute;
        top: 0;
        height: 100%;
        width: 24.5%;
        z-index: 25;
        cursor: pointer;
    }

    .feature-hit--1 { left: 0%; }
    .feature-hit--2 { left: 25%; }
    .feature-hit--3 { left: 50%; }
    .feature-hit--4 { left: 75%; }
}

/* Funcionalidades Responsivo (Mobile) */
@media (max-width: 1100px) {
    .features {
        margin-top: var(--section-space);
        padding-inline: clamp(16px, 4vw, 24px);
    }

    .features-stage {
        aspect-ratio: auto;
        width: 100%;
        position: relative;
        min-height: 340px;
        container-type: normal;
    }

    .feature-card {
        display: none;
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        min-height: 340px;
        margin-top: 0;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-md);
        flex-direction: column;
        justify-content: flex-end;
        padding: 28px 22px;
    }

    .feature-card.is-mobile-active {
        display: flex;
    }

    .feature-card .feature-media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        border-radius: var(--radius-lg);
    }

    .feature-card .feature-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.35) 100%);
    }

    .feature-card .feature-title {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin-bottom: 10px;
        z-index: 2;
        font-size: clamp(28px, 7vw, 38px);
        text-align: left;
        white-space: normal;
    }

    .feature-card .feature-title .title-br {
        display: inline;
    }

    .feature-card .feature-text {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        margin: 0;
        z-index: 2;
        font-size: 16px;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.90);
        text-align: left;
    }

    .features-mobile-nav {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 16px;
    }

    .btn-feat-tab {
        width: 48px;
        height: 42px;
        border: 1px solid var(--color-border-light);
        background: var(--color-bg-light);
        border-radius: var(--radius-md);
        font-family: var(--font-heading);
        font-size: 18px;
        color: var(--color-primary-dark);
        cursor: pointer;
        transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-feat-tab.is-active {
        background: var(--color-brand-green);
        color: var(--color-text-light);
        border-color: var(--color-brand-green);
        box-shadow: 0 4px 10px rgba(11, 52, 19, 0.25);
        transform: scale(1.05);
    }
}


/* ==========================================================================
   6. PASSO A PASSO & RESULTADOS (Fluxo de Uso & Pranchas TÃ©cnicas)
   ========================================================================== */
.passo-resultados {
    margin: clamp(90px, 13.1vw, 252px) auto 0;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(40px, 6vw, 84px);
    align-items: flex-start;
}

.passo-a-passo {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.passo-a-passo .section-title,
.resultados .section-title {
    margin: 0;
    line-height: 1.15;
}

.steps-list {
    margin-top: clamp(24px, 3vw, 44px);
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 2.6vw, 38px);
}

.step {
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 1.8vw, 24px);
}

.step-num {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 0.9;
    color: var(--color-brand-green);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.step-body {
    flex: 1;
}

.step-body h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(19px, 1.5vw, 25px);
    line-height: 1.25;
    color: var(--color-primary-dark);
}

.step-body p {
    margin-top: clamp(6px, 0.5vw, 8px);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 560px;
}

.btn-download {
    margin: clamp(32px, 3.5vw, 48px) 0 0 0;
    width: fit-content;
    min-width: clamp(240px, 20vw, 340px);
    height: clamp(50px, 3.4vw, 58px);
    padding: 0 clamp(24px, 2vw, 36px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1vw, 14px);
    background: var(--color-accent-gold);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(15px, 1.15vw, 18px);
    border-radius: var(--radius-md);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-download:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: var(--shadow-md);
}

.btn-download:active {
    transform: translateY(0) scale(0.98);
}

.btn-download-icon {
    width: clamp(16px, 1.2vw, 20px);
    height: auto;
    flex-shrink: 0;
}

/* Crédito de autoria da planilha — pedido do cliente (revisão de 15/09/2026).
   Fica abaixo do botão de download, um degrau abaixo dos passos na hierarquia.
   O respiro menor que o do botão agrupa os dois como um bloco só. */
.planilha-fonte {
    margin-top: clamp(12px, 1.2vw, 16px);
    max-width: 560px;
    font-family: var(--font-body);
    font-size: clamp(12px, 0.8vw, 13px);
    line-height: 1.645;
    color: var(--color-text-subtle);
}

.resultados {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.resultados-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 673 / 740;
    max-height: 560px;
    margin-top: clamp(24px, 3vw, 44px);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px 20px 84px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prancha {
    position: absolute;
    width: 58%;
    height: 68%;
    object-fit: contain;
    border-radius: clamp(10px, 1.2vw, 18px);
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.16));
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1), top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.prancha--a { left: 8%;  top: 8%; z-index: 1; }
.prancha--b { left: 28%; top: 12%; z-index: 2; }

.resultados-stage.is-swapped .prancha--a { left: 28%; top: 12%; z-index: 2; }
.resultados-stage.is-swapped .prancha--b { left: 8%;  top: 8%; z-index: 1; }

/* A legenda tem os dois textos no HTML; aqui escolhemos qual aparece conforme
   a imagem que está na frente. Trocar por CSS evita manipular texto no JS e
   mantém os dois conteúdos no HTML servido. */
.badge-conteudo {
    display: flex;
    flex-direction: column;
    gap: inherit;
}

.badge-conteudo--memorial { display: none; }

.resultados-stage.is-swapped .badge-conteudo--prancha { display: none; }
.resultados-stage.is-swapped .badge-conteudo--memorial { display: flex; }

.badge-prancha {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    z-index: 3;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-body);
    text-align: left;
    box-shadow: var(--shadow-xs);
    box-sizing: border-box;
}

.badge-prancha strong {
    font-size: clamp(14px, 1.15vw, 17px);
    font-weight: 700;
    color: var(--color-brand-green);
}

.badge-prancha span {
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.45;
    color: var(--color-text-dark);
    font-weight: 400;
}

.btn-swap {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
}

.btn-swap:hover {
    transform: translateY(-50%) scale(1.08);
}

.btn-swap:active {
    transform: translateY(-50%) scale(0.95);
}

/* Passo a Passo & Resultados Responsivo */
@media (max-width: 1100px) {
    .passo-resultados {
        display: flex;
        flex-direction: column;
        margin-top: var(--section-space);
        gap: 40px;
        padding-inline: clamp(16px, 4vw, 24px);
    }

    .passo-a-passo, .resultados {
        width: 100%;
        max-width: 100%;
    }

    .steps-list {
        margin-top: 20px;
        gap: 20px;
    }

    .step {
        gap: 14px;
        padding-left: 0;
        border-left: none;
    }

    .step-num {
        font-size: 30px;
        margin-top: 2px;
    }

    .step-body h3 {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .step-body p {
        font-size: 16px;
        line-height: 1.55;
        color: var(--color-text-muted);
    }

    .btn-download {
        font-size: 16px;
        height: 54px;
        width: 100%;
        max-width: 360px;
        margin: 20px auto 0;
        box-shadow: var(--shadow-sm);
    }

    .resultados-stage {
        max-width: 400px;
        margin: 12px auto 0;
    }

    .btn-swap {
        right: 0;
        top: 50%;
        width: 46px;
        height: 46px;
    }
}


/* ==========================================================================
   7. NOSSOS PLANOS (Cards reaproveitados de static/css/pagamento.css)
   ========================================================================== */
.plans-section-home {
    margin: clamp(80px, 5.5vw, 106px) auto 0;
}

.plans-section-home .plans-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
}

.plans-section-home .plans-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.2;
    color: var(--color-brand-green);
    text-transform: uppercase;
}

.plans-section-home .plans-description {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.63;
    color: var(--color-text-dark);
    margin-top: clamp(8px, 1.2vw, 22px);
}

.plans-section-home .plans-frame-45 {
    width: 100%;
    margin-top: 0;
}

.plans-section-home .plan-block {
    width: 100%;
}

/* Planos Responsivo */
@media (max-width: 1100px) {
    .plans-section-home {
        margin-top: var(--section-space);
        padding-inline: 0;
    }

    .plans-section-home .plans-title {
        font-size: clamp(36px, 10vw, 48px);
        line-height: 1.12;
    }

    .plans-section-home .plans-description {
        font-size: 16px;
        line-height: 1.6;
        color: var(--color-text-body);
    }

}


@media (min-width: 768px) and (max-height: 700px) {
    .plans-section-home .plans-title { font-size: 40px; }
    .plans-section-home .plans-header { margin-bottom: 20px; }
    .plans-section-home .plans-description { margin-top: 8px; }
}

/* ==========================================================================
   8. NOSSA EQUIPE (Cards Interativos, Timer & Sanfona Mobile)
   ========================================================================== */
.team {
    margin: clamp(120px, 16vw, 320px) auto 0;
}

.team-intro {
    margin-top: clamp(8px, 1vw, 18px);
    max-width: 1418px;
    text-align: justify;
}

.team-card--expansivel:focus-visible {
    outline: 2px solid var(--color-brand-green);
    outline-offset: 4px;
}

/* Foto e blob decorativo */
.team-photo-frame {
    position: relative;
    aspect-ratio: 370 / 406;
}

.team-blob {
    position: absolute;
    left: -7.3%;
    top: -8.6%;
    width: 115.4%;
    height: 114.5%;
    z-index: 0;
}

.team-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: clamp(10px, 1.1vw, 21px);
    z-index: 1;
}

.team-caption {
    visibility: visible;
    margin-top: 14px;
    min-height: clamp(48px, 4.5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(16px, 3.4vw, 22px);
    line-height: 1.2;
    color: #000000;
}

.team-role {
    margin-top: clamp(2px, 0.3vw, 6px);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(13px, 2.6vw, 17px);
    line-height: 1.3;
    color: var(--color-text-muted);
}

.team-panel {
    display: none;
}


.team-detail {
    display: none;
    margin-top: 10px;
}

.team-detail-name,
.team-detail-role {
    display: none;
}

.team-detail-bio {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(13px, 2.4vw, 16px);
    line-height: 1.5;
    color: #000000;
    text-align: left;
}

/* Cards stay still while the biography appears beside them. */
@media (min-width: 1101px) {
    .team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5.88%; margin-top: clamp(24px, 4.06vw, 78px); }
    .team-card { position: relative; min-width: 0; }
}

/* Equipe Responsivo (Mobile: Sanfona / Grid de 2 colunas) */
@media (max-width: 1100px) {
    .team {
        margin-top: var(--section-space);
        padding-inline: clamp(16px, 4vw, 24px);
    }

    .team-intro {
        text-align: left;
        font-size: 16px;
        line-height: 1.6;
        color: var(--color-text-body);
        margin-top: 10px;
    }

    .team-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 12px;
        margin-top: 20px;
    }

    .team-card {
        position: relative;
        width: 100%;
        background: var(--color-bg-light);
        border-radius: var(--radius-lg);
        padding: 10px;
        box-shadow: var(--shadow-xs);
        border: 1px solid var(--color-border-light);
        display: flex;
        flex-direction: column;
    }



    .team-photo-frame {
        position: relative;
        width: 100%;
        aspect-ratio: 370 / 406;
        max-width: 140px;
        margin: 0 auto;
    }

    .team-blob {
        position: absolute;
        left: -6%;
        top: -6%;
        width: 112%;
        height: 112%;
        z-index: 0;
        pointer-events: none;
    }

    .team-photo {
        position: relative;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--radius-md);
        z-index: 1;
    }

    .team-caption {
        margin-top: 8px;
        min-height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: left;
    }

    .team-name {
        font-size: clamp(15px, 3.8vw, 17px);
        font-weight: 800;
        color: var(--color-primary-dark);
        line-height: 1.2;
    }

    .team-role {
        font-size: clamp(13px, 3.2vw, 15px);
        line-height: 1.35;
        color: var(--color-text-muted);
        margin-top: 2px;
        font-weight: 600;
    }





    .team-detail {
        display: none;
        margin-top: 10px;
        padding: 12px 14px;
        background: var(--color-bg-surface);
        border-radius: var(--radius-md);
        border-left: 3px solid var(--color-brand-green);
    }

    .team-card.is-open .team-detail {
        display: block;
    }

    .team-detail-bio {
        font-size: 16px;
        line-height: 1.55;
        color: var(--color-text-body);
        text-align: left;
    }
}


/* ==========================================================================
   9. MEIOS DE CONTATO (Figma 1629x844)
   ========================================================================== */
.contact {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 4vw, 64px);
    padding: clamp(28px, 4vw, 64px);
    margin: clamp(100px, 12vw, 240px) auto 0;
    border-radius: clamp(16px, 1.6vw, 31px);
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.contact::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(300deg, #CDC8C8 0%, #000000 100%);
    mix-blend-mode: multiply;
    opacity: 0.8;
    z-index: 1;
}

.contact-info {
    position: relative;
    min-width: 0;
    z-index: 2;
}

.contact-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(24px, 3.333vw, 64px);
    line-height: 1.2;
    color: var(--color-brand-green);
    text-transform: uppercase;
}

.contact-prompt {
    margin-top: clamp(6px, 1.66vw, 32px);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(12px, 1.5625vw, 30px);
    line-height: 1.63;
    color: var(--color-text-light);
}

.contact-methods {
    list-style: none;
    margin-top: clamp(12px, 3.43vw, 66px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.09vw, 21px);
}

.contact-methods li {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.78vw, 15px);
}

.contact-methods img {
    width: clamp(16px, 1.5625vw, 30px);
    height: clamp(16px, 1.5625vw, 30px);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(10px, 0.99vw, 19px);
    line-height: 1.4;
    color: var(--color-text-light);
}

.contact-value {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(12px, 1.5625vw, 30px);
    line-height: 1.4;
    color: var(--color-text-light);
}

.contact-methods a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-methods a:hover {
    color: var(--color-accent-gold);
    text-decoration: underline;
}

/* FormulÃ¡rio posicionado sobre a foto em desktop */
.contact-form {
    position: relative;
    min-width: 0;
    z-index: 3;
    background: var(--color-bg-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: clamp(14px, 2vw, 36px) clamp(14px, 1.6vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-enviar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    min-height: 44px;
    height: auto;
    padding: 10px 14px;
    margin-top: auto;
    align-self: flex-end;
    width: clamp(110px, 10.31vw, 198px);
    background: var(--color-brand-green);
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(13px, 1.354vw, 26px);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.btn-enviar:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-enviar:active {
    transform: translateY(0) scale(0.97);
}

/* Contact keeps the original two-column composition until space is limited. */
.contact-info { overflow-wrap: anywhere; }
.contact-methods li > div { min-width: 0; }
.contact-title { font-size: clamp(32px, 3.3vw, 54px); }
.contact-prompt { font-size: clamp(16px, 1.4vw, 22px); line-height: 1.5; margin-top: 16px; }
.contact-methods { margin-top: 28px; gap: 18px; }
.contact-label { font-size: 14px; }
.contact-value { font-size: clamp(16px, 1.45vw, 24px); line-height: 1.5; }
.contact-form { gap: 14px; padding: clamp(20px, 2.5vw, 36px); }
.contact-form .form-field label { font-size: 16px; line-height: 1.4; }
.contact-form .form-field input,
.contact-form .form-field textarea {
    min-width: 0;
    font-size: 16px;
    line-height: 1.5;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    height: 46px;
}
.contact-form .form-field textarea { height: 112px; min-height: 112px; resize: vertical; }
.contact-form .btn-enviar { min-height: 46px; height: auto; font-size: 16px; margin-top: 2px; }

@media (max-width: 767px) {
    .contact {
        grid-template-columns: minmax(0, 1fr);
        margin-top: var(--section-space);
        padding: 24px 16px;
        gap: 28px;
        border-radius: var(--radius-lg);
    }
    .contact-title { font-size: 34px; }
    .contact-prompt, .contact-value { font-size: 16px; }
    .contact-methods { margin-top: 24px; gap: 16px; }
    .contact-form { padding: 20px 16px; }
    .contact-form .btn-enviar { width: 100%; }
}

/* Quiet hover popup: no expanding photo or automatic rotation. */
.team-card { position: relative; }
.team-card--expansivel { cursor: help; }
.team-card.is-open { z-index: 30; }
.team-card .team-detail {
    display: block;
    position: absolute;
    z-index: 2;
    top: 0;
    left: calc(100% + 12px);
    width: min(360px, calc(100vw - 64px));
    max-height: min(420px, calc(100dvh - 140px));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    background: var(--color-bg-light);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
    cursor: auto;
    text-align: left;
}
.team-card--3 .team-detail, .team-card--4 .team-detail { left: auto; right: calc(100% + 12px); }
.team-card.is-open .team-detail { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.team-card .team-detail-name { display: block; font: 700 18px/1.3 var(--font-body); }
.team-card .team-detail-role { display: block; margin-top: 4px; color: var(--color-brand-green); font: 700 14px/1.4 var(--font-body); }
.team-card .team-detail-bio { margin-top: 12px; font-size: 14px; line-height: 1.55; text-align: left; }
@media (max-width: 1100px) {
    .team-card .team-detail { top: calc(100% + 8px); left: 0; right: auto; }
    .team-card:nth-child(even) .team-detail { right: 0; left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .team-card .team-detail { transition: none; transform: none; }
}
