/**
 * Viva Sorrindo - Clínica Odontológica
 * Estilos principais
 */

/* ===== Variáveis ===== */
:root {
    /* Cores principais */
    --green-primary: #6BAD73;
    --blue-secondary: #004265;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --text-color: #333333; /* Default text color */

    /* Cores derivadas */
    --green-light: #8FC996;
    --green-dark: #4A8C52;
    --blue-light: #0A5A85;
    --blue-dark: #003048;

    /* Fontes */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    /* Tamanhos */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 5px;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset e Estilos Gerais ===== */
/* Improved box-sizing */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blue-secondary);
    line-height: 1.3; /* Added for better heading spacing */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--blue-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--green-primary);
}

ul, ol {
    margin-left: 1.5rem; /* Default list indentation */
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space under images */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px; /* Consistent padding */
    /* box-sizing: border-box;  -- Removed, handled by global reset */
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem; /* Reduced margin */
    position: relative;
    padding-bottom: 15px; /* Space for the underline */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--green-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    max-width: 700px; /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
}

/* Background utility classes */
.light-green-bg {
    background-color: rgba(107, 173, 115, 0.1);
}

.blue-bg {
    background-color: rgba(0, 66, 101, 0.1);
}

/* Specific text highlight class */
.highlight {
    color: var(--green-primary);
    font-weight: 700; /* Optional: make it bolder */
}


/* ===== Botões ===== */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: 2px solid transparent; /* Base border */
    line-height: 1.5; /* Ensure consistent height */
}

.cta-button.primary {
    background-color: var(--green-primary);
    color: var(--white);
    border-color: var(--green-primary);
}

.cta-button.primary:hover {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px); /* Add subtle lift */
}

.cta-button.secondary {
    background-color: var(--blue-secondary);
    color: var(--white);
    border-color: var(--blue-secondary);
}

.cta-button.secondary:hover {
    background-color: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
}

.cta-button.outline {
    background-color: transparent;
    color: var(--blue-secondary);
    border-color: var(--blue-secondary);
}

.cta-button.outline:hover {
    background-color: var(--blue-secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Outline variant for blue backgrounds */
.cta-button.outline.white {
    color: var(--white);
    border-color: var(--white);
}
.cta-button.outline.white:hover {
    background-color: var(--white);
    color: var(--blue-secondary);
}


.cta-button.full-width {
    width: 100%;
    display: block;
}

/* Added size variants */
.cta-button.small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.cta-button.large {
    padding: 15px 30px;
    font-size: 1rem;
}


.micro-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green-primary);
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-fast);
}

.micro-cta:hover {
    color: var(--green-dark);
}

.micro-cta::after {
    content: '\f054'; /* Font Awesome Chevron Right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform var(--transition-fast);
}

.micro-cta:hover::after {
    transform: translateX(3px);
}

/* ===== Header ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Ensure container fills header height */
    /* Removed flex-wrap, handled by menu toggle */
}

#header .logo {
    height: 100px; /* Max height for logo */
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent logo shrinking */
}

#header .logo img {
    height: 100%;
    width: auto;
    max-height: 60px; /* Explicit max height */
}

/* Desktop Navigation */
.desktop-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0; /* Remove default padding */
}

.desktop-menu ul li {
    margin: 0 15px;
}

.desktop-menu ul li a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--blue-secondary);
    position: relative;
    padding: 5px 0;
    text-decoration: none; /* Ensure no underline */
    display: block; /* Better click area */
}

.desktop-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--green-primary);
    transition: width var(--transition-normal);
}

.desktop-menu ul li a:hover::after,
.desktop-menu ul li a.active::after {
    width: 100%;
}

/* Indicate active page */
.desktop-menu ul li a.active {
    font-weight: 600;
    color: var(--green-primary); /* Make active link green */
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around; /* Adjusted spacing */
    width: 30px;
    height: 25px; /* Increased height slightly */
    cursor: pointer;
    background: none; /* Remove default button styles */
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--blue-secondary);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

/* Styles for when mobile menu is open (using .open class from JS) */
.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px); /* Ajustado para melhor alinhamento */
}


/* Mobile Navigation Panel */
.mobile-menu {
    display: none; /* Start hidden */
    position: absolute;
    top: var(--header-height); /* Position below header */
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateY(-100%); /* Start off-screen */
    opacity: 0;
    visibility: hidden; /* Hide from accessibility tree when inactive */
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible; /* Make visible */
    display: block; /* Ensure it's displayed */
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0; /* Remove default padding */
}

.mobile-menu ul li {
    margin-bottom: 15px;
    text-align: center; /* Center mobile links */
}

.mobile-menu ul li:last-child {
    margin-bottom: 0; /* Remove margin from last item */
}


.mobile-menu ul li a {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--blue-secondary);
    display: block;
    padding: 10px 0; /* Increase padding */
    text-decoration: none;
}

.mobile-menu ul li a.active {
    color: var(--green-primary);
    font-weight: 600;
}

