/*
Theme Name: Ideal Chippy
Theme URI: https://idealfishandchips.com/
Author: Northern Web Dev
Description: Custom theme for Ideal Fish & Chips, Bromsgrove. Letterboard menu design in the owner's palette — cremes, browns and blacks, sampled from the shop logo.
Version: 1.2.0
Requires PHP: 8.0
License: Proprietary
Text Domain: ideal-chippy
*/

/* ============ tokens ============ */
:root {
  /* Owner's palette (Terry): cremes, browns, blacks — sampled from his logo.
     Letter brown #80522F, fish warm-black #2A1208-family, cream ground.
     "--navy" tokens carry the blacks so every former navy surface swaps here. */
  --navy: #221410;
  --navy-2: #170D08;
  --navy-3: #35231A;
  --gold: #C68A3E;           /* caramel CTA — brightened from the logo brown */
  --gold-dark: #93621F;
  --price-ink: #7E5520;      /* caramel text that passes on cream */
  --brown: #80522F;          /* the logo letters, exactly */
  --tan: #A9743F;
  --terracotta: #B23A2E;
  --paper: #FBF6EC;          /* brighter warm off-white (less beige) */
  --paper-2: #F0E6D0;        /* clearly deeper cream for real alternation */
  --card: #FFFDFA;           /* crisp warm-white cards that pop */
  --card-border: #EADCBF;
  --malt: #3A2E22;
  --malt-soft: #6A5C4C;
  --on-navy: #F7EFE0;
  --on-navy-dim: #C7BCA6;
  --pea: #6B8F3C;
  --line: rgba(110, 74, 46, .18);
  --leader: rgba(110, 74, 46, .40);
  --leader-navy: rgba(247, 239, 224, .32);
  --radius: 12px;
  --shadow: 0 12px 30px rgba(28, 22, 16, .14);
  --wrap: 1120px;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;
}

/* ============ base ============ */
*, *::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: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--malt);
  background: var(--paper);
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 .9rem;
}
.on-navy .eyebrow { color: var(--gold); }

/* ============ buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1rem;
  padding: .78rem 1.6rem;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-2); }
.btn-gold:hover { background: #D89C4E; color: var(--navy-2); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(198, 138, 62, .4); }
.btn-ghost { border-color: var(--on-navy-dim); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
/* context guards — .fascia a / .site-footer a must never repaint button text */
.fascia a.btn-gold, .site-footer a.btn-gold, .section-navy a.btn-gold, a.btn-gold { color: var(--navy-2); }
.fascia a.btn-gold:hover, .site-footer a.btn-gold:hover, .section-navy a.btn-gold:hover, a.btn-gold:hover { color: var(--navy-2); }
.fascia a.btn-ghost { color: var(--on-navy); }
.fascia a.btn-ghost:hover { color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-3); color: #fff; transform: translateY(-2px); }

