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

:root {
    /* Cores principais - Verde Sage */
    --primary: #ACBA8C;
    --primary-dark: #98A677;
    --accent: #7A8D5E;
    --accent-dark: #6B7D54;
    --foreground: #3A4A2C;
    --foreground-secondary: #5C6E48;
    --background: #FFFFFF;
    --background-muted: #F7F9F4;
    --border: #D8E1CA;
    --radius: 1rem;
    --shadow: 0 4px 6px -1px rgba(58, 74, 44, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--foreground);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

.whatsapp-icon-floating {
    width: 36px;
    height: 36px;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--background-muted);
    transform: scale(1.05);
}

.btn-lg {
    padding: 1rem 2.5rem;
    min-height: 56px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    display: none;
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

.desktop-nav button {
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground-secondary);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.desktop-nav button:hover {
    color: var(--foreground);
    background: var(--background-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.desktop-only {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav button,
.mobile-nav a {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
    color: var(--foreground-secondary);
    text-decoration: none;
}

.mobile-nav button:hover,
.mobile-nav a:not(.btn):hover {
    background: var(--background-muted);
}

/* Hero */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--background-muted) 0%, var(--background) 100%);
}

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

.hero-content {
    order: 2;
}

.hero-image {
    order: 1;
    position: relative;
}

.image-glow {
    position: absolute;
    inset: -0.25rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 1.5rem;
    opacity: 0.3;
    filter: blur(1rem);
}

.hero-image img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 2px solid var(--border);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--foreground-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    color: var(--accent);
}

.badge-item span {
    font-size: 0.75rem;
    color: var(--foreground-secondary);
    font-weight: 500;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--foreground-secondary);
}

/* About */
.about {
    background: var(--background-muted);
}

.clinic-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 1rem;
    border: 2px solid var(--border);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--background);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 1rem;
    opacity: 0;
    filter: blur(1rem);
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover .service-glow {
    opacity: 0.3;
}

.service-image {
    margin: -1.5rem -1.5rem 1.5rem;
}

.service-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.service-card p {
    color: var(--foreground-secondary);
    margin-bottom: 1rem;
}

.service-benefits {
    list-style: none;
    margin: 1.5rem 0;
}

.service-benefits li {
    padding: 0.5rem 0;
    color: var(--foreground-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-benefits li svg {
    color: var(--accent);
    flex-shrink: 0;
}

.service-card .btn {
    margin-top: 1.5rem;
}

/* Gallery */
.gallery {
    background: var(--background-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-grid .gallery-item {
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-grid .gallery-item:hover {
    transform: scale(1.02);
}

.gallery-grid .gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
    border: 2px solid var(--border);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--background-muted) 100%);
}

.cta-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.cta p {
    font-size: 1.125rem;
    color: var(--foreground-secondary);
    margin-bottom: 2rem;
}

/* Location */
.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 1rem;
    border: 2px solid var(--border);
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-icon svg {
    color: var(--accent);
}

.info-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.info-card p {
    color: var(--foreground-secondary);
}

.location-map {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--border);
}

.map-placeholder {
    aspect-ratio: 1;
    background: var(--background-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.map-icon svg {
    color: var(--accent);
}

.map-placeholder p {
    color: var(--foreground-secondary);
}

/* Footer */
footer {
    background: var(--background-muted);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 64px;
    width: auto;
    margin-bottom: 1rem;
}

footer h3, footer h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

footer p, footer a {
    color: var(--foreground-secondary);
    text-decoration: none;
    line-height: 1.8;
}

footer a:hover {
    color: var(--foreground);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--foreground-secondary);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .desktop-only {
        display: inline-flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .logo-img {
        height: 48px;
    }
    
    .logo-text {
        display: inline;
    }
    
    .clinic-gallery,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .clinic-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .location-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
