/* The Horse & River — site styles */

/* Lighthaus is self-hosted: put the font file in wwwroot/fonts/ under one of these
   names. Until it is there, headings fall back to Bebas Neue. */
@font-face {
  font-family: "Lighthaus";
  src: url("../fonts/Lighthaus.woff2") format("woff2"),
       url("../fonts/Lighthaus.woff") format("woff"),
       url("../fonts/Lighthaus.otf") format("opentype"),
       url("../fonts/Lighthaus.ttf") format("truetype");
  font-display: swap;
}

:root {
  --black: #0d0c0b;
  --coal: #171513;
  --iron: #24211e;
  --bone: #eaeae6;
  --sand: #deddd8;
  --ash: #9a958d;
  --brass: #e0962e;
  --brass-dark: #b87416;
  --display: "Lighthaus", "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(3rem, 8vw, 6.5rem);
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lede {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brass);
  color: var(--black);
}

/* Buttons */

.hr-btn {
  display: inline-block;
  padding: 13px 28px 11px;
  border: 2px solid var(--brass);
  background: var(--brass);
  color: var(--black);
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hr-btn:hover,
.hr-btn:focus-visible {
  background: transparent;
  color: var(--brass);
}

.hr-btn--ghost {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.hr-btn--ghost:hover,
.hr-btn--ghost:focus-visible {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--black);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.25s, box-shadow 0.25s;
}

.site-header.is-solid,
.site-header.is-open {
  background: rgba(13, 12, 11, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  font-family: var(--display);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--brass);
}

.hr-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.hr-nav a:not(.hr-btn) {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.hr-nav a:not(.hr-btn):hover,
.hr-nav a:not(.hr-btn):focus-visible {
  color: var(--brass);
}

.hr-nav .hr-btn {
  padding: 10px 18px 8px;
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Photo slots: show the photo if it exists, a labelled placeholder if not */

.ph {
  position: relative;
  overflow: hidden;
  background: var(--iron);
}

.ph img,
.ph video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph.is-empty {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 14px, transparent 14px 28px),
    var(--iron);
}

.ph.is-empty::after {
  content: "Photo: " attr(data-slot);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--ash);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 1100px);
  padding: calc(var(--header-h) + 40px) 0 clamp(48px, 9vh, 96px);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(224, 150, 46, 0.28), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(184, 116, 22, 0.18), transparent 60%),
    var(--black);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 12, 11, 0.55) 0%, rgba(13, 12, 11, 0.2) 40%, rgba(13, 12, 11, 0.9) 100%);
  pointer-events: none;
}

.hero.no-photo::after {
  display: none;
}

.hero__gear {
  position: absolute;
  color: var(--brass);
  opacity: 0.16;
  animation: spin 80s linear infinite;
}

.hero__gear--a {
  top: -14vmin;
  right: -14vmin;
  width: 70vmin;
}

.hero__gear--b {
  top: 34vmin;
  right: 38vmin;
  width: 30vmin;
  animation-duration: 40s;
  animation-direction: reverse;
}

.hero:not(.no-photo) .hero__gear {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  font-size: clamp(4.4rem, 17vw, 15rem);
  line-height: 0.82;
}

.hero h1 em {
  color: var(--brass);
  font-style: normal;
}

