/* Ridgeline Plumbing & Drain — Low tier example. System fonts, no JS, no remote requests. */
:root {
  --navy: #0f2a43;
  --navy-2: #173a5c;
  --ink: #142233;
  --muted: #4a5a6b;
  --line: #dfe3e8;
  --bg: #f7f5f0;
  --card: #ffffff;
  --accent: #c2410c;       /* white text on this = 5.2:1 */
  --accent-hover: #a5370a;
  --accent-soft: #fde9dc;
  --sky: #e6eef6;
  --ok: #1f7a4d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 42, 67, .06), 0 8px 24px rgba(15, 42, 67, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -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(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid #f08a3e; outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); 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(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a8380b; margin-bottom: .8em; }
.eyebrow-light { color: #ffb489; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.35em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  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(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.55); overflow-wrap: anywhere; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { min-height: 42px; padding: .5em 1em; font-size: .95rem; }
.btn-lg { min-height: 56px; font-size: 1.1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 240, .94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-sub { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: var(--sky); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); background:
  radial-gradient(900px 420px at 85% 10%, #e3ecf5 0%, rgba(227,236,245,0) 70%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--navy); font-weight: 600; font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 20px; height: 20px; color: var(--ok); }
.hero-art img { width: 100%; filter: drop-shadow(0 18px 30px rgba(15, 42, 67, .12)); }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.services { background: #fff; border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 28px 26px 22px; transition: transform .2s ease, box-shadow .2s ease; }
.service:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,42,67,.06), 0 16px 32px rgba(15,42,67,.1); }
@media (prefers-reduced-motion: reduce) { .service, .service:hover { transition: none; transform: none; } }
.service .icon { width: 48px; height: 48px; color: var(--navy-2); background: var(--sky); border-radius: 12px; padding: 8px; margin-bottom: 16px; }
.service p { color: var(--muted); margin: 0; font-size: .98rem; }
.service-urgent { background: var(--navy); border-color: var(--navy); }
.service-urgent h3 { color: #fff; }
.service-urgent p { color: #c9d6e3; }
.service-urgent .icon { background: rgba(255,255,255,.1); color: #ffb489; }

.area-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.area-copy > p { color: var(--muted); }
.towns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 24px; }
.towns li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.towns li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.area-map { margin: 0; }
.area-map img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }

.reviews { background: var(--sky); }
.rating { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy) !important; }
.stars { color: #b45309; letter-spacing: 2px; font-size: 1.1rem; margin: 0 0 12px; }
.rating .stars { margin: 0; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { padding: 28px 26px; display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 18px; font-size: 1.05rem; color: var(--ink); flex: 1; }
.review .who { margin: 0; font-weight: 700; color: var(--muted); font-size: .92rem; }

.contact { background: var(--navy); color: #dbe5ef; }
.contact-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact h2 { color: #fff; }
.contact-cta > p { max-width: 34em; color: #c9d6e3; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hours { padding: 30px 28px; color: var(--ink); }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.hours th { font-weight: 600; color: var(--navy); padding-right: 12px; }
.hours td { text-align: right; color: var(--muted); }
.hours-note { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ok); font-size: .95rem; }
.hours-note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); margin-top: .5em; flex: none; box-shadow: 0 0 0 4px rgba(31,122,77,.15); }
.hours-address { margin: 0; color: var(--muted); font-size: .95rem; }

.site-footer { background: #0a1e31; color: #a9b9c9; padding: 36px 0; font-size: .92rem; }
.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: #fff; font-weight: 700; }
.footer-note { color: #8ea2b6; }
.agentx-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #e6edf4; text-decoration: none; font-size: .85rem; font-weight: 600; }
.agentx-badge svg { width: 14px; height: 14px; }
.agentx-badge:hover { border-color: rgba(255,255,255,.5); }

.mobile-call { display: none; }

/* 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: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); 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: 70px; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(15, 42, 67, .18); padding: 8px; }
.mnav-panel a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 12px; color: var(--navy); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.mnav-panel a:active, .mnav-panel a:hover { background: var(--sky); }
.mnav-panel li + li a { border-top: 1px solid var(--line); border-radius: 0; }
.mnav-note { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 12px 16px; border-radius: 12px; background: #eef7f1; color: var(--ok); font-weight: 700; font-size: .92rem; }
.mnav-note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31,122,77,.15); }

/* Responsive */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .mnav { display: block; margin-left: auto; }
  .hero-inner, .area-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin-inline: auto; }
  .service-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .header-inner { min-height: 64px; gap: 10px; }
  .mnav-panel { top: 66px; }
  .header-call span { display: none; }
  .header-call { width: 44px; min-height: 44px; padding: 0; }
  .service-grid, .review-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .btn-lg { font-size: 1rem; }
  .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: 54px; border-radius: 999px; background: var(--accent); color: #fff;
    font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  }
  .mobile-call svg { width: 20px; height: 20px; }
}
