/* ============================================
   LINDEN FAMILY MEDICAL CARE
   Premium Dark Luxury Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f0d78c;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060d18;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* ---- Section Eyebrow ---- */
.section-eyebrow {
    display: flex;
}

/* ---- Section Title ---- */
.section-title {
    font-weight: 500;
}

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

#navbar.scrolled {
    background: rgba(6, 13, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #c9a84c, #6ee7b7);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #fff;
}

/* ---- Mobile Menu ---- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
}

/* Hamburger animation */
#mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* ---- Hero Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-eyebrow {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-headline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-headline span {
    display: block;
}

.hero-headline .text-gold-400 {
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-headline .text-white\/90 {
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-headline .text-white\/50 {
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

/* ---- Service Cards ---- */
.service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, background 0.5s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.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; }

/* ---- About Section ---- */
#about .relative > div {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#about .relative > div.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Patient Experience Steps ---- */
#patient-experience .flex {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#patient-experience .flex.revealed {
    opacity: 1;
    transform: translateX(0);
}

#patient-experience .flex:nth-child(1) { transition-delay: 0.05s; }
#patient-experience .flex:nth-child(2) { transition-delay: 0.1s; }
#patient-experience .flex:nth-child(3) { transition-delay: 0.15s; }
#patient-experience .flex:nth-child(4) { transition-delay: 0.2s; }

/* ---- Location Section ---- */
#location > div > div {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#location > div > div.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- CTA Section ---- */
#patient-experience + section,
section:has(.max-w-4xl) {
    opacity: 0;
    transition: opacity 0.8s ease;
}

section:has(.max-w-4xl).revealed {
    opacity: 1;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .service-card,
    #about .relative > div,
    #patient-experience .flex,
    #location > div > div,
    section:has(.max-w-4xl) {
        opacity: 1;
        transform: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    .hero-headline .text-4xl {
        font-size: 2rem;
    }
    .hero-headline .text-3xl {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 4rem;
    }
}
