/* ==========================================================================
   KCCU — HEADER & FOOTER
   Fixed header, logo lockup, nav + mega dropdown, burger, mobile overlay nav,
   and the full footer stack (grid, social, links, contact, ghost, bottom bar).

   Ported verbatim from mockups/style.css — do not restyle.
   ========================================================================== */

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.k-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    transition: background .35s ease, border-color .35s ease, padding .35s ease;
    border-bottom: 1px solid transparent;
    padding: 1.1rem 0;
}
.k-header.is-stuck {
    background: rgba(18, 11, 7, .88); backdrop-filter: blur(16px);
    border-color: var(--line-d); padding: .55rem 0;
}
.k-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.k-logo { display: flex; align-items: center; gap: .85rem; }
.k-logo-bean {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
    border: 1px solid var(--gold-deep); display: grid; place-items: center;
    color: var(--gold); background: rgba(217, 164, 65, .07);
}
.k-logo-bean svg { width: 22px; height: 22px; }
.k-logo-txt { line-height: 1.05; }
.k-logo-txt strong {
    display: block; font-family: var(--f-display); font-weight: 600;
    font-size: 1.45rem; letter-spacing: .04em; color: var(--cream);
}
.k-logo-txt em {
    display: block; font-family: var(--f-mono); font-style: normal; font-size: .56rem;
    letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim);
    white-space: nowrap; margin-top: .2rem;
}
.k-nav ul { display: flex; align-items: center; gap: .2rem; }
.k-nav li { position: relative; }
.k-nav li > a {
    display: block; padding: .7rem 1rem; white-space: nowrap;
    font-family: var(--f-mono); font-size: .7rem; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim);
    transition: color .25s;
}
.k-nav li > a:hover, .k-nav li.current > a { color: var(--gold); }
.k-nav li.current > a { position: relative; }
.k-nav li.current > a::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .3rem;
    height: 1px; background: var(--gold);
}
.k-dd {
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
    min-width: 340px; background: var(--espresso); border: 1px solid var(--line-d);
    border-radius: var(--r-md); padding: .6rem;
    opacity: 0; visibility: hidden; transition: all .3s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.k-nav li:hover .k-dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.k-dd a { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border-radius: var(--r-sm); transition: background .2s; }
.k-dd a:hover { background: rgba(242, 234, 217, .05); }
.k-dd .n { font-family: var(--f-mono); font-size: .68rem; color: var(--gold); letter-spacing: .1em; }
.k-dd strong { display: block; font-family: var(--f-display); font-size: 1.02rem; font-weight: 500; color: var(--cream); }
.k-dd small { font-size: .74rem; color: var(--cream-dim); }
.k-header-right { display: flex; align-items: center; gap: 1.2rem; }

.k-burger {
    display: none; background: none; border: none; cursor: pointer; padding: .6rem;
    flex-direction: column; gap: 6px;
}
.k-burger span { display: block; width: 28px; height: 1.5px; background: var(--cream); transition: all .3s; }
.k-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.k-burger.open span:nth-child(2) { transform: translateY(-.5px) rotate(-45deg); }

/* mobile overlay nav */
@media (max-width: 1023px) {
    .k-nav {
        position: fixed; inset: 0; background: rgba(18, 11, 7, .97); backdrop-filter: blur(20px);
        display: none; align-items: center; justify-content: center; z-index: 250;
    }
    .k-nav.open { display: flex; }
    .k-nav ul { flex-direction: column; gap: .4rem; text-align: center; }
    .k-nav li > a { font-family: var(--f-display); font-size: 1.9rem; letter-spacing: 0; text-transform: none; color: var(--cream); padding: .5rem 1rem; }
    .k-nav li > a:hover { color: var(--gold); }
    .k-nav li.current > a::after { display: none; }
    .k-dd { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: none; border: none; min-width: 0; padding: 0; }
    .k-dd a { justify-content: center; padding: .4rem; }
    .k-dd .n, .k-dd small { display: none; }
    .k-dd strong { font-size: 1.15rem; color: var(--cream-dim); font-style: italic; }
    .k-burger { display: flex; }
    .k-header .btn-fill { display: none; }
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.k-footer { background: var(--ink); border-top: 1px solid var(--line-d); position: relative; overflow: hidden; }
.k-footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: clamp(2rem, 4vw, 4rem); padding: 4.5rem 0 3.5rem; position: relative; z-index: 2;
}
.k-footer h5 {
    font-family: var(--f-mono); font-size: .62rem; font-weight: 600;
    letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
    margin: 0 0 1.4rem;
}
.k-footer-about p { color: var(--cream-dim); font-size: .9rem; max-width: 30rem; margin: 1.3rem 0 1.6rem; }
.k-social { display: flex; gap: .6rem; }
.k-social a {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line-d); color: var(--cream-dim); font-size: .85rem;
    transition: all .3s;
}
.k-social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.k-footer-links li { margin-bottom: .7rem; }
.k-footer-links a {
    font-size: .9rem; color: var(--cream-dim); display: inline-flex; align-items: center; gap: .6rem;
    transition: color .25s, gap .25s;
}
.k-footer-links a::before { content: "—"; color: var(--gold-deep); font-size: .7rem; }
.k-footer-links a:hover { color: var(--gold); gap: .9rem; }
.k-footer-contact li { display: flex; gap: .9rem; margin-bottom: 1rem; font-size: .88rem; color: var(--cream-dim); align-items: baseline; }
.k-footer-contact i { color: var(--gold); font-size: .8rem; }
.k-footer-ghost {
    position: relative; z-index: 1; pointer-events: none; text-align: center;
    font-family: var(--f-display); font-weight: 500; font-style: italic;
    font-size: clamp(4rem, 13.5vw, 12.5rem); line-height: .72; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px rgba(242, 234, 217, .09);
    margin-bottom: -.06em;
}
.k-footer-bottom {
    border-top: 1px solid var(--line-d); position: relative; z-index: 2;
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 1.5rem 0 1.7rem;
    font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(242, 234, 217, .4);
}
.k-footer-bottom a { color: var(--gold); }

