/* =========================================================
   J-Henry's Fish & Chips — shared stylesheet
   Palette: navy #0E2233 / cream #F7F1E3 / gold #E3A72F / red #C0392B
   Fonts: Bricolage Grotesque (display) + Inter (body)
   ========================================================= */

:root {
  --navy: #0E2233;
  --navy-light: #17324a;
  --navy-rgb: 14, 34, 51;
  --cream: #F7F1E3;
  --cream-dark: #EDE3CC;
  --gold: #E3A72F;
  --gold-dark: #c98f1f;
  --gold-rgb: 227, 167, 47;
  --red: #C0392B;
  --white: #ffffff;
  --ink: var(--navy);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(14, 34, 51, 0.08);
  --shadow-md: 0 8px 24px rgba(14, 34, 51, 0.14);
  --shadow-lg: 0 20px 48px rgba(14, 34, 51, 0.22);

  --container: 1180px;

  --dur: 400ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-cream { background: var(--cream); }
.section-cream-dark { background: var(--cream-dark); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75em;
}
.section-navy .eyebrow { color: var(--gold); }

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 62ch;
  opacity: 0.92;
}
.center { text-align: center; margin-inline: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 200;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 200ms var(--ease), background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.section-cream .btn-outline, .section-cream-dark .btn-outline { border-color: var(--navy); }
.btn-outline:hover { background: rgba(var(--navy-rgb), 0.06); }
.section-navy .btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: #a53125; }
.btn-lg { min-height: 56px; padding: 1em 2em; font-size: 1.05rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 34, 51, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227, 167, 47, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}
.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.1rem;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--gold); }

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--navy);
  background: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  min-height: 44px;
  white-space: nowrap;
}
.nav-call svg { width: 1.1em; height: 1.1em; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .main-nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem clamp(1.25rem, 6vw, 2.5rem);
    gap: 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
  }
  .main-nav-links a { font-size: 1.15rem; }
  html.nav-open .main-nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 18% 18%, rgba(227,167,47,0.16), transparent 55%), var(--navy);
  color: var(--cream);
  padding-block: clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(227, 167, 47, 0.14);
  border: 1px solid rgba(227, 167, 47, 0.4);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  border-radius: 999px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero h1 .accent { color: var(--gold); }
.hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); opacity: 0.88; max-width: 52ch; margin-bottom: 1.75rem; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(247, 241, 227, 0.08);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-rosette {
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: clamp(96px, 14vw, 132px);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

/* ---------- Award rosette (inline SVG component) ---------- */
.rosette-inline { width: 100%; height: auto; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--cream-dark);
  border-top: 1px solid rgba(14,34,51,0.08);
  border-bottom: 1px solid rgba(14,34,51,0.08);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.stat-num svg { width: 0.9em; height: 0.9em; color: var(--gold-dark); flex: none; }
.stat-label {
  font-weight: 600;
  color: var(--navy-light);
  font-size: 0.95rem;
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(227, 167, 47, 0.16);
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Photo cards / gallery ---------- */
.photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
  background: var(--navy);
}
.photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.photo-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(14,34,51,0.88), transparent);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.88rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid .span-2 { grid-column: span 2; }
@media (max-width: 480px) { .gallery-grid .span-2 { grid-column: span 1; } }

