/* ============================================================
   LAYOUT — Site header + Site footer.
   Both touch every page on the site.

   SECTION 08 — Site header: two rows (masthead + utility), sticky,
                paper backplate at scroll>80px.
   SECTION 09 — Site footer: imprint columns, monumental wordmark
                signature, closing strip.
   ============================================================ */


/* ============================================================
   SECTION 08 — SITE HEADER (TWO-ROW MASTHEAD + UTILITY)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: transparent;
  transition: background-color 200ms ease;
}

.site-header[data-scrolled="true"] {
  background-color: rgba(246, 241, 231, 0.95);
}

.site-header[data-scrolled="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background-color: rgba(26, 31, 46, 0.14);
}

/* --- Row 1: Masthead --- */
.site-header__masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 10px 32px;
  min-height: 36px;
  border-bottom: 1px solid var(--color-hairline);
}

.site-header__masthead-item {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink);
  line-height: 1;
  white-space: nowrap;
}

.site-header__masthead-item--center {
  color: rgba(26, 31, 46, 0.70);
}

/* --- Row 2: Utility --- */
.site-header__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 20px 32px;
  min-height: 72px;
}

/* Brand block (logo + wordmark) */
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

.site-header__brand:hover .site-header__wordmark {
  color: var(--color-navy);
}

.site-header__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.site-header__wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-ink);
  letter-spacing: var(--ls-tight);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

/* Primary nav */
.site-header__nav {
  display: none;
  flex: 1;
  justify-content: center;
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-header__menu > li {
  margin-top: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
}

.site-header__menu a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--color-ink);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-2);
  transition: letter-spacing 200ms ease;
}

.site-header__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background-color: rgba(26, 31, 46, 0.30);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease;
}

.site-header__menu a:hover {
  letter-spacing: 0.14em;
}

.site-header__menu a:hover::after,
.site-header__menu a:focus-visible::after {
  transform: scaleX(1);
}

/* Active-page marker: small green & before the active link */
.site-header__menu .current-menu-item::before {
  content: "&";
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-green);
  line-height: 1;
}

.site-header__menu .current-menu-item > a {
  color: var(--color-ink);
}

/* CTA */
.site-header__cta {
  display: none;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--color-ink);
  text-decoration: none;
  transition: transform 250ms var(--ease-out-cubic);
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
  transform: translateX(4px);
  color: var(--color-ink);
}

.site-header__cta-arrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--color-green);
  font-size: 1rem;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  transform: translateY(0.05em);
}

/* Mobile hamburger toggle */
.site-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px 4px;
  background-color: transparent;
  flex-shrink: 0;
}

.site-header__toggle-bar {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-ink);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.site-header[data-nav-open="true"] .site-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header[data-nav-open="true"] .site-header__toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-nav-open="true"] .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .site-header__nav { display: flex; }
  .site-header__cta { display: inline-flex; }
  .site-header__toggle { display: none; }
}

/* --- Mobile nav overlay (navy backdrop, Fraunces italic items) --- */
@media (max-width: 1023px) {
  .site-header__nav {
    position: fixed;
    inset: 0;
    background-color: var(--color-navy);
    color: var(--color-paper);
    z-index: var(--z-overlay);
    padding: var(--space-9) var(--space-margin-side);
    transform: translateY(-100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-header[data-nav-open="true"] .site-header__nav {
    transform: translateY(0);
  }

  .site-header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header__menu > li {
    padding-block: var(--space-4);
    border-bottom: 1px solid rgba(246, 241, 231, 0.25);
    display: flex;
  }

  .site-header__menu a {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--color-paper);
    letter-spacing: var(--ls-tight);
    text-transform: none;
    padding: 0;
  }

  .site-header__menu a::after { display: none; }

  .site-header__menu .current-menu-item::before {
    color: var(--color-green);
    font-size: 1.75rem;
    margin-right: 12px;
  }
}

body.nav-open { overflow: hidden; }

/* ===== SITE MAIN ===== */
.site-main {
  min-height: 60vh;
}


/* ============================================================
   SECTION 09 — SITE FOOTER (IMPRINT + WORDMARK + CLOSING STRIP)
   ============================================================ */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-paper);
  position: relative;
}

