/* The Tollgate Inn: "Country heritage" (spec §9.3, mockups/).
   Plain CSS, no build step. No eyebrow labels, no italic headline tails,
   no centred fixed-width section boxes: full-width sections with vw gutters. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("/fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/fonts/figtree-600.woff2") format("woff2"); }

:root {
  --sage: #495D42; --forest: #26301F; --ring: #A1B08E;
  --cream: #F5F0E6; --linen: #ECE5D6; --paper: #FBF8F2;
  --ink: #1F241C; --muted: #4A5046; --rule: #D9D1C1; --field: #C9BFAC;
  --gutter: 5vw;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 4px; }
a:hover { color: var(--sage); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 5.4vw, 80px); letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 3.8vw, 56px); }
h3 { font-size: 30px; font-weight: 600; line-height: 1.1; }
p { margin: 0; }
.measure { max-width: 34em; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 16px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-block; padding: 15px 24px; border-radius: 2px; font: 600 16px var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--sage); color: var(--paper); }
.btn-primary:hover { background: var(--forest); color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.page-head .btn-row { margin-top: 10px; }
.btn-note { font-weight: 400; font-size: 14px; opacity: .75; }

/* Header */
.site-header { display: flex; align-items: center; gap: 40px; padding: 16px var(--gutter); border-bottom: 1px solid var(--rule); }
.site-header .logo img { width: 76px; height: 76px; }
.site-nav { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 8px 34px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a[aria-current="page"] { text-decoration: underline; }
.site-header .btn { margin-left: auto; padding: 14px 22px; font-size: 15px; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 14px 24px; }
  .site-header .logo img { width: 60px; height: 60px; }
  .site-nav { order: 3; flex-basis: 100%; gap: 6px 22px; font-size: 15px; }

  /* With JavaScript: logo, Book a table, then a menu button that drops the links down as a list. */
  .nav-ready.site-header { gap: 14px 12px; }
  .nav-ready .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; padding: 0; background: transparent; border: 1px solid var(--field); border-radius: 2px; color: var(--ink); cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s, background-color .2s; }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-ready .site-nav { display: none; flex-direction: column; gap: 0; margin-top: 4px; font-size: 18px; }
  .nav-open .site-nav { display: flex; }
  .nav-ready .site-nav a { padding: 14px 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 380px) {
  .nav-ready .logo img { width: 52px; height: 52px; }
  .nav-ready .btn { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { transition: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 640px; }
.hero-text { padding: 72px 4vw 80px var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hero-text p { font-size: 19px; color: var(--muted); max-width: 27em; }
.hero > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-text { padding: 40px var(--gutter) 48px; } }

/* Info bar */
.info-bar { background: var(--forest); color: var(--cream); padding: 22px var(--gutter); display: flex; flex-wrap: wrap; gap: 14px 48px; align-items: center; font-size: 15px; }
.info-bar a { color: var(--cream); }
.info-bar .push { margin-left: auto; font-weight: 600; }
.info-bar svg { flex-shrink: 0; }
.info-item { display: flex; gap: 10px; align-items: center; }

/* Sections */
.section { padding: 88px var(--gutter); }
.section-tight { padding: 56px var(--gutter); }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
.section-head p { max-width: 30em; color: var(--muted); }
.band-linen { background: var(--linen); }
.band-forest { background: var(--forest); color: var(--cream); }
.page-head { padding: 64px var(--gutter) 24px; display: flex; flex-direction: column; gap: 18px; }
.page-head p { font-size: 19px; color: var(--muted); max-width: 34em; }
.page-head p.award { margin-top: -8px; }
.page-head .intro > * + * { margin-top: 0.7em; }
.page-head .intro a { color: inherit; }
p.award { font-size: 17px; font-weight: 600; color: var(--sage); }
.prose h1 + p.award { margin-top: 0.6em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 36px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card img, .card .panel { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.card h3 { margin-top: 8px; }
.card p { font-size: 16px; color: var(--muted); }
.card a.more { font-weight: 600; font-size: 15px; }
.panel { background: var(--forest); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.panel .big { font-family: var(--serif); font-size: 46px; line-height: 1; }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 6px; }
.photo-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
/* Gallery block: 4:3 thumbnails that open in a full-screen viewer. */
.gallery-section h2 { margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.gallery-item { display: block; overflow: hidden; border-radius: 2px; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.03); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 24, 16, .95); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 24, 16, .95); }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 600 15px var(--sans); padding: 14px 18px; }
.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox .lightbox-prev, .lightbox .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 52px; font-weight: 400; line-height: 1; padding: 12px 22px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next { display: none; }
.lightbox-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 14px; color: rgba(255, 255, 255, .8); }

