/* Maya Café v2 — Hudson Taco-inspired: dark, editorial, photo-first */

:root {
  /* Core palette — warm paper with fiesta accents */
  --bg: #f4ede0;              /* warm paper cream */
  --bg-2: #ebe1cf;            /* card surface / tan */
  --bg-3: #e1d4bc;            /* raised surface */
  --bg-dark: #1a140e;         /* espresso for dark sections */
  --ink: #1a140e;             /* espresso text */
  --ink-soft: #4a3d2d;        /* body text */
  --mute: #8a7a62;            /* meta text */
  --hairline: #d9ccb3;        /* thin border */
  --hairline-2: #c9b993;

  /* Fiesta palette — used sparingly for punctuation */
  --amber: #b8732a;           /* burnished brass (primary accent) */
  --amber-hot: #d68a3c;
  --terracotta: #c4552a;      /* warm orange-red */
  --terracotta-deep: #9a3e1c;
  --marigold: #e09a2d;         /* golden yellow */
  --sage: #5c6b41;             /* muted agave green */
  --tricolor-green: #5c6b41;
  --tricolor-red: #a6432a;
  --brick: #a6432a;            /* legacy alias */
  --brick-deep: #6f2a1a;

  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1440px;
  --gutter: 40px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  /* subtle film grain on everything */
  background-image:
    radial-gradient(1200px 600px at 50% -200px, rgba(184, 115, 42, 0.07), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0 0.24 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: auto, 180px 180px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; line-height: 1.02; }
h1 { font-size: clamp(56px, 10vw, 160px); letter-spacing: -0.03em; }
h2 { font-size: clamp(40px, 6vw, 92px); }
h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
p { text-wrap: pretty; margin: 0; }

.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }
.sans { font-family: var(--font-sans); }
.display { font-family: var(--font-display); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--amber);
  display: inline-block;
}
.eyebrow--mute { color: var(--mute); }
.rule { height: 1px; background: var(--hairline); border: none; margin: 0; }

.muted { color: var(--mute); }
.ink-soft { color: var(--ink-soft); }
.amber { color: var(--amber); }

/* Layout primitives */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 20px; } }
section { padding: 72px 0; position: relative; }
@media (max-width: 720px) { section { padding: 48px 0; } }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg), transparent 4%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 28px; }
.nav-right { justify-content: flex-end; }
.nav-links { display: flex; gap: 32px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; }
.nav-links a { color: var(--ink-soft); transition: color 0.2s; position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:1px; background: var(--amber); }

.brand-lockup {
  text-align: center;
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  font-family: var(--font-serif);
  line-height: 1;
}
.brand-lockup .seal-mark { width: 44px; height: 44px; flex: none; color: var(--ink); }
.brand-lockup .brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-lockup .word { font-size: 22px; letter-spacing: 0.04em; }
.brand-lockup .sub { font-family: var(--font-sans); font-size: 9px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--amber); font-weight: 500; }

/* Wordmark A header lockup — matches brand-book Wordmark A treatment */
.brand-lockup-wm { gap: 12px; }
.brand-lockup-wm .seal-mark { width: 40px; height: 40px; color: var(--terracotta); }
.brand-lockup-wm .wm-stack { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; }
.brand-lockup-wm .wm-flank { display: flex; align-items: center; gap: 6px; color: var(--terracotta); }
.brand-lockup-wm .wm-line { width: 22px; height: 1px; background: currentColor; display: inline-block; }
.brand-lockup-wm .wm-star { font-size: 11px; line-height: 1; margin-top: -2px; }
.brand-lockup-wm .wm-maya {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
  padding-left: 2px; /* optical centering against the letter-spacing trail */
}
.brand-lockup-wm .wm-cafe {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--terracotta);
  padding-left: 2px;
}

.nav-phone { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.12em; color: var(--mute); }
.nav-phone:hover { color: var(--ink); }

