/* ============================================================
   Double S Power Washing — redesign
   Direction: industrial craft. Slate + concrete + safety orange.
   Type: Oswald (display) + Inter (body).
   One bold accent, one signature element (before/after slider).
   ============================================================ */

/* ============================================================
   THEME TOKENS — edit these to re-skin the whole site.
   Two tiers:
     • Base palette  = the raw colors / fonts (change these first)
     • Semantic      = meaning-based names components reference
                      (derived from base, so hover/active states
                       auto-update when you change a base color)
   To try a different look: edit the base palette, or uncomment one
   of the preset palettes at the bottom of this file.
   ============================================================ */
:root {
  /* ---- BASE PALETTE (raw materials) ---- */
  --c-ink:       #1B2A3A;   /* slate primary — dark sections */
  --c-ink-deep:  #0F1A26;   /* darker slate — footer */
  --c-surface:   #E8E6E1;   /* concrete — page background */
  --c-paper:     #FFFFFF;   /* card background */
  --c-accent:    #E8590C;   /* safety orange — the ONE bold color */
  --c-text:      #1A1A1A;   /* body text */
  --c-text-dim:  #5A6B7A;   /* secondary text */
  --c-rule:      #D6D2C9;   /* hairlines / borders */

  /* ---- DERIVED / SEMANTIC colors (components use these) ---- */
  /* accent interactions — adjust only if you want different hover behavior */
  --accent:        var(--c-accent);
  --accent-hover:  #c44a08;                 /* slightly darker accent */
  --accent-soft:   #F4D1B8;                 /* tint of accent on dark bg */

  /* surfaces */
  --bg:            var(--c-surface);
  --bg-section:    var(--c-paper);
  --bg-dark:       var(--c-ink);
  --bg-darker:     var(--c-ink-deep);

  /* text roles */
  --text:          var(--c-text);
  --text-muted:    var(--c-text-dim);
  --text-on-dark:        #FFFFFF;
  --text-on-dark-muted:  #cfd9e3;          /* muted text on slate bg */
  --text-on-dark-faint:  #9FB0C0;          /* faintest text on slate bg */
  --text-on-accent:      #FFFFFF;

  /* borders + overlays */
  --border:        var(--c-rule);
  --border-on-dark: rgba(255,255,255,.15);
  --shadow-color:  rgba(27,42,58,.08);     /* uses slate rgb */
  --overlay-strong: rgba(0,0,0,.55);
  --overlay-soft:   rgba(0,0,0,.40);

  /* ---- TYPE ---- */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* ---- TYPE SCALE ---- */
  --fs-body:    17px;
  --lh-body:    1.6;
  --fs-h1:      clamp(2.4rem, 5vw, 3.8rem);
  --fs-h2:      clamp(1.8rem, 3.2vw, 2.6rem);
  --fs-h3:      1.25rem;
  --fs-lede:    1.15rem;
  --fs-small:   0.85rem;
  --fs-eyebrow: 0.78rem;

  /* ---- LAYOUT ---- */
  --wrap:        1180px;
  --radius:      4px;
  --radius-lg:   8px;
  --section-pad: 80px;
  --section-pad-mobile: 56px;

  /* ---- MOTION ---- */
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --speed:       0.15s;

  /* ---- TAP TARGETS (a11y) ---- */
  --tap:         44px;
}

/* ============================================================
   PRESET PALETTES — uncomment ONE block to swap the whole look.
   (Each overrides only the base palette; semantic tokens follow.)
   ============================================================ */

/* PRESET A — default: industrial craft (slate + safety orange)
   (active by default — values already in :root above) */

/* PRESET B — deep forest + brass (premium, landscaper-adjacent)
:root {
  --c-ink:       #1F2A24;
  --c-ink-deep:  #14201A;
  --c-surface:   #EFEBE2;
  --c-accent:    #B8860B;
  --c-text-dim:  #5C6B62;
  --c-rule:      #D8D3C7;
  --accent-hover: #946A06;
  --accent-soft:  #E8D5A0;
} */

/* PRESET C — high-contrast mono + vermilion (bold, modern)
:root {
  --c-ink:       #111111;
  --c-ink-deep:  #000000;
  --c-surface:   #F5F4F2;
  --c-accent:    #E63946;
  --c-text-dim:  #555555;
  --c-rule:      #DDDDDD;
  --accent-hover: #C42F3B;
  --accent-soft:  #F5C0C5;
} */

