@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --primary-dark: #000000;
    --primary-blue: #003865;
    --accent-blue: #A0BBD0;
    --marrom-forte: #580411;
    --marrom-leve: #946450;
    --creme: #E8E2D4;
    --text-main: #000000;
    --text-muted: #000000;
    --bg-light: #E8E2D4;
    --white: #FFFFFF;
    --radius-lg: 32px;
    --radius-md: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    padding: 30px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; 
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    align-items: baseline;
    letter-spacing: -0.2px;
}

.logo-light {
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--text-main);
}

.logo-bold {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.nav-container {
    background: var(--white);
    border: 1px solid #E0E0E0;
    padding: 0;
    border-radius: 50px;
    display: flex;
    align-items: center;
    transition: all 1.5s cubic-bezier(0.1, 0.7, 0.1, 1);
    max-width: 90px;
    overflow: hidden;
    height: 42px;
    box-shadow: var(--shadow);
    position: relative;
}

.nav-container:hover, .nav-container.active {
    max-width: 650px;
    padding: 0 15px;
}

.menu-toggle {
    background: transparent;
    border: none;
    padding: 0 22px;
    height: 100%;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-dark);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin-left: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    transition-delay: 0s;
    white-space: nowrap;
}

.nav-container:hover .nav-links, .nav-container.active .nav-links {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.15s; /* Snappier entrance */
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--marrom-forte);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    color: var(--primary-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-link:hover {
    transform: translateY(-2px);
    opacity: 0.7;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 60px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero-title .highlight {
    display: block;
    color: var(--marrom-forte);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 40px;
}

.hero-info-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 180px;
    flex: 1;
}

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

.dark-card {
    background-color: var(--marrom-forte);
    color: var(--white);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.dark-card p {
    font-size: 1.1rem;
    font-weight: 400;
}

.card-detail {
    font-size: 0.85rem;
    opacity: 0.6;
    font-weight: 300;
}

.cta-banner {
    background-color: var(--marrom-leve);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-text h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
}

.btn-consultation {
    background: var(--white);
    color: var(--primary-dark);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-consultation:hover {
    transform: scale(1.05);
}

/* Hero Visual */
.main-image-wrapper {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 100%;
    min-height: 600px;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(10, 17, 40, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 280px;
}

.glass-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 10px;
    display: block;
}

.glass-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.btn-video {
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    width: fit-content;
    padding-bottom: 4px;
    transition: var(--transition);
}

.btn-video:hover {
    border-color: var(--white);
}

/* Footer Info */
.hero-footer {
    padding: 40px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-info {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.text-right {
    text-align: right;
}

/* VSL Section */
.vsl-section {
    background-color: var(--white);
    padding: 100px 0;
}

.vsl-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.8;
}

.vsl-video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    padding: 15px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Sombra um pouco mais leve */
    transform: translateZ(0); /* Força aceleração de hardware */
    backface-visibility: hidden;
}

.vsl-video-content {
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform; /* Prepara o navegador para animações/scroll */
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 20px;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--marrom-forte);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .main-image-wrapper {
        height: 400px;
        min-height: auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 28px;
    }

    .nav {
        display: none;
    }
    
    /* Reorder hero on mobile: title/subtitle → photo → CTA banner */
    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        display: contents; /* children participate directly in the flex */
    }

    .hero-title       { order: 1; margin-bottom: 30px; }
    .hero-visual      { order: 2; margin-bottom: 30px; }
    .hero-subtitle    { order: 3; margin-bottom: 40px; }
    .hero-info-cards  { display: none !important; }
    .cta-banner       { order: 4; }

    .hero-info-cards {
        display: none;
    }

    .info-card.image-card {
        display: none;
    }

    .hero-footer {
        display: none;
    }
    
    .info-card {
        height: 150px;
    }
    
    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .text-right {
        text-align: center;
    }
    
    .vsl-section {
        padding: 60px 0;
    }
}

/* About Section */
.about-section {
    background-color: var(--white);
    padding: 100px 0;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: stretch;
}

.about-image-wrapper {
    border-radius: 40px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
}

.highlight-alt {
    color: var(--marrom-forte);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: rgba(0, 0, 0, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 40px;
}

.feature-item {
    background-color: #F7F7F7;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background-color: var(--marrom-forte);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Specific Responsive for About Section */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Identification Section - Symptom Hub */
.id-section {
    background-color: var(--white);
    color: var(--text-main);
    padding: 120px 0;
    overflow: hidden;
}

.id-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--marrom-forte);
    margin-bottom: 15px;
    font-weight: 700;
}

.id-intro {
    font-size: 1.15rem;
    color: var(--text-main);
    opacity: 0.7;
    line-height: 1.6;
    font-weight: 300;
}

/* Unified Coordinate Hub */
.hub-container-fixed {
    position: relative;
    max-width: 1000px;
    height: 600px;
    margin: 80px auto;
}

.hub-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hub-line {
    stroke: var(--marrom-forte);
    stroke-width: 1.5;
    stroke-opacity: 0.15;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.hub-container-fixed.active .line-1 { animation: hub-line-draw 0.8s ease-out forwards 0.8s; }
.hub-container-fixed.active .line-2 { animation: hub-line-draw 0.8s ease-out forwards 1.0s; }
.hub-container-fixed.active .line-3 { animation: hub-line-draw 0.8s ease-out forwards 1.2s; }
.hub-container-fixed.active .line-4 { animation: hub-line-draw 0.8s ease-out forwards 1.4s; }
.hub-container-fixed.active .line-5 { animation: hub-line-draw 0.8s ease-out forwards 1.6s; }
.hub-container-fixed.active .line-6 { animation: hub-line-draw 0.8s ease-out forwards 1.8s; }
.hub-container-fixed.active .line-7 { animation: hub-line-draw 0.8s ease-out forwards 2.0s; }

@keyframes hub-line-draw {
    to { stroke-dashoffset: 0; }
}

.hub-center-fixed {
    position: absolute;
    top: calc(50% + 32px); /* Adjusted to total 32px */
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.hub-container-fixed.active .hub-center-fixed {
    animation: hub-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes hub-pop {
    to { transform: translate(-50%, -50%) scale(1); }
}

.hub-core-fixed {
    width: 85px;
    height: 85px;
    background: var(--marrom-forte);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(88, 4, 17, 0.4);
    transition: var(--transition);
    position: relative;
    animation: core-pulse 3s infinite ease-in-out;
}

/* Iconic pulse background light */
.hub-core-fixed::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--marrom-forte);
    border-radius: 50%;
    z-index: -1;
    animation: core-glow-pulse 3s infinite ease-in-out;
    opacity: 0.3;
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(88, 4, 17, 0.3); }
    50% { transform: scale(1.03); box-shadow: 0 0 50px rgba(88, 4, 17, 0.5); }
}

@keyframes core-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.8); opacity: 0; }
}

