/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    /* Deep Teal & Gold Palette */
    --primary: #e5cc80; /* Lighter gold matching logo */
    --primary-light: #f4e3aa;
    --primary-dark: #bba255;
    --primary-glow: rgba(229, 204, 128, 0.4);

    --secondary: #0b3b3c;
    /* Deep Teal */

    --white: #ffffff;
    --light-bg: #f4f9f9;
    --light-gray: #eaf1f1;
    --border: #d3dfdf;

    --text-main: #1a2b2b;
    --text-muted: #536b69;
    --dark: #072526;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    /* Elegant serif */
    --font-body: 'Outfit', sans-serif;
    /* Modern sans */

    /* Transition & Spacing */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --border-radius-pill: 50px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* Previne scroll horizontal no Safari iOS */
}

body {
    overflow-x: hidden;
    overflow-x: clip; /* Fallback mais forte: clip não cria scroll context no Safari iOS */
    width: 100%;
    position: relative;
}

/* Custom Scrollbar - Chrome/Edge/Safari */
::-webkit-scrollbar {
    width: 5px; /* A menor e mais fina possível */
    height: 5px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-main); /* Camuflagem ativa de fundo sem espaçar */
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary); /* Rosa exato */
    border-radius: 50px; /* 100% arredondado nas pontas */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark);
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;

    /* Anti-Copy & Select Protections */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Block image dragging */
img {
    -webkit-user-drag: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-sm {
    max-width: 900px;
}

.section-padding {
    padding: 1.5rem 0 3rem 0; /* Espaço superior e inferior reduzidos */
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
.subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2rem;
}

.subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 2px;
    background-color: var(--primary);
}

.section-header {
    margin-bottom: 2rem;
}

.section-header.align-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.header-desc {
    max-width: 600px;
    font-size: 1.1rem;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #c4a137, var(--primary));
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 20px rgba(229, 204, 128, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), #c4a137);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(229, 204, 128, 0.5);
}

.btn-secondary {
    background-color: var(--dark);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #333;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #c4a137, var(--primary));
    color: var(--white);
    border-color: transparent !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.large-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* WhatsApp Pulse Animation */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 1040px; /* Slimmer max-width for an elegant pill */
    padding: 0.85rem 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Perfect Glass Pill */
    border-radius: 60px;
    background: rgba(11, 59, 60, 0.95); /* Cor forte padrão igual as demais seções */
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: none; /* Removed static white border */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.navbar .container.nav-content {
    padding: 0 1.5rem; /* Forces content perfectly away from rounded edges */
}

.navbar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 62px;
    padding: 2px;
    background: conic-gradient(from var(--glow-angle),
            transparent 0%,
            transparent 70%,
            var(--primary) 95%,
            transparent 100%
        );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spinGlow 6s linear infinite;
    z-index: -1;
    pointer-events: none;
    transition: all 0.5s ease;
    opacity: 0.5; /* Subtler, elegant neon trace */
}

.navbar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 62px;
    padding: 4px; /* Thicker strip for the blur to act upon */
    background: conic-gradient(from var(--glow-angle),
            transparent 0%,
            transparent 70%,
            var(--primary) 95%,
            transparent 100%
        );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: blur(6px); /* Creates the neon tube glow effect */
    animation: spinGlow 6s linear infinite;
    z-index: -2;
    pointer-events: none;
    transition: all 0.5s ease;
    opacity: 0.7; /* Visible rotating glow */
}

/* Hover do navbar APENAS em dispositivos com cursor (PC), não no touch/mobile */
@media (hover: hover) {
    .navbar:hover {
        background: rgba(11, 59, 60, 0.98);
        box-shadow: 0 15px 50px rgba(212, 175, 55, 0.6), 0 0 20px rgba(212, 175, 55, 0.3);
    }

    .navbar.scrolled:hover {
        box-shadow: 0 15px 50px rgba(212, 175, 55, 0.6), 0 0 20px rgba(212, 175, 55, 0.3);
    }

    .navbar:hover::before {
        opacity: 1;
    }

    .navbar:hover::after {
        opacity: 0;
    }
}

