/* ==========================================================================
   Aurelia — theme tokens
   Single source of truth for colour, type, and spacing. Every value below is
   referenced elsewhere via var(); never hard-code these numbers in a rule.
   ========================================================================== */
:root {
  /* Palette */
  --colour-ink: #1a1613;          /* near-black text on light */
  --colour-charcoal: #24211d;     /* dark section background */
  --colour-espresso: #2f2a24;     /* raised dark surfaces */
  --colour-cream: #f6f1e7;        /* page background */
  --colour-parchment: #efe7d6;    /* alt light surface */
  --colour-gold: #b08d4f;         /* primary accent */
  --colour-gold-bright: #c9a86a;  /* accent on dark */
  --colour-muted: #6f665a;        /* secondary text on light */
  --colour-muted-light: #b8ab97;  /* secondary text on dark */
  --colour-line: #d9cfbd;         /* hairline dividers */

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --space-section: 7rem;
  --content-max: 1120px;
  --radius: 2px;
  --transition: 200ms ease;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--colour-ink);
  background-color: var(--colour-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Shared primitives
   Reused across sections so type and spacing stay consistent (DRY).
   ========================================================================== */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--colour-gold);
}

.eyebrow--light {
  color: var(--colour-gold-bright);
}

.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-section) 1.5rem;
}

.section__head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-top: 0.75rem;
}

/* Buttons — one component, three variants */
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition);
}

.button--solid {
  background-color: var(--colour-gold);
  color: var(--colour-cream);
}

.button--solid:hover {
  background-color: var(--colour-ink);
}

.button--outline {
  border-color: currentColor;
  background-color: transparent;
}

.button--outline:hover {
  background-color: var(--colour-ink);
  color: var(--colour-cream);
  border-color: var(--colour-ink);
}

.button--ghost {
  background-color: transparent;
  color: var(--colour-cream);
  border-color: rgba(246, 241, 231, 0.5);
}

.button--ghost:hover {
  border-color: var(--colour-cream);
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--colour-line);
}

.nav {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__links a {
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--colour-gold);
}

/* Reserve sits in the link list but reads as an outlined button on desktop. */
.nav__reserve {
  border: 1px solid var(--colour-ink);
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
  transition: background-color var(--transition), color var(--transition);
}

.nav__reserve:hover {
  background-color: var(--colour-ink);
  color: var(--colour-cream);
}

/* Hamburger toggle — hidden on desktop, shown in the mobile breakpoint. */
.nav__toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.4rem;
  height: 1.5px;
  background-color: var(--colour-ink);
  transform: translateX(-50%);
}

.nav__toggle-bar {
  top: 50%;
  translate: 0 -50%;
}

.nav__toggle-bar::before {
  top: -6px;
}

.nav__toggle-bar::after {
  top: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--colour-cream);
  background-image:
    linear-gradient(rgba(20, 17, 14, 0.55), rgba(20, 17, 14, 0.72)),
    radial-gradient(circle at 30% 20%, #3a332a, #191510 70%);
  padding: 6rem 1.5rem;
}

.hero__inner {
  max-width: 720px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.02;
  margin: 1.25rem 0 1.5rem;
}

.hero__subtitle {
  color: rgba(246, 241, 231, 0.82);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   About
   ========================================================================== */
.about__grid {
  display: grid;
  gap: 3rem;
}

.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.45;
  font-weight: 400;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
  color: var(--colour-ink);
}

.stat-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3.5rem;
  border-top: 1px solid var(--colour-line);
  padding-top: 3rem;
}

.stat {
  text-align: center;
}

.stat__figure {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--colour-gold);
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--colour-muted);
}

/* ==========================================================================
   Menu
   ========================================================================== */
.menu {
  background-color: var(--colour-parchment);
  max-width: none;
}

.menu > * {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem 4rem;
}

.dish__row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.dish__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
}

/* Dotted leader between dish name and price */
.dish__row::after {
  content: "";
  flex: 1;
  order: 1;
  border-bottom: 1px dotted var(--colour-line);
  transform: translateY(-0.25rem);
}

.dish__price {
  order: 2;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--colour-gold);
}

.dish__desc {
  color: var(--colour-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.menu__note {
  text-align: center;
  margin-top: 3.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--colour-muted);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery__tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  /* Shown while a photo loads, and left visible if its file is missing. */
  background-image: radial-gradient(circle at 40% 30%, #4a4136, #241f18);
}

.gallery__tile--tall {
  grid-row: span 2;
}

.gallery__tile--wide {
  grid-column: span 2;
}

/* The photo fills the tile; a dark gradient over it keeps the caption legible. */
.gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to top,
    rgba(20, 17, 14, 0.75),
    rgba(20, 17, 14, 0) 55%
  );
}

.gallery__caption {
  position: relative; /* sits above the image and its overlay */
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--colour-cream);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Visit — hours & location
   ========================================================================== */
.visit__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.info-card {
  border: 1px solid var(--colour-line);
  border-radius: var(--radius);
  padding: 2.5rem;
  background-color: #fff;
}

.info-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--colour-line);
  font-size: 0.95rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-address {
  font-style: normal;
  line-height: 1.9;
  color: var(--colour-muted);
}

.info-address a {
  color: var(--colour-gold);
  transition: color var(--transition);
}

.info-address a:hover {
  color: var(--colour-ink);
}

/* ==========================================================================
   Reservation
   ========================================================================== */
.reserve {
  background-color: var(--colour-charcoal);
  color: var(--colour-cream);
  padding: var(--space-section) 1.5rem;
}

.reserve__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.reserve__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.75rem 0 1rem;
}

.reserve__subtitle {
  color: var(--colour-muted-light);
  margin-bottom: 2.5rem;
}

.reserve__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--colour-muted-light);
}

.field__input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--colour-cream);
  background-color: var(--colour-espresso);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color var(--transition);
}

.field__input:focus {
  outline: none;
  border-color: var(--colour-gold-bright);
}

.field__error {
  min-height: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #e6a4a0;
}

.field__input[aria-invalid="true"] {
  border-color: #e6a4a0;
}

.reserve__submit {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.reserve__status {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.2rem;
}

.reserve__status[data-state="success"] {
  color: var(--colour-gold-bright);
}

.reserve__status[data-state="error"] {
  color: #e6a4a0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--colour-ink);
  color: var(--colour-muted-light);
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--colour-cream);
  letter-spacing: 0.06em;
}

.site-footer__line {
  margin: 0.75rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.site-footer__fine {
  font-size: 0.78rem;
  color: var(--colour-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 720px) {
  :root {
    --space-section: 4.5rem;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav__toggle {
    display: block;
  }

  /* Collapsed by default; the toggle adds --open to reveal it. */
  .nav__links {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .nav__links--open {
    max-height: 22rem;
  }

  .nav__links li {
    border-top: 1px solid var(--colour-line);
  }

  .nav__links a {
    display: block;
    padding: 1rem 0.25rem;
  }

  /* In the stacked menu the reserve item reads like the rest, not a pill. */
  .nav__reserve {
    border: none;
    border-radius: 0;
    padding: 1rem 0.25rem;
    color: var(--colour-gold);
  }

  .nav__reserve:hover {
    background-color: transparent;
    color: var(--colour-ink);
  }

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

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