/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Colors */
    --brand-primary: #d4af37;
    /* Gold */
    --brand-secondary: #aa8623;
    /* Dark Gold */
    --brand-accent: #f9d876;
    /* Light Gold */

    --bg-dark: #191816;
    /* Soft Chic Warm Black */
    --bg-light: #fdfdfd;
    /* White slightly off */
    --bg-white: #ffffff;
    /* Pure White */

    --text-main: #111111;
    /* Deep Black Text */
    --text-muted: #555555;
    /* Dark Gray for scanning */
    --text-light: #ffffff;
    /* White text for contrast on black */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Utilities */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -5px rgba(212, 175, 55, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    /* Increased base size for better mobile reading */
    line-height: 1.7;
    /* Increased line height for scannability */
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}



h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    line-height: 1; /* Centralização vertical precisa */
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
    color: var(--bg-dark);
    /* Black text on Gold bg for massive pop */
    font-weight: 800;
    /* Bolder */
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--brand-primary);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.btn-nav {
    padding: 12px 28px !important; /* Sobrescreve o padding dos links da nav */
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--brand-primary);
    font-weight: 600;
    gap: 8px;
}

.text-link:hover {
    gap: 12px;
    color: var(--brand-secondary);
}

/* Icons */
.icon-xs {
    width: 16px;
    height: 16px;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
    background-color: var(--bg-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact-info,
.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-info a,
.social-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

.contact-info a:hover,
.social-links a:hover {
    opacity: 1;
    color: var(--brand-accent);
}

.whatsapp-link {
    color: #25D366 !important;
    font-weight: 600;
    opacity: 1 !important;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header.scrolled .top-bar {
    display: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    height: 115px;
    transition: var(--transition);
}

.header.scrolled .navbar {
    height: 75px;
}

.logo {
    height: 95px;
    transition: var(--transition);
}

.header.scrolled .logo {
    height: 55px;
    /* Inverte a cor das letras (de branco para o preto original) quando o menu fica branco */
    filter: invert(1);
}

.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
    z-index: 1000;
}

.nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav-links>li>a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    padding: 16px 24px;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.header.scrolled .nav-links>li>a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    padding: 16px 24px;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    opacity: 1;
    color: var(--brand-primary);
}

.nav-links>li>a::after {
    display: none;
}

.nav-links>li>a:hover::after,
.nav-links>li>a.active::after {
    width: 100%;
}

.nav-links>li>a.btn-nav::after {
    display: none;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: var(--bg-light);
    min-width: 220px;
    padding: 12px 0;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown.active .dropdown-menu li a {
    padding-left: 48px;
}

/* .dropdown:hover .dropdown-menu is handled exclusively by the desktop media query below */

.dropdown-menu li a {
    display: block;
    padding: 10px 24px;
    color: var(--text-main);
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--brand-primary);
    padding-left: 28px;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.header.scrolled .mobile-menu-btn {
    color: var(--text-main);
}

/* ==========================================================================
   Team Section (Equipe)
   ========================================================================== */
.team-section {
    background-color: var(--bg-light);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.team-card {
    background: #ffffff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-info {
    padding: 30px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.specialty {
    color: var(--accent-light);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.bio {
    color: var(--text-light);
    /* Correção do text-light para cor legível em fundo branco */
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    background-color: var(--bg-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.4;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% center;
    animation: zoomInOut 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
    width: 100%;
    padding-top: 120px;
}

.hero-text {
    flex: 1;
    max-width: 700px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: white;
}

.hero-text p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 auto 32px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    max-width: 100%;
    color: white;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.2);
}

.card-icon {
    color: var(--brand-accent);
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.glass-card h3 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.glass-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
    margin-bottom: 12px;
}

.glass-card .text-link {
    color: var(--brand-accent);
    font-size: 0.85rem;
}

/* ==========================================================================
   Features / Teasers
   ========================================================================== */
.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card:hover .card-img img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    /* Black overlay instead of orange */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay span {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
}

.feature-card:hover .card-overlay span {
    transform: translateY(0);
}

.card-content {
    padding: 24px;
    text-align: center;
    flex: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter {
    background: var(--bg-white);
}

.newsletter-wrapper {
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.newsletter-text {
    color: white;
    margin-bottom: 32px;
}

.newsletter-text h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.newsletter-text p {
    opacity: 0.8;
    font-size: 1.125rem;
}

.newsletter-form {
    display: flex;
    gap: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form .btn {
    white-space: nowrap;
}

.newsletter-img {
    position: absolute;
    right: 40px;
    bottom: -40px;
    max-width: 350px;
    z-index: 1;
    opacity: 0.4;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -5px rgba(212, 175, 55, 0.15); /* Subtle gold shadow */
    border-color: rgba(212, 175, 55, 0.3); /* Gold tint on hover border */
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.stars .star-filled {
    color: var(--brand-primary);
    fill: var(--brand-primary); /* Fills the lucide star */
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex: 1; /* Pushes author to bottom if text lengths differ */
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}





/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    /* Use premium black */
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
    border-top: 4px solid var(--brand-primary);
    /* Gold top border */
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 75px;
    margin-bottom: 24px;
    /* Remover bloco branco, o fundo escuro do próprio rodapé é a base */
}

.footer-brand p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.social-links.dark a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links.dark a.whatsapp-btn {
    width: auto;
    height: 44px;
    background: transparent;
    border: 1.5px solid #25D366;
    border-radius: 25px;
    padding: 0 20px;
    gap: 10px;
    color: #25D366;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.social-links.dark a.whatsapp-btn i {
    width: 20px;
    height: 20px;
}

.social-links.dark a:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
}

.social-links.dark a.whatsapp-btn:hover {
    background: #25D366;
    color: white;
}

.footer-clinic h3,
.footer-links h3 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 24px;
}

.footer-clinic p {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-clinic .icon-xs {
    color: var(--brand-accent);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--brand-accent);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scroll-top {
    width: 56px;
    /* slightly larger */
    height: 56px;
    background: var(--brand-primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.scroll-top:hover {
    background: var(--brand-accent);
    transform: translateY(-5px);
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(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;
}


/* ==========================================================================
   Media Queries (Mobile First Progressive Enhancement)
   ========================================================================== */

@media (min-width: 768px) {
    /* Tablet */
    .top-bar-inner {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    /* Desktop */
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-links {
        position: static;
        width: auto;
        background: transparent;
        flex-direction: row;
        gap: 32px;
        box-shadow: none;
        clip-path: none;
        transition: none;
    }
    
    .nav-links.active {
        clip-path: none;
    }
    
    .nav-links>li>a:not(.btn) {
        font-family: var(--font-heading);
        font-weight: 600;
        color: white;
        opacity: 0.9;
        padding: 8px 0;
        border-bottom: none;
        position: relative;
    }
    
    .header.scrolled .nav-links>li>a:not(.btn) {
        color: var(--text-main);
    }
    
    .nav-links>li>a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: var(--brand-primary);
        transition: var(--transition);
        display: block;
    }
    
    .nav-links>li>a:hover::after,
    .nav-links>li>a.active::after {
        width: 100%;
    }
    
    .nav-links>li>a.btn-nav::after {
        display: none;
    }
    
    .dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 220px;
        border-radius: var(--border-radius-sm);
        box-shadow: var(--shadow-md);
        padding: 12px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition);
        display: block; /* Override none */
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
        padding-top: 0;
    }
    
    .hero-text {
        text-align: left;
        align-items: flex-start;
    }
    
    .hero-text p {
        margin: 0 0 40px;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .glass-card {
        max-width: 260px;
    }
    
    .hero-bg {
        width: 100%;
        opacity: 1;
    }
    
    .hero-bg img {
        object-position: center;
    }
    
    .hero-overlay {
        background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(25, 24, 22, 0.85) 30%, rgba(25, 24, 22, 0.1) 65%, transparent 100%);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .newsletter-wrapper {
        flex-direction: row;
        padding: 60px;
        text-align: left;
    }
    .newsletter-form { flex-direction: row; }
    .newsletter-img { display: block; opacity: 0.4; }
}

@media (min-width: 1024px) {
    /* Large Desktop */
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    }
}
/* ==========================================================================
   Page Hero (Internal Pages)
   ========================================================================== */
.page-hero {
    position: relative;
    padding: 170px 0 30px; /* Reduced bottom padding as requested */
    text-align: center;
    color: var(--text-dark);
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter, modern, warm-toned gradient matching a premium clinic */
    background: linear-gradient(135deg, #fdfbf7 0%, #f1efe9 100%); 
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.page-hero p {
    font-size: 1.1rem;
    color: #4a4a4a;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   About Clinic Section (Estrutura)
   ========================================================================== */
.about-clinic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #4a4a4a;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Internal Header (Always Scrolled State)
   ========================================================================== */
.header-internal {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-internal .navbar {
    background-color: transparent;
    box-shadow: none;
}

.header-internal .logo {
    filter: invert(1);
}

.header-internal .nav-links li a:not(.btn) {
    color: var(--text-dark);
}

.header-internal .mobile-menu-btn {
    color: var(--text-dark);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (min-width: 992px) {
    .about-clinic-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
    background-color: #eee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-card {
        width: calc(50% - 20px);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-card {
        width: calc(33.333% - 27px);
    }
}

/* ==========================================================================
   Estrutura Page: reduzir espaço entre vídeo e galeria no mobile
   ========================================================================== */
.gallery-section {
    padding-top: 40px;
}

.section-internal {
    padding-top: 160px !important;
}

@media (min-width: 768px) {
    .gallery-section {
        padding-top: 100px;
    }
}
