/* Little Thetford Sports & Social Club: public site styles.
   Brand colours and fonts come from CSS variables set in the page <head>
   (--brand, --accent, --font-display, --font-body), editable in Admin > Settings. */

:root {
  --brand: #00305B;
  --accent: #F4B63F;
  --font-display: 'Outfit Variable', system-ui, sans-serif;
  --font-body: 'Inter Variable', system-ui, sans-serif;

  --bg: #FAF8F3;
  --surface: #ffffff;
  --tint: color-mix(in oklab, var(--brand) 8%, #f6fafd);
  --ink: #13202E;
  --muted: #5b6878;
  --line: color-mix(in oklab, var(--ink) 11%, transparent);
  --link: color-mix(in oklab, var(--brand) 85%, #2F86C6);
  --on-accent: color-mix(in oklab, var(--brand) 70%, #000);
  --brand-deep: color-mix(in oklab, var(--brand) 78%, #000);
  --footer-bg: color-mix(in oklab, var(--brand) 62%, #06101c);
  --shadow-sm: 0 1px 2px rgb(16 24 40 / .06), 0 1px 3px rgb(16 24 40 / .08);
  --shadow: 0 2px 4px rgb(16 24 40 / .04), 0 12px 32px -8px rgb(16 24 40 / .14);
  --shadow-lg: 0 30px 60px -20px rgb(10 27 46 / .35);
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1626;
    --surface: #10213a;
    --tint: #0d1d33;
    --ink: #eaf0f7;
    --muted: #9db0c5;
    --line: rgb(255 255 255 / .1);
    --link: color-mix(in oklab, var(--accent) 80%, #fff);
    --footer-bg: #06101d;
    --shadow: 0 2px 4px rgb(0 0 0 / .2), 0 16px 40px -10px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

*, *::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 { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.icon { flex: none; vertical-align: middle; }
.plain { list-style: none; padding: 0; margin: 0; }
.eyebrow { font: 600 .8rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--link); margin: 0 0 .7rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.note { color: var(--muted); margin-top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn-sm { padding: .45em .9em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 88%, #fff); }
.btn-ghost { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgb(255 255 255 / .22); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-dark { background: var(--tint); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand); }
.btn-facebook { background: #1877F2; color: #fff; margin-top: .5rem; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
  .btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, #fff); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-width: 0; }
.mark, .mark-img { display: block; flex: none; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font: 700 1.12rem/1.1 var(--font-display); letter-spacing: -.01em; }
.brand-tag { font-size: .74rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.nav-toggle { margin-left: auto; display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .site-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); } }
.site-nav { margin-left: auto; }

/* Mobile navigation: collapsed behind a button when JS is available. */
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem var(--gutter) 1rem; margin: 0; }
  .js .site-nav.open { display: block; animation: drop .18s ease-out; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: .85rem 1rem; font-size: 1.08rem; border-radius: 12px; }
  .no-js .site-nav { width: 100%; margin: 0 0 .5rem; }
  .no-js .header-inner { flex-wrap: wrap; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--brand-deep); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(6 16 29 / .25) 0%, rgb(6 16 29 / .15) 35%, rgb(6 16 29 / .82) 100%),
    linear-gradient(90deg, color-mix(in oklab, var(--brand) 70%, transparent) 0%, transparent 70%); }
.hero-plain { background:
    radial-gradient(ellipse at 80% 10%, color-mix(in oklab, var(--accent) 35%, transparent), transparent 55%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); }
.hero-plain::before { display: none; }
.hero-inner { min-height: min(84vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 7rem; padding-bottom: clamp(2rem, 6vw, 4.5rem); }
.hero-kicker { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; letter-spacing: .04em; padding: .35rem .8rem .35rem .6rem; border-radius: 999px; background: rgb(255 255 255 / .14); backdrop-filter: blur(6px); align-self: flex-start; margin-bottom: 1.2rem; }
.hero-kicker .icon { color: var(--accent); }
.hero-title { font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1; letter-spacing: -.03em; max-width: 14ch; margin-bottom: .3em; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.hero-lead { font-size: clamp(1.15rem, 2.4vw, 1.45rem); max-width: 38ch; opacity: .95; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-next {
  margin-top: 2.2rem; align-self: flex-start; display: flex; align-items: center; gap: 1rem;
  padding: .7rem 1.1rem .7rem .7rem; border-radius: 20px; text-decoration: none; color: var(--ink);
  background: color-mix(in oklab, var(--surface) 94%, transparent); box-shadow: var(--shadow-lg); max-width: 100%;
  transition: transform .2s ease;
}
.hero-next:hover { transform: translateY(-2px); }
.hero-next > .icon { color: var(--muted); margin-left: auto; }
.hero-next > span:not(.date-badge) { display: flex; flex-direction: column; min-width: 0; }
.hn-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--link); }
.hn-title { font: 700 1.15rem/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; }
.hn-meta { color: var(--muted); font-size: .92rem; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-tight { padding-top: 0; }
.section-first { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.section-tint { background: var(--tint); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; color: var(--link); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s; }
.h-sub { font-size: 1.5rem; margin: 0 0 1.25rem; }
.h-past { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }

.page-head { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2rem); background:
  radial-gradient(ellipse at 90% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 50%), var(--tint); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin: 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 640px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--shadow-lg); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.media-fallback { position: relative; width: 100%; height: 100%; overflow: hidden; color: #fff;
  background: linear-gradient(165deg, color-mix(in oklab, var(--brand) 80%, #2F86C6) 0%, var(--brand) 55%, var(--brand-deep) 100%); }
.mf-sun { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -62%); background: var(--accent);
  box-shadow: 0 0 70px color-mix(in oklab, var(--accent) 50%, transparent); display: grid; place-items: center; color: var(--on-accent); }
.mf-river { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40%; }
.mf-label { position: absolute; left: 0; right: 0; bottom: .8rem; text-align: center; font: 700 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.card-media .date-badge + .media-fallback, .card-media .media-fallback ~ .date-badge { z-index: 1; }
.card-body { padding: 1.15rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-title { font-size: 1.28rem; margin: 0; }
.card-text { color: var(--muted); font-size: .97rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .93rem; margin: 0; }
.chip { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; padding: .3rem .7rem; border-radius: 10px; line-height: 1.35; background: var(--tint); color: var(--ink); }
.chip-free { background: color-mix(in oklab, #22a06b 16%, transparent); color: color-mix(in oklab, #22a06b 70%, var(--ink)); }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--link); font-size: .95rem; }
.event-card.is-past { opacity: .82; }
.event-card.is-past .card-media img { filter: saturate(.6); }
.news-card .card-media { aspect-ratio: 16 / 9; }

.date-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none;
  width: 62px; padding: .4rem 0 .45rem; border-radius: 14px; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm); line-height: 1; text-align: center; border: 1px solid var(--line);
}
.card-media .date-badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 6px 18px rgb(0 0 0 / .2); border: 0; }
.db-wd { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.db-d { font: 700 1.6rem/1.05 var(--font-display); margin: .1rem 0; }
.db-m { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: .15rem .45rem; border-radius: 6px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 3rem 1.5rem; border-radius: var(--radius); border: 2px dashed var(--line); color: var(--muted); }
.empty p { margin: 0; max-width: 40ch; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.05fr 1fr; } }
.about-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.about-side { display: grid; gap: 1.25rem; }
.collage { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: end; }
.collage figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-0 { aspect-ratio: 4 / 5; }
.collage-1 { aspect-ratio: 1; transform: translateY(-1.5rem); }
.hours-card { background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hours-card h2, .hours-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin-bottom: .6rem; }
.hours-card h2 .icon, .hours-card h3 .icon { color: var(--accent); }
.hours ul { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border: 0; }
.hours p { margin: 0 0 .4rem; }

/* ---------- gallery strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (min-width: 800px) { .strip { grid-template-columns: repeat(6, 1fr); } }
.strip-item { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.strip-item:hover img { transform: scale(1.06); }

/* ---------- find us ---------- */
.findus { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .findus { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.findus-card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.info-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list .icon { color: var(--link); margin-top: .2rem; }
.info-list-lg { font-size: 1.08rem; }
.map-card { position: relative; min-height: 280px; border-radius: var(--radius); overflow: hidden; display: block; text-decoration: none; color: #fff; box-shadow: var(--shadow);
  background: linear-gradient(160deg, #2F86C6 0%, var(--brand) 100%); }
.map-art { position: absolute; inset: 0; opacity: .55;
  background:
    radial-gradient(circle at 62% 42%, var(--accent) 0 7px, transparent 8px),
    repeating-linear-gradient(115deg, transparent 0 46px, rgb(255 255 255 / .16) 46px 48px),
    repeating-linear-gradient(25deg, transparent 0 70px, rgb(255 255 255 / .1) 70px 72px),
    radial-gradient(ellipse 140% 30% at 20% 85%, rgb(255 255 255 / .3) 0 30%, transparent 31%); }
.map-pin { position: absolute; left: 62%; top: 42%; transform: translate(-50%, -110%); color: var(--accent); filter: drop-shadow(0 4px 8px rgb(0 0 0 / .35)); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -125%); } }
.map-label { position: absolute; left: 1.4rem; bottom: 1.2rem; font: 700 1.6rem/1.1 var(--font-display); display: flex; flex-direction: column; }
.map-label small { font: 500 .95rem var(--font-body); opacity: .85; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: var(--accent); opacity: .9; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; z-index: 1; }
.cta-inner h2 { margin: 0 0 .3rem; }
.cta-inner p { margin: 0; opacity: .85; }

/* ---------- detail pages ---------- */
.detail { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.detail-grid { display: grid; gap: 2rem; }
@media (min-width: 980px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; } .detail-side { position: sticky; top: 92px; align-self: start; } }
.back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; margin-bottom: 1.4rem; font-size: .95rem; }
.detail h1 { margin-bottom: .4em; }
.detail-media { margin: 1.5rem 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.detail-media img { width: 100%; max-height: 80vh; object-fit: contain; }
.info-card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: .7rem; }
.info-card .date-badge { margin-bottom: .5rem; }
.info-card .info-list { margin-bottom: .6rem; }
.pill-past { display: inline-block; background: var(--tint); color: var(--muted); border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; font-weight: 600; }

.prose { max-width: 68ch; }
.prose-lg { font-size: 1.1rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img { border-radius: var(--radius-sm); margin: 1.5rem auto 1.5rem 0; max-height: 70vh; width: auto; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5rem; text-align: left; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { list-style: none; padding: 0; margin: 0; columns: 2 160px; column-gap: .8rem; }
@media (min-width: 900px) { .gallery { columns: 4 220px; column-gap: 1rem; } }
.gallery li { break-inside: avoid; margin-bottom: .8rem; }
.gallery-item { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--tint); }
.gallery-item img { width: 100%; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap { position: absolute; inset: auto 0 0 0; padding: 1.5rem .8rem .6rem; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgb(0 0 0 / .7)); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(5 10 18 / .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: fixed; background: rgb(255 255 255 / .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgb(255 255 255 / .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }
.lb-cap { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 3rem; } }
.form-card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .97rem; }
.opt { font-weight: 400; color: var(--muted); }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
input, textarea, select { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in oklab, var(--link) 18%, transparent); }
[aria-invalid="true"] { border-color: #d64545; }
.field-error, .form-error { color: #c23434; font-size: .92rem; margin: 0; }
.form-error { background: color-mix(in oklab, #d64545 10%, transparent); padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
@media (prefers-color-scheme: dark) { .field-error, .form-error { color: #ff8b8b; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { display: flex; gap: 1rem; align-items: flex-start; }
.success .icon { color: #fff; background: #22a06b; border-radius: 50%; padding: 6px; width: 40px; height: 40px; }

/* ---------- error page ---------- */
.error-page { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.error-page .hero-actions, .error-page .lead { justify-content: center; margin-inline: auto; }
.error-code { font: 800 clamp(5rem, 18vw, 9rem)/1 var(--font-display); margin: 0; background: linear-gradient(135deg, var(--brand), #2F86C6 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: rgb(255 255 255 / .82); padding: 3.5rem 0 1.5rem; margin-top: auto; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.lockup { width: 260px; max-width: 100%; height: auto; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-h { font: 700 .8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 1rem; }
address { font-style: normal; margin-bottom: .6rem; }
.site-footer .plain li { margin-bottom: .45rem; }
.footer-credit { display: block; margin-top: .3rem; font-size: .8rem; color: rgb(255 255 255 / .62); }
.footer-credit a { color: rgb(255 255 255 / .82); }
.footer-credit a { text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: #fff; }
.jp-link { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; vertical-align: middle; }
.jp-link img { width: 28px; height: 28px; margin: -4px 0; flex: none; transform-origin: 50% 85%; }
.jp-link:hover img, .jp-link:focus-visible img { animation: jp-jiggle .6s ease-in-out; }
@keyframes jp-jiggle { 0%,100% { transform: rotate(0) } 20% { transform: rotate(-14deg) scale(1.08) } 45% { transform: rotate(11deg) } 70% { transform: rotate(-6deg) } 85% { transform: rotate(3deg) } }
@media (prefers-reduced-motion: reduce) { .jp-link:hover img, .jp-link:focus-visible img { animation: none; } }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .9rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .1); }
.footer-social a:hover { background: rgb(255 255 255 / .2); }
@media (max-width: 700px) {
  .cta-band::after { width: 150px; height: 150px; right: -75px; top: -75px; opacity: .55; }
}
.hours li span:first-child { font-weight: 600; }
.hours li.today { color: var(--link); }
.hours li.today span:first-child::after { content: " · today"; font-weight: 500; font-size: .85em; }