/* Mobile nav */
.hamburger { display: none; background: none; border: none; width: 28px; height: 22px; position: relative; cursor: pointer; }
.hamburger span, .hamburger::before, .hamburger::after {
  content:""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger::before { top: 0; }
.hamburger span { top: 10px; }
.hamburger::after { bottom: 0; }
.is-open .hamburger::before { transform: translateY(10px) rotate(45deg); }
.is-open .hamburger span { opacity: 0; }
.is-open .hamburger::after { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-left { justify-content: flex-start; }
  .nav-right .btn { display: none; }
  .hamburger { display: block; }
  .brand-lockup .sub { display: none; }
  .brand-lockup .seal-mark { width: 36px; height: 36px; }
  .brand-lockup .word { font-size: 19px; }
  .brand-lockup-wm .seal-mark { width: 32px; height: 32px; }
  .brand-lockup-wm .wm-maya { font-size: 22px; letter-spacing: 0.12em; }
  .brand-lockup-wm .wm-cafe { font-size: 8px; letter-spacing: 0.38em; }
  .brand-lockup-wm .wm-flank .wm-line { width: 14px; }
}
.mobile-menu {
  position: fixed; inset: 64px 0 0 0; z-index: 35;
  background: var(--bg);
  padding: 40px var(--gutter);
  display: none;
  flex-direction: column; gap: 4px;
  border-top: 1px solid var(--hairline);
}
.mobile-menu a {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-serif); font-size: 28px;
  color: var(--ink);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.is-open .mobile-menu { display: flex; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-amber { border-color: var(--amber); color: var(--amber); }
.btn-amber:hover { background: var(--amber); color: var(--bg); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-amber.btn-solid { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-amber.btn-solid:hover { background: var(--amber-hot); border-color: var(--amber-hot); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 10px; letter-spacing: 0.22em; }
.btn-lg { padding: 18px 40px; font-size: 12px; }

/* Arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--amber); font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--amber), transparent 60%);
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.arrow-link:hover { color: var(--amber-hot); gap: 18px; border-bottom-color: var(--amber-hot); }
.arrow-link::after { content: "→"; font-family: var(--font-sans); letter-spacing: 0; }

/* ===== CARDS / TILES ===== */
.tile {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4/5;
}
.tile img, .tile .bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.tile:hover img, .tile:hover .bg { transform: scale(1.04); }
.tile .bg { background-size: cover; background-position: center; }
.tile-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #ffffff;
}
.tile-label .eyebrow { color: #ffffff; margin-bottom: 8px; }
.tile-label h3 { font-size: 28px; color: #ffffff; }

/* Placeholder bg colors for photos still loading */
.ph-brick { background: linear-gradient(135deg, #4a1e14, #1a0a07); }
.ph-amber { background: linear-gradient(135deg, #6b4a1a, #2a1d0a); }
.ph-sage { background: linear-gradient(135deg, #2f3a24, #121810); }
.ph-dark { background: linear-gradient(135deg, #201a16, #0a0807); }

/* ===== PAPEL PICADO (refined) ===== */
.papel {
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14' preserveAspectRatio='none'><path d='M0 0 H60 V3 L52 3 A8 8 0 0 1 38 9 A6 6 0 0 1 30 4 A6 6 0 0 1 22 9 A8 8 0 0 1 8 3 L0 3 Z' fill='%23c4552a'/><circle cx='30' cy='2' r='0.8' fill='%23f4ede0'/><circle cx='22' cy='4' r='0.6' fill='%23f4ede0'/><circle cx='38' cy='4' r='0.6' fill='%23f4ede0'/></svg>");
  background-repeat: repeat-x;
  background-size: 60px 14px;
  background-position: center top;
  opacity: 0.85;
}

/* ===== TRICOLOR DOTS ===== */
.tricolor {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500;
}
.tricolor::before, .tricolor::after {
  content: ""; flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.tricolor .dot-g { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); display: inline-block; margin: 0 2px; }
.tricolor .dot-r { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); display: inline-block; margin: 0 2px; }
.tricolor .dot-y { width: 6px; height: 6px; border-radius: 50%; background: var(--marigold); display: inline-block; margin: 0 2px; }

/* Wax seal / est stamp */
.wax-seal {
  display: inline-grid; place-items: center;
  width: 96px; height: 96px;
  background: var(--terracotta);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-serif);
  text-align: center;
  line-height: 1;
  transform: rotate(-8deg);
  box-shadow: 0 8px 24px -8px rgba(154, 62, 28, 0.4);
  position: relative;
}
.wax-seal::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
}
.wax-seal .big { font-size: 28px; font-style: italic; }
.wax-seal .sm { font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase; font-family: var(--font-sans); margin-top: 2px; opacity: 0.9; }


input, textarea, select {
  font-family: var(--font-sans);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-2);
  color: var(--ink);
  padding: 14px 0;
  font-size: 15px;
  width: 100%;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--amber); }
label { display: block; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--hairline);
  padding: 80px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 60px;
  column-gap: 48px;
  margin-bottom: 80px;
  align-items: center;
}
.footer-grid > .f-brand { margin-right: 32px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; column-gap: 40px; }
  .footer-grid > .f-brand { margin-right: 0; }
}
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; font-weight: 500; }
footer .f-brand { display: flex; align-items: center; justify-content: center; }
footer .f-brand .footer-seal { width: 200px; height: 200px; color: var(--ink); display: block; }
footer a { color: var(--ink-soft); display: block; margin-bottom: 10px; font-size: 14px; }
footer a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute);
  flex-wrap: wrap; gap: 16px;
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.78);
  display: none; align-items: center; justify-content: center;
  padding: 40px 20px;
  backdrop-filter: blur(6px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-2);
  max-width: 480px; width: 100%;
  padding: 48px 40px;
  border: 1px solid var(--hairline-2);
  position: relative;
}
.modal h2 { font-size: 36px; margin-bottom: 8px; }
.modal .close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--mute); font-size: 24px; cursor: pointer; }
.modal-options { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
.modal-options a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  transition: padding 0.2s;
}
.modal-options a::after { content: "→"; color: var(--amber); transition: transform 0.2s; font-size: 18px; }
.modal-options a:hover { padding-left: 8px; }
.modal-options a:hover::after { transform: translateX(4px); }
.modal-options .brand-row { display: flex; align-items: center; gap: 14px; }
.modal-options .brand-ico { width: 32px; height: 32px; flex: none; }

