/* ==========================================================================
   Jasmine Garden — Guildford
   Single-page site. Mobile-first.
   Brand colours sampled from the supplied logo: red #B3251D, charcoal #333.
   ========================================================================== */

:root {
  --red:        #B3251D;
  --red-deep:   #8E1B15;
  --red-tint:   #F7E9E7;
  --ink:        #1C1A19;
  --ink-2:      #333333;
  --ink-soft:   #574F4A;
  --cream:      #FBF7F1;
  --cream-2:    #F3EBDF;
  --line:       #E2D7C6;
  --brass:      #A8873E;
  --white:      #FFFFFF;

  --font-display: "Cormorant Garamond", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shell: 1180px;
  --gutter: 20px;
  --header-h: 66px;

  --r-sm: 2px;
  --r-md: 4px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--red); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  font-size: .9rem;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 14px;
}
.eyebrow__rule {
  width: 34px;
  height: 2px;
  background: var(--red);
  flex: none;
}
.eyebrow--light { color: var(--cream-2); }
.eyebrow--light .eyebrow__rule { background: var(--red); }
.eyebrow--centred { justify-content: center; }

.section-title {
  font-size: clamp(1.85rem, 5.2vw, 2.9rem);
  margin-bottom: .4em;
}
.section-title--sm { font-size: clamp(1.5rem, 4vw, 2rem); }
.section-title--light { color: var(--cream); }
.section-title--centred { text-align: center; }

.section-head { margin-bottom: 38px; }
.section-head--centred { text-align: center; }
.section-head--centred .section-title { margin-inline: auto; }
.section-head__note {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46ch;
}
.section-head__note--centred { margin-inline: auto; }

.measure {
  max-width: 62ch;
  text-align: center;
}

/* Aspect-ratio boxes: reserve space so images never shift the layout */
.ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--cream-2);
  border-radius: var(--r-md);
}
.ratio > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ratio--landscape { aspect-ratio: 3 / 2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: .74rem; }

.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(251,247,241,.55); }
.btn--outline-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn--cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--cream:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--centred { justify-content: center; margin-top: 36px; }

/* ==========================================================================
   1 · HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(28,26,25,.09); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 162px; height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 17px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 3.5px 0;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.primary-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(28,26,25,.1);
  padding: 10px var(--gutter) 22px;
}
.primary-nav.is-open { display: block; }

.primary-nav ul { display: flex; flex-direction: column; }
.primary-nav li { border-bottom: 1px solid var(--line); }
.primary-nav a {
  display: block;
  padding: 14px 2px;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
}
.primary-nav a:hover { color: var(--red); }
.primary-nav a[aria-current="true"] { color: var(--red); }

.nav-order { margin-top: 18px; width: 100%; }

/* ==========================================================================
   2 · HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 42px 0 58px;
  background: var(--cream);
}

.hero-grid { display: grid; gap: 32px; }

.hero h1 {
  font-size: clamp(2.1rem, 8.4vw, 3.6rem);
  margin-bottom: .32em;
}

.lede {
  font-size: 1.04rem;
  max-width: 48ch;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
}
.hero-facts li { display: flex; align-items: center; gap: 22px; }
.hero-facts li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brass);
  border-radius: 50%;
  margin-left: -13px;
}

.hero-media { position: relative; }
.hero-media .frame {
  position: absolute;
  inset: 14px -8px -12px 18px;
  border: 2px solid var(--red);
  border-radius: var(--r-md);
  z-index: 0;
}
.hero-media .ratio { position: relative; z-index: 1; }

/* ==========================================================================
   3 · INTRO
   ========================================================================== */
.intro {
  background: var(--cream-2);
  padding: 58px 0 62px;
}
.intro p {
  font-size: 1.06rem;
  margin-bottom: 0;
}
.intro .measure { margin-inline: auto; }

/* ==========================================================================
   4 · OUR CUISINE
   ========================================================================== */
.cuisine { padding: 64px 0 20px; }

.cuisine-list { display: grid; gap: 40px; }

.cuisine-card { position: relative; }
.cuisine-card__num {
  position: absolute;
  top: -14px;
  left: -4px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--red);
  background: var(--cream);
  padding: 0 12px 0 6px;
  line-height: 1;
}
.cuisine-card .ratio { margin-bottom: 18px; }
.cuisine-card .ratio > img { transition: transform .5s var(--ease); }
.cuisine-card h3 {
  font-size: 1.5rem;
  margin-bottom: .3em;
  padding-bottom: .4em;
  border-bottom: 1px solid var(--line);
}
.cuisine-card p { margin-bottom: 0; font-size: .96rem; }