/* ===== Banner da Página (Genérico) ===== */
.page-banner {
    height: 300px;
    background-color: var(--blue-secondary);
    /* Default background - can be overridden */
    background-image: linear-gradient(rgba(0, 66, 101, 0.8), rgba(0, 66, 101, 0.8)), url('../images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--header-height); /* Account for fixed header */
    position: relative;
    text-align: center;
    color: var(--white);
}

.page-banner .banner-content {
    z-index: 1; /* Ensure text is above overlay */
    padding: 0 16px; /* Add padding */
}

.page-banner h1 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.breadcrumbs {
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--green-light);
}

.breadcrumbs a:hover {
    color: var(--white);
    text-decoration: underline; /* Add underline on hover */
}

.breadcrumbs span {
    color: var(--white);
    margin: 0 5px; /* Space around separators */
}

/* Banners específicos para unidades */
.unit-banner { /* Base class */
    background-position: center;
}

.ceilandia-banner {
    background-image: linear-gradient(rgba(0, 66, 101, 0.8), rgba(0, 66, 101, 0.8)), url('../images/banner-ceilandia.jpg');
}

.taguatinga-banner {
    background-image: linear-gradient(rgba(0, 66, 101, 0.8), rgba(0, 66, 101, 0.8)), url('../images/banner-taguatinga.jpg');
}

.samambaia-banner {
    background-image: linear-gradient(rgba(0, 66, 101, 0.8), rgba(0, 66, 101, 0.8)), url('../images/banner-samambaia.jpg');
}

/* ===== Hero Section ===== */
#hero {
    /* height: 100vh; -- Can cause issues on mobile */
    min-height: 600px; /* Ensure minimum height */
    height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    background-color: var(--blue-secondary); /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Hide video overflow */
    color: var(--white);
    text-align: center;
    padding-top: var(--header-height); /* Push content below fixed header */
}

/* Video background styling */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 66, 101, 0.7); /* Same overlay as original image gradient */
    z-index: 1;
}


.hero-content {
    position: relative; /* Ensure content is above video */
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    /* Removed text-align and color, inherited from #hero */
}

.hero-content h1 {
    font-size: 3rem; /* Adjusted based on screen size below */
    margin-bottom: 1.5rem;
    color: var(--white); /* Ensure heading is white */
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px; /* Improve readability */
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .cta-button {
    margin: 0 10px; /* Space between buttons */
}


.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* Above overlay and content */
}

.scroll-indicator a {
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px); /* Reduced bounce */
    }
    60% {
        transform: translateY(-7px);
    }
}

/* ===== Serviços ===== */
.services-grid {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); -- Adjusted in media queries */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-bottom: 40px; /* Spacing below grid */
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%; /* Ensure cards in a row have same height */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    text-align: left; /* Default text align */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(107, 173, 115, 0.1); /* Light green background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--green-primary);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--blue-secondary);
}

.service-card p {
    margin-bottom: 20px;
    flex-grow: 1; /* Allows p to take available space, pushing link down */
    color: var(--dark-gray); /* Ensure text color */
}

/* Link styling now uses .micro-cta defined earlier */
.service-card .micro-cta {
    margin-top: auto; /* Push link to the bottom */
    align-self: flex-start; /* Align link to the left */
}

.section-cta {
    text-align: center;
    margin-top: 30px; /* Spacing above button */
}

/* ===== Por que nos escolher (Benefits Section) ===== */
.benefits-grid {
    display: grid;
    /* grid-template-columns: repeat(4, 1fr); -- Adjusted in media queries */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 66, 101, 0.1); /* Light blue background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px; /* Center icon */
}

.benefit-icon i {
    font-size: 2.5rem;
    color: var(--blue-secondary);
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.benefit-card p {
     color: var(--dark-gray); /* Ensure text color */
     font-size: 0.95rem; /* Slightly larger text */
}


/* ===== Sobre a Clínica ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default 2 columns */
    gap: 50px;
    align-items: center; /* Vertically align items */
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden; /* Keep image within bounds */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block; /* Remove bottom space */
}

.about-content h2 {
    text-align: justify; /* Align heading left */
    margin-bottom: 20px;
    /* Removing ::after for this specific instance to simplify */
}

/* Remove the ::after rule specifically for .about-content h2 if desired */
.about-content h2.section-title::after {
    display: none;
}
/* Or give .about-content h2 a different class or no class */


.about-content p {
    margin-bottom: 20px;
}

.about-content .cta-button {
    margin-top: 10px; /* Space above button */
}

/* ===== Avaliações do Google Maps ===== */
.google-reviews-carousel { /* Assuming using Slick or similar */
    margin: 40px 0;
    position: relative;
    min-height: 200px; /* Minimum height while loading */
}

.reviews-loading {
    text-align: center;
    padding: 40px 0;
    color: var(--dark-gray);
}

.reviews-loading i {
    font-size: 2rem;
    color: var(--green-primary);
    margin-bottom: 15px;
    display: block; /* Make icon block */
}

