/* ============================================================
   SCOTT'S H PLUMBING — "WORK ORDER" DESIGN SYSTEM
   York, PA · Graphite / warm paper / brass / burnt orange
   Display: Archivo · Body: system stack · Data: mono stack
   ============================================================ */

:root {
  /* Palette */
  --graphite: #23272B;        /* primary dark — headers, footer, ink */
  --graphite-soft: #3C434A;   /* soft text on light */
  --paper: #FAF7F2;           /* warm page background */
  --paper-card: #FFFFFF;      /* card surfaces */
  --paper-shade: #EFE9DF;     /* alternating section tint */
  --brass: #9A6A1F;           /* structural accent, rules, markers */
  --brass-light: #C99B4A;     /* brass on dark backgrounds */
  --action: #C4551B;          /* burnt orange — CALL ACTIONS ONLY */
  --steel: #33566B;           /* secondary accent, links */
  --line: #DDD5C7;            /* light rules */
  --line-dark: #3A4046;       /* rules on graphite */
  --ok: #4C7A45;              /* success/positive marker */

  /* Type */
  --font-display: 'Archivo', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Scale */
  --fs-h1: clamp(2.1rem, 5.5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3.4vw, 2.2rem);
  --fs-h3: 1.15rem;
  --fs-body: 1rem;
  --fs-small: 0.85rem;

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 1rem;
  --sp-4: 1.5rem; --sp-5: 2.5rem; --sp-6: 4rem;

  /* Shape */
  --radius-s: 4px;
  --radius-m: 8px;
  --shadow-card: 0 1px 3px rgba(35, 39, 43, 0.08), 0 4px 14px rgba(35, 39, 43, 0.06);
  --shadow-lift: 0 8px 28px rgba(35, 39, 43, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 var(--sp-3); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); font-weight: 800; text-transform: none; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 var(--sp-3); }
a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.max-prose { max-width: 68ch; }

/* ---------- WORK-ORDER TICKET MOTIF ---------- */
/* Signature element: content blocks styled like a filled-out job ticket */
.ticket {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  position: relative;
}
.ticket::before {
  /* brass staple mark, top-left, like a stapled work order */
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 18px; height: 5px;
  background: var(--brass);
  border-radius: 2px;
  transform: rotate(-6deg);
  opacity: 0.85;
}
.ticket-head {
  border-bottom: 1px dashed var(--line);
  padding: var(--sp-4) var(--sp-4) var(--sp-3) calc(var(--sp-4) + 24px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}
.ticket-body { padding: var(--sp-4); }

/* ---------- EYEBROW / LABELS ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--sp-2);
}
.section-ink .eyebrow { color: var(--brass-light); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-s);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-call {
  background: var(--action);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(196, 85, 27, 0.35);
}
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(196, 85, 27, 0.4); }
.btn-call .num { font-family: var(--font-mono); font-weight: 700; }
.btn-outline {
  background: transparent;
  color: var(--graphite) !important;
  border: 2px solid var(--graphite);
}
.btn-outline:hover { background: var(--graphite); color: var(--paper) !important; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.pulse { animation: pulseBtn 2.4s infinite; }
@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(196, 85, 27, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(196, 85, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 85, 27, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--paper-card);
  border-bottom: 2px solid var(--graphite);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none !important; }

.main-nav { display: none; }
.main-nav ul { display: flex; list-style: none; padding: 0; margin: 0; gap: var(--sp-4); }
.main-nav > ul > li { position: relative; }
.main-nav a { color: var(--graphite); font-weight: 600; font-size: 0.92rem; }
.main-nav a:hover { color: var(--action); text-decoration: none; }
.main-nav .has-dropdown > a::after { content: "\25BE"; font-size: 0.62em; margin-left: 0.3em; color: var(--brass); }
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  box-shadow: var(--shadow-lift);
  min-width: 280px;
  padding: 0.4rem 0;
  z-index: 120;
  list-style: none;
  margin: 0;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown { display: block; }
.main-nav .dropdown li { margin: 0; }
.main-nav .dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  font-weight: 500;
  font-size: 0.87rem;
  white-space: nowrap;
}
.main-nav .dropdown a::after { content: none; }
.main-nav .dropdown a:hover { background: var(--paper-shade); color: var(--action); }

.header-call { display: none; }
.nav-toggle {
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 24px; height: 2.5px;
  background: var(--graphite);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { transform: translateY(-8px); }
.nav-toggle span::after { transform: translateY(8px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--paper-card);
  border-bottom: 2px solid var(--graphite);
  padding: var(--sp-3) 1.25rem var(--sp-4);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 0.75rem 0.25rem; color: var(--graphite); font-weight: 600; }

@media (min-width: 980px) {
  .main-nav { display: block; }
  .header-call { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-shade) 100%);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-6) 0 var(--sp-6);
}
.hero-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; align-items: center; }
.hero .lead { font-size: 1.12rem; color: var(--graphite-soft); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-3); }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--graphite);
  color: var(--brass-light);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-small); color: var(--graphite-soft); }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta span::before { content: "\2713"; color: var(--ok); font-weight: 700; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- SECTIONS ---------- */
section { padding: var(--sp-6) 0; }
.section-shade { background: var(--paper-shade); }
.section-ink { background: var(--graphite); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink a { color: var(--brass-light); }
.section-head { max-width: 66ch; margin-bottom: var(--sp-5); }

/* Brass rule divider — like a ruled line on a work order pad */
.rule-divider {
  border: none;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--brass) 0 26px, transparent 26px 38px);
  margin: 0;
  opacity: 0.55;
}

