/* =====================================================
   The Gilded Hare — Modern British Tavern (demo site)
   ===================================================== */

:root {
  --green: #24352d;        /* deep forest green */
  --green-800: #1b2822;
  --green-700: #2f463b;
  --cream: #f7f2e7;        /* warm paper */
  --cream-2: #efe7d5;
  --brass: #c58f2f;        /* gilded accent */
  --brass-light: #e9c46a;
  --charcoal: #2b2b28;
  --ink: #33332e;
  --muted: #6b6a60;
  --line: rgba(43,43,40,.14);
  --white: #fffdf8;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1160px;
  --radius: 4px;
  --shadow: 0 18px 40px -20px rgba(20,30,25,.45);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: .2px; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto; background: var(--green); color: var(--cream); padding: 10px 16px; z-index: 1000; border-radius: var(--radius); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; cursor: pointer; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  transition: all .25s ease; line-height: 1;
}
.btn-primary { background: var(--brass); color: var(--green-800); border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-light); border-color: var(--brass-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .72rem; }

.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .28em;
  font-size: .74rem; font-weight: 500; color: var(--brass); margin: 0 0 .8rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease;
  background: transparent;
}
.site-header.scrolled { background: var(--green); box-shadow: 0 2px 20px rgba(0,0,0,.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand-mark { flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; letter-spacing: .3px; }
.brand-tag { font-size: .6rem; text-transform: uppercase; letter-spacing: .26em; color: var(--brass-light); }

.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a { color: var(--cream); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border-radius: var(--radius); transition: color .2s; }
.nav-list > li > a:hover { color: var(--brass-light); }
.nav-cta { border: 1px solid var(--brass); color: var(--brass-light) !important; }
.nav-cta:hover { background: var(--brass); color: var(--green-800) !important; }
.nav-icons { display: flex; gap: 4px; margin-left: 6px; padding-left: 10px; border-left: 1px solid rgba(247,242,231,.25); }
.nav-icons a { display: grid; place-items: center; width: 36px; height: 36px; color: var(--cream); border-radius: 50%; transition: all .2s; }
.nav-icons a:hover { color: var(--brass-light); background: rgba(247,242,231,.1); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; position: relative; }
.burger, .burger::before, .burger::after { content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--cream); transition: transform .3s, opacity .2s; }
.burger { top: 21px; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--cream); overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #1b2822, #2f463b 60%, #3a2a1c);
  background-size: cover; background-position: center;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("../assets/img/hero.jpg");
  background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease;
}
.hero-media.loaded::after { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,22,.55) 0%, rgba(20,25,22,.35) 40%, rgba(20,25,22,.78) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); max-width: 820px; }
.hero-content h1 { margin-bottom: .5rem; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; color: #ece7db; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(247,242,231,.6); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--brass-light); border-radius: 2px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-head.centred { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-intro { color: var(--muted); font-size: 1.08rem; }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-points { list-style: none; padding: 0; margin: 0 0 2rem; }
.about-points li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.about-points li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 8px; height: 8px; background: var(--brass); transform: rotate(45deg); }
.about-figure { position: relative; }
.about-figure img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; background: var(--cream-2); }
.about-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--green); color: var(--cream);
  padding: 18px 24px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow);
}
.badge-year { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--brass-light); font-weight: 700; }
.badge-sub { font-size: .74rem; letter-spacing: .04em; }

