/* =========================================================
   1. THEME: edit this block to rebrand the whole site
   ========================================================= */
:root {
  /* Colours */
  --brand: #b3261e;          /* [BRAND COLOR]: buttons, links, highlights. Keep white text readable on it. */
  --brand-dark: #8a1c16;     /* darker shade of [BRAND COLOR] for hover states */
  --accent: #f4b942;         /* [ACCENT COLOR]: badges, signup and Call Now buttons. Pair with dark text. */
  --accent-dark: #e0a32a;    /* darker shade of [ACCENT COLOR] for hover states */
  --ink: #1f1a17;            /* main text and dark bands */
  --ink-soft: #5c524b;       /* secondary text */
  --on-brand: #ffffff;       /* text on the brand colour */
  --on-accent: #1f1a17;      /* text on the accent colour */
  --paper: #ffffff;          /* main background */
  --cream: #fbf6ef;          /* alternate section background */
  --line: #eadfd2;           /* borders */
  --slot: #e7dfd4;           /* empty photo slots */
  --focus: #1f1a17;          /* keyboard focus ring */

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --h1: clamp(2.25rem, 1.25rem + 5vw, 4.5rem);
  --h2: clamp(1.75rem, 1.3rem + 2.4vw, 2.75rem);
  --h3: 1.25rem;

  /* Spacing and shape */
  --gutter: 1rem;
  --max-width: 72rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-section: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --radius: 1rem;
  --radius-pill: 999px;
  --header-h: 4rem;
  --shadow: 0 10px 30px rgb(31 26 23 / 0.08);
  --shadow-hover: 0 16px 40px rgb(31 26 23 / 0.14);
  --ease: 200ms ease;
}

/* =========================================================
   2. BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word; /* long words never cause sideways scroll */
}

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

h1,
h2,
h3 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
}

h1 { font-size: var(--h1); letter-spacing: -0.02em; }
h2 { font-size: var(--h2); letter-spacing: -0.01em; }
h3 { font-size: var(--h3); font-weight: 600; }

p { margin: 0 0 var(--space-sm); }

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

address { font-style: normal; }

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

/* Sections focused by script.js after an anchor jump need no ring */
[tabindex="-1"]:focus { outline: none; }

/* Anchor targets stop below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + var(--space-sm)); }

/* =========================================================
   3. UTILITIES & LAYOUT
   ========================================================= */
.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;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:focus { top: var(--space-xs); }

.container {
  width: min(100% - 2 * var(--gutter), var(--max-width));
  margin-inline: auto;
}

.section { padding-block: var(--space-section); }
.section--cream { background: var(--cream); }

.section-head {
  max-width: 42rem;
  margin-bottom: var(--space-lg);
}

.section-head > :last-child { margin-bottom: 0; }

.eyebrow {
  margin-bottom: var(--space-xs);
  color: var(--brand);
  font-weight: 700;
}

/* Inline arrow links inside cards */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* Two-column text + photo blocks (About, Story) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

/* Card grids: 1 column on phones, more as space allows */
.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================================================
   4. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: 700 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-dark); }

.btn--ghost { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: var(--on-brand); }

/* =========================================================
   5. STICKY HEADER & NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: var(--header-h);
}

.logo {
  display: block;
  min-width: 0;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 44px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--ease), background-color var(--ease);
}

.menu-toggle__bars { position: relative; }

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

/* Open state: bars become an X */
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown, opened by the toggle's aria-expanded state */
.nav-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: var(--space-xs) var(--gutter) var(--space-sm);
  list-style: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.menu-toggle[aria-expanded="true"] + .nav-list { display: block; }

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.nav-list a:hover { color: var(--brand); }

