/* ==========================================================================
   The OG 1870 — shared stylesheet
   Hand-written CSS only. No framework, no CDN.
   Palette sampled from the client's own logo, signage and posters.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Brand */
  --red:        #5E1510;   /* barn red — the building */
  --red-deep:   #4A100C;
  --red-soft:   #7A2018;
  --gold:       #C7A25B;   /* the logo mark */
  --gold-light: #DEB259;
  --espresso:   #211813;   /* sign ground, body text */
  --cream:      #F2DEC3;   /* poster paper */
  --paper:      #FAF5EC;   /* page ground — lighter than cream for long text */
  --white:      #FFFFFF;

  /* Semantic roles.
     Contrast audited to WCAG 2.1 AA:
       espresso on paper 16.1:1 · espresso on cream 13.3:1
       red on paper 12.2:1 · cream on red 10.1:1 · gold on red 5.5:1
     GOLD ON LIGHT GROUNDS IS 1.8:1 — it is NEVER used for text on paper or
     cream, only as hairlines, borders and rules. */
  --text:           var(--espresso);
  --text-muted:     #5A4A3F;          /* 7.4:1 on paper */
  --text-on-dark:   var(--cream);
  --accent-on-dark: var(--gold-light);
  --surface:        var(--paper);
  --surface-alt:    var(--cream);
  --surface-dark:   var(--red);
  --rule:           rgba(199, 162, 91, 0.45);
  --rule-on-dark:   rgba(242, 222, 195, 0.28);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-label:   "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body:    Merriweather, Georgia, "Times New Roman", serif;

  /* Spacing scale (8px rhythm) */
  --s1: 0.5rem; --s2: 1rem;   --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem;   --s6: 4rem;   --s7: 6rem;   --s8: 8rem;

  --container: 1200px;
  --radius: 3px;              /* near-square, vintage */
  --shadow: 0 2px 10px rgba(33, 24, 19, 0.10);
  --shadow-lg: 0 10px 34px rgba(33, 24, 19, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-soft); }

/* Accessibility baseline */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: var(--cream);
  padding: 0.75rem 1.25rem; font-family: var(--font-label);
  letter-spacing: 0.06em; text-decoration: none;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--s2);
  color: var(--red);
}
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
p  { margin: 0 0 var(--s2); max-width: 68ch; }

.eyebrow {
  font-family: var(--font-label);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--s1);
  display: block;
}
.lede { font-size: 1.125rem; }

/* On dark grounds */
.on-dark { background: var(--surface-dark); color: var(--text-on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }
.on-dark .eyebrow { color: var(--accent-on-dark); }
.on-dark a { color: var(--gold-light); }

/* --- Layout ------------------------------------------------------------- */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3rem); }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* Decorative gold rule with a diamond, echoing the sign's flourish */
.flourish {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin: var(--s2) auto var(--s3); max-width: 340px;
}
.flourish::before, .flourish::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}
.flourish span {
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--gold); flex: none;
}
.on-dark .flourish::before, .on-dark .flourish::after { background: var(--rule-on-dark); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
  min-height: 44px;             /* touch target */
  line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* red button on light ground — 12.2:1 */
.btn--primary { background: var(--red); color: var(--cream); border-color: var(--red); }
.btn--primary:hover { background: var(--red-soft); border-color: var(--red-soft); color: var(--cream); }

/* outline on light ground */
.btn--outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red); color: var(--cream); }

/* on red sections — cream outline, 10.1:1 */
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--rule-on-dark); }
.btn--ghost:hover { background: var(--cream); color: var(--red); border-color: var(--cream); }

/* gold fill takes espresso text — 7.3:1 */
.btn--gold { background: var(--gold); color: var(--espresso); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--espresso); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.center .btn-row, .hero .btn-row { justify-content: center; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s2);
  padding-block: 0.75rem;
}
.site-logo { grid-column: 2; justify-self: center; line-height: 0; }
.site-logo img { width: 92px; height: 92px; border-radius: 50%; }
.nav-toggle {
  grid-column: 1; justify-self: start;
  display: none; background: none; border: 2px solid var(--red);
  color: var(--red); font-family: var(--font-label); font-size: 1rem;
  letter-spacing: 0.1em; padding: 0.6rem 1rem; border-radius: var(--radius);
  min-height: 44px; min-width: 44px; cursor: pointer;
}
.site-nav { grid-column: 1 / -1; grid-row: 2; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s1) var(--s3);
}
.site-nav a {
  font-family: var(--font-label);
  font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--espresso); text-decoration: none;
  padding: 0.5rem 0.25rem; display: inline-flex; align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav a:hover { color: var(--red); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

/* Click-to-call in the header — the primary conversion on a restaurant site */
.header-call {
  grid-column: 3; justify-self: end;
  font-family: var(--font-label); font-size: 1.15rem; letter-spacing: 0.08em;
  color: var(--red); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}
.header-call:hover { color: var(--red-soft); border-bottom-color: var(--gold); }
.header-call svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; text-align: center; }
  .site-nav a { justify-content: center; }
  .site-logo img { width: 72px; height: 72px; }
  .header-call span { display: none; }     /* icon-only at phone width */
  .header-call { font-size: 1rem; }
}