.hub-label-fixed {
    margin-top: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-dark);
    opacity: 0;
    white-space: nowrap;
    transition: 0.5s ease-out 1s;
}

.hub-container-fixed.active .hub-label-fixed {
    opacity: 0.8;
}

.hub-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    transition: var(--transition);
    opacity: 0;
}

/* Position mapping - matching SVG coordinates with Entry Animations */
.node-pos-1 { top: 100px; left: 200px; transform: translate(-100%, -50%); }
.node-pos-2 { top: 50px; left: 500px; transform: translate(-50%, -100%); flex-direction: column; }
.node-pos-2 .node-card-simple { margin-bottom: 10px; }

.node-pos-3 { top: 100px; left: 800px; transform: translate(0, -50%); }
.node-pos-4 { top: 300px; left: 150px; transform: translate(-100%, -50%); }
.node-pos-5 { top: 300px; left: 850px; transform: translate(0, -50%); }
.node-pos-6 { top: 500px; left: 200px; transform: translate(-100%, -50%); }
.node-pos-7 { top: 500px; left: 800px; transform: translate(0, -50%); }

.hub-container-fixed.active .node-pos-1 { animation: node-in 0.6s ease-out forwards 0.8s; }
.hub-container-fixed.active .node-pos-2 { animation: node-in 0.6s ease-out forwards 1.0s; }
.hub-container-fixed.active .node-pos-3 { animation: node-in 0.6s ease-out forwards 1.2s; }
.hub-container-fixed.active .node-pos-4 { animation: node-in 0.6s ease-out forwards 1.4s; }
.hub-container-fixed.active .node-pos-5 { animation: node-in 0.6s ease-out forwards 1.6s; }
.hub-container-fixed.active .node-pos-6 { animation: node-in 0.6s ease-out forwards 1.8s; }
.hub-container-fixed.active .node-pos-7 { animation: node-in 0.6s ease-out forwards 2.0s; }