/* ---------- Menu ---------- */
.menu { background: var(--green); color: var(--cream); }
.menu .eyebrow { color: var(--brass-light); }
.menu .section-intro { color: #cbd4cc; }
.menu-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.menu-tab {
  background: transparent; border: 1px solid rgba(247,242,231,.3); color: var(--cream);
  font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 22px; border-radius: 40px; cursor: pointer; transition: all .2s;
}
.menu-tab:hover { border-color: var(--brass-light); color: var(--brass-light); }
.menu-tab.is-active { background: var(--brass); border-color: var(--brass); color: var(--green-800); }
.menu-panels { max-width: 780px; margin: 0 auto; }
.menu-panel { display: none; animation: fade .35s ease; }
.menu-panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-items > li { padding: 16px 0; border-bottom: 1px dashed rgba(247,242,231,.18); }
.menu-items.compact > li { padding: 9px 0; }
.mi-head { display: flex; align-items: baseline; gap: 8px; }
.mi-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; }
.mi-dots { flex: 1; border-bottom: 1px dotted rgba(247,242,231,.35); transform: translateY(-4px); }
.mi-price { font-family: var(--serif); font-size: 1.2rem; color: var(--brass-light); font-weight: 600; }
.mi-desc { margin: 4px 0 0; color: #c7d0c8; font-size: .96rem; }
.tag { display: inline-block; font-family: var(--sans); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; background: rgba(233,196,106,.16); color: var(--brass-light); padding: 2px 7px; border-radius: 3px; margin-left: 2px; }
.panel-note, .menu-foot { color: #b9c3ba; font-size: .92rem; }
.panel-note { border-left: 2px solid var(--brass); padding-left: 16px; margin-bottom: 20px; font-style: italic; }
.menu-foot { max-width: 780px; margin: 34px auto 0; text-align: center; }
.drinks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.drinks-head { font-size: 1.1rem; color: var(--brass-light); border-bottom: 1px solid rgba(247,242,231,.25); padding-bottom: 8px; margin-bottom: 6px; }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: var(--cream-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after { content: "＋"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.8rem; background: rgba(27,40,34,.45); opacity: 0; transition: opacity .3s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ---------- Hours ---------- */
.hours { background: var(--green-800); color: var(--cream); }
.hours .eyebrow { color: var(--brass-light); }
.hours-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hours-note { color: #b9c3ba; font-size: .94rem; }
.hours-card { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.hours-table th, .hours-table td { padding: 12px 4px; text-align: left; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 500; font-family: var(--sans); }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; color: var(--green-700); font-weight: 400; }
.hours-table td.closed { color: #b0483b; font-style: italic; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

/* ---------- Reservations ---------- */
.reservations { background: var(--cream-2); }
.res-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.res-contact { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 16px; }
.res-contact li { display: flex; align-items: center; gap: 14px; }
.rc-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--brass-light); }
.rc-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.res-contact a { font-size: 1.08rem; color: var(--green-700); font-weight: 400; }
.res-contact a:hover { color: var(--brass); }

.res-form { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; color: var(--ink); font-weight: 500; }
label .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 300; }
input, select, textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(197,143,47,.15); }
textarea { resize: vertical; }
.err { display: block; color: #b0483b; font-size: .78rem; margin-top: 4px; min-height: 1em; }
input.invalid, select.invalid { border-color: #b0483b; }
.form-fineprint { font-size: .78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-success { margin-top: 14px; padding: 14px 16px; background: #e5efe4; border: 1px solid #b6d3b2; border-radius: var(--radius); color: #2f5b2c; font-size: .95rem; }

/* ---------- Location ---------- */
.location { background: var(--white); }
.location-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.location-info address { font-style: normal; font-size: 1.12rem; line-height: 1.7; margin-bottom: 1rem; }
.loc-note, .loc-getting { color: var(--muted); font-size: .96rem; }
.location-map { position: relative; display: block; min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); }
.location-map img { display: block; width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.map-pill { position: absolute; bottom: 16px; right: 16px; background: var(--green); color: var(--cream); font-size: .78rem; letter-spacing: .06em; padding: 8px 14px; border-radius: 40px; box-shadow: var(--shadow); transition: background .2s, transform .2s; }
.location-map:hover .map-pill { background: var(--brass); color: var(--green-800); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-800); color: #cbd4cc; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: clamp(48px, 6vw, 72px) 24px 40px; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); margin: 12px 0 2px; }
.footer-tag { font-size: .82rem; color: var(--brass-light); }
.footer-col h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: 12px; }
.footer-col a:hover { color: var(--brass-light); }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(247,242,231,.25); border-radius: 50%; color: var(--cream); transition: all .2s; }
.footer-social a:hover { background: var(--brass); border-color: var(--brass); color: var(--green-800); }
.footer-hours { font-size: .92rem; line-height: 1.9; }
.footer-bar { border-top: 1px solid rgba(247,242,231,.14); }
.footer-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 20px; font-size: .82rem; }
.footer-links a:hover { color: var(--brass-light); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 200; background: var(--green); color: var(--cream); border-radius: var(--radius); box-shadow: 0 20px 50px -12px rgba(0,0,0,.5); max-width: 960px; margin: 0 auto; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.cookie-inner p { margin: 0; font-size: .9rem; }
.cookie-inner a { color: var(--brass-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,20,17,.94); display: grid; place-items: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.cookie-banner[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 20px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 2.4rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; transition: background .2s; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ---------- Sub-pages (privacy / cookies) ---------- */
.page-hero { background: var(--green); color: var(--cream); padding: calc(var(--header-h) + 48px) 0 48px; }
.page-hero .eyebrow { color: var(--brass-light); }
.legal { background: var(--white); padding: clamp(48px, 7vw, 88px) 0; }
.legal .container { max-width: 780px; }
.legal h2 { margin-top: 2rem; font-size: 1.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--brass); text-decoration: underline; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .hours-grid, .res-grid, .location-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; max-width: 460px; }
  .about-badge { left: 0; }
  .drinks-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; z-index: 20; }
  .nav-list {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    gap: 6px; background: var(--green); padding: 40px;
    transform: translateX(100%); transition: transform .35s ease; height: 100vh;
  }
  .nav-list.open { transform: translateX(0); }
  .nav-list > li { width: 100%; text-align: center; }
  .nav-list > li > a { display: block; font-size: 1.1rem; padding: 14px; }
  .nav-icons { justify-content: center; border-left: 0; border-top: 1px solid rgba(247,242,231,.25); padding-top: 16px; margin-top: 8px; }
  .footer-bar-inner { justify-content: center; text-align: center; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .res-form, .hours-card { padding: 22px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}
