/* =============================================
   VIA Foundation — Shared Stylesheet
   All pages link here. Page-specific styles
   live in each file's <style> block.
   ============================================= */

/* VARIABLES */
:root {
  --paper:   #F2F0EC;
  --surface: #E8E5DF;
  --border:  #D4D0C8;
  --olive:   #A8AD8B;
  --ink:     #202426;
  --mid:     #6B6B6B;
  --white:   #FFFFFF;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* BASE */
html { scroll-behavior: smooth; }
body {
  font-family: Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}


/* ── NAV ─────────────────────────────────────
   Default: always-light (interior pages)
   Homepage overrides to transparent in page <style>
   ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 120px;
  transition: background 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}
.nav-logo { display: flex; align-items: center; margin-right: auto; }
/* Inner-page nav layout (back link + centered logo) */
.nav-left  { display: flex; align-items: center; flex: 1; }
.nav-center { display: flex; justify-content: center; align-items: center; }
.nav-right { display: flex; align-items: center; gap: 20px; justify-content: flex-end; flex: 1; }
.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-mark {
  height: 72px; width: auto; display: block;
  transition: height 0.3s ease, filter 0.3s ease;
}

.nav-links a {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mid);
  text-decoration: none; transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--olive); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 10px 20px;
  border-radius: 2px; text-decoration: none;
  transition: opacity 0.2s; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }

.nav-back {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mid);
  text-decoration: none; display: flex; align-items: center;
  gap: 8px; transition: color 0.2s; white-space: nowrap;
}
.nav-back:hover { color: var(--ink); }


/* ── HAMBURGER BUTTON ────────────────────────
   Hidden on desktop; shows on mobile
   ─────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* Active = X */
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── MOBILE MENU ─────────────────────────────
   Full-screen overlay; slides down from top
   Nav sits on top (z-index 200 > 190)
   ─────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 190;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu-spacer {
  height: 120px; /* pushes content below the sticky nav */
  flex-shrink: 0;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 24px;
  flex: 1;
}
.mobile-menu-nav a {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  transition: color 0.15s;
  display: block;
}
.mobile-menu-nav a:last-child { border-bottom: none; }
.mobile-menu-nav a:hover,
.mobile-menu-nav a:active { color: #fff; }

.mobile-menu-footer {
  padding: 24px 32px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu-cta {
  display: block;
  background: var(--olive); color: var(--ink);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 20px 28px; border-radius: 2px;
  text-decoration: none; text-align: center;
  transition: opacity 0.2s;
}
.mobile-menu-cta:hover { opacity: 0.88; }


/* ── UTILITIES ───────────────────────────────  */
.container { max-width: 1040px; margin: 0 auto; padding: 0 48px; }

.btn-primary {
  background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 14px 28px;
  border-radius: 2px; text-decoration: none;
  display: inline-block; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}


/* ── FOOTER ──────────────────────────────────  */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px;
}
.footer-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .footer-wordmark {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 4px;
}
.footer-brand .footer-sub {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--olive); margin-bottom: 16px;
}
.footer-brand p { font-size: 13px; color: var(--mid); line-height: 1.65; max-width: 260px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 13px; color: var(--mid); text-decoration: none; }
.footer-col li a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1040px; margin: 0 auto;
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p  { font-size: 12px; color: var(--mid); }
.footer-bottom a  { font-size: 12px; color: var(--mid); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }


/* ── MOBILE ──────────────────────────────────  */
@media (max-width: 768px) {
  .nav { padding: 0 20px; height: 72px; }
  .nav-mark { height: 40px; }
  .mobile-menu-spacer { height: 72px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  footer { padding: 40px 20px; }
  /* !important overrides inline grid-template-columns set on every inner page footer */
  .footer-inner { grid-template-columns: 1fr !important; gap: 32px; margin-bottom: 32px; }
}


/* ── ANNOUNCEMENT BAR ───────────────────────  */
#ann-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 48px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  position: relative;
  z-index: 201;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
#ann-bar.visible { display: flex; }
#ann-bar p { margin: 0; flex: 1; }
#ann-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 20px; line-height: 1;
  padding: 0 0 0 12px; flex-shrink: 0; transition: color 0.2s;
}
#ann-close:hover { color: var(--white); }
@media (max-width: 768px) {
  #ann-bar { padding: 10px 44px 10px 20px; }
  #ann-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
}

/* ── ACCESSIBILITY ───────────────────────────  */
@media (prefers-reduced-motion: reduce) {
  .nav, .nav-mark, .nav-links a, .nav-cta,
  .nav-hamburger span { transition: none; }
  .mobile-menu { transition: none; }
  .mobile-menu.open { transform: translateY(0); visibility: visible; }
  /* Ensure closed menu is hidden even without animation */
  .mobile-menu:not(.open) { visibility: hidden; transform: translateY(-100%); }
}
