/* The Local Home Pros — Pick Your Project landing page
   Design system adapted from dentalsbest, retuned for TLHP brand
   (vibrant green + charcoal, family-friendly).
*/

:root {
  /* Brand palette — Bootstrap-primary blue, matches the current production site */
  --c-brand:        #0d6efd;
  --c-brand-dark:   #0a58ca;
  --c-brand-soft:   #e7f1ff;
  --c-brand-tint:   #9ec5fe;

  --c-ink:          #1f2937;
  --c-text:         #334155;
  --c-muted:        #64748b;
  --c-surface:      #ffffff;
  --c-surface-warm: #fafafa;
  --c-surface-2:    #f8fafc;
  --c-surface-3:    #f1f5f9;
  --c-border:       #e5e7eb;
  --c-border-strong:#cbd5e1;

  /* Type */
  --f-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, sans-serif;

  /* Radius */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm:    0 1px 2px rgb(15 23 42 / 0.04), 0 1px 3px rgb(15 23 42 / 0.06);
  --shadow-md:    0 8px 20px -6px rgb(15 23 42 / 0.10), 0 3px 8px rgb(15 23 42 / 0.06);
  --shadow-lg:    0 20px 50px -12px rgb(15 23 42 / 0.16), 0 8px 16px rgb(15 23 42 / 0.06);
  --shadow-brand: 0 12px 28px -8px rgb(13 110 253 / 0.40);

  /* Layout */
  --max-w-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--c-ink); }
a:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--f-heading);
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.125rem, 1.5rem + 3.2vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 800; margin-top: 0; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); font-weight: 700; }
p  { margin: 0 0 1em; }

.container { max-width: var(--max-w-content); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============== Header ============== */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  max-width: var(--max-w-content); margin: 0 auto;
}
.site-header__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 36px; width: auto; }
.site-header__cta { margin-left: auto; }

/* ============== Hero ============== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 72px);
  background-color: var(--c-surface-warm);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("/assets/images/background.jpg");
  background-size: cover;
  background-position: right center;
  opacity: 0.85;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(250,250,250,0.97) 0%, rgba(250,250,250,0.85) 38%, rgba(250,250,250,0.15) 70%, rgba(13,110,253,0.10) 100%);
}
@media (max-width: 880px) {
  .hero__bg { display: none; }
}
.hero > .container { position: relative; z-index: 1; }
.hero__inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--c-brand-soft); color: var(--c-brand-dark);
  border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid var(--c-brand-tint);
}
.hero__eyebrow::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-brand);
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--c-brand-dark); }
.hero__sub {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--c-text); margin-bottom: 28px;
  max-width: 28em; line-height: 1.5;
}
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 26px; font-size: 0.875rem; color: var(--c-muted);
  font-weight: 500;
}
.hero__trust-item { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust-item::before {
  content: "✓"; color: #fff; background: var(--c-brand);
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
}

/* ============== Picker ============== */
.picker {
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.picker__title {
  font-family: var(--f-heading);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 800; color: var(--c-ink); margin: 0 0 4px;
}
.picker__subtitle { color: var(--c-muted); font-size: 0.9375rem; margin: 0 0 18px; }
.picker__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}
.picker__option {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px;
  min-height: 116px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer; text-decoration: none;
  color: var(--c-ink); text-align: left;
  font-family: var(--f-body);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  position: relative;
}
.picker__option:hover {
  border-color: var(--c-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.picker__option:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 2px;
}
.picker__icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-brand-dark);
  flex-shrink: 0; width: 28px; height: 28px;
}
.picker__icon svg { width: 28px; height: 28px; stroke-width: 1.75; }
.picker__option-text { display: flex; flex-direction: column; min-width: 0; }
.picker__option-label { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--c-ink); line-height: 1.3; }
.picker__option-sub { display: block; margin-top: 3px; font-weight: 400; font-size: 0.8125rem; color: var(--c-muted); line-height: 1.4; }

/* Accordion tile */
details.picker__option--accordion {
  display: block; padding: 0; cursor: default;
}
details.picker__option--accordion:hover {
  transform: none; box-shadow: none; border-color: var(--c-border);
}
details.picker__option--accordion[open] {
  border-color: var(--c-brand);
  box-shadow: var(--shadow-md);
}
.picker__summary {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px;
  min-height: 116px;
  cursor: pointer; list-style: none;
  border-radius: var(--r-md);
  transition: background 200ms ease;
  position: relative;
}
.picker__summary::-webkit-details-marker { display: none; }
.picker__summary::marker { content: ''; }
.picker__summary::after {
  content: ""; position: absolute; right: 18px; top: 22px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}
details[open] .picker__summary::after { transform: rotate(-135deg); top: 26px; }
details.picker__option--accordion:not([open]) .picker__summary:hover {
  background: rgba(0,0,0,0.02);
}
.picker__suboptions {
  list-style: none; margin: 0;
  padding: 4px 12px 12px;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-warm);
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.picker__suboption {
  display: block; padding: 12px 14px; margin-top: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-ink); text-decoration: none;
  font-size: 0.9375rem; font-weight: 600;
  font-family: var(--f-body); line-height: 1.3;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}
