/* ==========================================================================
   J.B. Remodeling & Maintenance — styles
   Brand: black header and footer with yellow lettering; yellow buttons,
   blue accents. The page itself is white (light mode) or black (dark mode).
   Light mode or dark mode follows the visitor's device setting until they
   pick one with the toggle button (js/theme.js sets data-theme on <html>).
   To adjust colors, change the values under :root (light mode) and the
   dark block right after it (dark mode, and the header/footer always).
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --line: #e1e4e8;
  --line-2: #c5cad2;

  --text: #111317;
  --muted: #474c55;
  --dim: #686d76;

  --yellow: #ffc72c;
  --yellow-2: #ffd65c;
  --on-yellow: #121212;
  --blue: #004ff7;      /* the logo's blue */
  --blue-2: #1a63ff;    /* button hover */
  --blue-ink: #004ff7;
  --blue-tint: rgba(0, 79, 247, 0.1);
  --danger: #c62828;
  --danger-bg: rgba(198, 40, 40, 0.06);
  --accent-ink: #111317; /* headings: black on white, yellow on black */
  --link-ink: #004ff7;   /* links and hovers: blue on white, yellow on black */
  --hl-ink: #004ff7;     /* highlighted words, phone number, hero checkmarks */
  --focus: #004ff7;
  --focus-ring: rgba(0, 79, 247, 0.18);
  --input-bg: #ffffff;
  --placeholder: #8a8f98;
  --lang-bg: #f4f4f2;
  --lang-ink: #0d0e10;

  /* Draft labels and placeholder pictures */
  --ph-box-border: #d4a017;
  --ph-box-bg: #fffaeb;
  --dev-ink: #6b4c00;

  /* Background glows and details */
  --hero-glow-blue: rgba(0, 79, 247, 0.09);
  --hero-glow-yellow: rgba(255, 199, 44, 0.14);
  --hero-grid: rgba(0, 79, 247, 0.06);
  --contact-glow: rgba(0, 79, 247, 0.07);
  --step-fill: #ffc72c;
  --step-stroke: #111317;

  /* Service-area map */
  --map-bg: #f3f5f8;
  --map-grid: rgba(0, 79, 247, 0.08);
  --map-lake: rgba(26, 99, 255, 0.16);
  --map-lake-line: rgba(0, 79, 247, 0.5);
  --map-lake-label: rgba(0, 71, 222, 0.85);
  --map-state: rgba(17, 19, 23, 0.35);
  --map-region: rgba(17, 19, 23, 0.32);
  --map-area: rgba(255, 199, 44, 0.2);
  --map-area-line: #d9a300;
  --map-ring: rgba(184, 134, 0, 0.5);
  --map-ring-main: #7a5600;
  --map-chicago: #d32f2f;
  --map-hatch: rgba(211, 47, 47, 0.6);
  --map-chicago-label: #b71c1c;
  --map-town: #3a3f47;
  --map-label: #2b3038;
  --map-halo: #f3f5f8;
  --map-home-label: #004ff7;

  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1200px;
  --gutter: 20px;
  --header-h: 72px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.1);

  color-scheme: light;
}

/* Dark colors: the whole page in dark mode, and these always-black areas
   in both modes: header, footer, phone action bar, photo viewer. */
