/* ================================================================
   EMBER & OAK — restaurant landing page
   Learning build plan: 9 sessions x 2 hours each.
   Every section below is labelled with the DAY it belongs to so a
   beginner can follow along and build the page piece by piece.
   ================================================================ */


/* ============================================================
   DAY 1 (2 hrs) — SETUP: reset, design tokens, base typography
   Goal for today: get fonts loading, variables in place, and the
   page looking like plain (unstyled) text with the right font.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* brand colours */
  --red: #E5253D;
  --red-deep: #B5172A;
  --red-soft: #FCE5E8;

  --navy: #0A2240;
  --navy-2: #14315A;
  --navy-deep: #061528;
  --navy-soft: #E5ECF5;

  --black: #0A0A0A;
  --white: #FFFFFF;

  --neutral-100: #EDEDF0;
  --neutral-200: #DCDCE2;

  --green: #1F8A4D;

  /* text */
  --fg-1: #0A0A0A;
  --fg-2: #4A4A52;

  /* surfaces */
  --bg-2: #F7F7F8;
  --border-1: #DCDCE2;

  /* fonts */
  --font-display: 'Inter', sans-serif;      /* stand-in for the brand's display font */
  --font-serif: 'DM Serif Display', serif;  /* editorial / quote-style headings */
  --font-sans: 'Inter', sans-serif;         /* body text */

  /* shadows */
  --shadow-md: 0 4px 12px rgba(10,10,10,0.08), 0 2px 4px rgba(10,10,10,0.04);
  --shadow-lg: 0 12px 32px rgba(10,10,10,0.12), 0 4px 12px rgba(10,10,10,0.06);
  --shadow-pop: 0 16px 48px rgba(10,34,64,0.22);

  /* motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: #fff;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--red);
  display: inline-block;
}

.icon { width: 1em; height: 1em; }


/* ============================================================
   DAY 1 (continued) — PROMO STRIP + STICKY HEADER
   Realistic for 2 hrs: reset + tokens + these two small bars is
   already a good stopping point. Don't rush into the hero today.
   ============================================================ */

