/* =========================
   Duggan Base Theme & Reset
   ========================= */
:root {
  --brand: #A4632A;           /* Primary brand from logo (warm brown/caramel) */
  --brand-700: #8A4F1F;       /* Darker shade for hover/visited */
  --accent: #E8D2B0;          /* Accent (soft cream/beige from logo text) */
  --surface-0: #ffffff;
  --surface-50: #faf8f6;
  --surface-100: #f5f5f4;
  --border: #e5e7eb;

  --text-900: #111827;
  --text-800: #1f2937;
  --text-700: #374151;
  --text-600: #4b5563;
  --muted: #6b7280;

  --success: #16a34a;         /* VEG */
  --danger: #ef4444;          /* SPICY */

  --radius: 12px;
  --radius-sm: 8px;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  color: var(--text-800);
  background: var(--surface-50);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: "Playfair Display", "Libre Baskerville", Georgia, "Times New Roman", serif;
  color: var(--text-900);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}
p { margin: 0 0 var(--space-4); }
.small { font-size: .9rem; }
.muted { color: var(--muted); }

/* A11y utilities */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 1px, 1px);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--brand);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
  transition: top .2s;
  border-bottom-right-radius: var(--radius-sm);
}
.skip-link:focus { top: 0; }

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-12) 0;
}
.section-title {
  font-size: clamp(1.5rem, 1rem + 2vw, 2rem);
  margin-bottom: var(--space-6);
}

/* =========================
   Header & Navigation
   ========================= */
.site-header {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: center;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 40px; height: 40px; object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.brand-name {
  font-family: "Playfair Display", inherit;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 1.15rem;
}

/* Nav */
.nav {
  justify-self: center;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-0);
  cursor: pointer;
}
.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: none;
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
}
.nav-list.open { display: block; }
.nav-list li { border-top: 1px solid var(--border); }
.nav-link {
  display: block;
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  color: var(--text-800);
}
.nav-link:hover { background: var(--surface-100); }

.header-cta .btn { white-space: nowrap; }

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-list {
    display: flex !important;
    position: static;
    border: 0;
    gap: var(--space-6);
    align-items: center;
    background: transparent;
  }
  .nav-link {
    padding: var(--space-2) 0;
    position: relative;
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -8px;
    width: 0; height: 2px;
    background: var(--brand);
    transition: width .2s;
  }
  .nav-link:hover::after { width: 100%; }
}

/* =========================
   Buttons & Chips
   ========================= */
.btn {
  --btn-bg: var(--surface-0);
  --btn-fg: var(--text-800);
  --btn-bd: var(--border);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--space-5);
  border-radius: 10px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: var(--shadow-sm);
  transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-primary {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
}
.btn-primary:hover { --btn-bg: var(--brand-700); --btn-bd: var(--brand-700); }

.btn-secondary {
  --btn-bg: transparent;
  --btn-fg: var(--text-800);
  --btn-bd: var(--border);
}
.btn-lg { height: 52px; padding: 0 var(--space-6); border-radius: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5ch;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: var(--surface-100);
  color: var(--text-700);
  text-decoration: none;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .9rem;
}

/* =========================
   Hero
   ========================= */
.section-hero {
  padding: var(--space-12) 0 var(--space-12);
  background:
    radial-gradient(1200px 400px at 20% -10%, color-mix(in oklch, var(--brand) 22%, transparent), transparent 60%),
    radial-gradient(1200px 400px at 120% 10%, color-mix(in oklch, var(--accent) 35%, transparent), transparent 50%);
}
.hero-inner {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr .9fr;
  }
}
.hero-title {
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  margin-bottom: var(--space-3);
}
.hero-subtitle {
  color: var(--text-700);
  max-width: 60ch;
}
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}
.hero-logo {
  width: min(380px, 80%);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  justify-self: center;
}

/* Hero background photo with caramel overlay */
.hero-photo { position: relative; }
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg) center / cover no-repeat;
  z-index: -2;
  filter: saturate(1.1);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in oklch, var(--brand) 18%, transparent);
  z-index: -1;
}

/* Logo seal */
.seal {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--brand);
  transform: rotate(-2deg);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.seal img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* Mobile hero alignment */
@media (max-width: 899px) {
  .hero-text { text-align: center; }
  .hero-actions { justify-content: center; }
}