/* Glow controlado via JS ao abrir/fechar menu no mobile */
.navbar.menu-open,
.navbar.scrolled.menu-open {
    background: rgba(11, 59, 60, 0.98);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.navbar.menu-open::before {
    opacity: 1;
}

.navbar.menu-open::after {
    opacity: 0;
}

.navbar.scrolled {
    top: 15px;
    background: rgba(11, 59, 60, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 0.65rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 46px; /* Reverts to original math to prevent header bloating */
    width: auto;
    display: block;
    transform: scale(1.12); /* Sutilmente maior (12%) sem afetar a pílula inteira */
    transform-origin: left center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/* Liquid Glass Edge Glow Properties */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spinGlow {
    0% {
        --glow-angle: 0deg;
    }

    100% {
        --glow-angle: 360deg;
    }
}

@media (min-width: 769px) {
    .navbar {
        top: 15px; /* Tighter to the top on desktop only */
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 0.2rem;
        padding: 0.25rem 0.5rem;
        background: transparent;
        border: none;
        box-shadow: none;
        transition: var(--transition);
        z-index: 1;
    }
}

.nav-links a:not(.mobile-nav-cta) {
    font-weight: 500;
    color: var(--primary); /* Gold text on dark teal */
    font-size: 0.95rem;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:not(.mobile-nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 3px;
    background-color: var(--primary);
    box-shadow: none;
    transition: all 0.3s ease;
    opacity: 0;
}

.nav-links a:not(.mobile-nav-cta):hover {
    color: var(--primary); 
    text-shadow: none;
    background-color: transparent;
}

.nav-links a:not(.mobile-nav-cta):hover::after {
    width: 65%;
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--primary); /* Pink hamburger menu for mobile */
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.menu-toggle:active {
    transform: scale(0.85);
    /* Satisfying squash effect when pressing */
}

/* New active state styling that triggers via JS toggling class */
.menu-toggle.active {
    background-color: var(--primary-glow);
    color: var(--primary);
}

.menu-toggle i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Playful spring rotation */
}

.menu-toggle.active i {
    transform: rotate(90deg) scale(1.1);
}

.mobile-nav-cta {
    display: none;
}

/* ==========================================================================
   Navigation CTA Button (Desktop)
   ========================================================================== */
@media (min-width: 769px) {
    .nav-cta.btn-outline {
        background: linear-gradient(135deg, #c4a137, var(--primary));
        color: var(--white);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
        border: none;
        padding: 0.55rem 1.6rem; /* Compact padding for taller pill */
        font-size: 0.9rem;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1;
    }

    .nav-cta.btn-outline::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s ease;
        z-index: -1;
    }

    .nav-cta.btn-outline:hover {
        background: linear-gradient(135deg, var(--primary), #c4a137);
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 10px 25px rgba(229, 204, 128, 0.6);
        color: var(--white);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .nav-cta.btn-outline:hover::before {
        left: 100%;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center right;
    background-attachment: fixed;
    padding-top: 5rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Ensures it binds perfectly to parent without height flow calculation bugs */
    background: linear-gradient(to right, rgba(11, 59, 60, 0.95) 0%, rgba(11, 59, 60, 0.7) 60%, rgba(11, 59, 60, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(11, 59, 60, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary); /* Texto na cor rosa do site */
    padding: 0.45rem 1.2rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 700; /* Slightly bolder since it is colored */
    margin-top: 1.5rem; /* Helps distance the element downwards from the sticky header */
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(229, 204, 128, 0.3);
    animation: badgeBreathe 2s infinite; /* Faster for a pulse */
}

.badge i {
    color: var(--primary);
    font-size: 1.1rem;
    animation: iconPinBounce 2s ease-in-out infinite; 
}

@keyframes badgeBreathe {
    0% { 
        box-shadow: 0 4px 10px rgba(229, 204, 128, 0.15), 0 0 0 0 rgba(229, 204, 128, 0.4); 
        background-color: rgba(11, 59, 60, 0.5);
    }
    70% { 
        box-shadow: 0 4px 10px rgba(229, 204, 128, 0.15), 0 0 0 10px rgba(229, 204, 128, 0); 
        background-color: rgba(11, 59, 60, 0.65);
    }
    100% { 
        box-shadow: 0 4px 10px rgba(229, 204, 128, 0.15), 0 0 0 0 rgba(229, 204, 128, 0); 
        background-color: rgba(11, 59, 60, 0.5);
    }
}

@keyframes iconPinBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.hero .headline {
    font-size: 4.5rem; 
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white); /* White text contrasting dark teal overlay */
    font-weight: 800;
    letter-spacing: -2px; 
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero .headline span {
    font-family: var(--font-heading); /* Reverts to the magnificent Playfair */
    font-size: 1.05em;
    font-style: italic;
    font-weight: 700;
    display: inline-block;
    position: relative;
    padding-left: 0.6rem; /* Fully shields the overhang clipping for italic 'A' on all viewports */
    margin-left: -0.6rem; 
    padding-right: 0.5rem;
    margin-right: -0.2rem; /* Just extra safety logic */
    
    /* Liquid Aurora Gradient Mask */
    background: linear-gradient(
        -45deg, 
        var(--primary-dark) 0%, 
        var(--primary) 20%, 
        var(--primary-light) 40%, 
        #ffffff 50%,     /* The piercing metallic shine stop */
        var(--primary-light) 60%, 
        var(--primary) 80%,
        var(--primary-dark) 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text; /* Added for standard browser compatibility */
    -webkit-text-fill-color: transparent;
    animation: liquidAurora 6s ease-in-out infinite;
    z-index: 2; 
}

/* Liquid Aura Drop Shadow - Duplicates the exact word geometry for a perfect glowing blur */
.hero .headline span::before {
    content: attr(data-text); /* Gets the word 'Autoestima' directly from HTML */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    
    /* Matches exactly to create synchronized light emission */
    background: linear-gradient(
        -45deg, 
        var(--primary-dark) 0%, 
        var(--primary) 20%, 
        var(--primary-light) 40%, 
        #ffffff 50%,
        var(--primary-light) 60%, 
        var(--primary) 80%,
        var(--primary-dark) 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text; /* Added for standard browser compatibility */
    -webkit-text-fill-color: transparent;
    filter: blur(12px); /* High-end diffuse glow */
    opacity: 0.85;
    animation: liquidAurora 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidAurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero .subheadline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85); /* Light text on dark overlay */
    margin-bottom: 1.2rem; /* Reduzido de 2.5rem para subir o botão */
}

/* ==========================================================================
   Hero Graphic (Aesthetic Side Animation)
   ========================================================================== */
.hero-graphic {
    position: relative;
    width: 45%; /* Occupy the right side of the flex container */
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.aesthetic-canvas {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Atmospheric Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px); /* Massive diffusion for ambient lighting */
    opacity: 0.65;
    animation: orbFloat 8s infinite alternate ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.orb-pink {
    width: 320px;
    height: 320px;
    background: var(--primary);
    top: 5%;
    right: -15%; /* Pushed deep right */
    animation-delay: 0s;
}

.orb-peach {
    width: 250px;
    height: 250px;
    background: #ffb6c1; /* Soft clinic rosa */
    bottom: 10%;
    right: 15%; /* Shifted from left alignment to right alignment */
    animation-delay: -4s;
    animation-duration: 10s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 50px) scale(1.15); }
}

/* Floating Elements Layout */
.float-item {
    position: absolute;
    z-index: 2;
    animation: pillFloat 4s infinite ease-in-out alternate;
}

.float-1 { top: 20%; right: -10%; animation-delay: 0s; } /* Pushed further over */
.float-2 { top: 45%; right: 10%; animation-delay: -1.5s; animation-duration: 5s; } /* Moved from far left to right-heavy */
.float-3 { bottom: 15%; right: -5%; animation-delay: -3s; animation-duration: 4.5s; } /* Shifted right */

@keyframes pillFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(2deg); }
}

.premium-glass-pill {
    display: flex;
    align-items: center;
    gap: 1rem; /* Increased space between icon and text */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
    padding: 1.2rem 2.2rem; /* Noticeably fatter padding */
    border-radius: 60px; /* Ensured perfect pill rounding at bigger scale */
    font-size: 1.25rem; /* Noticeably larger text */
    font-weight: 700;
    color: var(--dark); /* Reverted to classic dark text for optimal readability */
    letter-spacing: 0.2px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    white-space: nowrap; /* Prevent breaking lines inside the badges */
}

.premium-glass-pill i {
    font-size: 1.85rem; /* Larger icon to match the new text scale */
    color: var(--primary);
    animation: iconGlowPulse 2.5s infinite alternate ease-in-out;
}

@keyframes iconGlowPulse {
    0% { filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.3)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 15px rgba(212, 175, 55, 1)); transform: scale(1.1); }
}

.premium-glass-pill:hover {
    transform: scale(1.05) translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25);
}

@media (max-width: 992px) {
    /* Transform to a stacked layout for tablets and smartphones */
    .hero-content {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
    }

    .hero-graphic {
        width: 100%;
        height: auto;
        padding-top: 1rem;
        display: flex;
        justify-content: center;
    }

    .aesthetic-canvas {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.2rem; /* Puts exactly the right space between the stacked pills */
    }

    /* Shrink the atmospheric background lights and center them perfectly behind the column */
    .orb-pink { 
        width: 250px; height: 250px; 
        top: 50%; left: 50%; right: auto; margin-top: -125px; margin-left: -125px;
        animation: none; 
    }
    .orb-peach { 
        width: 200px; height: 200px; 
        top: 50%; left: 50%; right: auto; margin-top: -100px; margin-left: -100px;
        animation: none; 
    }

    /* Convert elements to relative stacking blocks */
    .float-item {
        position: relative;
    }

    /* Assign unique asymmetric animations to each pill to mimic natural floating physics */
    .float-1 { animation: pillFloatMobile1 4s infinite alternate ease-in-out; }
    .float-2 { animation: pillFloatMobile2 5s infinite alternate ease-in-out -1.5s; }
    .float-3 { animation: pillFloatMobile3 4.5s infinite alternate ease-in-out -3s; }
    
    .float-1, .float-2, .float-3 {
        top: auto; left: auto; right: auto; bottom: auto;
    }

    @keyframes pillFloatMobile1 {
        0% { transform: translateY(0px) rotate(0deg); }
        100% { transform: translateY(-8px) rotate(2deg); }
    }
    @keyframes pillFloatMobile2 {
        0% { transform: translateY(0px) rotate(0deg); }
        100% { transform: translateY(-10px) rotate(-2.5deg); }
    }
    @keyframes pillFloatMobile3 {
        0% { transform: translateY(0px) rotate(0deg); }
        100% { transform: translateY(-7px) rotate(1.5deg); }
    }

    .premium-glass-pill {
        padding: 0.9rem 1.6rem;
        font-size: 1.05rem;
        border-radius: 40px;
        gap: 0.6rem;
    }

    .premium-glass-pill i {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 20px 20px 200px 20px;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--primary);
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.experience-card .years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.experience-card .text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.about-list {
    margin-top: 1.5rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 1.05rem;
}

.about-list i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--border);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    opacity: 1;
    transition: opacity 0.4s ease;
    justify-content: center;
    /* Helper for odd-rows */
}

/* Force bottom cards to perfectly center on large screens */
@media (min-width: 1024px) {
    .services-grid>.last-line-centered {
        grid-column: 2 / span 1;
    }
}

.services-grid.hidden {
    display: none !important;
    /* Immediately removes layout blocks to avoid grid reflow */
    opacity: 0;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: center;
    /* Expands gracefully from the center now */
    transition: transform 0.4s ease;
}

.service-card:hover,
.service-card.mobile-active {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before,
.service-card.mobile-active::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    /* Updated directly to exact Logo RGB */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    /* Perfect auto horizontal centering */
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .card-icon,
.service-card.mobile-active .card-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    background-color: var(--white);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.feature-text h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    margin: 0;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover,
.testimonial-card.mobile-active {
    border-bottom-color: var(--primary);
    transform: translateY(-5px);
}

.quote-icon {
    color: rgba(229, 204, 128, 0.25);
    font-size: 4rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.review {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--secondary);
}

.patient-info h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.stars {
    color: #FFD700;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
    position: relative;
    padding: 3rem 0 1.5rem 0;
    background-image: url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 59, 60, 0.9) 0%, rgba(11, 59, 60, 0.75) 50%, rgba(11, 59, 60, 0.9) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-content h2 span {
    color: var(--primary);
    font-style: italic;
}

.cta-content p {
    color: #ddd;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.85rem !important;
    color: #aaa !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
}

.footer-brand p {
    color: var(--secondary);
    /* White/Soft pink to contrast the primary background */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 300px;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
    font-weight: 600;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--white);
    font-size: 1.2rem;
    margin-top: 3px; /* Optically aligns icon with the first line of text */
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    margin-top: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary);
    /* Contrast on hover */
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: var(--dark);
    /* Deepest teal for the bottom */
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.ynext {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.ynext a {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.ynext a:hover {
    transform: scale(1.05);
}

.ynext img {
    height: 30px;
    width: auto;
}

/* ==========================================================================
   Animations (Scroll Reveal)
   ========================================================================== */
.fade-up,
.fade-in,
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up {
    transform: translateY(30px);
}

.reveal-up {
    transform: translateY(40px);
}

.fade-in {
    opacity: 0;
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.fade-up.active,
.reveal-up.active,
.fade-in.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Hidden by default on PC */
.mobile-section-title {
    display: none;
}

/* ==========================================================================
   Antes e Depois (Resultados Reais)
   ========================================================================== */
.before-after {
    padding-top: 2rem;
    padding-bottom: 2.2rem; /* Aumentado levemente o espaço do final da seção no PC */
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.ba-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.ba-images-container {
    display: flex;
    width: 100%;
    height: 350px;
}

.ba-img {
    position: relative;
    width: 50%;
    height: 100%;
}

.ba-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-pill);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.after-badge {
    left: auto;
    right: 15px;
    background: linear-gradient(135deg, #c4a137, var(--primary));
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 15px rgba(229, 204, 128, 0.3);
}

.ba-content {
    padding: 1.8rem;
    text-align: center;
}

.ba-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--primary); /* Rosa do site */
}

/* Awesome effect for the new button */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c4a137, var(--primary));
    color: var(--white);
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 25px rgba(229, 204, 128, 0.4);
    padding: 1.1rem 2.2rem; /* Botão um pouco maior no PC */
    font-size: 1rem; /* Fonte um pouco maior no PC */
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--border-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-shimmer:hover {
    background: linear-gradient(135deg, var(--primary), #c4a137);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(229, 204, 128, 0.5);
    color: var(--white);
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shimmerSlide 3.5s infinite;
}

@keyframes shimmerSlide {
    0% { left: -150%; }
    100% { left: 250%; }
}

/* ==========================================================================
   Como Funciona (A Jornada)
   ========================================================================== */
.steps-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    z-index: 0;
}

.step-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    z-index: 1;
}

.step-number {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--white);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.step-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
    position: relative;
    border: 3px solid var(--white);
}

.how-it-works {
    padding-bottom: 2rem; /* Reduzindo espaço do final da seção */
}

.step-content {
    background: var(--white);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    flex-grow: 1;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.step-content:hover,
.step-content.mobile-active {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(229, 204, 128, 0.65), 0 0 20px rgba(229, 204, 128, 0.3);
    border-color: rgba(229, 204, 128, 0.5);
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--primary); /* Rosa do site */
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 1.5rem auto 0; /* Reduzido o espaço da sub-headline para o primeiro card */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--primary-glow); /* Efeito de glow leve rosa ao redor dos cards */
    border: 1px solid rgba(212, 175, 55, 0.08); /* Borda com leve cor combinando */
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question i {
    color: var(--primary);
    font-size: 1.4rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active {
    box-shadow: 0 10px 30px var(--primary-glow); /* Mantém e fortece o brilho ao clicar */
    border-color: rgba(212, 175, 55, 0.2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero .headline {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        border-radius: 20px;
    }

    .about-image img {
        height: 400px;
    }

    .experience-card {
        bottom: 20px;
        left: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {

    .hero .subheadline {
        margin-bottom: 2.5rem; /* Restaura espaço original apenas no mobile */
    }

    .before-after {
        padding-bottom: 2rem; /* Espaço do final da seção maior no mobile */
    }

    .btn-shimmer {
        padding: 1rem 2.2rem; /* Botão um pouco maior no mobile */
        font-size: 1rem;
    }

    .experience-card {
        padding: 1.2rem 1.6rem;
        gap: 0.8rem;
        transform: scale(0.9);
        transform-origin: bottom left;
    }

    .navbar {
        width: auto !important;
        left: 15px !important;
        right: 15px !important;
        transform: none !important;
    }

    /* Force comprehensive centering on mobile (excluding footer) */
    .hero-text, 
    .about-content, 
    .section-header, 
    .cta-content, 
    .feature-item,
    .testimonial-card {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center !important;
    }
    
    .hero-actions, .cta-buttons {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .about-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-list li {
        justify-content: center;
    }

    .about-image img {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
    }

    .patient-info {
        justify-content: center !important;
        width: 100%;
    }

    /* End generic mobile centering rules */

    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        background-position: center;
        background-attachment: scroll;
        min-height: 100vh;
        /* Fallback for browsers that don't support svh */
        min-height: 100svh;
        padding-top: 7rem; /* Rebalanced to lower the content slightly so it's not glued to the top */
        padding-bottom: 3rem;
    }

    .hero .headline {
        font-size: 2.5rem;
    }

    .hero-overlay {
        background: linear-gradient(to right, rgba(11, 59, 60, 0.95) 0%, rgba(11, 59, 60, 0.8) 100%);
    }

    .footer {
        padding-top: 1.5rem; /* Significantly reduce empty space at the top of the footer */
    }

    .section-padding {
        padding: 1rem 0 2rem 0; /* Extra espaço reduzido no mobile */
    }

    .services {
        padding-top: 2.2rem; /* Aumenta um pouco o espaço do início da seção Tratamentos no mobile */
    }

    .faq-section {
        padding-top: 2.5rem; /* Aumenta um pouco o espaço inicial da seção FAQ apenas no mobile */
    }

    .section-header {
        margin-bottom: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem; /* Reduced to ensure 'Atendimento Personalizado' fits on a single line */
    }

    /* On Mobile, hide the tab buttons entirely to just stack the content */
    .services-tabs {
        display: none !important;
    }

    .mobile-section-title {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 2.5rem 0 1.5rem 0; /* Reduz bastante a distância do titulo e o final da sessão anterior de Tratamentos */
    }

    .mobile-section-title span {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        color: var(--primary);
        font-weight: 700;
        background: rgba(212, 175, 55, 0.04);
        padding: 0.6rem 1.8rem;
        border-radius: 50px;
        border: 2px solid rgba(212, 175, 55, 0.3);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
        position: relative;
        overflow: hidden;
        white-space: nowrap;
        animation: mobileTitleFloat 3s ease-in-out infinite;
    }

    /* Shiny animated reflection beam */
    .mobile-section-title span::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100px;
        width: 50px;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
        transform: skewX(-20deg);
        animation: mobileTitleShine 3s infinite;
        pointer-events: none;
    }

    @keyframes mobileTitleFloat {

        0%,
        100% {
            transform: translateY(0);
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
        }

        50% {
            transform: translateY(-8px);
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
        }
    }

    @keyframes mobileTitleShine {

        0%,
        20% {
            left: -100px;
        }

        100% {
            left: 150%;
        }
    }

    /* On Mobile, force BOTH service grids to display stacked, overriding JS 'hidden' class */
    .services-grid.tab-content,
    .services-grid.tab-content.hidden {
        display: grid !important;
        opacity: 1 !important;
        margin-bottom: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem; /* Reduced so 'Pronta Para Viver a' fully fits horizontally without early breaks */
    }

    /* Mobile Menu styles when active can be added here or via JS class insertion */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;
        background-color: var(--secondary);
        border-radius: 20px;
        border: 1px solid rgba(229, 204, 128, 0.3); /* Subtle gold framing */
        padding: 2rem;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        gap: 0.8rem;
        
        /* Premium Open Animation */
        transform-origin: top center;
        animation: menuSlideFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes menuSlideFade {
        0% { opacity: 0; transform: translateY(-15px) scale(0.97); }
        100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    .nav-links.active a:not(.mobile-nav-cta) {
        color: var(--primary);
        font-size: 1.15rem;
        font-weight: 600;
        text-align: center;
        padding: 0.9rem 1.5rem;
        border-radius: 14px;
        background-color: rgba(255, 255, 255, 0.05); /* Escurece para o verde */
        border: 1px solid rgba(229, 204, 128, 0.15); /* Gold outline */
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        width: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active a:not(.mobile-nav-cta):active,
    .nav-links.active a:not(.mobile-nav-cta):hover {
        color: var(--white);
        background: linear-gradient(135deg, #c4a137, var(--primary));
        border-color: transparent;
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 8px 25px rgba(229, 204, 128, 0.35);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active a:not(.mobile-nav-cta):hover::after,
    .nav-links.active a:not(.mobile-nav-cta):active::after {
        display: none;
    }

    .mobile-nav-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
        font-weight: 600;
        font-size: 1.1rem;
        text-align: center;
        border-radius: var(--border-radius-pill);
        background: linear-gradient(135deg, #c4a137, var(--primary));
        color: var(--white) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
        box-shadow: 0 4px 15px rgba(229, 204, 128, 0.4);
    }

    /* Remove the default underline hover effect from this specific button */
    .mobile-nav-cta::after {
        display: none !important;
    }

}

@media (max-width: 480px) {
    .hero .headline {
        font-size: 2rem;
    }

    .footer-bottom p {
        font-size: 0.75rem; /* Reduces the font size to help it fit on one line */
        white-space: nowrap; /* Forces exactly one line */
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Centralizar o rodapé apenas no mobile */
}

@media (max-width: 768px) {
    .footer-grid > div {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center !important;
    }

    .footer-brand img {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-contact ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 270px; /* Constrain width so it wraps earlier and visually centers */
        margin: 0 auto;
    }

    .footer-contact ul li {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .footer-contact ul li span {
        text-align: left !important;
        display: block;
    }


    .footer-bottom .container {
        align-items: center !important;
        text-align: center !important;
    }

    .ynext {
        justify-content: center !important;
    }
}

/* ==========================================================================
   Dark/Teal Theme Utilities
   ========================================================================== */
.bg-dark {
    background-color: var(--secondary) !important;
    color: var(--white);
}

.bg-dark h2, 
.bg-dark h3, 
.bg-dark h4, 
.bg-dark .subtitle,
.bg-dark .header-desc,
.bg-dark p {
    color: var(--white);
}

.bg-dark .subtitle {
    color: var(--primary-light) !important;
}

.bg-dark .about-list li {
    color: rgba(255, 255, 255, 0.9);
}

.bg-dark .header-desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-dark .faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-dark .faq-question {
    color: var(--white);
    background: transparent;
}

.bg-dark .faq-question:hover {
    color: var(--primary-light);
}

.bg-dark .faq-answer-inner p {
    color: rgba(255, 255, 255, 0.85);
}

.bg-dark .faq-question.active i {
    color: var(--primary) !important;
}

.bg-dark .service-card {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    box-shadow: none;
}

.bg-dark .service-card:hover,
.bg-dark .service-card.mobile-active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.5); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.bg-dark .service-card h3 {
    color: var(--white);
}

.bg-dark .service-card p {
    color: rgba(255, 255, 255, 0.85);
}

.bg-dark .tab-btn {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.bg-dark .tab-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.bg-dark .tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.bg-dark .mobile-section-title span {
    color: var(--white);
}
