/* =====================================================================
   gerhardt.css — shared foundation + footer for all Gerhardt pages
   Loaded before each page's inline <style>, so page-specific rules
   can still override these. Page-specific CSS (header, hero, story,
   forms, grids, gallery, editing tools) stays inline per page.
   ===================================================================== */

/* ===== FONTS ===== */
@font-face { font-family: 'Univers Next Pro'; src: url('assets/fonts/Univers Next Pro Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Univers Next Pro'; src: url('assets/fonts/UniversNextProRegular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Univers Next Pro'; src: url('assets/fonts/Univers Next Pro Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Univers Next Pro'; src: url('assets/fonts/UniversNextProBold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ===== BRAND TOKENS ===== */
:root {
    --navy: #0f1c2e;
    --blue-accent: #0066cb;
    --blue-dark: #0055a8;
    --warm-white: #fafaf8;
    --white: #ffffff;
    --border: #e0ddd7;
    --text: #1a2332;
    --text-light: #5a6b7d;
    --slate: #4a5c6e;
    --grey: #8899a6;
    --font: 'Univers Next Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --inset: 4%;
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.5rem, 3vw, 2.5rem); }

/* ===== FOOTER (unified across all pages) ===== */
.footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 3.75rem 0 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1fr auto auto; gap: clamp(3rem, 7vw, 7rem); margin-bottom: 2.25rem; align-items: start; }
.footer__logo-img { height: 68px; width: auto; margin-bottom: 1.1rem; }
.footer__address { font-style: normal; font-size: 0.95rem; color: rgba(255,255,255,0.45); line-height: 1.7; }
.footer__links--spaced { margin-top: 0.9rem; }
.footer__heritage { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: rgba(255,255,255,0.35); margin-bottom: 0.75rem; }
.footer__tagline { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.5; max-width: 300px; }
.footer__heading { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); margin-bottom: 0.75rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; }
.footer__links a { font-size: 0.95rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__social { display: flex; flex-direction: column; gap: 0.55rem; list-style: none; margin-top: 1.6rem; }
.footer__social a { font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; }
.footer__social a:hover { color: var(--white); }
.footer__copy { font-size: 0.8rem; width: 100%; text-align: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer__copy a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer__copy a:hover { color: var(--white); }

@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===== ENQUIRY FORM (lkform) + custom dropdowns ===== */
.lkform__intro { font-size: 0.98rem; color: var(--text-light); line-height: 1.55; margin: -1.6rem auto 2rem; max-width: 520px; text-align: center; }
.lkform { display: flex; flex-direction: column; gap: 0.9rem; }
.lkform__field { display: flex; flex-direction: column; gap: 0.35rem; }
.lkform__field[hidden] { display: none; }
.lkform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.lkform__row--plz { grid-template-columns: 0.5fr 1fr; }
.lkform__label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.lkform__input, .lkform__select, .lkform__textarea { font-family: var(--font); font-size: 0.95rem; font-weight: 400; color: var(--text); padding: 0.9rem 1rem 0.7rem; border: 1px solid var(--border); border-radius: 6px; background: var(--white); outline: none; transition: border-color 0.2s; -webkit-appearance: none; appearance: none; width: 100%; }
.lkform__input:focus, .lkform__select:focus, .lkform__textarea:focus { border-color: var(--blue-accent); }
.lkform__select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238899a6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.lkform__textarea { min-height: 110px; resize: vertical; }
.lkform__optin { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; font-size: 0.82rem; color: var(--text-light); line-height: 1.45; margin-top: 0.2rem; cursor: pointer; }
.lkform__optin input { width: 16px; height: 16px; margin: 0.18rem 0 0; accent-color: var(--navy); }
.lkform__optin a { color: var(--blue-accent); }
.lkform__submit { font-family: var(--font); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); background: rgba(26,35,50,0.04); border: 1px solid rgba(26,35,50,0.18); border-radius: 6px; padding: 1.15rem 2rem 0.95rem; width: 100%; cursor: pointer; transition: all 0.2s ease; margin-top: 0.4rem; }
.lkform__submit:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.lkform__note { font-size: 0.78rem; color: var(--text-light); line-height: 1.45; margin-top: 0.2rem; }
.lkform__note a { color: var(--blue-accent); }
.lkform__done { font-size: 1.05rem; color: var(--text); line-height: 1.6; text-align: center; }

.custom-select { position: relative; }
.custom-select__trigger { font-family: var(--font); font-size: 0.95rem; font-weight: 400; color: var(--grey); padding: 0.9rem 2.5rem 0.7rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: var(--white); cursor: pointer; transition: border-color 0.2s; }
.custom-select__trigger.has-value { color: var(--text); }
.custom-select.open .custom-select__trigger { border-color: var(--blue-accent); border-radius: 6px 6px 0 0; }
.custom-select--error .custom-select__trigger { border-color: #c0392b; }
.custom-select__arrow { position: absolute; right: 1rem; top: 1.35rem; width: 12px; height: 8px; pointer-events: none; transition: transform 0.2s ease; }
.custom-select.open .custom-select__arrow { transform: rotate(180deg); }
.custom-select__arrow path { fill: none; stroke: var(--grey); stroke-width: 1.5; }
.custom-select__options { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 1px solid var(--blue-accent); border-top: none; border-radius: 0 0 6px 6px; z-index: 10; display: none; max-height: 240px; overflow-y: auto; }
.custom-select.open .custom-select__options { display: block; }
.custom-select__option { font-family: var(--font); font-size: 0.9rem; padding: 0.7rem 1rem; cursor: pointer; transition: background 0.15s; color: var(--text); }
.custom-select__option:first-child { padding-top: 0.85rem; }
.custom-select__option:last-child { padding-bottom: 0.85rem; }
.custom-select__option:hover { background: rgba(0,102,203,0.06); }
.custom-select__option.selected { color: var(--blue-accent); font-weight: 500; }

/* ===== HEADER: mobile burger sits in the clear band above the pushed-up hero ===== */
/* Un-scrolled, the hero now starts at 64px and overlaps the lower header. The G is
   meant to overlap; the burger isn't. Lift the burger to the visible band's centre —
   which equals its scrolled position, so it stays put as the bar shrinks (no jump).
   .header .header__toggle out-specifies the per-page inline .header__toggle rule. */
@media (max-width: 900px) { .header:not(.scrolled) .header__toggle { position: relative; top: -13px; } }

/* ===== LIGHTBOX (shared — any .gallery__item image opens full-screen) ===== */
.gallery__item img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(15,28,46,0.95); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 90vh; object-fit: contain; box-shadow: 0 20px 70px rgba(0,0,0,0.55); }
.lightbox__close { position: absolute; top: 1rem; right: 1.4rem; background: none; border: none; color: rgba(255,255,255,0.8); font-size: 2.4rem; line-height: 1; cursor: pointer; transition: color 0.2s; }
.lightbox__close:hover { color: #fff; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.65); font-size: 3.4rem; line-height: 1; cursor: pointer; padding: 1rem 1.25rem; user-select: none; transition: color 0.2s; }
.lightbox__nav:hover { color: #fff; }
.lightbox__prev { left: 0.3rem; }
.lightbox__next { right: 0.3rem; }
.lightbox__counter { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.82rem; letter-spacing: 0.06em; }
@media (max-width: 600px) { .lightbox__nav { font-size: 2.4rem; padding: 0.5rem; } }

/* ===== PREVIEW BUILD — hide editing tools (deploy copy only) ===== */
.img-tool, .img-tool-tab, .focal-crosshair { display: none !important; }
.gallery__manage-btn, .gallery__toolbar, .gallery__controls { display: none !important; }