/* PRESET D — coastal blue + sand (calm, shoreline-appropriate)
:root {
  --c-ink:       #1E3A4C;
  --c-ink-deep:  #122734;
  --c-surface:   #F2EFE8;
  --c-accent:    #2E8B8B;
  --c-text-dim:  #5A6E7A;
  --c-rule:      #DAD5CB;
  --accent-hover: #247070;
  --accent-soft:  #B9DCDC;
} */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bg-dark);
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); text-transform: none; letter-spacing: 0; }
p { margin: 0 0 1rem; }
a { color: var(--bg-dark); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .8rem;
}
.eyebrow-light { color: var(--accent-soft); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bg-dark); color: var(--text-on-dark);
  padding: 10px 16px; z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  min-height: var(--tap);       /* a11y tap target */
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text-on-dark); border-color: var(--border-on-dark); }
.btn-ghost:hover { border-color: var(--text-on-dark); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-on-dark); }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 6px 10px;
  border-radius: var(--radius);
  letter-spacing: .05em;
  font-size: 1rem;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.brand-sub { font-size: .78rem; color: var(--text-on-dark-faint); letter-spacing: .04em; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--text-on-dark-muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text-on-dark); border-bottom-color: var(--accent); }
.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.phone {
  color: var(--text-on-dark); text-decoration: none; font-family: var(--font-display);
  font-weight: 600; letter-spacing: .03em;
}
.header-cta .btn { padding: 9px 18px; }

/* ---------- hamburger (hidden on desktop, shown <=900px) ---------- */
.nav-toggle {
  display: none;                          /* hidden on desktop */
  width: var(--tap); height: var(--tap);
  background: transparent;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  align-items: center; justify-content: center;
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle-box {
  display: inline-flex; flex-direction: column; gap: 4px;
  width: 18px;
}
.nav-toggle-line {
  display: block; height: 2px; background: var(--text-on-dark);
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
/* X state when menu open */
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
/* phone link inside the mobile menu — distinct from nav links */
.nav-phone {
  display: none;                          /* hidden on desktop; visible in mobile menu */
}

/* ---------- hero ---------- */
.hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 72px 0 64px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { color: var(--text-on-dark); }
.hero-copy .lede { font-size: var(--fs-lede); color: var(--text-on-dark-muted); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 22px;
  border-top: 1px solid var(--border-on-dark);
  padding-top: 20px;
}
.hero-trust li { font-size: .9rem; color: var(--text-on-dark-muted); }
.hero-trust strong { color: var(--text-on-dark); display: block; font-size: 1rem; }

/* ---------- before/after slider (signature) ---------- */
.ba {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px var(--overlay-soft);
  border: 1px solid var(--border-on-dark);
  user-select: none;
  touch-action: none;
}
.ba-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-after  { /* full */ }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--accent);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 3;
  /* invisible 44px touch zone around the 3px line (a11y 2.5.5) */
  padding: 0 20px;
  margin: 0 -20px;
  box-sizing: content-box;
}
.ba-handle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--text-on-dark), 0 0 0 6px var(--accent); }
.ba-arrow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent); color: var(--text-on-accent);
  width: var(--tap); height: var(--tap); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--overlay-soft);
}
.ba-label {
  position: absolute; top: 12px; z-index: 2;
  font-family: var(--font-display); font-weight: 600;
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  background: var(--overlay-strong); color: var(--text-on-dark);
  padding: 4px 10px; border-radius: var(--radius);
  margin: 0;
}
.ba-label-before { left: 12px; }
.ba-label-after  { right: 12px; }
.ba-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  z-index: 2; margin: 0;
  font-size: .75rem; color: var(--text-on-dark-muted);
  background: var(--overlay-soft); padding: 3px 9px; border-radius: var(--radius);
}

/* ---------- trust strip ---------- */
.strip { background: var(--bg); border-bottom: 1px solid var(--border); }
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: 32px 24px;
}
.strip-grid > div { display: flex; flex-direction: column; }
.stat {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.9rem; color: var(--bg-dark); line-height: 1;
}
.stat-label { font-size: var(--fs-small); color: var(--text-muted); margin-top: 6px; }

