/* Norton Plumbing — static demo stylesheet.
   Editorial catalogue direction: a serif display face over a humanist sans,
   inky blue on chalk white with pale ceramic grey panels and a brick-red
   accent for the call action. No framework, no web fonts, no external assets. */

:root {
  --ink: #0f2237;
  --ink-soft: #3d5470;
  --ink-muted: #6d7f93;
  --blue: #17324f;
  --blue-soft: #2f4a68;
  --brick: #b8663c;
  --brick-dark: #9c5029;
  --chalk: #fbfaf7;
  --ceramic: #eceff3;
  --surface: #ffffff;
  --line: #dbe1e8;
  --line-strong: #c3ccd6;
  --maxw: 1180px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--chalk);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

svg { max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 .4em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
h2 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

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

section[id] { scroll-margin-top: 92px; }

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

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 100;
  min-height: 44px; display: inline-flex; align-items: center;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 8px; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Section marker: a small brick-red setting-out tick, not a badge. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 .9em;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.eyebrow::before {
  content: "";
  width: 4px; height: 16px;
  flex: none;
  background: var(--brick);
}

/* ---------- Controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: 13px 24px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease;
}
.btn-lg { min-height: 60px; padding: 17px 32px; font-size: 1.06rem; }

.btn-call { background: var(--brick); color: #fff; }
.btn-call:hover, .btn-call:focus-visible { background: var(--brick-dark); }
.btn-call-icon { display: inline-flex; width: 18px; height: 18px; }
.btn-call-icon svg { width: 100%; height: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--brick);
  padding-bottom: 2px;
}
.link-arrow::after { content: "\2192"; color: var(--brick); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.012em;
}

.site-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--brick); }

.header-call { min-height: 48px; padding: 12px 20px; font-size: .95rem; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); position: relative;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

/* ---------- Hero ---------- */

.hero {
  background: var(--chalk);
  border-bottom: 1px solid var(--line);
  padding: 70px 0 76px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  gap: 60px;
  align-items: center;
}
.hero-brand {
  margin: 0 0 1em;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brick);
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
  display: inline-block;
}
.hero-copy h1 { max-width: 15ch; margin-bottom: .4em; }
.hero-lede {
  font-size: 1.13rem;
  line-height: 1.64;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: 1.9em;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }

.hero-plate svg { display: block; width: 100%; height: auto; }

/* ---------- Service families ---------- */

.section-families {
  background: var(--surface);
  padding: 74px 0 78px;
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 46px; }
.section-head h2 { margin-bottom: .45em; }
.section-lede {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* Three editorial columns. The family carries the weight; the labels stay a
   compact list, so fourteen topics never become fourteen equal blocks. */
.family-set {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 56px;
}
.family { padding-top: 22px; border-top: 3px solid var(--ink); }
.family-index {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brick);
}
.family-name {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1.1;
}
.family-list { list-style: none; margin: 0; padding: 0; }
.family-list li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.family-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.06em;
  width: 9px; height: 2px;
  background: var(--line-strong);
}
.family-list li + li { border-top: 1px solid var(--line); }

/* ---------- Trust block ---------- */

.trust-block {
  background: var(--ceramic);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 34px;
}
.trust-rating {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45em;
  font-size: 1.06rem;
}
.trust-rating strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.stars { color: var(--brick); letter-spacing: .1em; font-size: .95em; }
.trust-address {
  margin: 0;
  font-style: normal;
  font-size: .97rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-left: 30px;
  border-left: 1px solid var(--line-strong);
}

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