@media (hover: hover) {
  .cuisine-card:hover .ratio > img { transform: scale(1.04); }
}

/* ==========================================================================
   5 · MENU BOARD
   ========================================================================== */
.menu { padding: 64px 0 70px; }

.menu-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.menu-card a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  text-decoration: none;
  background: var(--ink);
}

.menu-card__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
}
.menu-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
/* scrim so the label stays legible over any photograph */
.menu-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,17,.10) 0%, rgba(20,18,17,.26) 46%, rgba(20,18,17,.80) 100%);
}

.menu-card__label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.menu-card__label::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--red);
  margin-bottom: 9px;
  transition: width .25s var(--ease);
}

@media (hover: hover) {
  .menu-card a:hover .menu-card__media img { transform: scale(1.06); }
  .menu-card a:hover .menu-card__label::before { width: 46px; }
}
.menu-card a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ==========================================================================
   6 · ONLINE ORDERING
   ========================================================================== */
.ordering {
  background: var(--ink);
  color: var(--cream-2);
  padding: 62px 0;
}
.ordering-grid { display: grid; gap: 34px; }
.ordering-copy p { color: rgba(243,235,223,.82); max-width: 46ch; }
.ordering-media .ratio { background: #262220; }

/* ==========================================================================
   7 · ABOUT
   ========================================================================== */
.about { padding: 70px 0; }
.about-grid { display: grid; gap: 34px; }

/* ==========================================================================
   8 · APP
   ========================================================================== */
.app {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 46px 0;
}
.app-inner {
  display: grid;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.app-brand img { width: 200px; height: auto; margin-inline: auto; opacity: .92; }
.app-copy p { margin-bottom: 0; font-size: .97rem; }
.app-copy .section-title { margin-bottom: .35em; }

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 20px 8px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.store-badge:hover { background: var(--red); border-color: var(--red); }
.store-badge__icon { width: 22px; height: 22px; flex: none; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge__text small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.store-badge__text strong { font-size: .97rem; font-weight: 700; }
.store-badge--soon {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
  border-style: dashed;
  cursor: default;
}

/* ==========================================================================
   9 · OPENING HOURS
   ========================================================================== */
.hours { padding: 70px 0; }

.hours-card {
  max-width: 660px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--r-md);
  padding: 10px 22px 26px;
}

.hours-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dotted var(--line);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list__day {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--ink);
  flex: none;
}
.hours-list__dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
  min-width: 12px;
}
.hours-list__time {
  flex: none;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.hours-list .is-closed .hours-list__time,
.hours-list li.is-closed .hours-list__time { color: var(--red); font-weight: 600; }

.hours-list li.is-today { background: var(--red-tint); margin-inline: -14px; padding-inline: 14px; border-radius: var(--r-sm); }
.hours-list li.is-today .hours-list__day::after {
  content: "Today";
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  transform: translateY(-2px);
}

.hours-card__cta { margin-top: 24px; text-align: center; }

/* ==========================================================================
   10 · FIND US
   ========================================================================== */
.find {
  background: var(--cream-2);
  padding: 70px 0;
}
.find-grid { display: grid; gap: 34px; }

.find-address {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 14px;
}
.find-address strong { font-weight: 600; }
.find-tel { font-size: .97rem; margin-bottom: 1.4em; }

.find-links {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.find-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
}
.find-links a::before {
  content: "";
  width: 14px;
  height: 1.5px;
  background: var(--red);
  flex: none;
  transition: width .2s var(--ease);
}
.find-links a:hover { color: var(--red); }
.find-links a:hover::before { width: 22px; }

.map-shell {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.map-shell iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  background:
    repeating-linear-gradient(45deg, var(--cream) 0 14px, var(--white) 14px 28px);
}
.map-placeholder__pin { width: 34px; height: 34px; color: var(--red); }
.map-placeholder__text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}
.map-placeholder__note { font-size: .78rem; color: var(--ink-soft); margin: 0; max-width: 30ch; }

/* ==========================================================================
   11 · FINAL CTA
   ========================================================================== */
