/* Ridgeline Plumbing & Drain — Low tier example.
   Art direction: dusk-pine and paper, one typeface (Space Grotesk) at very different sizes,
   safety orange reserved for actions, copper and contour lines as the brand texture.
   No remote requests; one small inline script for the menu and fade-ups. */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours */
  --ink: #0c1f22;          /* darkest surface: header, hero, contact */
  --ink-2: #10292c;
  --pine: #143a3a;         /* dark section surface */
  --paper: #f3eee4;        /* light section surface */
  --sand: #e6dccb;         /* alternate light surface */
  --text: #13282a;         /* text on paper */
  --muted: #4b5f5d;        /* secondary text on paper, 6.1:1 */
  --rule: #cdbfa8;         /* rules on paper */
  --on-dark: #f3eee4;
  --on-dark-muted: #b8c4bf;
  --rule-dark: rgba(243, 238, 228, .16);
  --copper: #c8743c;       /* illustration and texture only */
  --copper-text: #97491b;  /* copper for small text on paper, 5.6:1 */
  --copper-light: #e9b48a; /* copper for text on dark, 8:1 */
  --cta: #f97b2c;          /* actions only; ink text on it is 6:1 */
  --cta-hover: #ff9447;
  --ok: #8fd3a8;
  --font: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 .45em; font-weight: 600; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--cta); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 1.1em; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.eyebrow-light { color: var(--copper-light); }

/* Buttons: orange is only ever an action */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font-family: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2; letter-spacing: -0.005em;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--cta); color: var(--ink); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost-light { color: var(--on-dark); border-color: rgba(243, 238, 228, .45); overflow-wrap: anywhere; }
.btn-ghost-light:hover { border-color: var(--on-dark); background: rgba(243, 238, 228, .08); }
.btn-sm { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; }
.btn-lg { min-height: 56px; font-size: 1.08rem; padding-inline: 1.6em; }
.btn-xl { min-height: 68px; font-size: clamp(1.25rem, 2.4vw, 1.7rem); padding-inline: 1.5em; letter-spacing: -0.02em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid var(--rule-dark); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand-sub { white-space: nowrap; font-size: .7rem; font-weight: 500; color: var(--on-dark-muted); letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--on-dark-muted); }
.site-nav a:hover { color: var(--on-dark); background: rgba(243, 238, 228, .07); }

/* Hero */
.hero { background: var(--ink); color: var(--on-dark); overflow: clip; }
.hero-stage { position: relative; min-height: clamp(560px, calc(100svh - 72px - 84px), 780px); display: flex; align-items: center; }
.hero-art { position: absolute; inset: 0; }
.hero-scene { width: 100%; height: 100%; max-width: none; }
.hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 27, 30, .94) 0%, rgba(10, 27, 30, .86) 36%, rgba(10, 27, 30, .45) 50%, rgba(10, 27, 30, 0) 60%); }
.hero-copy { position: relative; padding-block: 72px 88px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); max-width: 11.5em; line-height: .98; letter-spacing: -0.04em; color: #fff; max-width: 9.5em; }
.hero h1 .hl { color: var(--copper-light); font-weight: 400; }
.lead { font-size: 1.18rem; line-height: 1.55; color: var(--on-dark-muted); max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero-rating { margin: 0; font-size: .95rem; color: var(--on-dark-muted); }
.hero-rating strong { color: var(--on-dark); font-weight: 600; }
.hero-rating .stars { color: var(--copper-light); letter-spacing: 2px; }
.hero-strip { position: relative; background: var(--ink-2); border-top: 1px solid var(--rule-dark); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 0 18px; font-weight: 500; font-size: .95rem; line-height: 1.3; color: var(--on-dark); border-left: 1px solid var(--rule-dark); }
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust svg { width: 24px; height: 24px; color: var(--copper-light); flex: none; }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* Services: editorial index */
.services { background: var(--paper) url("assets/contours.svg") 0 0 / 480px repeat; }
.services-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-head { position: sticky; top: 112px; margin-bottom: 0; }
.service-list { border-top: 2px solid var(--text); }
.service { display: grid; grid-template-columns: 3.2rem 1fr 56px; grid-template-areas: "no title icon" "no body icon"; column-gap: 20px; padding: 28px 0 26px; border-bottom: 1px solid var(--rule); }
.service-no { grid-area: no; font-size: .9rem; font-weight: 600; color: var(--copper-text); padding-top: .35em; letter-spacing: .04em; }
.service h3 { grid-area: title; font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin-bottom: .3em; }
.service p { grid-area: body; margin: 0; color: var(--muted); max-width: 36em; }
.service .icon { grid-area: icon; width: 48px; height: 48px; color: var(--pine); justify-self: end; opacity: .85; }
.service-urgent { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 40px; padding: clamp(28px, 4vw, 44px); border: 0; border-radius: 20px;
  background: var(--pine) url("assets/contours.svg") 0 0 / 480px repeat; color: var(--on-dark); position: relative; overflow: hidden; }
.service-urgent::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20, 58, 58, .4), rgba(12, 31, 34, .9)); }
.service-urgent > * { position: relative; }
.urgent-copy { flex: 1 1 22rem; }
.service-urgent h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: #fff; }
.service-urgent p { color: var(--on-dark-muted); margin: 0; max-width: 30em; }
.service-urgent .urgent-kicker { display: flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(143, 211, 168, .2); flex: none; }

