/* =============================================================================
   styles.css — Warm-&-authentic restaurant kit theme
   Reskin a new restaurant by editing the 5 palette vars in :root, the fonts,
   and the texture accents. Everything is driven by custom properties.
   ========================================================================== */

:root {
  /* ---- Palette (mirror of data.js theme) ---- */
  --masa:       #f7ecd7;   /* warm cream base   */
  --masa-deep:  #efe0c4;   /* shaded cream      */
  --terracotta: #c2562f;   /* clay              */
  --oxblood:    #7a1f1b;   /* deep red          */
  --marigold:   #e8a33d;   /* amber accent      */
  --agave:      #5a6e4a;   /* muted green       */

  --ink:        #2c1810;   /* near-black brown text */
  --ink-soft:   #6b4f3f;   /* muted body text       */
  --line:       rgba(122,31,27,.16);

  /* ---- Type ---- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;

  /* ---- Space & form ---- */
  --r:   14px;          /* radius */
  --r-lg: 24px;
  --shadow: 0 18px 40px -18px rgba(44,24,16,.45);
  --shadow-sm: 0 6px 18px -10px rgba(44,24,16,.4);
  --maxw: 1120px;
  --header-h: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--masa);
  line-height: 1.55;
  scroll-padding-top: calc(var(--header-h) + 12px);
  /* paper grain + warm radial glow, zero image files */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(232,163,61,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(194,86,47,.12), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  letter-spacing: .01em;
  padding: .8rem 1.3rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--oxblood); color: #fff5e9; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #8c2520; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--oxblood); border-color: var(--oxblood); }
.btn-ghost:hover { background: var(--oxblood); color: #fff5e9; transform: translateY(-2px); }

/* =============================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 clamp(1rem, 4vw, 2.25rem);
  background: rgba(247,236,215,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(44,24,16,.5); }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--oxblood); letter-spacing: -.01em; }
.brand-accent { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-top: 2px; }
.header-meta { display: flex; align-items: center; gap: 1.1rem; }
.header-address { font-size: .8rem; color: var(--ink-soft); }
/* top-right "Menu" jump — one tap to the food from anywhere (stays visible on mobile) */
.header-menu-link { font-weight: 600; font-size: .92rem; color: var(--oxblood); padding: .4rem .3rem; border-bottom: 2px solid transparent; transition: border-color .15s ease; }
.header-menu-link:hover { border-color: var(--marigold); }
.header-call { padding: .55rem 1rem; font-size: .88rem; }
.btn-call { background: var(--marigold); color: var(--ink); }
.btn-call:hover { background: #f1b352; transform: translateY(-2px); }

/* =============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 2.25rem) clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.hero-eyebrow { color: var(--terracotta); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; }
.hero-eyebrow:empty { display: none; }
.hero-title { margin: .4rem 0 1rem; }
.hero-title-main {
  display: block; color: var(--oxblood);
  font-size: clamp(3.4rem, 13vw, 7rem); font-weight: 600;
  font-variation-settings: "opsz" 144; letter-spacing: -.02em;
  text-shadow: 2px 3px 0 var(--masa-deep);
}
.hero-title-sub {
  display: block; font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .34em; font-size: clamp(.7rem, 2.4vw, .95rem);
  color: var(--terracotta); margin-top: .5rem; padding-left: .34em;
}
.hero-tagline { color: var(--ink-soft); font-size: clamp(1.02rem, 2.4vw, 1.2rem); max-width: 560px; margin: 0 auto 1.4rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--masa-deep); border: 1px solid var(--line);
  padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1.6rem;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--agave); box-shadow: 0 0 0 0 rgba(90,110,74,.6); animation: pulse 2.4s infinite; }
.hero-badge.closed .dot { background: #b0463c; animation: none; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(90,110,74,.55)} 70%{box-shadow:0 0 0 8px rgba(90,110,74,0)} 100%{box-shadow:0 0 0 0 rgba(90,110,74,0)} }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* papel picado — repeating cut-paper banner via SVG mask, alternating colors */
.papel {
  position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 1;
  background:
    repeating-linear-gradient(90deg, var(--terracotta) 0 40px, var(--marigold) 40px 80px, var(--agave) 80px 120px, var(--oxblood) 120px 160px);
  -webkit-mask: var(--papel-mask); mask: var(--papel-mask);
  -webkit-mask-size: 80px 100%; mask-size: 80px 100%;
  opacity: .92;
  filter: drop-shadow(0 4px 4px rgba(44,24,16,.18));
}
:root {
  /* one scalloped flag with a punched diamond + holes; tiles horizontally */
  --papel-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='100'%3E%3Cpath d='M0 0 H80 V40 Q60 38 60 58 Q40 78 20 58 Q20 38 0 40 Z' fill='black'/%3E%3Ccircle cx='40' cy='30' r='6' fill='white'/%3E%3Ccircle cx='22' cy='22' r='3' fill='white'/%3E%3Ccircle cx='58' cy='22' r='3' fill='white'/%3E%3C/svg%3E");
}

/* =============================================================================
   SECTION SHELL
   ========================================================================== */
section { scroll-margin-top: var(--header-h); }
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem,4vw,2.25rem); text-align: center; }
.kicker { display: inline-block; font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--terracotta); font-size: 1.15rem; }
.section-head h2 { font-size: clamp(2rem, 6vw, 3.1rem); color: var(--oxblood); margin: .1rem 0 .5rem; }
.section-sub { color: var(--ink-soft); max-width: 540px; margin: 0 auto; }