.final-cta {
  background: var(--red);
  color: var(--cream);
  padding: 62px 0;
  text-align: center;
}
.final-cta__inner { max-width: 48ch; margin-inline: auto; }
.final-cta p { color: rgba(251,247,241,.9); margin-bottom: 1.8em; }

/* ==========================================================================
   12 · FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(243,235,223,.78);
  padding: 54px 0 0;
  font-size: .92rem;
}
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }

.footer-logo { width: 190px; height: auto; margin-bottom: 18px; }
.site-footer address { line-height: 1.7; margin-bottom: 10px; }
.site-footer address strong { color: var(--cream); }
.footer-tel { margin: 0; }

.footer-head {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(243,235,223,.18);
}
.footer-col ul { display: grid; gap: 4px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 0;
  color: rgba(243,235,223,.82);
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-soon {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 0;
  color: rgba(243,235,223,.5);
}

.footer-base {
  border-top: 1px solid rgba(243,235,223,.16);
  padding-top: 20px;
  padding-bottom: 26px;
  display: grid;
  gap: 4px;
  font-size: .82rem;
  color: rgba(243,235,223,.6);
}
.footer-base p { margin: 0; }
.footer-base a {
  color: var(--cream);
  display: inline-block;
  padding: 3px 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 28px; }

  .cuisine-list { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cuisine-card:first-child { grid-column: span 2; }
  .cuisine-card:first-child .ratio { aspect-ratio: 3 / 2; }

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

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 40px; }
  .footer-base { grid-template-columns: 1fr auto; align-items: center; }
  .footer-base p:last-child { text-align: right; }

  .app-badges { justify-content: center; }
}

@media (min-width: 880px) {
  :root { --header-h: 76px; --gutter: 32px; }

  .brand img { width: 190px; }

  .nav-toggle { display: none; }

  .primary-nav {
    display: flex !important;
    position: static;
    align-items: center;
    gap: 26px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .primary-nav ul { flex-direction: row; align-items: center; gap: 24px; }
  .primary-nav li { border-bottom: 0; }
  .primary-nav a {
    padding: 6px 0;
    font-size: .86rem;
    font-weight: 600;
    position: relative;
  }
  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width .2s var(--ease);
  }
  .primary-nav a:hover::after,
  .primary-nav a[aria-current="true"]::after { width: 100%; }

  .nav-order { margin-top: 0; width: auto; }

  /* Hero: asymmetric editorial split */
  .hero {
    padding: 64px 0 78px;
    background: linear-gradient(90deg, var(--cream) 0%, var(--cream) 56%, var(--cream-2) 56%, var(--cream-2) 100%);
  }
  .hero-grid {
    grid-template-columns: 1.04fr .96fr;
    align-items: center;
    gap: 56px;
  }
  .hero-media .frame { inset: 20px -16px -18px 26px; }

  .intro { padding: 78px 0 82px; }

  .cuisine { padding: 86px 0 30px; }
  .cuisine-list { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .cuisine-card:first-child { grid-column: auto; }
  /* staggered, editorial */
  .cuisine-card:nth-child(2) { transform: translateY(30px); }
  .cuisine-card:nth-child(3) { transform: translateY(10px); }

  .menu { padding: 110px 0 90px; }
  .menu-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .menu-card__label { font-size: 1.3rem; left: 20px; right: 20px; bottom: 17px; }
  .section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
  .section-head--split .section-title { margin-bottom: 0; }

  .ordering { padding: 86px 0; }
  .ordering-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }

  .about { padding: 96px 0; }
  .about-grid { grid-template-columns: .95fr 1.05fr; align-items: center; gap: 56px; }

  .app { padding: 54px 0; }
  .app-inner {
    grid-template-columns: auto 1fr auto;
    text-align: left;
    gap: 36px;
  }
  .app-brand img { width: 168px; margin-inline: 0; }
  .app-badges { justify-content: flex-end; flex-wrap: nowrap; }

  .hours { padding: 96px 0; }

  .find { padding: 96px 0; }
  .find-grid { grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }

  .final-cta { padding: 86px 0; }

  .site-footer { padding-top: 70px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 50px; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 3.5rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .cuisine-card:nth-child(2),
  .cuisine-card:nth-child(3) { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .app-badges, .map-shell, .final-cta, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
