/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    --green-primary: #6B8F6E;
    --green-secondary: #8FAF8C;
    --beige-bg: #F5F0E8;
    --beige-mid: #E8E0D0;
    --gold: #DEAF6B;
    --gold-light: #ca6f00;
    --off-white: #FAF8F4;
    --text-dark: #2C3B2D;
    --text-mid: #4A5C4B;
    --teal: #5BA8A0;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Nunito', system-ui, -apple-system, sans-serif;

    --section-py: 5rem;
    --container-px: 1.5rem;
    --radius-card: 1.5rem;
    --radius-sm: 0.75rem;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--beige-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-sans);
}

/* ============================================================
   Container
   ============================================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--container-px);
}

/* ============================================================
   Typography Utilities
   ============================================================ */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.section-tag-light {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 500;
    line-height: 1.12;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-title-light {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 500;
    line-height: 1.12;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 60ch;
}

.section-header {
    margin-bottom: 3.5rem;
    max-width: 680px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    line-height: normal;
    padding-block: 0.8rem 0.7rem;
}

.btn:active {
    transform: translateY(1px) scale(0.98) !important;
}

.btn:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--off-white);
    box-shadow: 0 2px 12px rgba(201, 168, 118, 0.2);
}

.btn-gold:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 118, 0.32);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--beige-mid);
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--text-dark);
    color: var(--off-white);
}

.btn-dark:hover {
    background-color: #3a4e3b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 59, 45, 0.2);
}

.btn-disabled {
    background-color: var(--beige-mid);
    color: #9aab9b;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-sm {
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

/* ============================================================
   Security Badge
   ============================================================ */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--text-mid);
    margin-top: 1rem;
}

.security-badge svg {
    color: var(--green-primary);
    flex-shrink: 0;
}

.security-badge-light {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.5rem;
}

.security-badge-light svg {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   Scroll Progress Bar
   ============================================================ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    z-index: 200;
    transition: width 0.08s linear;
    border-radius: 0 2px 2px 0;
}

/* ============================================================
   Reveal Animations (Intersection Observer driven)
   ============================================================ */

/* ── Fade up (default) ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.75s var(--ease-out),
        transform 0.75s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 100ms);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Fade from left ── */
.reveal-left {
    opacity: 0;
    transform: translateX(-52px);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 100ms);
    will-change: opacity, transform;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ── Fade from right ── */
.reveal-right {
    opacity: 0;
    transform: translateX(52px);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 100ms);
    will-change: opacity, transform;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ── Scale up ── */
.reveal-scale {
    opacity: 0;
    transform: scale(0.93);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 100ms);
    will-change: opacity, transform;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .blob {
        animation: none !important;
    }

    /* Remove transforms on hover to prevent jittering */
    .btn:hover,
    .para-quem-image:hover .para-quem-photo,
    .cap-card:hover,
    .supervisao-card:hover {
        transform: none !important;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-block: 1.125rem;
    transition:
        background-color var(--transition-base),
        box-shadow var(--transition-base);
}

#site-header.scrolled {
    background-color: rgba(250, 248, 244, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(232, 224, 208, 0.5), 0 8px 32px rgba(44, 59, 45, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
}

/* Footer version: slightly larger, lightened for dark background */
.logo-img-footer {
    height: 58px;
    /* Lighten all tones to work on the dark footer */
    filter: brightness(2.2) saturate(0.4);
}

#main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.875rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition-base);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
    border-radius: 2px;
}

.nav-cta {
    margin-left: 1.5rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 101;
    border-radius: 0.375rem;
}