.hero__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.hero__sub p {
  max-width: 30em;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero__sub .btn-row {
  margin-top: 0;
}

/* Marquee */

.marquee {
  overflow: hidden;
  background: var(--brass);
  color: var(--black);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}

.marquee span {
  padding: 14px 0 10px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.marquee span::after {
  content: "✦";
  margin: 0 0.9em;
  font-size: 0.6em;
  vertical-align: middle;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* Sections */

.section {
  padding: clamp(72px, 11vw, 150px) 0;
}

.section--light {
  background: var(--bone);
  color: var(--black);
}

.section--light .eyebrow {
  color: var(--brass-dark);
}

.section--light .hr-btn {
  border-color: var(--black);
  background: var(--black);
  color: var(--bone);
}

.section--light .hr-btn:hover,
.section--light .hr-btn:focus-visible {
  background: transparent;
  color: var(--black);
}

.section--coal {
  background: var(--coal);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.split--flip > :first-child {
  order: 2;
}

.split .ph {
  aspect-ratio: 4 / 5;
}

.split h2 {
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 64px);
}

/* Promise */

.promise {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  counter-reset: promise;
}

.promise li {
  counter-increment: promise;
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.promise li::before {
  content: counter(promise, decimal-leading-zero);
  color: var(--brass-dark);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Favourites carousel */

.rail {
  display: grid;
  grid-auto-columns: minmax(260px, 24vw);
  grid-auto-flow: column;
  gap: 20px;
  padding: 0 var(--gutter) 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--brass) transparent;
  scrollbar-width: thin;
}

.dish {
  scroll-snap-align: start;
}

.dish .ph {
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
}

.dish p {
  margin: 8px 0 0;
  color: var(--ash);
  font-size: 0.95rem;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 36px 0 0;
  background: rgba(255, 255, 255, 0.14);
}

.stats div {
  padding: 22px 12px 18px;
  background: var(--coal);
  text-align: center;
}

.stats dt {
  color: var(--brass);
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
}

.stats dd {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.taps {
  margin-top: 28px;
  color: var(--ash);
  font-size: 0.95rem;
}

.taps strong {
  color: var(--bone);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: 28px;
  overflow: hidden;
  color: var(--bone);
  text-decoration: none;
}

.hr-card .ph {
  position: absolute;
  inset: 0;
}

.hr-card .ph img {
  transition: transform 0.6s;
}

.hr-card:hover .ph img {
  transform: scale(1.05);
}

.hr-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(13, 12, 11, 0.92) 100%);
}

.hr-card > :not(.ph) {
  position: relative;
  z-index: 2;
}

.hr-card p {
  margin: 10px 0 16px;
  font-size: 0.95rem;
}

.hr-card .more {
  color: var(--brass);
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Quote band */

.band {
  padding: clamp(56px, 8vw, 110px) 0;
  background: var(--brass);
  color: var(--black);
  text-align: center;
}

.band p {
  max-width: 18em;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.band small {
  display: block;
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery .ph {
  aspect-ratio: 1;
}

.gallery .ph:nth-child(1),
.gallery .ph:nth-child(6) {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

/* Visit */

.visit {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
}

.visit h2 {
  margin-bottom: 32px;
}

.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.info h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.info a {
  text-decoration-color: var(--brass-dark);
  text-underline-offset: 3px;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 3px 0;
  font-weight: 400;
  text-align: left;
}

.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hours .is-today th,
.hours .is-today td {
  font-weight: 800;
}

.map {
  min-height: 420px;
  background: var(--sand);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

/* Footer */

.site-footer {
  padding: clamp(56px, 8vw, 96px) 0 32px;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.footer-grid h3 {
  margin-bottom: 14px;
  color: var(--brass);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 6px;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--brass);
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ash);
  font-size: 0.8rem;
}

/* Menu page */

.page-head {
  padding: calc(var(--header-h) + clamp(48px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(80% 90% at 90% 0%, rgba(224, 150, 46, 0.25), transparent 60%),
    var(--black);
}

.page-head h1 {
  font-size: clamp(4.4rem, 15vw, 12rem);
  line-height: 0.82;
}

.page-head p {
  max-width: 36em;
  margin: 24px 0 0;
}

.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--black);
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-nav .wrap {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-nav a {
  padding: 16px 0 12px;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-nav a:hover,
.menu-nav a:focus-visible {
  color: var(--brass);
}

.menu-group {
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  scroll-margin-top: calc(var(--header-h) + 56px);
}

.menu-group > .wrap {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 3fr;
  gap: clamp(24px, 5vw, 72px);
}

.menu-group h2 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.menu-group .note {
  margin-top: 14px;
  color: #5d5952;
  font-size: 0.9rem;
}

.menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list b {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

.menu-list span {
  display: block;
  margin-top: 4px;
  color: #4a4741;
  font-size: 0.93rem;
  line-height: 1.5;
}

/* Reveal on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .hr-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    background: rgba(13, 12, 11, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .is-open .hr-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .hr-nav a:not(.hr-btn) {
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.04em;
  }

  .split,
  .visit,
  .menu-group > .wrap {
    grid-template-columns: 1fr;
  }

  .split--flip > :first-child {
    order: 0;
  }

  .split .ph {
    aspect-ratio: 4 / 3;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hr-card {
    min-height: 360px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .info,
  .menu-list {
    grid-template-columns: 1fr;
  }

  .rail {
    grid-auto-columns: 74vw;
  }

  .stats dd {
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__gear,
  .marquee__track {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Cart link in the header */

.nav-cart__count {
  display: inline-block;
  min-width: 1.7em;
  margin-left: 0.5em;
  padding: 0.15em 0.4em 0.05em;
  border-radius: 999px;
  background: var(--brass);
  color: var(--black);
  letter-spacing: 0;
  text-align: center;
}

.hr-nav a[aria-current="page"]:not(.hr-btn) {
  color: var(--brass);
}

/* Sign out sits in a form; make its button look like the other header links */

.hr-nav form {
  display: contents;
}

.hr-nav__button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.hr-nav__button:hover,
.hr-nav__button:focus-visible {
  color: var(--brass);
}

/* The header holds more links than the pub pages alone needed, so tighten it
   on mid-sized screens before it collapses into the menu button. */

@media (max-width: 1360px) {
  .hr-nav {
    gap: 16px;
  }

  .hr-nav a:not(.hr-btn),
  .hr-nav__button {
    letter-spacing: 0.1em;
  }
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }

  .hr-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    overflow-y: auto;
    background: rgba(13, 12, 11, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .is-open .hr-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .hr-nav a:not(.hr-btn),
  .hr-nav__button {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
  }
}

/* Signed-in users get extra links (Admin, My details, Sign out), so their header
   collapses into the menu button sooner. */

@media (max-width: 1440px) {
  .site-header--long .nav-toggle {
    display: block;
  }

  .site-header--long .hr-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    overflow-y: auto;
    background: rgba(13, 12, 11, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .site-header--long.is-open .hr-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .site-header--long .hr-nav a:not(.hr-btn),
  .site-header--long .hr-nav__button {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
  }
}