/* Styles for individual review cards (adjust based on actual JS output) */
.google-review {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 10px; /* Space between slides */
    /* Add other styles for slick-slide if needed */
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.reviewer-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.review-stars {
    color: #FFD700; /* Gold color for stars */
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.8rem;
    color: #777;
}

.review-text {
    font-style: italic;
    color: var(--dark-gray);
    line-height: 1.7;
}

/* Add styles for Slick carousel arrows/dots if used */
/* Example:
.slick-prev, .slick-next { ... }
.slick-dots { ... }
*/

/* ===== Unidades (Locations Section) ===== */
.locations-grid {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); -- Adjusted in media queries */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.location-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden; /* Clip image zoom */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column; /* Stack image and content */
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.location-image {
    height: 200px; /* Fixed height for image container */
    overflow: hidden; /* Hide image overflow */
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers area */
    transition: transform var(--transition-normal);
}

.location-card:hover .location-image img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.location-content { /* Wrapper for text content */
    padding: 20px;
    flex-grow: 1; /* Allow content to take space */
    display: flex;
    flex-direction: column;
}


.location-content h3 {
    /* padding: 20px 20px 10px; -- Moved padding to .location-content */
    color: var(--blue-secondary);
    margin-bottom: 15px; /* Increased margin */
}

.location-content p {
    /* padding: 0 20px; -- Moved padding to .location-content */
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex; /* Align icon and text */
    align-items: center;
    color: var(--dark-gray);
}

.location-content i {
    color: var(--green-primary);
    margin-right: 8px; /* Adjusted margin */
    width: 16px; /* Fixed width for alignment */
    text-align: center;
}

.location-cta { /* Wrapper for the button */
    /* padding: 0 20px 20px; -- Moved padding to .location-content */
    margin-top: auto; /* Push button to bottom */
    padding-top: 15px; /* Space above button */
}


/* ===== Formulário de Contato ===== */
.contact-form-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default 2 columns */
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative; /* For potential error messages */
}

.form-group:last-child {
    margin-bottom: 0; /* Remove bottom margin from last group */
}

.form-group.full-width {
    grid-column: span 2; /* Make group span both columns */
}

.form-group label {
    display: block;
    margin-bottom: 8px; /* Increased space */
    font-weight: 500;
    font-size: 0.9rem;
}

/* Screen-reader only class for labels if placeholders are used visually */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast); /* Added box-shadow transition */
    line-height: 1.5;
}

/* Style for focus state */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(107, 173, 115, 0.2); /* Subtle glow */
}

/* Style for error state */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: red;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}
.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize only */
    min-height: 100px; /* Minimum height */
}

/* Styling for select dropdown arrow */
.form-group select {
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333333' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 40px; /* Space for arrow */
}

.form-group button[type="submit"] {
    width: 100%; /* Make button full width within its group */
}

/* Privacy consent checkbox styling */
.privacy-consent {
    display: flex;
    align-items: flex-start; /* Align checkbox top */
    margin-top: 10px; /* Space above consent */
    grid-column: span 2; /* Ensure it spans columns */
}

.privacy-consent input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px; /* Align checkbox with text */
    width: auto; /* Override default width */
    flex-shrink: 0;
}
.privacy-consent input[type="checkbox"].error + label {
    color: red; /* Highlight label if checkbox is required and not checked */
}


.privacy-consent label {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 400; /* Normal weight */
    margin-bottom: 0; /* Override default label margin */
    cursor: pointer;
}

.privacy-consent a {
    color: var(--green-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-consent a:hover {
    color: var(--green-dark);
}

/* Old privacy text - replaced by checkbox */
/*
.privacy-text {
    font-size: 0.8rem;
    color: #777;
    grid-column: span 2;
}

.privacy-link {
    color: var(--blue-secondary);
    text-decoration: underline;
}

.privacy-link:hover {
    color: var(--green-primary);
}
*/

/* Form status message styling */
#form-status-home, #form-status-popup, #form-status-contacthome { /* Added contacthome */
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    min-height: 1.5em; /* Reserve space */
}
.form-success { color: var(--green-primary); }
.form-error { color: red; }


/* ===== Footer ===== */
#footer {
    background-color: var(--blue-secondary);
    color: var(--white);
    padding: 60px 0 0; /* Remove bottom padding, added by footer-bottom */
}

.footer-grid {
    display: grid;
    /* grid-template-columns: 2fr 1fr 1fr 1fr; -- Adjusted in media queries */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 40px; /* Increased gap */
    margin-bottom: 40px;
}

/* Footer Columns (adjust names for clarity if needed) */
.footer-about .footer-logo {
    margin-bottom: 15px;
}
.footer-about .footer-logo img {
    height: 100px;
    width: auto; /* Let width adjust */
    max-width: 200px; /* Prevent logo getting too wide */
}

.footer-about p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9; /* Slightly less prominent text */
}

.social-icons {
    display: flex;
    gap: 15px; /* Space between icons */
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem; /* Icon size */
    transition: all var(--transition-normal);
}

.social-icons a:hover {
    background-color: var(--green-primary);
    transform: translateY(-5px); /* Lift effect */
    color: var(--white); /* Ensure icon stays white */
}


.footer-links h4,
.footer-contact h4,
.footer-units h4 { /* Changed from footer-hours */
    color: var(--white);
    font-size: 1.1rem; /* Slightly larger heading */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-units h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--green-primary);
}

.footer-links ul,
.footer-units ul {
    list-style: none;
    margin: 0;
    padding: 0; /* Remove default padding */
}