/* ============ utility bar ============ */
.utility {
  background: var(--navy-2);
  color: var(--on-navy-dim);
  font-size: .82rem;
  letter-spacing: .04em;
}
.utility .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .2rem 1rem; padding-block: .38rem; }
.utility a { color: var(--on-navy); text-decoration: none; font-weight: 700; }
.utility a:hover { color: var(--gold); }
.status-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .45em; background: #A89C8C; }
.status-open .status-dot { background: var(--pea); box-shadow: 0 0 0 3px rgba(107, 143, 60, .25); }
.status-open { color: #C6E3A3; }

/* ============ header ============ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 14px rgba(19, 16, 9, .35);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.4rem; padding-block: .7rem; }
.brand { text-decoration: none; line-height: 1.02; flex-shrink: 0; }
.brand .brand-top {
  font-family: var(--font-display); font-weight: 700; font-size: 1.55rem;
  color: var(--gold); text-transform: uppercase; letter-spacing: .05em; display: block;
}
.brand .brand-sub {
  font-family: var(--font-display); font-weight: 500; font-size: .82rem;
  color: var(--on-navy); text-transform: uppercase; letter-spacing: .34em; display: block;
}
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--on-navy); text-decoration: none;
  padding: .55rem .75rem; border-radius: 6px; display: block;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--gold); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--on-navy-dim); border-radius: 6px;
  color: var(--on-navy); font-size: 1.3rem; line-height: 1; padding: .35rem .6rem; cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-2); padding: .6rem 1rem 1rem; box-shadow: 0 14px 24px rgba(0,0,0,.35); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .7rem .5rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .brand .brand-top { font-size: 1.3rem; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { padding: .55rem .9rem; font-size: .88rem; }
}

/* ============ hero / fascia ============ */
.fascia { background: var(--navy); color: var(--on-navy); position: relative; }
.fascia a { color: var(--gold); }
.hero { padding: clamp(2.6rem, 7vw, 5rem) 0 clamp(2.2rem, 6vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .gold { color: var(--gold); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--on-navy-dim); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-anim { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.photo-card {
  background: var(--paper); padding: .65rem .65rem 1rem; border-radius: 8px;
  box-shadow: var(--shadow); transform: rotate(1.6deg);
}
.photo-card img { border-radius: 4px; width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-card figcaption {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; font-size: .78rem; color: var(--malt-soft);
  text-align: center; padding-top: .55rem;
}

.trust-row { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2rem; padding: 0; list-style: none; }
.trust-row li { font-size: .92rem; color: var(--on-navy-dim); font-weight: 500; }
.trust-row b { color: var(--gold); font-weight: 700; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .photo-card { max-width: min(480px, 94%); transform: rotate(.8deg); }
}

/* ============ chip-paper tear ============ */
.tear { display: block; width: 100%; height: 26px; margin-bottom: -1px; }
.tear path { fill: var(--paper); }
.tear-2 path { fill: var(--paper-2); }

/* ============ sections ============ */
.section { padding: clamp(2.4rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2 { color: #fff; }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.section-head p { color: var(--malt-soft); }
.section-navy .section-head p { color: var(--on-navy-dim); }

/* ============ why tiles ============ */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.tile h3 { color: var(--navy); margin-bottom: .4em; }
.tile p { margin: 0; color: var(--malt-soft); font-size: .98rem; }
.tile .tile-mark {
  font-family: var(--font-display); font-weight: 700; color: var(--gold-dark);
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: .8rem;
}
@media (max-width: 820px) { .tile-grid { grid-template-columns: 1fr; } }

/* ============ letterboard (signature) ============ */
.letterboard { margin: 0; padding: 0; list-style: none; }
.letterboard > li { border-bottom: 1px dashed var(--line); }
.board-row {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline;
  padding: .78rem 0;
}
.board-row .name-line { display: flex; align-items: baseline; gap: .7rem; min-width: 0; }
.board-row .item-name {
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--navy); white-space: nowrap;
}
.board-row .leader { flex: 1; border-bottom: 2px dotted var(--leader); transform: translateY(-4px); min-width: 2rem; }
.board-row .price {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  color: var(--gold-dark); white-space: nowrap;
}
.board-row .price small { font-weight: 500; font-size: .78em; color: var(--malt-soft); margin-right: .5em; }
.board-blurb { grid-column: 1 / -1; margin: 0; font-size: .93rem; color: var(--malt-soft); padding-bottom: .1rem; }

.board-section-title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--on-navy); background: var(--navy);
  display: inline-block; padding: .3rem .9rem; border-radius: 4px; font-size: .95rem;
  margin: 2rem 0 .6rem;
}
.letterboard-intro + .board-section-title { margin-top: 1rem; }

/* on navy (popular strip) */
.section-navy .board-row .item-name { color: #fff; }
.section-navy .board-row .price { color: var(--gold); }
.section-navy .board-row .leader { border-color: var(--leader-navy); }
.section-navy .letterboard > li { border-color: rgba(255,255,255,.08); }
.section-navy .board-blurb { color: var(--on-navy-dim); }

/* popular with thumbs */
.popular-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(188px, 1fr)); gap: 1.1rem; margin-bottom: 1.6rem; }
.dish-card { background: var(--navy-3); border-radius: var(--radius); overflow: hidden; }
.dish-card img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.dish-card .dish-meta { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .75rem .9rem .85rem; }
.dish-card .item-name { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.dish-card .price { font-family: var(--font-display); font-weight: 600; color: var(--gold); }

/* ============ category tiles ============ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.1rem; }
.cat-tile {
  background: var(--navy); border-radius: var(--radius); color: var(--on-navy);
  padding: 1.3rem 1.2rem 1.1rem; text-decoration: none; display: flex; flex-direction: column; min-height: 128px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border-bottom: 4px solid var(--gold);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--navy-3); color: var(--on-navy); }
.cat-tile .cat-name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.cat-tile .cat-meta { margin-top: auto; font-size: .85rem; color: var(--on-navy-dim); }
.cat-tile .cat-meta b { color: var(--gold); font-weight: 700; }

/* ============ hours & find us ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.hours-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours-table caption {
  text-align: left; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; padding-bottom: .5rem; color: var(--navy); font-size: 1.05rem;
}
.hours-table th, .hours-table td { text-align: left; padding: .42rem .2rem; border-bottom: 1px dashed var(--line); }
.hours-table th { font-weight: 700; width: 34%; }
.hours-table .closed { color: var(--malt-soft); }
.address-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.address-card .tel { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: .04em; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ============ app strip ============ */
.app-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; justify-content: space-between; }
.app-strip .badges { display: flex; gap: .8rem; }
.app-strip .badges img { height: 46px; width: auto; }

/* ============ page hero (interior) ============ */
.page-hero { padding: clamp(1.8rem, 4.5vw, 3rem) 0 clamp(1.6rem, 4vw, 2.6rem); }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero .lede { color: var(--on-navy-dim); max-width: 40em; margin: 0; }
.crumbs { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-dim); margin-bottom: 1rem; }
.crumbs a { color: var(--on-navy); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ============ prose (page content) ============ */
.prose { max-width: 46em; }
.prose h2 { color: var(--navy); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1.4em 0; padding: .3em 0 .3em 1.1em; color: var(--malt-soft); font-style: italic; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.sidebar { align-self: stretch; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; position: sticky; top: 90px; }
.sidebar-card h3 { color: var(--navy); }

/* ============ faq ============ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .7rem; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--navy); padding: .9rem 1.2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--gold-dark); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item .faq-a { padding: 0 1.2rem 1rem; color: var(--malt-soft); }

/* ============ CTA band ============ */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-navy-dim); max-width: 36em; margin-inline: auto; }
.cta-band .btn { margin-top: 1rem; }

/* ============ cross links ============ */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; margin: 1.6rem 0 0; }
.chip-row a {
  display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem 1rem; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--navy);
}
.chip-row a:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* ============ footer ============ */
.site-footer { background: var(--navy-2); color: var(--on-navy-dim); font-size: .95rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding: 2.8rem 0 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .18rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0 1.4rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; }
.hygiene-note b { color: var(--pea); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ============ misc ============ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-2); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ============================================================
   ELEVATION LAYER — chip-paper texture, enamel details, finish
   Appended last so it wins on equal specificity.
   ============================================================ */

/* Chip-paper grain on the light "paper" sections. Very low opacity so
   type stays crisp; it just adds tooth you feel more than see. */
.section-alt, .section:not(.section-navy):not(.fascia) {
  position: relative;
}
.section-alt::before,
.section:not(.section-navy):not(.fascia)::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)'/%3E%3C/svg%3E");
  opacity: .05; pointer-events: none; z-index: 0; mix-blend-mode: multiply;
}
.section-alt > .wrap, .section > .wrap { position: relative; z-index: 1; }

