/* Premier Plumbing Inc. — Swiss / clinical clean */

:root {
  --ink: #111417;
  --ink-2: #4a5157;
  --rule: #d9dde0;
  --paper: #ffffff;
  --tint: #f3f5f6;
  --accent: #0a6560;       /* deep teal, 6.6:1 on white */
  --accent-dark: #074a46;
  --wrap: 1240px;
  --gutter: 20px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "tnum" 1;
}

h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 12-column grid on desktop, single column on phones */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }

.btn-invert { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn-invert:hover { background: transparent; color: #fff; }
.btn-invert:focus-visible { outline-color: #fff; }

.btn-small { min-height: 48px; padding: 0 16px; font-size: 16px; }

.show-xs { display: inline; }
.hide-xs { display: none; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.logo-inc {
  margin-left: 4px;
  font-weight: 500;
  color: var(--accent);
}
.logo:hover { color: var(--ink); }

.nav { display: none; }

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

.hero {
  padding: 44px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow,
.index {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(36px, 9.4vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 36em;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.facts dl {
  border-top: 3px solid var(--ink);
}

.fact {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.fact dt {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding-top: 2px;
}

.fact dd strong { font-weight: 700; }

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

.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tint { background: var(--tint); }

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-note {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 24em;
}

/* Services: two-column definition list */
.deflist { border-top: 3px solid var(--ink); }

.deflist .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.deflist dt {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.deflist dd { color: var(--ink-2); }

/* Why: numbered points */
.points {
  border-top: 3px solid var(--ink);
  counter-reset: pt;
}

.points li {
  counter-increment: pt;
  position: relative;
  padding: 22px 0 22px 36px;
  border-bottom: 1px solid var(--rule);
}

.points li::before {
  content: counter(pt, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.points h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.points p { color: var(--ink-2); }
.points p + p { margin-top: 10px; }
.points .small { font-size: 15px; }

/* Hours & location */
.visit-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  border-top: 3px solid var(--ink);
}

.hours caption {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding-bottom: 10px;
}

.hours th,
.hours td {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.hours th { font-weight: 600; padding-right: 16px; }
.hours td { color: var(--ink-2); }
.hours td { color: var(--ink); font-weight: 700; }

.hours-note {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

.contact {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.contact dt {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.contact dd { overflow-wrap: anywhere; }
.contact dd a { font-weight: 600; }

.map iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule);
  background: var(--tint);
}

.map figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

/* Final CTA */
.cta {
  background: var(--accent);
  color: #fff;
  padding: 56px 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cta h2 {
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  font-size: 15px;
  color: var(--ink-2);
}

.footer-inner {
  display: grid;
  gap: 4px;
}

.footer-name {
  font-weight: 800;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 6px;
}

.footer-copy { margin-top: 12px; }

/* ---------- Small phones ---------- */

@media (min-width: 420px) {
  .show-xs { display: none; }
  .hide-xs { display: inline; }
}

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .actions { flex-direction: row; flex-wrap: wrap; }

  .points li { padding-left: 56px; }

  .deflist .row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
  .footer-name { grid-column: 1 / -1; }
}

/* ---------- Desktop ---------- */

@media (min-width: 960px) {
  :root { --gutter: 48px; --header-h: 76px; }

  .logo { font-size: 20px; }

  .nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 16px;
  }
  .nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
  }
  .nav a:hover { border-bottom-color: var(--accent); color: var(--ink); }

  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }

  .hero { padding: 96px 0 104px; }
  .hero-main { grid-column: 1 / span 8; }
  .facts { grid-column: 9 / span 4; align-self: end; }

  .section { padding: 112px 0; }
  .section-head { grid-column: 1 / span 4; }
  .deflist,
  .points,
  .visit-body { grid-column: 5 / span 8; }

  .visit-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .cta { padding: 88px 0; }
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }

  .footer-inner { grid-template-columns: 2fr 3fr 2fr 3fr; }
  .footer-name { grid-column: auto; margin-bottom: 0; font-size: 15px; }
  .footer-copy { grid-column: 1 / -1; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
}

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