/* SoCal Kitchen Directory — draft. Plain CSS, no build step.
   Visual idea: the colored "day dot" stickers kitchens use on prep containers.
   Here each dot color means one kitchen type, used the same way on every page. */

/* Fonts are stored with the site (SIL Open Font License), so no third-party font service is called. */
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --steel: #e3e6e5;      /* page background: brushed steel */
  --sheet: #fbfbf8;      /* panels: prep-sheet paper */
  --ink: #1c2833;        /* text: marker blue-black */
  --muted: #4b5862;
  --rule: #b7bfc3;

  /* day dots = kitchen types */
  --dot-hourly: #f2bf0f;     /* yellow */
  --dot-private: #2b6cd6;    /* blue */
  --dot-truck: #d63a2a;      /* red */
  --dot-ghost: #2f9a58;      /* green */
  --dot-bakery: #ee8a1d;     /* orange */

  --sample-bg: #fbe3df;
  --sample-ink: #8f2416;
  --warn-bg: #fff3c9;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--dot-private); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--dot-private); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 68ch; }

.draft-strip {
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  padding: 6px 12px;
}

/* ---------- Header ---------- */
header.site { border-bottom: 2px solid var(--ink); background: var(--steel); }
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 28px; padding-top: 16px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.brand-dots { display: inline-flex; }
.brand-dots i { width: 14px; height: 14px; border-radius: 50%; margin-right: -4px; border: 2px solid var(--steel); }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 22px; }
nav.main a {
  font-family: var(--display); font-weight: 600; font-size: 1.12rem;
  color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent;
}
nav.main a:hover { border-bottom-color: var(--rule); }
nav.main a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5.6rem); line-height: 0.94; max-width: 17ch; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1; margin-bottom: 14px; }
h3 { font-size: 1.45rem; line-height: 1.1; margin-bottom: 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 1.2rem; max-width: 56ch; color: var(--ink); }
.muted { color: var(--muted); }

section.block { padding: 56px 0; border-bottom: 2px solid var(--ink); }
section.block:last-of-type { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  line-height: 1; padding: 13px 20px 12px; border: 2px solid var(--ink); border-radius: 3px;
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--dot-private); border-color: var(--dot-private); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--sheet); color: var(--ink); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Day dots ---------- */
.dot { display: inline-block; width: 1em; height: 1em; border-radius: 50%; flex: 0 0 auto; vertical-align: -0.12em; }
.dot.hourly  { background: var(--dot-hourly); }
.dot.private { background: var(--dot-private); }
.dot.truck   { background: var(--dot-truck); }
.dot.ghost   { background: var(--dot-ghost); }
.dot.bakery  { background: var(--dot-bakery); }
.dot.none    { background: transparent; border: 2px dashed var(--rule); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; border-bottom: 2px solid var(--ink); }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.45fr 1fr; align-items: end; } }
.hero h1 { margin-bottom: 22px; }

/* the legend: a sheet of dots, like the roll stuck to the kitchen wall */
.legend { background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; padding: 18px 20px 8px; }
.legend h2 { font-size: 1.35rem; margin-bottom: 8px; }
.legend ul { list-style: none; margin: 0; padding: 0; }
.legend li { border-top: 1px solid var(--rule); }
.legend a {
  display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: center;
  padding: 11px 0; color: var(--ink); text-decoration: none;
}
.legend a .dot { width: 30px; height: 30px; grid-row: span 2; }
.legend a strong { font-family: var(--display); font-size: 1.3rem; line-height: 1.05; }
.legend a span.small { font-size: 0.93rem; color: var(--muted); line-height: 1.3; }
.legend a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kitchen types section ---------- */
.types { display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 760px) { .types { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.type { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.type .dot { width: 40px; height: 40px; }
.type p { margin: 0 0 6px; }

/* ---------- Two-column text ---------- */
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 34px; border-top: 1px solid var(--rule); position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px;
  border: 2px solid var(--ink); border-radius: 3px; background: var(--sheet);
}

/* ---------- Counties ---------- */
.counties { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 700px) { .counties { grid-template-columns: 1fr 1fr 1fr; column-gap: 32px; } }
.counties a { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.counties strong { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.05; }
.counties span { color: var(--muted); font-size: 0.95rem; }
.counties a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.8rem; line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; max-width: 70ch; }

/* ---------- Article (guide) ---------- */
.article { max-width: 70ch; }
.article h2 { margin-top: 44px; }
.article h3 { margin-top: 26px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 14px; }
.article li { margin: 6px 0; }
.toc { background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; padding: 16px 20px; margin: 26px 0 8px; }
.toc h2 { font-size: 1.3rem; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.defs { margin: 0; }
.defs dt { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin-top: 16px; display: flex; gap: 10px; align-items: center; }
.defs dd { margin: 4px 0 0; }
.note { background: var(--sheet); border-left: 6px solid var(--dot-hourly); padding: 14px 18px; margin: 18px 0; }

/* ---------- Steps (real sequences only) ---------- */
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); counter-reset: s; }
@media (min-width: 820px) { ol.steps { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } }
ol.steps li { counter-increment: s; padding: 20px 0; border-bottom: 1px solid var(--rule); }
ol.steps li::before {
  content: counter(s); display: block; font-family: var(--display); font-weight: 700;
  font-size: 3.4rem; line-height: 1; margin-bottom: 8px; color: var(--ink);
}

.plain-list { padding-left: 22px; margin: 0 0 14px; }
.plain-list li { margin: 5px 0; }

.callout { background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; padding: 18px 20px; margin: 16px 0; }

/* ---------- Directory layout ---------- */
.banner { background: var(--warn-bg); border: 2px solid var(--ink); border-radius: 4px; padding: 12px 16px; margin: 24px 0 0; font-weight: 600; }
.page-head { padding: 36px 0 28px; }
.layout { display: grid; gap: 24px; align-items: start; padding-bottom: 40px; }
@media (min-width: 940px) { .layout { grid-template-columns: 290px 1fr; } }

.filters { background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; padding: 16px 18px; }
.filters h2 { font-size: 1.5rem; margin-bottom: 4px; }
.filters fieldset { border: 0; border-top: 1px solid var(--rule); margin: 0; padding: 12px 0 8px; }
.filters legend { font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: 0; }
.check { display: flex; gap: 9px; align-items: center; font-size: 0.98rem; margin: 6px 0; cursor: pointer; font-weight: 400; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: 0 0 auto; }
.check .dot { width: 14px; height: 14px; }
.filters input[type="search"] { width: 100%; }
@media (min-width: 560px) and (max-width: 939px) { .filters .fs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; } }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.count { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 0; }
.no-results { background: var(--sheet); border: 2px dashed var(--rule); border-radius: 4px; padding: 24px; text-align: center; color: var(--muted); }