.footer-links ul li,
.footer-units ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-units ul li a {
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    display: inline-block; /* Allows padding transition */
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links ul li a:hover,
.footer-units ul li a:hover {
    color: var(--green-primary);
    padding-left: 5px; /* Indent on hover */
}

.footer-units ul li i { /* Icon before unit name */
    margin-right: 8px;
    color: var(--green-primary);
    font-size: 0.9em;
}


.footer-contact p {
    margin-bottom: 10px;
    display: flex; /* Align icon and text */
    align-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact p i {
    color: var(--green-primary);
    margin-right: 10px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.footer-contact p a { /* Style links within contact info */
    color: inherit; /* Inherit color from p */
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-contact p a:hover {
    color: var(--green-primary);
    text-decoration: underline;
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0; /* Increased padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7); /* Dimmer text */
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7); /* Match copyright color */
    margin-left: 20px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--green-primary);
    text-decoration: underline;
}

/* ===== WhatsApp Flutuante ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Abaixo do popup de unidade */
    transition: all var(--transition-normal);
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px); /* Scale and lift */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--white); /* Ensure icon stays white */
}

/* ===== Pop-up de Captura de Lead ===== */
.lead-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Above everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    padding: 20px; /* Padding for small screens */
}

.lead-popup.active {
    opacity: 1;
    visibility: visible;
}

.lead-popup .popup-content { /* Target lead popup content specifically */
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 100%; /* Full width on small screens */
    max-width: 500px; /* Max width */
    position: relative;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px) scale(0.95); /* Start slightly up and smaller */
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.lead-popup.active .popup-content {
    transform: translateY(0) scale(1); /* Animate into view */
    opacity: 1;
}

.lead-popup .popup-close { /* Target lead popup close specifically */
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #555;
    cursor: pointer;
}

.lead-popup .popup-close:hover {
    color: var(--blue-secondary);
}

.popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.popup-header h3 { /* Changed from h2 */
    color: var(--blue-secondary);
    margin-bottom: 10px;
    font-size: 1.6rem; /* Larger heading */
}

.popup-header p {
    margin-bottom: 0; /* Remove default p margin */
    color: var(--dark-gray);
}

/* Popup form styling */
#leadForm .form-group {
    margin-bottom: 15px; /* Reduced margin */
}

#leadForm .form-group:last-child {
    margin-bottom: 0;
}

/* Hide labels visually, keep for screen readers */
#leadForm label:not(.privacy-consent label) {
     position: absolute;
     width: 1px;
     height: 1px;
     padding: 0;
     margin: -1px;
     overflow: hidden;
     clip: rect(0, 0, 0, 0);
     white-space: nowrap;
     border-width: 0;
}

#leadForm .privacy-consent {
    margin-top: 0; /* Adjust spacing if needed */
    margin-bottom: 15px; /* Space before button */
}


.popup-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
}

/* ===== Página Sobre (Example styles - adjust as needed) ===== */
.about-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.history-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.history-image img { display: block; }

