/* ═══════════════════════════════════════════════════════════════════════════
   ESCOLA TSI - LANDING PAGE PROFISSIONAL
   Mobile First | Premium Educational Design
   Refactored Version
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS & VARIABLES
   ─────────────────────────────────────────────────────────────────────────── */
:root {
    /* 🎨 BRAND COLORS */
    --clr-brand-primary: #002B49;
    /* Navy Blue - Authority */
    --clr-brand-secondary: #008743;
    /* Brand Green as Secondary/Action now */
    --clr-brand-blue-accent: #005691;
    /* Old secondary kept as accent */
    --clr-brand-green: #008743;
    /* Life Green - used for accents/checks */
    --clr-brand-green-light: #E6F0F9;
    /* Very light tint for backgrounds */

    /* 🔴 CONVERSION & ACCENTS */
    --clr-accent: #008743;
    /* Green for primary actions to match logo */
    --clr-accent-hover: #006b35;
    /* Darker Green */
    --clr-highlight: #FFD100;
    /* Gold - Awards/Stars */

    /* 🌑 NEUTRALS & SURFACES */
    --clr-text-main: #1A202C;
    --clr-text-body: #4A5568;
    --clr-text-muted: #718096;
    --clr-text-light: #A0AEC0;

    --clr-surface-0: #F7FAFC;
    /* Off-white */
    --clr-surface-50: #F8FAFC;
    /* Very subtle grey */
    --clr-surface-100: #FFFFFF;
    /* White */
    --clr-surface-200: #E2E8F0;
    /* Border/Divider */
    --clr-border: #CBD5E0;

    /* 📐 SPACING (Linear Scale) */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */

    /* ✒️ TYPOGRAPHY (Fluid Scale) */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Clamp(min, preferred, max) for fluid sizing */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: clamp(1.5rem, 4vw, 2rem);
    /* H3 */
    --text-3xl: clamp(2rem, 5vw, 2.5rem);
    /* H2 */
    --text-4xl: clamp(2.5rem, 6vw, 3.5rem);
    /* H1 */

    /* 🧩 UI ELEMENTS */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    --header-height: 90px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. RESET & BASE STYLES
   ─────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--clr-text-body);
    background-color: var(--clr-surface-0);
    overflow-x: hidden;
    padding-top: var(--header-height);
    /* Prevent content cutoff */
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ─────────────────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
li,
a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-brand-primary);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-4xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-3xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-4);
    max-width: 65ch;
    margin-inline: auto;
    /* Ensure centered in centered containers */
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-brand-primary) 0%, var(--clr-brand-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}

.text-center {
    text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. LAYOUT & UTILITIES
   ─────────────────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    padding: 0 clamp(1rem, 5vw, 2rem);
    margin: 0 auto;
    max-width: 1200px;
}

section {
    padding: var(--space-12) 0;
    /* Consistent vertical rhythm */
}

.bg-white {
    background-color: var(--clr-surface-100);
}

.bg-light {
    background-color: var(--clr-surface-0);
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. COMPONENTS (Buttons, Badges)
   ─────────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
    font-size: var(--text-base);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--clr-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background-color: var(--clr-accent-hover);
    color: white;
    /* Ensure text remains white */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 135, 67, 0.4);
    /* Green Glow */
}

.btn--outline {
    border: 2px solid var(--clr-brand-primary);
    color: var(--clr-brand-primary);
    background: transparent;
}

.btn--outline:hover {
    background-color: var(--clr-brand-primary);
    border-color: var(--clr-brand-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 43, 73, 0.2);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

.btn--xl {
    padding: var(--space-5) var(--space-10);
    font-size: 1.25rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-brand-secondary);
    background: var(--clr-brand-light);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--clr-text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. HEADER & NAV
   ─────────────────────────────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-surface-200);
    display: flex;
    align-items: center;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--clr-brand-primary);
    z-index: 1001;
    /* Above mobile menu overlay */
}

.header__logo img {
    height: clamp(40px, 8vw, 60px);
    width: auto;
    object-fit: contain;
    max-height: 100%;
}

/* Mobile Nav */
.header__nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    padding: var(--space-4);
    flex-direction: column;
    gap: var(--space-4);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-lg);

    /* Animation state */
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header__nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-main);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--clr-surface-200);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 24px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--clr-brand-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. HERO SECTION (PREMIUM REDESIGN)
   ─────────────────────────────────────────────────────────────────────────── */
