/* ==========================================================================
   KPC & Commercial Inc. — website styles
   --------------------------------------------------------------------------
   01 Tokens        05 Hero             09 About
   02 Base          06 Who we serve     10 Emergency + testimonial
   03 Primitives    07 Services (tabs)  11 Contact + form
   04 Header        08 Approach         12 Footer
                                        13 Motion · 14 Responsive
   ========================================================================== */

/* 01 — Tokens: change the brand here ------------------------------------- */
:root {
  /* neutrals — charcoal from the logo, with a faint green cast */
  --white: #FFFFFF;
  --mist: #F3F7F4;
  --line: #E0E8E2;
  --line-strong: #C8D4CB;
  --field-border: #84938A;
  --dot: #C2D1C6;
  --ink: #111A14;            /* headings */
  --body: #45524A;           /* body copy */
  --muted: #5E6B62;          /* labels, captions */
  --dark-1: #0C1610;         /* footer and dark panels */
  --dark-2: #10241A;
  --on-dark: #C5D2C9;
  --on-dark-muted: #B3C2B8;
  --foot-muted: #93A398;
  --shadow-rgb: 17, 26, 20;

  /* brand green — emerald, sampled from the logo (#0B7C34) */
  --primary: #0B7C34;        /* buttons and solid fills */
  --on-primary: #FFFFFF;     /* text on a primary fill */
  --primary-hover: #086329;
  --primary-text: #0A6B2D;   /* green text and links (AA on white, tint and mist) */
  --primary-display: #0B7C34;/* large headline accent */
  --primary-ui: #0B7C34;     /* borders, icons, focus rings (3:1 on white) */
  --primary-rgb: 11, 124, 52;
  --tint: #E6F4EA;           /* pale wash behind icons and pills */
  --tint-strong: #C5E6CF;
  --accent: #2EBD6B;         /* small bright details */
  --accent-rgb: 46, 189, 107;
  --accent-on-dark: #86E0AE; /* green text on dark panels */
  --deep: #0B5126;           /* light end of the dark panel gradient */

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(var(--shadow-rgb), .04), 0 2px 10px rgba(var(--shadow-rgb), .04);
  --shadow-md: 0 2px 6px rgba(var(--shadow-rgb), .05), 0 14px 36px rgba(var(--shadow-rgb), .09);
  --shadow-lg: 0 4px 10px rgba(var(--shadow-rgb), .05), 0 28px 64px rgba(var(--shadow-rgb), .14);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 90px;
  --section-y: clamp(72px, 9vw, 120px);
}

/* 02 — Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }

a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

[hidden] { display: none !important; }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.sprite { position: absolute; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: #fff; font: 600 .9375rem/1 var(--font-head);
}
.skip-link:focus { top: 12px; }

/* 03 — Primitives --------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2,
.about__copy h2,
.contact__info h2 {
  margin-top: 18px;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
}
.section-head .lead { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 5vw, 72px); align-items: end;
}
.section-head--split .lead { margin-top: 0; }

.lead { font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.6; }

/* icons */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-box {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--tint); color: var(--primary-text);
}
.icon-box .icon { width: 24px; height: 24px; }

.check-dot {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--tint); color: var(--primary-text);
}
.check-dot .icon { width: 13px; height: 13px; stroke-width: 2.5; }

/* pill badge */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  background: var(--tint); color: var(--primary-text);
  font: 600 .8125rem/1.2 var(--font-head); letter-spacing: .01em;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .18); }
.pill--dark { background: rgba(var(--accent-rgb), .14); color: var(--accent-on-dark); }
.pill--dark .pill__dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 12px;
  font: 600 .9375rem/1 var(--font-head); letter-spacing: -.005em;
  white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--lg { min-height: 54px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }

.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(var(--primary-rgb), .28), 0 8px 20px rgba(var(--primary-rgb), .22); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 1px 2px rgba(var(--primary-rgb), .3), 0 12px 26px rgba(var(--primary-rgb), .28); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--tint); transform: translateY(-1px); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--outline-light:focus-visible, .btn--white:focus-visible { outline-color: #fff; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* small tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 5px 11px; border-radius: 999px;
  background: var(--mist); border: 1px solid var(--line);
  font-size: .8125rem; font-weight: 500; line-height: 1.3; color: var(--body);
}
.tags--inline { margin-top: 10px; }

/* floating "fact" card (hero + about) */
.fact {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px 11px 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.fact p { line-height: 1.25; }
.fact strong { display: block; font: 800 1.125rem/1.2 var(--font-head); letter-spacing: -.02em; color: var(--ink); }
.fact span:not(.icon-box) { display: block; font-size: .8125rem; color: var(--muted); }

/* 04 — Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
          backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(var(--shadow-rgb), .06); }

.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

/* Horizontal logo: the mark (skyline + KPC) with the logo's own "& COMMERCIAL INC."
   lettering sitting on the same baseline as the KPC letters, and the tagline beneath. */
.brand { display: inline-grid; flex: none; justify-items: stretch; row-gap: 7px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__row { display: flex; align-items: flex-end; gap: 10px; }
.brand__mark, .brand__name { flex: none; width: auto; }
.brand__mark { height: 54px; }
.brand__name { height: 12.5px; }
.brand__tag {
  display: flex; align-items: center; gap: 9px;
  font: 700 .5625rem/1 var(--font-head); letter-spacing: .24em; text-transform: uppercase; color: var(--primary-text);
}
.brand__tag::before, .brand__tag::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .45; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2px; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 10px; color: var(--body); font-weight: 500; font-size: .9375rem; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav__list a:hover { color: var(--ink); background: var(--mist); text-decoration: none; }
.nav__list a[aria-current="true"] { color: var(--primary-text); }
.nav__extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
  color: var(--ink); font: 600 .9375rem/1 var(--font-head); white-space: nowrap;
}
.header__phone .icon { width: 18px; height: 18px; color: var(--primary-ui); }

.nav-toggle {
  display: none; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* 05 — Hero --------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow-x: clip;
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(56px, 7vw, 88px);
}
/* blueprint backdrop: fine dots + a wide faint grid, faded out toward the copy */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(circle, var(--dot) 1.1px, transparent 1.3px),
    linear-gradient(to right, rgba(var(--primary-rgb), .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--primary-rgb), .07) 1px, transparent 1px);
  background-size: 26px 26px, 104px 104px, 104px 104px;
  background-position: 0 0, 12px 12px, 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 76% 26%, #000 0%, transparent 74%);
          mask-image: radial-gradient(ellipse 70% 80% at 76% 26%, #000 0%, transparent 74%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; right: -12%; top: -30%;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--primary-rgb), .10), transparent);
}

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(40px, 6vw, 84px); align-items: center;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.75rem, 4.3vw, 3.875rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.04em;
}
.hero h1 span { display: block; }
.text-accent { color: var(--primary-display); }
.hero .lead { margin-top: 24px; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.checks {
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line);
}
.checks li { display: inline-flex; align-items: center; gap: 9px; font-size: .9375rem; font-weight: 500; color: var(--ink); }

/* photo composition */
.hero__visual { position: relative; padding: 0 0 46px 38px; }
.hero__visual::before,
.hero__visual::after {            /* blueprint corner brackets */
  content: ""; position: absolute; width: 66px; height: 66px; pointer-events: none;
}
.hero__visual::before { top: -16px; left: 22px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-top-left-radius: 26px; }
.hero__visual::after { right: -16px; bottom: 30px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); border-bottom-right-radius: 26px; }