.header-location {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   6. HERO
   ========================================================= */
.hero {
  background: var(--cream);
  padding-block: var(--space-lg) var(--space-section);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.hero-tagline {
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
  color: var(--ink-soft);
}

.hero-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: var(--space-md) 0 0;
  font-size: var(--text-lg);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.hero-media { border-radius: 2rem; }

/* =========================================================
   7. IMAGE SLOTS: neutral boxes until a real photo is added
   ========================================================= */
.img-slot {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--slot);
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x3 { aspect-ratio: 4 / 3; }

/* =========================================================
   8. HOURS & LOCATION BAR
   ========================================================= */
.visit {
  padding-block: var(--space-lg);
  background: var(--ink);
  color: var(--paper);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
}

.visit-title {
  margin: 0;
  font-size: 1.5rem;
}

.visit-item h3 {
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
}

.hours { margin: 0; }
.hours div { display: flex; gap: 0.75rem; }
.hours dt { min-width: 4.5rem; font-weight: 700; }
.hours dd { margin: 0; }

.visit :focus-visible { outline-color: var(--paper); }

/* =========================================================
   9. PROMOTION CARDS
   ========================================================= */
.promo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: var(--space-md);
  border-top: 6px solid var(--brand);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.promo-card p { color: var(--ink-soft); }

.promo-card .promo-tag {
  margin-bottom: 0.25rem;
  color: var(--brand);
  font-size: 0.9375rem;
  font-weight: 700;
}

.promo-card .text-link { margin-top: auto; }

/* =========================================================
   10. MENU TEASER CARDS
   ========================================================= */
.menu-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform var(--ease), box-shadow var(--ease);
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.menu-card .img-slot { border-radius: 0; }

.menu-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-md);
}

.menu-card__body p { color: var(--ink-soft); }

.menu-card__body .price {
  margin: auto 0 0;
  color: var(--ink);
  font-weight: 600;
}

.price strong {
  color: var(--brand);
  font-size: 1.25rem;
}

/* =========================================================
   11. OWNER STORY
   ========================================================= */
.credibility {
  margin-block: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-left: 4px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--cream);
  font-weight: 600;
}

/* =========================================================
   12. LOCATION MAP (placeholder)
   ========================================================= */
.join {
  background: var(--brand);
  color: var(--on-brand);
}

.join-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  align-items: end;
}

.join-copy > :last-child { margin-bottom: 0; }

/* Neutral stand-in box; a pasted Google Maps <iframe> should get width: 100% and a height */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 12rem;
  padding: var(--space-md);
  border-radius: var(--radius);
  background: var(--slot);
  color: var(--ink-soft);
  text-align: center;
}

.map-placeholder p {
  margin: 0;
  font-weight: 600;
}

.map-placeholder__pin { color: var(--brand); }

.join :focus-visible { outline-color: var(--paper); }

/* =========================================================
   13. FOOTER
   ========================================================= */
.site-footer {
  padding-block: var(--space-lg) var(--space-md);
  background: var(--ink);
  color: rgb(255 255 255 / 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--paper);
  text-decoration: none;
}

.footer-title {
  margin-bottom: var(--space-xs);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer :focus-visible { outline-color: var(--paper); }

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: 0.875rem;
}

.footer-bottom p { margin: 0; }

/* =========================================================
   14. RESPONSIVE: scale up from 375px to 1440px+
   ========================================================= */
@media (min-width: 480px) {
  .header-location { display: inline-flex; }
  .nav-visit { display: none; } /* "Find Us" sits in the header from here up */
}

@media (min-width: 600px) {
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  :root { --gutter: 1.5rem; }

  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .visit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .visit-title { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  :root { --header-h: 4.5rem; }

  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }

  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .split--reverse .split-media { order: 2; }

  .join-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  /* Desktop: links sit inline, the hamburger hides */
  .menu-toggle { display: none; }

  .nav-list,
  .menu-toggle[aria-expanded="true"] + .nav-list {
    display: flex;
    position: static;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 0.75rem;
    border: 0;
  }

  .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .visit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .visit-title { grid-column: auto; }
  .visit-cta { justify-self: end; }

  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   15. MOTION: CSS-only scroll reveal, off for reduced motion
   ========================================================= */
@keyframes reveal {
  from { opacity: 0; translate: 0 1.5rem; }
  to   { opacity: 1; translate: 0 0; }
}

/* Uses `translate`, not `transform`, so it never fights the hover lift */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .btn:hover,
  .promo-card:hover,
  .menu-card:hover {
    transform: none;
  }
}
