/* K.R Bulk Water — photo-led editorial redesign.
 * No frameworks. Mobile-first. System font stack. Leaflet CSS loaded separately.
 */
:root {
  --navy: #10233b;
  --navy-deep: #0b1929;
  --ink: #1f2937;
  --body: #3a4656;
  --muted: #5d6b7e;
  --line: #d9e0e8;
  --paper: #f6f4ef;
  --bg: #ffffff;
  --blue: #0b5fa5;
  --blue-dark: #084a82;
  --green: #1e7d4f;
  --max: 1140px;
  --header-h: 66px;
  --radius: 6px;
  --focus: 0 0 0 3px rgba(11, 95, 165, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 46px); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 0.7rem; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); }
.container { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
section { padding: 3.2rem 0; }

.eyebrow {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 0.6rem;
  border: none; background: none; padding: 0;
}
.eyebrow-light { color: #9fc3e2; }
.section-head { max-width: 46rem; margin-bottom: 1.8rem; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 0.7rem 1.1rem; z-index: 300;
}
.skip-link:focus { left: 0; }

/* ---------- Utility bar + header ---------- */
.utility-bar { background: var(--navy-deep); color: #c9d8e6; font-size: 0.83rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.utility-bar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.utility-bar a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 2px solid var(--navy); min-height: var(--header-h); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; background: var(--navy); color: #fff; display: grid; place-items: center; border-radius: var(--radius); flex: none; }
.brand-name { display: block; font-weight: 800; color: var(--navy); font-size: 0.95rem; line-height: 1.25; }
.brand-sub { display: block; font-size: 0.76rem; color: var(--muted); }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); width: 46px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--navy); }
.nav-toggle:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); }
.site-nav { display: flex; align-items: center; gap: 0.2rem; }
.site-nav a.nav-link { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.94rem; padding: 0.6rem 0.7rem; border-bottom: 2px solid transparent; }
.site-nav a.nav-link:hover { color: var(--blue-dark); border-bottom-color: var(--blue); }

/* ---------- Buttons (squared, utilitarian) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 2px solid transparent;
  padding: 0.8rem 1.5rem; min-height: 50px; line-height: 1.2;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-nav { min-height: 44px; padding: 0.55rem 1.1rem; margin-left: 0.5rem; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 2.8rem 0 3.4rem; }
.hero-grid { display: grid; gap: 2.2rem; align-items: center; }
.hero-support { font-size: 1.08rem; color: var(--body); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 1.6rem; }
.hero-facts { display: flex; margin: 0; padding: 1rem 0 0; border-top: 2px solid var(--navy); gap: 0; }
.hero-facts div { padding: 0 1.3rem; border-left: 1px solid var(--line); }
.hero-facts div:first-child { padding-left: 0; border-left: none; }
.hero-facts dt { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin: 0; font-weight: 800; color: var(--navy); font-size: 1.02rem; }
.hero-photo { margin: 0; border: 1px solid var(--line); background: #fff; padding: 10px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; }
.hero-photo figcaption, .capacity-photo figcaption {
  font-size: 0.85rem; color: var(--muted); padding: 0.55rem 0.2rem 0.1rem;
}

/* ---------- Services: uniform card grid ---------- */
.service-grid { display: grid; gap: 1.4rem; }
.service-card { border: 1px solid var(--line); background: #fff; border-top: 3px solid var(--navy); display: flex; flex-direction: column; }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-media-fallback {
  aspect-ratio: 4 / 3; background: var(--paper); color: var(--blue-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1.2rem; text-align: center; border-bottom: 1px solid var(--line);
}
.service-media-fallback span { font-size: 0.85rem; color: var(--muted); }
.service-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { margin-bottom: 0.35rem; }
.service-body p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.8rem; }
.service-body a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 1px; margin-top: auto; align-self: flex-start; }
.service-body a:hover { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }

/* ---------- Capacity: alternating split ---------- */
.capacity { background: #fff; border-top: 1px solid var(--line); }
.capacity-grid { display: grid; gap: 2.2rem; align-items: center; }
.capacity-photo { margin: 0; }
.capacity-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.tick-list { list-style: none; margin: 1.1rem 0; padding: 0; display: grid; gap: 0.55rem; }
.tick-list li { padding-left: 1.7rem; position: relative; font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 0.85em; height: 0.5em; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.capacity-line { border-left: 3px solid var(--blue); padding: 0.2rem 0 0.2rem 1rem; margin: 1.2rem 0; }
.capacity-line strong { color: var(--navy); font-size: 1.1rem; }
.capacity-line span { color: var(--muted); font-size: 0.93rem; }
.capacity-cta { margin: 1.3rem 0 0; }

/* ---------- Service area / map ---------- */
.area { background: var(--navy-deep); color: #cfdce9; }
.area .section-head h2 { color: #fff; }
.area .section-head .eyebrow { color: #9fc3e2; }
.area .section-lead { color: #a9bccd; }
.area .section-lead a { color: #fff; font-weight: 700; }
.area-grid { display: grid; gap: 1.4rem; align-items: start; }
.map-wrap { border: 1px solid rgba(255, 255, 255, 0.25); background: #0e2036; }
#service-map { height: 380px; width: 100%; z-index: 1; }
#service-map:focus-visible { box-shadow: var(--focus); }
.leaflet-container { font: inherit; }
.map-fallback { margin: 0; padding: 0.8rem 1rem; font-size: 0.9rem; color: #ffd88a; }
.town-panel { background: #fff; color: var(--body); padding: 1.4rem 1.4rem 1.2rem; border-top: 4px solid var(--blue); }
.town-panel h3 { margin-bottom: 0.3rem; }
.town-panel > p { font-size: 0.92rem; color: var(--muted); }
.town-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.town-list button {
  width: 100%; text-align: left; font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink);
  background: #f2f6fa; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.55rem 0.65rem; min-height: 44px; cursor: pointer;
}
.town-list button:hover, .town-list button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.town-note { font-size: 0.9rem; color: var(--muted); margin: 0.8rem 0 0; }
.area-details { margin-top: 1.4rem; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); }
.area-details summary {
  cursor: pointer; color: #fff; font-weight: 700; font-size: 0.97rem;
  padding: 0.9rem 1.1rem; min-height: 48px; list-style-position: inside;
}
.area-details summary:hover { text-decoration: underline; }
.area-reference { margin: 0; background: #fff; padding: 10px; }
.area-reference img { width: 100%; }
.area-reference figcaption { font-size: 0.87rem; color: var(--muted); padding: 0.6rem 0.2rem 0.2rem; }

/* ---------- Pricing band ---------- */
.pricing { border-bottom: 1px solid var(--line); }
.pricing-band h2 { margin-bottom: 1rem; }
.pricing-row {
  display: grid; gap: 0.4rem 2rem; align-items: center;
  border: 1px solid var(--line); border-left: 4px solid var(--navy);
  background: var(--paper); padding: 1.4rem 1.5rem;
}
.price-line { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; }
.price-line strong { font-size: clamp(1.9rem, 4vw, 2.5rem); color: var(--navy); letter-spacing: -0.02em; }
.price-line span { color: var(--muted); font-weight: 600; font-size: 0.97rem; }
.price-note { margin: 0; font-size: 0.96rem; color: var(--muted); }
.price-cta { margin: 0.4rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.price-cta > span { font-size: 0.97rem; }
.price-cta a { font-weight: 700; }

/* ---------- Contact: photo + phone ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; gap: 1.6rem; align-items: center; }
.contact-photo { margin: 0; }
.contact-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; }
.contact-info { background: var(--navy); color: #d7e3ef; padding: 1.8rem 1.6rem; }
.contact-info h2 { color: #fff; }
.contact-phone span { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9fc3e2; font-weight: 800; }
.contact-phone a { color: #fff; font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.contact-phone a:hover { text-decoration: underline; }
.contact-points { list-style: none; margin: 1.1rem 0 1.4rem; padding: 1.1rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.2); display: grid; gap: 0.4rem; font-size: 0.95rem; }
.contact-cta { margin: 0; }
.contact-cta .btn { width: 100%; }

/* ---------- How it works ---------- */
.steps { background: #fff; border-top: 1px solid var(--line); }
.steps-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.steps-list li { display: flex; gap: 1rem; align-items: flex-start; }
.steps-list span {
  flex: none; width: 42px; height: 42px; border: 2px solid var(--navy); border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--navy); font-size: 1.1rem;
}
.steps-list strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 0.2rem; }
.steps-list p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Final CTA band ---------- */
.final-cta { background: var(--navy); color: #d7e3ef; padding: 2.4rem 0; }
.final-cta-inner { display: grid; gap: 1rem; align-items: center; }
.final-cta h2 { color: #fff; margin-bottom: 0.3rem; }
.final-cta p { margin: 0; }
.final-cta-call { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.2rem; }
.final-cta-call a[href^="tel:"]:first-child { color: #fff; font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.final-cta-call a[href^="tel:"]:first-child:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9bccd; padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 1.5rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #eaf2f9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.97rem; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.8rem; padding-top: 1.2rem; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.site-footer p { font-size: 0.95rem; }

/* ---------- Floating call (mobile only) ---------- */
.floating-call {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 150;
  display: none; align-items: center; gap: 0.55rem;
  background: var(--green); color: #fff; font-weight: 800; text-decoration: none;
  border-radius: 999px; padding: 0.9rem 1.3rem; min-height: 52px;
  box-shadow: 0 12px 28px rgba(20, 83, 45, 0.35);
}
.floating-call:hover { background: #166b41; }
.floating-call.is-hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .pricing-row { grid-template-columns: auto 1fr auto; gap: 0.4rem 2rem; }
  .price-cta { margin: 0; flex-direction: column; align-items: stretch; text-align: center; }
  .final-cta-inner { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 980px) {
  section { padding: 4.2rem 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .capacity-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
  .area-grid { grid-template-columns: 1.5fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps-list { grid-template-columns: repeat(3, 1fr); }
  #service-map { height: 460px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 2px solid var(--navy);
    flex-direction: column; align-items: stretch; padding: 0.6rem 1.25rem 1rem; gap: 0.15rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: 0.85rem 0.5rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .btn-nav { margin: 0.6rem 0 0; }
  .utility-inner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 699px) {
  .service-card { grid-column: 1 / -1; }
  .town-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 2rem); }
  .hero { padding-top: 1.8rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-facts { flex-wrap: wrap; gap: 0.6rem 0; }
  .hero-facts div { padding: 0 0.9rem; }
  .floating-call { display: inline-flex; left: 1rem; right: 1rem; justify-content: center; }
  .site-footer { padding-bottom: calc(6.4rem + env(safe-area-inset-bottom)); }
  #service-map { height: 320px; }
  .town-list { grid-template-columns: 1fr 1fr; }
}

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