/* ---------- ANSWER-FIRST BLOCK (AIO) ---------- */
.answer-block {
  background: var(--paper-card);
  border-left: 5px solid var(--brass);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  box-shadow: var(--shadow-card);
  padding: var(--sp-4) var(--sp-4);
  margin: var(--sp-5) 0;
  font-size: 1.04rem;
}
.answer-block p { margin: 0; }
.answer-block a { font-weight: 700; color: var(--action); }

/* ---------- CTA BANDS ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-4);
  border-radius: var(--radius-m);
  margin: var(--sp-5) 0;
}
.cta-band p { margin: 0; max-width: 62ch; }
.cta-band.hook {
  background: var(--paper-card);
  border: 1.5px solid var(--brass);
}
.cta-band.hook a { color: var(--action); font-weight: 700; }
.cta-band.close {
  background: var(--graphite);
  color: var(--paper);
}
.cta-band.close .eyebrow { color: var(--brass-light); }

/* ---------- FEATURE LIST ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.feature-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.feature-list .marker {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border: 2px solid var(--brass);
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brass);
  background: var(--paper-card);
}
.feature-list strong { display: block; margin-bottom: 0.2rem; font-family: var(--font-display); }
.feature-list p { margin: 0; color: var(--graphite-soft); font-size: 0.95rem; }
@media (min-width: 820px) { .feature-list { grid-template-columns: 1fr 1fr; } }

/* ---------- CARD GRID ---------- */
.card-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 a { color: var(--graphite); }
.card h3 a:hover { color: var(--action); text-decoration: none; }
.card p { color: var(--graphite-soft); font-size: 0.95rem; }
.card-link { font-weight: 700; font-size: 0.9rem; color: var(--action); }
@media (min-width: 700px) { .card-grid { grid-template-columns: 1fr 1fr; } .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- STEPS (numbered process) ---------- */
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.step-list li { display: flex; gap: var(--sp-3); }
.step-list .step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brass);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
}
.step-list strong { font-family: var(--font-display); }
.step-list p { margin: 0.15rem 0 0; color: var(--graphite-soft); font-size: 0.95rem; }

