/* ==========================================================================
   Herdwicks Café & Bistro — Coniston
   Palette drawn from the building and the fell behind it:
   whitewash render, Coniston green slate, autumn bracken, fleece grey.
   Display: Bricolage Grotesque · Body: Figtree
   ========================================================================== */

:root {
  --whitewash: #F7F6F2;
  --fleece:    #E9E6DE;
  --fleece-dk: #D8D4C8;
  --slate:     #4A5A54;
  --slate-dp:  #2C3833;
  --ink:       #202925;
  --bracken:   #C2582A;
  --bracken-dk:#A34620;
  --sky:       #C9DCE8;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(32, 41, 37, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--whitewash);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bracken-dk); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--bracken); }

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

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

.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; }

.eyebrow {
  font-weight: 600; font-size: .8rem; letter-spacing: .18em;
  text-transform: uppercase; margin: 0 0 .75rem;
}

.lede { font-size: 1.35rem; font-weight: 600; line-height: 1.35; margin-top: 0; }

/* Cumbrian sheep-count section markers */
.count-mark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  color: var(--bracken); margin: 0 0 .35rem;
  letter-spacing: .02em;
}
.count-mark .count-note {
  font-family: var(--font-body); font-weight: 400; font-size: .85rem;
  color: var(--slate); letter-spacing: 0;
}
.count-mark-light { color: #E89A6E; }
.count-mark-light .count-note { color: var(--sky); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.6rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-bracken { background: var(--bracken); color: #fff; }
.btn-bracken:hover { background: var(--bracken-dk); color: #fff; }

.btn-slate { background: var(--slate-dp); color: #fff; }
.btn-slate:hover { background: var(--ink); color: #fff; }

.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; }

.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--slate); }
.btn-ghost-dark:hover { background: var(--slate); color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fleece-dk);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .55rem;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }

.nav-list {
  display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.6rem);
  list-style: none; margin: 0; padding: 0;
}
.nav-list a:not(.btn) {
  font-weight: 600; text-decoration: none; color: var(--ink);
  padding: .35rem .15rem; border-bottom: 3px solid transparent;
}
.nav-list a:not(.btn):hover { color: var(--bracken-dk); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--bracken); }
.nav-call .btn { padding: .55rem 1.2rem; font-size: .95rem; }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  background: none; border: 2px solid var(--slate); border-radius: 999px;
  padding: .45rem 1rem; font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; color: var(--ink); cursor: pointer;
}
.nav-toggle-bar {
  width: 18px; height: 2px; background: var(--ink); position: relative; display: inline-block;
}
.nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

/* ---------- Hero ---------- */