.mvv-grid { /* Mission, Vision, Values */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mvv-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.mvv-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(107, 173, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mvv-icon i {
    font-size: 2rem;
    color: var(--green-primary);
}

.mvv-card h3 {
    text-align: center;
    margin-bottom: 20px;
}

.mvv-card ul {
    margin-left: 0; /* Remove default indent */
    list-style: none; /* Remove bullets */
    padding-left: 0;
}

.mvv-card ul li {
    margin-bottom: 10px;
    padding-left: 25px; /* Indent text */
    position: relative;
}
.mvv-card ul li::before { /* Custom bullet */
    content: '\f00c'; /* Font Awesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--green-primary);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-image {
    height: 250px;
    overflow: hidden;
    position: relative; /* For potential overlay */
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.team-info {
    padding: 20px;
}

.team-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-role {
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.team-social {
    display: flex;
    justify-content: center; /* Center icons */
    gap: 10px;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(0, 66, 101, 0.1);
    border-radius: 50%;
    color: var(--blue-secondary);
    transition: all var(--transition-normal);
}

.team-social a:hover {
    background-color: var(--blue-secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.tech-grid { /* Technology Section */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-item {
    text-align: center;
    padding: 30px;
    /* Background might depend on section bg color */
}

.tech-icon {
    width: 80px;
    height: 80px;
    /* background-color: rgba(255, 255, 255, 0.2); -- Adjust based on section bg */
    background-color: rgba(0, 66, 101, 0.1); /* Example: light blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tech-icon i {
    font-size: 2.5rem;
    color: var(--blue-secondary); /* Example: blue icon */
}

.tech-item h3 {
    /* color: var(--white); -- Adjust based on section bg */
    color: var(--blue-secondary); /* Example: blue heading */
    margin-bottom: 10px;
}

.tech-item p {
    /* color: rgba(255, 255, 255, 0.8); -- Adjust based on section bg */
    color: var(--dark-gray); /* Example: dark text */
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certification-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.certification-item img {
    height: 80px;
    max-width: 150px; /* Prevent images becoming too wide */
    margin-bottom: 20px;
    object-fit: contain; /* Fit image within height */
}

.certification-item h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.certification-item p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* ===== Página de Tratamentos ===== */
.treatment-nav {
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    margin-bottom: 50px;
    position: sticky; /* Make nav sticky */
    top: var(--header-height); /* Stick below header */
    z-index: 990; /* Below header */
}

.treatment-nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0; /* Remove default padding */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px 20px; /* Row and column gap */
}

.treatment-nav-list li {
     margin: 0 15px;/* -- Replaced by gap */
}

.treatment-nav-list li a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--blue-secondary);
    padding: 8px 15px; /* Add padding for better click area */
    position: relative;
    text-decoration: none;
    border-radius: var(--border-radius); /* Rounded corners */
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.treatment-nav-list li a:hover {
    background-color: rgba(0, 66, 101, 0.1); /* Light blue hover */
    color: var(--blue-dark);
}

/* Style for active link (needs JS to add .active class based on scroll) */
.treatment-nav-list li a.active {
    background-color: var(--green-primary);
    color: var(--white);
    font-weight: 600;
}

/* Removed ::after underline, using background color instead */
/*
.treatment-nav-list li a::after { ... }
.treatment-nav-list li a:hover::after { ... }
*/

.treatment-section {
    padding: 80px 0;
    scroll-margin-top: 150px; /* Offset for sticky header and nav */
    border-bottom: 1px solid var(--medium-gray); /* Separator line */
}
.treatment-section:last-of-type {
    border-bottom: none; /* No line after last section */
}

.treatment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Reverse layout for alternating sections */
.treatment-content.reverse {
    direction: rtl; /* Reverses column order */
}
.treatment-content.reverse > * {
    direction: ltr; /* Resets text direction for content */
}

.treatment-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.treatment-image img { display: block; }


.treatment-info h2 {
    text-align: left;
    margin-bottom: 20px;
    position: relative; /* For underline */
    padding-bottom: 10px;
}

.treatment-info h2::after { /* Underline for treatment title */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--green-primary);
    /* transform: none; -- Default */
}


.treatment-description {
    margin-bottom: 30px;
    line-height: 1.7;
}

.treatment-details {
    margin-bottom: 30px;
}

.treatment-detail-item {
    margin-bottom: 20px;
}

.treatment-detail-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px; /* Adjusted margin */
    color: var(--blue-secondary);
    display: flex;
    align-items: center;
}

.treatment-detail-item h3 i {
    color: var(--green-primary);
    margin-right: 10px;
    width: 20px; /* Fixed width */
    text-align: center;
}

.treatment-detail-item p {
    padding-left: 30px; /* Indent text under icon */
    margin-bottom: 0;
    color: var(--dark-gray);
}

.treatment-benefits {
    background-color: rgba(107, 173, 115, 0.1); /* Light green bg */
    border-radius: var(--border-radius);
    padding: 25px; /* Increased padding */
    margin-bottom: 30px;
}

.treatment-benefits h3 {
    margin-bottom: 15px;
    color: var(--green-primary);
    font-size: 1.2rem;
}

.treatment-benefits ul {
    margin-bottom: 0;
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

.treatment-benefits ul li {
    margin-bottom: 10px;
    padding-left: 25px; /* Indent */
    position: relative;
}
.treatment-benefits ul li::before { /* Custom checkmark bullet */
    content: '\f00c'; /* Font Awesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--green-primary);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

.treatment-cta {
    text-align: center;
    margin-top: 40px; /* Space above CTA */
}

/* ===== Página de Unidades (Listagem) ===== */
.map-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 40px; /* Space above map */
    background-color: var(--light-gray); /* Placeholder bg */
}
/* Add styles for the actual map iframe or JS map */


.units-grid { /* Grid for listing multiple units */
    display: grid;
    grid-template-columns: 1fr; /* Default single column */
    gap: 40px; /* Increased gap */
    margin-top: 40px; /* Space above units list */
}

.unit-card { /* Individual unit card in the list */
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 2fr; /* Image | Content */
    gap: 0; /* No gap between image and content */
    transition: box-shadow var(--transition-normal);
}
.unit-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.unit-image {
    height: 100%; /* Fill grid cell height */
    min-height: 250px; /* Minimum height */
}

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

.unit-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.unit-content h3 {
    margin-bottom: 20px;
    color: var(--blue-secondary);
    font-size: 1.4rem;
}

.unit-info {
    margin-bottom: 20px;
}

.unit-info p {
    margin-bottom: 15px; /* Increased spacing */
    display: flex;
    align-items: center;
}

.unit-info i {
    color: var(--green-primary);
    margin-right: 10px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.1rem; /* Slightly larger icon */
}

.unit-features { /* Section for features/highlights */
    margin-top: auto; /* Push features/button down */
    padding-top: 20px; /* Space above features */
}

.unit-features h4 {
    margin-bottom: 15px;
    color: var(--green-primary);
    font-size: 1.1rem;
}

.unit-features ul {
    margin-bottom: 20px;
    list-style: none;
    padding-left: 0;
}

.unit-features ul li {
    margin-bottom: 8px; /* Spacing between features */
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}
.unit-features ul li::before { /* Small checkmark */
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--green-primary);
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 0.8rem;
}

.unit-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px; /* Space above buttons */
    flex-wrap: wrap; /* Allow buttons to wrap */
}


/* ===== FAQ Section (Accordion) ===== */
.faq-container {
    margin-top: 40px;
    max-width: 800px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensure content stays within rounded corners */
    background-color: var(--white);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: transparent; /* Remove white bg here */
    border: none; /* Remove button border */
    width: 100%; /* Make it full width */
    text-align: left; /* Align text left */
    position: relative; /* For icon positioning */
}
.faq-question:hover {
    background-color: rgba(0, 66, 101, 0.05); /* Subtle hover */
}


.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500; /* Slightly lighter weight */
    flex-grow: 1; /* Allow text to take space */
    padding-right: 30px; /* Space before toggle icon */
}

.faq-toggle {
    color: var(--green-primary);
    transition: transform var(--transition-normal);
    font-size: 1rem; /* Slightly smaller icon */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Use +/- icon instead of chevron */
.faq-toggle::before {
    content: '\f067'; /* Font Awesome Plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: inline-block; /* Needed for rotation */
    transition: transform var(--transition-normal);
}
.faq-item.active .faq-toggle::before {
    transform: rotate(135deg); /* Rotate plus to 'x' or similar */
    /* content: '\f068'; /* Font Awesome Minus */
}


.faq-answer {
    padding: 0 20px; /* Horizontal padding only when closed */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Slower transition */
    border-top: 1px solid transparent; /* Separator, transparent when closed */
    color: var(--dark-gray); /* Ensure text color */
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-answer p:last-child {
    margin-bottom: 0; /* Remove margin from last paragraph */
}

.faq-item.active .faq-answer {
    padding: 20px; /* Add vertical padding when open */
    max-height: 500px; /* Allow space for content (adjust if needed) */
    border-top-color: var(--medium-gray); /* Show separator */
    transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

/* ===== Página de Unidade Específica ===== */

/* Unit Hero Section */
.unit-hero {
    /* height: 70vh; -- Use min-height instead */
    min-height: 500px;
    max-height: 75vh; /* Limit height */
    background-color: var(--blue-secondary); /* Fallback */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: var(--header-height);
    text-align: center;
    padding: 60px 20px; /* Add vertical padding */
    color: var(--white);
}
/* Overlay is applied via ::before for better performance */
.unit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 66, 101, 0.7), rgba(0, 66, 101, 0.7));
    z-index: 1;
}


/* Unit-specific hero backgrounds (applied to .unit-hero directly) */
.ceilandia-hero {
    background-image: url('../images/ceilandia-hero.jpg');
}

.taguatinga-hero {
    background-image: url('../images/taguatinga-hero.jpg');
}

.samambaia-hero {
    background-image: url('../images/samambaia-hero.jpg');
}

.unit-hero .hero-content { /* Reusing hero-content structure */
    position: relative; /* Above overlay */
    z-index: 2;
    max-width: 800px;
    /* color: var(--white); -- Inherited */
    animation: fadeIn 1s ease-out forwards; /* Ensure animation stays */
    opacity: 0; /* Start hidden for animation */
}

.unit-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.unit-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.unit-hero .cta-button {
    animation: pulse 2s infinite; /* Keep pulse animation */
    margin: 5px; /* Add margin for multiple buttons */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Unit Details Section */
.unit-details-grid { /* Changed class name */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Info | Map */
    gap: 40px; /* Increased gap */
    margin-bottom: 50px;
}

.unit-info-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Removed hover styles for simplicity, can be added back */
}

.unit-info-card h2 {
    margin-bottom: 25px; /* Increased margin */
    color: var(--blue-secondary);
    position: relative;
    padding-bottom: 10px;
    font-size: 1.6rem; /* Larger heading */
}

.unit-info-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--green-primary);
}