/* =============================================================================
   SPECIALS
   ========================================================================== */
.specials { padding: clamp(3rem,7vw,5rem) 0; }
.specials-grid {
  max-width: var(--maxw); margin: 2.4rem auto 0; padding: 0 clamp(1rem,4vw,2.25rem);
  display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.special-card {
  position: relative; background: #fffaf0; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.special-card::before { /* talavera corner tick */
  content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--line); border-radius: calc(var(--r-lg) - 8px); pointer-events: none;
}
.special-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.special-tag { display: inline-block; background: var(--agave); color: #fff7ea; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .8rem; }
.special-card h3 { font-size: 1.55rem; color: var(--oxblood); }
.special-price { font-family: var(--font-display); font-weight: 700; color: var(--terracotta); font-size: 1.5rem; margin: .15rem 0 .6rem; }
.special-price::before { content: "$"; font-size: .8em; vertical-align: .08em; margin-right: 1px; }
.special-blurb { color: var(--ink-soft); font-size: .94rem; }

/* =============================================================================
   MENU
   ========================================================================== */
.menu { padding: clamp(3rem,7vw,5rem) 0; background:
    linear-gradient(var(--masa-deep), var(--masa-deep)) ;
  background-blend-mode: multiply; }
.menu-nav {
  max-width: var(--maxw); margin: 2rem auto 0; padding: 0 clamp(1rem,4vw,2.25rem);
  display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center;
}
.menu-nav a {
  font-weight: 600; font-size: .9rem; color: var(--oxblood);
  padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: rgba(255,255,255,.5); transition: all .18s ease;
}
.menu-nav a:hover, .menu-nav a.active { background: var(--oxblood); color: #fff5e9; border-color: var(--oxblood); }

.menu-categories { max-width: var(--maxw); margin: 2.4rem auto 0; padding: 0 clamp(1rem,4vw,2.25rem); display: grid; gap: 2.6rem; }
.menu-cat h3 {
  font-size: 1.75rem; color: var(--oxblood); margin-bottom: 1rem; position: relative;
  display: inline-block;
}
.menu-cat h3::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--marigold); border-radius: 2px; }
.menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .35rem 2.6rem; }
.menu-item { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .4rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.mi-main { min-width: 0; }
.mi-name { font-weight: 600; color: var(--ink); }
.mi-desc { display: block; font-size: .84rem; color: var(--ink-soft); margin-top: 1px; }
.mi-price { font-family: var(--font-display); font-weight: 600; color: var(--terracotta); white-space: nowrap; }
.mi-price::before { content: "$"; font-size: .82em; margin-right: 1px; }

/* =============================================================================
   LOCATION & HOURS
   ========================================================================== */
.locate { padding: clamp(3rem,7vw,5rem) 0; }
.locate-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem,4vw,2.25rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch;
}
.locate-info .kicker, .locate-info h2 { text-align: left; }
.locate-info h2 { font-size: clamp(2rem,5vw,2.8rem); color: var(--oxblood); margin: .1rem 0 1rem; }
.addr { font-style: normal; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; margin-bottom: 1.2rem; }
.locate-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hours-list { list-style: none; border-top: 1px solid var(--line); }
.hours-list li { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem .2rem; border-bottom: 1px solid var(--line); font-size: .98rem; }
.hours-list .hl-day { font-weight: 600; color: var(--ink); }
.hours-list .hl-time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours-list li.is-today { background: linear-gradient(90deg, rgba(232,163,61,.18), transparent); border-radius: 8px; padding-left: .6rem; }
.hours-list li.is-today .hl-day { color: var(--oxblood); }
.hours-list li.is-today .hl-day::after { content: " · Today"; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); }
.hours-list .hl-closed { color: #b0463c; font-weight: 600; }

.locate-map { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 340px; }
.locate-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: saturate(1.05); }

