/* ==========================================================================
   Ernest Klein & Company — styles
   Tokens: navy/red/gold pulled from the storefront sign, on warm cream.
   ========================================================================== */

:root {
  --navy: #142850;
  --navy-deep: #0d1c3a;
  --red: #c23a2b;
  --red-deep: #9e2e21;
  --gold: #b8923f;
  --cream: #f7f3ea;
  --paper: #ffffff;
  --ink: #201c16;
  --ink-soft: #4a453c;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 6px 24px rgba(20, 40, 80, 0.10);
  --shadow-lift: 0 14px 34px rgba(20, 40, 80, 0.18);

  --nav-height: 76px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 64px 0; }
.section--navy {
  background: var(--navy);
  color: var(--cream);
}
.section--navy .eyebrow { color: var(--gold); }
.section-head {
  max-width: 700px;
  margin: 0 0 3rem;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
}
.section-head p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.section--navy .section-head p { color: rgba(247, 243, 234, 0.82); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { background: var(--red-deep); box-shadow: var(--shadow-lift); }
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.section:not(.section--navy) .btn--ghost { border-color: var(--navy); color: var(--navy); }
.section:not(.section--navy) .btn--ghost:hover { background: rgba(20,40,80,0.06); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(20,40,80,0.10);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
}
.brand img {
  height: 42px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { width: 100%; }

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-ctas .btn { padding: 0.6rem 1.05rem; font-size: 0.88rem; }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 24px;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0.5rem;
  }
  .nav-ctas .btn { justify-content: center; }
}

/* No-JS fallback: keep nav visible and in-flow */
.no-js .main-nav {
  position: static;
  transform: none;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0;
  background: transparent;
}
.no-js .nav-toggle { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,28,58,0.35) 0%, rgba(13,28,58,0.55) 45%, rgba(13,28,58,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(247,243,234,0.14);
  border: 1px solid rgba(247,243,234,0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.hero p.lede {
  font-size: 1.05rem;
  max-width: 56ch;
  color: rgba(247,243,234,0.9);
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-ctas .btn--ghost { border-color: rgba(247,243,234,0.6); color: #fff; }
.hero-ctas .btn--ghost:hover { background: rgba(247,243,234,0.12); }

/* ---- Reveal ----
   Content is visible by default (no-JS, reduced-motion, or any timing edge
   case all fail safe to visible). Only browsers that get as far as adding
   .js-reveal-ready AND intersect the element get the fade/rise treatment. */
.reveal { opacity: 1; transform: none; }
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Story ---- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
}
.story-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.story-copy p { margin-bottom: 1.1rem; color: var(--ink-soft); font-size: 1.05rem; }
.story-copy p:last-of-type { margin-bottom: 1.6rem; }
.story-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.6rem 0 2rem;
}
.story-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--navy);
}
.story-list li svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 0.15rem;
  color: var(--red);
}

/* ---- Menu ---- */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 680px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}
.menu-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(20,40,80,0.06);
}
.menu-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--gold);
}
.menu-card .menu-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 0.9rem;
  font-style: italic;
}
.menu-card ul { display: grid; gap: 0.45rem; }
.menu-card li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.94rem;
  padding: 0.15rem 0;
}
.menu-card li .price {
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}
.menu-card .item-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 0.1rem;
}
.menu-card .plain-list li { display: block; }
.menu-card .plain-list li::before {
  content: "•";
  color: var(--gold);
  margin-right: 0.5rem;
}

/* ---- Platter rail (signature element) ---- */
.platter-rail {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.2rem 1.4rem;
  margin: 0 -0.2rem;
  scrollbar-color: var(--gold) transparent;
  scrollbar-width: thin;
}
.platter-rail::-webkit-scrollbar { height: 8px; }
.platter-rail::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.platter-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(78vw, 340px);
  background: var(--navy-deep);
  border: 1px solid rgba(184,146,63,0.45);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.platter-card:hover, .platter-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.platter-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.platter-caption {
  padding: 1.1rem 1.2rem 1.3rem;
}
.platter-caption h4 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.platter-caption p {
  font-size: 0.88rem;
  color: rgba(247,243,234,0.82);
}
.catering-details {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .catering-details { grid-template-columns: repeat(3, 1fr); }
}
.catering-col h4 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.catering-col ul { display: grid; gap: 0.4rem; }
.catering-col li {
  font-size: 0.92rem;
  color: rgba(247,243,234,0.85);
}
.catering-col li::before { content: "— "; color: var(--gold); }
.catering-cta { margin-top: 2.5rem; text-align: center; }

/* ---- Tour the store grid ---- */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 700px) {
  .tour-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1040px) {
  .tour-grid { grid-template-columns: repeat(4, 1fr); }
}
.tour-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--navy);
}
.tour-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.tour-item:hover img { transform: scale(1.06); }
.tour-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(0deg, rgba(13,28,58,0.88), rgba(13,28,58,0));
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}
.tour-item--wide { grid-column: span 2; }

/* ---- Visit ---- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}
.visit-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
}
.visit-card h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6rem;
}
.hours-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(20,40,80,0.08);
  font-size: 0.96rem;
}
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.contact-lines { display: grid; gap: 0.5rem; margin-bottom: 1.6rem; }
.contact-lines a { text-decoration: none; font-weight: 600; color: var(--red); }
.contact-lines .label { color: var(--ink-soft); font-size: 0.85rem; display: block; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(20,40,80,0.08);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.neighborhood-note {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.neighborhood-note img {
  width: 84px; height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.neighborhood-note p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247,243,234,0.85);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.footer-brand img { height: 40px; }
.footer-brand strong {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
}
.footer-col h5 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; color: rgba(247,243,234,0.82); font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(247,243,234,0.14);
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(247,243,234,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
}

/* ---- 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;
}