/* ---------- FAQ ACCORDION ---------- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--graphite);
  padding: 1.05rem 0.25rem;
  cursor: pointer;
}
.faq-question:hover { color: var(--action); }
.faq-question .plus {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--brass);
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0.25rem 1.1rem; color: var(--graphite-soft); }
.faq-answer.open { display: block; }
.faq-answer p { margin: 0; }

/* ---------- SPEC PANELS (CSS-only visuals, no images) ---------- */
.dispatch-panel {
  background: var(--graphite);
  border-radius: var(--radius-m);
  padding: var(--sp-5);
  color: var(--paper);
  max-width: 520px;
}
.dispatch-panel .dp-eyebrow {
  display: flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: var(--sp-4);
}
.dispatch-panel .dp-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #5FBF6C; }
.dispatch-panel .dp-eyebrow .dot.live { animation: liveDot 1.8s infinite; }
@keyframes liveDot {
  0% { box-shadow: 0 0 0 0 rgba(95,191,108,.55); }
  70% { box-shadow: 0 0 0 8px rgba(95,191,108,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,191,108,0); }
}
.dispatch-panel .dp-readout { font-family: var(--font-mono); font-size: clamp(2.1rem, 6vw, 2.9rem); font-weight: 700; line-height: 1; }
.dispatch-panel .dp-label { font-size: 0.8rem; color: #B9C2C9; margin-top: 0.35rem; }
.dispatch-panel .dp-rule { height: 1px; background: var(--line-dark); margin: var(--sp-4) 0; }
.dispatch-panel .dp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); text-align: center; }
.dispatch-panel .dp-grid strong { display: block; font-family: var(--font-mono); font-size: 1rem; color: #fff; }
.dispatch-panel .dp-grid span { font-size: 0.72rem; color: #B9C2C9; }

.jobsheet-panel {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  max-width: 520px;
}
.jobsheet-panel .jp-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px dashed var(--line);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
  display: block;
}
.jobsheet-panel ul { list-style: none; padding: 0; margin: 0; }
.jobsheet-panel li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.55rem 0; border-bottom: 1px dotted var(--line); }
.jobsheet-panel li:last-child { border-bottom: none; }
.jobsheet-panel .jp-check { color: var(--ok); font-weight: 700; flex-shrink: 0; }
.jobsheet-panel .jp-name { font-weight: 700; font-size: 0.92rem; display: block; }
.jobsheet-panel .jp-spec { font-family: var(--font-mono); font-size: 0.77rem; color: var(--graphite-soft); display: block; }

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs { padding: var(--sp-3) 1.25rem 0; font-size: var(--fs-small); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; color: var(--graphite-soft); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--brass); }
.breadcrumbs a { color: var(--steel); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--graphite);
  color: #C9CFD4;
  padding: var(--sp-6) 0 var(--sp-4);
  font-size: 0.92rem;
}
.footer-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; margin-bottom: var(--sp-5); }
.footer-brand .brand { margin-bottom: var(--sp-3); }
.footer-nap p { margin: 0 0 var(--sp-2); }
.footer-nap a { color: var(--brass-light); font-weight: 700; }
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.45rem; }
.site-footer ul a { color: #C9CFD4; font-size: 0.88rem; }
.site-footer ul a:hover { color: var(--brass-light); }
.footer-map { margin-bottom: var(--sp-5); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line-dark); }
.footer-map iframe { display: block; width: 100%; height: 320px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--sp-4);
  font-size: var(--fs-small);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2);
  color: #8C959C;
}
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 0.8fr; } }

/* ---------- STICKY MOBILE CALL BAR ---------- */
.sticky-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--action);
  text-align: center;
  transition: transform 0.25s ease;
}
.sticky-cta-bar.hidden { transform: translateY(100%); }
.sticky-cta-bar a {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 0.95rem 1rem;
  text-decoration: none;
}
.sticky-cta-bar .num { font-family: var(--font-mono); }
@media (min-width: 900px) { .sticky-cta-bar { display: none; } }
body { padding-bottom: 56px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