/* ---------- section heads ---------- */
.section-head { max-width: 60ch; margin-bottom: 40px; }
section { padding: var(--section-pad) 0; }

/* ---------- services ---------- */
.services { background: var(--bg); }
.service-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--accent);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px var(--shadow-color); }
.card h3 { color: var(--bg-dark); margin-bottom: .4rem; }
.card p { color: var(--text-muted); margin: 0; }

/* ---------- process ---------- */
.process { background: var(--bg-dark); color: var(--text-on-dark); }
.process .section-head h2 { color: var(--text-on-dark); }
.process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  counter-reset: step;
}
.process-grid li { border-top: 2px solid var(--accent); padding-top: 20px; }
.step-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; color: var(--accent);
  display: block; margin-bottom: 10px;
}
.process-grid h3 { color: var(--text-on-dark); margin-bottom: .5rem; }
.process-grid p { color: var(--text-on-dark-faint); margin: 0; }

/* ---------- gallery ---------- */
.work { background: var(--bg); }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery figure { margin: 0; position: relative; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 3 / 4; border-radius: var(--radius);
  filter: saturate(.95);
}
.gallery figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(27,42,58,.85));
  color: var(--text-on-dark); padding: 24px 14px 12px;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; font-size: var(--fs-small);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- service area ---------- */
.area { background: var(--bg); }
.section-lede { color: var(--text-muted); font-size: var(--fs-lede); max-width: 60ch; margin-top: .5rem; }
.area-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.area-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.area-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--shadow-color); }
.area-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px; background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
}
.area-card h3 { color: var(--bg-dark); margin-bottom: .3rem; font-size: 1.15rem; }
.area-card p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* ---------- reviews ---------- */
.reviews { background: var(--bg-section); }
.review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.review {
  margin: 0; padding: 28px;
  background: var(--bg); border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}
.review p { font-size: 1.02rem; color: var(--text); margin-bottom: 16px; }
.review footer { color: var(--text-muted); font-size: .9rem; }
.review cite { font-style: normal; font-weight: 600; color: var(--bg-dark); }

/* ---------- faq ---------- */
.faq { background: var(--bg); }
.faq-list { max-width: 760px; }
.faq-list details {
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; padding: 0;
}
.faq-list summary {
  cursor: pointer; padding: 18px 22px;
  font-weight: 600; color: var(--bg-dark);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.faq-list details p { padding: 0 22px 20px; margin: 0; color: var(--text-muted); }

/* ---------- quote ---------- */
.quote { background: var(--bg-dark); color: var(--text-on-dark); }
.quote-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.quote-copy h2 { color: var(--text-on-dark); }
.quote-copy .lede { color: var(--text-on-dark-muted); font-size: 1.1rem; }
.quote-phone { font-size: 1.1rem; }
.quote-phone a { color: var(--accent); text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.quote-form {
  background: var(--bg-section); color: var(--text);
  padding: 28px; border-radius: var(--radius);
  display: grid; gap: 14px;
}
.quote-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: var(--fs-small); font-weight: 600; color: var(--bg-dark);
}
.quote-form input, .quote-form select {
  font-family: var(--font-body); font-size: 1rem;
  padding: 11px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg);
  color: var(--text);
}
.quote-form input:focus-visible, .quote-form select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.quote-form button { width: 100%; margin-top: 6px; }
.form-note { font-size: .8rem; color: var(--text-muted); text-align: center; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-darker); color: var(--text-on-dark-faint); padding: 56px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px;
}
.footer-grid a { color: var(--text-on-dark-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-name { color: var(--text-on-dark); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 4px; }
.footer-h { color: var(--text-on-dark); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin: 0 0 12px; }
.footer-grid ul li { margin-bottom: 8px; font-size: .92rem; }
.footer-bottom { border-top: 1px solid var(--border-on-dark); margin-top: 36px; padding-top: 20px; font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .header-inner { gap: 14px; min-height: 64px; }

  /* hamburger visible */
  .nav-toggle { display: inline-flex; }

  /* nav becomes a dropdown panel, hidden unless open */
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-on-dark);
    border-bottom: 3px solid var(--accent);
    padding: 8px 24px 16px;
    /* hidden state */
    display: flex;
    max-height: 0;
    overflow: hidden;
    padding-top: 0; padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height var(--speed) var(--ease),
                opacity var(--speed) var(--ease),
                padding var(--speed) var(--ease);
  }
  .nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
    padding-top: 8px; padding-bottom: 16px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    min-height: var(--tap);               /* a11y 2.5.5: 44px tap target */
    display: flex; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-on-dark);
    font-size: 1rem;
  }
  .nav a:last-of-type { border-bottom: none; }
  /* phone shown inside the menu, styled like a CTA */
  .nav-phone {
    display: flex;
    margin-top: 8px;
    font-size: 1.15rem !important;
    color: var(--accent) !important;
    border-bottom: none !important;
  }

  /* hide desktop CTA — phone lives in the menu now, quote button lives in hero */
  .header-cta { display: none; }

  .hero-grid, .quote-inner { grid-template-columns: 1fr; gap: 40px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .service-grid, .process-grid, .review-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: var(--section-pad-mobile) 0; }
  .hero { padding: 48px 0; }
}