/* ---------- Listing cards: prep tickets ---------- */
.cards { display: grid; gap: 18px; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards.three { grid-template-columns: 1fr; }
@media (min-width: 900px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px;
  padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 10px;
}
.card .dots { display: flex; gap: 6px; }
.card .dots .dot { width: 22px; height: 22px; }
.card h3 { margin: 0; font-size: 1.6rem; }
.card .where { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.97rem; border-top: 1px solid var(--rule); padding-top: 10px; }
.card dt { font-weight: 600; }
.card dd { margin: 0; }
.card ul { margin: 0; padding-left: 18px; font-size: 0.96rem; }
.card .contact { font-size: 0.95rem; border-top: 1px solid var(--rule); padding-top: 10px; overflow-wrap: anywhere; }
.card .btn { align-self: flex-start; margin-top: auto; font-size: 1.08rem; padding: 11px 16px 10px; }

.badge-sample, .badge-limited { align-self: flex-start; font-size: 0.82rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; }
.badge-sample { background: var(--sample-bg); color: var(--sample-ink); border: 1px solid var(--sample-ink); }
.badge-limited { background: var(--steel); color: var(--ink); border: 1px solid var(--rule); }

/* ---------- Forms ---------- */
.panel { background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; padding: 24px; }
form.draft-form { display: grid; gap: 16px; }
form.draft-form .two { display: grid; gap: 16px; }
@media (min-width: 700px) { form.draft-form .two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 0.97rem; margin-bottom: 5px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--rule);
  border-radius: 3px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--dot-private); outline-offset: 0; border-color: var(--ink); }
input[readonly] { background: var(--steel); }
textarea { min-height: 90px; resize: vertical; }
.form-note { background: var(--warn-bg); border: 1px solid var(--ink); border-radius: 3px; padding: 10px 12px; font-weight: 600; font-size: 0.95rem; margin: 0; }
.thanks { background: var(--sheet); border: 2px solid var(--dot-ghost); border-radius: 4px; padding: 18px; font-weight: 600; }
fieldset.plain { border: 0; padding: 0; margin: 0; }
fieldset.plain legend { font-weight: 600; font-size: 0.97rem; margin-bottom: 4px; padding: 0; }

/* ---------- Footer ---------- */
footer.site { border-top: 2px solid var(--ink); padding: 28px 0 36px; font-size: 0.93rem; color: var(--muted); }
footer.site p { margin: 4px 0; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; }
footer.site nav a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Placeholders the owner must fill in before launch */
.ph { background: var(--warn-bg); border-bottom: 2px solid var(--dot-hourly); padding: 0 3px; font-weight: 600; }
.consent { font-size: 0.92rem; color: var(--muted); margin: 0; }
.legal-meta { color: var(--muted); font-size: 0.95rem; }

.badge-verified { align-self: flex-start; font-size: 0.82rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; background: #e2f3e8; color: #1d5e36; border: 1px solid var(--dot-ghost); }
.card .source { font-size: 0.85rem; color: var(--muted); margin: 0; }
.disclaimer { background: var(--sheet); border: 2px solid var(--ink); border-left-width: 8px; border-radius: 4px; padding: 14px 18px; margin: 18px 0 0; font-size: 0.97rem; }
.disclaimer p:last-child { margin-bottom: 0; }
