/* ================================================================
   BRAND TOKENS — the ONLY place branding lives.
   Rebrand the entire site by editing the custom properties below.
   Variation B — "modern panadería-café": bright, airy, confident
   warm accent. Deliberately DISTINCT from variation A's cream
   letterpress editorial look.
   ================================================================ */
:root {
  /* client brand */
  --brand:  #c05621;   /* fresh-crust terracotta / marigold-orange */
  --accent: #b3123a;   /* pan-fiesta berry red (a real Mexican-bakery pop) */

  /* typefaces (loaded via Google Fonts <link> in each page head) */
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* warm modern surface palette — bright, not papery */
  --ink: #2a1c14;          /* deep cacao text */
  --ink-soft: #6b5a4d;     /* muted brown */
  --paper: #fffaf3;        /* warm off-white page */
  --paper-deep: #fbeee0;   /* soft wheat panel */
  --line: #eaddcd;         /* hairline */
  --white: #ffffff;
  --cream: #fff4e6;        /* warm tint for chips/wash */

  --brand-tint: #fbe8da;
  --accent-tint: #fbe0e6;
  --shadow: 0 18px 40px -22px rgba(66, 34, 16, 0.55);
  --shadow-sm: 0 8px 22px -14px rgba(66, 34, 16, 0.45);
  --radius: 20px;
}

/* ================================================================
   Base
   ================================================================ */
html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* soft warm atmosphere: two low-opacity radial glows, no grain */
  background-image:
    radial-gradient(60rem 40rem at 88% -8%, var(--brand-tint) 0%, transparent 60%),
    radial-gradient(48rem 34rem at -6% 8%, var(--accent-tint) 0%, transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

::selection { background: var(--accent); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================================================================
   Small atoms
   ================================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

/* section index number — soft filled pill, not an outlined giant */
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

.rule-dotted { border: none; border-top: 1.5px dashed var(--line); }

/* ================================================================
   Buttons — soft, rounded, lifted (no hard offset letterpress)
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.9rem 1.7rem;
  border: none;
  border-radius: 999px;
  transition: transform 160ms cubic-bezier(.34,1.56,.64,1), box-shadow 160ms ease, background 160ms ease, color 160ms ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(192, 86, 33, 0.85);
}
.btn-brand:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -12px rgba(192, 86, 33, 0.95); }
.btn-brand:active { transform: translateY(-1px); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(179, 18, 58, 0.85);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -12px rgba(179, 18, 58, 0.95); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.86rem; }

/* ================================================================
   Header / nav — floating rounded bar, translucent
   ================================================================ */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--brand-tint); }

.site-header {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark .spark {
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 1.05rem;
  line-height: 0;
  box-shadow: 0 6px 14px -6px rgba(192,86,33,.8);
}

.navlink {
  position: relative;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: color 140ms ease, background 140ms ease;
}
.navlink:hover { color: var(--ink); background: var(--brand-tint); }
.navlink.active { color: var(--brand); background: var(--brand-tint); }

/* mobile panel */
.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-panel.open { display: block; }
.nav-panel a {
  display: block;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-panel a:hover { background: var(--brand-tint); color: var(--brand); }

.hamburger { border: 1.5px solid var(--line); border-radius: 12px; padding: 0.5rem 0.65rem; background: var(--white); color: var(--ink); }
.hamburger:hover { border-color: var(--brand); color: var(--brand); }

/* ================================================================
   Hero
   ================================================================ */
.hero-display {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-display em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
/* hand-drawn underline swoosh under the accented words */
.hero-display em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.12em;
  height: 0.42em;
  background: no-repeat center/100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 17 C 45 6, 120 6, 197 14' stroke='%23b3123a' stroke-width='6' fill='none' stroke-linecap='round' opacity='0.9'/%3E%3C/svg%3E");
  z-index: -1;
}

.hero-panel {
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(120% 120% at 15% 12%, color-mix(in srgb, var(--brand) 78%, white) 0%, var(--brand) 45%, color-mix(in srgb, var(--accent) 62%, var(--brand)) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel .rays { position: absolute; inset: 0; opacity: 0.22; }

/* a soft dotted "sprinkle" texture layer for the hero panel */
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1.3px, transparent 1.4px);
  background-size: 20px 20px;
  opacity: 0.18;
  pointer-events: none;
}

.stamp { animation: spin 26s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--brand); }

/* ================================================================
   Marquee strip — thin taste-tag ribbon
   ================================================================ */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span:nth-child(even) { color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================
   Service / menu cards — soft rounded, gentle lift
   ================================================================ */
.card-service {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem 1.6rem;
  transition: transform 200ms cubic-bezier(.34,1.4,.64,1), box-shadow 200ms ease, border-color 200ms ease;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-service::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brand);
  opacity: 0;
  transition: opacity 200ms ease;
}
.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--brand-tint);
}
.card-service:hover::before { opacity: 1; }
.card-service .num {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--line);
}
.card-service .icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 1.05rem;
}
.card-service h3 { font-size: 1.28rem; font-weight: 800; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.card-service p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.6; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--brand);
  text-decoration: none;
}
.card-link:hover { color: var(--accent); gap: 0.5rem; transition: gap 140ms ease; }