/* Ink-print vignette + faint tile grid on the navy "fried at night" panels */
.fascia, .section-navy { position: relative; }
.fascia::after, .section-navy::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(255,255,255,.05), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.020) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.020) 0 1px, transparent 1px 46px);
}
.fascia > .wrap, .section-navy > .wrap { position: relative; z-index: 1; }
.fascia .tear, .section-navy .tear { position: relative; z-index: 2; }

/* Real logo on a cream enamel-sign plaque (the mark is brown, so it needs a light bed) */
.brand { display: inline-flex; align-items: center; padding: .4rem .72rem; border: 2px solid var(--gold); border-radius: 7px; background: var(--paper); box-shadow: 0 2px 0 rgba(0,0,0,.22), inset 0 0 0 1px rgba(0,0,0,.04); }
.brand img { height: 48px; width: auto; display: block; }
@media (max-width: 880px) { .brand { padding: .3rem .55rem; } .brand img { height: 38px; } }

/* ---- Full-bleed hero on the real fish & chips photo ---- */
.hero-full { position: relative; overflow: hidden; }
.hero-full.fascia::after { display: none; } /* photo replaces the tile grid here */
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #171209 url("img/hero.jpg") center right / cover no-repeat; }
.hero-full::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(96deg, var(--navy) 0%, var(--navy) 27%, rgba(28,22,16,.9) 46%, rgba(28,22,16,.5) 68%, rgba(28,22,16,.28) 100%);
}
.hero-full > .wrap { position: relative; z-index: 2; }
.hero-full .tear { z-index: 4; }
.hero-full .seal { position: absolute; right: clamp(1rem, 5vw, 4rem); bottom: clamp(2.4rem, 6vw, 3.4rem); top: auto; z-index: 3; }
.hero-inner { max-width: 41rem; }
@media (max-width: 820px) {
  .hero-bg { background-position: center bottom; }
  .hero-full::before { background: linear-gradient(180deg, rgba(28,22,16,.9) 0%, rgba(28,22,16,.82) 55%, rgba(28,22,16,.72) 100%); }
  .hero-full .seal { right: 4%; bottom: auto; top: -20px; }
}

