/* ============================================================
   On A Plate — Café Bistro, Shenfield
   v2 — matched to the shop itself: black fascia frame, the
   orange sign & awning (#e8551a, sampled from their shopfront),
   cream walls, espresso wood. DM Serif Display + DM Sans.
   ============================================================ */

:root {
  --cream:       #faf3e7;
  --cream-deep:  #f1e5d0;
  --paper:       #fffdf7;
  --ink:         #2b211a;
  --ink-soft:    #5f5145;
  --espresso:    #241a13;
  --espresso-2:  #30241a;
  --brand:        #e8551a;  /* their fascia orange */
  --brand-bright: #f85d37;  /* sampled sign highlight */
  --brand-deep:   #b23a05;  /* buttons with white text */
  --gold:        #d9a13b;
  --line:        rgba(43, 33, 26, .14);
  --radius: 18px;
  --shadow-soft: 0 2px 8px rgba(36,26,19,.08), 0 14px 40px rgba(36,26,19,.12);
  --shadow-lift: 0 4px 12px rgba(36,26,19,.12), 0 22px 60px rgba(36,26,19,.18);
  --wrap: 1120px;
  --headerh: 64px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.06; font-weight: 400; }
h1, h2 { font-family: "DM Serif Display", Georgia, serif; letter-spacing: -.01em; }
h2 em { font-style: italic; color: var(--brand); }
p { margin: 0 0 1rem; }
section { scroll-margin-top: calc(var(--headerh) + 44px); }
.container { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.ic { width: 18px; height: 18px; flex: none; }

:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--espresso); color: var(--cream); padding: 10px 18px; border-radius: 10px;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0;
  font-family: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:active { transform: scale(.97); }
.btn--call {
  background: var(--brand-deep); color: #fff;
  box-shadow: 0 2px 6px rgba(178,58,5,.3), 0 10px 26px rgba(178,58,5,.26);
}
.btn--call:hover { background: #9a3204; }
.btn--cream { background: var(--cream); color: var(--ink); box-shadow: var(--shadow-soft); }
.btn--cream:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid rgba(43,33,26,.3); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(43,33,26,.05); }
.btn--ghost-light { background: transparent; color: var(--cream); border: 2px solid rgba(250,243,231,.42); }
.btn--ghost-light:hover { border-color: var(--cream); background: rgba(250,243,231,.08); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }

/* ---------- Header (black fascia frame + their logo) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--espresso);
  border-bottom: 1px solid rgba(250,243,231,.08);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--headerh); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img.brand__mark { width: 40px; height: 40px; }
.brand img.brand__logo { width: 132px; height: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 12px 14px; border-radius: 10px; text-decoration: none;
  color: var(--cream); font-weight: 500; font-size: .98rem;
}
.nav a:hover { background: rgba(250,243,231,.1); }
.header-call { margin-left: 6px; background: var(--brand); color: #fff; box-shadow: none; }
.header-call:hover { background: var(--brand-bright); }
.header-call span { white-space: nowrap; }

/* ---------- Awning strip (their orange awning) ---------- */
.awning {
  background: var(--brand); color: var(--espresso);
  overflow: hidden; border-bottom: 1px solid rgba(36,26,19,.15);
}
.awning__track {
  display: flex; gap: 0; white-space: nowrap; width: max-content;
  animation: awning-scroll 32s linear infinite;
  padding: 9px 0;
}
.awning__seq { display: inline-flex; gap: 2.2em; padding-right: 2.2em; font-weight: 700; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; }
@keyframes awning-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero (full-bleed: their food, their table) ---------- */
.hero { position: relative; min-height: clamp(540px, 82svh, 780px); display: flex; align-items: flex-end; overflow: clip; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(24,15,9,.5) 0%, rgba(24,15,9,.22) 42%, rgba(24,15,9,0) 70%),
    linear-gradient(to top, rgba(24,15,9,.88) 0%, rgba(24,15,9,.55) 34%, rgba(24,15,9,.12) 62%, rgba(24,15,9,.18) 100%);
}
.hero__content { position: relative; z-index: 1; width: 100%; padding-block: clamp(28px, 5vw, 56px); color: var(--cream); }
.hero .eyebrow { color: #ffb08a; }
.hero h1 { font-size: clamp(2.45rem, 8.6vw, 4.2rem); margin-bottom: 14px; color: #fff; text-shadow: 0 2px 24px rgba(24,15,9,.4); }
.hero h1 em { font-style: italic; color: var(--brand-bright); }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: rgba(250,243,231,.92); max-width: 36em; text-shadow: 0 1px 12px rgba(24,15,9,.5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 16px; }
.hero__cta .btn--call { background: var(--brand); }
.hero__cta .btn--call:hover { background: var(--brand-bright); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(24,15,9,.55); border: 1px solid rgba(250,243,231,.22); border-radius: 999px;
  padding: 8px 14px; font-size: .88rem; font-weight: 500; color: var(--cream);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.chip .ic { width: 16px; height: 16px; color: #ffb08a; }
.chip__sub { color: rgba(250,243,231,.7); font-weight: 400; }
.stars { color: var(--gold); letter-spacing: .06em; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-deep); margin: 0 0 14px;
}
.eyebrow--light { color: #f7a677; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.section-head { max-width: 660px; margin-bottom: clamp(26px, 5vw, 42px); }
.section-head h2, .about-copy h2, .find-copy h2, .reviews-head h2 { font-size: clamp(1.9rem, 5.4vw, 2.75rem); }
.section-head__sub { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Menu ---------- */
.menu { padding: clamp(48px, 8vw, 96px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.menu-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.menu-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 30px);
}
.menu-card h3 {
  font-family: "DM Serif Display", Georgia, serif; font-size: 1.45rem; margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 12px;
}
.menu-card h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.menu-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.menu-card ul li { padding-left: 20px; position: relative; }
.menu-card ul li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand); opacity: .8;
}
.menu-card__note { margin: 14px 0 0; font-size: .9rem; color: var(--ink-soft); }
.menu-grid--legacy { display: none; }
.menu-snapshot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.menu-snapshot a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow-soft); }
.menu-snapshot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; transition: transform .25s ease; }
.menu-snapshot a:hover img { transform: scale(1.025); }
@media (min-width: 760px) { .menu-snapshot { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.menu-card--drinks { background: var(--espresso); color: var(--cream); border-color: transparent; }
.menu-card--drinks h3::after { background: rgba(250,243,231,.2); }
.menu-card--drinks .menu-card__note { color: rgba(250,243,231,.75); }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding-left: 0 !important; }
.price-list li::before { display: none; }
.price-list .dots { flex: 1; border-bottom: 1px dotted rgba(250,243,231,.35); transform: translateY(-4px); }
.price-list .price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.menu-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4vw, 34px); }

/* ---------- Carousels (gallery + reviews) ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column;
  gap: 16px; overflow-x: auto; padding: 4px clamp(20px, 5vw, 40px) 16px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-controls { display: flex; gap: 10px; align-items: center; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(43,33,26,.3);
  background: var(--paper); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
  touch-action: manipulation;
}
.carousel-btn:hover { border-color: var(--ink); }
.carousel-btn:active { transform: scale(.94); }
.carousel-btn[disabled] { opacity: .35; cursor: default; }
.carousel-btn .ic { width: 20px; height: 20px; }

/* Gallery flavour */
.gallery { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.gallery .section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }
.gallery-track { grid-auto-columns: min(76vw, 320px); }
.gallery-item { margin: 0; scroll-snap-align: center; }
.gallery-item picture { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery-item img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery-item figcaption { font-size: .9rem; color: var(--ink-soft); padding: 10px 4px 0; }

/* ---------- About ---------- */
.about { padding: clamp(48px, 8vw, 96px) 0; background: var(--cream-deep); border-block: 1px solid var(--line); }
.about-grid { display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); rotate: -1deg; border: 6px solid var(--paper); }
.about-media img { aspect-ratio: 1; object-fit: cover; }
.about-copy p { color: var(--ink-soft); max-width: 36em; }
.about-copy h2 { margin-bottom: 16px; }
.about-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.about-facts li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.about-facts .ic { color: var(--brand-deep); margin-top: 3px; width: 20px; height: 20px; }

