/* Niche Directory Generator — single stylesheet, mobile-first.
   Brand colours are injected as CSS custom properties on :root by the generator. */

:root {
  --primary: #1f6f5c;
  --primary-dark: #14503f;
  --accent: #e6a532;
  --ink: #1a2421;
  --muted: #5d6b66;
  --surface: #f5f8f6;
  --white: #ffffff;
  --border: #e2e8e5;
  --shadow: 0 1px 2px rgba(16, 40, 33, 0.06), 0 8px 24px rgba(16, 40, 33, 0.06);
  --shadow-lg: 0 12px 40px rgba(16, 40, 33, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow);
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--primary-dark); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(230, 165, 50, 0.16), transparent 60%),
    linear-gradient(160deg, var(--surface), #ffffff 70%);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 64px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 18ch;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 28px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(31, 111, 92, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--primary-dark); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }
.bg-surface { background: var(--surface); }

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.trust .item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 18px;
  box-shadow: var(--shadow);
}
.trust .item .tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(31, 111, 92, 0.12); color: var(--primary-dark);
  display: grid; place-items: center; font-weight: 800; margin-top: 2px;
}
.trust .item p { margin: 0; font-size: 0.98rem; color: var(--ink); }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .trust { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  display: flex; flex-direction: column;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(31,111,92,0.4); }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .card-foot { margin-top: auto; padding-top: 16px; }
.card .pill {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  color: var(--primary-dark); background: rgba(31,111,92,0.08);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.card .arrow { color: var(--primary); font-weight: 700; font-size: 0.95rem; }

/* state card */
.state-card .code {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--accent);
}
.state-card .cities { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

/* ---------- Listing cards ---------- */
.listing {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
}
.listing .listing-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.listing h3 { margin: 0; font-size: 1.12rem; }
.listing .rating {
  flex: 0 0 auto; font-weight: 800; font-size: 0.92rem; color: var(--primary-dark);
  background: rgba(31,111,92,0.08); padding: 4px 10px; border-radius: 8px;
}
.listing .rating .stars { color: var(--accent); }
.listing .nap { color: var(--muted); font-size: 0.94rem; margin: 0; }
.listing .nap strong { color: var(--ink); font-weight: 600; }
.listing .placeholder-tag {
  display: inline-block; margin-top: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #8a5a00; background: rgba(230, 165, 50, 0.16);
  border: 1px dashed rgba(230,165,50,0.6);
  padding: 4px 10px; border-radius: 8px;
}
.listing .actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.listing .actions span {
  font-size: 0.85rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px;
}

/* ---------- Article ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0 0 14px;
}
.article-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.article-wrap h2 {
  font-size: 1.45rem; letter-spacing: -0.015em; margin: 38px 0 12px;
}
.article-wrap p { margin: 0 0 18px; }
.answer-box {
  background: var(--surface); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 0 0 30px; font-size: 1.06rem;
}
.takeaway {
  background: linear-gradient(160deg, rgba(31,111,92,0.06), rgba(230,165,50,0.06));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin: 34px 0;
}
.takeaway strong { color: var(--primary-dark); display: block; margin-bottom: 6px; letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.78rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.88rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }

/* ---------- Page intro ---------- */
.page-intro { padding: 40px 0 8px; }
.page-intro h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); letter-spacing: -0.025em; margin: 6px 0 14px; line-height: 1.08; }
.page-intro p { color: var(--muted); font-size: 1.12rem; max-width: 65ch; margin: 0; }

/* ---------- Related / internal links ---------- */
.related { border-top: 1px solid var(--border); margin-top: 20px; }
.linklist { display: flex; flex-wrap: wrap; gap: 10px; }
.linklist a {
  font-size: 0.92rem; font-weight: 600;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; color: var(--primary-dark);
}
.linklist a:hover { border-color: var(--primary); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #c7d3ce; padding: 54px 0 30px; margin-top: 20px;
}
.site-footer a { color: #c7d3ce; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.footer-note { font-size: 0.86rem; color: #93a39d; max-width: 46ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px;
  font-size: 0.82rem; color: #8a9b95; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
}
.disclaimer {
  background: rgba(230,165,50,0.1); border: 1px dashed rgba(230,165,50,0.5);
  color: #8a5a00; border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: 0.9rem; margin: 24px 0;
}

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* real verified listings */
.listing.listing-verified{border:1px solid var(--accent)}
.listing .verified-badge{background:var(--accent);color:#fff;font-size:.72rem;font-weight:600;padding:3px 9px;border-radius:999px;white-space:nowrap}
.listing .listing-photos{display:flex;gap:8px;margin:-2px 0 12px;overflow-x:auto}
.listing .listing-photos img{height:160px;width:auto;border-radius:8px;object-fit:cover;flex:0 0 auto}
.listing .listing-desc{color:var(--ink);font-size:.96rem;margin:0 0 8px}
.listing .nap a{color:var(--accent);text-decoration:none}