/* ---------- small phones ---------- */
@media (max-width: 380px) {
  .hero-copy h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .strip-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat { font-size: 1.6rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   THEME SWITCHER — fixed neutral UI (intentionally NOT using
   theme tokens, so it stays legible under any palette).
   Demo-only — strip this block + the <script> tag before launch.
   ============================================================ */
.theme-switcher {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  font-family: -apple-system, system-ui, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #1a1a1a;
}
.ts-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  min-height: 44px;     /* a11y tap target even on mobile */
}
.ts-toggle:hover { border-color: #999; }
.ts-toggle:focus-visible { outline: 3px solid #4a90d9; outline-offset: 2px; }
.ts-swatch {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  background: linear-gradient(135deg, #1B2A3A 0 33%, #E8E6E1 33% 66%, #E8590C 66% 100%);
}
.ts-current { font-weight: 600; white-space: nowrap; }

.ts-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  padding: 12px;
}
.ts-panel-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #777;
}
.ts-dot {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "sw name" "sw desc";
  column-gap: 10px;
  row-gap: 0;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  margin-bottom: 2px;
}
.ts-dot:hover { background: #f4f4f4; }
.ts-dot:focus-visible { outline: 3px solid #4a90d9; outline-offset: -3px; }
.ts-dot.is-active { background: #eef4fb; border-color: #4a90d9; }
.ts-swatches {
  grid-area: sw;
  display: flex;
  gap: 2px;
}
.ts-mini {
  display: inline-block;
  width: 12px; height: 24px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.1);
}
.ts-dot-name { grid-area: name; font-weight: 600; font-size: 13px; }
.ts-dot-desc { grid-area: desc; font-size: 11px; color: #777; }
.ts-reset {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  background: transparent;
  border: none;
  border-top: 1px solid #eee;
  color: #4a90d9;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}
.ts-reset:hover { color: #2a6fb9; }
.ts-reset:focus-visible { outline: 3px solid #4a90d9; outline-offset: 2px; }

@media (max-width: 560px) {
  .theme-switcher { bottom: 76px; right: 12px; left: 12px; }
  .ts-toggle { width: 100%; justify-content: center; }
  .ts-panel { left: 0; right: 0; width: auto; }
  .ts-current { font-size: 12px; }
  /* keep content clear of the fixed bottom switcher + call bar */
  body { padding-bottom: 150px; }
  /* anchor jumps shouldn't hide behind sticky header */
  section[id], #main { scroll-margin-top: 90px; }
}

/* ============================================================
   STICKY MOBILE CALL BAR — conversion. Mobile only.
   Hidden on desktop (>= 901px) where the header CTA already
   shows phone + quote.
   ============================================================ */
.call-bar {
  display: none;     /* hidden by default; shown <=900px */
}
@media (max-width: 900px) {
  .call-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9998;        /* below theme switcher panel (9999) */
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg-dark);
    border-top: 1px solid var(--border-on-dark);
    box-shadow: 0 -6px 18px rgba(0,0,0,.18);
  }
  .call-bar-phone,
  .call-bar-quote {
    flex: 1;
    min-height: var(--tap);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    font-size: 1rem;
  }
  .call-bar-phone {
    color: var(--text-on-dark);
    border: 2px solid var(--border-on-dark);
    gap: 6px;
  }
  .call-bar-phone:active { background: var(--border-on-dark); }
  .call-bar-phone:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
}