/* Process: four steps on one copper pipe run */
.process { background: var(--sand); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; padding-top: 48px; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 6px; border-radius: 3px;
  background: linear-gradient(180deg, #e09a62, var(--copper) 55%, #a95a2a); }
.step { position: relative; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: -48px; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--on-dark); font-weight: 600; font-size: .95rem; box-shadow: 0 0 0 5px var(--sand); }
.step h3 { margin-top: 10px; }
.step p { color: var(--muted); margin: 0; }
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: clamp(56px, 7vw, 88px); padding-top: 22px; border-top: 1px solid var(--rule); }
.work-label { grid-column: 1 / -1; margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-text); }
.work-photo { margin: 0; }
.work-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--rule); }
.work-photo figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; max-width: 34em; }
.work-photo figcaption strong { color: var(--text); font-weight: 600; }

/* About: dark, with a photo of the crew at work */
.about { background: var(--pine); color: var(--on-dark); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-figure { margin: 0; }
.about-figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: var(--ink); }
.about-figure figcaption { margin-top: 14px; font-size: .92rem; color: var(--on-dark-muted); }
.about h2 { color: #fff; }
.about-body { color: var(--on-dark-muted); font-size: 1.12rem; max-width: 34em; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 1px solid var(--rule-dark); }
.about-facts li { display: flex; flex-direction: column; padding: 22px 16px 0 0; }
.about-facts li + li { padding-left: 18px; border-left: 1px solid var(--rule-dark); }
.about-facts strong { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.about-facts span { color: var(--on-dark-muted); font-size: .95rem; margin-top: 4px; }

/* Reviews */
.reviews { background: var(--paper); }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.reviews-head h2 { margin: 0; }
.rating { display: flex; align-items: center; gap: 16px; margin: 0; }
.rating-score { font-size: clamp(3.2rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--text); }
.rating-text { display: flex; flex-direction: column; color: var(--muted); font-size: .95rem; max-width: 12em; line-height: 1.35; }
.stars { color: var(--copper-text); letter-spacing: 2px; font-size: 1.05rem; margin: 0 0 14px; }
.rating .stars { margin: 0 0 4px; }
.review-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; column-gap: clamp(32px, 5vw, 72px); border-top: 2px solid var(--text); }
.review { padding: 32px 0; display: flex; flex-direction: column; }
.review + .review { border-top: 1px solid var(--rule); }
.review-feature { grid-row: span 2; border-top: 0; }
.review-grid .review:nth-child(2) { border-top: 0; }
.review blockquote { margin: 0 0 18px; font-size: 1.15rem; line-height: 1.5; color: var(--text); }
.review-feature blockquote { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; }
.review .who { margin: 0; font-weight: 600; color: var(--muted); font-size: .92rem; }

/* Service area */
.area { background: var(--sand) url("assets/contours.svg") 0 0 / 480px repeat; }
.area-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.area-copy > p:not(.eyebrow) { color: var(--muted); }
.towns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-top: 28px; border-top: 2px solid var(--text); }
.towns li { display: flex; align-items: center; gap: 12px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.towns li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--copper-text); flex: none; }
.towns li:first-child { font-weight: 700; }
.towns li:first-child::before { background: var(--copper-text); }
.area-map { margin: 0; }
.area-map img { width: 100%; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(12, 31, 34, .45); }
.area-photo { margin: clamp(48px, 6vw, 72px) 0 0; }
.area-photo img { width: 100%; height: auto; aspect-ratio: 1400 / 532; object-fit: cover; border-radius: 20px; background: var(--pine); }
.area-photo figcaption { margin-top: 12px; color: var(--muted); font-size: .92rem; }

/* Contact */
.contact { background: var(--ink); color: var(--on-dark-muted); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact h2 { color: #fff; font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 11em; }
.contact-cta > p:not(.eyebrow) { max-width: 34em; font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hours { color: var(--on-dark); border-top: 2px solid var(--on-dark); padding-top: 20px; }
.hours h3 { font-size: 1.1rem; margin-bottom: 8px; }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--rule-dark); font-size: .98rem; font-weight: 400; }
.hours th { color: var(--on-dark); padding-right: 12px; }
.hours td { text-align: right; color: var(--on-dark-muted); }
.hours-note { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ok); font-size: .95rem; }
.hours-note .dot { margin-top: .5em; }
.hours-address { margin: 0; color: var(--on-dark-muted); font-size: .95rem; }

