/* CT-008 Plumb Leak Cape — Shell B local trust
   Palette from logo: medium blue + green (distinct from Grandmark teal / No.1 sky)
   Fonts: Syne (display) + DM Sans (body)
   Self-contained — no shared/styles.css */

:root {
  --blue: #1e6bb8;
  --blue-deep: #154e88;
  --green: #2f9e41;
  --green-soft: #eaf7ec;
  --blue-soft: #e8f2fb;
  --ink: #121c28;
  --muted: #556274;
  --line: #d5e2ee;
  --soft: #f3f8f5;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 14px 36px rgba(21, 78, 136, 0.1);
  --banner-h: 36px;
  --cta-bar-h: 64px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  padding-bottom: calc(var(--cta-bar-h) + 1rem);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.55rem;
}
p { margin: 0 0 0.85rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.demo-banner {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue-deep); color: #eaf3fb;
  text-align: center; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.02em; padding: 0.55rem 1rem; min-height: var(--banner-h);
}

.nav-bar {
  position: sticky; top: var(--banner-h); z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
}
.nav-brand img {
  width: 48px; height: 48px; object-fit: contain; border-radius: 10px;
  background: #0a0a0a; padding: 4px;
}
.nav-name { display: none; }
@media (min-width: 560px) { .nav-name { display: inline; } }
.nav-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-call { background: var(--blue); color: var(--white); }
.btn-call:hover { background: var(--blue-deep); color: var(--white); }
.btn-wa { background: #128c7e; color: var(--white); }
.btn-wa:hover { background: #0e7368; color: var(--white); }
.btn-ghost {
  background: var(--white); color: var(--blue-deep); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: 0.85rem 1.3rem; font-size: 1rem; }

/* Leak-detection first hero */
.hero-leak {
  padding: 3.35rem 0 2.85rem;
  background:
    radial-gradient(900px 400px at 100% -5%, rgba(47, 158, 65, 0.14), transparent 55%),
    radial-gradient(800px 380px at 0% 100%, rgba(30, 107, 184, 0.12), transparent 50%),
    var(--soft);
  border-bottom: 1px solid var(--line);
}
.hero-leak__grid {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 840px) {
  .hero-leak__grid { grid-template-columns: 1.25fr 1fr; gap: 2.5rem; }
}
.kicker {
  display: inline-block;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--green);
  margin-bottom: 0.75rem;
}
.hero-leak h1 {
  font-size: clamp(1.85rem, 4.6vw, 2.75rem); max-width: 16ch; margin-bottom: 0.9rem;
}
.lead { color: var(--muted); max-width: 46ch; font-size: 1.08rem; margin-bottom: 1.3rem; }
.cta-stack { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.3rem; }

.addr-box {
  display: flex; flex-direction: column; gap: 0.3rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow); max-width: 32rem;
}
.addr-box strong { font-family: var(--font-display); font-size: 1.02rem; }
.addr-box span { color: var(--muted); font-size: 0.94rem; }
.addr-box a { font-weight: 700; }

.hero-aside {
  display: grid; gap: 0.85rem;
}
.hero-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 4/3; background: var(--blue-soft);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.logo-chip {
  display: flex; align-items: center; gap: 0.85rem;
  background: #111; color: #eee; border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
.logo-chip img { width: 72px; height: auto; }
.logo-chip p { margin: 0; font-size: 0.82rem; font-family: var(--font-display); font-weight: 600; }

.iopsa-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.85rem;
  background: var(--blue); color: var(--white);
  border-radius: var(--radius); padding: 1.15rem 1.4rem;
}
.iopsa-strip h2 { color: var(--white); font-size: 1.1rem; margin: 0; }
.iopsa-strip p { margin: 0; font-size: 0.92rem; opacity: 0.9; }
.iopsa-strip a {
  color: var(--white); font-weight: 700;
  background: rgba(255,255,255,0.15); padding: 0.45rem 0.9rem;
  border-radius: 999px; text-decoration: none;
}
.iopsa-strip a:hover { background: rgba(255,255,255,0.28); color: var(--white); }

section { padding: 3rem 0; }
.tint { background: var(--soft); }
.title { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.sub { color: var(--muted); max-width: 54ch; margin-bottom: 1.5rem; }

.detect-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.75rem;
}
@media (min-width: 700px) { .detect-grid { grid-template-columns: 1fr 1fr 1fr; } }
.detect-grid li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.2rem 1.25rem;
  border-top: 3px solid var(--green);
}
.detect-grid strong {
  display: block; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.35rem;
}
.detect-grid span { color: var(--muted); font-size: 0.94rem; }

.svc-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.7rem;
}
@media (min-width: 640px) { .svc-list { grid-template-columns: 1fr 1fr; } }
.svc-list li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.05rem 1.15rem;
}
.svc-list strong { display: block; font-family: var(--font-display); font-weight: 700; }
.svc-list span { color: var(--muted); font-size: 0.94rem; }

.photo-pair {
  display: grid; gap: 0.85rem;
}
@media (min-width: 700px) { .photo-pair { grid-template-columns: 1fr 1fr; } }
.photo-pair figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--blue-soft);
}
.photo-pair img { width: 100%; height: 220px; object-fit: cover; }
.photo-pair figcaption {
  padding: 0.7rem 1rem; font-size: 0.88rem; color: var(--muted);
  background: var(--white);
}

.contact-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.4rem;
}
.card h3 { font-size: 1.08rem; }
.card p:last-child { margin-bottom: 0; }
.map-card {
  background: linear-gradient(160deg, var(--green-soft), var(--white));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.45rem 1.4rem; display: flex; flex-direction: column; gap: 0.65rem;
}
.map-card h3 { margin-bottom: 0; }
.map-card .btn { align-self: flex-start; }

.cta-band { background: var(--blue-soft); text-align: center; }
.cta-band .sub { margin-inline: auto; }
.cta-band .cta-stack { justify-content: center; margin-bottom: 0; margin-top: 1.15rem; }

.foot {
  padding: 1.5rem 0 2rem; font-size: 0.875rem; color: var(--muted);
  text-align: center; border-top: 1px solid var(--line);
}

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  display: flex; gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(21, 78, 136, 0.1);
}
.sticky-cta .btn { flex: 1; }
@media (min-width: 860px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}