@keyframes node-in {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 1; filter: blur(0); }
}

.node-card-simple {
    background: #F9F9F9;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 14px 22px;
    border-radius: 12px;
    width: 260px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    z-index: 10;
}

.node-card-simple h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.4;
}

.node-dot-fixed {
    width: 12px;
    height: 12px;
    background: var(--marrom-forte);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 10px rgba(88, 4, 17, 0.2);
}

.hub-line {
    stroke: var(--marrom-forte);
    stroke-width: 1.5;
    stroke-opacity: 0.15;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), stroke-opacity 0.4s ease, filter 0.4s ease;
}

.hub-line.highlight {
    stroke-width: 6;
    stroke-opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(88, 4, 17, 0.5));
}

.node-illustration {
    position: absolute;
    bottom: calc(100% + 30px); /* Consistent spacing for all */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 260px;
    height: 260px;
    background: #F4F4F4;
    border-radius: 16px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.node-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.node-illustration img[src*="placeholder"] { opacity: 0; }
.node-illustration img:not([src*="placeholder"]) { opacity: 1; }

.hub-node:hover .node-illustration,
.hub-node.active-node .node-illustration {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Adjustments for centering - Illustration alignment to cards */
.node-pos-2 .node-illustration { bottom: calc(100% + 40px); } /* Extra space for the top node */

.node-pos-3 .node-illustration, .node-pos-5 .node-illustration, .node-pos-7 .node-illustration { 
    left: calc(100% - 130px);
}
.node-pos-1 .node-illustration, .node-pos-4 .node-illustration, .node-pos-6 .node-illustration {
    left: 130px;
}

.hub-node:hover .node-card-simple {
    background: var(--white);
    border-color: var(--marrom-forte);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

@media (max-width: 1024px) {
    .hub-container-fixed {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .hub-lines-svg { display: none; }
    .hub-node {
        position: relative;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        flex-direction: row-reverse !important;
    }
    .node-dot-fixed { display: none; }
    .hub-center-fixed {
        order: -1;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: scale(0);
        margin: 0 auto 40px;
        align-self: center;
        text-align: center;
    }
    .hub-container-fixed.active .hub-center-fixed {
        animation: hub-pop-mobile 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    @keyframes hub-pop-mobile {
        from { transform: scale(0); }
        to   { transform: scale(1); }
    }
}
/* Consultation Locations Section */
.consultation-section {
    padding: 120px 0;
    background-color: var(--white);
}

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.consultation-info .section-tag-simple {
    background: #F4F0EE;
    color: var(--marrom-forte);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 25px;
}

.location-cards {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #FAFAFA;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.location-card:hover {
    background: var(--white);
    border-color: var(--marrom-forte);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateX(10px);
}

.consultation-section .btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 25px;
    background: var(--marrom-forte);
    color: var(--white);
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(88, 4, 17, 0.3);
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    cursor: pointer;
}

.consultation-section .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.location-icon {
    width: 50px;
    height: 50px;
    background: var(--marrom-forte);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-details h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.location-details p {
    font-size: 0.9rem;
    color: var(--text-main);
    opacity: 0.7;
    margin: 0;
}

.consultation-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--marrom-forte);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 35px;
}

.consultation-image-wrapper {
    position: relative;
    width: 100%;
}

.consultation-image {
    width: 100%;
    height: 750px; /* Increased height to show more of the photo */
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-position: center top;
}

/* Diferenciais Section */
.diferenciais-section {
    padding: 60px 0 120px;
    background-color: var(--white);
}

.diferenciais-card-large {
    background: var(--marrom-forte);
    border-radius: 40px;
    padding: 80px 60px;
    color: var(--white);
    box-shadow: 0 30px 60px rgba(88, 4, 17, 0.2);
}

.diferenciais-header {
    text-align: center;
    margin-bottom: 60px;
}

.diferenciais-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.6;
    display: block;
    margin-bottom: 15px;
}

.diferenciais-title {
    font-size: 2.2rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Diferenciais Section - Modern Reference Style */
.diferenciais-section {
    padding: 120px 0;
    background-color: var(--white);
}

.diferenciais-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 70px;
    gap: 60px;
}

.diferenciais-title {
    font-size: 3.5rem;
    color: var(--primary-dark);
    line-height: 1;
    margin: 0;
    font-weight: 800;
}

.diferenciais-header-right {
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right align items */
    gap: 25px;
    text-align: right; /* Right align text */
}

.diferenciais-intro {
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.diferencial-item {
    background: #F5F7F9;
    border-radius: 45px;
    padding: 45px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.diferencial-item:hover {
    background: var(--white);
    border-color: rgba(88,4,17,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(-10px);
}

.diferencial-top h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 0;
    position: relative;
    z-index: 10;
}

.diferencial-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    position: relative;
    z-index: 10;
}

.diferencial-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.diferencial-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.diferencial-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.diferencial-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.diferencial-item:hover .diferencial-image-container img {
    transform: scale(1.1);
}

/* Specific adjustment for Consulta Detalhada image */
.img-consulta-detalhada {
    object-position: center 65% !important; /* Mostra mais a parte de baixo (mão/documentos) */
    transform: scale(1.4) !important; /* Mais zoom inicial */
}

.diferencial-item:hover .img-consulta-detalhada {
    transform: scale(1.5) !important; /* Zoom extra no hover */
}

/* Specific adjustment for Conduta Individualizada image */
.img-conduta-individualizada {
    object-position: center 80% !important; /* Foco na mão/MacBook */
    transform: scale(1.8) !important; /* Mais zoom inicial */
}

.diferencial-item:hover .img-conduta-individualizada {
    transform: scale(2.0) !important; /* Zoom extra no hover */
}

/* Specific adjustment for Discussão Científica image */
.img-discussao {
    object-position: calc(50% - 35px) center !important;
}

/* Video Overlay Styles */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: var(--transition);
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--white);
    text-align: center;
}

.unmute-icon {
    width: 70px;
    height: 70px;
    background: var(--marrom-forte);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    animation: pulse-overlay 2s infinite ease-in-out;
}

.overlay-content span {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes pulse-overlay {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Feature Photo Cards (like reference) */
.diferencial-item.has-image {
    padding: 0;
    background-color: #E8EDF2;
}

.diferencial-image-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.diferencial-tags {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.diferencial-tag-pill {
    background: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-dark);
    display: inline-block;
    width: fit-content;
}

@media (max-width: 1100px) {
    .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
    .diferenciais-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .diferenciais-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .diferenciais-header-right {
        align-items: center;
        text-align: center;
    }
    .diferenciais-title {
        text-align: center;
    }
    .btn-consultation-desktop {
        display: none;
    }
    .diferenciais-grid { grid-template-columns: 1fr; }
    .diferencial-item { min-height: 350px; padding: 35px; }
}

/* Mobile-only bottom CTA button for Diferenciais */
.diferenciais-mobile-cta {
    display: none;
}

.btn-consultation-mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    .diferenciais-mobile-cta {
        display: block;
        text-align: center;
        margin-top: 40px;
    }
    .btn-consultation-mobile-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: var(--marrom-forte);
        color: var(--white);
        text-decoration: none;
        padding: 18px 40px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.9rem;
        letter-spacing: 1px;
        box-shadow: 0 10px 30px rgba(88, 4, 17, 0.25);
        transition: var(--transition);
    }
    .btn-consultation-mobile-cta:hover {
        background: #700515;
        transform: translateY(-3px);
    }
}

/* Feedbacks Section */
.feedbacks-section {
    padding: 60px 0 0; /* Removed bottom padding */
    background-color: var(--white);
}

.feedbacks-container-card {
    background: #FAF8F6; /* Soft warm break */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 0; /* Square bottom to connect */
    border-bottom-right-radius: 0;
    padding: 100px 60px 100px; /* Increased bottom padding for margin */
    position: relative;
    overflow: visible; /* Allow divider to show */
}

/* Instagram Section */
.instagram-section {
    background-color: var(--white);
    padding: 0 0 120px; /* Adjusting padding to account for the card */
    position: relative;
}

.instagram-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--white);
}

