/* ================================================================
   BRAND TOKENS — the ONLY place branding lives.
   Panadería La Reina Imperial — Variation A
   "Traditional panadería": warm cream, pan-dulce browns, a deep
   Mexican-bakery red, and a marigold accent. Rounded, cozy, festive
   but tasteful. NOT the editorial paper/ink letterpress look.
   ================================================================ */
:root {
  /* client brand */
  --brand:  #7c1d1d;   /* deep guinda / hibiscus red */
  --accent: #e8a11c;   /* marigold / cempasúchil gold */

  /* typefaces (loaded via Google Fonts <link> in each page head) */
  --font-display: 'Yeseva One', 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;

  /* warm bakery palette — toasted crust & cream, not paper/ink */
  --ink: #3a241a;         /* dark cocoa brown (text) */
  --ink-soft: #7a5c49;    /* milky-coffee brown (muted text) */
  --paper: #fbf1df;       /* warm cream / masa */
  --paper-deep: #f4e2c4;  /* toasted crema */
  --line: #e3caa2;        /* soft caramel hairline */
  --white: #fffaf0;       /* cosen white */
  --cocoa: #4a2c1d;       /* deep concha chocolate */
  --sugar: #fff7e8;       /* dusting-sugar highlight */
  --leaf: #6a7d3a;        /* soft nopal green (tertiary) */
}

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

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* warm layered wash — soft oven glow, top-right + lower-left */
  background-image:
    radial-gradient(1200px 620px at 82% -8%, rgba(232,161,28,0.16), transparent 60%),
    radial-gradient(900px 520px at -6% 6%, rgba(124,29,29,0.08), transparent 55%);
  background-attachment: fixed;
}

/* faint flour-dust speckle over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.04;
  background-image: 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='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.08;
}

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

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ================================================================
   Small atoms
   ================================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e8a11c'%3E%3Cpath d='M12 2c1.9 0 3.2 1.3 3.8 2.9C17.7 5 19 6.3 19 8.2c0 1-.4 1.9-1 2.6.6.4 1 1.1 1 2 0 1.5-1.3 2.7-3 2.9V21a1 1 0 0 1-2 0v-1H10v1a1 1 0 0 1-2 0v-2.3c-1.7-.2-3-1.4-3-2.9 0-.9.4-1.6 1-2C5.4 10.1 5 9.2 5 8.2 5 6.3 6.3 5 8.2 4.9 8.8 3.3 10.1 2 12 2z'/%3E%3C/svg%3E");
}

/* decorative kicker rule with soft caramel gradient */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--accent);
}
.ornament::before, .ornament::after {
  content: "";
  height: 2px;
  width: clamp(2rem, 12vw, 6rem);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.section-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  user-select: none;
}

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

/* ================================================================
   Buttons — soft pill, warm drop shadow (NOT letterpress offset)
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.8rem;
  border: 2px solid transparent;
  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: var(--sugar);
  box-shadow: 0 8px 20px -8px rgba(124,29,29,0.65), inset 0 1px 0 rgba(255,255,255,0.14);
}
.btn-brand:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -8px rgba(124,29,29,0.6); }
.btn-brand:active { transform: translateY(-1px); }
.btn-ghost {
  background: var(--white);
  color: var(--cocoa);
  border-color: var(--line);
  box-shadow: 0 6px 16px -10px rgba(58,36,26,0.5);
}
.btn-ghost:hover { background: var(--paper-deep); border-color: var(--accent); transform: translateY(-3px); }
.btn-accent {
  background: var(--accent);
  color: var(--cocoa);
  box-shadow: 0 8px 20px -8px rgba(232,161,28,0.75), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -8px rgba(232,161,28,0.7); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

/* ================================================================
   Header / nav
   ================================================================ */
.topbar {
  background: var(--cocoa);
  color: var(--sugar);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}
.topbar a { color: var(--accent); text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--sugar); text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  background: rgba(251,241,223,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 18px -14px rgba(58,36,26,0.5);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark .spark {
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, var(--accent), #c9820f);
  color: var(--cocoa);
  font-size: 1.15rem; line-height: 0;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 4px 10px -4px rgba(201,130,15,0.7);
}

.navlink {
  position: relative;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
}
.navlink::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: -3px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transition: left 180ms ease, right 180ms ease;
}
.navlink:hover { color: var(--brand); }
.navlink:hover::after { left: 0; right: 0; }
.navlink.active { color: var(--brand); }
.navlink.active::after { left: 0; right: 0; background: var(--brand); }

/* 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.9rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cocoa);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-panel a:hover { background: var(--paper-deep); color: var(--brand); }

.hamburger { border: 1.5px solid var(--line); border-radius: 999px; padding: 0.5rem 0.65rem; background: var(--white); color: var(--cocoa); }
.hamburger:hover { background: var(--paper-deep); border-color: var(--accent); }

/* ================================================================
   Hero
   ================================================================ */
.hero-display {
  font-size: clamp(2.7rem, 6.6vw, 5rem);
  line-height: 1.04;
  font-weight: 400;
  color: var(--cocoa);
}
.hero-display em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}
.hero-display em::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 0.06em;
  height: 0.28em;
  background: rgba(232,161,28,0.42);
  border-radius: 4px;
  z-index: -1;
}

