/* ============================================================
   YUM-YUM CAFÉ — SHARED STYLESHEET
   Mobile-first. Used by index.html and outlet.html.
   ============================================================ */

:root {
  /* Brand palette */
  --dark:        #0f0700;
  --dark2:       #1c0d00;
  --spice:       #c8600a;   /* brand orange — fills, borders, icons, large display text */
  --spice-ink:   #a04d05;   /* darker tone for SMALL text on light backgrounds (WCAG AA) */
  --spice-light: #e07a2a;   /* used on dark backgrounds only */
  --spice-pale:  #fcd9a8;
  --cream:       #fdf5ea;
  --cream2:      #f5e6cf;
  --cream3:      #ede0cc;
  --text:        #1c0d00;
  --text-muted:  #6b4f35;
  --text-light:  #9a7a5a;
  --white:       #ffffff;

  --gutter: 20px;
  --section-gap: 64px;
  --maxw: 1240px;
  --radius: 6px;

  --shadow-card:  0 1px 3px rgba(28, 13, 0, 0.07), 0 6px 16px rgba(28, 13, 0, 0.05);
  --shadow-lift:  0 10px 20px rgba(28, 13, 0, 0.10), 0 22px 48px rgba(28, 13, 0, 0.13);
}

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

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky navbar. */
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.15;
  font-weight: 700;
}

a { color: var(--spice-ink); }

/* Visible, consistent keyboard focus across the whole site. */
:focus-visible {
  outline: 3px solid var(--spice);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible { outline-color: var(--spice-pale); }

/* Skip link — first thing a keyboard user reaches. */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--spice-ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn--primary { background: var(--spice-ink); color: var(--cream); }
.btn--primary:hover { background: #8f4207; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cream2); border-color: rgba(253, 245, 234, 0.3); }
.btn--ghost:hover { border-color: var(--cream2); color: var(--cream); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--spice-ink); border-color: rgba(200, 96, 10, 0.45); }
.btn--outline:hover { background: var(--spice-ink); color: var(--cream); border-color: var(--spice-ink); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ── SECTION FURNITURE ─────────────────────────────────── */
.section { padding-block: var(--section-gap); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--spice-ink);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(30px, 5.2vw, 48px);
  margin-bottom: 14px;
  color: var(--text);
}
.section-title em { font-style: italic; color: var(--spice); }

.section-lead {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.8;
}

/* ── HEADER / NAV ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.is-stuck { box-shadow: 0 2px 20px rgba(15, 7, 0, 0.35); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* wrap lets the mobile menu panel drop onto its own full-width row */
  flex-wrap: wrap;
  gap: 16px;
  min-height: 64px;
  padding-block: 10px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--spice-light); }
.logo small {
  font-family: 'Lato', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-left: 8px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(253, 245, 234, 0.22);
  border-radius: 3px;
  color: var(--cream2);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile: the panel is collapsed until the toggle opens it. */
.nav-menu {
  display: none;
  list-style: none;
  width: 100%;
  order: 3;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
}
.nav-menu.is-open { display: flex; }

.nav-menu a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cream2);
  text-decoration: none;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(200, 96, 10, 0.16);
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--spice-light); }
.nav-menu a[aria-current="page"] { color: var(--spice-light); }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
  padding-block: 72px 76px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 72% 42%, rgba(200, 96, 10, 0.20) 0%, transparent 55%),
    radial-gradient(circle at 12% 88%, rgba(200, 96, 10, 0.10) 0%, transparent 45%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-eyebrow { color: var(--spice-light); }

.hero h1 {
  font-size: clamp(36px, 8.5vw, 68px);
  color: var(--cream);
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--spice-light); }

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--cream3);
  max-width: 50ch;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(200, 96, 10, 0.25);
}
.hero-meta-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--cream3); }
.hero-meta-item strong { color: var(--spice-pale); font-weight: 700; }
.hero-meta-item svg { width: 17px; height: 17px; color: var(--spice-light); flex-shrink: 0; }