.hero { position: relative; min-height: min(92vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(32,41,37,.55) 0%, rgba(32,41,37,.18) 45%, rgba(32,41,37,0) 70%),
    linear-gradient(200deg, rgba(32,41,37,0) 30%, rgba(32,41,37,.72) 82%);
}
.hero-inner { position: relative; color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-eyebrow { color: var(--sky); }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800; letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(32,41,37,.45);
  margin-bottom: .35em;
}
.hero-sub { max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .95rem; font-weight: 600;
}
.hero-badges li::before { content: "●"; color: var(--bracken); margin-right: .5rem; font-size: .7em; vertical-align: 1px; }
.hero-badges a { color: #fff; }

/* ---------- Word ribbon (the door vinyl, set in motion) ---------- */

.ribbon { background: var(--bracken); color: #fff; overflow: hidden; padding-block: .55rem; }
.ribbon-track { display: flex; width: max-content; animation: ribbon-scroll 36s linear infinite; }
.ribbon-track span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .06em; white-space: nowrap; padding-right: 1ch;
}
@keyframes ribbon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ribbon-footer { background: var(--slate-dp); }
.ribbon-footer .ribbon-track span { color: var(--fleece); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-fleece { background: var(--fleece); }
.section-slate { background: var(--slate-dp); color: #F2F1EC; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -.015em; }
.section-sub { margin: 0; color: var(--slate); font-weight: 500; }
.section-sub-light { color: var(--sky); }
.section-sub-light a { color: #fff; }

/* ---------- Story ---------- */

.story-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.story-photo img, .story-photo-sm img { border-radius: var(--radius); box-shadow: var(--shadow); }
.story-photo figcaption, .story-photo-sm figcaption, .gallery-item figcaption, .dogs-photo figcaption, .findus-photo figcaption {
  font-size: .85rem; color: var(--slate); margin-top: .6rem;
}
.story-text p { margin-top: 0; }
.story-photo-sm { margin: 1.5rem 0 0; max-width: 420px; }

/* ---------- Food cards ---------- */

.food-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.food-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink);
  box-shadow: 0 2px 10px rgba(32,41,37,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.food-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); color: var(--ink); }
.food-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.food-card-body { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.2rem 1.3rem; }
.food-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.food-card-desc { font-size: .93rem; color: var(--slate); }
.food-card-price {
  margin-top: .4rem; align-self: flex-start;
  font-weight: 700; font-size: .85rem; color: var(--bracken-dk);
  background: var(--fleece); border-radius: 999px; padding: .2rem .8rem;
}

/* ---------- Reviews ---------- */

.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.review {
  margin: 0; padding: 1.6rem 1.8rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
}
.review p {
  margin: 0 0 1rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; line-height: 1.4;
}
.review cite { font-style: normal; font-size: .9rem; color: var(--sky); }

/* ---------- Dogs ---------- */

.dogs-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.dogs-photo { margin: 0; }
.dogs-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.dogs-text p { margin-top: 0; }

/* ---------- Visit ---------- */

.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.visit-card {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 2px 10px rgba(32,41,37,.08);
}
.visit-head { font-size: 1.4rem; color: var(--bracken-dk); }
.visit-card .btn { margin-top: .5rem; }

/* ---------- Page heads (inner pages) ---------- */

.page-head {
  background: var(--slate-dp); color: #F2F1EC;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.page-head .eyebrow { color: var(--sky); }
.page-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
.page-sub { max-width: 44em; margin: 0; color: var(--fleece); }

/* ---------- Menu page ---------- */

.menu-tabs {
  position: sticky; top: 64px; z-index: 40;
  background: var(--whitewash);
  border-bottom: 1px solid var(--fleece-dk);
}
.menu-tabs-inner { display: flex; gap: .4rem; overflow-x: auto; padding-block: .6rem; }
.menu-tab {
  flex: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--ink); background: none; border: 2px solid transparent;
  border-radius: 999px; padding: .5rem 1.2rem; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.menu-tab:hover { background: var(--fleece); }
.menu-tab[aria-selected="true"] { background: var(--slate-dp); color: #fff; }

.menu-section { padding-top: clamp(2rem, 4vw, 3rem); }
.menu-note {
  max-width: 52em; margin: 0 0 2rem;
  font-weight: 500; color: var(--slate);
}
.menu-group { max-width: 800px; margin-bottom: 2.75rem; }
.menu-group-title {
  font-size: 1.5rem; color: var(--bracken-dk);
  border-bottom: 3px solid var(--fleece-dk); padding-bottom: .4rem;
}
.menu-group-note { margin: -.25rem 0 1rem; font-size: .95rem; color: var(--slate); }

.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-item {
  display: flex; align-items: baseline; gap: .6rem;
  padding-block: .55rem;
}
.menu-item-name { font-weight: 600; }
.menu-item-desc { display: block; font-weight: 400; font-size: .92rem; color: var(--slate); }
.menu-item-dots { flex: 1; border-bottom: 2px dotted var(--fleece-dk); transform: translateY(-4px); min-width: 2rem; }
.menu-item-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

.menu-allergens {
  max-width: 52em; margin-top: 3rem; padding: 1.2rem 1.5rem;
  background: var(--fleece); border-radius: var(--radius);
  font-size: .95rem; color: var(--slate-dp);
}

/* ---------- Gallery ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-item { margin: 0; }
.gallery-zoom {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--fleece);
}
.gallery-zoom img {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.gallery-zoom:hover img { transform: scale(1.04); }

.lightbox {
  border: 0; border-radius: var(--radius); padding: 0;
  max-width: min(92vw, 1100px); background: var(--ink); color: #fff;
}
.lightbox::backdrop { background: rgba(32,41,37,.85); }
.lightbox-img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox-caption { margin: 0; padding: .8rem 1.2rem 1rem; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: .6rem; right: .6rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; cursor: pointer;
}
.lightbox-close:hover { background: var(--bracken); }

/* ---------- Find us ---------- */

.findus-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.findus-block { margin-bottom: 2rem; }
.findus-block p { margin: .25rem 0; }
.findus-head { font-size: 1.3rem; color: var(--bracken-dk); margin-bottom: .5rem; }
.findus-big { font-size: 1.3rem; font-weight: 700; }
.findus-list { margin: .25rem 0; padding-left: 1.2rem; }
.findus-list li { margin-bottom: .3rem; }
.findus-map iframe { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.findus-photo { margin: 1.25rem 0 0; }
.findus-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--fleece); padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2.5rem;
}
.footer-mark { width: 56px; filter: invert(1); opacity: .9; }
.footer-name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin: .8rem 0 .2rem; color: #fff; }
.footer-tag { margin: 0 0 .8rem; }
.footer-count { font-family: var(--font-display); font-size: .9rem; color: var(--bracken); cursor: help; margin: 0; }
.footer-head {
  font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sky); font-family: var(--font-body); font-weight: 700;
}
.footer-col p { margin: .35rem 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--bracken); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem;
  font-size: .85rem; color: rgba(242,241,236,.7);
}
.footer-legal p { margin: 0; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-observer .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-grid, .dogs-grid, .findus-grid { grid-template-columns: 1fr; }
  .dogs-photo { max-width: 560px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--whitewash); border-bottom: 1px solid var(--fleece-dk);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: 0 14px 24px rgba(32,41,37,.12);
  }
  .site-nav[data-open="true"] .nav-list { display: flex; }
  .nav-list a:not(.btn) { display: block; padding: .8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--fleece); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--bracken); }
  .nav-call { margin-top: 1rem; }
  .site-nav { position: static; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }

  .menu-tabs { top: 58px; }
  .visit-grid, .review-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .hero-img { object-position: 58% 40%; }
}

@media (max-width: 480px) {
  .food-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .food-card:hover { transform: none; }
  .gallery-zoom:hover img { transform: none; }
}