.unit-info-content {
    margin-bottom: 30px; /* Space before buttons if any */
}

.unit-info-content p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1rem; /* Standard size */
}

.unit-info-content p:last-child {
    margin-bottom: 0;
}

.unit-info-content i {
    color: var(--green-primary);
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
/* Style links within unit info */
.unit-info-content a {
    color: var(--text-color);
    text-decoration: none;
}
.unit-info-content a:hover {
    color: var(--green-primary);
    text-decoration: underline;
}


.unit-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 350px; /* Ensure minimum map height */
    background-color: var(--light-gray); /* Placeholder */
    /* Removed hover styles */
}
.unit-map iframe { /* Style the map iframe */
    width: 100%;
    height: 100%;
    border: none;
}


/* Unit Gallery Section */
.unit-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive gallery */
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative; /* For caption and lightbox link */
    display: block; /* Make it behave like a link */
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Fixed height for gallery images */
    object-fit: cover;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.9); /* Slightly darken on hover */
}

/* Optional caption */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 66, 101, 0.8);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0; /* Hidden by default */
    transition: opacity var(--transition-normal);
}
.gallery-item:hover .gallery-caption {
    opacity: 1; /* Show on hover */
}

/* Style for lightbox trigger (e.g., Font Awesome icon) */
.gallery-item::after {
    content: '\f00e'; /* Font Awesome Search Plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    pointer-events: none; /* Don't interfere with link */
}
.gallery-item:hover::after {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
}


/* Unit Team Section (if specific team per unit) */
.unit-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive */
    gap: 30px; /* Increased gap */
}
/* Use .team-card styles defined earlier */


/* Unit Features Section (often uses icons) */
.unit-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive */
    gap: 30px;
    /* Background might depend on section bg color */
}