:root[data-theme="dark"],
.site-header, .site-footer, .action-bar, .draft-banner, .lightbox, .legal-top, .brand-card-frame {
  --bg: #0a0a0b;
  --bg-2: #101113;
  --surface: #15171a;
  --surface-2: #1c1e22;
  --line: #2a2d33;
  --line-2: #3a3e46;
  --text: #f4f4f2;
  --muted: #b6b9bf;
  --dim: #8b8f97;
  --blue-ink: #6f9cff;  /* the logo's blue, lightened so text stays readable on black */
  --blue-tint: rgba(26, 99, 255, 0.16);
  --danger: #ff8a80;
  --danger-bg: rgba(255, 138, 128, 0.08);
  --accent-ink: #ffc72c;
  --link-ink: #ffc72c;
  --hl-ink: #ffc72c;
  --focus: #ffc72c;
  --focus-ring: rgba(255, 199, 44, 0.2);
  --input-bg: #0e0f12;
  --placeholder: #6f737b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  --ph-box-border: rgba(255, 199, 44, 0.55);
  --ph-box-bg: rgba(255, 199, 44, 0.05);
  --dev-ink: #ffd65c;

  --hero-glow-blue: rgba(0, 79, 247, 0.22);
  --hero-glow-yellow: rgba(255, 199, 44, 0.07);
  --hero-grid: rgba(111, 156, 255, 0.06);
  --contact-glow: rgba(0, 79, 247, 0.16);
  --step-fill: transparent;
  --step-stroke: #ffc72c;

  --map-bg: #0c0e11;
  --map-grid: rgba(111, 156, 255, 0.07);
  --map-lake: rgba(26, 99, 255, 0.2);
  --map-lake-line: rgba(111, 156, 255, 0.55);
  --map-lake-label: rgba(111, 156, 255, 0.8);
  --map-state: rgba(255, 255, 255, 0.28);
  --map-region: rgba(255, 255, 255, 0.28);
  --map-area: rgba(255, 199, 44, 0.06);
  --map-area-line: #ffc72c;
  --map-ring: rgba(255, 199, 44, 0.35);
  --map-ring-main: #ffc72c;
  --map-chicago: #ff8a80;
  --map-hatch: rgba(255, 138, 128, 0.75);
  --map-chicago-label: #ffb3ab;
  --map-town: #d4d8df;
  --map-label: #d4d8df;
  --map-halo: #0c0e11;
  --map-home-label: #ffc72c;
}
:root[data-theme="dark"] { color-scheme: dark; }
.site-header, .site-footer, .action-bar, .draft-banner, .lightbox, .legal-top, .brand-card-frame {
  color-scheme: dark;
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.05; letter-spacing: 0.005em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--dim); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.ic { display: inline-flex; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Draft labels ---------- */
.draft-banner {
  background: repeating-linear-gradient(-45deg, #1a1606 0 14px, #120f04 14px 28px);
  border-bottom: 1px solid rgba(255, 199, 44, 0.35);
  color: var(--yellow-2);
  font-size: 14px;
  line-height: 1.4;
}
.draft-banner .container { display: flex; gap: 10px; align-items: center; padding-top: 8px; padding-bottom: 8px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; line-height: 1;
  padding: 5px 8px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; vertical-align: middle;
}
.tag-ph { background: var(--yellow); color: var(--on-yellow); }
.tag-ph::before {
  content: ""; width: 10px; height: 10px; flex: none; border-radius: 2px;
  background: repeating-linear-gradient(-45deg, #121212 0 2px, transparent 2px 4px);
}
.tag-draft { border: 1px solid var(--blue-ink); color: var(--blue-ink); background: var(--blue-tint); }

.ph-box {
  border: 1.5px dashed var(--ph-box-border); border-radius: var(--radius-sm);
  background: var(--ph-box-bg); padding: 16px 18px; margin: 4px 0 22px;
}
.ph-box .tag { margin-bottom: 10px; }
.ph-box p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--on-yellow); }
.btn-yellow:hover { background: var(--yellow-2); box-shadow: 0 8px 24px rgba(255, 199, 44, 0.22); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); box-shadow: 0 8px 24px rgba(0, 79, 247, 0.3); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--link-ink); color: var(--link-ink); }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 17px; }
.btn-xl { min-height: 58px; padding: 14px 26px; font-size: 18px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled, .site-header.menu-open { border-bottom-color: var(--line); background: rgba(10, 10, 11, 0.98); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); max-width: 1400px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px;
  background: var(--blue); color: var(--yellow);
  font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.02em; }
.brand-sub { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--blue-ink); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }
/* The real logo (blue house, yellow window) sits right on the black header and footer */
.brand-mark.brand-mark-logo { width: auto; aspect-ratio: 480 / 402; background: none; border-radius: 0; padding: 0; box-shadow: none; }
.brand-mark-logo img { width: 100%; height: 100%; object-fit: contain; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 16px;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap; transition: color .15s ease, background-color .15s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); background: var(--surface-2); }
.main-nav a.is-active { color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.main-nav + .header-actions { margin-left: 8px; }

.lang-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); }
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em; padding: 7px 10px; border-radius: 7px; min-width: 40px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--yellow); color: var(--on-yellow); }
.lang-toggle button:not([aria-pressed="true"]):hover { color: var(--text); }

