:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #5d9c23;
  --accent-hover: #5d9c23;
  --accent-soft: #eef2ff;
  --accent-2: #9333ea;
  --gold: #d97706;
  --diversity: #15803d;
  --diversity-soft: #dcfce7;
  --shadow: 99, 102, 241;
  --scrim: rgba(15, 23, 42, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --surface: #131a2e;
    --surface-2: #1a2238;
    --border: #262f47;
    --border-strong: #37426a;
    --text: #e7e9f4;
    --text-secondary: #aab2c8;
    --text-muted: #7c85a3;
    --accent: #8b8cf7;
    --accent-hover: #a5b4fc;
    --accent-soft: #1c2140;
    --accent-2: #c58bf2;
    --gold: #eab308;
    --diversity: #4ade80;
    --diversity-soft: #12321f;
    --shadow: 139, 140, 247;
    --scrim: rgba(2, 6, 20, 0.65);
  }
}

:root[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #131a2e;
  --surface-2: #1a2238;
  --border: #262f47;
  --border-strong: #37426a;
  --text: #e7e9f4;
  --text-secondary: #aab2c8;
  --text-muted: #7c85a3;
  --accent: #8b8cf7;
  --accent-hover: #a5b4fc;
  --accent-soft: #1c2140;
  --accent-2: #c58bf2;
  --gold: #eab308;
  --diversity: #4ade80;
  --diversity-soft: #12321f;
  --shadow: 139, 140, 247;
  --scrim: rgba(2, 6, 20, 0.65);
}





a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.container, .page { max-width: 1200px; margin: 0 auto; }
.page { padding-block: 1.5rem 3rem; }