/* Footer */
.site-footer { background: #081517; color: var(--on-dark-muted); padding: 40px 0; font-size: .92rem; border-top: 1px solid var(--rule-dark); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer p { margin: 0 0 4px; }
.footer-brand { color: var(--on-dark); font-weight: 600; font-size: 1.05rem; }
.footer-note { color: #93a39f; }
.agentx-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid rgba(243, 238, 228, .25); border-radius: 999px; color: var(--on-dark); text-decoration: none; font-size: .85rem; font-weight: 500; }
.agentx-badge svg { width: 16px; height: 16px; }
.agentx-badge:hover { border-color: rgba(243, 238, 228, .55); }

.mobile-call { display: none; }

/* Fade-ups as blocks enter: only with JS, only when motion is welcome, never on actions */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition: opacity .38s ease, transform .38s ease; }
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
}

/* Mobile menu (a <details> disclosure, so it works without JavaScript) */
.mnav { display: none; position: relative; }
.mnav-toggle { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-dark); color: var(--on-dark); cursor: pointer; }
.mnav-toggle::-webkit-details-marker { display: none; }
.mnav-toggle svg { width: 22px; height: 22px; }
.mnav-x { display: none; }
.mnav[open] .mnav-bars { display: none; }
.mnav[open] .mnav-x { display: inline; }
.mnav-panel { position: fixed; left: 12px; right: 12px; top: 72px; z-index: 40; background: var(--paper); color: var(--text); border-radius: 20px; box-shadow: 0 24px 48px rgba(0, 0, 0, .35); padding: 8px; }
.mnav-panel a { display: flex; align-items: center; min-height: 56px; padding: 0 16px; color: var(--text); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; border-radius: 12px; }
.mnav-panel a:active, .mnav-panel a:hover { background: var(--sand); }
.mnav-panel li + li a { border-top: 1px solid var(--rule); border-radius: 0; }
.mnav-note { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--pine); color: var(--ok); font-weight: 600; font-size: .92rem; }

/* Responsive */
@media (max-width: 1020px) {
  .site-nav { display: none; }
  .mnav { display: block; margin-left: auto; }
  .services-inner, .about-inner, .area-inner, .contact-inner { grid-template-columns: 1fr; }
  .services-head { position: static; margin-bottom: 8px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li { min-height: 64px; }
  .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--rule-dark); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 72px; }
  .steps::before { display: none; }
  .step { border-top: 6px solid var(--copper); padding-top: 0; }
  .step::before { top: -21px; }
  .step h3 { margin-top: 32px; }
  .about-figure { max-width: 560px; }
  .area-map { max-width: 560px; }
}
/* Phone and tablet-portrait hero: the van scene sits at the top, cropped tight; copy and the call button follow on the dark road */
@media (max-width: 900px) {
  .hero { --art-h: clamp(300px, 52vw, 440px); }
  .hero-stage { display: block; min-height: 0; }
  .hero-art { inset: 0 0 auto 0; height: var(--art-h); overflow: hidden; }
  .hero-scene { position: absolute; width: calc(var(--art-h) * 2.6); height: calc(var(--art-h) * 1.625); right: -48px; bottom: 0; }
  .hero-art::after { background: linear-gradient(180deg, rgba(10, 27, 30, 0) 55%, var(--ink) 100%); }
  .hero-copy { padding-block: calc(var(--art-h) - 48px) 40px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wrap { width: min(var(--wrap), 100% - 40px); }
  .header-inner { min-height: 64px; gap: 10px; }
  .mnav-panel { top: 68px; }
  .header-call span { display: none; }
  .header-call { width: 44px; min-height: 44px; padding: 0; }

  .hero .eyebrow { font-size: .72rem; letter-spacing: .12em; margin-bottom: .8em; }
  .hero h1 { font-size: 2.3rem; }
  .lead { font-size: 1.02rem; }
  .hero-actions { margin: 20px 0 18px; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { min-height: 54px; font-size: 1.02rem; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li { font-size: .88rem; gap: 10px; padding: 12px 12px 12px 0; }
  .trust li:nth-child(even) { padding-left: 14px; }

  .service { grid-template-columns: 2.4rem 1fr; grid-template-areas: "no title" "no body"; column-gap: 12px; padding: 22px 0; }
  .service .icon { display: none; }
  .service-urgent .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; row-gap: 56px; }
  .work { grid-template-columns: 1fr; gap: 24px; }
  .area-photo img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .about-facts { grid-template-columns: 1fr; }
  .about-facts li, .about-facts li + li { flex-direction: row; align-items: baseline; gap: 12px; padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--rule-dark); }
  .review-grid { grid-template-columns: 1fr; }
  .review-feature { grid-row: auto; }
  .review-grid .review:nth-child(2) { border-top: 1px solid var(--rule); }
  .contact-actions .btn { width: 100%; }
  .btn-xl { font-size: 1.3rem; min-height: 60px; }
  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
    min-height: 56px; border-radius: 999px; background: var(--cta); color: var(--ink);
    font-weight: 600; font-size: 1.05rem; text-decoration: none; box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  }
  .mobile-call svg { width: 20px; height: 20px; }
}

@media (max-width: 359px) { .brand-sub { letter-spacing: .08em; } .brand-name { font-size: 1.15rem; } }