/* ── OUTLETS ───────────────────────────────────────────── */
.outlets { background: var(--cream); }
.outlets-head { margin-bottom: 36px; }

.outlet-grid {
  display: grid;
  grid-template-columns: 1fr;          /* mobile: 1 across */
  gap: 24px;
  list-style: none;
}

.outlet-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--cream3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.outlet-card-media {
  position: relative;
  aspect-ratio: 4 / 3;   /* fixed ratio so mixed photo sizes stay tidy */
  background: var(--cream2);
  overflow: hidden;
}
.outlet-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.outlet-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.outlet-card h3 {
  font-size: 23px;
  margin-bottom: 12px;
  color: var(--text);
}

.outlet-card-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }

.outlet-meta-row { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; }
.outlet-meta-row svg {
  width: 17px; height: 17px;
  color: var(--spice);
  flex-shrink: 0;
  margin-top: 3px;
}
.outlet-meta-row address {
  font-style: normal;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

.outlet-hours { list-style: none; font-weight: 300; color: var(--text-muted); line-height: 1.65; }
/* Day left, time right — gives the times a clean right edge whatever the
   day label's length, matching the hours table on the detail page. */
.outlet-hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.outlet-hours .day { margin-right: auto; }
.outlet-hours .time { color: var(--text); font-weight: 700; }
.outlet-hours .time.is-closed { color: var(--text-muted); font-weight: 400; font-style: italic; }

/* Pushes the button to the bottom so every card's CTA lines up. */
.outlet-card .btn { margin-top: auto; }

/* ── ABOUT ─────────────────────────────────────────────── */
.about { background: var(--cream2); }
.about-inner { display: grid; gap: 34px; }
.about-body { font-size: 16px; font-weight: 300; color: var(--text-muted); line-height: 1.85; margin-top: 8px; }
.about-body + .about-body { margin-top: 16px; }
.about-signature {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--spice-ink);
  margin-top: 22px;
}

.about-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.about-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream3);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
}
/* First photo spans both columns as the anchor image. */
.about-gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.about-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ── FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: var(--cream3);
  padding-block: 48px 26px;
  border-top: 3px solid var(--spice);
}
.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(200, 96, 10, 0.18);
}
.footer-brand p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 12px;
  max-width: 34ch;
}
.footer-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--spice-light) !important;
  margin-top: 16px !important;
}
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-list a, .footer-list address {
  font-size: 14px;
  font-weight: 300;
  font-style: normal;
  color: var(--cream3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-list a:hover { color: var(--spice-light); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
}
.footer-copy { font-size: 12px; color: var(--text-light); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; }
.footer-socials a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--spice-light); }

/* ── OUTLET DETAIL PAGE ────────────────────────────────── */
.breadcrumb { background: var(--cream2); border-bottom: 1px solid var(--cream3); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding-block: 13px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--spice-ink); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--text-light); }
.breadcrumb [aria-current="page"] { font-weight: 300; }

.outlet-hero { position: relative; background: var(--dark); }
/* Height is the 16:9 equivalent (56.25vw) with a floor and a cap.
   Note: aspect-ratio + max-height would make the browser shrink the WIDTH
   back to the ratio, leaving bars either side — so set the height directly. */
.outlet-hero-media {
  position: relative;
  width: 100%;
  height: clamp(240px, 56.25vw, 460px);
  overflow: hidden;
}
.outlet-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.outlet-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 7, 0, 0.88) 0%, rgba(15, 7, 0, 0.35) 45%, rgba(15, 7, 0, 0.12) 100%);
}
.outlet-hero-caption {
  position: relative;
  margin-top: -84px;
  z-index: 2;
  padding-bottom: 26px;
  color: var(--cream);
}
.outlet-hero-caption h1 { font-size: clamp(30px, 6.5vw, 50px); color: var(--cream); margin-bottom: 8px; }
.outlet-hero-caption p { font-size: 16px; font-weight: 300; color: var(--cream3); max-width: 58ch; }

.detail-grid { display: grid; gap: 34px; }

.info-card {
  background: var(--white);
  border: 1px solid var(--cream3);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}