.hero {
    background: #001a2e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--header-height) 0;
    color: white;
}

/* Sophisticated Orbs */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero__orb--1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 135, 67, 0.2);
    top: -10%;
    left: -5%;
    animation: floatOrb 15s infinite alternate ease-in-out;
}

.hero__orb--2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 86, 145, 0.3);
    bottom: -10%;
    right: -10%;
    animation: floatOrb 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, 40px) scale(1.1);
    }
}

.hero__visual-watermark {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    max-width: 300px;
    bottom: -5%;
    right: -5%;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.hero__trust-badges {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.trust-item {
    font-weight: 500;
}

/* Urgency Box */
.urgency-box {
    background: white;
    border-left: 6px solid #ff8f00;
    color: #c05621;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    margin: 0 auto 2.5rem;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.urgency-box p {
    margin: 0;
    font-weight: 800;
    font-size: 1.05rem;
    text-align: center;
}


/* PULSE ANIMATION FOR BUTTONS */
.pulse-btn {
    animation: pulse-green 2s infinite;
    box-shadow: 0 0 0 0 rgba(0, 135, 67, 0.7);
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 135, 67, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 135, 67, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 135, 67, 0);
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.trust-item span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Protagonist Visual - Centralized or Side on Desktop */
.hero__visual {
    margin-top: var(--space-10);
    animation: scaleUp 0.8s ease-out 0.4s backwards;
    width: 100%;
    max-width: 500px;
    /* Controlled width */
    display: flex;
    justify-content: center;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    /* Modern Shadow */
    overflow: hidden;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) scale(1.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.9;
    /* High visibility */
    transition: var(--transition);
    animation: fadeUp 1s ease-out 2s backwards;
    /* Delayed entry */
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 28px;
    height: 48px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
    margin-bottom: 8px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scrollWheel 1.5s infinite;
}

.arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: scrollArrow 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes scrollArrow {
    0% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translate(5px, 5px);
        opacity: 0;
    }
}

/* TYPING TEXT */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--clr-brand-green);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero__visual-img {
    width: 100%;
    height: auto;
    /* Clean look, no drop shadow unless it's a UI mockup */
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. STATS SECTION
   ─────────────────────────────────────────────────────────────────────────── */
.stats {
    background: var(--clr-brand-primary);
    color: white;
    padding: var(--space-8) 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cols mobile */
    gap: var(--space-6);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--clr-highlight);
    line-height: 1;
    margin-bottom: var(--space-1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. BENEFITS SECTION
   ─────────────────────────────────────────────────────────────────────────── */
.benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.benefit-card {
    background: var(--clr-surface-0);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-surface-200);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    /* Equal height */
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-border);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: #E8F5E9;
    /* Light Green */
    color: var(--clr-brand-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    flex-shrink: 0;
}

.benefit-title {
    margin-bottom: var(--space-2);
}

.benefit-text {
    flex-grow: 1;
    /* Pushes content down if needed */
    margin-bottom: 0;
    color: var(--clr-text-body);
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. HOW IT WORKS
   ─────────────────────────────────────────────────────────────────────────── */
.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.step {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-surface-200);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.step__number {
    width: 32px;
    height: 32px;
    background: var(--clr-brand-secondary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 4px;
    /* Align with title */
}

.how-it-works__cta {
    margin-top: var(--space-10);
    text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. COURSES GRID
   ─────────────────────────────────────────────────────────────────────────── */
.courses__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.course-category {
    background: white;
    border: 1px solid var(--clr-surface-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-category:hover {
    border-color: var(--clr-brand-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 135, 67, 0.15), 0 8px 10px -6px rgba(0, 135, 67, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

.category-price {
    display: block;
    margin-top: var(--space-4);
    font-weight: 600;
    color: var(--clr-brand-green);
    font-size: var(--text-sm);
    background: #E8F5E9;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    width: fit-content;
    align-self: flex-start;
}

.courses__cta {
    margin-top: var(--space-10);
    text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   12. DIFFERENTIALS & SOCIAL VISUAL
   ─────────────────────────────────────────────────────────────────────────── */
.differentials__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.differentials__list li {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.check-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: white;
    background: var(--clr-brand-green);
    border-radius: 50%;
    padding: 4px;
}

/* Visual Card */
.visual-card {
    background: var(--clr-brand-primary);
    color: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-top: var(--space-10);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

/* Abstract decoration */
.visual-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.visual-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.visual-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.visual-card__text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
}

.visual-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.visual-card__features span {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    backdrop-filter: blur(4px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. TESTIMONIALS
   ─────────────────────────────────────────────────────────────────────────── */
.testimonials__grid {
    display: grid;
    gap: var(--space-6);
}

.testimonial-card {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-surface-200);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-stars {
    color: var(--clr-highlight);
    letter-spacing: 2px;
    margin-bottom: var(--space-4);
}

.testimonial-text {
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--clr-surface-0);
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--clr-brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--text-sm);
}

.author-info strong {
    display: block;
    line-height: 1.2;
}

.author-info span {
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. FAQ
   ─────────────────────────────────────────────────────────────────────────── */
.faq__grid {
    display: grid;
    gap: var(--space-4);
}

.faq-item {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-surface-200);
}

.faq-question {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--clr-brand-primary);
}

.faq-answer {
    color: var(--clr-text-body);
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   15. CTA FINAL
   ─────────────────────────────────────────────────────────────────────────── */
.cta-final {
    text-align: center;
    background: var(--clr-surface-0);
}

.cta-final__badge {
    display: inline-block;
    margin-bottom: var(--space-4);
    color: var(--clr-accent);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-final__guarantees {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
    color: var(--clr-text-muted);
    font-size: var(--text-sm);
}

.guarantee {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.guarantee svg {
    width: 20px;
    height: 20px;
    color: var(--clr-brand-secondary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   16. FOOTER
   ─────────────────────────────────────────────────────────────────────────── */
.footer {
    background: #0F172A;
    color: #94A3B8;
    padding: var(--space-12) 0 var(--space-6);
    font-size: var(--text-sm);
}

.footer__content {
    display: grid;
    gap: var(--space-8);
    text-align: center;
}

.footer__brand .logo-text {
    color: white;
}

.footer h4 {
    color: white;
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer a:hover {
    color: white;
}

.footer__bottom {
    border-top: 1px solid #1E293B;
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    text-align: center;
    font-size: var(--text-xs);
    opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   17. MEDIA QUERIES (TABLET & DESKTOP)
   ─────────────────────────────────────────────────────────────────────────── */

/* Tablet (>= 768px) */
@media (min-width: 768px) {
    .scroll-indicator {
        display: none !important;
    }

    .hero__content {
        /* Centered layout for strong impact */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 900px;
        margin: 0 auto;
    }

    .hero__content>div {
        width: 100%;
    }

    .hero__text {
        align-items: center;
        /* Center align text elements */
        text-align: center;
    }

    /* Watermark positioning for tablet+ */
    .hero__visual-watermark {
        position: absolute;
        width: 450px;
        right: -8%;
        bottom: -15%;
        opacity: 0.08;
        z-index: 0;
    }

    .hero__ctas {
        justify-content: center;
        flex-direction: row;
        width: auto;
        max-width: none;
    }

    .hero__trust-badges {
        flex-direction: row;
        gap: var(--space-6);
        align-self: center;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .benefits__grid,
    .courses__grid,
    .testimonials__grid,
    .faq__grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-final__guarantees {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-8);
    }

    .footer__content {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {

    /* Header */
    .mobile-menu-btn {
        display: none;
    }

    .header__nav {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        padding: 0;
        border: none;
        background: none;
        box-shadow: none;
        opacity: 1;
        transform: none;
        gap: var(--space-6);
        align-items: center;
        /* CRITICAL: Aligns links and button vertically */
        height: 100%;
        /* Ensure it takes full height of header if needed, or auto */
    }

    .nav-link {
        padding: 8px 20px;
        border: 1px solid var(--clr-surface-200);
        /* Subtle separation border */
        border-radius: 50px;
        /* Pill shape */
        color: var(--clr-text-body);
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .nav-link:hover {
        color: var(--clr-brand-primary);
        border-color: var(--clr-brand-primary);
        background-color: rgba(0, 86, 145, 0.05);
        /* Subtle tint */
    }

    /* Layouts */
    .benefits__grid,
    .courses__grid,
    .testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        flex-direction: row;
        gap: var(--space-4);
    }

    .step {
        flex: 1;
        flex-direction: column;
        gap: var(--space-4);
    }

    .step__number {
        margin: 0;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .differentials__content {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: var(--space-12);
        align-items: center;
    }

    .visual-card {
        margin-top: 0;
    }

    .footer__content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   18. LEAD CAPTURE FORM
   ═══════════════════════════════════════════════════════════════════════════ */
.lead-capture {
    background: var(--clr-brand-primary);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.lead-capture__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

/* Copy Side */
.lead-capture__copy {
    color: white;
    text-align: center;
}

.lead-capture__title {
    color: white;
    margin-bottom: var(--space-4);
}

.lead-capture__copy img {
    max-height: 50px;
    width: auto;
}

.lead-capture__text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
}

.lead-capture__benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.lead-capture__benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.lead-capture__benefits svg {
    color: var(--clr-highlight);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Form Side */
.lead-form-card {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.iframe-container {
    min-height: 500px;
    width: 100%;
}

.lead-form__header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.lead-form__title {
    font-size: var(--text-xl);
    color: var(--clr-brand-primary);
    margin-bottom: var(--space-2);
}

.lead-form__subtitle {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--clr-text-main);
}

.form-input {
    width: 100%;
    height: 48px;
    /* Touch target */
    padding: 0 var(--space-4);
    border: 2px solid var(--clr-surface-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-base);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-brand-secondary);
    box-shadow: 0 0 0 3px var(--clr-brand-light);
}

.form-submit {
    width: 100%;
    margin-top: var(--space-4);
}

.form-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
}

.form-security svg {
    width: 14px;
    height: 14px;
}

/* Tablet & Desktop Refinements */
@media (min-width: 768px) {
    .lead-capture__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }

    .lead-capture__copy {
        text-align: center;
    }

    .lead-capture__benefits {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ========================================
   TRAIL CARDS - MODELO OFICIAL CLIENTE
   ======================================== */
.trail-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border-left: 6px solid var(--clr-brand-green);
}

.trail-card__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.trail-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.trail-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.trail-card__content {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Trail Color Variations */
.trail-card--fast {
    border-left-color: #2196F3;
}

.trail-card--blue {
    border-left-color: #2196F3;
}

.trail-card--yellow {
    border-left-color: #FBC02D;
}

.trail-card--red {
    border-left-color: #D32F2F;
}

.trail-card--fast .trail-card__icon {
    background: #2196F3;
    color: white;
}

.trail-card--blue .trail-card__icon {
    background: #2196F3;
    color: white;
}

.trail-card--yellow .trail-card__icon {
    background: #FBC02D;
    color: white;
}

.trail-card--red .trail-card__icon {
    background: #D32F2F;
    color: white;
}

.trail-card--fast .trail-card__title {
    color: #1565C0;
}

.trail-card--blue .trail-card__title {
    color: #1565C0;
}

.trail-card--yellow .trail-card__title {
    color: #F57F17;
}

.trail-card--red .trail-card__title {
    color: #B71C1C;
}

/* URGENCY BOX */
.urgency-box {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFE69C 100%);
    border: 2px solid #FFC107;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.urgency-box p {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #5A5A1A;
}

/* CTA GREEN BUTTON */
.btn--cta-green {
    background: var(--clr-brand-green) !important;
    border-color: var(--clr-brand-green) !important;
}

.btn--cta-green:hover {
    background: var(--clr-accent-hover) !important;
    transform: translateY(-2px);
}

.btn--xl {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* TESTIMONIAL SUBTITLE */
.testimonial-subtitle {
    font-size: 0.875rem;
    color: var(--clr-brand-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* METHODOLOGY SECTION */
.methodology {
    padding: var(--space-16) 0;
}

.methodology-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.methodology-intro p {
    font-size: clamp(1rem, 3vw, 1.125rem);
    line-height: 1.8;
    color: var(--clr-text-body);
    margin-bottom: 1.5rem;
}

/* TRAIL IDENTIFICATION */
.trail-identification {
    padding: var(--space-16) 0;
    background-color: #f8fafc;
    /* Subtle contrast for white cards */
}

.trail-id-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.trail-id-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--clr-brand-secondary);
}

.trail-id-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    /* Squircle style icon */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.trail-id-card:hover .trail-id-icon {
    transform: scale(1.1) rotate(5deg);
}

.trail-id-card.blue .trail-id-icon {
    background: #e3f2fd;
    color: #2196f3;
}

.trail-id-card.yellow .trail-id-icon {
    background: #fff9c4;
    color: #fbc02d;
}

.trail-id-card.red .trail-id-icon {
    background: #ffebee;
    color: #d32f2f;
}

.trail-id-card h3 {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    color: var(--clr-brand-primary);
    line-height: 1.4;
    font-weight: 800;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
}

.trail-id-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.trail-id-card.blue .trail-id-badge {
    background: #2196f3;
    color: white;
}

.trail-id-card.yellow .trail-id-badge {
    background: #fbc02d;
    color: white;
}

.trail-id-card.red .trail-id-badge {
    background: #d32f2f;
    color: white;
}

/* WHY TSI */
.why-tsi {
    padding: var(--space-16) 0;
}

.why-tsi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.why-tsi__item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: start;
    gap: 1rem;
    height: 100%;
}

.why-tsi__item-icon {
    color: var(--clr-brand-green);
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.why-tsi__item-title {
    font-size: 1.125rem;
    color: var(--clr-brand-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* LOCAL MARKET */
.local-market {
    padding: var(--space-16) 0;
}

@media (max-width: 768px) {
    .trail-card__header {
        flex-direction: column;
        text-align: center;
    }

    .trail-card__title {
        font-size: 1.25rem;
    }

    .btn--xl {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}



/* ========================================
   19. RESPONSIVE REFINEMENTS & FIXES
   ======================================== */

/* Global Text Safety */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Fluid Spacing */
section {
    padding: clamp(3rem, 10vw, 6rem) 0;
}

/* Hero Section - Consolidated and Flexible */
.hero {
    background: linear-gradient(135deg, #002b49 0%, #004b79 50%, #00a859 100%) !important;
    min-height: 100vh !important;
    height: auto !important;
    padding: calc(var(--header-height) + 2rem) 0 4rem !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    color: white !important;
}

.hero__badge {
    background: #FF8F00 !important;
    color: white !important;
    font-weight: 800 !important;
    padding: 0.6rem 1.5rem !important;
    box-shadow: 0 4px 15px rgba(255, 143, 0, 0.4) !important;
    border-radius: 100px !important;
    display: inline-block !important;
    margin-bottom: 2rem !important;
    font-size: var(--text-sm) !important;
}

.hero__title {
    font-size: clamp(2rem, 8vw, 4.2rem) !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1.5rem !important;
}

.hero__subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem) !important;
    max-width: 700px !important;
    margin-bottom: 2.5rem !important;
    opacity: 0.9 !important;
}

/* Grid System - Mobile First */
.trails-grid,
.stats__grid,
.testimonials__grid,
.faq__grid,
.trail-id-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    width: 100%;
}

@media (min-width: 640px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .trails-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trail-id-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Refinements */
.trail-card {
    padding: clamp(1.5rem, 5vw, 2.5rem) !important;
    height: 100%;
}

.trail-card__title {
    font-size: clamp(1.1rem, 3vw, 1.5rem) !important;
    line-height: 1.3 !important;
}

/* Lead Capture Form Responsiveness */
.lead-capture__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 992px) {
    .lead-capture__grid {
        grid-template-columns: 1fr 1fr;
    }

    .lead-capture__copy {
        text-align: center !important;
    }
}

.iframe-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
}

/* Footer Fix */
.footer__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer__main {
        grid-template-columns: 2fr 1fr;
        text-align: center;
    }
}

.footer__brand-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .footer__brand-header {
        justify-content: center;
    }
}

/* Final Word Break Enforcement */
.trail-card--yellow .trail-card__title {
    word-break: break-word !important;
}

/* Urgency Box Responsive Width */
.urgency-box {
    width: 100% !important;
    max-width: 800px !important;
    margin: 2rem auto !important;
}

/* Vacancy Box Responsive */
.vacancy-count {
    font-size: clamp(3.5rem, 15vw, 5rem) !important;
}

/* Navigation Pillar shape */
.nav-link {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero__ctas {
        flex-direction: column !important;
        width: 100%;
    }

    .hero__ctas .btn {
        width: 100% !important;
    }
}