/* ============================================================
   Lafayette on the Square — Design System
   Palette:  Ink Navy / Aged Brass / Barn Red / Parchment / Charcoal Oak
   Type:     Fraunces (display) + Public Sans (body)
   ============================================================ */

:root {
  /* Colors */
  --ink-navy: #1b2a2e;
  --ink-navy-light: #24393f;
  --ink-navy-lighter: #2f484f;
  --brass: #b08d57;
  --brass-light: #c9a876;
  --brass-dim: #8a6f45;
  --barn-red: #7a2e1d;
  --barn-red-light: #93402c;
  --parchment: #f1e9d8;
  --parchment-dark: #e4d8bf;
  --cream: #fbf8f2;
  --charcoal: #262019;
  --charcoal-soft: #3a322a;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, Segoe UI, sans-serif;

  /* Layout */
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { 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, h1, h2, h3, h4, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a, p { overflow-wrap: break-word; }

/* Visible focus ring everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  color: inherit;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.h-xl { font-size: clamp(2.75rem, 6vw, 5.25rem); letter-spacing: -0.01em; }
.h-lg { font-size: clamp(2.25rem, 4.2vw, 3.4rem); letter-spacing: -0.01em; }
.h-md { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.h-sm { font-size: 1.25rem; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--charcoal-soft);
  max-width: 60ch;
}

.italic-note {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
  min-height: 44px;
}
.btn-primary {
  background: var(--barn-red);
  color: var(--cream);
}
.btn-primary:hover { background: var(--barn-red-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--cream);
}
.btn-outline:hover { background: rgba(251, 248, 242, 0.1); }
.btn-outline.dark { color: var(--ink-navy); }
.btn-outline.dark:hover { background: rgba(27, 42, 46, 0.06); }

/* ---------- Site Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-block: 1.4rem;
  transition: background-color 260ms var(--ease), box-shadow 260ms var(--ease), padding 260ms var(--ease);
}
.site-header.is-solid {
  position: fixed;
  background: var(--ink-navy);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  padding-block: 0.85rem;
}
.site-header.static {
  position: relative;
  background: var(--ink-navy);
}

/* ---------- Closure / announcement banner ---------- */
.closure-banner {
  position: relative;
  z-index: 50;
  background: var(--barn-red);
  color: var(--cream);
}
.closure-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-block: 0.65rem;
  text-align: center;
}
.closure-banner p {
  font-size: 0.85rem;
  line-height: 1.4;
}
.closure-banner .dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--cream);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.closure-banner .dismiss:hover { opacity: 1; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
}
.brand-mark img { width: 34px; height: 34px; }
.brand-mark .wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand-mark .wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--brass-light);
  font-weight: 600;
  margin-top: 0.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
}
.main-nav a {
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-block: 0.3rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--brass-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  padding: 0.4rem;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--ink-navy);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform 320ms var(--ease);
    gap: 1.6rem;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero (storefront-plaque layout) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 38%) 1fr;
  background: var(--ink-navy);
}
.hero-panel {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
  padding: clamp(6rem, 12vh, 8rem) clamp(1.5rem, 4vw, 3.5rem) 4rem;
  color: var(--cream);
}
.hero-panel .medallion {
  width: 64px;
  height: 64px;
  opacity: 0.9;
}
.hero-panel h1 {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  color: var(--cream);
}
.hero-panel h1 small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 0.6rem;
}
.hero-panel .motto {
  color: var(--brass-light);
  font-size: 1.1rem;
}
.hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 340px;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(27,42,46,0.92) 0%, rgba(27,42,46,0.15) 32%, rgba(27,42,46,0) 55%);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 46vh; order: -1; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(27,42,46,0) 40%, rgba(27,42,46,0.95) 100%); }
  .hero-panel { padding-top: 2.5rem; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-dark { background: var(--ink-navy); color: var(--cream); }
.section-parchment { background: var(--parchment); }
.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-header.center { align-items: center; text-align: center; }

.divider-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--brass);
}
.divider-mark::before,
.divider-mark::after {
  content: "";
  height: 1px;
  width: clamp(2rem, 6vw, 5rem);
  background: currentColor;
  opacity: 0.5;
}
.divider-mark img { width: 22px; height: 22px; }
.divider-mark.center { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--parchment);
  padding-block: 4rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(241,233,216,0.14);
}
.footer-grid > * { min-width: 0;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1rem;
}
.footer-grid p, .footer-grid a { color: rgba(241,233,216,0.82); font-size: 0.95rem; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.8rem;
  color: rgba(241,233,216,0.55);
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(241,233,216,0.25);
  border-radius: 50%;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.footer-social a:hover { border-color: var(--brass-light); color: var(--brass-light); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--brass); color: var(--charcoal);
  padding: 0.7rem 1.2rem; z-index: 100; font-weight: 600;
  transition: top 200ms var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   Home page components
   ============================================================ */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.dish-grid > * { min-width: 0; }
.dish-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.dish-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease);
}
.dish-card:hover img { transform: scale(1.06); }
.dish-card .caption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(0deg, rgba(27,42,46,0.92) 0%, rgba(27,42,46,0) 100%);
  color: var(--cream);
}
.dish-card .caption .name { font-family: var(--font-display); font-size: 1.2rem; }
.dish-card .caption .price { color: var(--brass-light); font-size: 0.9rem; margin-top: 0.2rem; }