.section-contact {
  background: var(--blue);
  color: #d7e2ee;
  padding: 72px 0 76px;
}
.section-contact .eyebrow { color: #b9c9da; }
.section-contact .eyebrow::before { background: var(--brick); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas:
    "copy    details"
    "actions details";
  gap: 0 60px;
  align-items: start;
}
.contact-copy { grid-area: copy; }
.contact-actions { grid-area: actions; padding-top: 4px; }
.contact-details { grid-area: details; margin: 0; }
.contact-copy h2 { color: #fff; margin-bottom: .42em; max-width: 16ch; }
.contact-lede {
  color: #b9c9da;
  font-size: 1.08rem;
  max-width: 34ch;
  margin-bottom: 1.7em;
}

.contact-details dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  color: #93a9bf;
  padding-top: 20px;
}
.contact-details dt:first-of-type { padding-top: 4px; }
.contact-details dd {
  margin: 6px 0 0;
  padding-bottom: 20px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.55;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.contact-details dd:last-of-type { border-bottom: 0; padding-bottom: 0; }
.contact-tel {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #f0cdb6;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.contact-tel:hover { text-decoration: underline; }

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

.site-footer {
  background: #0a1828;
  color: #b9c9da;
  padding: 50px 0 0;
  border-top: 3px solid var(--brick);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.footer-name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff;
}
.footer-address { font-style: normal; font-size: .96rem; line-height: 1.72; color: #a7bacd; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #d5e3f0;
  font-size: .97rem;
  text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: #fff; text-decoration: underline; }
.footer-phone { margin: 0; }
.footer-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #f0cdb6;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.footer-phone a:hover { text-decoration: underline; }

.footer-base {
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-top: 20px;
  padding-bottom: 22px;
}
.footer-base p { margin: 0; font-size: .84rem; color: #8ba1b7; }

/* ---------- Mobile call bar ----------
   Parked by default; script.js reveals it only once the hero has left the
   viewport and retires it when the contact section's own call action arrives. */

.mobile-call { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { gap: 42px; }
  .family-set { gap: 0 36px; }
  .contact-grid { gap: 0 40px; }
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 34px; }
  /* The drafting plate is desktop-only: on mobile it costs height and adds nothing. */
  .hero-plate { display: none; }
  .section-families { padding: 54px 0; }
  .section-contact { padding: 54px 0 58px; }
  .section-head { margin-bottom: 32px; }
  .family-set { grid-template-columns: minmax(0, 1fr); gap: 34px 0; }
}

@media (max-width: 780px) {
  body { font-size: 16.5px; }
  .header-inner { min-height: 62px; gap: 12px; }
  .brand-name { font-size: 1.08rem; }
  /* The fixed bottom bar carries the mobile call action, so the header keeps
     one control only. */
  .header-call { display: none; }

  .site-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    margin-top: 10px;
    padding: 4px 0 8px;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: flex;
    min-height: 50px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .brand { order: 1; }
  .menu-toggle { order: 2; display: inline-flex; margin-left: auto; }

  .hero { padding: 36px 0 42px; }
  .hero-brand { font-size: .74rem; letter-spacing: .16em; padding-bottom: 9px; }
  .hero-copy h1 { max-width: none; }
  .hero-lede { font-size: 1.02rem; margin-bottom: 1.4em; }
  .cta-row { gap: 14px; }
  .cta-row .btn { width: 100%; }

  .section-lede { font-size: 1.02rem; }
  .family { padding-top: 16px; }
  .family-index { margin-bottom: 6px; font-size: .86rem; }
  .family-name { margin-bottom: 12px; padding-bottom: 11px; font-size: 1.42rem; }
  .family-list li { padding: 7px 0 7px 19px; font-size: .99rem; }

  .trust-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .trust-address { padding-left: 0; border-left: 0; font-size: .93rem; }

  .contact-copy .btn,
  .contact-actions .btn { width: 100%; }
  .contact-lede { max-width: none; }
  /* Mobile order runs heading, then details, then the call action, so the fixed
     bar keeps a clear band to occupy until the page's own call action arrives. */
  .contact-grid {
    grid-template-areas:
      "copy"
      "details"
      "actions";
    gap: 26px;
  }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-nav ul { display: flex; gap: 24px; }
  .site-footer { padding-top: 36px; }
  /* Clearance lives on .site-footer so the narrower-mobile .container padding
     rule cannot strip it and let the bar cover the copyright line. */
  .site-footer { padding-bottom: 84px; }

  .mobile-call {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 250, 247, .97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px rgba(15, 34, 55, .16);
    transform: translateY(118%);
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
    transition: transform .28s ease, visibility .28s ease;
  }
  .mobile-call.is-visible {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-call-btn { width: 100%; }
}

@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .stars { letter-spacing: .04em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .mobile-call { transition: none; }
}