/* ── Call-to-order modal variant ── */
.modal-call { text-align: center; padding: 56px 40px; max-width: 460px; }
.modal-call .eyebrow { display: inline-block; color: var(--amber-hot); font-family: var(--font-serif); font-style: italic; font-size: 16px; letter-spacing: 0.08em; text-transform: none; font-weight: 500; }
.modal-call h2 { font-size: clamp(40px, 6vw, 56px); line-height: 1.05; margin: 0; }
.modal-call h2 em { color: var(--marigold); font-style: italic; }
.modal-call p { margin-left: auto; margin-right: auto; }
.modal-call .modal-hours {
  margin-top: 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Phone-number display card inside the call modal */
.call-card {
  margin-top: 32px;
  padding: 28px 56px 22px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.call-card-number {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.05;
  user-select: all;
  white-space: nowrap;
}
.call-card-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--amber);
  white-space: nowrap;
}
.call-card-copy {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--mute);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.call-card-copy:hover { color: var(--ink); border-color: var(--ink); }
.call-card-copy.is-copied { color: var(--sage); border-color: var(--sage); }

/* ===== TWEAKS PANEL ===== */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 80;
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  padding: 20px;
  width: 280px;
  display: none;
  font-family: var(--font-sans);
}
.tweaks.open { display: block; }
.tweaks h5 { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; font-weight: 500; font-family: var(--font-sans); }
.tweaks .row { margin-bottom: 16px; }
.tweaks label { font-size: 10px; }
.tweaks .swatches { display: flex; gap: 8px; margin-top: 6px; }
.tweaks .sw { width: 28px; height: 28px; cursor: pointer; border: 1px solid var(--hairline-2); }
.tweaks .sw.active { outline: 2px solid var(--amber); outline-offset: 2px; }
