/* ==========================================================================
   North Queens Heritage Society - Custom Stylesheet
   ========================================================================== */

:root {
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Light Theme Palette */
    --heritage-navy: #0e2238;
    --heritage-navy-dark: #071320;
    --heritage-gold: #c5961e;
    --heritage-gold-hover: #a87f14;
    --heritage-gold-light: #fef8eb;
    --surface-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-subtle: #e2e8f0;
    --heading-color: #0e2238;
    --text-muted-custom: #64748b;
}

[data-bs-theme="dark"] {
    --heritage-navy: #0a1828;
    --heritage-navy-dark: #050d17;
    --heritage-gold: #d8a834;
    --heritage-gold-hover: #e6b847;
    --heritage-gold-light: #242014;
    --surface-bg: #0f1722;
    --card-bg: #182330;
    --border-subtle: #2b394a;
    --heading-color: #f1f5f9;
    --text-muted-custom: #94a3b8;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.cinzel {
    font-family: var(--font-heading);
}

.text-gold {
    color: var(--heritage-gold) !important;
}

.bg-gold {
    background-color: var(--heritage-gold) !important;
}

.text-gold-gradient {
    background: linear-gradient(135deg, #ffe08a 0%, var(--heritage-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-heritage-navy {
    background-color: var(--heritage-navy) !important;
}

.bg-surface {
    background-color: var(--surface-bg) !important;
}

.bg-dark-custom {
    background-color: #060e18 !important;
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.92) !important;
}

.tracking-wider {
    letter-spacing: 1.5px;
}

/* ==========================================================================
   1. Museum Top Utility Bar
   ========================================================================== */
.museum-utility-bar {
    background-color: #0b1522;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.81rem;
    color: #cbd5e1;
}

.top-util-donate-link {
    color: var(--heritage-gold);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.top-util-donate-link:hover {
    color: #ffffff;
}

.top-util-fb-link {
    color: #cbd5e1;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.top-util-fb-link:hover {
    color: #4599ff;
}

.top-util-divider {
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.18);
    display: inline-block;
}

.top-theme-toggle-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s ease;
}

.top-theme-toggle-btn:hover {
    color: var(--heritage-gold);
}

/* ==========================================================================
   2. Museum Main Navbar (Distinct from Nursing Home)
   ========================================================================== */
.museum-navbar {
    background-color: var(--card-bg);
    border-bottom: 2px solid rgba(197, 150, 30, 0.25);
    transition: all 0.3s ease;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.museum-crest-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #1b3552, #0a1828);
    color: var(--heritage-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    border: 2px solid var(--heritage-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-text-group {
    line-height: 1.15;
}

.museum-brand-main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 1px;
    color: var(--heading-color);
}

.museum-brand-sub {
    font-size: 0.68rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--heritage-gold);
}

/* Nav links using ::before to prevent conflicts with dropdown ::after caret */
.museum-nav-list .museum-nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.1rem;
    color: var(--heading-color);
    position: relative;
    transition: color 0.25s ease;
}

.museum-nav-list .museum-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--heritage-gold);
    transition: width 0.25s ease, left 0.25s ease;
    border-radius: 2px;
}

.museum-nav-list .museum-nav-link:hover,
.museum-nav-list .museum-nav-link.active {
    color: var(--heritage-gold) !important;
}

.museum-nav-list .museum-nav-link:hover::before,
.museum-nav-list .museum-nav-link.active::before {
    width: 70%;
    left: 15%;
}

.museum-nav-list .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.2em;
    border-top: 0.35em solid currentColor;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.museum-dropdown-menu {
    border-top: 3px solid var(--heritage-gold) !important;
    border-radius: 8px;
    background-color: var(--card-bg);
    padding: 0.5rem 0;
}

.museum-dropdown-menu .dropdown-item {
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    transition: all 0.2s ease;
}

.museum-dropdown-menu .dropdown-item:hover {
    background-color: var(--heritage-gold-light);
    color: var(--heritage-gold);
    padding-left: 1.5rem;
}

