/* Kentwood Plumbing & Heating — site styles
   Plain CSS, no build step. Brand: KPH blue (from the original "K" logo) + sign red. */

:root {
  --blue-950: #0f1f47;
  --blue-800: #1a3478;
  --blue-700: #2142a0;
  --blue-100: #dfe6f7;
  --blue-50:  #f0f3fb;
  --red-700:  #a32c16;
  --red-600:  #b8321a;
  --sand-50:  #faf8f3;
  --sand-100: #f2eee3;
  --sand-300: #ddd5bf;
  --ink:      #1b2130;
  --muted:    #4b5366;
  --white:    #ffffff;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 31, 71, .06), 0 4px 14px rgba(15, 31, 71, .08);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
}

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

a { color: var(--blue-700); text-underline-offset: .15em; }
a:hover { color: var(--blue-950); }

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

h1, h2, h3 { line-height: 1.15; color: var(--blue-950); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue-950); color: var(--white); padding: .6em 1em; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--sand-300);
  box-shadow: 0 1px 8px rgba(15, 31, 71, .05);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 72px; max-width: 1280px;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--blue-950);
  margin-right: auto;
}
.brand svg { flex: none; width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.site-nav ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5em .6em; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--blue-50); color: var(--blue-800); }
.site-nav a[aria-current="page"] { color: var(--blue-700); background: var(--blue-50); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-call { background: var(--red-600); color: var(--white); }
.btn-call:hover { background: var(--red-700); color: var(--white); }
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-800); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--blue-800); background: transparent; }
.btn-outline:hover { background: var(--blue-50); }
.btn-light { background: var(--white); color: var(--blue-950); }
.btn-light:hover { background: var(--blue-100); color: var(--blue-950); }

.header-call { white-space: nowrap; }

/* Mobile header: brand + call on one row, nav as a scrollable strip underneath */
@media (max-width: 1240px) {
  .header-inner { flex-wrap: wrap; gap: .5rem 1rem; padding-top: .6rem; }
  .site-nav {
    order: 3; width: calc(100% + 40px); margin: 0 -20px; padding: 0 12px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .site-nav li:last-child { padding-right: 2.5rem; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { gap: 0; padding-bottom: .35rem; }
  .site-nav a { padding: .45em .7em; font-size: .95rem; }
}
@media (max-width: 480px) {
  .brand svg { width: 38px; height: 38px; }
  .brand-name strong { font-size: 1rem; white-space: normal; max-width: 10.5rem; }
  .brand-name span { display: none; }
  .header-call { padding: .6em .9em; font-size: .95rem; }
  .header-call .call-number { display: none; }
}

/* ---------- Sections ---------- */

main { display: block; }
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--sand-100); }
.section-blue { background: var(--blue-950); color: var(--blue-100); }
.section-blue h2, .section-blue h3 { color: var(--white); }
.section-blue a:not(.btn) { color: var(--white); }

.eyebrow {
  display: inline-block; margin-bottom: .75rem;
  font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red-600);
}
.section-blue .eyebrow { color: #ffb4a3; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { background: var(--blue-950); color: var(--blue-100); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero h1 { color: var(--white); margin-bottom: .35em; }
.page-hero p { font-size: 1.15rem; max-width: 44rem; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: var(--blue-100); }
.breadcrumb a { color: var(--white); }

/* ---------- Home hero ---------- */

.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(33, 66, 160, .55), transparent 60%),
    var(--blue-950);
  color: var(--blue-100);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); }
.hero .lede { color: var(--blue-100); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.hero-meta { font-size: .95rem; color: var(--blue-100); margin: 0; }
.hero-meta strong { color: var(--white); }
.hero-photo { justify-self: center; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-photo { justify-self: start; }
}

/* ---------- Snapshot (small archival photos shown at natural size) ---------- */

.snapshot {
  margin: 0; display: inline-block;
  background: var(--white); padding: 10px 10px 8px; border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 24px rgba(15,31,71,.16);
  max-width: 100%;
}
.snapshot img { border-radius: 2px; }
.snapshot figcaption { font-size: .85rem; color: var(--muted); padding-top: .5rem; max-width: 30ch; }
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(1.5deg); }
.snapshots { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }

