/* ============================================================
   KF Structural Consultants — shared stylesheet
   ============================================================ */

:root {
  --ink:        #0f1b2d;   /* deep navy ink            */
  --ink-soft:   #2a3a52;
  --slate:      #5b6b80;   /* body text                */
  --line:       #e4e8ee;   /* hairlines                */
  --bg:         #ffffff;
  --bg-alt:     #f6f8fb;   /* section tint             */
  --bg-deep:    #0f1b2d;   /* dark sections            */
  --accent:     #c8862a;   /* warm structural amber    */
  --accent-2:   #e0a64a;
  --accent-soft:#fbf3e6;
  --ok:         #1f8a5b;
  --err:        #c0392b;
  --shadow:     0 18px 50px rgba(15, 27, 45, 0.10);
  --shadow-sm:  0 6px 22px rgba(15, 27, 45, 0.07);
  --radius:     14px;
  --maxw:       1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; margin: 0 0 18px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; margin: 0 0 16px; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 10px; }
p  { color: var(--slate); margin: 0 0 16px; }
a  { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 6%; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: 0.72rem;
  font-weight: 600; color: var(--accent); margin: 0 0 14px;
}
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--slate); max-width: 620px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(200,134,42,.32); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200,134,42,.40); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink); color: #cdd6e2; font-size: 0.8rem;
  letter-spacing: .3px; padding: 9px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #cdd6e2; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .tb-promo { color: var(--accent-2); font-weight: 600; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 6%; max-width: var(--maxw); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; letter-spacing: .5px; font-size: .95rem;
}
.logo .name { font-size: 1.05rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.logo .name span { font-weight: 300; color: var(--slate); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links .btn, .nav-links .btn.active, .nav-links .btn:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Hero (crossfading slideshow) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; background: var(--ink);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-image: var(--d);
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out; will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
/* navy legibility wash above the photos, below the text */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, rgba(13,23,40,.90) 0%, rgba(13,23,40,.62) 45%, rgba(13,23,40,.30) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 110px 6% 120px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
.hero h1 { color: #fff; max-width: 760px; }
.hero p { color: #d4dde8; font-size: 1.18rem; max-width: 560px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero .badges { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 48px; }
.hero .badge { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #e7edf4; }
.hero .badge svg { flex: none; }

/* ---------- Price promise banner ---------- */
.promise {
  background: var(--accent-soft); border-top: 1px solid #f0e3cc; border-bottom: 1px solid #f0e3cc;
}
.promise .wrap { padding: 30px 6%; display: flex; align-items: center; gap: 22px; justify-content: center; text-align: center; flex-wrap: wrap; }
.promise .seal {
  flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(200,134,42,.35);
}
.promise strong { color: var(--ink); }
.promise p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; max-width: 760px; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
section.tint { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 50px; }
.center.section-head { margin-left: auto; margin-right: auto; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 30px; }
.stat { text-align: center; }
.stat .num { font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.stat .num span { color: var(--accent); }
.stat .lbl { font-size: .9rem; color: var(--slate); text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 20px;
}
.card p { font-size: .96rem; margin-bottom: 0; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--slate); font-size: .92rem; }
.card ul li { margin-bottom: 6px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent);
  color: var(--accent); font-weight: 700; display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- Projects slider ---------- */
.slider-box { max-width: 880px; height: 440px; margin: 0 auto; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-alt); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; overflow: hidden; background: var(--ink); }
.slide.active { opacity: 1; }
.slide .bg { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(18px) brightness(.6); }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slide .cap { position: absolute; left: 0; bottom: 0; right: 0; z-index: 2; padding: 26px; background: linear-gradient(transparent, rgba(15,27,45,.9)); color: #fff; }
.slide .cap h3 { color: #fff; margin: 0; }
.slide .cap p { color: #d4dde8; margin: 4px 0 0; font-size: .9rem; }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: .2s; }
.dots button.active { background: var(--accent); transform: scale(1.25); }

/* ---------- Carousel manual navigation (reviews + projects) ---------- */
.carousel-stage { position: relative; max-width: 880px; margin: 0 auto; }
.car-arrow, .slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background .15s, border-color .15s, transform .15s;
}
.car-arrow { border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.car-arrow:hover { background: var(--accent-soft); border-color: var(--accent); }
.slide-arrow { border: 0; background: rgba(15,27,45,.5); color: #fff; }
.slide-arrow:hover { background: rgba(15,27,45,.82); }
.car-arrow:active, .slide-arrow:active { transform: translateY(-50%) scale(.92); }
.car-arrow svg, .slide-arrow svg { width: 20px; height: 20px; }
.car-arrow.prev { left: 0; }
.car-arrow.next { right: 0; }
.slide-arrow.prev { left: 14px; }
.slide-arrow.next { right: 14px; }
@media (max-width: 600px) {
  .car-arrow, .slide-arrow { width: 38px; height: 38px; }
  .car-arrow svg, .slide-arrow svg { width: 17px; height: 17px; }
  .testi-carousel { padding: 0 42px; }
  .slide-arrow.prev { left: 8px; }
  .slide-arrow.next { right: 8px; }
}

/* ---------- Coverage map (Where we work) ---------- */
.coverage-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.coverage-grid > div { min-width: 0; }
.coverage-map img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: var(--shadow); }
.area-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.area-pills span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.area-pills span::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
}
.area-note { font-size: .95rem; color: var(--slate); margin-top: 16px; }
.area-note a { color: var(--accent); font-weight: 600; }
@media (max-width: 820px) {
  .coverage-grid { grid-template-columns: 1fr; gap: 36px; }
  .coverage-map { max-width: 480px; margin: 0 auto; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-deep); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c2cdda; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px clamp(24px, 4vw, 48px); max-width: 820px; margin: 0 auto;
}
.fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.fieldset > legend {
  font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
  color: var(--accent); padding: 0; margin-bottom: 6px;
}
.fieldset > .hint { font-size: .9rem; color: var(--slate); margin: 0 0 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label.q { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: .96rem; }
.field label.q .req { color: var(--accent); }
.field .sub { font-size: .85rem; color: var(--slate); font-weight: 400; display: block; margin-top: 2px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,134,42,.15); }
textarea { resize: vertical; min-height: 90px; }
input[type="file"] {
  width: 100%; padding: 12px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--bg-alt);
  font-size: .9rem; cursor: pointer;
}
input[type="file"]::file-selector-button {
  border: 0; background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 7px;
  margin-right: 14px; cursor: pointer; font: inherit; font-size: .85rem;
}

/* option chips (checkbox / radio) */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--accent-2); }
.opt input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt.disabled { opacity: .6; pointer-events: none; background: var(--bg-alt); border-style: dashed; }
.opt.disabled .opt-t, .opt.disabled .sub { color: #9aa4b2; }
.opt.disabled input { opacity: .4; }
.opt .opt-t { font-size: .94rem; color: var(--ink); font-weight: 500; }
.inline-radios { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-radios .opt { flex: 1 1 120px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.form-note { font-size: .85rem; color: var(--slate); margin: 0; }
.form-status { margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok  { background: #e8f6ee; color: var(--ok); border: 1px solid #bfe6cf; }
.form-status.err { background: #fdeceb; color: var(--err); border: 1px solid #f5c6c2; }

/* conditional reveal */
.reveal { display: none; }
.reveal.show { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-item .ico { flex: none; width: 46px; height: 46px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contact-item h3 { margin: 0 0 3px; }
.contact-item a, .contact-item p { color: var(--slate); text-decoration: none; margin: 0; }
.contact-item a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink); color: #aebccd; padding: 64px 0 30px; font-size: .9rem;
}
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer.site h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 16px; }
footer.site a { color: #aebccd; text-decoration: none; display: block; margin-bottom: 9px; }
footer.site a:hover { color: #fff; }
footer.site .flogo { font-size: 1.1rem; letter-spacing: 3px; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 14px; }
footer.site .flogo span { font-weight: 300; color: #8aa; }
footer.site .legal { border-top: 1px solid #21304a; padding-top: 24px; font-size: .8rem; color: #7f90a6; line-height: 1.8; }

/* ---------- Reviews ---------- */
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { display: none; }
.stars-input label { font-size: 2rem; color: #dce0e6; cursor: pointer; transition: color .15s; line-height: 1; }
.stars-input input:checked ~ label,
.stars-input label:hover, .stars-input label:hover ~ label { color: var(--accent); }
.stars-static { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }
.stars-static .empty { color: #dce0e6; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.review-card .quote { color: var(--ink-soft); font-size: 1rem; margin: 10px 0 16px; }
.review-card .byline { font-weight: 600; color: var(--ink); font-size: .95rem; }
.review-card .byline a { color: var(--accent); text-decoration: none; }
.review-card .byline a:hover { text-decoration: underline; }

/* Homepage testimonial carousel — all slides stack in one grid cell so the
   container stays as tall as the tallest slide (no page jump when it cycles). */
.testi-carousel { max-width: 760px; margin: 0 auto; display: grid; }
.testi-slide { grid-area: 1 / 1; text-align: center; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.testi-slide.active { opacity: 1; visibility: visible; }
.testi-slide .quote { font-size: 1.3rem; color: var(--ink); line-height: 1.6; margin: 18px 0; font-weight: 300; }
.testi-slide .byline { color: var(--slate); font-weight: 600; }
.testi-slide .byline a { color: var(--accent); text-decoration: none; }

/* ---------- Client project portal ---------- */
.track-timeline { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0; margin: 28px 0; padding-bottom: 6px; }
.track-step { flex: 1 0 96px; text-align: center; position: relative; padding-top: 32px; font-size: .78rem; color: var(--slate); }
.track-step::before { content: ''; position: absolute; top: 11px; left: 0; right: 0; height: 3px; background: var(--line); }
.track-step:first-child::before { left: 50%; }
.track-step:last-child::before { right: 50%; }
.track-step .dot { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.track-step.done::before, .track-step.current::before { background: var(--accent); }
.track-step.done .dot { background: var(--accent); border-color: var(--accent); }
.track-step.current .dot { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.track-step.current { color: var(--ink); font-weight: 700; }

.track-progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 2px 0 20px; }
.track-progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.track-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 10px; }
.track-summary .s { background: #fff; padding: 14px 16px; }
.track-summary .s .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .6px; color: var(--slate); margin-bottom: 3px; }
.track-summary .s .v { font-weight: 700; font-size: .96rem; }
.action-card { background: var(--accent-soft); border: 1px solid #f0e3cc; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.action-card h3 { margin: 0 0 6px; }
.action-card.calm { background: var(--bg-alt); border-color: var(--line); }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.visit-day { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.visit-day .d { font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.visit-day label { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; font-size: .88rem; cursor: pointer; }
.msg-thread { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: .92rem; }
.msg.client { align-self: flex-end; background: var(--accent-soft); }
.msg.us { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--line); }
.msg .who { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--slate); margin-bottom: 2px; }
.preview-thumb { position: relative; display: inline-block; margin: 6px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; vertical-align: top; }
.preview-thumb img { display: block; width: 230px; height: auto; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37,211,102,.5); }
.wa-float svg { width: 33px; height: 33px; }
.wa-float .wa-label {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: .85rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--shadow-sm);
}
.wa-float:hover .wa-label { opacity: 1; }
@media (max-width: 600px) {
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .wa-float .wa-label { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 6% 20px; display: none; box-shadow: var(--shadow-sm);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; justify-content: center; }
  .menu-toggle { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
  .slider-box { height: 300px; }
  section { padding: 64px 0; }
  .hero .wrap { padding: 80px 6% 90px; }
}

/* Portrait-optimised hero for phones (each slide swaps to its taller crop) */
@media (max-width: 600px) {
  .hero-slide { background-image: var(--m); }
  .hero::after {
    background: linear-gradient(180deg, rgba(13,23,40,.93) 0%, rgba(13,23,40,.74) 44%, rgba(13,23,40,.5) 100%);
  }
  .hero .wrap { padding: 52px 7% 60px !important; }
  .hero h1 { font-size: 1.9rem; line-height: 1.2; }
  .hero p { font-size: 1.04rem; }
  .hero .cta-row { gap: 12px; }
  .hero .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .hero .badges { gap: 14px 20px; margin-top: 30px; }
}

/* ---------- Standards / credentials pills ---------- */
.std-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px;
}
.std-pills span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel, #fff); color: var(--ink); font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.std-pills span::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
}

/* ---------- Quote form: category-gated sections (shown by JS) ---------- */
.cat-dependent, .resi-only { display: none; }

/* ---------- Coverage gate: modal + inline hint ---------- */
.kf-modal-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(13,23,40,.66);
  display: grid; place-items: center; padding: 20px; backdrop-filter: blur(2px);
}
.kf-modal {
  background: #fff; border-radius: var(--radius); box-shadow: 0 24px 70px rgba(9,17,30,.45);
  max-width: 480px; width: 100%; padding: 30px 28px; text-align: left;
}
.kf-modal h3 { color: var(--ink); margin: 0 0 12px; }
.kf-modal p { color: var(--ink-soft); font-size: .97rem; margin: 0 0 14px; }
.kf-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.kf-modal-actions .btn { flex: 1 1 130px; justify-content: center; text-align: center; }
.kf-modal-close {
  display: block; width: 100%; margin-top: 12px; padding: 11px; border: 0; border-radius: 10px;
  background: var(--bg-alt); color: var(--slate); font: inherit; font-weight: 600; cursor: pointer;
}
.kf-modal-close:hover { background: var(--line); color: var(--ink); }
.coverage-hint { margin-top: 10px; font-size: .9rem; border-radius: 10px; padding: 10px 14px; }
.coverage-hint.ok { background: #eaf6ee; color: #1e6b3a; border: 1px solid #bfe3cc; }
.coverage-hint.warn { background: var(--accent-soft); color: #7a5416; border: 1px solid #ecd9b4; }

/* ---------- Accessibility ---------- */
/* Visible keyboard focus for links, buttons and controls (mouse clicks stay clean) */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Slightly darker placeholder text for contrast (was borderline) */
::placeholder { color: #6a7787; opacity: 1; }
/* Skip-to-content link — hidden until focused */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 8px; }
/* Contact line in the top bar */
.topbar .tb-contact a { color: #cdd6e2; }
.topbar .tb-contact a:hover { color: #fff; }
@media (max-width: 600px) {
  .topbar { font-size: .78rem; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar .tb-promo { display: none; }   /* redundant with hero on small screens — keep tap-to-call contact only */
  .topbar .tb-contact { line-height: 1.7; }
}