.instagram-section .section-tag-simple {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.instagram-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--white);
}

.instagram-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    color: var(--white);
}

.section-flow-divider svg path {
    fill: var(--marrom-leve); /* Syncs divider with new section color */
}

.instagram-container-dark {
    background: var(--marrom-leve);
    border-top-left-radius: 0; /* Square top to connect with melted divider above */
    border-top-right-radius: 0;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    padding: 80px 60px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 40px 100px rgba(148, 100, 80, 0.2);
    position: relative;
}

.section-flow-divider {
    position: absolute;
    bottom: -1px; /* Align with the bottom edge */
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 40px;
    z-index: 30;
}

.divider-arrow-overlay {
    position: absolute;
    top: 55%; /* Center in the bump */
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.google-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    width: fit-content;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.feedbacks-header {
    text-align: center;
    margin-bottom: 60px;
}

.feedbacks-header .section-title {
    margin-bottom: 20px;
}

.feedbacks-intro {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-main);
    opacity: 0.7;
    line-height: 1.6;
}

.feedbacks-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feedback-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.feedback-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feedback-stars {
    color: #FFB800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.feedback-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-dark);
    font-style: italic;
    margin-bottom: 30px;
}

.feedback-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.patient-name {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1rem;
}

.feedback-date {
    font-size: 0.8rem;
    color: var(--text-main);
    opacity: 0.5;
}