/* ---------- Trust strip ---------- */

.trust { background: var(--white); border-bottom: 1px solid var(--sand-100); }
.trust ul {
  list-style: none; margin: 0; padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1rem;
}
.trust li { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; color: var(--blue-950); white-space: nowrap; }
@media (max-width: 1100px) { .trust ul { justify-content: flex-start; gap: .75rem 1.75rem; } }
.trust svg { width: 20px; height: 20px; color: var(--red-600); flex: none; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--sand-100); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card-link { display: inline-block; margin-top: .9rem; font-weight: 700; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700);
}
.card .icon svg { width: 24px; height: 24px; }

/* ---------- Split feature ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.stat-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.stat {
  flex: 1 1 140px; background: var(--blue-50); border-radius: var(--radius); padding: 1rem 1.2rem;
}
.section-blue .stat { background: rgba(255,255,255,.07); }
.stat strong { display: block; font-size: 2rem; line-height: 1.1; color: var(--blue-700); font-weight: 800; }
.section-blue .stat strong { color: var(--white); }
.stat span { font-size: .92rem; color: var(--muted); }
.section-blue .stat span { color: var(--blue-100); }

blockquote.quote {
  margin: 0; padding: 1.5rem 1.6rem; border-left: 4px solid var(--red-600);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow);
}
.section-blue blockquote.quote { background: rgba(255,255,255,.06); box-shadow: none; }
blockquote.quote p { font-size: 1.12rem; font-style: italic; }
blockquote.quote footer { font-size: .95rem; font-weight: 700; color: var(--muted); }
.section-blue blockquote.quote footer { color: var(--blue-100); }

/* ---------- Lists ---------- */

.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--blue-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat;
}
.columns-2 { columns: 2 260px; column-gap: 2rem; }
.columns-2 li { break-inside: avoid; }

/* ---------- Prose (long-form pages) ---------- */

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45em; }

.callout {
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin: 1.5rem 0;
}
.callout p:last-child { margin: 0; }

.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.toc a {
  display: block; padding: .45em .9em; border-radius: 999px; background: var(--white);
  border: 1px solid var(--sand-300); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--blue-800);
}
.toc a:hover { border-color: var(--blue-700); }

/* Services page rows */
.service { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding: 2.25rem 0; border-top: 1px solid var(--sand-300); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service p:last-child, .service ul:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: .5rem; } }

.brands { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.brands li {
  padding: .5em 1em; background: var(--white); border: 1px solid var(--sand-300);
  border-radius: 8px; font-weight: 700; color: var(--blue-950);
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--blue-100); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .35em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--red-600); border: 3px solid var(--sand-50);
}
.timeline .year { display: block; font-weight: 800; color: var(--blue-700); font-size: 1.1rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.info-list li { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--sand-300); }
.info-list li > span:first-child { font-weight: 700; color: var(--blue-950); }
@media (max-width: 420px) { .info-list li { grid-template-columns: 1fr; gap: 0; } }

.form { background: var(--white); border: 1px solid var(--sand-100); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .97rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--sand-50);
  border: 1.5px solid var(--sand-300); border-radius: 8px; padding: .7em .8em;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-700); background: var(--white); box-shadow: 0 0 0 3px var(--blue-100); }
.form .btn { width: 100%; }
.form-note { font-size: .9rem; color: var(--muted); margin: .9rem 0 0; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--red-600); color: var(--white); padding: 2.5rem 0; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta-band h2 { color: var(--white); margin: 0 0 .2em; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: 0; color: #ffe3dc; }

/* ---------- Footer ---------- */

.site-footer { background: var(--blue-950); color: var(--blue-100); padding: 3rem 0 1.5rem; font-size: .97rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .88rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

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