/* STL Drain Cleaning Pros
   One idea: the phone number is lettered like the side of a service truck.
   Everything else stays quiet so the number is what you see. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --slate: #1d3440;       /* cast-iron blue: bands and headings */
  --slate-deep: #142630;  /* header, footer, plate lettering */
  --yellow: #ffc72c;      /* truck yellow: the call action and nothing else */
  --water: #0f6e8c;       /* links */
  --slab: #eef2f3;        /* alternate band */
  --paper: #ffffff;
  --ink: #1d2b33;
  --muted: #52646e;
  --rule: #cbd6da;
  --on-dark: #d6e1e6;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--slate);
  margin: 0;
}
h1 { font-size: clamp(3rem, 9vw, 6rem); line-height: 0.92; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; line-height: 1.1; }

p, ul, ol { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--water); text-decoration-thickness: 0.08em; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 0.14em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 70rem; margin-inline: auto; padding-inline: 1.25rem; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: 0.5rem 0.75rem; }

.preview-warning { background: #a8001c; color: #fff; padding: 0.5rem 1.25rem; font-size: 0.95rem; font-weight: 600; }

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

.site-head { background: var(--slate-deep); }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand, .head-phone { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.brand { color: #fff; }
.head-phone { color: var(--yellow); }
.site-head a:focus-visible { outline-color: #fff; }

/* ---------- The plate (call button) ---------- */

.plate {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 7.5vw, 3.5rem);
  line-height: 1;
  color: var(--slate-deep);
  background: var(--yellow);
  border: 3px solid var(--slate-deep);
  box-shadow: 0 0 0 4px var(--yellow);
  border-radius: 0.5rem;
  padding: 0.85rem 1.4rem 0.95rem;
  margin: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.plate:hover { background: #ffd451; box-shadow: 0 0 0 4px #ffd451; }
.plate:active { transform: translateY(1px); }
.plate:focus-visible { outline: 3px solid #fff; outline-offset: 7px; }
.plate-note { margin: 0.9rem 0 0; font-size: 1rem; }

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

.hero { background: var(--slate); color: var(--on-dark); padding-block: 3rem 3.5rem; }
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: 1.25rem; }
.hero .lead { font-size: 1.25rem; max-width: 36rem; margin-bottom: 1.75rem; }
.hero a:not(.plate) { color: #fff; }
.hero-inner h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); max-width: 18ch; }
.hero-inner { padding-block: 2rem 2.5rem; }
.hero-inner .lead { margin-bottom: 0; }

.crumb { font-size: 1rem; margin-bottom: 1rem; }

/* ---------- Bands ---------- */

.band { padding-block: 3.5rem; }
.band-slab { background: var(--slab); }
.prose { max-width: 40rem; }
.prose h2 { margin-top: 2.75rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 0.5rem; }

/* ---------- Lookup: symptom on the left, what it means on the right ---------- */

.lookup { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--slate); }
.lookup li {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: 0.35rem 2.5rem;
  padding-block: 1.25rem;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.lookup h3 { font-size: 1.625rem; }
.lookup p { margin: 0; max-width: 38rem; }
.lookup p + p { margin-top: 0.35rem; }

/* ---------- Page with a rail ---------- */

.page-grid { display: grid; grid-template-columns: minmax(0, 40rem) 18rem; gap: 4rem; align-items: start; justify-content: space-between; }
.rail { position: sticky; top: 1.5rem; }
.rail .plate { display: block; font-size: 2rem; text-align: center; }
.rail .plate-note { color: var(--muted); }
.rail h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin: 0; padding-block: 0.45rem; border-top: 1px solid var(--rule); }
.plain-list li:last-child { border-bottom: 1px solid var(--rule); }
.plain-list [aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* ---------- FAQ ---------- */

.faq { border-top: 3px solid var(--slate); max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; color: var(--slate); padding-block: 1rem; cursor: pointer; }
.faq details p { max-width: 40rem; margin-bottom: 1.25rem; }

/* ---------- Reference table and program entries ---------- */

.ref { width: 100%; border-collapse: collapse; margin-top: 2.5rem; font-size: 1.0625rem; border-top: 3px solid var(--slate); }
.ref th, .ref td { text-align: left; vertical-align: top; padding: 0.7rem 1.25rem 0.7rem 0; border-bottom: 1px solid var(--rule); }
.ref thead th { font-family: var(--display); font-size: 1.25rem; color: var(--slate); line-height: 1.1; }
.ref tbody th { font-weight: 600; width: 22%; }
.ref td:nth-child(2) { width: 14%; }
.ref td:nth-child(3) { width: 36%; }

.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; border-top: 3px solid var(--slate); }
.program { padding-block: 1.75rem; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.program h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.program dl { margin: 0; }
.program dl div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0 1rem; padding-block: 0.3rem; }
.program dt { font-weight: 600; color: var(--muted); font-size: 1rem; }
.program dd { margin: 0; overflow-wrap: anywhere; }
.program-more, .compare { margin: 0.9rem 0 0; }
.compare { padding-top: 1.25rem; margin-top: 2.5rem; border-top: 1px solid var(--rule); font-weight: 600; }

/* ---------- Closing call band ---------- */

.callband { background: var(--slate); color: var(--on-dark); padding-block: 3rem; }
.callband h2 { color: #fff; }

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

.site-foot { background: var(--slate-deep); color: var(--on-dark); font-size: 1rem; padding-block: 2.5rem; }
.site-foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 3rem; }
.site-foot h2 { font-size: 1.375rem; color: #fff; margin-bottom: 0.6rem; }
.site-foot a { color: #fff; }
.site-foot a:focus-visible { outline-color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.3rem; }
.site-foot p { margin-bottom: 0.6rem; max-width: 26rem; }

/* ---------- Phone-width call bar ---------- */

.callbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 5;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  color: var(--slate-deep);
  background: var(--yellow);
  border-top: 3px solid var(--slate-deep);
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
}

@media (max-width: 60rem) {
  .page-grid { grid-template-columns: minmax(0, 40rem); gap: 2.5rem; justify-content: start; }
  .rail { position: static; }
  .rail .plate, .rail .plate-note { display: none; }
  .rail h2:first-of-type { margin-top: 0; }
}

@media (max-width: 60rem) {
  .programs { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 48rem) {
  .ref thead { position: absolute; left: -999rem; }
  .ref, .ref tbody, .ref tr, .ref th, .ref td { display: block; width: auto !important; }
  .ref tr { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
  .ref th, .ref td { border: 0; padding: 0.15rem 0; }
  .ref tbody th { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; padding-bottom: 0.35rem; }
  .ref td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
  .program dl div { grid-template-columns: minmax(0, 1fr); padding-block: 0.4rem; }
  body { padding-bottom: 4rem; }
  .callbar { display: block; }
  .band { padding-block: 2.5rem; }
  .hero { padding-block: 2rem 2.5rem; }
  .lookup li { grid-template-columns: 1fr; }
}

@media (max-width: 26rem) {
  .brand, .head-phone { font-size: 1.25rem; }
}

@media print {
  .callbar, .rail, .preview-warning { display: none; }
}
