/* ── Custom Styles for Memorial Physician Clinics Pass Christian Endocrinology ── */

/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #08060a;
    color: #f5d0e2;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #08060a;
}
::-webkit-scrollbar-thumb {
    background: #6B0F1A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a1141;
}

/* ── Hero Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
    animation: float 3s ease-in-out infinite;
}

/* ── Scroll Reveal (Progressive Enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered delays */
    .reveal-up:nth-child(1) { transition-delay: 0.05s; }
    .reveal-up:nth-child(2) { transition-delay: 0.1s; }
    .reveal-up:nth-child(3) { transition-delay: 0.15s; }
    .reveal-up:nth-child(4) { transition-delay: 0.2s; }
    .reveal-up:nth-child(5) { transition-delay: 0.25s; }
    .reveal-up:nth-child(6) { transition-delay: 0.3s; }
    .reveal-up:nth-child(7) { transition-delay: 0.35s; }
    .reveal-up:nth-child(8) { transition-delay: 0.4s; }
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Navbar States ── */
.navbar-scrolled {
    background: rgba(8, 6, 10, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.navbar-default {
    background: transparent !important;
}

/* ── Menu Lines Animation ── */
.menu-line {
    display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* ── Form Styles ── */
select option {
    background-color: #08060a;
    color: #f5d0e2;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ── Gold Accent Animations ── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer {
    background: linear-gradient(90deg, #C9A84C 0%, #f4d880 50%, #C9A84C 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