/* --- Zone 1: Imprint Block --- */
.site-footer__imprint {
  padding: 96px 32px 80px;
}

.site-footer__imprint-inner {
  max-width: 1200px;
  margin-inline: auto;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: 56px;
}

.site-footer__meta-rule {
  width: 64px;
  height: 1px;
  background-color: rgba(246, 241, 231, 0.30);
}

.site-footer__meta-label {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--color-paper);
  line-height: var(--lh-meta);
  margin: 0;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .site-footer__columns {
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 48px;
  }
}

.site-footer__col {
  display: flex;
  flex-direction: column;
}

.site-footer__brand-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  object-fit: contain;
}

.site-footer__brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--color-paper);
  margin: 0 0 16px;
}

.site-footer__brand-tagline {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(246, 241, 231, 0.65);
  margin: 0 0 20px;
}

.site-footer__brand-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.55);
  margin: 4px 0 0;
}

.site-footer__brand-founders {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(246, 241, 231, 0.85);
  margin: 0;
}

.site-footer__col-heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.65);
  margin: 0 0 20px;
}

.site-footer__col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer__col-list > li {
  margin-top: 0;
}

.site-footer__col-list a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-paper);
  text-decoration: none;
  letter-spacing: 0;
  transition: color 200ms ease, letter-spacing 200ms ease;
}

.site-footer__col-list a:hover {
  color: var(--color-green);
  letter-spacing: 0.01em;
}

.site-footer__address {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(246, 241, 231, 0.90);
  margin: 0 0 16px;
}

.site-footer__email {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-paper);
  text-decoration: none;
  display: inline-block;
  margin: 0 0 20px;
  transition: color var(--transition-fast);
}

.site-footer__email:hover { color: var(--color-green); }

.site-footer__hours {
  font-family: var(--font-body);
  font-size: var(--fs-rule);
  font-weight: 500;
  letter-spacing: var(--ls-rule);
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.55);
  margin: 0; /* last item in office column — no bottom gap needed */
}

.site-footer__phone {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(246, 241, 231, 0.70);
  margin: 0 0 16px; /* phone now precedes hours — add spacing below */
}

/* --- Office column icon rows --- */
.site-footer__office-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.site-footer__office-icon {
  flex-shrink: 0;
  margin-top: 2px; /* optically align icon centre with first text line */
  color: rgba(246, 241, 231, 0.55);
}
.site-footer__office-icon--fax {
  margin-top: 4px; /* printer icon sits visually higher — nudge down 2px extra */
}

/* --- Zone 3: Closing Strip --- */
.site-footer__strip {
  border-top: 1px solid rgba(246, 241, 231, 0.18);
  padding: 32px;
}

.site-footer__strip-inner {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (min-width: 768px) {
  .site-footer__strip-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer__copyright,
.site-footer__credit {
  font-family: var(--font-body);
  font-size: var(--fs-rule);
  font-weight: 500;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.60);
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.site-footer__legal > li {
  margin-top: 0;
}

.site-footer__legal a {
  font-family: var(--font-body);
  font-size: var(--fs-rule);
  font-weight: 500;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.60);
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer__legal a:hover { color: var(--color-paper); }

.site-footer__legal-sep {
  color: rgba(246, 241, 231, 0.40);
}

.site-footer__credit a {
  color: rgba(246, 241, 231, 0.60);
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer__credit a:hover {
  color: var(--color-green);
}

/* --- Subtle grain overlay across the footer (6%, like the editor's letter) --- */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.12 0 0 0 0 0.18 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  background-size: 280px 280px;
  opacity: 0.06;
  mix-blend-mode: overlay;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}