.hamburger:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition:
        transform var(--transition-base),
        opacity var(--transition-base);
    transform-origin: center;
    will-change: transform;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(44, 59, 45, 0.45);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.section-hero {
    position: relative;
    min-height: 100dvh;
    background-color: var(--beige-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

/* ── Full-bleed background photo (desktop) ──────────────────── */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* ── Gradient overlay: beige → transparent, left to right ───── */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            var(--beige-bg) 0%,
            var(--beige-bg) 26%,
            rgba(245, 240, 232, 0.96) 36%,
            rgba(245, 240, 232, 0.80) 46%,
            rgba(245, 240, 232, 0.42) 57%,
            rgba(245, 240, 232, 0.10) 68%,
            transparent 78%);
    z-index: 1;
    pointer-events: none;
}

/* ── Content wrapper (above bg layers) ──────────────────────── */
.hero-content-outer {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Match section's padding so the content area fills the height */
    min-height: calc(100dvh - 10rem);
}

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

.credential-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.04em;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    background-color: rgba(91, 168, 160, 0.09);
    border-radius: 2rem;
    border: 1px solid rgba(91, 168, 160, 0.2);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-dark);
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--teal);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 50ch;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--beige-mid);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
    display: block;
}

.stat-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-mid);
}

.stat-divider {
    color: var(--beige-mid);
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Mobile photo box (hidden on desktop) ────────────────────── */
.hero-photo-box {
    display: none;
}

/* ============================================================
   PARA QUEM SECTION
   ============================================================ */
.section-para-quem {
    padding-block: var(--section-py);
    background-color: var(--off-white);
}

.para-quem-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 5rem;
    align-items: center;
}

.para-quem-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 0.75rem 2.5rem 0.75rem 2.5rem;
    box-shadow: 0 16px 48px rgba(107, 143, 110, 0.18);
    display: block;
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.para-quem-image:hover .para-quem-photo {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 28px 64px rgba(107, 143, 110, 0.26);
}

.para-quem-content .section-tag {
    margin-bottom: 0.5rem;
}

.para-quem-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}

.para-quem-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding-block: 1.0625rem;
    border-bottom: 1px solid var(--beige-mid);
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.55;
    transition: color var(--transition-base);
}

.para-quem-item:first-child {
    border-top: 1px solid var(--beige-mid);
}

.para-quem-item:hover {
    color: var(--text-dark);
}

.chevron-icon {
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 0.075rem;
    display: flex;
}

/* ============================================================
   SOBRE SECTION
   ============================================================ */
.section-sobre {
    background-color: var(--teal);
    position: relative;
    overflow: hidden;
}

.section-sobre::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
        radial-gradient(circle at 8% 82%, rgba(0, 0, 0, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header: tag + headline — col 1, row 1 */
.sobre-content-header {
    grid-column: 1;
    grid-row: 1;
    padding-top: var(--section-py);
    padding-left: calc((100vw - 1280px) / 2 + var(--container-px));
    padding-right: 2rem;
    padding-bottom: 1.5rem;
}
 
/* Body: credentials + badges — col 1, row 2 */
.sobre-content-body {
    grid-column: 1;
    grid-row: 2;
    padding-bottom: var(--section-py);
    padding-left: calc((100vw - 1280px) / 2 + var(--container-px));
    padding-right: 2rem;
}

@media (max-width: 1320px) {

    .sobre-content-header,
    .sobre-content-body {
        padding-left: var(--container-px);
    }
}

/* Photo: col 2, spanning both rows */
.sobre-photo {
    grid-column: 2;
    grid-row: 1 / 3;
}

.credentials-list {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding-block: 0.9375rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.58;
}

.credential-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.check-icon {
    color: #DEAF6B;
    flex-shrink: 0;
    margin-top: 0.1rem;
    display: flex;
}

.sobre-badges {
    display: flex;
    gap: 0.875rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.sobre-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--gold);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    min-width: 130px;
    text-align: center;
    gap: 0.25rem;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.sobre-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(222, 175, 107, 0.38);
}


.badge-number {
    font-family: var(--font-serif);
    font-size: 2.375rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-dark);
}

.badge-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.sobre-badge .badge-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(44, 59, 45, 0.7);
    margin-top: 0.125rem;
}