/* ---------- Menu board ---------- */
.menu-board {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
}
.menu-board + .menu-board { margin-top: 2rem; }
.menu-board-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid rgba(227,167,47,0.35);
  padding-bottom: 0.6rem;
  margin-bottom: 0.5rem;
}
.menu-board-title h3 { margin: 0; color: var(--gold); }
.menu-board-note { font-size: 0.85rem; opacity: 0.75; }
.menu-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(247,241,227,0.18);
}
.menu-row:last-child { border-bottom: none; }
.menu-row-name { font-weight: 700; flex: 1; }
.menu-row-desc { display: block; font-weight: 400; font-size: 0.85rem; opacity: 0.72; margin-top: 0.15em; }
.menu-row-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(247,241,227,0.28);
  margin-bottom: 0.4em;
  min-width: 1rem;
}
.menu-row-price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  font-size: 1.05rem;
  white-space: nowrap;
}
.menu-row-price.sold-out {
  color: rgba(247,241,227,0.45);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.menu-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: rgba(227,167,47,0.14);
  border: 1px solid rgba(227,167,47,0.4);
  color: var(--gold);
  padding: 0.6em 1.1em;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ---------- Placeholder / ADD tags ---------- */
.add-note {
  display: inline-block;
  background: rgba(192, 57, 43, 0.12);
  color: var(--red);
  border: 1px dashed rgba(192, 57, 43, 0.5);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25em 0.65em;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.section-navy .add-note {
  background: rgba(227,167,47,0.14);
  color: var(--gold);
  border-color: rgba(227,167,47,0.5);
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 0.2rem; color: var(--gold-dark); margin-bottom: 0.75rem; }
.stars svg { width: 18px; height: 18px; }
.review-quote { font-size: 1.05rem; margin-bottom: 1rem; }
.review-author { font-weight: 700; font-size: 0.9rem; color: var(--navy-light); }

/* ---------- Find us / hours ---------- */
.find-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 820px) { .find-grid { grid-template-columns: 1fr; } }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid rgba(14,34,51,0.1); }
.hours-table td { padding: 0.65rem 0.25rem; }
.hours-table td:first-child { font-weight: 700; }
.hours-table td:last-child { text-align: right; }
.map-placeholder {
  border-radius: var(--radius-md);
  background: var(--cream-dark);
  border: 2px dashed rgba(14,34,51,0.25);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--navy-light);
  text-align: center;
  padding: 1.5rem;
}
.map-placeholder svg { width: 42px; height: 42px; color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(247,241,227,0.14);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 0.75rem; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.9rem; }
.footer-col a, .footer-col p { display: block; text-decoration: none; color: rgba(247,241,227,0.85); margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(247,241,227,0.55);
}
.footer-socials { display: flex; gap: 0.9rem; }
.footer-socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(247,241,227,0.08);
  color: var(--cream);
  transition: background 200ms ease, color 200ms ease;
}
.footer-socials a:hover { background: var(--gold); color: var(--navy); }
.footer-socials svg { width: 20px; height: 20px; }

/* ---------- Call FAB (mobile) ---------- */
.call-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform 160ms var(--ease);
}
.call-fab svg { width: 26px; height: 26px; }
.call-fab:active { transform: scale(0.94); }
@media (max-width: 720px) {
  .call-fab { display: flex; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding-block: clamp(3rem, 7vw, 4.5rem);
  text-align: center;
}
.page-hero .eyebrow { color: var(--gold); }
.breadcrumb { font-size: 0.85rem; opacity: 0.7; margin-top: 0.5rem; }

/* ---------- Reveal animation system ---------- */
html:not(.js) .reveal { opacity: 1; transform: none; }
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
html.js .reveal {
  transition: opacity var(--dur) ease-out, transform var(--dur) ease-out;
}
html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

.hero-anim { opacity: 0; transform: translateY(14px); }
html.js .hero-anim {
  animation: heroFade 700ms var(--ease) forwards;
}
html.js .hero-anim.d1 { animation-delay: 80ms; }
html.js .hero-anim.d2 { animation-delay: 200ms; }
html.js .hero-anim.d3 { animation-delay: 320ms; }
html.js .hero-anim.d4 { animation-delay: 440ms; }
@keyframes heroFade {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim { opacity: 1; transform: none; animation: none; }
}
html:not(.js) .hero-anim { opacity: 1; transform: none; }

/* Menu row cascade */
html.js .menu-row.reveal { transition-delay: calc(var(--i, 0) * 60ms); }

/* Utility */
.mt-lg { margin-top: clamp(2rem, 5vw, 3.5rem); }
.text-center { text-align: center; }
.badge-strip { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
