/* ══════════════════════════════════════════════
   ClinicLife — Global Styles
   Shared across all pages: reset, variables,
   typography, nav, footer, buttons, utilities.
   ══════════════════════════════════════════════ */

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Design Tokens ── */
:root {
    --primary: #0C6E5F;
    --primary-light: #10927D;
    --primary-dark: #094E44;
    --accent: #25D366;
    --accent-hover: #1EBE57;
    --bg: #FAFCFB;
    --bg-alt: #F0F7F5;
    --text: #1A2B2A;
    --text-light: #4A6360;
    --text-muted: #7A9490;
    --white: #FFFFFF;
    --border: #D8E8E4;
    --shadow-sm: 0 1px 3px rgba(12, 110, 95, 0.06);
    --shadow-md: 0 4px 16px rgba(12, 110, 95, 0.08);
    --shadow-lg: 0 12px 40px rgba(12, 110, 95, 0.12);
    --shadow-xl: 0 20px 60px rgba(12, 110, 95, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav--static {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 800;
    font-size: 1.35rem;
    transition: color 0.3s;
}

.nav--static .nav-logo,
.nav.scrolled .nav-logo {
    color: var(--primary);
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.nav-logo-icon--sm {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav--static .nav-links a,
.nav.scrolled .nav-links a {
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--white);
}

.nav--static .nav-links a:hover,
.nav.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

.nav--static .nav-mobile-toggle,
.nav.scrolled .nav-mobile-toggle {
    color: var(--primary);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.btn-whatsapp {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ── Layout ── */
.section {
    padding: 7rem 2rem;
}

.section-alt {
    background: var(--bg-alt);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(12, 110, 95, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ── Footer ── */
.footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.5);
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer p {
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s;
    animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

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

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Shared Background Pattern ── */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ── Responsive — Global ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: var(--text) !important;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a:last-child {
        border: none;
        margin-top: 8px;
    }

    .nav-cta {
        background: none !important;
        text-align: center;
        justify-content: center;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