/* FSA hygiene badge used for real */
.hygiene-badge { max-width: 190px; height: auto; margin-top: .3rem; border-radius: 4px; }
.tile .hygiene-badge { margin-top: .6rem; }

/* Category "pictured" photo strip — reuses dish-card on a paper section */
.pictured { margin: 0 0 2rem; }
.pictured .popular-grid { margin-bottom: 0; }
.pictured .dish-card { background: var(--navy); }

/* Footer logo plaque */
.footer-brand { display: inline-flex; padding: .5rem .8rem; background: var(--paper); border-radius: 8px; border: 2px solid var(--gold); margin-bottom: 1rem; }
.footer-brand img { height: 52px; width: auto; display: block; }

/* A section that ends in a chip-paper tear must not add navy padding BELOW the
   tear (that leaves an orphaned band). Kill the bottom padding; keep the gap
   above the tear so content still breathes. Also covers :has-capable browsers. */
.section--flush { padding-bottom: 0; }
.section--flush > .tear { margin-top: clamp(2rem, 5vw, 3.25rem); }
.section:has(> .tear:last-child) { padding-bottom: 0; }
.section:has(> .tear:last-child) > .tear { margin-top: clamp(2rem, 5vw, 3.25rem); }

/* ---- QA fixes: tap targets (>=44px) + solid tile bg for contrast tooling ---- */
.cat-tile { background-color: var(--navy); }
.nav-toggle { padding: .5rem .8rem; min-height: 44px; min-width: 44px; font-size: 1.4rem; }
.chip-row a { padding: .58rem 1.05rem; min-height: 44px; display: inline-flex; align-items: center; }
.faq-item summary { min-height: 44px; }

/* Hero media: the photo sits on a torn sheet of chip paper, stamped with a seal */
.hero-media { position: relative; }
.photo-card {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='q'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23q)' opacity='0.5'/%3E%3C/svg%3E"),
    var(--paper);
  background-blend-mode: multiply;
  padding: .8rem .8rem 1.1rem;
  box-shadow: 0 18px 44px rgba(19, 16, 9, .34), 0 2px 0 rgba(0,0,0,.05);
}
.photo-card::before {
  content: ""; position: absolute; inset: .35rem; border: 1px solid rgba(51,41,31,.14); border-radius: 3px; pointer-events: none;
}
.photo-card img { box-shadow: 0 3px 10px rgba(0,0,0,.22); }

