/* The White Horse Inn, Bodle Street Green
   One stylesheet for the whole site. Colours and fonts are set at the top. */

/* 1. FONTS (self-hosted, SIL Open Font Licence) ---------------------------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* 2. SETTINGS -------------------------------------------------------------- */
:root {
  /* Colour scheme "Roof & Render": taken from the pub itself.
     Charcoal like the sign writing, warm white like the render, red like the roof tiles.
     (The variable names are kept from the first version so nothing else needs changing.) */
  --cream:      #f6f1e8;   /* page background: warm white render */
  --paper:      #fcfaf5;   /* cards */
  --ink:        #232120;   /* main text */
  --muted:      #5c5650;   /* secondary text */
  --sage-dark:  #2a2624;   /* header, footer, dark sections: charcoal */
  --sage:       #8e2f25;   /* accents and labels: roof-tile red */
  --sage-light: #e8d5b5;   /* highlights on dark: warm sand */
  --line:       #e2d8ca;
  --red:        #8e2f25;   /* main buttons */
  --red-dark:   #6f231b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;          /* headings */
  --sans:  "Libre Franklin", "Helvetica Neue", Arial, sans-serif;   /* text and labels */
  --radius: 6px;
  --max: 1160px;
}

/* 3. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.05rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-underline-offset: 3px; }
a:hover { color: var(--sage); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--sage-dark); }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.eyebrow { display: block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.8rem; }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 99; }

/* 4. BUTTONS --------------------------------------------------------------- */
.btn { display: inline-block; font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 0.95em 1.5em 0.8em; border-radius: var(--radius); background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--sage-dark); }
.btn--ghost:hover { background: var(--sage-dark); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* 5. NOTICE BAR (reopening) ------------------------------------------------ */
.notice { background: var(--sage-light); color: var(--sage-dark); text-align: center; font-family: var(--sans); font-size: 0.95rem; padding: 0.7rem 1rem 0.55rem; }
.notice a { color: inherit; font-weight: 600; }

/* 6. HEADER & NAV ---------------------------------------------------------- */
.site-header { background: var(--sage-dark); color: var(--cream); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--cream); text-decoration: none; }
.brand img { width: 30px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.brand small { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-light); margin-top: 0.3rem; }
.nav-toggle { display: inline-flex; background: none; border: 1px solid rgba(243,234,225,.4); color: var(--cream); border-radius: var(--radius); padding: 0.5rem; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sage-dark); border-top: 1px solid rgba(243,234,225,.15); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 1rem 1rem; }
.site-nav a { display: block; padding: 0.7rem 0.2rem 0.55rem; font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sage-light); }
.site-nav .nav-call a { color: var(--sage-light); }
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 1.4rem; padding: 0; }
  .site-nav a { padding: 0.4rem 0 0.25rem; font-size: 0.85rem; border-bottom: 1px solid transparent; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--sage-light); }
  .site-nav .nav-call a { border: 1px solid var(--sage-light); border-radius: var(--radius); padding: 0.55rem 0.9rem 0.4rem; }
}

/* 7. SECTIONS -------------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--dark { background: var(--sage-dark); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .eyebrow { color: var(--sage-light); }
.section--dark .muted, .section--dark .lead { color: #d9d3c9; }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }

/* 8. HERO ------------------------------------------------------------------ */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 18px 40px -22px rgba(54,51,47,.6); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.hero .sub { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }

/* 9. HOURS ----------------------------------------------------------------- */
.hours { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .hours { grid-template-columns: 1fr 1fr; } }
.hours-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.section--paper .hours-card { background: var(--cream); }
.hours-card h3 { margin-bottom: 0.8rem; }
.hours-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.2rem; margin: 0; }
.hours-card dt { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.05em; padding-top: 0.2rem; }
.hours-card dd { margin: 0; }
.hours-card .note { margin: 1rem 0 0; font-size: 1rem; color: var(--muted); }

/* 10. CARDS & GRIDS -------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.section--paper .card { background: var(--cream); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card .body { padding: 1.3rem 1.4rem 1.4rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.card .tag { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sage); display: block; margin-bottom: 0.4rem; }
.feature { padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.feature h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.feature p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section--dark .feature { border-top-color: rgba(243,234,225,.2); }

/* 11. SPLIT (text + image) ------------------------------------------------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split--flip > :first-child { order: 2; } }

/* 12. GALLERY -------------------------------------------------------------- */
.gallery { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery figcaption { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; letter-spacing: 0.03em; }

/* 13. MENU ----------------------------------------------------------------- */
.menu-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.menu-nav a { display: inline-block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 0.5rem 0.9rem 0.35rem; }
.menu-section { padding: 2.5rem 0 0.5rem; border-top: 1px solid var(--line); margin-top: 2.5rem; scroll-margin-top: 90px; }
.menu-section > .intro { color: var(--muted); max-width: 40em; }
.dishes { display: grid; gap: 1.2rem 3rem; margin-top: 1.3rem; }
@media (min-width: 820px) { .dishes { grid-template-columns: 1fr 1fr; } }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; }
.dish h3 { font-size: 1.2rem; margin: 0; color: var(--ink); }
.dish .price { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--sage-dark); white-space: nowrap; }
.dish p { grid-column: 1 / -1; margin: 0.1rem 0 0; color: var(--muted); font-size: 1.02rem; }
.dish .extra { font-family: var(--sans); font-size: 0.85rem; color: var(--sage); }
.diet { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--sage); vertical-align: middle; margin-left: 0.3rem; }
.key { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

/* 14. TIMELINE (history) --------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--sage-light); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); }
.timeline .when { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.1em; color: var(--sage); display: block; }
blockquote { margin: 1.5rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 3px solid var(--sage-light); font-style: italic; color: var(--muted); }
.two-col { columns: 2 16rem; column-gap: 2.5rem; }
.two-col li { break-inside: avoid; }

/* 15. QUIZ ----------------------------------------------------------------- */
.round { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin-bottom: 1.4rem; }
.round h3 { margin-bottom: 0.2rem; }
.round ol { padding-left: 1.4rem; margin: 0.8rem 0; }
.round li { margin-bottom: 0.3rem; }
details { margin-top: 0.6rem; }
summary { cursor: pointer; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark); }
details ol { color: var(--muted); }