/* Prose (page text blocks) */
.prose { max-width: 40em; font-size: 18px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(30px, 3vw, 42px); margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Forms */
.form { display: grid; gap: 18px; max-width: 46rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 15px; font-weight: 500; color: var(--forest); }
.field input, .field select, .field textarea, .field-group select { min-height: 52px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 2px; background: var(--paper); font: 500 16px var(--sans); color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint, .field-group .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
/* A group of inputs under one label (e.g. the birthday's day and month). */
.field-group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field-group legend { float: left; width: 100%; padding: 0; margin-bottom: 0; font-size: 15px; font-weight: 500; color: var(--forest); }
.field-group legend + * { clear: both; }
.field-group .error { color: #9B2C1F; font-weight: 500; font-size: 14px; }
.field .error, .error-summary { color: #9B2C1F; font-weight: 500; font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--sage); flex-shrink: 0; }
.notice { background: var(--paper); border-left: 4px solid var(--sage); padding: 16px 20px; }
.hp { position: absolute; left: -10000px; }

/* Booking band (homepage) */
/* Book a table: the form, with a photo alongside on wider screens. */
.book-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: 5vw; align-items: start; }
.book-photo { margin: 0; position: sticky; top: 24px; }
.book-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
@media (max-width: 900px) { .book-layout { grid-template-columns: minmax(0, 1fr); } .book-photo { display: none; } }
.booking-band { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; }
.booking-band > div { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.booking-band form { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }

/* Menus */
.menu-section { margin-top: 48px; }
.menu-section h2 { font-size: clamp(30px, 3vw, 44px); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.menu-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 5vw; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.menu-item .name { font-weight: 600; }
.menu-item .price { font-weight: 600; white-space: nowrap; }
.menu-item .desc { grid-column: 1 / -1; color: var(--muted); font-size: 16px; }
.diet { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--sage); border: 1px solid var(--ring); border-radius: 2px; padding: 0 5px; vertical-align: 2px; }

/* Hours table */
.hours { border-collapse: collapse; width: 100%; max-width: 30rem; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours td { text-align: right; }

/* Find Us map: shown at its natural size and cropped to the box, so the labels stay readable. */
.find-map { padding-top: 0; }
.find-map > a { display: block; max-width: 1800px; }
.find-map img { width: 100%; height: 540px; object-fit: none; object-position: 50% 50%; background: var(--linen); border-radius: 2px; }
.map-credit { font-size: 14px; margin-top: 10px; }
@media (max-width: 900px) { .find-map img { height: 420px; } }

/* Footer */
.site-footer { background: var(--forest); color: #D9DECF; padding: 40px var(--gutter); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; font-size: 14px; }
.site-footer img { width: 56px; height: 56px; }
.site-footer a { color: #D9DECF; }
.site-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 24px; }
/* The AA badges, after the footer links. */
.footer-awards { display: flex; gap: 14px; }
.site-footer .footer-awards img { width: auto; height: 80px; }
/* Agency credit, bottom right (the "Powered by Zonkey" widget from our other sites). */
.site-credit { flex-basis: 100%; display: flex; justify-content: flex-end; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.zonkey-powered-by-widget p { margin: 0; display: inline-flex; align-items: center; gap: .55rem; font-size: 12px; }
.zonkey-powered-by-widget a { display: inline-flex; align-items: center; text-decoration: none; transition: color .3s ease, opacity .3s ease; }
.zonkey-powered-by-widget svg { display: block; height: 18px; width: auto; }
.zonkey-powered-by-widget--light p { color: rgba(255, 255, 255, .72); }
.site-footer .zonkey-powered-by-widget--light a { color: rgba(255, 255, 255, .85); }
.site-footer .zonkey-powered-by-widget--light a:hover { color: #fff; }

/* The analytics cookie question (only when a Google Analytics ID is set). */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; box-shadow: 0 8px 28px rgb(31 36 28 / 0.18); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 300px; font-size: 16px; }
.cookie-banner .btn-row { margin: 0; flex-wrap: nowrap; }
.cookie-banner .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; white-space: nowrap; }
@media (max-width: 520px) { .cookie-banner .btn-row { width: 100%; } .cookie-banner .btn { flex: 1; } }
