/* ============================================================
   Heroes of Waterloo — Modern Gastropub
   Design tokens & global styles
   ============================================================ */

:root {
  --bg:           #14211c;
  --bg-elev:      #1b2a23;
  --bg-warm:      #1d2520;
  --text:         #ede0c5;
  --text-muted:   #a8a193;
  --text-faint:   #6e6f64;
  --accent:       #d4a96b;
  --accent-dark:  #b5824a;
  --border:       rgba(237, 224, 197, 0.12);
  --border-strong:rgba(237, 224, 197, 0.25);

  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --max:   1140px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  background: linear-gradient(to bottom, rgba(20, 33, 28, 0.85), rgba(20, 33, 28, 0.55));
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, padding .3s;
}

/* Frosted-glass effect ONLY on desktop. On mobile, backdrop-filter on the
   header creates a containing block that traps the mobile nav drawer's
   position: fixed inside the header, breaking the fullscreen overlay. */
@media (min-width: 821px) {
  .site-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.site-header.scrolled {
  background: rgba(15, 25, 21, 0.96);
  border-bottom-color: var(--border);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand { display: flex; align-items: center; gap: 0.85rem; }

.brand-mark {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  display: inline-flex; align-items: baseline;
  line-height: 1;
}
.brand-mark .hw-dot { opacity: 0.65; margin: 0 0.15em; font-size: 0.9em; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.08rem; letter-spacing: 0.01em;
  font-weight: 400;
  color: var(--text);
}

.site-nav { display: flex; gap: 2rem; align-items: center; }

.site-nav a {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}
.site-nav a:not(.cta):hover { color: var(--accent); }
.site-nav a:not(.cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  height: 1px; width: 0; background: var(--accent);
  transition: width .25s ease;
}
.site-nav a:not(.cta):hover::after { width: 100%; }

.site-nav .cta {
  border: 1px solid var(--accent);
  padding: 0.55rem 1.2rem;
  color: var(--accent);
  border-radius: 1px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}
.site-nav .cta:hover {
  background: var(--accent); color: var(--bg);
}
.site-nav .cta::after { display: none; }

.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 32px; height: 26px; padding: 0;
  flex-direction: column; gap: 6px;
  z-index: 60;
}
.menu-toggle span {
  display: block; height: 1.5px; background: var(--text); width: 100%;
  transition: transform .25s, opacity .25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 9rem var(--pad-x) 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 50% at 28% 22%, rgba(212, 169, 107, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 80%, rgba(120, 70, 45, 0.30), transparent 60%),
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(30, 60, 45, 0.4), transparent 70%),
    linear-gradient(180deg, #0e1a15 0%, #14211c 55%, #1a2a22 100%);
}

.hero-inner { max-width: 920px; position: relative; z-index: 2; }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.2rem;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 1.8rem;
  color: var(--text);
}
.hero h1 .amp {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  display: inline-block;
  margin: 0 0.2em;
  transform: translateY(-0.05em);
}

.tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.6rem;
  line-height: 1.55;
}
.tagline em { color: var(--text); font-style: italic; }

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .25s ease;
  cursor: pointer;
  border-radius: 1px;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--accent); color: #14211c;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: transparent; color: var(--accent);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
}

.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.45'/></svg>");
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); transform-origin: bottom; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: bottom; }
}

/* ============================================================
   Sections
   ============================================================ */
section { padding: 7rem 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: 0; }

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 1.6rem;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 680px;
}
h2 em { font-style: italic; color: var(--accent); font-weight: 300; }

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
}
p:last-child { margin-bottom: 0; }

.section-head { max-width: 700px; margin-bottom: 3.2rem; }
.section-head h2 { margin-bottom: 1rem; }
.lede { font-size: 1.08rem; }

.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}
.col-label { position: sticky; top: 7rem; height: fit-content; }
.col-label .section-tag { margin-bottom: 0; }

/* ============================================================
   Menus
   ============================================================ */
.menu-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.menu-loading {
  color: var(--text-faint);
  font-style: italic;
  padding: 1.2rem 0;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color .25s, transform .25s, background .25s;
}
.menu-item:hover {
  border-color: var(--accent);
  background: var(--bg-warm);
  transform: translateY(-2px);
}
.menu-item > a {
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}
.menu-item > a:hover { color: var(--accent); }
.menu-item .menu-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
}
.menu-item .menu-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.menu-item .pdf-icon {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.45rem 0.8rem;
  border-radius: 1px;
  font-weight: 600;
  flex-shrink: 0;
}
.menu-note {
  font-size: 0.9rem;
  color: var(--text-faint);
  font-style: italic;
}

/* ============================================================
   What's On
   ============================================================ */
.events-list { margin-bottom: 1.5rem; }
.events-list li {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex;
  gap: 1.8rem;
  align-items: baseline;
  line-height: 1.5;
}
.events-list li:last-child { border-bottom: 0; }
.events-list .day {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 150px;
}

.muted { color: var(--text-muted); }
.small { font-size: 0.88rem; }

/* ============================================================
   Find Us / Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.4rem 2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.contact-grid dt {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 0.25rem;
  font-weight: 500;
}
.contact-grid dd {
  color: var(--text);
  line-height: 1.7;
}
.contact-grid dd a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}
.contact-grid dd a:hover { color: var(--accent); }
.contact-grid dd.socials { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: baseline; }
.contact-grid dd.socials a { border-bottom: 1px solid var(--accent); }
.contact-grid dd.socials .dot { color: var(--text-faint); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--serif);
  color: var(--text);
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.footer-inner p { margin: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  /* Full-screen mobile drawer: covers the entire viewport when open so the
     hero/page content can't bleed through. Higher z-index than the header
     (which has backdrop-filter and can layer awkwardly on some browsers). */
  .site-nav {
    position: fixed;
    inset: 0;                         /* top:0 right:0 bottom:0 left:0 */
    width: auto;
    max-width: none;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 2.5rem 2.5rem;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform .35s ease;
    border-left: none;
    box-shadow: none;
    z-index: 100;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font-size: 1.4rem; letter-spacing: 0.12em; }
  .site-nav .cta {
    font-size: 0.9rem;
    padding: 0.85rem 1.6rem;
    margin-top: 0.6rem;
  }
  .menu-toggle { display: flex; z-index: 110; }
  .brand { z-index: 110; position: relative; }
  .brand-name { display: none; }

  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .col-label { position: static; }
  section { padding: 5rem 0; }
  .hero { min-height: 92vh; padding-top: 7rem; }
  .hero-scroll { display: none; }

  .events-list li { flex-direction: column; gap: 0.3rem; }
  .events-list .day { width: auto; }

  .contact-grid { grid-template-columns: 1fr; gap: 0.3rem 0; }
  .contact-grid dt { margin-top: 1.2rem; }
  .contact-grid dt:first-child { margin-top: 0; }

  .menu-item {
    padding: 1.3rem 1.4rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .menu-item .menu-title { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