.feedbacks-footer {
    text-align: center;
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    padding: 18px 35px;
    border: 2px solid var(--marrom-forte);
    color: var(--marrom-forte);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-secondary-outline:hover {
    background: var(--marrom-forte);
    color: var(--white);
}

@media (max-width: 1024px) {
    .feedbacks-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .feedbacks-container-card {
        padding: 60px 30px;
    }
    .consultation-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .consultation-info { display: flex; flex-direction: column; align-items: center; }
    .consultation-image-wrapper { height: 320px; order: -1; overflow: hidden; border-radius: 20px; }
    .consultation-image { height: 320px; border-radius: 20px; }
}

.id-footer {
    text-align: center;
    max-width: 800px;
    margin: 80px auto 0;
    position: relative;
    z-index: 20;
}

.id-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.id-footer p {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

.btn-primary-id {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--marrom-forte);
    color: var(--white);
    text-decoration: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(88, 4, 17, 0.3);
}

.btn-primary-id:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Instagram Header & Grid - Consolidated */
.instagram-header {
    margin-bottom: 50px;
}

.instagram-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.6;
    display: block;
    margin-bottom: 15px;
}

.instagram-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.instagram-intro {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
    line-height: 1.6;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.insta-post-card {
    aspect-ratio: 1 / 1;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.insta-img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.03);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(88, 4, 17, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
}

.insta-card-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

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

.insta-post-card:hover .insta-overlay,
.insta-card-link:hover .insta-overlay {
    opacity: 1;
}

.insta-overlay span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.btn-primary-white {
    display: inline-flex;
    align-items: center;
    padding: 20px 45px;
    background: var(--white);
    color: var(--marrom-forte);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.btn-primary-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    background: #F4F0EE;
}

/* Contact & Map Section - 50/50 Refined */
.contact-section {
    padding: 60px 0 120px;
}

.contact-card-50-50 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 40px;
    overflow: hidden; /* For full-bleed map corners */
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
    min-height: 650px; /* Fixed height to ensure children have height to inherit */
}

