/* ==========================================================================
   Entablature — site header restyled as classical architecture
   Layers: cornice (top gold bar) → frieze (nav + logo + icons) → architrave (bottom dentil band)
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Entablature wrapper — replaces .site-header                                  */
/* -------------------------------------------------------------------------- */
.museum-entablature {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--entablature-height);
    z-index: var(--z-header);
    background: var(--color-obsidian);
    /* Marble texture top stripe — subtle warmth */
    background-image: linear-gradient(
        to bottom,
        rgba(201,168,76,0.07) 0px,
        transparent 4px
    );
    /* SAFARI: no filter/opacity here — would collapse 3D contexts below */
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------------------- */
/* Cornice — top gold rule: the topmost decorative band                        */
/* -------------------------------------------------------------------------- */
.entablature__cornice {
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-gold-deep) 10%,
        var(--color-gold)      50%,
        var(--color-gold-deep) 90%,
        transparent 100%
    );
    transform-origin: center;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Frieze — the main horizontal band holding logo, nav, utilities              */
/* -------------------------------------------------------------------------- */
.entablature__frieze {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-6);
    max-width: var(--container-2xl);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* -------------------------------------------------------------------------- */
/* Site logo — flat engraved wordmark, no oval.                                */
/* A thin bottom rule appears on hover as the sole decorative accent.          */
/* -------------------------------------------------------------------------- */
.cartouche {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: var(--space-2) 0;
    /* No oval: no border-radius, no border, no box-shadow */
}

/* Hover: gold underline sweep */
.cartouche::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-gold-deep) 20%,
        var(--color-gold)      50%,
        var(--color-gold-deep) 80%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.cartouche:hover::before { opacity: 0.7; }

/* No inner rope ring */
.cartouche::after { display: none; }

.cartouche .site-logo { position: relative; }

/* Logo image — constrain height to fit frieze */
.cartouche .site-logo__image {
    height: 38px;
    width: auto;
    display: block;
}

/* Text fallback — engraved serif wordmark */
.cartouche .site-logo__text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-stone-light);
    white-space: nowrap;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5), -1px -1px 0 rgba(255,255,255,0.03);
    transition: color var(--transition-fast);
}

.cartouche .site-logo__text span { color: var(--color-gold); }

.cartouche:hover .site-logo__text { color: var(--color-stone-light); }

/* -------------------------------------------------------------------------- */
/* Frieze inscription nav — engraved serif navigation labels                   */
/* -------------------------------------------------------------------------- */
.frieze-inscription {
    display: flex;
    align-items: center;
    justify-content: center;
}

.frieze-inscription .site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each nav link — engraved chisel look */
.frieze-inscription .site-nav__link,
.frieze-inscription .site-nav__list > li > a {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-stone-mid);
    text-decoration: none;
    white-space: nowrap;
    /* Chisel engraved depth illusion */
    text-shadow:
        1px 1px 0 rgba(0,0,0,0.6),
        -1px -1px 0 rgba(255,255,255,0.04);
    position: relative;
    transition: color var(--transition-fast);
}

/* Gold underline + mana pip on hover */
.frieze-inscription .site-nav__list > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.frieze-inscription .site-nav__list > li > a:hover {
    color: var(--color-gold);
    text-shadow:
        0 0 12px rgba(201,168,76,0.3),
        1px 1px 0 rgba(0,0,0,0.6);
}

.frieze-inscription .site-nav__list > li > a:hover::after {
    width: 100%;
}

/* Current page highlight */
.frieze-inscription .site-nav__list > li.current-menu-item > a {
    color: var(--color-gold);
}

/* -------------------------------------------------------------------------- */
/* Frieze icons — bronze-medallion utility buttons                             */
/* -------------------------------------------------------------------------- */
.frieze-icons {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-shrink: 0;
}

/* Utility buttons — circular medallion style */
.frieze-icons .header-utility-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: radial-gradient(
        circle at 35% 35%,
        #5a4a30 0%,
        #2e2018 60%,
        #1a1208 100%
    );
    border: 1px solid var(--color-olive-deep);
    color: var(--color-stone-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.frieze-icons .header-utility-btn:hover {
    background: radial-gradient(
        circle at 35% 35%,
        var(--color-gold) 0%,
        var(--color-gold-deep) 60%,
        #8a6020 100%
    );
    border-color: var(--color-gold);
    color: var(--color-obsidian);
    box-shadow: 0 0 12px rgba(201,168,76,0.35), 0 2px 6px rgba(0,0,0,0.5);
}

/* -------------------------------------------------------------------------- */
/* Architrave — bottom dentil band connecting to column capitals               */
/* -------------------------------------------------------------------------- */
.entablature__architrave {
    height: 8px;
    flex-shrink: 0;
    background:
        /* Dentil pattern — repeating dark rectangles on stone */
        repeating-linear-gradient(
            90deg,
            rgba(0,0,0,0.55)    0px,
            rgba(0,0,0,0.55)    8px,
            rgba(0,0,0,0.1)     8px,
            rgba(0,0,0,0.1)    16px
        ),
        linear-gradient(
            to bottom,
            var(--color-stone-dark) 0%,
            #9a9078 100%
        );
    opacity: 0.7;
}

/* -------------------------------------------------------------------------- */
/* Mobile hamburger — same slot in grid but revealed at breakpoint              */
/* -------------------------------------------------------------------------- */
.entablature__frieze .nav-toggle {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                   */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .entablature__frieze {
        grid-template-columns: auto auto 1fr auto;
    }

    .entablature__frieze .nav-toggle {
        display: inline-flex;
    }

    .frieze-inscription {
        display: none;
    }
}

@media (max-width: 767px) {
    .entablature__architrave {
        display: none;
    }

    .museum-entablature {
        height: 60px;
    }
}

@media (max-width: 480px) {
    /* Shorten wordmark on tiny screens — show "MR" abbreviation via text truncation */
    .cartouche .site-logo__text { font-size: var(--text-base); letter-spacing: 0.08em; }
    .cartouche .site-logo__image { height: 28px; }
}

/* -------------------------------------------------------------------------- */
/* WordPress admin bar offset                                                   */
/* -------------------------------------------------------------------------- */
.admin-bar .museum-entablature,
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .museum-entablature,
    .admin-bar .site-header {
        top: 46px;
    }
}
