/* --- Base Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #2c2c2c; /* Dark Gray */
    --secondary-color: #4a4a4a; /* Medium Gray */
    --accent-color: #a88a6a; /* Muted Gold/Brown */
    --text-color-light: #f4f4f4;
    --text-color-dark: #333;
    --background-dark: #1a1a1a; /* Very Dark Gray / Off-Black */
    --background-light: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color-light);
    /* Subtle gradient background */
    background: linear-gradient(to bottom, var(--background-dark) 0%, #212121 100%);
    font-weight: 300;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color-light);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.main-header {
    background-color: rgba(26, 26, 26, 0.9); /* Slightly transparent dark background */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-color-light);
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    color: var(--text-color-light);
    font-weight: 400;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
/* --- Hero Section --- */
.hero-section {
    min-height: 80vh; /* Further reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), /* Darker overlay */
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.01),
            rgba(255, 255, 255, 0.01) 1px,
            transparent 1px,
            transparent 10px
        ),
        var(--background-dark); /* Fallback solid color */
    color: var(--text-color-light);
    padding-top: 40px; /* Further reduced top padding */
    padding-bottom: 40px; /* Further reduced bottom padding */
    position: relative;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Adjust width as needed */
    height: 100%;
    opacity: 0.5; /* 50% translucency */
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure image fits without distortion */
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure content is above the background image */
}
.hero-section h1 {
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

.hero-section h2 {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-color-light);
    text-align: center;
    padding-bottom: 0;
}

.hero-section h2::after {
    display: none; /* Remove underline from subtitle */
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--background-dark);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #c0a07f; /* Lighter accent */
    color: var(--background-dark);
    transform: translateY(-2px);
}

/* --- About Section --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem; /* Space between text and image */
}

.about-text {
    flex: 2; /* Text takes more space */
}

.about-images {
    flex: 1; /* Image takes less space */
    text-align: center;
}

.about-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover; /* Prevent distortion */
    max-height: 400px; /* Limit height to prevent excessive size */
}

/* --- Content Sections --- */
.content-section {
    padding: 60px 0; /* Reduced vertical padding */
}

.dark-section {
    background-color: var(--primary-color);
}

.content-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* --- Services Section Specific Styles --- */
#servicos h3 {
    margin-top: 2rem; /* Add space above subheadings */
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    color: var(--text-color-light); /* Lighter color for subheadings on dark background */
}

#servicos ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0; /* Remove default padding */
    margin-bottom: 1.5rem;
}

#servicos ul li {
    position: relative;
    padding-left: 25px; /* Space for custom bullet */
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#servicos ul li::before {
    content: '\2022'; /* Unicode bullet character */
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1.5em; /* Position bullet */
    position: absolute;
    left: 15px;
}

/* --- Clinic Section --- */
.clinic-image {
    margin-top: 2rem;
    text-align: center;
}

.clinic-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-height: 500px; /* Adjust max height as needed */
    object-fit: cover;
}

/* --- Contact Section --- */
.contact-details {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-item {
    flex: 1;
    min-width: 250px; /* Minimum width before wrapping */
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.contact-item p,
.contact-item address {
    font-size: 1rem;
    line-height: 1.6;
}

.gmaps-button {
    display: inline-block; /* Or block if it should be on its own line */
    margin-top: 0.5rem; /* Space above the button */
}

.gmaps-button img {
    height: 30px; /* Control button size - adjust as needed */
    width: auto;
    vertical-align: middle; /* Align with text if inline */
    transition: opacity 0.3s ease;
}

.gmaps-button:hover img {
    opacity: 0.8;
}

.contact-cta {
    margin-top: 1rem;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: #FFF;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem; /* Smaller heading on mobile */
    }
    h2 {
        font-size: 1.6rem; /* Smaller section titles on mobile */
        margin-bottom: 1.5rem;
    }
    .main-header .container {
        flex-direction: column;
    }
    .logo {
        margin-bottom: 1rem;
    }
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    .main-nav ul li {
        margin: 0 0.5rem 0.5rem;
    }
    .hero-section {
        min-height: 60vh; /* Adjust height for mobile */
        padding: 100px 0 40px 0; /* Adjust padding */
    }

    .content-section {
        padding: 40px 0; /* Reduce padding on mobile */
    }

    .content-section p {
        font-size: 1rem; /* Slightly smaller text on mobile */
    }

    /* Stack about section content */
    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    .about-images {
        margin-top: 1rem;
        max-width: 80%; /* Control image size */
        margin-left: auto;
        margin-right: auto;
    }

    /* Adjust contact details stacking */
    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    .contact-item {
        min-width: unset; /* Remove min-width */
        text-align: center;
    }
    .contact-item address {
        margin-bottom: 0.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