.promo-strip {
  background: var(--red-deep);
  color: #fff;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 24px;
  text-align: center;
}
.promo-strip__text { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.promo-strip__link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.promo-strip__link:hover { text-decoration: underline; text-underline-offset: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header .container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 4px;
  display: grid; place-items: center;
  flex: none;
}
.brand__mark svg { stroke: #fff; width: 22px; height: 22px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.brand__name span { color: var(--red); }

.nav { display: flex; align-items: center; gap: 40px; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* nav toggle button only appears on small screens — see DAY 9 JS + media query */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .12s, color .12s, transform .12s;
}
.btn:active { transform: scale(.98); }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }

.btn--ghost-white { border-color: #fff; color: #fff; background: transparent; }
.btn--ghost-white:hover { background: #fff; color: var(--navy); }

.btn--ghost-black { border-color: var(--black); color: var(--black); background: transparent; }
.btn--ghost-black:hover { background: var(--black); color: #fff; }

.btn--navy { background: var(--navy); color: #fff; border: 0; }
.btn--navy:hover { background: var(--navy-2); }

.btn--lg { height: 56px; padding: 0 32px; font-size: 14px; }


/* ============================================================
   DAY 2 (2 hrs) — HERO SECTION
   Goal: the big gradient intro with headline, sub-copy, CTA
   buttons, the "dine in / takeaway / private events" pills and
   the plate illustration with its two floating info cards.
   This section alone is a full 2-hour session.
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(115deg, var(--navy-2) 0%, var(--navy) 38%, var(--navy-deep) 78%, #020912 100%);
}
.hero__ring {
  position: absolute;
  right: -220px;
  top: -240px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.hero__ring--inner {
  right: -120px;
  top: -140px;
  width: 560px;
  height: 560px;
  border-color: rgba(255,255,255,.06);
}
.hero__accent-bar {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 6px;
  background: var(--red);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: 48px;
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; }
.hero__kicker::before { content: ""; width: 32px; height: 3px; background: var(--red); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title .dot { color: var(--red); }

.hero__subtitle {
  margin: 0;
  max-width: 520px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.25;
  color: var(--navy-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.hero__tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--navy-soft);
}
.hero__tag svg { stroke: var(--green); }

.hero__art { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1/1; justify-self: end; }
.hero__art img { width: 100%; height: 100%; }

.hero__card {
  position: absolute; left: -32px; bottom: 56px; z-index: 2;
  width: 300px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: #fff; color: var(--black);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}
.hero__card-icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: 4px;
}
.hero__card-icon svg { width: 22px; height: 22px; }
.hero__card-text { display: flex; flex-direction: column; gap: 2px; }
.hero__card-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); }
.hero__card-title { font-family: var(--font-serif); font-size: 22px; line-height: 1.1; }
.hero__card-sub { font-size: 13px; color: var(--fg-2); }

.hero__badge {
  position: absolute; right: -8px; top: 24px; z-index: 2;
  width: 116px; height: 116px;
  display: grid; place-items: center; text-align: center;
  border-radius: 50%;
  background: #fff; color: var(--navy);
  transform: rotate(-10deg);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 900; font-size: 17px; line-height: 1;
  text-transform: uppercase;
}


/* ============================================================
   DAY 3 (2 hrs) — PILLARS STRIP
   Goal: the 3-column "Cooked over oak / Seasonal / Made for the
   table" feature strip. Simple flex/grid layout — should be a
   quick, confidence-building session after yesterday's hero.
   ============================================================ */

.pillars {
  background: var(--bg-2);
  min-height: 220px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-1);
}
.pillars .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 56px 40px;
}
.pillar + .pillar { border-left: 1px solid var(--border-1); }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { padding-right: 0; }

.pillar__icon {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: 4px;
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar__body { display: flex; flex-direction: column; gap: 6px; }
.pillar__title { font-size: 18px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.pillar__text { font-size: 15px; line-height: 1.5; color: var(--fg-2); }


/* ============================================================
   DAY 4 (2 hrs) — MENU SECTION: heading + filter chips + grid
   Goal: section heading, the category filter buttons ("All",
   "Starters"...) and the empty 4-column card grid skeleton.
   Don't fill in card content yet — that's tomorrow.
   ============================================================ */

.menu {
  min-height: 940px;
  display: flex;
  align-items: center;
  background: #fff;
}
.menu .container {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.menu__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.menu__heading { display: flex; flex-direction: column; gap: 16px; }
.menu__heading .section-eyebrow { color: var(--red-deep); }
.menu__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.menu__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border-1);
  background: #fff;
  color: var(--fg-1);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--black); }
.chip.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }

.menu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 40px 24px;
}

.menu__footer { display: flex; justify-content: center; }


/* ============================================================
   DAY 5 (2 hrs) — MENU DISH CARDS
   Goal: style one full dish card (image, badge, favourite button,
   category label, title, description, price, add button), then
   reuse the same class names for the remaining three cards.
   ============================================================ */

.dish-card { display: flex; flex-direction: column; gap: 16px; }

.dish-card__media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--neutral-100);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.dish-card__media img {
  width: 86%;
  transition: transform .36s var(--ease-out);
}
.dish-card:hover .dish-card__media img { transform: scale(1.03); }

.dish-card__tag {
  position: absolute; left: 12px; top: 12px;
  height: 24px; padding: 0 10px;
  display: inline-flex; align-items: center;
  background: var(--navy); color: #fff;
  border-radius: 2px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.dish-card__tag--new { background: var(--red-deep); }

.dish-card__fav {
  position: absolute; right: 8px; top: 8px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--black);
  cursor: pointer;
}
.dish-card__fav svg { width: 20px; height: 20px; }
.dish-card__fav.is-saved svg { fill: var(--red); stroke: var(--red); }