/* Museum Visitor Status Capsule on Header Right (Replaced Buttons) */
.museum-hours-capsule {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-subtle);
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
}

.capsule-icon {
    color: var(--heritage-gold);
    font-size: 1.15rem;
}

.capsule-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.capsule-status {
    font-size: 0.72rem;
    letter-spacing: 0.8px;
}

.capsule-detail {
    font-size: 0.76rem;
    color: var(--text-muted-custom);
    font-weight: 500;
}

/* ==========================================================================
   3. Centered Monumental Hero Section
   ========================================================================== */
.hero-slide {
    height: 84vh;
    min-height: 580px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content-box {
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
}

.hero-emblem-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(14, 34, 56, 0.75);
    border: 2px solid var(--heritage-gold);
    color: var(--heritage-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.hero-eyebrow-line {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--heritage-gold);
    text-transform: uppercase;
}

/* Decorative Dual-Wing Divider */
.hero-flourish-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
}

.flourish-wing {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--heritage-gold));
}

.hero-flourish-divider .flourish-wing:last-child {
    background: linear-gradient(90deg, var(--heritage-gold), transparent);
}

.hero-narrative-lead {
    font-size: 1.22rem;
    line-height: 1.65;
    max-width: 780px;
}

/* Scroll Cue Link */
.scroll-cue-link {
    display: inline-block;
    transition: transform 0.25s ease;
}

.scroll-cue-link:hover {
    transform: translateY(3px);
}

.animate-bounce {
    animation: bounceChevron 2s infinite ease-in-out;
}

@keyframes bounceChevron {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* ==========================================================================
   4. Quick Info Bar
   ========================================================================== */
.quick-info-bar {
    background-color: var(--surface-bg);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.quick-info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.quick-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.info-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--heritage-gold-light), #fbf1d8);
    color: #8c6508;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border: 1px solid rgba(197, 150, 30, 0.35);
}

[data-bs-theme="dark"] .info-icon-box {
    background: linear-gradient(135deg, #2b2210, #191409);
    color: var(--heritage-gold);
    border-color: rgba(216, 168, 52, 0.4);
}

.info-card-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card-text .info-title {
    color: var(--heading-color);
    font-size: 1.05rem;
    line-height: 1.25;
}

.info-card-text .info-subtext {
    color: var(--text-muted-custom);
    font-size: 0.84rem;
}

/* ==========================================================================
   5. Buttons & Cards
   ========================================================================== */
.btn-heritage-gold {
    background-color: var(--heritage-gold);
    color: #ffffff;
    border: 1px solid var(--heritage-gold);
    transition: all 0.25s ease;
}

.btn-heritage-gold:hover {
    background-color: var(--heritage-gold-hover);
    border-color: var(--heritage-gold-hover);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(197, 150, 30, 0.35);
}

.btn-outline-gold {
    color: var(--heritage-gold);
    border-color: var(--heritage-gold);
}

.btn-outline-gold:hover {
    background-color: var(--heritage-gold);
    color: #ffffff;
}

.exhibit-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exhibit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1) !important;
}

.card-img-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.card-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.exhibit-card:hover .card-img-wrapper img,
.hover-zoom:hover {
    transform: scale(1.05);
}

.event-strip-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.event-strip-card:hover {
    transform: translateY(-3px);
}

.floating-badge-box {
    position: absolute;
    bottom: -20px;
    right: 20px;
    border: 2px solid var(--heritage-gold);
}

.contact-icon-badge {
    width: 42px;
    height: 42px;
    background-color: var(--surface-bg);
    color: var(--heritage-gold);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.hover-gold:hover {
    color: var(--heritage-gold) !important;
}

/* ==========================================================================
   6. Footer & Scroll Animations
   ========================================================================== */
.footer-heading {
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--heritage-gold);
    transform: translateX(4px);
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    background-color: #1a2433;
    color: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-btn:hover {
    background-color: var(--heritage-gold);
    color: #071320;
    transform: translateY(-3px);
}

#btnBackToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    z-index: 999;
    width: 45px;
    height: 45px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0ms);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}