/* Nearby & Co. (ServiceDirBox template) — design system.
   Royal-blue header/brand + emerald-green "request" accent on a cool
   near-white paper — a clean digital-marketplace/directory feel, deliberately
   distinct from the warm navy+amber (PetCareBox), teal+coral (AnaGrooming),
   teal-green (MoveInServicesBox), and warm-cream (DigitalShopBox/PodStoreBox/
   CourseBox/MemberBox) palettes used on sibling SiteTurnkey verticals. */

:root {
  --sd-blue: #2454a0;
  --sd-blue-dark: #173a72;
  --sd-ink: #1b2430;
  --sd-slate: #4f5b6b;
  --sd-steel: #8391a0;
  --sd-steel-light: #cbd5e0;
  --sd-paper: #f4f7fb;
  --sd-paper-2: #e8eef6;
  --sd-white: #ffffff;
  --sd-green: #1f9d63;
  --sd-green-dark: #167a4c;
  --sd-amber: #e2a83b;
  --sd-line: rgba(255, 255, 255, 0.14);
  --sd-line-dark: rgba(27, 36, 48, 0.1);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 6px 20px rgba(27, 36, 48, 0.1);
  --shadow-lg: 0 14px 36px rgba(27, 36, 48, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--sd-ink);
  background: var(--sd-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sd-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-base);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--sd-ink);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sd-green-dark);
  margin-bottom: 10px;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--sd-slate); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section-dark { background: var(--sd-blue-dark); color: var(--sd-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--sd-white); }
.section-dark p { color: var(--sd-steel-light); }
.section-alt { background: var(--sd-paper-2); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--sd-green); color: var(--sd-white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--sd-green-dark); }

.btn-outline { background: transparent; border-color: currentColor; color: var(--sd-white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline-dark { background: transparent; border-color: var(--sd-blue); color: var(--sd-blue); }
.btn-outline-dark:hover { background: rgba(36, 84, 160, 0.06); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; min-height: 38px; font-size: 0.85rem; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sd-blue-dark);
  border-bottom: 3px solid var(--sd-green);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1160px;
  margin: 0 auto;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sd-white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--sd-green);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sd-blue-dark);
  font-weight: 900;
  flex-shrink: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--sd-steel-light);
  font-weight: 700;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--sd-white); text-decoration: none; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 2px solid var(--sd-line);
  border-radius: var(--radius);
  color: var(--sd-white);
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--sd-blue);
  border-top: 1px solid var(--sd-line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 20px;
  color: var(--sd-white);
  font-weight: 700;
  border-bottom: 1px solid var(--sd-line);
  font-size: 0.95rem;
}
.mobile-menu a:hover { text-decoration: none; background: rgba(255,255,255,0.04); }
.mobile-menu .btn { margin: 16px 20px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ── Sticky mobile CTA bar ────────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--sd-blue-dark);
  border-top: 3px solid var(--sd-green);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}
body { padding-bottom: 76px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(rgba(23,58,114,0.92), rgba(23,58,114,0.96)),
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.06) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(31,157,99,0.14) 0, transparent 50%),
    var(--sd-blue-dark);
  color: var(--sd-white);
  padding: 56px 0 64px;
}
.hero h1 { color: var(--sd-white); }
.hero p { max-width: 580px; color: var(--sd-steel-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Zip / search bar ─────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--sd-white);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  margin-top: 30px;
  max-width: 620px;
}
.search-bar select,
.search-bar input {
  flex: 1;
  min-width: 140px;
  border: none;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-base);
  color: var(--sd-ink);
  border-radius: var(--radius);
}
.search-bar select:focus,
.search-bar input:focus { outline: 2px solid var(--sd-green); }
.search-bar .btn { flex-shrink: 0; }

/* ── Cards / grids ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid-cat { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-cat { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--sd-white);
  border: 1px solid var(--sd-line-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--sd-blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sd-white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Category tile (home / directory) */
.cat-tile {
  display: block;
  background: var(--sd-white);
  border: 1px solid var(--sd-line-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--sd-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cat-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cat-tile .cat-icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.cat-tile h3 { margin-bottom: 4px; }
.cat-tile .cat-count { font-size: 0.82rem; color: var(--sd-steel); }

/* Provider card */
.provider-card {
  background: var(--sd-white);
  border: 1px solid var(--sd-line-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.provider-card .provider-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.provider-card .avatar {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--sd-paper-2);
  color: var(--sd-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.provider-card h3 { margin-bottom: 2px; }
.provider-card .provider-cat { font-size: 0.8rem; color: var(--sd-steel); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.provider-card .provider-desc { margin-top: 10px; font-size: 0.92rem; }
.provider-card .provider-meta { font-size: 0.85rem; color: var(--sd-slate); margin-top: 8px; }
.provider-card .btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sd-amber);
  color: var(--sd-blue-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-featured { position: absolute; top: -10px; right: 18px; }

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.category-tabs button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--sd-line-dark);
  background: var(--sd-white);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--sd-slate);
}
.category-tabs button.active {
  background: var(--sd-blue);
  border-color: var(--sd-blue);
  color: var(--sd-white);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--sd-ink);
}
.field .hint { font-size: 0.78rem; color: var(--sd-steel); margin-top: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--sd-line-dark);
  font-size: 16px;
  font-family: var(--font-base);
  background: var(--sd-white);
  color: var(--sd-ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sd-green);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

.form-card {
  background: var(--sd-white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
}
.form-msg { padding: 14px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 700; display: none; }
.form-msg.success { background: #e2f2ea; color: #167a4c; display: block; }
.form-msg.error { background: #fbe6e0; color: #a5321a; display: block; }
.form-msg.info { background: var(--sd-paper-2); color: var(--sd-blue-dark); display: block; }

/* ── FAQ accordion ─────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--sd-line-dark);
  padding: 18px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  gap: 12px;
}
.faq-q .plus { flex-shrink: 0; font-size: 1.3rem; color: var(--sd-green-dark); transition: transform 0.15s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; margin-top: 10px; color: var(--sd-slate); }
.faq-item.open .faq-a { display: block; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--sd-blue-dark);
  color: var(--sd-steel-light);
  padding: 48px 0 28px;
}
.site-footer h4 { color: var(--sd-white); font-size: 1rem; letter-spacing: 0.02em; }
.site-footer p { color: var(--sd-steel-light); }
.site-footer .notice { color: var(--sd-steel-light); opacity: 0.85; }
.site-footer a { color: var(--sd-steel-light); }
.site-footer a:hover { color: var(--sd-white); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom {
  border-top: 1px solid var(--sd-line);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-bottom a { margin-right: 14px; }

/* ── Trust / disclosure notice ────────────────────────────────────────── */
.notice {
  background: var(--sd-paper-2);
  border-left: 4px solid var(--sd-blue);
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--sd-slate);
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-w-prose { max-width: 680px; }
.center { margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--sd-green); color: white; padding: 12px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--sd-steel); }
