/* NorCal CARB Mobile — Cloudflare Workers site styles
   Brand: navy #002244 · red #C60C30 · silver #B0B7BC (Patriots pantones) · headings Montserrat · body Source Sans 3 */

:root {
  --navy: #002244;        /* Patriots navy (Pantone 289 C) */
  --navy-light: #001a38;
  --navy-card: #002e5c;
  --green: #C60C30;       /* Patriots red (Pantone 193 C) — accent throughout */
  --green-dark: #a50926;
  --green-bright: #e0102e;
  --ink: #ffffff;
  --body: #c8d6e5;
  --muted: #8a9bb5;
  --line: #1a3a6e;
  --bg-soft: #001830;
  --gold: #B0B7BC;        /* Patriots silver (Pantone 877 C) */
  --radius: 10px;
  --maxw: 1080px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  background: var(--navy);
}

h1, h2, h3 {
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--green); text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--navy-card); color: #fff; padding: 8px 12px; z-index: 200; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-family: Montserrat, sans-serif;
  font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .05s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-bright); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(0,34,68,.96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--green); color: var(--navy);
  display: grid; place-items: center; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 15px;
}
.brand-name { font-family: Montserrat, sans-serif; font-weight: 800; color: #fff; font-size: 1.1rem; line-height: 1.05; }
.brand-name small { display: block; font-size: .72rem; font-weight: 600; color: var(--green); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a.navlink { text-decoration: none; color: #fff; font-weight: 600; transition: color .15s ease; }
.nav a.navlink:hover { color: var(--green); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 60%, #000e1f 100%);
  padding: 64px 0 56px;
}
.hero .stars {
  color: var(--gold); letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(176, 183, 188, 0.65), 0 0 28px rgba(176, 183, 188, 0.3);
}
.hero .reviews-line { font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(255,255,255,0.12); }
.hero h1 span { color: var(--green); text-shadow: 0 0 20px rgba(198,12,48,0.5), 0 0 48px rgba(198,12,48,0.22); }
.hero .lede { font-size: 1.2rem; max-width: 640px; color: var(--body); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-areas { margin-top: 22px; font-weight: 600; color: var(--muted); font-size: .98rem; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.soft { background: var(--navy-light); }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: rgba(0, 46, 92, 0.45);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(176, 183, 188, 0.18);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.1); }
.card h3 { margin-top: 0; }

/* Pricing */
.price-card { text-align: center; }
.price-card .price {
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: 2.6rem;
  color: var(--green-bright); margin: 6px 0;
  text-shadow: 0 0 18px rgba(198, 12, 48, 0.55), 0 0 40px rgba(198, 12, 48, 0.25);
}
.price-card .price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-card.feature { border-color: var(--green-bright); border-width: 2px; position: relative; box-shadow: var(--shadow), 0 0 28px rgba(198, 12, 48, 0.18); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1a2e;
  font-family: Montserrat, sans-serif; font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }

/* Steps */
.step .num { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-family: Montserrat, sans-serif; font-weight: 800; margin-bottom: 12px; }

/* Reviews */
.quote { font-size: 1.05rem; }
.quote .stars {
  color: var(--gold); letter-spacing: 2px; display: block; margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(176, 183, 188, 0.7), 0 0 24px rgba(176, 183, 188, 0.35);
}
.quote cite { display: block; margin-top: 10px; color: var(--muted); font-style: normal; font-weight: 600; font-size: .92rem; }

/* CTA band */
.cta-band { background: var(--green); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffd6da; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band .btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--green); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: #fff; background: var(--navy-light);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green-bright); border-color: var(--green-bright); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.contact-method { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-method .ic { font-size: 1.4rem; }
.banner { background: rgba(60, 184, 42, 0.15); border: 1px solid var(--green); color: var(--green-bright); padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #001020; color: #8a9bb5; padding: 44px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--green); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.site-footer h4 { color: #fff; font-family: Montserrat, sans-serif; margin: 0 0 10px; font-size: 1rem; }
.site-footer .muted { color: #6b7f9a; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 16px; color: #6b7f9a; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Grid-4 for pricing cards ---------- */
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Service detail cards ---------- */
.service-card { text-align: left; }
.service-card h3 { border-bottom: 2px solid var(--green); padding-bottom: 8px; }
.service-card ul { padding-left: 18px; margin: 12px 0; }
.service-card li { margin-bottom: 6px; }
.service-card .price { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--green-bright); margin: 8px 0; }
.service-card .price small { font-size: .9rem; color: var(--muted); font-weight: 600; }

.service-detail { text-align: left; }
.service-detail h3 { border-bottom: 2px solid var(--green); padding-bottom: 8px; }
.service-detail ul { padding-left: 18px; margin: 12px 0 18px; }
.service-detail li { margin-bottom: 6px; }
.service-detail .price {
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: 2rem;
  color: var(--green-bright); margin: 8px 0;
  text-shadow: 0 0 16px rgba(198, 12, 48, 0.5), 0 0 36px rgba(198, 12, 48, 0.2);
}
.service-detail .price small { font-size: .9rem; color: var(--muted); font-weight: 600; }

.table-wrap { overflow-x: auto; }

/* ---------- Area cards ---------- */
.area-card { padding: 18px 22px; }
.area-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.area-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.area-card .san-diego-note { color: var(--gold); font-weight: 600; font-size: .85rem; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-item { margin-bottom: 0; }
.faq-item h3 { color: var(--green); margin-bottom: 6px; font-size: 1.05rem; }
.faq-item p { color: var(--body); margin: 0; }

/* ---------- Pricing table ---------- */
.pricing-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pricing-table th { background: var(--green); color: #fff; font-family: Montserrat, sans-serif; font-weight: 700; padding: 12px 16px; text-align: left; }
.pricing-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--body); }
.pricing-table tr:nth-child(even) { background: var(--navy-light); }
.pricing-table .price-cell { font-weight: 700; color: var(--green-bright); }

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green-bright); outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-4, .grid-2, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav .navlink { display: none; }
  .header-cta { display: none; }
  .nav.open .navlink {
    display: block; width: 100%; padding: 14px 0; font-size: 1.1rem;
    border-top: 1px solid var(--line);
  }
  .nav.open {
    position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-card);
    flex-direction: column; padding: 0 20px 16px;
    border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .nav.open .menu-toggle { position: absolute; top: -54px; right: 20px; z-index: 10; }
  .nav.open .header-cta { width: 100%; display: flex !important; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav.open .header-cta .btn { text-align: center; display: inline-block; }
  .nav.open .header-cta .btn-book { display: inline-block; }
  .hero { padding: 48px 0 40px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
  .btn-lg { padding: 16px 24px; }
  .price-card .price { font-size: 2.2rem; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  section { padding: 44px 0; }
  .hero { padding: 36px 0 32px; }
  h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  .card { padding: 22px; }
  .service-detail .price, .price-card .price { font-size: 2rem; }
}

/* ---------- Footer social ---------- */
.social { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 2px 0 24px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; background: var(--line); color: #fff; text-decoration: none; transition: background .15s ease; }
.social a:hover { background: var(--green); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social .reviews-pill { width: auto; padding: 0 16px; gap: 8px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: .9rem; color: #fff; }
.social .reviews-pill:hover { background: var(--gold); color: #1a1a2e; }
