/* ============================================
   Dr. Alexandra J. Weissman — Medical & Health
   Clean Minimalist · Navy + Warm Gold
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 67, 0.2);
    color: #102040;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #b8c6e0;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fa5cc;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(212, 168, 67, 0.25);
    color: #102040;
}

/* ---------- Navbar ---------- */
#navbar {
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 32, 64, 0.06);
    box-shadow: 0 1px 0 rgba(16, 32, 64, 0.04);
}

#navbar.scrolled .nav-text {
    color: #102040;
}

#navbar.scrolled .nav-subtext {
    color: #94a3b8;
}

#navbar.scrolled .nav-link {
    color: #3d5fa3;
}

#navbar.scrolled .nav-btn svg,
#navbar.scrolled .nav-line1,
#navbar.scrolled .nav-line2,
#navbar.scrolled .nav-line3 {
    background: #102040;
}

/* ---------- Hero Content Animation ---------- */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---------- Service Cards ---------- */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled .service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ---------- Form Styles ---------- */
input::placeholder,
textarea::placeholder {
    color: #cbd5e1;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #e8c86a !important;
    box-shadow: 0 0 0 3px rgba(232, 200, 106, 0.1);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ---------- Mobile Link Hover ---------- */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a843;
    transition: width 0.3s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .font-serif {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    #about,
    #services,
    #approach,
    #contact {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .service-card {
        opacity: 1;
        transform: none;
    }

    .js-enabled .reveal,
    .js-enabled .service-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