/* --- Footer version switcher (client review only — remove before launch) -- */
.version-switch {
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px dashed var(--rule-on-dark);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2);
  font-family: var(--font-label); letter-spacing: 0.12em; font-size: 0.95rem;
}
.version-switch .label { color: var(--gold-light); }
.version-switch a {
  color: var(--cream); text-decoration: none;
  border: 1px solid var(--rule-on-dark); border-radius: var(--radius);
  padding: 0.45rem 0.9rem; min-height: 44px;
  display: inline-flex; align-items: center;
}
.version-switch a:hover { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.version-switch a[aria-current="page"] { background: var(--gold); color: var(--espresso); border-color: var(--gold); }

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: clamp(380px, 64vh, 640px); object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,24,19,.62) 0%, rgba(33,24,19,.30) 42%, rgba(33,24,19,.80) 100%);
}
.hero__inner {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--s3) 1rem;
}
.hero h1 { color: var(--cream); text-shadow: 0 2px 18px rgba(0,0,0,.55); margin-bottom: var(--s2); }
.hero p {
  color: var(--cream); font-size: clamp(1rem, 1.7vw, 1.25rem);
  max-width: 60ch; text-shadow: 0 1px 12px rgba(0,0,0,.6); margin-bottom: var(--s3);
}
.hero .eyebrow { color: var(--gold-light); text-shadow: 0 1px 10px rgba(0,0,0,.6); }

/* --- Hours band --------------------------------------------------------- */
.hours-band { background: var(--cream); border-block: 1px solid var(--rule); }
.hours-band .container { padding-block: var(--s3); text-align: center; }
.hours-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: var(--s1); }
.hours-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s2) var(--s5); margin: var(--s2) 0 0;
}
.hours-grid > div { min-width: 190px; }
.hours-grid dt {
  font-family: var(--font-label); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); font-size: 1.05rem;
}
.hours-grid dd { margin: 0; font-size: 1.05rem; font-weight: 700; }
.hours-grid small { display: block; color: var(--text-muted); font-weight: 400; font-size: .85rem; }

/* --- Card grid ---------------------------------------------------------- */
.grid { display: grid; gap: var(--s3); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--s3); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: var(--s1); }
.card__body p { flex: 1; }
.card .btn { align-self: flex-start; margin-top: var(--s1); }
.on-dark .card { background: rgba(250, 245, 236, 0.07); border-color: var(--rule-on-dark); }
.on-dark .card h3 { color: var(--cream); }
.on-dark .card p { color: var(--text-on-dark); }

/* --- Split (image + text) ----------------------------------------------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* --- Timeline (the building's history) ---------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--rule-on-dark);
}
.timeline li { position: relative; padding: 0 0 var(--s3) var(--s4); }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 16px; height: 16px; background: var(--gold);
  transform: rotate(45deg); border-radius: 2px;
}
.timeline .year {
  font-family: var(--font-label); font-size: 1.35rem; letter-spacing: 0.1em;
  color: var(--gold-light); display: block; line-height: 1.2;
}
.timeline p { margin: 0.25rem 0 0; max-width: 62ch; }

/* --- Gallery strip ------------------------------------------------------ */
.strip {
  display: grid; gap: var(--s1);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.strip img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: var(--radius); }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--espresso); color: var(--cream); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .container { padding-block: var(--s5) var(--s3); }
.footer-grid {
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.site-footer h3 {
  font-family: var(--font-label); font-weight: 400;
  font-size: 1.15rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: var(--s2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer p { margin-bottom: 0.4rem; max-width: 40ch; }
.footer-bottom {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--rule-on-dark);
  display: flex; flex-wrap: wrap; gap: var(--s2);
  align-items: center; justify-content: space-between;
  font-size: 0.9rem;
}
.jagg-credit { color: rgba(242, 222, 195, 0.78); font-size: 0.85rem; margin: 0; }
.jagg-credit a { color: rgba(242, 222, 195, 0.92); text-decoration: underline; }
.jagg-credit a:hover { color: var(--gold-light); }

/* --- Reveal on scroll (JS-driven — see nav.js) -------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* --- Utilities (CSP forbids inline style attributes) -------------------- */
.u-m0 { margin: 0; }
.u-mt3 { margin-top: var(--s3); }
.u-mt4 { margin-top: var(--s4); }
.u-center { justify-content: center; }