/* price tag used on menu cards */
.price {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  vertical-align: middle;
}

/* ================================================================
   Testimonials — clean rounded cards, no drop-cap serif
   ================================================================ */
.quote-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.quote-card blockquote { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.6; font-weight: 500; color: var(--ink); }
.quote-card figcaption { margin-top: 1.1rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-soft); }
.quote-card figcaption::before { content: "— "; color: var(--brand); }

.stars { color: var(--brand); letter-spacing: 0.12em; font-size: 0.95rem; }

/* ================================================================
   CTA band — warm gradient, rounded inner card
   ================================================================ */
.cta-band {
  background:
    linear-gradient(120deg, var(--brand) 0%, color-mix(in srgb, var(--accent) 55%, var(--brand)) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.35) 1.3px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.16;
}
.cta-title { color: #fff; }

/* ================================================================
   Hours table & map placeholder
   ================================================================ */
.hours-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table th { font-weight: 700; }
.hours-table td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours-table tr.today { background: var(--brand-tint); }
.hours-table tr.today th, .hours-table tr.today td { color: var(--brand); font-weight: 800; }

.map-ph {
  position: relative;
  border-radius: var(--radius);
  min-height: 280px;
  overflow: hidden;
  background-color: var(--paper-deep);
  background-image:
    repeating-linear-gradient(0deg, rgba(42,28,20,0.06) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(90deg, rgba(42,28,20,0.06) 0 2px, transparent 2px 58px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -90%);
  color: var(--accent);
  filter: drop-shadow(0 6px 8px rgba(42,28,20,0.35));
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, -90%); } 50% { transform: translate(-50%, -108%); } }
.map-label {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ================================================================
   Forms
   ================================================================ */
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
  outline: none;
}

/* ================================================================
   Numbered process / about lists
   ================================================================ */
.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.step .step-num {
  flex: none;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 10px 20px -10px rgba(192,86,33,.8);
}

details.faq {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 0;
  box-shadow: var(--shadow-sm);
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.3rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding: 0 1.3rem 1.15rem; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.65; }

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
}
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark .spark { background: var(--brand); color: #fff; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--brand-tint); }
.footer-links a { display: block; padding: 0.25rem 0; font-size: 0.92rem; opacity: 0.9; }
.footer-fine { font-size: 0.78rem; opacity: 0.6; }

/* big soft wordmark at the very bottom */
.footer-ghost {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 7rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 244, 230, 0.14);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* ================================================================
   Misc
   ================================================================ */
.tick { color: var(--brand); font-weight: 800; }

.reveal { animation: rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-1 { animation-delay: 90ms; }
.reveal-2 { animation-delay: 200ms; }
.reveal-3 { animation-delay: 330ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .stamp, .marquee-track, .map-pin, .reveal { animation: none !important; }
  html { scroll-behavior: auto; }
}