/* 16. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--sage-dark); color: #d9d3c9; padding: 3.5rem 0 2rem; font-size: 1.02rem; }
.site-footer a { color: var(--cream); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--sans); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-light); margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social a { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--sans); font-size: 0.85rem; text-decoration: none; border: 1px solid rgba(243,234,225,.35); border-radius: 99px; padding: 0.45rem 0.9rem 0.3rem; }
.footer-base { border-top: 1px solid rgba(243,234,225,.18); margin-top: 2.5rem; padding-top: 1.2rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.03em; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; }

/* 17. SMALL HELPERS -------------------------------------------------------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.badge { border: 1px solid rgba(243,234,225,.35); border-radius: var(--radius); padding: 1rem 1.3rem; flex: 1 1 16rem; }
.badge strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--cream); font-weight: 600; }
.badge span { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.05em; color: var(--sage-light); }
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.fact-list li:first-child { border-top: 0; }
.fact-list strong { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-dark); display: block; }

/* 18. MODERN HOME HERO (photo bleeds to the right edge) -------------------- */
.hero--bleed { position: relative; padding: 0; overflow: hidden; }
.hero--bleed .hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; box-shadow: none; }
.hero--bleed .hero-grid { padding: 2.5rem 0 3rem; }
.hero--bleed h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 0.98; margin-bottom: 0.35em; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .hero--bleed { min-height: min(82vh, 760px); display: flex; align-items: center; }
  .hero--bleed .hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
  .hero--bleed .hero-photo img { height: 100%; aspect-ratio: auto; }
  .hero--bleed .hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0, rgba(246,241,232,0) 18%); z-index: 1; }
  .hero--bleed .hero-grid { grid-template-columns: 1fr 1fr; padding: 4rem 0; width: min(100% - 2rem, var(--max)); }
  .hero--bleed .hero-text { padding-right: 3rem; }
}
.status { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 0.55rem; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 0.45rem 0.95rem 0.3rem; margin: 0 0 1.4rem; color: var(--ink); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #c08a2b; box-shadow: 0 0 0 3px rgba(192,138,43,.2); margin-top: -2px; }
.status.is-open .dot { background: #4f8a4a; box-shadow: 0 0 0 3px rgba(79,138,74,.2); }
.status.is-closed .dot { background: #9a4d3f; box-shadow: 0 0 0 3px rgba(154,77,63,.18); }

/* 19. FACTS STRIP (icons) -------------------------------------------------- */
.facts-strip { background: var(--sage-dark); color: var(--cream); padding: 1.6rem 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(6, 1fr); } }
.facts li { display: flex; align-items: center; gap: 0.75rem; font-family: var(--sans); font-size: 0.88rem; line-height: 1.3; letter-spacing: 0.02em; }
.facts svg { width: 34px; height: 34px; flex: none; color: var(--sage-light); }
.facts a { color: var(--cream); }

/* 20. SUNDAY ROAST BAND ---------------------------------------------------- */
.roast img { aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 18px 40px -24px rgba(54,51,47,.7); }
.price-line { font-family: var(--sans); font-size: 1rem; letter-spacing: 0.03em; }
.price-line strong { font-family: var(--serif); font-size: 1.5rem; color: var(--sage-dark); }

/* 21. MOBILE ACTION BAR ---------------------------------------------------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sage-dark); border-top: 1px solid rgba(243,234,225,.2); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.6rem 0 0.5rem; color: var(--cream); text-decoration: none; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.action-bar a + a { border-left: 1px solid rgba(243,234,225,.15); }
.action-bar svg { width: 22px; height: 22px; color: var(--sage-light); }
body { padding-bottom: 64px; }
@media (min-width: 760px) { .action-bar { display: none; } body { padding-bottom: 0; } }

/* 22. POLISH --------------------------------------------------------------- */
a.card { transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(54,51,47,.6); }
.card img, .gallery img { transition: transform .5s ease; }
.gallery figure { overflow: hidden; border-radius: var(--radius); }
.gallery figure:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { a.card, .card img, .gallery img { transition: none; } a.card:hover { transform: none; } .gallery figure:hover img { transform: none; } }

/* 23. REVIEWS -------------------------------------------------------------- */
.quote { margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.7rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 1rem; padding: 0; border: 0; font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.quote figcaption { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--sage); }
.quote::before { content: "\2605\2605\2605\2605\2605"; color: #c08a2b; letter-spacing: 0.15em; font-size: 0.95rem; margin-bottom: 0.6rem; }

/* 24. HEADER PLAQUE: the pub drawing from the menu, dark ink on cream (never inverted) */
.brand-plaque { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); border-radius: 4px; padding: 5px 7px; box-shadow: inset 0 0 0 1px rgba(54,51,47,.15); }
.brand .brand-plaque img { width: 62px; height: auto; }
@media (min-width: 980px) { .brand .brand-plaque img { width: 66px; } .site-header .container { min-height: 84px; } }

/* 25. Small phones: keep the pub name on one line */
@media (max-width: 440px) {
  .brand span { font-size: 1.12rem; }
  .brand small { font-size: 0.6rem; letter-spacing: 0.14em; }
  .brand .brand-plaque img { width: 54px; }
}