.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn .icon { width: 24px; height: 24px; }

.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding: 12px 0 22px; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  text-decoration: none; font-family: var(--font-head); font-size: 26px; font-weight: 700;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.mobile-menu nav a.is-active { color: var(--yellow); }
.mobile-menu-ctas { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, var(--hero-glow-blue), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, var(--hero-glow-yellow), transparent 60%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: 15px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.18); }

.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em;
  color: var(--text); margin-bottom: 22px; text-wrap: balance;
}
.hero h1 .hl { color: var(--hl-ink); display: block; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 36em; margin-bottom: 30px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text); font-weight: 600; font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--hl-ink); }

.media-frame { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media { position: relative; }
.hero-media::before, .hero-media::after {
  content: ""; position: absolute; width: 64px; height: 64px; z-index: 1; pointer-events: none;
  border: 4px solid var(--yellow);
}
.hero-media::before { top: -12px; left: -12px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.hero-media::after { bottom: -12px; right: -12px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

/* Hero without a photo: a quick list of services (each one opens the estimate form) */
.media-frame.no-photo { aspect-ratio: auto; }
.hero-panel { padding: 30px 28px 26px; }
.hero-panel .kicker { margin-bottom: 8px; }
.hero-panel-title {
  margin: 0 0 20px; font-family: var(--font-head); font-weight: 800; font-size: 32px; line-height: 1.05;
  text-transform: uppercase; color: var(--text); text-wrap: balance;
}
.hero-panel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-panel-list a {
  display: flex; align-items: center; gap: 12px; height: 100%; min-height: 54px; padding: 8px 12px 8px 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: border-color .15s ease;
}
.hero-panel-list a:hover { border-color: var(--yellow); }
.hero-panel-icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px;
  background: var(--blue-tint); color: var(--blue-ink);
}
.hero-panel-icon .icon { width: 20px; height: 20px; }
.hero-panel-note { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.hero-panel-note .ic { color: var(--hl-ink); }

/* About without a photo: a black business card with the logo */
.about-media.no-photo { display: grid; place-items: center; aspect-ratio: auto; padding: 44px 32px; background: var(--bg); border-color: var(--line); }
.brand-card { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; max-width: 360px; text-align: center; }
.brand-card-logo { width: 210px; }
.brand-card-logo img { width: 100%; height: auto; }
.brand-card-name { margin: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-head); line-height: 1; text-transform: uppercase; }
.brand-card-name span:first-child { font-weight: 800; font-size: 34px; color: var(--accent-ink); letter-spacing: 0.02em; }
.brand-card-sub { font-weight: 600; font-size: 19px; color: var(--blue-ink); letter-spacing: 0.12em; }
.brand-card-facts { display: grid; gap: 12px; width: 100%; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; }
.brand-card-facts li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; color: var(--text); }
.brand-card-facts .ic {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue-tint); color: var(--blue-ink);
}
.brand-card-facts .icon { width: 19px; height: 19px; }