/* ── Sobre Photo — Rounded Box with zoom ────────────────── */
.sobre-photo {
    display: flex;
    align-items: center;
    padding: var(--section-py) calc((100vw - 1280px) / 2 + var(--container-px)) var(--section-py) 1rem;
}

@media (max-width: 1320px) {
    .sobre-photo {
        padding-right: var(--container-px);
    }
}

.sobre-photo-inner {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    width: 100%;
    min-height: 520px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sobre-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.7s var(--ease-out);
}

.sobre-photo-inner:hover .sobre-photo-img {
    transform: scale(1.04);
}

/* ============================================================
   CAPACITAÇÕES SECTION
   ============================================================ */
.section-capacitacoes {
    padding-block: var(--section-py);
    background-color: var(--beige-bg);
}

.capacitacoes-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1.375rem;
    align-items: start;
}

.cap-card {
    background-color: var(--off-white);
    border: 1px solid var(--beige-mid);
    border-radius: var(--radius-card);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    min-height: 380px;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.cap-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 56px rgba(107, 143, 110, 0.16),
        0 4px 12px rgba(44, 59, 45, 0.06);
    border-color: rgba(91, 168, 160, 0.35);
}

.cap-card-featured {
    min-height: 500px;
    border-color: rgba(143, 175, 140, 0.6);
    box-shadow: 0 20px 60px -8px rgba(107, 143, 110, 0.14);
    position: relative;
    margin-top: -30px;
}

.cap-card-featured:hover {
    transform: translateY(-10px);
    box-shadow:
        0 32px 72px -8px rgba(107, 143, 110, 0.26),
        0 4px 14px rgba(44, 59, 45, 0.08);
    border-color: rgba(143, 175, 140, 0.9);
}

.cap-card-featured-label {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    background-color: rgba(91, 168, 160, 0.09);
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    border: 1px solid rgba(91, 168, 160, 0.2);
}

.cap-card-icon {
    color: var(--green-primary);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(107, 143, 110, 0.08);
    border-radius: 0.875rem;
    flex-shrink: 0;
}

.caa-letters {
    font-family: var(--font-serif);
    font-size: 3.875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.cap-card-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-mid);
    opacity: 0.7;
}

.cap-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
}

.cap-card-text {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.68;
    flex: 1;
}

.cap-features-list {
    margin: 0.75rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    flex: 1;
}

.cap-features-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cap-features-icon {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--teal);
}

.cap-features-text {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.cap-features-text strong {
    font-weight: 700;
    color: var(--text-dark);
}

.cap-cta {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ============================================================
   TAMBÉM OFERECE SECTION
   ============================================================ */
.section-tambem {
    padding-block: var(--section-py);
    background-color: var(--off-white);
}

.tambem-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 2rem;
    align-items: start;
}

/* ── Supervisão card: teal + image ───────────────────────── */
.supervisao-card {
    background-color: var(--teal);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Photo occupies top ~45% of the card */
.supervisao-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
}

.supervisao-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transition: transform var(--transition-slow);
}

.supervisao-card:hover .supervisao-photo {
    transform: scale(1.04);
}

/* Text content area */
.supervisao-body {
    padding: 2rem 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    flex: 1;
}

.supervisao-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.55);
}

.supervisao-title {
    font-family: var(--font-serif);
    font-size: 1.4375rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.22;
}

.supervisao-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.72;
}

.supervisao-btn {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 0.375rem;
}

/* Legacy aliases (keeps .tambem-tag working on e-books side) */
.tambem-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(44, 59, 45, 0.55);
}

.tambem-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.22;
}

.tambem-card-text {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.72;
}

/* ── btn-white (for teal-bg cards) ──────────────────────── */
.btn-white {
    background-color: #fff;
    color: var(--teal);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

/* E-books */
.ebooks-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ebooks-tag {
    margin-bottom: 0.75rem;
}

.ebooks-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.ebook-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 1.25rem;
    background-color: var(--off-white);
    border: 1px solid var(--beige-mid);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
    align-items: start;
}