@media (max-width: 900px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dish-grid { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split > * { min-width: 0; }
.split img { width: 100%; border-radius: var(--radius); }
.split .divider-mark img { width: 22px; height: 22px; border-radius: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.stat-row {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.5rem;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat .num { font-family: var(--font-display); font-size: 2.1rem; color: var(--brass); }
.stat .label { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--charcoal-soft); }

.bubble-callout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bubble-callout img { width: 150px; height: auto; flex-shrink: 0; }

/* ============================================================
   Menu page
   ============================================================ */
.menu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  padding-block: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--parchment-dark);
}
.menu-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--parchment-dark);
  border-radius: 999px;
  color: var(--charcoal-soft);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.menu-nav a:hover, .menu-nav a.is-active {
  background: var(--barn-red);
  border-color: var(--barn-red);
  color: var(--cream);
}

.menu-category { padding-block: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 5.5rem; }
.menu-category + .menu-category { border-top: 1px solid var(--parchment-dark); }

.menu-category-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.menu-note {
  text-align: center;
  font-style: italic;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  max-width: 46ch;
  margin: 0.75rem auto 0;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3.5rem;
  row-gap: 0.4rem;
}
.menu-list.single { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }

.menu-item { padding-block: 1.1rem; border-bottom: 1px dotted var(--parchment-dark); }
.menu-item-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.menu-item-head .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.menu-item-head .leader {
  flex: 1;
  border-bottom: 1px dotted var(--brass-dim);
  transform: translateY(-4px);
  opacity: 0.6;
}
.menu-item-head .price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--barn-red);
  white-space: nowrap;
}
.menu-item .desc {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin-top: 0.3rem;
  line-height: 1.5;
}
.menu-item .addons {
  font-size: 0.82rem;
  color: var(--brass-dim);
  margin-top: 0.35rem;
  font-style: italic;
}

@media (max-width: 760px) {
  .menu-list { grid-template-columns: 1fr; }
}

.menu-disclaimer {
  background: var(--charcoal);
  color: rgba(241,233,216,0.75);
  font-size: 0.82rem;
  line-height: 1.7;
  padding-block: 2.5rem;
}
.menu-disclaimer .wrap { max-width: 800px; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid {
  columns: 3 260px;
  column-gap: 1.5rem;
}
.gallery-grid figure {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-grid img {
  width: 100%;
  transition: transform 500ms var(--ease);
}
.gallery-grid a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(19, 28, 30, 0.95);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--cream);
  width: 44px; height: 44px;
}
.lightbox-close svg { width: 28px; height: 28px; }

/* ============================================================
   About page
   ============================================================ */
.about-hero {
  background: var(--ink-navy);
  color: var(--cream);
  padding-block: clamp(8rem, 16vh, 10rem) 5rem;
}
.about-hero .wrap { max-width: 900px; text-align: center; }

.quote-block {
  border-left: 3px solid var(--brass);
  padding-left: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink-navy);
  margin-block: 1.75rem;
}
.section-dark .quote-block { color: var(--cream); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-grid > * { min-width: 0; }
.info-card {
  background: var(--parchment);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius);
}
.info-card h3 { margin-bottom: 0.75rem; }
.info-card + .info-card { margin-top: 1.5rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding-block: 0.5rem; border-bottom: 1px dotted var(--parchment-dark); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.map-frame {
  width: 100%; aspect-ratio: 4/3; border: none; border-radius: var(--radius);
  background: var(--parchment-dark);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Page intro band used on inner pages (menu/gallery/contact) */
.page-intro {
  background: var(--ink-navy);
  color: var(--cream);
  padding-block: clamp(8rem, 18vh, 10rem) 4rem;
  text-align: center;
}
.page-intro .wrap { max-width: 720px; margin-inline: auto; }
