/* Santa Fe Local Foodies — warm Southwestern palette */
:root {
  --terracotta: #c1553b;
  --terracotta-dark: #a03e27;
  --turquoise: #1f8a80;
  --turquoise-dark: #14655e;
  --sand: #f7efdd;
  --sand-dark: #ecdfc2;
  --ink: #3a2a1c;
  --ink-soft: #6b5540;
  --card: #fffdf7;
  --gold: #e9b44c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--turquoise-dark); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header {
  background: var(--terracotta);
  color: #fff;
  padding: 10px 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; }
.brand span { font-weight: 800; font-size: 1.05rem; letter-spacing: .2px; }
.site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover, .site-nav a.active { background: rgba(255,255,255,.18); }

/* hero */
.hero {
  text-align: center;
  padding: 48px 16px 40px;
  background: linear-gradient(180deg, var(--sand-dark), var(--sand));
}
.hero img.logo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.hero h1 { font-size: 2rem; margin: 16px 0 6px; }
.hero p.sub { color: var(--ink-soft); max-width: 560px; margin: 0 auto 24px; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 800; font-size: 1.05rem; padding: 14px 28px; border-radius: 999px;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 4px 14px rgba(193,85,59,.4); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-secondary { background: #fff; color: var(--ink); border: 2px solid var(--terracotta); }
.btn-secondary:hover { background: var(--sand-dark); }
.btn-turquoise { background: var(--turquoise); color: #fff; }
.btn-turquoise:hover { background: var(--turquoise-dark); }
.social-row { margin-top: 22px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: .95rem; }

/* cards & directory */
.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0;
  background: var(--card); padding: 14px; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.toolbar input[type="search"], .toolbar select {
  font-size: 1rem; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #d8c9a8; background: #fff; color: var(--ink);
}
.toolbar input[type="search"] { flex: 2 1 200px; }
.toolbar select { flex: 1 1 130px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding-bottom: 40px; }
.card {
  background: var(--card); border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07); display: flex; flex-direction: column; gap: 6px;
}
.card h3 { margin: 0; font-size: 1.15rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--terracotta); }
.meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.pill { background: var(--sand-dark); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.pill.open { background: #dff0e3; color: #1e6b34; }
.pill.shut { background: #f3ddd6; color: #8a3a24; }
.card .addr { font-size: .92rem; }
.map-links { display: flex; gap: 10px; margin-top: 4px; font-size: .9rem; font-weight: 600; }

/* detail */
.detail { background: var(--card); border-radius: 14px; padding: 24px; margin: 24px 0; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.hours-table { border-collapse: collapse; margin: 8px 0; font-size: .95rem; }
.hours-table td { padding: 3px 14px 3px 0; }
.hours-table td:first-child { font-weight: 700; text-transform: capitalize; color: var(--ink-soft); }

/* reviews */
.review { border-top: 1px solid var(--sand-dark); padding: 12px 0; }
.review .stars { color: var(--gold); letter-spacing: 2px; }
.review .by { font-size: .85rem; color: var(--ink-soft); }

/* forms */
.form-card { background: var(--card); border-radius: 14px; padding: 24px; margin: 24px 0; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
label { display: block; font-weight: 700; margin: 14px 0 4px; }
input[type="text"], input[type="tel"], input[type="url"], input[type="password"],
textarea, select {
  width: 100%; font-size: 1rem; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #d8c9a8; background: #fff; color: var(--ink); font-family: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--ink-soft); }
.success { background: #dff0e3; border-radius: 10px; padding: 14px; margin-top: 16px; color: #1e6b34; font-weight: 600; }
.error { background: #f3ddd6; border-radius: 10px; padding: 14px; margin-top: 16px; color: #8a3a24; font-weight: 600; }

/* roulette */
.roulette-wrap { text-align: center; padding: 20px 0 40px; }
.wheel-stage { position: relative; width: min(92vw, 460px); aspect-ratio: 1; margin: 18px auto; }
#wheel { width: 100%; height: 100%; display: block; }
#hubSpin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 30%; aspect-ratio: 1; border-radius: 50%; border: 4px solid #fff;
  background: var(--terracotta); color: #fff; font-weight: 900; font-size: clamp(1rem, 4.5vw, 1.4rem);
  cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.35); letter-spacing: 1px;
}
#hubSpin:hover:not(:disabled) { background: var(--terracotta-dark); }
#hubSpin:disabled { opacity: .55; cursor: default; }
.preview-banner {
  background: #fff3d6; border: 2px dashed var(--gold); color: #7a5b16;
  border-radius: 12px; padding: 12px 16px; margin: 0 auto 8px; max-width: 560px; font-weight: 600;
}
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(40,20,10,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100;
}
.modal {
  background: var(--card); border-radius: 18px; padding: 28px; max-width: 440px; width: 100%;
  text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.35);
  animation: pop .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h2 { margin: 0 0 4px; font-size: 1.6rem; }
.modal .winner-label { text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; color: var(--terracotta); font-weight: 800; }
.modal .btn-row { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .modal { animation: none; } }

/* admin */
.queue-item { background: #fff; border: 1px solid var(--sand-dark); border-radius: 10px; padding: 14px; margin: 10px 0; }
.queue-item .actions { display: flex; gap: 10px; margin-top: 10px; }
.btn-approve { background: #2e7d32; color: #fff; border: 0; border-radius: 8px; padding: 8px 18px; font-weight: 700; cursor: pointer; }
.btn-reject { background: #b0a48c; color: #fff; border: 0; border-radius: 8px; padding: 8px 18px; font-weight: 700; cursor: pointer; }
pre.raw { white-space: pre-wrap; font-size: .85rem; background: var(--sand); padding: 10px; border-radius: 8px; }

footer { text-align: center; color: var(--ink-soft); font-size: .88rem; padding: 28px 16px 40px; }
footer a { margin: 0 8px; }

/* contact form honeypot — off-screen for humans, visible to naive bots */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