/* Hero (landing page) */
.hero { padding: 3rem 0 2rem; text-align: center; }
@media (min-width: 768px) { .hero { padding: 5rem 0 3rem; } }
.hero-badge { display: inline-block; padding: .35rem 1rem; background: var(--accent-soft); border: 1px solid var(--border-strong); border-radius: 9999px; color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-title { font-size: 2rem; font-weight: 800; letter-spacing: -.025em; color: var(--text); margin-bottom: 1rem; line-height: 1.25;text-align: center; }
@media (min-width: 768px) { .hero-title { font-size: 2.75rem; margin-bottom: 1.25rem; } }
.hero-title span { background: linear-gradient(62deg, #5d9c23 0%, #22351e 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { max-width: 720px; margin: 0 auto; color: var(--text-muted); font-size: 12px;text-align: center; }
@media (min-width: 768px) { .hero-subtitle { font-size: 13px;text-align: center; } }

/* Category groups (landing page) */
.category-group { padding: 1.5rem 0; }
@media (min-width: 768px) { .category-group { padding: 2.5rem 0; } }
.group-header { border-bottom: 1px solid var(--border); padding-bottom: .75rem; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
@media (min-width: 640px) { .group-header { justify-content: flex-start; } }
.group-title { font-size: 20px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
@media (min-width: 768px) { .group-title { font-size: 20px; } }
.group-tag { font-size: 12px; background: var(--surface-2); padding: .2rem .6rem; border-radius: 4px; color: var(--text-secondary); font-weight: 500; }

.services-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; transition: all .25s ease; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1px 3px rgba(0,0,0,.05); text-decoration: none; }
@media (min-width: 768px) { .service-card { padding: 1.5rem; } }
.service-card:hover { border-color: #a5b4fc; transform: translateY(-3px); box-shadow: 0 10px 20px -5px rgba(var(--shadow), .18); }
.card-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.card-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.card-title { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.3; }
.card-meta {  color: var(--text-muted); margin-top: .35rem; }
.card-link { color: var(--accent); font-size: 12.5px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; margin-top: .75rem; }
.card-link:hover { color: var(--accent-hover); text-decoration: underline; }





















/* Breadcrumb */
.crumb { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--text-muted); margin-bottom: 1.25rem; flex-wrap: wrap; }
.crumb a { color: var(--text-muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb .current { color: var(--text-secondary); font-weight: 600; }

/* Category / subcategory header */
.cat-header { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.cat-heading { display: flex; gap: .9rem; align-items: flex-start; min-width: 260px; }
.cat-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.cat-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .3rem; }
@media (min-width: 768px) { .cat-title { font-size: 1.85rem; } }
.cat-desc { color: var(--text-secondary);  max-width: 46ch; }
.cat-count { display: inline-flex; align-items: baseline; gap: .4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .6rem 1rem; white-space: nowrap; }
.cat-count strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.cat-count span { color: var(--text-muted); font-size: .8125rem; }
.cat-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.btn-primary { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: .6rem 1.05rem; font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: .6rem 1.05rem; font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Search */
.search-row { margin-bottom: 1.1rem; }
.search-box { position: relative; max-width: 640px; }
.search-box svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.search-box input { width: 100%; padding: .8rem 1rem .8rem 2.6rem; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: .9375rem; outline: none; transition: border-color .15s ease, box-shadow .15s ease; font-family: inherit; }
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--shadow), .18); }

/* Chips */
.chip-row { display: flex; gap: .5rem; margin-bottom: 1.75rem; }
.chip { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-secondary); border-radius: 9999px; padding: .45rem .9rem; font-size: 11px; font-weight: 600; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Layout / filters */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 899px) { .layout { grid-template-columns: 1fr; } aside.filters { display: none; } }
aside.filters { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; position: sticky; top: 1rem; }
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.filter-head h2 { font-size: .95rem; font-weight: 700; margin: 0; }
.clear-btn { background: none; border: none; color: var(--accent); font-size: .8125rem; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; }
.clear-btn:hover { text-decoration: underline; }
.filter-group { padding-block: .9rem; border-top: 1px solid var(--border); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 .65rem; }
.opt { display: flex; align-items: center; gap: .55rem; font-size: .875rem; color: var(--text-secondary); padding: .3rem 0; cursor: pointer; }
.opt input { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.opt .count { margin-left: auto; color: var(--text-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }

/* Results */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-count { font-size: .875rem; color: var(--text-secondary); }
.results-count strong { color: var(--text); }
.mobile-filter-btn { display: none; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: .5rem .8rem; font-size: .8125rem; font-weight: 600; color: var(--text); cursor: pointer; font-family: inherit; }
@media (max-width: 899px) { .mobile-filter-btn { display: inline-flex; } }
.sort-select { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 8px; padding: .5rem .7rem; font-size: .8125rem; font-family: inherit; cursor: pointer; }

.vendor-list { display: flex; flex-direction: column; gap: .75rem; }
.vendor-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.25rem; display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.vendor-card:hover { border-color: #a5b4fc; box-shadow: 0 8px 20px -8px rgba(var(--shadow), .25); transform: translateY(-2px); }
@media (max-width: 640px) { .vendor-card { grid-template-columns: 40px 1fr; } .vendor-cta { grid-column: 1 / -1; justify-self: stretch; } }
.vendor-mark { width: 44px; height: 44px; border-radius: 9px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.vendor-main .name-row { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-bottom: .2rem; }
.vendor-main h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.subcat-tag { font-size: .6875rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: .15rem .5rem; border-radius: 5px; white-space: nowrap; }
.vendor-blurb { font-size: .84375rem; color: var(--text-secondary); margin-bottom: .5rem; max-width: 60ch; }
.vendor-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; font-size: .78125rem; color: var(--text-muted); }
.vendor-meta .rating { color: var(--gold); font-weight: 700; display: inline-flex; align-items: center; gap: .25rem; }
.vendor-meta .rating span.n { color: var(--text-muted); font-weight: 400; }
.badge { font-size: .6875rem; font-weight: 600; padding: .15rem .5rem; border-radius: 5px; background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border); }
.badge.diversity { background: var(--diversity-soft); color: var(--diversity); border-color: transparent; }
.vendor-cta { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }
.link-quiet { font-size: .78125rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.link-quiet:hover { text-decoration: underline; }

.empty { text-align: center; padding: 3rem 1.5rem; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--text-secondary); }
.empty strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: .4rem; }

/* Mobile filter drawer */
.drawer-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: var(--surface); z-index: 41; padding: 1.25rem; overflow-y: auto; box-shadow: 12px 0 32px rgba(0,0,0,.25); }
.drawer-close { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; width: 30px; height: 30px; font-size: 1rem; cursor: pointer; color: var(--text); }

/* Subcategory grid (mid-level page) */
.subcat-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 640px) { .subcat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .subcat-grid { grid-template-columns: repeat(4, 1fr); } }

/* Global category-scoped search (landing page) */
.global-search {
  display: flex;
  max-width: 640px;
  margin: 1.75rem auto 0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.global-search select {
  border: 1px solid var(--border-strong);
  border-right: none;
  background: var(--surface-2);
  color: var(--text-secondary);
  
  font-weight: 600;
  padding: 0 .7rem;
  border-radius: 10px 0 0 10px;
  max-width: 42%;
  font-family: inherit;
  cursor: pointer;
}
.global-search input[type="text"] {
  flex: 1;
  min-width: 60%;
  border: 1px solid var(--border-strong);
  border-left: none;
  border-right: none;
  background: var(--surface);
  color: var(--text);
  
  padding: 0 .9rem;
  font-family: inherit;
  outline: none;
}
.global-search input[type="text"]::placeholder { color: var(--text-muted); }
.global-search button {
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  
  padding: 0 1.3rem;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.global-search button:hover { background: var(--accent-hover); }
.global-search:focus-within { box-shadow: 0 0 0 3px rgba(var(--shadow), .18); }
.global-search select,
.global-search input[type="text"],
.global-search button { height: 46px; }

@media (max-width: 480px) {
  .global-search { flex-wrap: wrap; }
  .global-search select { flex: 1 1 100%; border-radius: 10px 10px 0 0; border-right: 1px solid var(--border-strong); }
  .global-search input[type="text"] { border-radius: 0; border-left: 1px solid var(--border-strong); border-top: none; }
  .global-search button { border-radius: 0 0 10px 10px; flex: 1 1 100%; }
}

.search-feedback {
  max-width: 640px;
  margin: 1rem auto 0;
  text-align: left;
}
.search-feedback a { color: var(--accent); font-weight: 600; text-decoration: none; }
.search-feedback a:hover { text-decoration: underline; }

.service-card.dimmed { opacity: .35; filter: grayscale(.4); }
.service-card.match-highlight { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.notice {
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: .75rem 1rem;
  
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.notice strong { color: var(--text); }

/* Vendor sign-up bar (landing page) */
.vendor-cta-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding-block: .65rem;
  text-align: center;
  font-size: .8125rem;
  color: var(--text-secondary);
}
.vendor-cta-bar a { color: var(--accent); font-weight: 700; text-decoration: none; }
.vendor-cta-bar a:hover { text-decoration: underline; }

/* Vendor sign-up form */
.form-shell { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }

.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; margin-bottom: 1.25rem; }
.form-section h2 { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; }
.form-section .section-desc { font-size: .8125rem; color: var(--text-muted); margin-bottom: 1.1rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--text-secondary); }
.field .hint { font-weight: 400; color: var(--text-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field select, .field textarea {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: .6rem .75rem;
  font-size: .875rem;
  font-family: inherit;
  outline: none;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--shadow), .15); }

.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem .75rem; }
@media (max-width: 560px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-grid label { display: flex; align-items: center; gap: .5rem; font-size: .84375rem; color: var(--text-secondary); cursor: pointer; }
.checkbox-grid input { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.checkbox-grid .empty-hint { font-size: .8125rem; color: var(--text-muted); grid-column: 1 / -1; }

.required-mark { color: #dc2626; }

.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: .9rem; margin-top: .25rem; }
.form-actions .hint { font-size: .78125rem; color: var(--text-muted); }

.preview-panel { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; }
.preview-panel h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 1rem; }
.preview-empty { font-size: .8125rem; color: var(--text-muted); text-align: center; padding: 2.5rem 0; }
.preview-panel .vendor-card { display: flex; flex-direction: column; gap: .75rem; grid-template-columns: none; }
.preview-panel .vendor-card .vendor-cta { display: none; }
.rating.new-listing { color: var(--text-muted); font-weight: 600; }

.success-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 2.75rem 2rem; text-align: center; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--diversity-soft); color: var(--diversity); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto 1.1rem; }
.success-panel h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.success-panel p { color: var(--text-secondary); font-size: .9375rem; max-width: 44ch; margin: 0 auto 1.5rem; }
.success-preview { max-width: 480px; margin: 0 auto 1.5rem; text-align: left; }

/* Vendor profile page */
.profile-header { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem; }
.profile-avatar { width: 72px; height: 72px; border-radius: 16px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.5rem; flex-shrink: 0; }
.profile-title-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.profile-title-row h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.profile-meta-row { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: .875rem; color: var(--text-secondary); }
.profile-meta-row .rating { color: var(--gold); font-weight: 700; }
.profile-meta-row .rating .n { color: var(--text-muted); font-weight: 400; }

.profile-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }

.profile-section { margin-bottom: 1.85rem; }
.profile-section h2 { font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
.profile-section p { color: var(--text-secondary); font-size: .9375rem; max-width: 70ch; }

.cert-detail-list { display: flex; flex-direction: column; gap: .65rem; }
.cert-detail { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .9rem; }
.cert-detail .badge, .cert-detail .badge.diversity { flex-shrink: 0; margin-top: .15rem; }
.cert-detail .desc { font-size: .8125rem; color: var(--text-muted); }

.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; }
.sidebar-card h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 .9rem; }
.fact-row { display: flex; justify-content: space-between; gap: .75rem; font-size: .84375rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.fact-row:first-child { border-top: none; padding-top: 0; }
.fact-row span:first-child { color: var(--text-muted); }
.fact-row span:last-child { color: var(--text); font-weight: 600; text-align: right; }

.related-grid { display: flex; flex-direction: column; gap: .75rem; }

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