/* Chelmsford Exterior Cleaning — design system
   Single stylesheet, mobile-first, no frameworks for max speed/CWV. */

:root {
  --navy: #0e2a47;
  --navy-700: #16395f;
  --blue: #1f7ae0;
  --blue-600: #1666c0;
  --aqua: #19b6c9;
  --ink: #1a2430;
  --body: #44505d;
  --muted: #6b7785;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-band: #0e2a47;
  --green: #1c9d57;
  --amber: #f0a000;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 6px 24px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 14px 40px rgba(14, 42, 71, 0.14);
  --wrap: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  line-height: 1.65;
  background: var(--bg);
  font-size: 17px;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: .6em; }
.lead { font-size: 1.18rem; color: var(--body); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; font-weight: 700;
  font-size: 1.02rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #2a1d00; box-shadow: 0 8px 20px rgba(240,160,0,.32); }
.btn--primary:hover { background: #ffb31a; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(31,122,224,.3); }
.btn--blue:hover { background: var(--blue-600); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 17px 34px; font-size: 1.1rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cdd9e6; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-left span { margin-right: 16px; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 38px; height: 38px; flex: 0 0 38px; }
.brand .mark img { width: 100%; height: 100%; display: block; }
.brand small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; padding: 9px 12px; border-radius: 8px; font-size: .98rem; }
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* dropdown for services */
.has-drop { position: relative; }
.drop { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow-lg); border-radius: 12px; padding: 8px; min-width: 250px; display: none; border: 1px solid var(--line); }
.has-drop:hover .drop, .has-drop:focus-within .drop { display: block; }
.drop a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }

/* ---------- Hero ---------- */
/* Hero background: dark gradient overlay (for text legibility) over a photo.
   Drop a real photo at assets/hero.jpg to use it; otherwise the original
   assets/hero.svg illustration shows as the fallback layer beneath it. */
.hero {
  background-image:
    linear-gradient(150deg, rgba(14,42,71,.86) 0%, rgba(22,57,95,.74) 52%, rgba(29,77,122,.66) 100%),
    url('/assets/hero.jpg'),
    url('/assets/hero.svg');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-color: var(--navy);
  color: #eaf1f8; position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(25,182,201,.28), transparent 65%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero p { color: #cfe0f0; font-size: 1.18rem; }
.hero .eyebrow { color: var(--aqua); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: .92rem; color: #bcd0e4; }
.hero-trust strong { color: #fff; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(4px); }
.hero-card h3 { color: #fff; }
.hero-list { list-style: none; padding: 0; margin: 18px 0 22px; }
.hero-list li { position: relative; padding: 10px 0 10px 30px; color: #dceaf6; font-size: .97rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-list li:first-child { border-top: 0; }
.hero-list li::before { content: "✔"; position: absolute; left: 0; top: 10px; color: var(--aqua); font-weight: 700; }
/* On desktop the quote CARD is the single quote CTA, so hide the duplicate
   in-flow button. (It reappears on mobile, where the card is hidden.) */
@media (min-width: 901px) { .hero-cta-quote { display: none; } }

/* ---------- Quote form ---------- */
.quote-form label { display: block; font-weight: 600; color: #fff; font-size: .9rem; margin: 12px 0 5px; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.95); color: var(--ink); font-size: 1rem; font-family: inherit;
}
.quote-form textarea { min-height: 84px; resize: vertical; }
.quote-form .btn { width: 100%; justify-content: center; margin-top: 16px; }
.form-note { font-size: .8rem; color: #aac1d8; margin-top: 10px; text-align: center; }

/* page-level form (contact) */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.form-card label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin: 12px 0 5px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 1rem; font-family: inherit;
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-step { font-size: 1.02rem; color: var(--navy); margin: 24px 0 10px; padding-bottom: 7px; border-bottom: 2px solid var(--line); }
.form-step:first-of-type { margin-top: 4px; }
.svc-panel { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 14px 16px 16px; margin: 10px 0; }
.svc-panel h4 { margin: 0 0 6px; font-size: 1rem; color: var(--navy); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 4px 0 6px; }
.check-grid .check { display: flex; align-items: center; gap: 9px; margin: 0; padding: 5px 0; font-weight: 500; color: var(--body); font-size: .97rem; cursor: pointer; }
.check-grid .check input { width: auto; margin: 0; flex: 0 0 auto; accent-color: var(--blue); }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }

/* ---------- Service grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.card h3 { margin-bottom: .3em; }
.card .price-from { color: var(--green); font-weight: 700; font-size: .95rem; }
.card a.more { margin-top: auto; font-weight: 700; padding-top: 12px; }

/* ---------- Feature / why us ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.4rem; color: var(--blue); }
.feature h3 { font-size: 1.1rem; margin-bottom: .25em; }
.feature p { font-size: .98rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step .num { width: 44px; height: 44px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--aqua)); color: #fff; border-radius: var(--radius-lg); padding: 44px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eaf7fb; font-size: 1.1rem; }
.cta-band .btn--primary { box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.band-full { background: var(--navy); color: #eaf1f8; }
.band-full h2 { color: #fff; }
.band-full p { color: #cfe0f0; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; font-size: 1.5rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 16px; margin: 0; }

/* ---------- Pricing table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--navy); color: #fff; font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .from { color: var(--green); font-weight: 700; white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ba { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.ba .ba-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #d7e6f5, #eaf1f8); display: grid; place-items: center; color: var(--muted); font-size: .9rem; position: relative; }
.ba .ba-tag { position: absolute; top: 10px; left: 10px; background: rgba(14,42,71,.85); color: #fff; font-size: .72rem; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.ba .ba-cap { padding: 12px 14px; font-size: .9rem; color: var(--ink); font-weight: 600; }
.ba .ba-cap small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- Reviews ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; margin-bottom: 8px; }
.review .who { font-weight: 700; color: var(--ink); margin-top: 12px; }
.review .who small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- Badges / trust row ---------- */
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.badge .dot { color: var(--green); font-size: 1.1rem; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .85rem; color: var(--muted); padding: 16px 0 0; }
.crumb a { color: var(--muted); }

/* ---------- Two-col content ---------- */
.split { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: start; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.split > aside { position: sticky; top: 90px; align-self: start; }
.aside-card h3 { font-size: 1.1rem; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: .6em; }
.checklist li::before { content: "\2714"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c9da; padding: 56px 0 24px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer a { color: #cdd9e6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #8ba1b8; }

/* ---------- Floating mobile call bar ---------- */
.callbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; }
.callbar a { flex: 1; text-align: center; color: #fff; font-weight: 800; padding: 14px; font-size: 1.02rem; }
.callbar a:hover { text-decoration: none; }
.callbar .cb-call { background: var(--green); }
.callbar .cb-quote { background: var(--blue); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.tag { display: inline-block; background: #e7f1fc; color: var(--blue-600); font-weight: 700; font-size: .78rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-card { display: none; }   /* desktop side-panel; the in-flow CTA covers mobile */
  .grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split > aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px; box-shadow: var(--shadow-lg); gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-toggle { display: block; }
  .has-drop .drop { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav-cta { margin: 8px 0 0; }
  .callbar { display: flex; }
  body { padding-bottom: 52px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .gallery-grid, .footer-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .cta-band { padding: 30px 22px; }
}
