/* ============================================================= */
/*  Local service lead-gen landing page                          */
/*  Mobile-first, fast, conversion-focused. No external deps.    */
/* ============================================================= */

:root {
  --brand: #0f6fbf;
  --brand-dark: #0b568f;
  --accent: #ff7a1a;
  --accent-dark: #e56a0f;
  --ink: #1a2230;
  --muted: #5b6675;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 34, 58, 0.08);
  --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.2rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .06s ease, background .15s ease;
  font-size: 1rem; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--call { background: var(--brand); color: #fff; padding: 0.55rem 1rem; }
.btn--call:hover { background: var(--brand-dark); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; padding: 0.7rem 20px; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; }

/* ---------- Primary nav ---------- */
/* Mobile-first: nav drops to its own full-width row under brand + call button. */
.nav {
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin: 0;
  order: 3; flex-basis: 100%; justify-content: center;
  border-top: 1px solid var(--line); padding-top: 0.5rem;
}
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.2rem 0; white-space: nowrap;
}
.nav a:hover { color: var(--brand); }
@media (min-width: 900px) {
  .nav { order: 0; flex-basis: auto; justify-content: flex-start; border-top: none; padding-top: 0; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 0.9rem 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- CTA band (sub-pages) ---------- */
.cta-band { background: var(--brand-dark); color: #fff; text-align: center; padding: clamp(2.2rem, 5vw, 3.2rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .95; max-width: 560px; margin: 0 auto 1.3rem; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Content prose + area lists ---------- */
.prose { max-width: 760px; }
.prose p { color: #333b47; }
.arealist { columns: 2; gap: 1.4rem; padding-left: 1.1rem; margin: 0 0 1rem; }
.arealist li { margin-bottom: .35rem; }
@media (max-width: 520px) { .arealist { columns: 1; } }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(11,86,143,.92), rgba(15,111,191,.82)),
    url("../img/hero.jpg") center/cover no-repeat, var(--brand-dark);
  color: #fff; padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.hero--page { padding: clamp(2.2rem, 6vw, 3.6rem) 0; }
.hero__copy { max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; opacity: .9; margin-bottom: .6rem; }
.hero__sub { font-size: 1.15rem; opacity: .95; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0 1.2rem; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 0; margin: 0; font-weight: 600; font-size: .95rem; }
.trust li { opacity: .95; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__lede { color: var(--muted); max-width: 620px; margin-bottom: 1.8rem; font-size: 1.08rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }

.card, .feature, .review {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.card h3, .feature h3 { color: var(--brand-dark); }
.review { background: var(--bg-alt); border: none; }
.review p { font-style: italic; }
.review cite { color: var(--muted); font-style: normal; font-weight: 600; font-size: .9rem; }

/* ---------- Quote ---------- */
.quote { background: var(--bg-alt); }
.quote__inner { display: grid; gap: 1.8rem; }
.quote__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.quote__form label { display: block; font-weight: 600; margin-bottom: 0.9rem; font-size: .95rem; }
.quote__form input, .quote__form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: 0.7rem 0.8rem;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink);
}
.quote__form input:focus, .quote__form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.quote__form .btn { width: 100%; margin-top: .4rem; }
.quote__note { margin: .8rem 0 0; font-weight: 600; min-height: 1.2em; }
.quote__note.is-ok { color: #1a8a3a; }
.quote__note.is-err { color: #c02626; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cdd6e2; padding: 2.5rem 0 5rem; }
.footer a { color: #fff; }
.footer__brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: .3rem; }
.footer__nav { display: flex; flex-direction: column; gap: .4rem; margin: 1.2rem 0 0; }
.footer__nav a { color: #cdd6e2; text-decoration: none; font-size: .92rem; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__fine { margin-top: 1.4rem; font-size: .85rem; opacity: .7; grid-column: 1 / -1; }
@media (min-width: 720px) { .footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; } }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--accent); color: #fff; text-align: center;
  padding: 0.9rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .quote__inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .callbar { display: none; }               /* desktop uses header call button */
}
