/* CSS Variables */
:root {
    --primary-color: #5EACB3;
    /* Teal - Derived from Logo */
    --secondary-color: #8DBABC;
    /* Light Teal */
    --accent-color: #F2C841;
    /* Gold/Yellow - Action Color */
    --text-dark: #3D4E5B;
    /* Dark Slate Blue - Text */
    --text-light: #6c757d;
    /* Gray text */
    --bg-light: #F8F9FA;
    /* Off-white background */
    --bg-white: #FFFFFF;
    /* White background */
    --bg-dark: #12304c;
    /* Dark Blue - Footer/Heavy Sections */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --container-width: 1200px;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #e0b830;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #4b9298;
    transform: translateY(-2px);
}

.mt-4 {
    margin-top: 2rem;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: 0.3s;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

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

.logo img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./assets/hero_bg.png');
    /* Will use generated image or fallback */
    background-size: cover;
    background-position: center;
    background-color: var(--bg-white);
    /* Fallback */
    text-align: center;
    margin-top: 80px;
    /* Header height offset */
    overflow: hidden;
    /* Ensure content stays within */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--bg-white);
    /* Ensure white background */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--bg-white);
    /* Ensure white background */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    /* Lighter overlay for video */
    z-index: 2;
}

/* Fallback gradient if image fails */
.hero {
    background: var(--bg-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    /* Light overlay to ensure text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-large img {
    height: 180px;
    /* Increased from 120px */
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 500;
}

/* CTA Strip */
.cta-strip {
    background-color: var(--bg-dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Services Strip */
.services-strip {
    padding: 4rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid #eee;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.service-item {
    padding: 2rem;
    transition: 0.3s;
    border-radius: 10px;
}

.service-item:hover {
    background-color: var(--bg-light);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.service-item-link {
    text-decoration: none;
    color: inherit;
}

/* About Section */
.about-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background-color: #ddd;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-text .section-tag {
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.about-text .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--bg-dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-white);
}

.section-subtitle {
    margin-bottom: 3rem;
    color: var(--text-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 25px;
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

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

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #889bb0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    /* Aumenta a foto do Dr. Fernando na página sobre-o-medico.html em mobile */
    .about-image img {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

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