/* ========================================
   Elite Care Family Practice Clinic
   Custom Styles
======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* ---------- Geometric Hero Shapes ---------- */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 184, 0, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -200px;
    border-radius: 50%;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 184, 0, 0.06) 0%, transparent 70%);
    bottom: 10%;
    right: 30%;
    border-radius: 50%;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(230, 184, 0, 0.15);
    border-radius: 50%;
    top: 25%;
    right: 45%;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(230, 184, 0, 0.06);
    border: 2px solid rgba(230, 184, 0, 0.12);
    top: 30%;
    right: 25%;
    transform: rotate(45deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(230, 184, 0, 0.05);
    bottom: 20%;
    left: 5%;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(230, 184, 0, 0.25) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    bottom: 15%;
    right: 10%;
    opacity: 0.6;
}

/* ---------- Hero Photo ---------- */
.hero-photo-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(7, 21, 37, 0.3) 0%, rgba(7, 21, 37, 0.85) 100%);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state for reduced-motion or no-JS: fully visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- Mobile Menu ---------- */
#mobileMenu {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#mobileMenu.open {
    transform: translateX(0);
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e6b800;
    outline-offset: 2px;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(230, 184, 0, 0.3);
    color: #0d2238;
}