/* =========================
   Cards & Menu
   ========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}
.card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,0,0,.06);
  box-shadow: var(--shadow-md);
}
.card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-100);
}
.card-body {
  padding: var(--space-4);
}
.card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.card-title h3 {
  font-size: 1.05rem;
  margin: 0;
}
.price {
  font-weight: 700;
  color: var(--brand);
  background: var(--accent);
  border: 1px solid color-mix(in oklch, var(--brand) 30%, white);
  border-radius: 999px;
  padding: .2rem .55rem;
  line-height: 1;
}
.card-desc {
  color: var(--text-700);
  font-size: .95rem;
  min-height: 2.6em;
}
.badges {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4ch;
  padding: .25rem .55rem;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-100);
  color: var(--text-700);
}
.badge.veg {
  border-color: color-mix(in oklch, var(--success) 40%, white);
  background: color-mix(in oklch, var(--success) 12%, white);
  color: var(--success);
}
.badge.spicy {
  border-color: color-mix(in oklch, var(--danger) 40%, white);
  background: color-mix(in oklch, var(--danger) 12%, white);
  color: var(--danger);
}
.badge.gf {
  border-color: color-mix(in oklch, var(--accent) 35%, white);
  background: color-mix(in oklch, var(--accent) 12%, white);
  color: #92400e;
}

/* Menu controls */
.menu-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-4);
}
.select {
  height: 44px;
  padding: 0 var(--space-4);
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-0);
  color: var(--text-800);
  font-weight: 600;
}

/* Category pills (desktop primary) */
.menu-pills {
  display: none;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.pill {
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pill:hover { background: color-mix(in oklch, var(--brand) 6%, #fff); }
.pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Desktop: show pills, hide select control */
@media (min-width: 768px) {
  .menu-controls { display: none; }
  .menu-pills { display: flex; }
}

/* =========================
   Featured
   ========================= */
.section-featured {
  background: var(--surface-0);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* =========================
   Locations
   ========================= */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.location-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}
.location-name { margin-bottom: var(--space-2); }
.location-address, .location-hours { color: var(--text-700); }
.location-map {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* Responsive map embed (16:9, rounded, brand border) */
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-sm);
  background: var(--surface-100);
  margin: var(--space-4) 0;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   Contact
   ========================= */
.contact-inner {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: 1.2fr .8fr;
    align-items: start;
  }
}
.contact-list {
  list-style: none;
  padding: 0; margin: 0 0 var(--space-4);
}
.contact-list li { margin-bottom: var(--space-2); }
.integrations {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: var(--surface-50);
  border-top: 3px solid var(--brand);
}
.footer-inner {
  padding: var(--space-6) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  justify-content: space-between;
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; gap: var(--space-4);
}
.footer-links a {
  color: var(--text-700);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text-900); }

/* Footer social links */
.social-link { color: var(--brand); }
.social-link:hover { color: var(--brand-700); }

/* =========================
   Focus & Misc
   ========================= */
a, button, .btn, .chip, .select {
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .chip:focus-visible, .select:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 30%, white);
  border-color: var(--brand);
}

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

/* ===== Brand Extensions & UI Polish ===== */
:root {
  --ring: color-mix(in oklch, var(--brand) 35%, white);
}

/* Links and dish titles */
.dish-link {
  color: var(--brand);
  text-decoration: none;
}
.dish-link:hover { color: var(--brand-700); }
.dish-link:visited { color: var(--brand-700); }
.dish-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 6px;
}

/* Icons (emoji or inline SVG) */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1.1em; /* for emoji */
}
.btn .icon { margin-right: .6ch; }
.contact-list .icon { margin-right: .6ch; }
.chip .icon { margin-right: .4ch; }

/* Section title decorator */
.section-title {
  position: relative;
  padding-bottom: .35rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 56px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), color-mix(in oklch, var(--brand) 30%, var(--accent)));
}

/* Blog quick facts row */
#dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: var(--space-4);
}

/* Subtle load-in animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cards .card {
  animation: fadeSlideUp .4s ease both;
}
.cards .card:nth-child(2)  { animation-delay: .03s; }
.cards .card:nth-child(3)  { animation-delay: .06s; }
.cards .card:nth-child(4)  { animation-delay: .09s; }
.cards .card:nth-child(5)  { animation-delay: .12s; }
.cards .card:nth-child(6)  { animation-delay: .15s; }
.cards .card:nth-child(7)  { animation-delay: .18s; }
.cards .card:nth-child(8)  { animation-delay: .21s; }
.cards .card:nth-child(9)  { animation-delay: .24s; }
.cards .card:nth-child(10) { animation-delay: .27s; }
.cards .card:nth-child(11) { animation-delay: .30s; }
.cards .card:nth-child(12) { animation-delay: .33s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cards .card { animation: none !important; }
  .btn, .card { transition: none !important; }
}

/* WhatsApp Floating Action Button (mobile only) */
.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
}
.fab-whatsapp {
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand-700);
}
.fab-whatsapp:hover { background: var(--brand-700); }
@media (min-width: 768px) {
  .fab { display: none; }
}