.picker__suboption:hover {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
  transform: translateX(2px);
  color: var(--c-ink);
}
.picker__suboption:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.picker__footer {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-border);
  text-align: center; font-size: 0.875rem; color: var(--c-muted);
}
.picker__footer strong { color: var(--c-ink); }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--f-body); font-size: 1.0625rem; font-weight: 700;
  padding: 14px 28px; border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  min-height: 52px;
  letter-spacing: -0.01em;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.btn-cta {
  background: var(--c-brand); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-cta:hover {
  background: var(--c-brand-dark); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -8px rgb(13 110 253 / 0.50);
}
.btn-cta:focus-visible { outline: 3px solid var(--c-brand-dark); outline-offset: 4px; }
.btn-cta::after { content: "→"; font-size: 1.125em; transition: transform 150ms ease; }
.btn-cta:hover::after { transform: translateX(2px); }
.btn-secondary {
  background: var(--c-surface); color: var(--c-ink);
  border-color: var(--c-border-strong);
}
.btn-secondary:hover { background: var(--c-surface-3); border-color: var(--c-ink); color: var(--c-ink); }
.btn-lg { padding: 18px 36px; font-size: 1.125rem; min-height: 60px; }
.btn-block { width: 100%; }

/* ============== Sections ============== */
section { padding: clamp(48px, 6vw, 80px) 0; }
section.alt  { background: var(--c-surface-warm); }
section.mint { background: var(--c-brand-soft); }
.section-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  color: var(--c-brand-dark); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-intro { max-width: 720px; margin: 0 auto 12px; }
.section-intro p { color: var(--c-muted); font-size: 1.0625rem; }

/* ============== Trusted by ============== */
.trust-strip {
  padding: 24px 0; background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.trust-strip__label {
  display: block; text-align: center;
  font-size: 0.75rem; font-weight: 700;
  color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.trust-strip__img {
  display: block; margin: 0 auto;
  max-width: 720px; width: 100%;
  opacity: 0.8;
}

/* ============== Steps (How it works) ============== */
.steps {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 32px 0 0;
}
.step { text-align: center; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-brand); color: #fff;
  font-family: var(--f-heading); font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 16px;
  box-shadow: var(--shadow-brand);
}
.step h3 { margin: 0 0 6px; }
.step p { color: var(--c-muted); font-size: 0.9375rem; margin: 0; }

/* ============== Topic cards ============== */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 32px 0 0;
}
.card {
  background: var(--c-surface); border: 2px solid var(--c-border);
  border-radius: var(--r-lg); padding: 24px;
  display: flex; flex-direction: column;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.card:hover { border-color: var(--c-brand-tint); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--c-text); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--c-brand-soft); color: var(--c-brand-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card__icon svg { width: 24px; height: 24px; stroke-width: 1.75; }
.card__source {
  font-size: 0.8125rem; color: var(--c-muted);
  padding-top: 12px; margin-top: auto;
  border-top: 1px solid var(--c-border);
}
.card__source a { color: var(--c-muted); }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-weight: 700; text-decoration: none;
  color: var(--c-brand-dark);
  align-self: flex-start;
}
.card__link::after { content: "→"; transition: transform 150ms ease; }
.card__link:hover::after { transform: translateX(3px); }

/* ============== CTA block ============== */
.cta-block {
  text-align: center;
  background: var(--c-surface);
  border: 2px solid var(--c-brand-tint);
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  max-width: 760px; margin: 0 auto;
}
.cta-block h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin: 0 0 12px; }
.cta-block p { color: var(--c-text); margin: 0 0 24px; font-size: 1.0625rem; }

/* ============== FAQ ============== */
.faq-list { max-width: 820px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 150ms ease;
}
.faq-item[open] { border-color: var(--c-brand-tint); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 18px 56px 18px 22px;
  font-weight: 700; color: var(--c-ink);
  font-size: 1.0625rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; color: var(--c-muted);
  transition: transform 200ms ease;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--c-surface-warm); }
.faq-item__body {
  padding: 0 22px 20px;
  color: var(--c-text);
}
.faq-item__body p { margin: 0; }

/* ============== Footer ============== */
.site-footer {
  background: #1f2937; color: #cbd5e1;
  padding: 48px 0 32px;
}
.site-footer__inner {
  max-width: var(--max-w-content); margin: 0 auto; padding: 0 24px;
}
.site-footer__top {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 28px; border-bottom: 1px solid #334155;
}
@media (min-width: 720px) {
  .site-footer__top { grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
}
.site-footer__brand img {
  height: 56px; width: auto;
  background: #fff; padding: 6px 12px;
  border-radius: var(--r-sm);
}
.site-footer__about { color: #94a3b8; font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.site-footer__nav {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  padding: 20px 0; border-bottom: 1px solid #334155;
  font-size: 0.9375rem;
}
.site-footer__nav a { color: #cbd5e1; text-decoration: none; }
.site-footer__nav a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 20px;
  color: #94a3b8; font-size: 0.8125rem;
}
.site-footer__disclosure {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid #334155;
  color: #94a3b8; font-size: 0.75rem; line-height: 1.6;
}

/* ============== Responsive ============== */
@media (max-width: 540px) {
  .picker__grid { grid-template-columns: 1fr; }
  .picker__option,
  .picker__summary {
    min-height: 76px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .picker__summary::after { top: 50%; transform: rotate(45deg) translateY(-50%); }
  details[open] .picker__summary::after { transform: rotate(-135deg) translateY(50%); top: 50%; }
}
@media (max-width: 879px) {
  .hero__inner { display: flex; flex-direction: column; gap: 28px; }
  .hero__inner > .picker { order: 1; }
  .hero__inner > .hero__copy { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