.ebook-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 143, 110, 0.09);
}

.ebook-cover {
    width: 76px;
    aspect-ratio: 2 / 3;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Sombra suave para a capa */
}

.ebook-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.ebook-cover-soon {
    background: var(--beige-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
}

.ebook-cover-text {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
}

.ebook-soon-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mid);
    text-align: center;
    line-height: 1.2;
}

.ebook-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ebook-title {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.28;
}

.ebook-text {
    font-size: 0.8125rem;
    color: var(--text-mid);
    line-height: 1.58;
}

.ebook-card .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.ebook-card-soon {
    opacity: 0.62;
}



/* ============================================================
   DEPOIMENTOS SECTION
   ============================================================ */
.section-depoimentos {
    padding-block: var(--section-py);
    background-color: var(--beige-bg);
    position: relative;
    /* overflow: hidden at section level would clip the marquee fade edges */
}

/* Large decorative quote mark */
.section-depoimentos::before {
    content: '\201C';
    position: absolute;
    top: -3rem;
    left: -2.5rem;
    font-family: var(--font-serif);
    font-size: 22rem;
    color: var(--green-primary);
    opacity: 0.045;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.testimonials-wrapper {
    position: relative;
    z-index: 1;
}

/* ── Marquee clip container ──────────────────────────────── */
.testimonials-marquee {
    /* Clips the scrolling track — edge fades applied via pseudo-elements */
    overflow: hidden;
    position: relative;
    /* Soft fade-out on left and right edges */
    mask-image: linear-gradient(90deg,
            transparent 0%,
            #000 6%,
            #000 94%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(90deg,
            transparent 0%,
            #000 6%,
            #000 94%,
            transparent 100%);
}

/* ── Animated track ──────────────────────────────────────── */
.testimonials-track {
    display: flex;
    gap: 1.375rem;
    width: max-content;
    will-change: transform;
    position: relative;
    touch-action: pan-y;
}

/* ── Each card: fixed width so 3 fill a standard viewport nicely ── */
.testimonial-card {
    /* 3 cards + 2 gaps in ~1280px: (1280 - 2*24 - 2*48) / 3 ≈ 378px */
    width: 378px;
    flex-shrink: 0;
    background-color: var(--off-white);
    border: 1px solid var(--beige-mid);
    border-radius: var(--radius-card);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
    cursor: default;
    user-select: none;
}

.testimonials-marquee:hover .testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 52px rgba(107, 143, 110, 0.14);
    border-color: rgba(91, 168, 160, 0.3);
}

.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    color: var(--gold);
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.72;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--beige-mid);
    margin-top: auto;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--green-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.testimonial-name {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--text-mid);
    margin-top: 0.125rem;
    line-height: 1.3;
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--off-white);
    border: 1.5px solid var(--beige-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-base);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: var(--teal);
    border-color: var(--teal);
    color: #fff;
    transform: scale(1.06);
}

.carousel-btn:active {
    transform: scale(0.96) !important;
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--beige-mid);
    transition:
        background-color var(--transition-base),
        transform var(--transition-base);
    border: none;
    cursor: pointer;
}

.carousel-dot.active {
    background-color: var(--teal);
    transform: scale(1.3);
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

/* ============================================================
   CTA FINAL SECTION
   ============================================================ */
.section-cta-final {
    padding-block: 6.5rem;
    background: linear-gradient(135deg,
            var(--teal) 0%,
            #4a9991 35%,
            #6B8F6E 65%,
            #3d8a83 100%);
    background-size: 300% 300%;
    animation: ctaGradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes ctaGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.section-cta-final::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -15%;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.section-cta-final::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

.cta-final-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.cta-final-title {
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.022em;
    line-height: 1.15;
    max-width: 22ch;
}

.cta-final-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.72;
    max-width: 50ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--text-dark);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-footer .logo-name {
    color: var(--off-white);
}

.logo-footer .logo-title {
    color: var(--teal);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin-top: 0.75rem;
    max-width: 34ch;
}

.footer-nav-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.25rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-base);
}