/* ---------- Why strip ---------- */
.why { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.why-item { display: flex; gap: 16px; padding: 30px 26px; }
.why-item + .why-item { border-left: 1px solid var(--line); }
.why-icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue-ink);
}
.why-icon .icon { width: 24px; height: 24px; }
.why-title { font-size: 22px; color: var(--accent-ink); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.why-item p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  color: var(--blue-ink); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--yellow); border-radius: 2px; }
.section-title { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; text-transform: uppercase; margin-bottom: 16px; text-wrap: balance; }
.section-intro { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- Services ---------- */
.service-groups { display: grid; gap: 44px; }
.service-group-title {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-ink);
}
.service-group-title::before { content: ""; width: 28px; height: 4px; flex: none; background: var(--yellow); border-radius: 2px; }
.service-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { border-color: var(--yellow); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; margin-bottom: 18px;
  background: var(--blue-tint); color: var(--blue-ink);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card h4 { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; line-height: 1.05; font-size: 26px; text-transform: uppercase; letter-spacing: 0.01em; }
.service-card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  color: var(--link-ink); font-weight: 700; text-decoration: none; font-size: 15px; padding: 4px 0;
}
.service-link .icon { width: 18px; height: 18px; transition: transform .15s ease; }
.service-link:hover .icon { transform: translateX(3px); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: 1; margin-bottom: 14px;
  color: var(--step-fill); -webkit-text-stroke: 1.5px var(--step-stroke);
}
.step h3 { font-size: 24px; margin-bottom: 8px; text-transform: uppercase; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- Gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; min-height: 40px;
}
.chip:hover { color: var(--text); border-color: var(--dim); }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--surface); text-align: left;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  font-weight: 600; font-size: 15px; color: #fff; display: flex; flex-direction: column; gap: 2px;
}
.tile-cat { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: var(--text); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lb-inner { position: relative; }
.lb-media img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; background: #000; }
.lb-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.lb-caption { flex: 1; margin: 0; text-align: center; font-weight: 600; }
.lb-count { color: var(--dim); font-weight: 500; margin-left: 8px; }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
}
.lb-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.lb-close { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-media { aspect-ratio: 4 / 4.6; }
.about-copy > p { color: var(--muted); font-size: 17.5px; }
.lang-callout {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--yellow);
}
.lang-callout-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--blue); color: #fff; }
.lang-callout-title { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--accent-ink); margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lang-callout p:last-child { margin: 0; color: var(--muted); }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.review-card { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.review-card blockquote { margin: 0 0 14px; font-size: 17px; }
.review-card figcaption { color: var(--accent-ink); font-weight: 700; }
.review-card figcaption span { color: var(--dim); font-weight: 500; }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.towns-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 12px; font-weight: 700; color: var(--text); }
.town-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.town-list li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }

/* Full town list by county, folded away by default */
.town-all { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.town-all summary {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer;
  font-weight: 700; color: var(--link-ink); list-style: none; border-radius: 12px;
}
.town-all summary::-webkit-details-marker { display: none; }
.town-all summary:hover span { text-decoration: underline; text-underline-offset: 3px; }
.town-all summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.town-all-ic { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.town-all[open] .town-all-ic { transform: rotate(90deg); }
.town-groups { columns: 2 230px; column-gap: 28px; padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.town-group { break-inside: avoid; padding-top: 14px; }
.town-group h3 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin: 0 0 4px; }
.town-group p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
/* With the full list open, keep the map in view beside it */
@media (min-width: 900px) {
  .area-grid:has(.town-all[open]) .map-card { align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
}
@media (prefers-reduced-motion: reduce) { .town-all-ic { transition: none; } }

.map-card { margin: 0; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--map-bg); }
.map svg { width: 100%; height: 100%; display: block; font-family: var(--font-body); }
.map-card figcaption { color: var(--dim); font-size: 14px; padding: 10px 4px 0; }

.m-grid { fill: none; stroke: var(--map-grid); stroke-width: 0.25; }
.m-lake { fill: var(--map-lake); stroke: var(--map-lake-line); stroke-width: 0.45; }
.m-state { stroke: var(--map-state); stroke-width: 0.4; stroke-dasharray: 1.6 1.2; }
.m-area { fill: var(--map-area); stroke: var(--map-area-line); stroke-width: 0.8; }
.m-ring { fill: none; stroke: var(--map-ring); stroke-width: 0.35; stroke-dasharray: 1.4 1.4; }
.m-ring-label { fill: var(--dim); font-size: 3px; font-weight: 600; }
.m-ring-label-main { fill: var(--map-ring-main); font-size: 3.6px; font-weight: 700; }
.m-chicago { fill: url(#hatch); stroke: var(--map-chicago); stroke-width: 0.45; }
.m-hatch-line { stroke: var(--map-hatch); stroke-width: 0.6; }
.m-leader { stroke: var(--map-chicago); stroke-width: 0.35; }
.m-chicago-label { fill: var(--map-chicago-label); font-size: 3.8px; font-weight: 700; }
.m-chicago-sub { font-size: 3.2px; font-weight: 600; }
.m-region { fill: var(--map-region); font-size: 3.4px; font-weight: 700; letter-spacing: 0.6px; }
.m-lake-label { fill: var(--map-lake-label); font-size: 3.4px; font-style: italic; font-weight: 600; }
.m-town { fill: var(--map-town); }
.m-label { fill: var(--map-label); font-size: 3.1px; font-weight: 500; paint-order: stroke; stroke: var(--map-halo); stroke-width: 0.9px; stroke-linejoin: round; }
.m-home { fill: var(--blue-2); stroke: #fff; stroke-width: 0.5; }
.m-home-ring { fill: none; stroke: var(--map-area-line); stroke-width: 0.6; }
.m-home-label { fill: var(--map-home-label); font-size: 4.2px; font-weight: 800; paint-order: stroke; stroke: var(--map-halo); stroke-width: 1px; stroke-linejoin: round; }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(800px 420px at 100% 0%, var(--contact-glow), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.info-list { display: grid; gap: 14px; margin-top: 32px; }
.info-list li { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.info-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--blue-tint); color: var(--blue-ink); }
.info-label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.info-value { display: inline-block; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text); word-break: break-word; }
a.info-value:hover { color: var(--link-ink); }
.info-phone { font-family: var(--font-head); font-size: 30px; color: var(--hl-ink); letter-spacing: 0.01em; }
.info-plain { margin: 0; font-weight: 600; font-size: 16.5px; }
.info-note { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

.form-card { padding: 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-title { font-size: 30px; text-transform: uppercase; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 15px; margin-bottom: 7px; color: var(--text); padding: 0; }
.req { color: var(--danger); }
.opt { color: var(--dim); font-weight: 500; }

.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--input-bg); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 12px 14px; min-height: 50px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.field select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.field select option { background: var(--surface); color: var(--text); }
.field-error { min-height: 1.35em; margin: 4px 0 6px; font-size: 14px; color: var(--danger); line-height: 1.35; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--input-bg); color: var(--muted); font-weight: 600; font-size: 15px;
}
.pill input:checked + span { border-color: var(--yellow); color: var(--on-yellow); background: var(--yellow); }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.field .check {
  display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 0; cursor: pointer;
  font-size: 14.5px; line-height: 1.5; font-weight: 500; color: var(--muted);
}
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.check a { color: var(--blue-ink); }
.check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; font-size: 14px; color: var(--dim); }
.form-foot p { margin: 0; }
.form-status { margin: 14px 0 0; font-weight: 600; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-dev { padding: 12px 14px; border-radius: 10px; border: 1.5px dashed var(--ph-box-border); color: var(--dev-ink); background: var(--ph-box-bg); }
.form-status.is-error { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--danger); color: var(--danger); background: var(--danger-bg); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 30px 10px; outline: none; }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); margin-bottom: 18px; }
.success-icon .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.form-success h3 { font-size: 32px; text-transform: uppercase; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: #060607; color: var(--muted); }
.stripe { height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #0a0a0b 14px 28px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand .brand { margin-bottom: 8px; }
.tag-holder { margin: 0 0 14px; min-height: 0; }
.tag-holder:has(.tag[hidden]) { display: none; }
.footer-brand p { max-width: 30em; font-size: 15.5px; }
.footer-head { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; margin-bottom: 20px; }
.footer-links a { text-decoration: none; color: var(--text); font-weight: 500; }
.footer-links a:hover { color: var(--yellow); }
.lang-toggle-footer button { min-width: 0; padding: 7px 12px; letter-spacing: 0.02em; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: var(--dim); }
.footer-bottom p { margin: 0; }

/* ---------- Mobile action bar ---------- */
/* Netlify's free plan pins a "Powered by Netlify" badge to the bottom-right
   corner. main.js measures it into --host-badge-clear (0px when there's no
   badge), and the phone bar and page bottom make room so it covers nothing. */
:root { --host-badge-clear: 0px; }
body { padding-bottom: var(--host-badge-clear); }

.action-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px max(calc(10px + env(safe-area-inset-bottom)), var(--host-badge-clear));
  background: rgba(10, 10, 11, 0.94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .2s ease;
}
.action-bar .btn { min-height: 52px; font-size: 17px; }
.action-bar.is-hidden { transform: translateY(110%); }

.noscript { padding: 20px; text-align: center; background: var(--yellow); color: var(--on-yellow); font-weight: 700; margin: 0; }

/* ---------- Language switch ----------
   One look everywhere: white pill + blue globe = "change language".
   It deliberately differs from the yellow (estimate) and blue (call) buttons. */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lang-bg); color: var(--lang-ink);
  font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.1; white-space: nowrap; text-decoration: none;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow .15s ease, background-color .15s ease;
}
.lang-switch .ic { color: var(--blue); }
.lang-switch .icon { width: 1.3em; height: 1.3em; }
.lang-switch:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2); }
.lang-switch:focus-visible { outline-color: var(--yellow); }