.info-card + .info-card { margin-top: 18px; }
.info-card h2, .info-card h3 {
  font-size: 12px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--spice-ink);
  margin-bottom: 15px;
}
.info-card address { font-style: normal; font-weight: 300; color: var(--text-muted); line-height: 1.8; font-size: 15px; }
.info-card address strong { color: var(--text); font-weight: 700; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--cream3); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table th { font-weight: 300; color: var(--text-muted); }
.hours-table td { text-align: right; font-weight: 700; color: var(--text); }
.hours-table td.is-closed { color: var(--text-muted); font-weight: 400; font-style: italic; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.contact-list a { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--text); text-decoration: none; font-weight: 400; }
.contact-list a:hover { color: var(--spice-ink); text-decoration: underline; }
.contact-list svg { width: 17px; height: 17px; color: var(--spice); flex-shrink: 0; }

.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--cream3);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream2);
  box-shadow: var(--shadow-card);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Menu placeholder */
.menu-placeholder { background: var(--cream2); }
.menu-panel {
  border: 2px dashed rgba(200, 96, 10, 0.35);
  border-radius: var(--radius);
  background: rgba(253, 245, 234, 0.7);
  padding: 40px 22px;
  text-align: center;
}
.menu-panel svg { width: 38px; height: 38px; color: var(--spice); margin-bottom: 14px; }
.menu-panel h2 { font-size: clamp(24px, 5vw, 34px); margin-bottom: 10px; }
.menu-panel p { font-size: 15px; font-weight: 300; color: var(--text-muted); max-width: 52ch; margin-inline: auto; line-height: 1.8; }

/* Other-outlets strip on the detail page */
.more-outlets { background: var(--cream); }
.more-grid { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; margin-top: 24px; }
.more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--cream3);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.more-link span { font-weight: 300; color: var(--text-muted); font-size: 13px; }
.more-link:hover { border-color: var(--spice-ink); color: var(--spice-ink); transform: translateX(3px); }

/* Error state when ?outlet= doesn't match a slug */
.not-found { text-align: center; padding-block: 80px; }
.not-found h1 { font-size: clamp(28px, 6vw, 42px); margin-bottom: 14px; }
.not-found p { color: var(--text-muted); font-weight: 300; margin-bottom: 26px; }

/* ── SCROLL REVEAL ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Without JS nothing should stay invisible. */
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   BREAKPOINTS
   ============================================================ */

/* ── Tablet: 2 cards across ────────────────────────────── */
@media (min-width: 600px) {
  :root { --gutter: 32px; --section-gap: 80px; }
  .hero { padding-block: 96px 100px; }
  .hero-ctas { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .outlet-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .about-gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .menu-panel { padding: 56px 40px; }
}

@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.2fr; gap: 40px; }
  .about-inner { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .about-gallery figure:first-child { aspect-ratio: 16 / 9; }
  .detail-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Desktop: 3 cards across, nav expands, hover lift ──── */
@media (min-width: 960px) {
  :root { --gutter: 48px; --section-gap: 96px; }

  .nav { min-height: 74px; flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    width: auto;
    order: 0;
    padding-bottom: 0;
  }
  .nav-menu a { padding: 6px 0; border-bottom: 0; }

  .outlet-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }

  .outlets-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
  .outlets-head .section-lead { max-width: 38ch; }

  .outlet-hero-caption { margin-top: -104px; padding-bottom: 34px; }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Hover lift only where there's a real pointer — never on touch. */
@media (hover: hover) and (pointer: fine) and (min-width: 960px) {
  .outlet-card:hover,
  .outlet-card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(200, 96, 10, 0.3);
  }
  .outlet-card:hover .outlet-card-media img,
  .outlet-card:focus-within .outlet-card-media img { transform: scale(1.045); }
}

@media (min-width: 1200px) {
  .hero h1 { max-width: 16ch; }
}

/* ── REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── PRINT ─────────────────────────────────────────────── */
@media print {
  .site-header, .nav-toggle, .skip-link, .more-outlets, .hero-ctas { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