.dish-card__body { display: flex; flex-direction: column; gap: 6px; }
.dish-card__category { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.dish-card__name { font-size: 20px; font-weight: 700; line-height: 1.25; }
.dish-card__desc { font-size: 15px; line-height: 1.5; color: var(--fg-2); }

.dish-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.dish-card__price { font-size: 20px; font-weight: 800; }
.dish-card__add {
  height: 44px; padding: 0 20px;
  border: 1px solid var(--black);
  background: transparent; color: var(--black);
  border-radius: 4px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
}
.dish-card__add:hover { background: var(--black); color: #fff; }


/* ============================================================
   DAY 6 (2 hrs) — OUR STORY SECTION
   Goal: the two-column navy section with the campfire art on the
   left and the numbered "01 / 02 / 03" timeline list on the right.
   ============================================================ */

.story {
  min-height: 820px;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
}
.story .container {
  padding-top: 104px;
  padding-bottom: 104px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 96px;
  align-items: center;
}

.story__media {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(115deg, #E5253D 0%, #B5172A 28%, #6E0D1A 55%, #2A0509 80%, #0A0203 100%);
}
.story__media img { height: 78%; width: auto; }
.story__media-caption {
  position: absolute; left: 20px; bottom: 20px;
  padding: 8px 12px;
  background: #fff; color: var(--navy);
  border-radius: 2px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}

.story__content { display: flex; flex-direction: column; gap: 28px; }
.story__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 52px);
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.story__lead { max-width: 520px; font-size: 17px; line-height: 1.55; color: var(--navy-soft); }

.timeline { display: flex; flex-direction: column; margin-top: 8px; }
.timeline__item {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.timeline__item:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.timeline__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: var(--red);
}
.timeline__title { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.timeline__text { font-size: 15px; line-height: 1.5; color: var(--navy-soft); }


/* ============================================================
   DAY 7 (2 hrs) — "THE ROOM" BENTO GALLERY
   Goal: the 4-column / 2-row CSS Grid with named grid-template-areas
   (room, dish1, dish2, events). This is the trickiest layout in the
   project — budget the full 2 hours just for this grid.
   ============================================================ */

.gallery {
  min-height: 900px;
  display: flex;
  align-items: center;
  background: #fff;
}
.gallery .container {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.gallery__heading { display: flex; flex-direction: column; gap: 16px; }
.gallery__heading .section-eyebrow { color: var(--red-deep); }
.gallery__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  grid-template-rows: repeat(2, 260px);
  grid-template-areas:
    "room room dish1 dish2"
    "room room events events";
  gap: 24px;
}

.bento__cell { position: relative; overflow: hidden; display: grid; place-items: center; }
.bento__room  { grid-area: room;  background: var(--neutral-100); }
.bento__room img { height: 92%; width: auto; }
.bento__dish1 { grid-area: dish1; background: var(--navy-soft); }
.bento__dish1 img { width: 78%; height: auto; }
.bento__dish2 { grid-area: dish2; background: var(--red-soft); }
.bento__dish2 img { width: 78%; height: auto; }

.bento__cell-caption {
  position: absolute; left: 20px; bottom: 20px;
  padding: 8px 12px;
  background: #fff; color: var(--navy);
  border-radius: 2px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}

.bento__events {
  grid-area: events;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 32px;
  background: var(--navy);
  color: #fff;
}
.bento__events-head { display: flex; flex-direction: column; gap: 10px; }
.bento__events-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.bento__events-title { font-family: var(--font-serif); font-size: 32px; line-height: 1.1; }
.bento__events-text { font-size: 15px; line-height: 1.5; color: var(--navy-soft); }
.bento__events-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bento__events-link:hover { text-decoration: underline; text-underline-offset: 6px; }


/* ============================================================
   DAY 8 (2 hrs) — RESERVATIONS SECTION + FORM
   Goal: the two-column red section with contact details on the
   left and the white booking form card on the right. Forms are
   fiddly — this is a full session on its own.
   ============================================================ */

.reserve {
  position: relative;
  min-height: 740px;
  display: flex;
  align-items: center;
  background: var(--red);
  color: #fff;
}
.reserve .container {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 96px;
  align-items: center;
}

.reserve__content { display: flex; flex-direction: column; gap: 28px; }
.reserve__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.reserve__lead { max-width: 460px; font-size: 18px; line-height: 1.5; }

.reserve__info { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.reserve__info li { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 600; }
.reserve__info svg { width: 22px; height: 22px; }

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
  padding: 40px;
  background: #fff;
  color: var(--black);
  border-radius: 4px;
  box-shadow: var(--shadow-pop);
}
.booking-form__title { grid-column: 1/-1; font-size: 24px; font-weight: 800; line-height: 1.2; }
.booking-form__field { display: flex; flex-direction: column; gap: 8px; }
.booking-form__field--full { grid-column: 1/-1; }
.booking-form label { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.booking-form input,
.booking-form select {
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  color: var(--black);
}
.booking-form input:focus,
.booking-form select:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.booking-form button[type="submit"] { grid-column: 1/-1; }
.booking-form__note { grid-column: 1/-1; margin: 0; font-size: 13px; line-height: 1.45; color: var(--fg-2); }

/* feedback message shown by script/script.js after submit — see DAY 9 */
.booking-form__success {
  grid-column: 1/-1;
  display: none;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.booking-form__success.is-visible { display: block; }


/* ============================================================
   DAY 9 (2 hrs) — FOOTER + RESPONSIVE POLISH + JS HOOKUP
   Goal: footer columns, a small mobile breakpoint so the page
   doesn't break under ~900px, and wiring up script/script.js
   (menu filter clicks, mobile nav toggle, form submit demo).
   ============================================================ */

.site-footer {
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  color: #fff;
}
.site-footer .container {
  padding-top: 80px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) repeat(3, minmax(0,1fr));
  gap: 48px;
}
.footer__about { display: flex; flex-direction: column; gap: 20px; max-width: 340px; }
.footer__about p { font-size: 15px; line-height: 1.5; color: #D4DCE8; }

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 4px; }
.footer__col span, .footer__col a { font-size: 15px; color: #D4DCE8; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  color: #D4DCE8;
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { text-decoration: underline; text-underline-offset: 4px; }


/* ================================================================
   RESPONSIVE / MOBILE (DAY 9, part 2)
   Three breakpoints: tablet (<=1100px), phone (<=760px) and
   small phone (<=420px). Rule of thumb used throughout: grids that
   were 2-4 columns on desktop drop to fewer columns, big section
   padding shrinks so phones don't scroll forever, and anything
   absolutely-positioned (the hero's floating cards) gets reined in
   so it can't push the page into horizontal scrolling.
   ================================================================ */

/* safety net: nothing on the page should ever cause sideways scroll */
html { overflow-x: hidden; }

@media (max-width: 1100px) {
  .hero .container,
  .story .container,
  .reserve .container { grid-template-columns: 1fr; }

  .hero__art { justify-self: center; margin-top: 24px; }

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

  .bento {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-template-rows: repeat(3, 220px);
    grid-template-areas:
      "room room"
      "dish1 dish2"
      "events events";
  }

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

@media (max-width: 760px) {
  .container { padding: 0 20px; }

  /* ---- header: collapse the nav into a hamburger menu ---- */
  .site-header .container { gap: 12px; }
  .brand__name { font-size: 18px; }

  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 8px 20px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open a { padding: 12px 0; width: 100%; border-top: 1px solid rgba(255,255,255,.12); }
  .nav.is-open a:first-child { border-top: 0; }
  .nav-toggle { display: block; }

  /* the header's own "Reserve a table" button is dropped to save space —
     the promo strip link and the "Visit" nav item both reach the same
     reservation section, so nothing is lost. */
  .site-header .btn--red { display: none; }

  .site-header .container { height: 72px; }
  .hero { min-height: 0; }

  /* ---- promo strip: let it wrap instead of overflowing ---- */
  .promo-strip {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 20px;
  }

  /* ---- hero: smaller type, floating cards pulled back on-screen ---- */
  .hero .container { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .hero__subtitle { font-size: 20px; }
  .hero__art { max-width: 320px; }
  .hero__card {
    left: 0;
    bottom: 16px;
    width: calc(100% - 40px);
    max-width: 280px;
    padding: 12px 16px;
  }
  .hero__badge { right: 0; top: 12px; width: 92px; height: 92px; font-size: 14px; }

  /* ---- generous desktop section padding shrinks on phones ---- */
  .pillars .container,
  .menu .container,
  .story .container,
  .gallery .container,
  .reserve .container { padding-top: 56px; padding-bottom: 56px; }

  .pillars { min-height: 0; }
  .pillars .container { grid-template-columns: 1fr; gap: 0; }
  .pillar { border-left: 0 !important; border-top: 1px solid var(--border-1); padding: 32px 0 !important; }
  .pillar:first-child { border-top: 0; }

  .menu { min-height: 0; }
  .menu__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .story { min-height: 0; }
  .story__media { height: 280px; }

  .gallery { min-height: 0; }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "room" "dish1" "dish2" "events";
    grid-template-rows: 220px 220px 220px auto;
  }

  .reserve { min-height: 0; }
  .booking-form { grid-template-columns: 1fr; padding: 24px; }

  /* ---- footer: single column, address/hours/social stack ---- */
  .site-footer { min-height: 0; }
  .site-footer .container { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__about { max-width: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 40px; }
  .hero__tags { gap: 8px; }
  .hero__actions .btn { flex: 1 1 auto; }

  .menu__title,
  .gallery__title,
  .reserve__title { font-size: 36px; }

  .booking-form { grid-template-columns: 1fr; }
}
