/* AM:PM Plumbing & Gas — Mullaloo WA
   Palette sampled from the ute door decal on Facebook:
   #0a4489 navy wordmark, #8b4a3a copper ">PLUMBING & GAS<", white body,
   copper clock ring. */
:root {
  --navy: #0a4489;
  --navy-d: #062e5c;
  --navy-l: #1c6fc0;
  --copper: #8b4a3a;
  --copper-l: #c98a72;
  --mist: #eef3f9;
  --line: #d6e0ec;
  --ink: #182634;
  --muted: #5d6f80;
  --white: #ffffff;
  --max: 720px;
  --dock: 58px;
  --display: "Saira", "Segoe UI", Arial, sans-serif;
  --sans: "Mulish", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.58;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0px) + 12px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }

.skip {
  position: absolute; left: 12px; top: -56px;
  background: var(--navy); color: #fff;
  padding: 12px 16px; z-index: 100;
  min-height: 44px; display: inline-flex; align-items: center;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { min-height: 62px; display: flex; align-items: center; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy);
  min-height: 44px; min-width: 0;
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-ampm {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: -.02em;
  font-style: italic;
  color: var(--navy);
}
.colon { color: var(--navy-l); }
.brand-sub {
  font-family: var(--display);
  font-weight: 700;
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 5px;
}

.hero { background: var(--white); }
.hero-photo { background: #0a1520; }
.hero-photo img {
  width: 100%; height: auto;
  object-fit: contain; object-position: center;
}
.hero-copy {
  padding: 28px 0 34px;
  background: var(--navy);
  color: #fff;
}
.kicker {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .82rem; font-weight: 700;
  color: #b9d2ee;
  margin: 0 0 14px;
}
.stars { color: var(--copper-l); letter-spacing: 1px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.95rem, 8.8vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  color: #fff;
}
.lede {
  font-size: 1.05rem;
  color: #cfe0f2;
  max-width: 44ch;
  margin: 0 0 22px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  background: var(--copper);
  color: #fff;
  border: 2px solid var(--copper);
  border-radius: 3px;
  min-height: 48px; min-width: 44px;
  padding: 12px 24px;
  touch-action: manipulation;
}
.btn:active { background: #6f3a2d; border-color: #6f3a2d; }
.btn-light { background: #fff; color: var(--navy-d); border-color: #fff; }
.btn-light:active { background: var(--mist); border-color: var(--mist); }
.btn-note { font-size: .88rem; color: #a8c4e2; margin: 12px 0 0; max-width: 40ch; }

.hours-strip { background: var(--copper); }
.hours-strip .wrap {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px;
  font-family: var(--display); font-weight: 700;
  color: #fff;
}
.hs-side {
  font-size: .82rem; letter-spacing: .18em;
  opacity: .82;
}
.hs-mid {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  text-align: center;
}

.services { padding: clamp(2.4rem, 8vw, 4.5rem) 0; background: var(--white); }
.section-kicker {
  font-family: var(--display); font-weight: 700;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 8px;
}
.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 6.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--navy);
  margin: 0 0 24px;
}
.grid { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.cell { background: var(--white); padding: 20px 18px 18px; }
.cell-n {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: .74rem; letter-spacing: .14em;
  color: var(--copper);
  margin-bottom: 8px;
}
.cell h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.08rem; letter-spacing: -.01em;
  color: var(--navy);
  margin: 0 0 5px;
}
.cell p { margin: 0; color: var(--muted); font-size: .98rem; }

.proof { padding: clamp(2.4rem, 8vw, 4.5rem) 0; background: var(--mist); }
.rating { margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rating-num {
  font-family: var(--display); font-weight: 800;
  font-style: italic;
  font-size: clamp(3.6rem, 18vw, 5.6rem);
  line-height: .84;
  letter-spacing: -.05em;
  color: var(--navy);
}
.rating-of { font-size: .96rem; color: var(--muted); font-weight: 700; }
.maps {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline; text-underline-offset: 4px;
  touch-action: manipulation;
}

.area { padding: clamp(2.4rem, 8vw, 4.5rem) 0; background: var(--white); }
.area-lead { color: var(--muted); margin: 0 0 14px; max-width: 44ch; }
.area-meta { display: flex; flex-direction: column; margin: 0; }
.area-meta a {
  min-height: 46px; display: inline-flex; align-items: center;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline; text-underline-offset: 4px;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
  touch-action: manipulation;
}

.closer { padding: clamp(2.4rem, 8vw, 4rem) 0; background: var(--navy-d); }
.closer h2 {
  font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: clamp(1.5rem, 6.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0 0 8px;
}
.closer p { color: #a9c4e0; margin: 0 0 20px; max-width: 40ch; }

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 28px 0 22px;
  font-size: .94rem;
  color: var(--muted);
}
.foot-brand {
  font-family: var(--display); font-weight: 700;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 8px;
}
.foot-brand .brand-ampm { font-size: 1rem; }
.foot-cols { display: flex; flex-direction: column; }
.foot-cols a, .foot-cols span {
  min-height: 44px; display: inline-flex; align-items: center;
  color: var(--ink); text-decoration: none;
  word-break: break-word;
}
.foot-cols a { text-decoration: underline; text-underline-offset: 3px; }
.foot-note {
  margin: 14px 0 0; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
}

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--navy);
  border-top: 3px solid var(--copper);
  min-height: var(--dock);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dock a {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 13px 16px;
  color: #fff;
  font-family: var(--display); font-weight: 700;
  font-size: 1.04rem; letter-spacing: .03em;
  text-decoration: none;
  touch-action: manipulation;
}
.dock a:active { background: var(--navy-d); }

a, .btn, .maps { -webkit-tap-highlight-color: rgba(10, 68, 137, .22); }
a:focus-visible, .btn:focus-visible, .dock a:focus-visible {
  outline: 3px solid var(--copper-l);
  outline-offset: 3px;
}

#services, #reviews, #area, #top, #main {
  scroll-margin-top: calc(8px + env(safe-area-inset-top, 0px));
  scroll-margin-bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0px) + 12px);
}

@media (min-width: 620px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 700px) {
  :root { --max: 900px; }
  .brand-ampm { font-size: 1.65rem; }
  .hero-copy { padding: 36px 0 42px; }
}
