/* ===========================================================================
   Salsa Verdes — warm & modern Mexican
   Single stylesheet, no build step. Design tokens live in :root.
   =========================================================================== */

:root {
  /* Palette */
  --cream:          #faf4e8;
  --cream-deep:     #f2e7cf;
  --paper:          #fffdf7;
  --ink:            #241f1b;
  --ink-soft:       #574c42;
  --green:          #1f4d33;
  --green-deep:     #143724;
  --green-bright:   #2f7a4d;
  --terracotta:     #c25733;
  --terracotta-deep:#a5401f;
  --marigold:       #e3a13c;
  --line:           rgba(36, 31, 27, 0.14);
  --line-strong:    rgba(36, 31, 27, 0.26);

  /* Type */
  --font-display: "Fraunces", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --container: 1140px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(36,31,27,.06), 0 12px 30px -12px rgba(36,31,27,.22);
  --shadow-soft: 0 1px 2px rgba(36,31,27,.05), 0 18px 40px -20px rgba(36,31,27,.28);
  --header-h: 76px;
}

/* --------------------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture, iframe { display: block; max-width: 100%; }
iframe { border: 0; }
a { color: var(--terracotta-deep); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--green-deep);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: 0; }
p { max-width: 68ch; }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; border-radius: 4px; }

/* --------------------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.measure { max-width: 60ch; margin-inline: auto; }

/* Decorative Oaxacan-stripe band ------------------------------------------------ */
.pattern-band {
  height: 8px;
  background:
    repeating-linear-gradient(90deg,
      var(--terracotta) 0 14px,
      var(--marigold) 14px 28px,
      var(--green-bright) 28px 42px,
      var(--green-deep) 42px 56px);
  opacity: .9;
}

/* Announcement bar (opt-in — see the ANNOUNCEMENT block in js/main.js) ---------- */
.sv-announce {
  position: relative;
  background: var(--green-deep);
  color: #fff;
  font-size: .92rem;
  line-height: 1.4;
  animation: sv-announce-in .28s ease both;
}
.sv-announce--alert { background: var(--terracotta-deep); }
.sv-announce__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 3rem;
  text-align: center;
}
.sv-announce a {
  color: var(--marigold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sv-announce--alert a { color: #fff; }
.sv-announce a:hover { color: #fff; }
.sv-announce__close {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.sv-announce__close:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
@keyframes sv-announce-in {
  from { margin-top: -2.75rem; opacity: 0; }
  to   { margin-top: 0; opacity: 1; }
}

/* --------------------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--terracotta);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }
.btn--green { --btn-bg: var(--green); }
.btn--ghost {
  --btn-fg: var(--green-deep);
  background: transparent;
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--green-deep); background: rgba(31,77,51,.07); box-shadow: none; }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn--block { display: flex; justify-content: center; width: 100%; }

/* --------------------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(36,31,27,.4);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}
.nav { display: flex; align-items: center; gap: .4rem; }
.nav a {
  padding: .5rem .8rem;
  font-size: .96rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}
.nav a:hover { background: rgba(31,77,51,.08); color: var(--green-deep); }
.nav a[aria-current="page"] { color: var(--terracotta-deep); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--green-deep);
}
.header-phone svg { width: 16px; height: 16px; }
.header-phone:hover { color: var(--terracotta-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--green-deep); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem clamp(1.15rem, 4vw, 2.5rem) 1.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: .85rem .4rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .header-phone span { display: none; }
}

/* --------------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(227,161,60,.28), transparent 55%),
    radial-gradient(90% 80% at 8% 110%, rgba(47,122,77,.20), transparent 55%),
    var(--cream);
}
.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--green-deep); }
.hero__lede { font-size: 1.2rem; color: var(--ink-soft); margin-top: 1.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__card {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 60%, #0d2417 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.hero__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px);
}
.hero__card-mark { width: min(70%, 260px); height: auto; position: relative; z-index: 1; }

/* Photo variant — image fills the whole card frame instead of a centered logo. */
.hero__card--photo { padding: 0; }
.hero__card--photo::after { display: none; }   /* drop the diagonal texture over a photo */
.hero__card--photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fills the 4:5 frame, crops overflow — no distortion */
  object-position: center;
}

/* --------------------------------------------------------------------------- Generic pieces */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.lede { font-size: 1.15rem; color: var(--ink-soft); }

.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { display: block; margin-bottom: .8rem; }

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .99rem; }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(47,122,77,.12);
  color: var(--green);
  margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; }

/* Alternating background */
.bg-cream-deep { background: var(--cream-deep); }
.bg-paper { background: var(--paper); }

/* Split feature */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split__media {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(227,161,60,.35), transparent 60%),
    linear-gradient(160deg, #2f7a4d, var(--green-deep));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.85);
  font-family: var(--font-display);
  text-align: center;
  padding: 2rem;
}

/* Photo in a split section — drop an <img> in and it fills the frame. */
.split__photo {
  margin: 0;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-deep);
}
.split__photo--wide { aspect-ratio: 3 / 2; }   /* for landscape photos */
.split__photo--pano { aspect-ratio: 2 / 1; }   /* for wide, panoramic photos */
.split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fills the frame, crops overflow — no distortion */
  object-position: center;
  display: block;
}
/* Shown only if the image is missing / fails to load (see onerror in the HTML). */
.split__photo.is-empty {
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(227,161,60,.35), transparent 60%),
    linear-gradient(160deg, #2f7a4d, var(--green-deep));
}
.split__photo.is-empty::after { content: attr(data-empty-label); color: rgba(255,255,255,.9); }

/* Callout band */
.band {
  background: linear-gradient(165deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
  color: #fff;
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.9); }
.band .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.5); }
.band .btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}
.band__inner .stack { max-width: 54ch; }

/* Info rows (hours / contact) */
.info-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 780px) { .info-grid { grid-template-columns: 1fr; } }
.hours-table { width: 100%; border-collapse: collapse; max-width: 420px; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.hours-table th { font-weight: 500; color: var(--ink-soft); }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-closed td { color: var(--terracotta-deep); font-weight: 600; }
.hours-note { font-size: .9rem; color: var(--ink-soft); margin-top: .75rem; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.contact-list .label {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .15rem;
}
.contact-list a { font-weight: 600; text-decoration: none; font-size: 1.05rem; }

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------- Menu page */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.menu-tab {
  padding: .7rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--green-deep);
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.menu-tab:hover { background: rgba(31,77,51,.08); }
.menu-tab[aria-selected="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.menu-viewer {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.menu-viewer iframe {
  width: 100%;
  height: min(78vh, 900px);
  background: #fff;
}
@media (max-width: 640px) {
  .menu-viewer iframe { height: 62vh; }
  .menu-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.menu-viewer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
  font-size: .9rem;
  color: var(--ink-soft);
}
.menu-viewer__bar a { font-weight: 600; text-decoration: none; }
.menu-note {
  margin: 1.25rem auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------- Footer */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.82);
  font-size: .95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.footer-brand .brand__word { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.7); margin-top: .75rem; font-size: .92rem; }
.footer-list { list-style: none; padding: 0; }
.footer-list li { padding: .28rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* --------------------------------------------------------------------------- Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--green-deep); color: #fff;
  padding: .6rem 1rem; border-radius: 8px; z-index: 100;
  transition: top .16s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

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