/* ── FOOTER RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .k-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .k-footer-grid { grid-template-columns: 1fr; }
}

/* ── Custom logo (crest emblem) ──────────────────────────────────────────── */
.k-logo-img { height: 52px; width: auto; display: block; }
.k-header.is-stuck .k-logo-img { height: 44px; transition: height .3s ease; }
.k-footer .k-logo-img { height: 72px; }
@media (max-width: 640px) { .k-logo-img { height: 42px; } }


/* ══ Header fit & mobile menu corrections ════════════════════════════════ */

/* The header CTA must never wrap onto a second line. */
.k-header .btn-fill { white-space: nowrap; }

/* Between the desktop breakpoint and ~1300px the logo lockup + full nav +
   CTA overrun the bar, which was forcing the CTA to wrap. Reclaim space by
   tightening the CTA and dropping the long tagline. */
@media (max-width: 1300px) {
    .k-header-inner { gap: 1.2rem; }
    .k-header .btn-fill { padding: .85rem 1.25rem; font-size: .68rem; letter-spacing: .12em; }
    .k-nav li > a { padding: .6rem .7rem; }
}
@media (max-width: 1140px) {
    .k-logo-txt em { display: none; }          /* keep the wordmark, drop the strapline */
    .k-logo-img { height: 44px; }
    .k-nav li > a { padding: .6rem .55rem; font-size: .68rem; }
}

/* ── Mobile overlay: must scroll, and must clear the fixed header ───────── */
@media (max-width: 1023px) {
    .k-nav {
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 94px 1.2rem 3.5rem;
    }
    .k-nav ul { width: 100%; gap: .15rem; }
    .k-nav li > a { font-size: 1.55rem; padding: .35rem 1rem; }
    .k-dd { margin-bottom: .5rem; }
    .k-dd a { padding: .3rem; }
    .k-dd strong { font-size: 1rem; }
    /* logo + burger stay tappable above the overlay */
    .k-header { z-index: 400; }
    .k-header.is-stuck, .k-nav.open ~ * { }
}

/* Short handsets: tighten so the whole menu fits without scrolling. The nav
   carries seven top-level items plus their children, which overflows a 667px
   screen at the default sizes. It stays scrollable either way. */
@media (max-width: 1023px) and (max-height: 760px) {
    .k-nav { padding-top: 72px; padding-bottom: 2rem; }
    .k-nav ul { gap: .04rem; }
    .k-nav li > a { font-size: 1.12rem; padding: .12rem 1rem; }
    .k-dd { margin-bottom: .28rem; }
    .k-dd strong { font-size: .82rem; }
    .k-dd small { display: none; }
    .k-dd a { padding: .1rem; }
    .k-nav .k-nav-cta { margin-top: .55rem; }
    .k-nav .k-nav-cta .btn-fill { padding: .7rem 1.4rem; font-size: .66rem; }
}


/* The nav-embedded CTA exists only for the mobile overlay. */
.k-nav-cta { display: none; }
@media (max-width: 1023px) {
    .k-nav .k-nav-cta { display: block; margin-top: 1.1rem; }
    /* beats the `.k-header .btn-fill { display:none }` rule above on specificity,
       not on source order. */
    .k-nav .k-nav-cta .btn-fill { display: inline-flex; font-size: .72rem; padding: .95rem 1.8rem; }
}
@media (max-width: 1023px) and (max-height: 720px) {
    .k-nav .k-nav-cta { margin-top: .7rem; }
    .k-nav .k-nav-cta .btn-fill { padding: .8rem 1.5rem; }
}
