:root {
    /* Medical Color Palette */
    --primary: #2A7FFF;
    --primary-dark: #1e66db;
    --primary-light: #e5f0ff;
    --secondary: #0a1f44;
    --bg-main: #ffffff;
    --bg-secondary: #F5F7FA;
    --text-main: #1d2b38;
    --text-muted: #64748b;
    --whatsapp: #25D366;
    --whatsapp-dark: #1DA851;
    --border: #e2e8f0;
    
    /* Layout & Effects */
    --font-family: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 24px rgba(10, 31, 68, 0.08);
    --shadow-hover: 0 16px 32px rgba(42, 127, 255, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-secondary);
}

.w-100 {
    width: 100%;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(42, 127, 255, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 127, 255, 0.35);
}

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

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

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

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary-light);
}

.btn-outline-whatsapp {
    background-color: transparent;
    border: 2px solid var(--whatsapp);
    color: var(--whatsapp);
}

.btn-outline-whatsapp:hover {
    background-color: #e8fbf0;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

header:not(.scrolled) .logo,
header:not(.scrolled) .nav-links a {
    color: white; /* When on top of hero image */
}

.logo i {
    color: var(--primary);
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: inherit;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.trust-badge.dark {
    background: rgba(10, 31, 68, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; 
    background: url('hero.webp') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 31, 68, 0.85), rgba(10, 31, 68, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--secondary);
}

.section-header p {
    font-size: 1.125rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--primary);
    color: white;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
}

.feature-card h4 {
    font-size: 1.125rem;
    margin: 0;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.review-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

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

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin: 0 0 4px 0;
}

.stars {
    color: #FFB800;
    font-size: 0.875rem;
    letter-spacing: 2px;
}

/* Appointment & Map Split Sections */
.container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

/* Forms */
.glass-card {
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.appointment-card h2 {
    margin-bottom: 8px;
}
.appointment-card > p {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-secondary);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background-color: white;
}

.custom-select {
    position: relative;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.custom-select i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

/* Contact Info Card */
.contact-info-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.contact-info-card h3 {
    margin-bottom: 24px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--primary);
    background: white;
    padding: 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.contact-list strong {
    display: block;
    color: var(--secondary);
    margin-bottom: 4px;
}

.contact-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.map-container {
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #e5e7eb;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-logo {
    color: white !important;
    margin-bottom: 24px;
}

.footer h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating WhatsApp Button */
.floating-wa-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.floating-wa-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* Mobile Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container-split {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header {
        background: white;
        padding: 16px 0;
        box-shadow: var(--shadow-sm);
    }
    
    header:not(.scrolled) .logo,
    header:not(.scrolled) .mobile-menu-btn {
        color: var(--secondary);
    }
    
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }

    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    
    .nav-links a {
        color: var(--secondary) !important;
        font-weight: 600;
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-btn {
        width: 100%;
    }

    .hero {
        text-align: center;
        min-height: auto;
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Show mobile action bar and hide floating wa button on very small screens */
    .mobile-action-bar {
        display: flex;
    }
    
    .floating-wa-btn {
        bottom: 80px; /* Adjust to sit above the action bar */
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    body {
        padding-bottom: 60px; /* Space for sticky bar */
    }

    .action-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        font-size: 0.75rem;
        font-weight: 500;
        gap: 4px;
        color: var(--text-muted);
    }

    .action-btn i {
        font-size: 1.25rem;
    }

    .action-btn.text-whatsapp {
        color: var(--whatsapp);
    }

    .action-btn.highlight-btn {
        flex: 1.5;
    }
    
    .glass-card {
        padding: 32px 24px;
    }
}