/* ---------- Reviews (dark, carousel) ---------- */
.reviews { padding: clamp(52px, 8vw, 100px) 0; background: var(--espresso); color: var(--cream); }
.reviews-head { text-align: center; max-width: 560px; margin: 0 auto clamp(28px, 5vw, 44px); }
.reviews-head h2 em { color: var(--brand-bright); }
.reviews-head__stars { color: var(--gold); font-size: 1.4rem; letter-spacing: .18em; margin-top: 10px; }
.reviews-head__stars .star-part { opacity: .38; }
.reviews .carousel-track { grid-auto-columns: min(86vw, 560px); justify-content: safe center; }
.review-card {
  margin: 0; background: var(--espresso-2); border: 1px solid rgba(250,243,231,.12);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 4px; scroll-snap-align: center;
}
.review-card__stars { color: var(--gold); letter-spacing: .12em; margin: 0 0 6px; font-size: .95rem; }
.review-card p:not(.review-card__stars) { color: rgba(250,243,231,.92); font-size: 1.05rem; margin: 0 0 14px; }
.review-card footer { margin-top: auto; font-size: .88rem; color: rgba(250,243,231,.62); }
.review-card cite { font-style: normal; font-weight: 700; color: rgba(250,243,231,.85); }
.reviews-nav { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.reviews .carousel-btn { background: transparent; border-color: rgba(250,243,231,.35); color: var(--cream); }
.reviews .carousel-btn:hover { border-color: var(--cream); }
.reviews-link { text-align: center; margin: clamp(22px, 4vw, 34px) 0 0; }

/* ---------- Find us ---------- */
.find { padding: clamp(48px, 8vw, 96px) 0; }
.find-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: start; }
.find-copy h2 { margin-bottom: 8px; }
.find-sub {
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  margin: 26px 0 10px;
}
.hours { margin: 0; border-top: 1px solid var(--line); }
.hours__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
}
.hours__row dt { font-weight: 500; }
.hours__row dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.hours__note, .find-note { font-size: .92rem; color: var(--ink-soft); margin-top: 10px; }
.find-address { font-style: normal; font-size: 1.1rem; line-height: 1.5; font-weight: 500; }
.find-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.map-embed {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift);
  border: 6px solid var(--paper); background: var(--cream-deep);
}
.map-embed iframe { display: block; width: 100%; height: clamp(300px, 44vw, 420px); border: 0; }
.find-media { margin: 22px 0 0; }
.find-media picture { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.find-media figcaption { font-size: .9rem; color: var(--ink-soft); padding: 12px 4px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--cream); padding: clamp(36px, 6vw, 56px) 0 0; }
.footer-grid { display: grid; gap: 24px; padding-bottom: 28px; }
.footer-logo { width: 168px; height: auto; margin-bottom: 12px; }
.footer-line { color: rgba(250,243,231,.75); margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-contact a { color: var(--cream); text-decoration: none; font-weight: 500; width: fit-content; padding: 10px 0; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-small { border-top: 1px solid rgba(250,243,231,.14); padding-top: 18px; padding-bottom: calc(18px + 88px); }
.footer-small p { margin: 0; font-size: .85rem; color: rgba(250,243,231,.55); }

/* ---------- Mobile action bar: Menu / Find us / Call ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; gap: 8px; padding: 10px clamp(12px, 3.5vw, 20px) calc(10px + env(safe-area-inset-bottom));
  background: rgba(36,26,19,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(250,243,231,.12);
}
.actionbar a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .95rem; color: var(--cream);
  border: 1.5px solid rgba(250,243,231,.3);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, transform .18s ease;
}
.actionbar a:active { transform: scale(.97); }
.actionbar a .ic { width: 18px; height: 18px; }
.actionbar__call { background: var(--brand); border-color: transparent !important; color: #fff !important; }

/* ---------- Reveal animation (only hides content when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .carousel-btn { transition: none; }
  .awning__track { animation: none; }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 899px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .header-call span { display: none; }
  .header-call { width: 48px; padding: 12px; border-radius: 50%; }
}
@media (min-width: 900px) {
  .actionbar { display: none; }
  .footer-small { padding-bottom: 18px; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .find-grid { grid-template-columns: .95fr 1.05fr; }
  .gallery-track { grid-auto-columns: 300px; }
  .carousel-track { padding-inline: calc((100vw - var(--wrap)) / 2 + clamp(20px, 5vw, 40px)); }
  .reviews .carousel-track { grid-auto-columns: 560px; }
}
@media (max-width: 420px) {
  .hero__cta .btn--lg { width: 100%; }
}