/* styled placeholder shown until a real map embed URL is added in data.js */
.map-placeholder { display: grid; place-items: center; background: var(--masa-deep); }
.map-placeholder .mp-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px;
  -webkit-mask: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
  mask: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
  opacity: .7;
}
.map-placeholder .mp-content { position: relative; text-align: center; padding: 1.5rem; }
.map-placeholder .mp-pin { width: 46px; height: 46px; fill: var(--terracotta); filter: drop-shadow(0 6px 8px rgba(122,31,27,.3)); }
.map-placeholder .mp-addr { font-weight: 600; color: var(--ink); margin: .4rem 0 1rem; line-height: 1.45; }

/* =============================================================================
   FOOTER + mobile call bar
   ========================================================================== */
.site-footer { background: var(--oxblood); color: #f3dcc4; padding: 2.6rem 1rem 5.5rem; text-align: center; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand .brand-name { color: #fff5e9; font-size: 1.6rem; }
.footer-brand .brand-accent { color: var(--marigold); display: block; margin-top: 4px; }
.socials { list-style: none; display: flex; gap: .8rem; justify-content: center; margin: 1.2rem 0; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .2s ease, transform .2s ease; }
.socials a:hover { background: var(--marigold); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: #fff5e9; }
.socials a:hover svg { fill: var(--ink); }
.footer-fine { font-size: .9rem; opacity: .85; }
.footer-credit { font-size: .78rem; opacity: .6; margin-top: .5rem; }
.version { font-variant-numeric: tabular-nums; }

.mobile-callbar { display: none; }

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .locate-grid { grid-template-columns: 1fr; }
  .locate-map { min-height: 280px; order: -1; }
}
@media (max-width: 680px) {
  .header-address { display: none; }
  .header-call span { display: none; }       /* icon-only call in header on phones */
  .header-call { padding: .55rem; }
  .menu-items { grid-template-columns: 1fr; }

  /* persistent thumb-reachable call bar on mobile */
  .mobile-callbar {
    display: flex; align-items: center; justify-content: center; gap: .55rem;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    background: var(--oxblood); color: #fff5e9; font-weight: 700;
    padding: .95rem; border-radius: 999px; box-shadow: var(--shadow);
    font-size: 1.02rem;
  }
  .mobile-callbar .ico { width: 1.15em; height: 1.15em; fill: currentColor; }
  .site-footer { padding-bottom: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