.lang-strip { background: var(--blue); color: #fff; }
.lang-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.lang-strip-text { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: 18px; }
.lang-strip-text .icon { width: 1.35em; height: 1.35em; }
.lang-strip .lang-switch { min-height: 44px; }

.lang-switch-block { width: 100%; min-height: 56px; font-size: 19px; margin-bottom: 8px; }

/* ---------- Light / dark toggle ----------
   Header: an icon button (moon in light mode, sun in dark mode).
   Phone menu: a "Dark mode" row with an on/off switch. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; padding: 0; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--yellow); color: var(--yellow); }
.theme-toggle .icon { width: 22px; height: 22px; }
.theme-ic-sun, :root[data-theme="dark"] .theme-ic-moon { display: none; }
:root[data-theme="dark"] .theme-ic-sun { display: inline-flex; }

.theme-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-bottom: 8px;
  padding: 8px 14px 8px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); cursor: pointer; text-align: left;
  font-family: var(--font-body); font-weight: 700; font-size: 19px; line-height: 1.1;
}
.theme-row .ic { color: var(--yellow); }
.theme-row .icon { width: 1.3em; height: 1.3em; }
.theme-row-label { flex: 1; }
.switch { position: relative; flex: none; width: 54px; height: 32px; border-radius: 999px; background: var(--line-2); transition: background-color .15s ease; }
.switch::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; transition: transform .15s ease, background-color .15s ease;
}
[aria-pressed="true"] > .switch { background: var(--yellow); }
[aria-pressed="true"] > .switch::after { transform: translateX(22px); background: var(--on-yellow); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1339px) {
  .main-nav { display: none; }
  .header-actions, .main-nav + .header-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  body { font-size: 16.5px; padding-bottom: calc(66px + max(calc(10px + env(safe-area-inset-bottom)), var(--host-badge-clear))); }
  .header-call, .header-estimate { display: none; }
  .action-bar { display: grid; }
  .brand-mark { width: 40px; height: 40px; font-size: 21px; border-radius: 10px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 13px; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; padding-bottom: 64px; }
  .hero-media { max-width: 520px; width: calc(100% - 24px); margin: 0 auto; }
  .hero-media.no-photo { display: none; } /* the services section follows right after */
  .media-frame { aspect-ratio: 4 / 3; }

  .why-grid { grid-template-columns: 1fr; }
  .why-item { padding: 22px 4px; }
  .why-item + .why-item { border-left: 0; border-top: 1px solid var(--line); }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .steps { grid-template-columns: 1fr; }
  .about-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile-cap { font-size: 13.5px; padding: 22px 10px 9px; }
  .header-theme { display: none; } /* phones use the "Dark mode" row in the menu */
  .form-card { padding: 22px 18px; border-radius: 16px; }
  .about-media.no-photo { padding: 32px 20px; }
  .brand-card-logo { width: 176px; }
  .brand-card-name span:first-child { font-size: 30px; }
  .brand-card-sub { font-size: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .info-phone { font-size: 26px; }
  .draft-banner { font-size: 13px; }
  .lb-btn { width: 44px; height: 44px; }
}

@media (max-width: 400px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; font-size: 19px; border-radius: 9px; }
  .brand-name { font-size: 15.5px; }
  .brand-sub { font-size: 11px; letter-spacing: 0.1em; margin-top: 3px; }
  .header-lang { padding: 6px 12px; font-size: 16px; gap: 6px; min-height: 44px; }
  .menu-btn { width: 44px; height: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lang-strip-text { font-size: 16.5px; }
}

@media (max-width: 370px) {
  .header-lang .ic { display: none; }
  .lang-strip-inner { gap: 8px 10px; }
  .lang-strip-text { font-size: 16px; gap: 6px; }
  .lang-strip .lang-switch { padding: 8px 13px; font-size: 16px; gap: 6px; }
}

@media (max-width: 330px) {
  .site-header .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
