/* Waldern Plumbing: one page, left-aligned, brand blues from the logo, photos lit in the same blue. */
:root {
  color-scheme: light;
  --navy: #004AAD;      /* logo wordmark */
  --blue: #0D68E0;      /* logo drop */
  --ink: #0F1B2D;
  --muted: #4A5872;
  --paper: #FFFFFF;
  --mist: #EEF3FA;
  --line: #D5DEEA;
  --display: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--blue); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--radius-sm); }

h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 600; }
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: 12px; top: -48px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 20;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: var(--radius-sm);
  transition-property: background-color, color, border-color, scale;
  transition-duration: 150ms; transition-timing-function: var(--ease);
}
.btn:active { scale: 0.96; }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--navy); }
.btn-line { color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 168px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9875rem; }
.nav a:hover { color: var(--blue); }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-note { color: var(--muted); font-size: 0.9375rem; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%;
  border-radius: var(--radius-lg);
  outline: 1px solid oklch(0 0 0 / 0.1); outline-offset: -1px;
}
.hero-photo::after {
  /* the drop from the logo, sitting on the photo's corner */
  content: ""; position: absolute; left: -22px; bottom: 28px; width: 64px; height: 64px;
  background: url("images/icon.png") center / contain no-repeat, #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.08), 0 8px 24px oklch(0.35 0.12 260 / 0.18);
}

/* Services */
.services { background: var(--mist); padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 44ch; }
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--navy);
}
.service-list li {
  padding: 24px 24px 28px 0;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.service-list li:not(:nth-child(3n)) { padding-right: 32px; }
.service-list p { color: var(--muted); }

/* How it works */
.how { padding-block: clamp(56px, 8vw, 104px); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.how-photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg);
  outline: 1px solid oklch(0 0 0 / 0.1); outline-offset: -1px;
}
.how-copy { display: flex; flex-direction: column; gap: 28px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 20px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mist); color: var(--navy);
  font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums;
}
.steps strong, .steps span { grid-column: 2; }
.steps strong { display: block; padding-top: 7px; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.0625rem; }

/* Contact */
.contact { background: var(--navy); color: #fff; padding-block: clamp(56px, 8vw, 104px); }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-copy > p { color: rgb(255 255 255 / 0.82); max-width: 40ch; }
.contact-list { margin: 8px 0 0; display: flex; flex-direction: column; border-top: 1px solid rgb(255 255 255 / 0.22); }
.contact-list div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid rgb(255 255 255 / 0.22); }
.contact-list dt { color: rgb(255 255 255 / 0.7); font-size: 0.9375rem; padding-top: 2px; }
.contact-list dd { margin: 0; font-size: 1.125rem; overflow-wrap: anywhere; }
.contact-list a { color: #fff; text-underline-offset: 3px; }
.contact-list dd a[href^="tel"] { font-family: var(--display); font-weight: 600; font-size: 1.5rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg);
  outline: 1px solid oklch(1 0 0 / 0.1); outline-offset: -1px;
}

/* Footer */
.site-footer { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.9375rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: var(--muted); }

/* Tablet */
@media (max-width: 960px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list li:not(:nth-child(3n)) { padding-right: 0; }
  .service-list li:nth-child(odd) { padding-right: 32px; }
}

/* Phone */
@media (max-width: 720px) {
  .nav { display: none; }
  .header-row { justify-content: space-between; min-height: 64px; }
  .brand img { width: 132px; }
  .hero-grid, .how-grid, .contact-grid, .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-photo::after { left: 16px; bottom: -24px; width: 52px; height: 52px; }
  .lede { font-size: 1.125rem; }
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .service-list li, .service-list li:nth-child(odd) { padding-right: 0; }
  .how-photo { order: 2; }
  .contact-list div { grid-template-columns: 72px minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .btn-small { padding: 0 12px; font-size: 0.875rem; }
  .brand img { width: 116px; }
}
