/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:           #0a0a0a;
  --surface:      #141414;
  --surface-2:    #0d0d0d;
  --border:       #1e1e1e;
  --gold:         #c9a84c;
  --gold-hover:   #dbb85e;
  --text:         #e8e8e8;
  --text-muted:   #888;
  --green:        #4ade80;
  --red:          #ef4444;
  --radius:       8px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.5);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-ui:      'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body   { background: var(--bg); color: var(--text); font-family: var(--font-ui); line-height: 1.6; }
a      { text-decoration: none; color: inherit; }
img    { display: block; max-width: 100%; }
button { font-family: var(--font-ui); cursor: pointer; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.site-logo    { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; }
.logo-accent  { color: var(--gold); }
.site-tagline { color: var(--text-muted); font-size: 0.85rem; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, #111 0%, var(--bg) 100%);
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-headline::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}
.hero-sub    { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }
.search-wrap { max-width: 560px; margin: 0 auto; }
#search-input {
  width: 100%; padding: 14px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 40px; color: var(--text);
  font-family: var(--font-ui); font-size: 1rem;
  outline: none; transition: border-color 0.2s;
}
#search-input:focus { border-color: var(--gold); }
#search-input::placeholder { color: var(--text-muted); }

/* ─── Filter Pills ───────────────────────────────────────────────────────── */
.filters-section { padding: 24px 0; border-bottom: 1px solid var(--border); }
.filter-pills    { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 8px 18px; border-radius: 40px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 0.9rem;
  transition: all 0.2s;
}
.pill:hover  { border-color: var(--gold); color: var(--gold); }
.pill.active { background: var(--gold); border-color: var(--gold); color: #0a0a0a; font-weight: 600; }

/* ─── Directory Section ──────────────────────────────────────────────────── */
.directory-section { padding: 40px 0 64px; }
.results-count     { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.empty-msg         { color: var(--text-muted); text-align: center; padding: 60px 0; }

/* ─── Card Grid ──────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* ─── Shop Card ──────────────────────────────────────────────────────────── */
.shop-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 168, 76, 0.35);
}
.card-photo-wrap { position: relative; }
.card-photo {
  width: 100%; height: 180px; object-fit: cover; background: #1a1a1a;
}
.card-photo-placeholder {
  width: 100%; height: 180px; background: #111;
  display: flex; align-items: center; justify-content: center; color: #2a2a2a;
}
.card-body   { padding: 16px; flex: 1; }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--border); }
.card-name   { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 8px; }
.card-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.star-rating { display: flex; gap: 1px; }
.star        { font-size: 0.9rem; color: var(--gold); }
.star.empty  { color: #333; }
.star.half   { color: var(--gold); opacity: 0.65; }
.rating-num  { font-weight: 600; font-size: 0.9rem; }
.review-count { color: var(--text-muted); font-size: 0.85rem; }
.card-address,
.card-phone  { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 5px; }

/* ─── Featured Badge ─────────────────────────────────────────────────────── */
.featured-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: #0a0a0a;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 4px; pointer-events: none;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 6px;
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s; border: 2px solid transparent;
}
.btn-gold         { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-gold:hover   { background: var(--gold); color: #0a0a0a; }
.btn-gold-filled  { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
.btn-gold-filled:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Lead Form Section ──────────────────────────────────────────────────── */
.lead-section {
  background: var(--surface-2); border-top: 1px solid var(--border); padding: 72px 0;
}
.section-heading {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center; margin-bottom: 8px;
}
.section-sub { color: var(--text-muted); text-align: center; margin-bottom: 40px; }
.form-card {
  max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
}
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.9rem; font-weight: 500; }
.label-opt        { color: var(--text-muted); font-weight: 400; }
.form-group input,
.form-group select {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text);
  padding: 12px 14px; font-family: var(--font-ui); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-actions  { margin-top: 24px; }
.form-error    { color: var(--red); font-size: 0.9rem; margin-top: 12px; }
.form-success  { text-align: center; padding: 40px 20px; }
.success-icon  {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); color: #0a0a0a;
  font-size: 1.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 8px; }
.form-success p  { color: var(--text-muted); }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.hidden     { display: none !important; }
.muted-text { color: var(--text-muted); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); padding: 24px 0;
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}

/* ─── Shop Page ──────────────────────────────────────────────────────────── */
.shop-hero-wrap   { position: relative; }
.shop-hero-img    { width: 100%; height: 400px; object-fit: cover; }
.shop-hero-placeholder {
  width: 100%; height: 400px; background: #111;
  display: flex; align-items: center; justify-content: center; color: #2a2a2a;
}
.shop-hero-wrap .featured-badge { top: 20px; right: 20px; font-size: 0.85rem; padding: 6px 14px; }
.shop-content     { padding: 40px 0 80px; }
.back-link        { display: inline-block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; transition: color 0.2s; }
.back-link:hover  { color: var(--gold); }
.shop-header      { margin-bottom: 32px; }
.shop-name        { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.shop-meta        { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.open-badge       { padding: 4px 14px; border-radius: 40px; font-size: 0.8rem; font-weight: 600; }
.open-badge.is-open   { background: rgba(74,222,128,.12); color: var(--green); border: 1px solid rgba(74,222,128,.3); }
.open-badge.is-closed { background: rgba(239,68,68,.1);  color: var(--red);   border: 1px solid rgba(239,68,68,.25); }
.open-badge:empty { display: none; }
.shop-details-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
@media (max-width: 700px) { .shop-details-grid { grid-template-columns: 1fr; } }
.detail-block  { margin-bottom: 24px; }
.detail-label  {
  font-family: var(--font-heading); color: var(--gold);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.detail-link   { color: var(--gold); }
.hours-table   { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 9px 0; font-size: 0.9rem;
  border-bottom: 1px solid var(--border); color: var(--text-muted);
}
.hours-table td:first-child { color: var(--text); width: 110px; }
.hours-table tr.today td    { color: var(--gold); font-weight: 600; }

/* ─── Responsive tweaks ──────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .site-tagline  { display: none; }
  .hero          { padding: 48px 0 40px; }
  .form-card     { padding: 24px 16px; }
  .shop-hero-img, .shop-hero-placeholder { height: 240px; }
}