.footer-nav a:hover {
    color: var(--off-white);
}

.footer-nav a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-contact-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.68;
    margin-bottom: 1.25rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-made {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-anebi-link {
    display: inline-flex;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.footer-anebi-link:hover {
    transform: translateY(-1px);
}

.footer-anebi-logo {
    height: 30px;
    width: auto;
    display: block;
    opacity: 0.45;
    filter: brightness(1.2);
    transition: opacity var(--transition-base), filter var(--transition-base);
}

.footer-anebi-link:hover .footer-anebi-logo {
    opacity: 1;
    filter: brightness(1.5);
}

/* ============================================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --section-py: 4rem;
    }

    /* Hero: narrow the gradient breakpoint on tablet so photo still shows */
    .hero-bg-overlay {
        background: linear-gradient(90deg,
                var(--beige-bg) 0%,
                var(--beige-bg) 18%,
                rgba(245, 240, 232, 0.94) 30%,
                rgba(245, 240, 232, 0.72) 44%,
                rgba(245, 240, 232, 0.28) 60%,
                transparent 75%);
    }

    /* Para Quem: single column */
    .para-quem-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .para-quem-image-placeholder {
        aspect-ratio: 16 / 7;
        border-radius: 1rem;
        max-width: 560px;
    }

    /* Sobre: stack vertically — ordem: header → foto → body */
    .sobre-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .sobre-content-header {
        grid-column: 1;
        grid-row: auto;
        order: 1;
        padding: 2.5rem var(--container-px) 1rem;
    }

    .sobre-photo {
        grid-column: 1;
        grid-row: auto;
        order: 2;
        padding: 0 var(--container-px);
    }

    .sobre-photo-inner {
        min-height: 380px;
    }

    .sobre-content-body {
        grid-column: 1;
        grid-row: auto;
        order: 3;
        padding: 1.5rem var(--container-px) 2.5rem;
    }



    /* Capacitações: 2-column, last card full width */
    .capacitacoes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .cap-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 480px;
        justify-self: center;
        min-height: 280px;
    }

    .cap-card-featured {
        min-height: 420px;
    }

    /* Tambem: single column */
    .tambem-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .supervisao-card {
        min-height: auto;
    }

    /* Footer: 2-column */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --section-py: 3.5rem;
        --container-px: 1.25rem;
    }

    /* Keep logo visible on top of the fullscreen menu */
    .logo {
        position: relative;
        z-index: 101;
    }

    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    /* Mobile nav drawer (Fullscreen) */
    #main-nav {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        background-color: var(--off-white);
        z-index: 99;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transform: translateY(-100%);
        transition: transform var(--transition-slow);
        overflow-y: auto;
    }

    #main-nav.nav-open {
        transform: translateY(0);
    }

    .nav-overlay {
        display: block;
    }

    .nav-overlay.active {
        opacity: 1;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        width: 100%;
        margin-top: -3rem;
        /* Compensate for the close button space */
    }

    .nav-links li {
        width: 100%;
        border-bottom: none;
    }

    .nav-links a {
        display: inline-block;
        padding-block: 0.75rem;
        font-family: var(--font-serif);
        font-size: 1.75rem;
        color: var(--text-dark);
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 2rem;
        width: auto;
        min-width: 200px;
        text-align: center;
        justify-content: center;
    }

    /* ── Hero: mobile layout ──────────────────────────────── */
    .section-hero {
        padding-top: 5.5rem;
        padding-bottom: 2.5rem;
        min-height: auto;
        align-items: flex-start;
    }

    /* Hide desktop full-bleed photo and its gradient on mobile */
    .hero-bg-img,
    .hero-bg-overlay {
        display: none;
    }

    .hero-content-outer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    /* Show mobile photo box */
    .hero-photo-box {
        display: block;
        width: 92%;
        max-width: 420px;
        margin-inline: auto;
        position: relative;
        border-radius: 1.5rem;
        overflow: hidden;
        box-shadow:
            0 20px 56px -8px rgba(107, 143, 110, 0.18),
            0 4px 16px -4px rgba(44, 59, 45, 0.1);
    }

    .hero-photo-box-img {
        width: 100%;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        object-position: center 30%;
        display: block;
    }

    /* Gradient: sage top-left + gold bottom-right */
    .hero-photo-box-gradient {
        position: absolute;
        inset: 0;
        background: linear-gradient(145deg,
                rgba(107, 143, 110, 0.32) 0%,
                transparent 50%,
                rgba(201, 168, 118, 0.28) 100%);
        pointer-events: none;
    }

    /* Stats: centered on mobile */
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        column-gap: 1.25rem;
        row-gap: 0.75rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .stat-item {
        align-items: center;
        text-align: center;
    }

    .stat-divider {
        display: block;
        width: 1rem;
        position: relative;
    }

    .stat-divider::after {
        content: "";
        display: block;
        width: 1px;
        height: 1.5rem;
        /* Mais longo que o texto */
        background-color: var(--text-dark);
        opacity: 0.25;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* CTAs full-width, stacked */
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    /* Para quem: hide image on mobile */
    .para-quem-image {
        display: none;
    }

    .para-quem-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Capacitações: single column */
    .capacitacoes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cap-card-featured {
        margin-top: 0;
        min-height: auto;
    }

    .cap-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        justify-self: stretch;
    }

    .cap-card-featured {
        min-height: auto;
    }

    .cap-card {
        min-height: auto;
    }

    /* ── Testimonials: mobile carousel mode ───────────────── */

    /* 1. Kill the mask on mobile if preferred, or keep */
    .testimonials-marquee {
        mask-image: none;
        -webkit-mask-image: none;
        overflow: hidden;
        /* Negative margin + Padding to allow shadows to show without clipping */
        margin-inline: -1rem;
        padding-inline: 1rem;
        padding-block: 1rem;
        /* Padding for top/bottom shadows */
        margin-top: -1rem;
    }

    .testimonials-track {
        /* JS handles slideLeft, but keep max-content to allow cards to lay out */
        width: max-content;
        gap: 1.5rem;
    }

    /* 2. Each card fills roughly the viewport width, with a bit more breathing room */
    .testimonial-card {
        width: calc(100vw - (var(--container-px) * 2) - 0.5rem);
        flex-shrink: 0;
        transition: transform var(--transition-base), box-shadow var(--transition-base);
    }

    /* Section header: full width */
    .section-header {
        max-width: 100%;
    }

    /* Footer: single column, centered */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo-img-footer {
        margin-inline: auto;
    }

    .footer-nav ul {
        align-items: center;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
        padding-top: 2.5rem;
    }

    .footer-made {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* CTA */
    .cta-final-inner {
        padding-inline: 0.5rem;
    }
}

/* ============================================================
   RESPONSIVE — Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    :root {
        --section-py: 3rem;
        --container-px: 1rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .section-title,
    .section-title-light {
        font-size: 1.75rem;
    }

    /* Hero mobile photo: tighter aspect on very small screens */
    .hero-photo-box-img {
        aspect-ratio: 3 / 2;
    }

    .sobre-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .sobre-badge {
        flex-direction: row;
        min-width: auto;
        gap: 0.75rem;
        padding: 0.75rem 1.125rem;
    }

    .ebook-card {
        grid-template-columns: 64px 1fr;
        gap: 1rem;
    }

    .ebook-cover {
        width: 64px;
    }

    .section-depoimentos::before {
        font-size: 13rem;
    }

    .cta-final-title {
        font-size: 1.75rem;
    }
}