/* Enamel roundel seal — the signature. Curved text, navy & gold, like an old shop badge. */
.seal {
  position: absolute; width: clamp(94px, 15vw, 128px); height: auto;
  right: -20px; top: -24px; z-index: 3;
  filter: drop-shadow(0 6px 14px rgba(19,16,9,.4));
  transform: rotate(-8deg);
}
.seal .seal-bg { fill: var(--navy); }
.seal .seal-ring { fill: none; stroke: var(--gold); }
.seal .seal-curve { fill: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: 1px; text-transform: uppercase; }
.seal .seal-star { fill: var(--gold); }
.seal .seal-est { fill: var(--on-navy); font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.seal .seal-year { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: 1px; }
@media (max-width: 820px) { .seal { right: 3%; top: -20px; } }

/* Prices marked like a felt-tip on the board */
.board-row .price { text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.section-navy .board-row .price { text-shadow: none; }

/* Tighter, more confident display type + gold underline flourish on section heads */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: ""; display: block; width: 3.2rem; height: 4px; margin-top: .55rem;
  background: var(--gold); border-radius: 2px;
}
.section-navy .section-head h2::after, .cta-band h2::after { background: var(--gold); }
.cta-band h2::after { margin-inline: auto; }

/* Category tiles: warm paper on hover-out, gold spine — a touch more tactile */
.cat-tile { background-color: var(--navy); background-image: linear-gradient(180deg, var(--navy-3), var(--navy)); }
.cat-tile:hover { background-image: linear-gradient(180deg, #3A2D1E, var(--navy-3)); }

/* Dish cards lift a little */
.dish-card { box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .15s ease; }
.dish-card:hover { transform: translateY(-3px); }

/* Trust row: separate items with a gold dot; keep the gap after the bold figure */
.trust-row li { display: flex; align-items: center; gap: .4em; }
.trust-row li + li::before { content: "•"; color: var(--gold); margin-right: 1.2rem; opacity: .7; }
@media (max-width: 520px) { .trust-row li + li::before { display: none; } }

/* Respect reduced-motion for the seal tilt already handled globally */

/* ============================================================
   SHINE LAYER — orchestrated motion, material depth, signage.
   Everything here degrades gracefully: no JS → all visible,
   reduced motion → no animation.
   ============================================================ */

::selection { background: var(--gold); color: var(--navy-2); }
[id] { scroll-margin-top: 96px; }

/* ---- hero: staggered load-in + slow drift on the photo ---- */
.hero-anim > * { opacity: 0; animation: rise .65s ease forwards; }
.hero-anim > *:nth-child(1) { animation-delay: .05s; }
.hero-anim > *:nth-child(2) { animation-delay: .16s; }
.hero-anim > *:nth-child(3) { animation-delay: .3s; }
.hero-anim > *:nth-child(4) { animation-delay: .44s; }
.hero-anim > *:nth-child(5) { animation-delay: .6s; }
.hero-full .seal { opacity: 0; animation: sealIn .7s cubic-bezier(.2, 1.4, .4, 1) .75s forwards; }
@keyframes sealIn { from { opacity: 0; transform: rotate(-8deg) scale(.6); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.hero-bg { animation: drift 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translateX(-1.2%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-anim > *, .hero-full .seal { opacity: 1; animation: none; }
  .hero-bg { animation: none; }
}

/* ---- scroll reveals (JS adds .js to <html>, IO adds .in; no-JS never hides) ---- */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .rv-group > * { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
html.js .rv-group.in > * { opacity: 1; transform: none; }
html.js .rv-group.in > *:nth-child(1){transition-delay:.04s}
html.js .rv-group.in > *:nth-child(2){transition-delay:.1s}
html.js .rv-group.in > *:nth-child(3){transition-delay:.16s}
html.js .rv-group.in > *:nth-child(4){transition-delay:.22s}
html.js .rv-group.in > *:nth-child(5){transition-delay:.28s}
html.js .rv-group.in > *:nth-child(6){transition-delay:.34s}
html.js .rv-group.in > *:nth-child(7){transition-delay:.4s}
html.js .rv-group.in > *:nth-child(8){transition-delay:.46s}
html.js .rv-group.in > *:nth-child(n+9){transition-delay:.5s}
@media (prefers-reduced-motion: reduce) {
  html.js .rv, html.js .rv-group > * { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---- gold buttons: enamel gradient + a sheen that sweeps on hover ---- */
.btn-gold { position: relative; overflow: hidden; background-image: linear-gradient(180deg, #DDA355, var(--gold)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 2px rgba(0,0,0,.18); }
.btn-gold::after { content: ""; position: absolute; top: 0; left: -140%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: skewX(-18deg); pointer-events: none; }
.btn-gold:hover::after { animation: sheen .75s ease; }
@keyframes sheen { from { left: -140%; } to { left: 150%; } }
@media (prefers-reduced-motion: reduce) { .btn-gold:hover::after { animation: none; } }

/* ---- header compresses on scroll ---- */
.site-header { transition: box-shadow .2s ease; }
.site-header .wrap { transition: padding .2s ease; }
.site-header.scrolled { box-shadow: 0 5px 22px rgba(19,16,9,.5); }
.site-header.scrolled .wrap { padding-block: .38rem; }
.brand img, .site-header.scrolled .brand img { transition: height .2s ease; }
.site-header.scrolled .brand img { height: 40px; }

/* ---- chip-paper tear casts a soft shadow so the navy reads as a torn sheet ---- */
.tear { filter: drop-shadow(0 3px 3px rgba(19,16,9,.16)); }
.section-navy .tear, .fascia .tear { filter: drop-shadow(0 4px 5px rgba(0,0,0,.24)); }

/* ---- letterboard rows come alive on hover ---- */
.letterboard li { transition: background .16s ease; border-radius: 5px; }
.letterboard li:hover { background: rgba(198,138,62,.10); }
.board-row .item-name { transition: color .16s ease; }
.letterboard li:hover .item-name { color: var(--gold-dark); }
.section-navy .letterboard li:hover { background: rgba(255,255,255,.06); }
.section-navy .letterboard li:hover .item-name { color: var(--gold); }

/* ---- category tiles get a sliding arrow ---- */
.cat-tile { position: relative; }
.cat-tile .cat-meta { padding-right: 1.9rem; }
.cat-tile::after { content: "\2192"; position: absolute; right: 1.15rem; bottom: 1.02rem; color: var(--gold); font-weight: 700; font-size: 1.15rem; transform: translateX(-5px); opacity: .5; transition: transform .2s ease, opacity .2s ease; }
.cat-tile:hover::after { transform: translateX(0); opacity: 1; }

/* ---- gold signage ticker under the hero ---- */
.ticker { background: var(--gold); color: var(--navy-2); overflow: hidden; border-top: 3px solid var(--gold-dark); border-bottom: 3px solid var(--gold-dark); }
.ticker-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: tick 34s linear infinite; padding: .55rem 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; padding: 0 .2rem 0 1.4rem; display: inline-flex; align-items: center; gap: .55rem; }
.ticker-item .tick-price { color: var(--navy-2); }
.ticker-item::after { content: "\2726"; color: var(--navy-2); opacity: .45; margin-left: 1.4rem; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---- "Tea, Sorted in Three" — a genuine sequence, so the numbers are earned ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.4rem; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem 1.5rem 1.5rem; }
.step .step-num { position: absolute; top: -1rem; left: 1.4rem; width: 2.7rem; height: 2.7rem; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; border-radius: 50%; box-shadow: 0 4px 12px rgba(19,16,9,.32); border: 2px solid var(--gold); }
.step h3 { color: var(--navy); margin-bottom: .3em; }
.step p { margin: 0; color: var(--malt-soft); font-size: .98rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.9rem; } }

/* ---- mobile: full-screen overlay nav + sticky order bar ---- */
.order-bar { display: none; }
@media (max-width: 880px) {
  .main-nav.open {
    position: fixed; inset: 0; z-index: 90; background: var(--navy-2);
    padding: 5.5rem 1.6rem 2rem; box-shadow: none; display: flex; flex-direction: column;
  }
  .main-nav.open ul { flex-direction: column; gap: 0; }
  .main-nav.open a { font-size: 1.5rem; padding: .9rem .2rem; border-bottom: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateX(-14px); animation: navIn .34s ease forwards; }
  .main-nav.open li:nth-child(1) a { animation-delay: .06s; }
  .main-nav.open li:nth-child(2) a { animation-delay: .11s; }
  .main-nav.open li:nth-child(3) a { animation-delay: .16s; }
  .main-nav.open li:nth-child(4) a { animation-delay: .21s; }
  .main-nav.open li:nth-child(5) a { animation-delay: .26s; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle { position: fixed; right: 1rem; top: 1rem; z-index: 95; border-color: var(--gold); color: var(--gold); }
  body.nav-open .order-bar { display: none; }
  @keyframes navIn { to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .main-nav.open a { opacity: 1; transform: none; animation: none; } }

  body { padding-bottom: 58px; }
  .order-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; gap: .6rem; align-items: stretch;
    padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(19,16,9,.97); border-top: 2px solid var(--gold);
    transform: translateY(130%); transition: transform .3s ease; }
  .order-bar.show { transform: none; }
  .order-bar .btn { flex: 1; text-align: center; padding: .72rem; }
  .order-bar .call { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 50px; border: 2px solid var(--on-navy-dim); border-radius: 6px; color: var(--on-navy); text-decoration: none; font-size: 1.15rem; }
  @media (prefers-reduced-motion: reduce) { .order-bar { transition: none; } }
}

/* ============================================================
   ART DIRECTION v2 — warm heritage chippy.
   Fraunces serif headings (sentence case, brown ink); Oswald
   demoted to small enamel-ticket signage; the logo's brown made
   structural; navy reduced to punctuation. (Consensus of 5 critics.)
   ============================================================ */

/* Display type → Fraunces, sentence case, brown, gentle wonk */
h1, h2, h3, .display, .prose h2, .prose h3 {
  font-family: var(--font-serif);
  text-transform: none;
  letter-spacing: -0.005em;
  font-weight: 600;
  color: var(--brown);
  font-variation-settings: "opsz" 40, "SOFT" 40, "WONK" 0;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.15rem); line-height: 1.03; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.55rem); line-height: 1.07; }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.2; }

/* Headings on navy → warm off-white; hero accent stays gold */
.section-navy h2, .section-navy h3, .cta-band h2, .page-hero h1, .hero h1 { color: var(--on-navy); }
.hero h1 .gold { color: var(--gold); }

/* Menu item names, dish names, FAQ questions → serif, sentence case */
.board-row .item-name, .dish-card .item-name, .faq-item summary {
  font-family: var(--font-serif); text-transform: none; letter-spacing: 0; font-weight: 600;
}
.board-row .item-name { color: var(--brown); white-space: normal; }
.faq-item summary { color: var(--brown); }
.section-navy .board-row .item-name, .dish-card .item-name { color: var(--on-navy); }
.letterboard li:hover .item-name { color: var(--gold-dark); }
.section-navy .letterboard li:hover .item-name { color: var(--gold); }

/* Prices & kickers STAY Oswald — small enamel signage, warmed */
.eyebrow { color: var(--brown); }
.section-navy .eyebrow, .on-navy .eyebrow, .fascia .eyebrow { color: var(--gold); }
.board-row .price { color: var(--price-ink); }
.section-navy .board-row .price, .dish-card .price { color: var(--gold); }
.cat-tile .cat-meta b, .trust-row b { color: var(--price-ink); }
.trust-row b { color: var(--gold); } /* trust row is on navy */
.section-head h2::after { background: var(--gold); height: 3px; width: 2.6rem; }

/* Category tiles: warm cream + brown ink + gold spine — navy no longer dominates */
.cat-tile { background: var(--card); background-image: none; border: 1px solid var(--card-border); border-bottom: 3px solid var(--gold); color: var(--brown); }
.cat-tile:hover { background: #fff; background-image: none; border-color: var(--tan); border-bottom-color: var(--gold-dark); box-shadow: var(--shadow); transform: translateY(-4px); }
.cat-tile .cat-name { font-family: var(--font-display); color: var(--brown); }
.cat-tile .cat-meta { color: var(--malt-soft); }
.cat-tile::after { color: var(--tan); }

/* Cards → crisp warm-white with a soft warm shadow so they lift off the paper */
.tile, .step, .address-card, .sidebar-card, .faq-item { background: var(--card); border-color: var(--card-border); box-shadow: 0 6px 18px rgba(110, 74, 46, .09); }
.faq-item { box-shadow: 0 3px 10px rgba(110, 74, 46, .06); }
.tile h3, .step h3, .sidebar-card h3, .prose h2, .prose h3 { color: var(--brown); }
.tile .tile-mark { color: var(--tan); }
.step .step-num { background: var(--brown); border-color: var(--gold); color: var(--gold); }

/* Enamel roundel + FAQ marker echo the brown/gold */
.faq-item summary::after { color: var(--tan); }

/* Warm the hero wash so the batter stays golden */
.hero-full::before { background: linear-gradient(96deg, var(--navy) 0%, var(--navy) 22%, rgba(28,22,16,.8) 44%, rgba(28,22,16,.4) 66%, rgba(30,24,16,.12) 100%); }

/* Brand plaque: quieter border now that brown lives elsewhere */
.brand { border-color: rgba(247,239,224,.35); }

/* Footer headings back to warm off-white (they sit on navy) */
.site-footer h3 { color: var(--on-navy); font-family: var(--font-serif); text-transform: none; letter-spacing: 0; }

/* Hierarchy: give the Menu real presence, calm the utility strips */
.section--lg { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section--sm { padding-block: clamp(1.8rem, 4vw, 3rem); }

/* Karla long-form: warmer measure */
.prose p, .board-blurb, .tile p, .step p { font-size: 1.05rem; line-height: 1.7; }
.prose { max-width: 40rem; }

/* A single terracotta appetite spark: the FSA-style hygiene star + HOT tags */
.hygiene-note b { color: var(--pea); }

/* ---- interior prose: real hierarchy + rendered markdown furniture ---- */
.prose h2 { margin-top: 2.1em; }
.prose h2::after { content: ""; display: block; width: 2.4rem; height: 3px; margin-top: .5rem; background: var(--gold); border-radius: 2px; }
.prose > h2:first-child { margin-top: 0; }
.prose ul li { margin-bottom: .35em; }
.prose ul li::marker { color: var(--tan); }
.md-table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; overflow: hidden; font-size: .98rem; }
.md-table th { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; font-size: .82rem; text-align: left; color: var(--on-navy); background: var(--navy); padding: .6rem .9rem; }
.md-table td { padding: .55rem .9rem; border-bottom: 1px dashed var(--line); }
.md-table tr:last-child td { border-bottom: 0; }
.prose blockquote { border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 8px 8px 0; padding: .8em 1.1em; }

/* ---- interior-page polish (per-page critique consensus) ---- */
/* category intro opens with a landing point */
.letterboard-intro p:first-of-type { font-size: 1.16rem; color: var(--malt); }

/* board hierarchy: eyebrow chip + real serif heading; FAQs demoted a step */
.board-section-title { display: block; background: none; color: var(--tan); padding: 0; font-size: .8rem; letter-spacing: .16em; margin: 2.2rem 0 .2rem; border-radius: 0; }
.board-heading { margin: 0 0 1rem; }
.faq-heading { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 0; }

/* featured tier: first row of the category grid inverts to navy (Fish/Chips lead) */
.cat-grid .cat-tile:nth-child(-n+4) { background: var(--navy); background-image: linear-gradient(180deg, var(--navy-3), var(--navy)); border-color: var(--navy-2); }
.cat-grid .cat-tile:nth-child(-n+4) .cat-name { color: var(--on-navy); font-size: 1.38rem; }
.cat-grid .cat-tile:nth-child(-n+4) .cat-meta { color: var(--on-navy-dim); }
.cat-grid .cat-tile:nth-child(-n+4) .cat-meta b { color: var(--gold); }
.cat-grid .cat-tile:nth-child(-n+4):hover { background-image: linear-gradient(180deg, #3A2D1E, var(--navy-3)); border-color: var(--navy-2); }
/* kill the dead middle inside tiles */
.cat-tile { min-height: 0; padding: 1.15rem 1.2rem 1rem; }
.cat-tile .cat-meta { margin-top: .55rem; }

/* seat the FSA badge as a designed card footer */
.sidebar-card .badge-wrap { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.sidebar-card .hygiene-badge { display: block; max-width: 170px; margin: 0; }
.badge-caption { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--malt-soft); margin: .4rem 0 0; }

/* related pills get an anchor label */
.chips-label { margin: 2.6rem 0 .2rem; }
.chips-label + .chip-row { margin-top: .4rem; }

/* widow control + price integrity */
p, .board-blurb, .lede { text-wrap: pretty; }
.board-row .price small { white-space: nowrap; }

/* imageless dish cards become deliberate board tickets, not collapsed pills */
.dish-card:not(:has(img)) { display: grid; place-content: center; text-align: center; min-height: 132px; padding: 1.2rem 1rem; border: 1px solid rgba(255,255,255,.08); }
.dish-card:not(:has(img)) .dish-meta { flex-direction: column; gap: .25rem; padding: 0; display: flex; align-items: center; }
.dish-card:not(:has(img)) .item-name { font-size: 1.22rem; }
.dish-card:not(:has(img)) .price { font-size: 1.28rem; }

/* Find Us: map and card share a bottom edge */
.split--flush { align-items: stretch; }
.split--flush .map-frame { height: 100%; }
.split--flush .map-frame a { display: block; height: 100%; }
.split--flush .map-frame img { height: 100%; width: 100%; object-fit: cover; }

/* ---- reviews page stat strip ---- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 0 0 2.2rem; }
.stat-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: 0 6px 18px rgba(110,74,46,.09); }
.stat-card .stat-big { font-family: var(--font-serif); font-weight: 600; font-size: 2rem; color: var(--brown); line-height: 1.05; }
.stat-card .stat-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--malt-soft); display: block; margin-top: .25rem; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: 1fr; } }