.contact-info-panel {
    background: #FAF8F6; /* Matches "Diagnóstico" box color */
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-map-panel {
    height: 100%;
    min-height: 500px; /* Guarantee visibility */
}

.contact-title {
    font-size: 2.8rem;
    color: var(--primary-dark);
    line-height: 1.1;
    margin: 15px 0 25px;
}

.contact-description {
    font-size: 1rem;
    color: var(--text-main);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 35px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
    margin-top: 5px; /* Offset for multi-line text */
}

.contact-item-text h3 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item-text p {
    font-size: 0.9rem;
    color: var(--text-main);
    opacity: 0.8;
}

.route-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-route-large {
    background: var(--white);
    color: var(--primary-dark);
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(88, 4, 17, 0.1);
    transition: var(--transition);
}

.btn-route-large:hover {
    background: var(--marrom-forte);
    color: var(--white);
    transform: translateY(-3px);
}

.main-contact-cta {
    margin-bottom: 20px;
}

.main-contact-cta .btn-primary-full {
    display: block;
    width: 100%;
    background: var(--marrom-forte);
    color: var(--white);
    text-align: center;
    padding: 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(88, 4, 17, 0.2);
}

.main-contact-cta .btn-primary-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(88, 4, 17, 0.3);
    background: #700515;
}

@media (max-width: 1024px) {
    .contact-card-50-50 {
        grid-template-columns: 1fr;
    }
    .contact-map-panel {
        height: 400px;
    }
    .contact-info-panel {
        padding: 60px 30px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
}

.faq-title {
    font-size: 3rem;
    color: var(--primary-dark);
    margin: 20px 0;
    line-height: 1.1;
}

.faq-description {
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.7;
    margin-bottom: 30px;
    line-height: 1.6;
}

.faq-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #6D9DB2; /* Light blue from ref */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.faq-cta-link:hover {
    color: var(--marrom-forte);
    transform: translateX(5px);
}

/* Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-top: 1px solid #EEE;
    padding: 30px 0;
}

.faq-item:last-child {
    border-bottom: 1px solid #EEE;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 30px;
}

.faq-question h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    transition: var(--transition);
    margin: 0;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    background: #E1F1F7; /* Soft light blue/cyan */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6D9DB2;
    font-size: 1.2rem;
    font-weight: 400;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-top: 25px;
    color: var(--text-main);
    opacity: 0.8;
    line-height: 1.7;
    margin: 0 0 10px;
}

/* Active State */
.faq-item.active .faq-question h3 {
    color: #6D9DB2;
}

.faq-item.active .faq-toggle {
    background: #6D9DB2;
    color: var(--white);
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* FAQ Section Dark Theme - Closing Style */
.faq-section {
    background-color: var(--marrom-leve); /* Corrected: Matching "Como posso te ajudar hoje" banner */
    color: var(--white);
    padding: 100px 0;
}

.faq-section .faq-title {
    color: var(--white);
}

.faq-section .faq-description {
    color: var(--white);
    opacity: 0.8;
}

.faq-section .faq-cta-link {
    color: var(--white);
    text-decoration: underline;
}

.faq-section .faq-item {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-section .faq-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-section .faq-question h3 {
    color: var(--white);
}

.faq-section .faq-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.faq-section .faq-item.active .faq-question h3 {
    color: var(--white);
    opacity: 1;
}

.faq-section .faq-item.active .faq-toggle {
    background: var(--white);
    color: var(--marrom-leve);
}

.faq-section .faq-answer p {
    color: var(--white);
    opacity: 0.9;
}

/* Main Footer */
.main-footer {
    background-color: var(--marrom-leve); /* Corrected to match banner */
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-brand {
    text-align: left;
    margin-bottom: 60px;
}

.footer-credential {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 1px;
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-socials a:hover {
    opacity: 1;
    color: var(--creme);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-brand {
        text-align: left;
    }
}

/* Final Polish: Remove any bottom whitespace */
html, body {
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

.main-footer {
    display: block;
    margin: 0 !important;
    padding-bottom: 50px; /* Ensure space internal to the dark background */
}

/* Ensure no element after footer has margin */
footer:last-child {
    margin-bottom: 0 !important;
}

main {
    overflow: hidden; /* Prevents margin collapse issues */
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Special Variations */
.reveal-left { transform: translateX(-40px) translateY(0); }
.reveal-right { transform: translateX(40px) translateY(0); }
.reveal-scale { transform: scale(0.95); }

.reveal-left.active, .reveal-right.active, .reveal-scale.active {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
}