.feature-item { /* Reusing benefit card structure */
    text-align: center;
    padding: 30px;
    /* background-color: rgba(255, 255, 255, 0.1); -- Adjust based on section */
    background-color: var(--white); /* Example */
    border-radius: var(--border-radius);
    transition: transform var(--transition-normal);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Add shadow */
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    /* background-color: rgba(255, 255, 255, 0.2); -- Adjust */
    background-color: rgba(107, 173, 115, 0.1); /* Example: light green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    /* color: var(--white); -- Adjust */
    color: var(--green-primary); /* Example: green */
}

.feature-item h3 {
    /* color: var(--white); -- Adjust */
    color: var(--blue-secondary); /* Example: blue */
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-item p {
    /* color: rgba(255, 255, 255, 0.8); -- Adjust */
    color: var(--dark-gray); /* Example: dark text */
    font-size: 0.95rem;
}

/* Unit Google Reviews (Can reuse .google-reviews-carousel) */
.google-reviews-container {
    margin: 40px 0;
    position: relative;
    min-height: 200px;
}

/* Unit Specific Contact Form */
.unit-form-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* Increased shadow */
    max-width: 800px;
    margin: 40px auto 0; /* Added margin top */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unit-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.unit-form { /* Reusing .contact-form styles */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
/* Inherits .form-group, input, select, textarea styles */

/* Section for links to other units */
.other-units-section {
    padding: 60px 0; /* Adjusted padding */
    background-color: var(--light-gray); /* Different background */
}

.other-units-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 30px;
}

.other-unit-card {
    display: flex; /* Horizontal layout */
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition-normal);
}
.other-unit-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


.other-unit-image {
    width: 150px;
    min-width: 150px; /* Fixed width */
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
}

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

.other-unit-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.other-unit-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.other-unit-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.other-unit-content p i {
    color: var(--green-primary);
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

.other-unit-content .cta-button {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start; /* Align left */
}


/* ===== Página de Contato ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Cards | Form */
    gap: 50px;
    align-items: flex-start; /* Align top */
}

.contact-info-cards { /* Renamed from contact-cards */
    display: grid;
    grid-template-columns: 1fr; /* Single column for info cards */
    gap: 20px;
}

.contact-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px; /* Adjusted padding */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(107, 173, 115, 0.1); /* Light green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--green-primary);
}

.contact-card h3 {
    /* text-align: center; -- Inherited */
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-card p {
    /* text-align: center; -- Inherited */
    margin-bottom: 10px;
    font-size: 0.95rem; /* Slightly larger text */
    color: var(--dark-gray);
    line-height: 1.6;
}
.contact-card p:last-of-type {
    margin-bottom: 0;
}


.contact-card p i { /* Icon within text */
    color: var(--green-primary);
    margin-right: 5px;
}

.contact-link { /* Link like "View on Map" */
    display: block;
    /* text-align: center; -- Inherited */
    color: var(--blue-secondary);
    font-weight: 600;
    margin-top: 15px; /* Increased margin */
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-link:hover {
    color: var(--green-primary);
    text-decoration: underline;
}

.contact-card .social-icons { /* Social icons within a card */
    justify-content: center;
    margin-top: 15px;
}
.contact-card .social-icons a {
    background-color: rgba(0, 66, 101, 0.1); /* Light blue */
    color: var(--blue-secondary);
}
.contact-card .social-icons a:hover {
    background-color: var(--blue-secondary);
    color: var(--white);
}


/* Contact form on contact page reuses .contact-form-container and .contact-form */


/* ===== General CTA Section ===== */
.cta-section {
    background-color: var(--blue-secondary); /* Fallback */
    background-image: linear-gradient(rgba(0, 66, 101, 0.9), rgba(0, 66, 101, 0.9)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding: 80px 0; /* Standard section padding */
}

.cta-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px; /* Padding for small screens */
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2.2rem; /* Adjusted size */
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.7;
    opacity: 0.9;
}

.cta-content .cta-button {
    transform: scale(1.1); /* Make button slightly larger */
}

/* Removido close-popup pois não é mais usado */


/* ===== Responsividade ===== */

/* Larger Desktops */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px; /* Slightly wider container */
    }
}


/* Laptops and Desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px; /* Adjust columns if needed, e.g., 2fr 1fr 1fr */
    }
}

/* Tablets (Landscape) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-content h1, .unit-hero h1 { font-size: 2.5rem; }

    /* --- Header --- */
    .desktop-menu {
        display: none;
    }
    #header .cta-button.secondary { /* Esconde botão CTA específico do header */
        display: none;
    }
    .mobile-menu-toggle {
        display: flex; /* Show hamburger */
    }

    /* --- Grids --- */
    .about-grid,
    .about-history,
    .treatment-content,
    .unit-details-grid, /* Updated class */
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px; /* Reduce gap */
    }

    .treatment-content.reverse {
        direction: ltr; /* Reset direction */
    }
    .treatment-content .treatment-image { /* Ensure image is not reversed */
         order: -1; /* Move image above text if needed */
    }
     .treatment-content.reverse .treatment-image {
         order: 0; /* Reset order if reversed */
     }


    .locations-grid,
    /*.unit-team-grid {
        grid-template-columns: repeat(2, 1fr)  Already responsive with auto-fit
    }*/
     .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
     }

    .unit-card { /* Unit listing card */
        grid-template-columns: 1fr; /* Stack image and content */
    }
    .unit-image { /* Adjust height */
        height: 250px;
    }

    .mvv-grid {
        grid-template-columns: 1fr; /* Stack M V V cards */
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Allow 2 columns if space */
    }

    .other-units-grid {
         grid-template-columns: 1fr; /* Stack other units */
    }

}