.hero__photo { overflow: hidden; background: var(--mist); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { aspect-ratio: 1 / 1.04; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.hero__photo--main img { object-position: 32% 50%; }
.hero__photo--inset {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  width: 44%; aspect-ratio: 4 / 3;
  border: 6px solid #fff; border-radius: 20px; box-shadow: var(--shadow-md);
}
.fact--services { top: 30px; right: -22px; }
.fact--plans { right: 22px; bottom: 14px; display: block; padding: 13px 15px 15px; }
.fact__label { font: 600 .8125rem/1.2 var(--font-head); color: var(--ink); }
.fact__chips { display: flex; gap: 6px; margin-top: 9px; }
.fact__chips li {
  padding: 5px 10px; border-radius: 999px; background: var(--tint);
  font: 600 .75rem/1.2 var(--font-head); color: var(--primary-text);
}

/* trust strip under the hero */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(52px, 6vw, 84px); overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.trust li { display: flex; align-items: flex-start; gap: 14px; padding: 24px 22px; background: #fff; }
.trust strong { display: block; font: 700 1rem/1.3 var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.trust p span { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.45; color: var(--muted); }

/* 06 — Who we serve ------------------------------------------------------- */
.serve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.serve-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.serve-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.serve-card__media { aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--line); }
.serve-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.serve-card:hover .serve-card__media img { transform: scale(1.04); }
.serve-card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 28px 28px; }
.serve-card__body .icon-box { margin-top: -26px; width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); color: var(--primary-ui); }
.serve-card__body h3 { margin-top: 18px; font-size: 1.375rem; font-weight: 700; }
.serve-card__body > p { margin-top: 10px; font-size: 1rem; line-height: 1.6; }
.serve-card__body .tags-label {
  margin-top: auto; padding-top: 22px;
  font: 600 .75rem/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.serve-card__body .tags { margin-top: 10px; }

/* 07 — Services (tabs) ---------------------------------------------------- */
.tabs { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); overflow: hidden; }
html:not(.js) .tabs__side { display: none; }               /* no JS: plain stacked groups */

.tabs__side { display: flex; flex-direction: column; background: var(--mist); }
.tabs__list { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.tabs__help { margin: auto 16px 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tabs__help strong { display: block; font: 700 1rem/1.3 var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.tabs__help p { margin-top: 6px; font-size: .875rem; line-height: 1.5; }
.tabs__help .btn { width: 100%; min-height: 44px; margin-top: 16px; }
.tab {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 9px 12px 9px 9px;
  border: 1px solid transparent; border-radius: 14px; background: transparent;
  color: var(--body); font: 600 .9375rem/1.25 var(--font-head); letter-spacing: -.005em; text-align: left; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tab:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.tab__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--primary-text); transition: inherit; }
.tab__icon .icon { width: 20px; height: 20px; }
.tab__label { flex: 1; }
.tab__count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font: 600 .75rem/1 var(--font-body); color: var(--muted);
}
.tab[aria-selected="true"],
.tabs:not(.is-ready) .tab:first-child { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab[aria-selected="true"] .tab__icon,
.tabs:not(.is-ready) .tab:first-child .tab__icon { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tab[aria-selected="true"] .tab__count,
.tabs:not(.is-ready) .tab:first-child .tab__count { background: var(--tint); border-color: var(--tint); color: var(--primary-text); }

.panel { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding: 36px 36px 36px 40px; }
.panel + .panel { border-top: 1px solid var(--line); }
html.js .panel + .panel { border-top: 0; }
html.js .tabs:not(.is-ready) .panel + .panel { display: none; }   /* avoid a flash before script.js runs */

.panel__body { display: flex; flex-direction: column; }
.panel__head h3 { font-size: 1.5rem; font-weight: 700; }
.panel__head p { margin-top: 8px; font-size: 1rem; line-height: 1.55; }

.svc-list { margin-top: 20px; }
.svc { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.svc .icon-box { width: 44px; height: 44px; border-radius: 12px; }
.svc .icon-box .icon { width: 22px; height: 22px; }
.svc h4 { font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.svc p { margin-top: 3px; font-size: .9375rem; line-height: 1.5; }

.panel__cta {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  font-size: .9375rem; color: var(--muted);
}
.panel__cta a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font: 600 .9375rem/1.2 var(--font-head); }
.panel__cta .icon { width: 16px; height: 16px; transition: transform .18s ease; }
.panel__cta a:hover .icon { transform: translateX(3px); }

.panel__media { position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__media figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .95);
  font-size: .8125rem; line-height: 1.3; color: var(--muted); box-shadow: var(--shadow-sm);
}
.panel__media figcaption span { margin-right: 6px; font: 700 .8125rem/1.3 var(--font-head); color: var(--ink); }

/* 08 — Approach / commitment --------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 30px 30px 32px; }
.step:not(:last-child)::after {     /* dashed connector to the next step */
  content: ""; position: absolute; top: 54px; right: -25px; width: 24px; border-top: 2px dashed var(--line-strong);
}
.step__num { position: absolute; top: 26px; right: 28px; font: 800 2.75rem/1 var(--font-head); letter-spacing: -.04em; color: var(--tint-strong); }
.step h3 { margin-top: 22px; font-size: 1.25rem; font-weight: 700; }
.step p { margin-top: 10px; font-size: 1rem; line-height: 1.6; }

.pledge {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-top: 24px; padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3.5vw, 48px); overflow: hidden;
}
.pledge::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--primary), var(--accent)); }
.pledge__quote { font: 600 clamp(1.1875rem, 1.7vw, 1.4375rem)/1.45 var(--font-head); letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.pledge__text p + p { margin-top: 12px; font-size: 1rem; }
.pledge__values { display: grid; gap: 12px; }
.pledge__values li { display: flex; align-items: center; gap: 10px; font: 600 1rem/1.2 var(--font-head); color: var(--ink); white-space: nowrap; }

/* 09 — About -------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(40px, 6vw, 88px); align-items: center; }

.about__media { position: relative; padding: 0 30px 30px 0; isolation: isolate; }
.about__media::before {           /* dotted block peeking out behind the photo */
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; width: 58%; height: 58%; border-radius: 0 0 28px 0;
  background-image: radial-gradient(circle, var(--dot) 1.4px, transparent 1.6px); background-size: 16px 16px;
}
.about__media img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-md); }
.brand-card {
  display: grid; place-items: center; padding: clamp(22px, 3.4vw, 46px);
  background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-md);
}
.about__media .brand-card img { width: 100%; max-width: 470px; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }

.about__copy .lead { margin-top: 20px; color: var(--ink); font-weight: 500; }
.about__copy > p:not(.lead):not(.pill) { margin-top: 16px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.values h3 { margin-top: 16px; font-size: 1.0625rem; font-weight: 700; }
.values p { margin-top: 6px; font-size: .9375rem; line-height: 1.5; }

/* 10 — Emergency + testimonial ------------------------------------------- */
.emergency {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 5vw, 68px); border-radius: 32px;
  background: linear-gradient(135deg, var(--dark-1) 0%, var(--dark-2) 52%, var(--deep) 100%);
  color: var(--on-dark); box-shadow: var(--shadow-lg);
}
.emergency::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .22) 1.1px, transparent 1.3px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 88% 12%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 90% at 88% 12%, #000 0%, transparent 72%);
}
.emergency h2 { margin-top: 18px; color: #fff; font-size: clamp(1.875rem, 3.2vw, 2.625rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.028em; }
.emergency__copy > p:not(.pill) { margin-top: 18px; max-width: 34rem; }
.emergency__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.em-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.em-item { padding: 22px 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); }
.em-item .icon-box { width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--accent-rgb), .16); color: var(--accent-on-dark); }
.em-item .icon-box .icon { width: 22px; height: 22px; }
.em-item h3 { margin-top: 16px; color: #fff; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.em-item p { margin-top: 6px; font-size: .9375rem; line-height: 1.5; color: var(--on-dark-muted); }

.testimonial { max-width: 780px; margin: clamp(56px, 7vw, 96px) auto 0; text-align: center; }
.testimonial .icon-box { border-radius: 50%; }
.testimonial blockquote { margin-top: 22px; }
.testimonial blockquote p { font: 600 clamp(1.1875rem, 1.9vw, 1.5rem)/1.5 var(--font-head); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.testimonial figcaption { margin-top: 18px; font-size: .9375rem; color: var(--muted); }

/* 11 — Contact + form ----------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__info .lead { margin-top: 18px; }

.contact-list { margin-top: 34px; border-bottom: 1px solid var(--line-strong); }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.contact-list .icon-box { background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--primary-ui); }
.contact-list p { min-width: 0; line-height: 1.35; }
.contact-list__label { display: block; margin-bottom: 3px; font: 600 .75rem/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list__value, .contact-list [data-todo] { font: 600 1.0625rem/1.35 var(--font-head); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a { display: inline-block; padding-block: 4px; }
.contact-list__sep { color: var(--muted); font-weight: 400; }
.contact-list a:hover { color: var(--primary-text); }

.form { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 26px; }
.form__head h3 { font-size: 1.5rem; font-weight: 700; }
.form__head p { font-size: .875rem; color: var(--muted); }
.req { color: var(--primary-text); font-weight: 700; }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
fieldset.field { margin: 0; padding: 0; border: 0; }

.field > label, .field > legend {
  display: block; padding: 0; margin-bottom: 8px;
  font: 600 .875rem/1.25 var(--font-head); color: var(--ink);
}
.field input:not([type="radio"]), .field select, .field textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111A14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field ::placeholder { color: #6A776D; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:not([type="radio"]):focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-ui); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .18);
}

/* segmented radio groups */
.seg { display: grid; gap: 8px; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg--2 { grid-template-columns: repeat(2, 1fr); }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 10px;
  border: 1px solid var(--field-border); border-radius: var(--radius-sm); background: #fff;
  color: var(--body); font: 600 .9375rem/1.2 var(--font-head); text-align: center;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg span .icon { width: 18px; height: 18px; }
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { border-color: var(--primary-ui); background: var(--tint); color: var(--primary-text); box-shadow: inset 0 0 0 1px var(--primary-ui); }
.seg input:focus-visible + span { outline: 3px solid var(--primary-ui); outline-offset: 2px; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form__submit { width: 100%; margin-top: 24px; }
.form__submit[aria-busy="true"] { cursor: progress; opacity: .75; transform: none; }
form[data-state="sending"] .form__grid { opacity: .6; pointer-events: none; transition: opacity .2s ease; }

.form__status { margin-top: 16px; padding: 13px 16px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .9375rem; font-weight: 500; line-height: 1.45; }
.form__status:empty { display: none; }
.form__status[data-state="success"] { background: #E7F7F1; border-color: #BDE7D6; color: #0B5A43; }
.form__status[data-state="error"] { background: #FDEEEC; border-color: #F6CDC7; color: #A8261B; }

/* 12 — Footer ------------------------------------------------------------- */
.site-footer { background: var(--dark-1); color: var(--on-dark-muted); padding-top: clamp(56px, 7vw, 88px); font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(44px, 6vw, 72px); }
.footer__logo { display: inline-block; padding: 16px 20px 14px; border-radius: var(--radius); background: #fff; }
.footer__logo img { width: 178px; height: auto; }
.footer__brand p { margin: 8px 0 24px; max-width: 22rem; line-height: 1.6; }
.footer__brand .footer__slogan { margin: 22px 0 0; color: #fff; font: 700 1.0625rem/1.3 var(--font-head); letter-spacing: -.01em; }
.footer__col h2 { margin-bottom: 14px; color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.footer__col a, .footer__contact span { color: var(--on-dark-muted); }
.footer__col li a { display: inline-flex; align-items: center; min-height: 36px; }
.footer__col a:hover { color: #fff; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; padding-block: 6px; line-height: 1.5; }
.footer__contact li a { min-height: 0; }
.footer__contact li a[target] { line-height: 1.5; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.site-footer :focus-visible { outline-color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; color: var(--foot-muted);
}

/* 13 — Motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* scroll reveal — only once script.js has confirmed JS is running */
  html.js [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), box-shadow .25s ease;
  }
  html.js [data-reveal].is-visible { opacity: 1; transform: none; }
  html.js .serve-card[data-reveal].is-visible:hover { transform: translateY(-4px); transition-delay: 0ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 14 — Responsive --------------------------------------------------------- */

/* services browser: side-by-side tabs on wide screens */
@media (min-width: 960px) {
  html.js .tabs { display: grid; grid-template-columns: 312px minmax(0, 1fr); min-height: 580px; }
  html.js .tabs__side { border-right: 1px solid var(--line); }
  html.js .panel { height: 100%; }
  .contact__info { position: sticky; top: calc(var(--header-h) + 32px); }
}

@media (max-width: 1239px) {
  .header__phone span { display: none; }
  .header__phone { width: 46px; padding: 0; justify-content: center; border: 1px solid var(--line-strong); border-radius: 12px; }
  .nav__list a { padding: 0 11px; }
  .hero__photo--inset { width: 36%; }
}

/* collapse the primary nav into a menu (keep in step with the 1100px query in script.js) */
@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  .brand__mark { height: 50px; }
  .brand__name { height: 11.5px; }
  .brand__tag { display: none; }
  /* comfortable tap targets on touch layouts */
  .footer__col li a { min-height: 44px; }
  .footer__contact li { min-height: 44px; align-items: center; }
  .footer__contact .icon { margin-top: 0; }
  .panel__cta a { min-height: 44px; }
  .contact-list a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .nav-toggle { display: grid; }
  .header__actions { margin-left: auto; }
  .header__phone span { display: inline; }
  .header__phone { width: auto; padding: 0 10px; border: 0; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; display: none;
    padding: 10px var(--gutter) 22px; background: #fff;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(var(--shadow-rgb), .12);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { width: 100%; min-height: 52px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
  .nav__list a:hover { background: transparent; color: var(--primary-text); }
  .nav__extra { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
  .nav__phone {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); font: 600 .9375rem/1 var(--font-head);
  }
  .nav__phone .icon { width: 18px; height: 18px; color: var(--primary-ui); }

  /* without JS there is no toggle: show the links inline under the bar */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header__inner { flex-wrap: wrap; }
  html:not(.js) .nav { position: static; display: block; width: 100%; order: 3; padding: 0 0 12px; border: 0; box-shadow: none; }
}

@media (max-width: 739px) {
  .header__phone span { display: none; }
  .header__phone { width: 46px; padding: 0; justify-content: center; border: 1px solid var(--line-strong); border-radius: 12px; }
}

@media (max-width: 959px) {
  /* hero stacks */
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .hero h1 { font-size: clamp(2.125rem, 8.4vw, 3.75rem); }
  .hero .lead { max-width: 40rem; }
  .hero__visual { padding: 0 0 44px 28px; }
  .hero__photo--main { aspect-ratio: 16 / 11; }
  .hero__photo--inset { width: 36%; }
  .fact--services { right: -10px; }
  .trust { grid-template-columns: repeat(2, 1fr); }

  .section-head--split { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }

  /* services browser: tabs across the top, panel stacks */
  .tabs__side { border-bottom: 1px solid var(--line); }
  .tabs__help { display: none; }
  .tabs__list { flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .tab { width: auto; flex: 1 1 30%; min-height: 56px; }
  .panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px; }
  .panel__media { min-height: 0; aspect-ratio: 16 / 9; }

  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .about__media { max-width: 620px; }
  .about__media img { aspect-ratio: 16 / 11; }

  .emergency { grid-template-columns: minmax(0, 1fr); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  /* who-we-serve cards go horizontal, one per row */
  .serve-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .serve-card { flex-direction: row; }
  .serve-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 260px; }
  .serve-card__body { padding: 26px 28px; }
  .serve-card__body .icon-box { margin-top: 0; box-shadow: none; background: var(--tint); color: var(--primary-text); }
  .serve-card__body .tags-label { margin-top: 0; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .step:not(:last-child)::after { top: auto; bottom: -17px; right: auto; left: 53px; width: 0; height: 16px; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .pledge { grid-template-columns: minmax(0, 1fr); }
  .pledge__values { grid-auto-flow: column; justify-content: start; gap: 12px 28px; }
}

@media (max-width: 639px) {
  body { font-size: 1rem; }
  .site-header .container { width: min(100% - 32px, var(--container)); }
  .header__inner { gap: 12px; }
  .header__actions { gap: 8px; }
  .header__phone { display: none; }
  .brand__row { gap: 8px; }
  .brand__mark { height: 46px; }
  .brand__name { height: 10px; }
  .header__cta { min-height: 44px; padding: 0 16px; }

  .hero__cta .btn { flex: 1 1 100%; }
  .checks { flex-direction: column; gap: 12px; }
  .hero__visual { padding: 0 0 40px 18px; }
  .hero__visual::before { left: 4px; top: -12px; width: 48px; height: 48px; border-top-left-radius: 22px; }
  .hero__visual::after { right: -10px; bottom: 28px; width: 48px; height: 48px; border-bottom-right-radius: 22px; }
  .hero__photo--main { aspect-ratio: 1 / 1.02; border-radius: 22px; }
  .hero__photo--inset { width: 42%; border-width: 5px; border-radius: 16px; }
  .fact { padding: 9px 14px 9px 9px; border-radius: 14px; }
  .fact .icon-box { width: 40px; height: 40px; border-radius: 11px; }
  .fact .icon-box .icon { width: 20px; height: 20px; }
  .fact strong { font-size: 1rem; }
  .fact--services { top: 18px; right: -8px; }
  .fact--plans { right: 10px; bottom: 6px; max-width: 46%; padding: 11px 12px 12px; }
  .fact__chips { flex-wrap: wrap; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .trust li { padding: 18px; }

  .serve-card { flex-direction: column; }
  .serve-card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .serve-card__body { padding: 0 22px 24px; }
  .serve-card__body .icon-box { margin-top: -26px; background: #fff; color: var(--primary-ui); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
  .serve-card__body .tags-label { padding-top: 20px; }

  .tabs { border-radius: 20px; }
  .tabs__list { gap: 6px; padding: 10px; }
  .tab { flex: 1 1 45%; min-height: 52px; gap: 10px; padding: 7px 10px 7px 7px; font-size: .875rem; }
  .tab__icon { width: 36px; height: 36px; border-radius: 10px; }
  .tab__count { display: none; }
  .panel { padding: 24px 20px; gap: 24px; }
  .panel__head h3 { font-size: 1.375rem; }
  .svc { gap: 14px; }

  .step { padding: 26px 24px 28px; }
  .pledge__values { grid-auto-flow: row; }

  .about__media { padding: 0 18px 18px 0; }
  .about__media img { aspect-ratio: 4 / 3.4; border-radius: 22px; }
  .values { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .values li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .values .icon-box { grid-row: span 2; }
  .values h3 { margin-top: 2px; }
  .values p { margin-top: 4px; }

  .emergency { border-radius: 24px; padding: 30px 22px; }
  .emergency__cta .btn { flex: 1 1 100%; }
  .em-grid { gap: 10px; }
  .em-item { padding: 18px 16px; border-radius: 16px; }
  .em-item h3 { font-size: 1rem; }
  .em-item p { font-size: .875rem; }

  .form { border-radius: 20px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .seg--3 span .icon { display: none; }
  .seg--3 span { padding: 0 6px; font-size: .875rem; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 459px) {
  .header__cta-long { display: none; }
  .header__cta { padding: 0 14px; }
  .brand__name { height: 9px; }
  .nav-toggle { width: 44px; height: 44px; }
}

@media (max-width: 389px) {
  .brand__row { gap: 6px; }
  .brand__name { height: 8px; }
}

@media (max-width: 374px) {
  .header__inner { gap: 8px; }
  .brand__name { display: none; }      /* the mark itself already reads KPC */
  .header__cta { padding: 0 12px; font-size: .875rem; }
}

@media (max-width: 339px) {
  .header__cta { display: none; }      /* still available inside the menu */
  .seg--3 { grid-template-columns: minmax(0, 1fr); }
}

