/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: #0A2342;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== GEOMETRIC DECORATIONS ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(212, 160, 23, 0.08);
    border-radius: 50%;
    top: 20%;
    right: -80px;
}

.shape-circle-2 {
    width: 150px;
    height: 150px;
    background: rgba(212, 160, 23, 0.05);
    border-radius: 50%;
    bottom: 30%;
    left: -40px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(10, 35, 66, 0.04);
    top: 60%;
    right: 5%;
    transform: rotate(15deg);
}

.shape-dots {
    top: 45%;
    left: 3%;
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 12px;
}

.shape-dots span {
    width: 8px;
    height: 8px;
    background: rgba(212, 160, 23, 0.15);
    border-radius: 50%;
}

/* ===== NAVBAR ===== */
.nav-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 35, 66, 0.06);
}

.nav-header.scrolled {
    box-shadow: 0 4px 30px rgba(10, 35, 66, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D4A017;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

.mobile-menu.hidden {
    animation: slideUp 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.mobile-link {
    display: block;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #EFF4FA 0%, #D9E4F2 40%, #B3C6E0 100%);
    position: relative;
}

.hero-geo {
    position: absolute;
    pointer-events: none;
}

.shape-geo-circle-a {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(212, 160, 23, 0.12);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.shape-geo-circle-b {
    width: 300px;
    height: 300px;
    background: rgba(212, 160, 23, 0.08);
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
}

.shape-geo-circle-c {
    width: 120px;
    height: 120px;
    background: rgba(10, 35, 66, 0.06);
    border-radius: 50%;
    top: 20%;
    left: 5%;
}

.shape-geo-ring {
    width: 200px;
    height: 200px;
    border: 4px solid rgba(212, 160, 23, 0.15);
    border-radius: 50%;
    top: 30%;
    right: 2%;
}

.shape-geo-dots {
    top: 15%;
    left: 8%;
    display: grid;
    grid-template-columns: repeat(5, 6px);
    gap: 10px;
}

.shape-geo-dots span {
    width: 6px;
    height: 6px;
    background: rgba(212, 160, 23, 0.2);
    border-radius: 50%;
}

.shape-geo-bar {
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, #D4A017, #FFE57D);
    border-radius: 3px;
    bottom: 25%;
    left: 0;
    opacity: 0.4;
}

.hero-image-wrapper {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4A017, #FFE57D);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

/* ===== PATIENT CARDS ===== */
.patient-card {
    position: relative;
}

.patient-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0A2342, #2D5487);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.patient-card:hover::after {
    transform: scaleX(1);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .hero-image-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }

    .about-image-grid {
        gap: 8px !important;
    }

    .floating-stat {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-image-wrapper {
        max-width: 400px;
    }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(212, 160, 23, 0.2);
    color: #0A2342;
}