/* Tablets (Portrait) and Large Phones */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .section {
        padding: 60px 0; /* Reduce section padding */
    }
    #hero { min-height: 500px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section-title { font-size: 1.8rem; }
    .hero-content h1, .unit-hero h1 { font-size: 2rem; }
    .hero-content p, .unit-hero p { font-size: 1.1rem; }

    /* --- Grids --- */
    /* Most grids become 1 column due to auto-fit */
    .benefits-grid,
    .tech-grid,
    .unit-features-grid,
    /* .certifications-grid {
         /* Already responsive with auto-fit
    }
     .services-grid,
     .locations-grid,
     .team-grid {
         Already responsive with auto-fit
     }*/


    .unit-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Allow 2 cols */
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Force single column */
        text-align: center; /* Center footer content */
    }
    .footer-grid h4::after { /* Center underline */
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-about .social-icons {
        justify-content: center;
    }
     .footer-contact p {
         justify-content: center;
     }


    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px; /* Add gap */
    }

    .footer-legal {
        margin-top: 10px;
    }
    .footer-legal a {
        margin: 0 10px;
    }

    /* --- Forms --- */
    .contact-form,
    .unit-form {
        grid-template-columns: 1fr; /* Single column */
    }
    .form-group.full-width {
        grid-column: span 1; /* Reset span */
    }

    .other-unit-card { /* Stack image and content */
        flex-direction: column;
    }
    .other-unit-image {
        width: 100%;
        height: 150px; /* Adjust height */
    }
}

/* Small Phones */
@media (max-width: 576px) {
    body { font-size: 15px; } /* Slightly smaller base font */

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .section-title { font-size: 1.6rem; }
    .hero-content h1, .unit-hero h1 { font-size: 1.8rem; }
    .hero-content p, .unit-hero p { font-size: 1rem; }


    .hero-buttons .cta-button {
        margin: 5px 0; /* Stack buttons vertically */
        display: block; /* Make buttons block */
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
     .cta-button { /* Reduce padding slightly */
         padding: 10px 20px;
     }

    .unit-gallery {
        grid-template-columns: 1fr; /* Single column gallery */
    }

    .unit-buttons { /* Stack buttons in unit card */
        flex-direction: column;
        gap: 10px;
    }
    .unit-buttons .cta-button {
        width: 100%; /* Full width buttons */
    }

    /* Ajuste geral para popups em telas pequenas */
    .popup-content, #unitPopup .popup-content, .lead-popup .popup-content {
        padding: 25px 20px; /* Reduzir padding */
        max-width: calc(100% - 40px); /* Garantir margens laterais */
    }
     .popup-header h3 { font-size: 1.4rem; }
     #unitPopup h2 { font-size: 1.3rem; margin-bottom: 20px; }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .footer-grid { gap: 30px; }
    #footer { padding-top: 40px; }
    .footer-bottom { padding: 20px 0; }

    .treatment-nav-list { gap: 5px 10px; } /* Reduce gap */
    .treatment-nav-list li a { padding: 6px 10px; font-size: 0.9rem;}

    .faq-question h3 { font-size: 1rem; }
}


/* ===== Pop-up Seleção de Unidade WhatsApp ===== */
#unitPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Levemente mais escuro para contraste */
    display: none; /* Inicia oculto */
    justify-content: center;
    align-items: center;
    z-index: 1100; /* Acima do header e float button */
    padding: 20px; /* Espaçamento para telas menores */
    opacity: 0; /* Para animação */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#unitPopup.active { /* Classe para exibir o popup */
    /* display: flex; -- JS controla isso */
    opacity: 1;
    visibility: visible;
}

#unitPopup .popup-content {
    background: #fff;
    padding: 30px 40px; /* Mais padding horizontal */
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: scale(0.95); /* Para animação */
    transition: transform 0.3s ease;
}

#unitPopup.active .popup-content {
    transform: scale(1);
}


#unitPopup h2 {
    color: var(--blue-secondary);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

#unitPopup .popup-buttons button {
    margin: 10px 0;
    padding: 12px 20px;
    width: 100%;
    background-color: var(--green-primary, #6BAD73);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem; /* Tamanho ajustado */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#unitPopup .popup-buttons button:hover {
    background-color: var(--green-dark, #4A8C52); /* Usando variável existente */
    transform: translateY(-2px);
}

#unitPopup .popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px; /* Maior para facilitar clique */
    line-height: 1;
    color: #888; /* Cinza mais suave */
    cursor: pointer;
    padding: 5px; /* Área de clique maior */
    transition: color 0.2s ease;
}

#unitPopup .popup-close:hover {
    color: var(--blue-secondary);
}

/* Ajuste para sobrepor o botão flutuante foi feito com z-index */