/* hero art panel — warm oven-glow, soft rounded, no hard offset */
.hero-panel {
  position: relative;
  border-radius: 1.75rem;
  background:
    radial-gradient(120% 100% at 50% 0%, #a83a2a 0%, var(--brand) 45%, #601313 100%);
  box-shadow: 0 30px 60px -30px rgba(96,19,19,0.75), inset 0 2px 0 rgba(255,255,255,0.12);
  overflow: hidden;
  border: 6px solid var(--sugar);
  outline: 1px solid var(--line);
}
.hero-panel .rays { position: absolute; inset: 0; opacity: 0.18; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cocoa);
  background: var(--white);
  box-shadow: 0 4px 12px -8px rgba(58,36,26,0.5);
}
.chip .dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--accent); }

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

/* ================================================================
   Marquee strip — warm ribbon
   ================================================================ */
.marquee {
  overflow: hidden;
  border-top: 3px solid var(--sugar);
  border-bottom: 3px solid var(--sugar);
  background: var(--brand);
  color: var(--sugar);
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  padding: 0.8rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================
   Service / menu cards — soft rounded, warm lift
   ================================================================ */
.card-service {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  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: 0 14px 30px -22px rgba(58,36,26,0.55);
}
.card-service:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -24px rgba(124,29,29,0.5);
  border-color: var(--accent);
}
.card-service .num {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.7;
}
.card-service .icon {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, var(--paper-deep), #e9d3aa);
  color: var(--brand);
  margin-bottom: 1.1rem;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.6), 0 6px 14px -8px rgba(124,29,29,0.4);
}
.card-service h3 { font-size: 1.5rem; margin-bottom: 0.45rem; color: var(--cocoa); }
.card-service p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.62; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.card-link:hover { color: var(--accent); border-color: var(--brand); }

/* menu-item price tag */
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 1.2rem;
  white-space: nowrap;
}

/* ================================================================
   Testimonials
   ================================================================ */
.quote-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2.6rem 1.7rem 1.6rem;
  box-shadow: 0 16px 34px -24px rgba(58,36,26,0.5);
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  left: 1.1rem;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
}
.quote-card blockquote { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.quote-card figcaption { margin-top: 1rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.quote-card figcaption::before { content: "— "; color: var(--accent); }

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

/* ================================================================
   CTA band — warm ribbon with soft dots
   ================================================================ */
.cta-band {
  background: linear-gradient(135deg, #8f2222 0%, var(--brand) 60%, #601313 100%);
  color: var(--sugar);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,247,232,0.10) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
}
.cta-band .display { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ================================================================
   Hours table & map placeholder
   ================================================================ */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.7rem 0.25rem;
  border-bottom: 2px dotted var(--line);
  font-size: 0.98rem;
}
.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 th, .hours-table tr.today td { color: var(--brand); font-weight: 800; }

.map-ph {
  position: relative;
  border-radius: 1.25rem;
  min-height: 260px;
  overflow: hidden;
  border: 6px solid var(--sugar);
  outline: 1px solid var(--line);
  background-color: var(--paper-deep);
  background-image:
    repeating-linear-gradient(0deg, rgba(124,29,29,0.07) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(90deg, rgba(124,29,29,0.07) 0 2px, transparent 2px 58px),
    repeating-linear-gradient(45deg, rgba(58,36,26,0.04) 0 1px, transparent 1px 90px);
  box-shadow: 0 18px 40px -28px rgba(58,36,26,0.55);
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -90%);
  color: var(--brand);
  filter: drop-shadow(0 4px 6px rgba(58,36,26,0.4));
  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: 0.9rem; bottom: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cocoa);
  box-shadow: 0 6px 16px -10px rgba(58,36,26,0.5);
}

/* ================================================================
   Forms
   ================================================================ */
.field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  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: 0.9rem;
  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(--accent);
  box-shadow: 0 0 0 4px rgba(232,161,28,0.18);
}

/* ================================================================
   Numbered process / faq
   ================================================================ */
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step .step-num {
  flex: none;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, var(--accent), #c9820f);
  color: var(--cocoa);
  font-family: var(--font-display);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 8px 16px -8px rgba(201,130,15,0.6);
}

details.faq {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  padding: 0;
  box-shadow: 0 12px 26px -22px rgba(58,36,26,0.5);
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cocoa);
  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(--accent); }
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.65; }

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  background: var(--cocoa);
  color: var(--paper);
  border-top: 5px solid var(--accent);
}
.site-footer .wordmark { color: var(--sugar); }
.site-footer .wordmark .spark { color: var(--cocoa); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a { display: block; padding: 0.2rem 0; font-size: 0.94rem; opacity: 0.9; }
.footer-fine { font-size: 0.78rem; opacity: 0.65; }

.footer-ghost {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,161,28,0.28);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

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

.panel-soft {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 16px 34px -26px rgba(58,36,26,0.5);
}

.reveal { animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-1 { animation-delay: 90ms; }
.reveal-2 { animation-delay: 200ms; }
.reveal-3 { animation-delay: 320ms; }
@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; }
  body { background-attachment: scroll; }
}
