/* Steel Citrus / Direction A Editorial - Hershey PA Main Water Line v4
   Tokens, type scale, spacing scale, radius family and shadows are locked in
   design-system.md (package root, not shipped). No em or en dashes in this file. */

@font-face { font-family: "Bitter"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/assets/fonts/bitter-latin.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/mulish-latin.woff2) format("woff2"); }

:root {
  --bg: #F2F4F6;
  --surface: #FFFFFF;
  --ink: #1A2027;
  --primary: #44566B;
  --accent: #F2C12E;
  --accent-ink: #1A2027; /* CTA text on accent, 9.72:1 */
  --muted: #5A6572;
  --line: #DDE3E9;
  --radius: 12px;
  --radius-sm: 4px;
  --radius-lg: 20px;
  --shadow-soft: 0 1px 2px rgba(26,32,39,.05), 0 8px 24px rgba(26,32,39,.07);
  --shadow-raised: 0 2px 6px rgba(26,32,39,.10), 0 20px 48px rgba(26,32,39,.16);
  --reveal-dur: 240ms;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Mulish", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --sec-pad: 56px;
  --gutter: clamp(20px, 4vw, 40px);
}
@media (min-width: 900px) {
  :root { --sec-pad: 88px; }
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1vw + 0.9rem, 1.1875rem);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 2.375rem); font-weight: 700; }
h3 { font-size: clamp(1.3125rem, 1.5vw + 1rem, 1.5625rem); font-weight: 600; line-height: 1.25; }
p { margin: 0 0 16px; }
a { color: var(--primary); }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: var(--radius-sm); }
.cta-band :focus-visible, .site-footer :focus-visible, .skip:focus-visible { outline-color: var(--accent); }

picture { display: contents; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.reading { max-width: 68ch; }
.reading > p { margin-bottom: 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700; transition: top 160ms ease-out;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; line-height: 1.4;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-soft); }
.btn-accent:hover { background: #E8B425; color: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--shadow-raised); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 56px; padding: 16px 36px; font-size: 1.1875rem; }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: none; width: 48px; height: 48px; background: none; border: 2px solid var(--line);
  border-radius: var(--radius); cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle-bar { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; }

.site-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 14px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
  border-radius: var(--radius-sm); white-space: nowrap;
}
.site-nav .menu a:hover { background: var(--bg); }
.has-drop > a::after { content: ""; margin-left: 8px; border: 5px solid transparent; border-top-color: var(--primary); transform: translateY(2px); }
.drop {
  position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-raised); list-style: none; margin: 8px 0 0; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 160ms;
}
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.drop a { display: flex; min-height: 44px; align-items: center; padding: 8px 14px; font-weight: 500; white-space: normal; }
.header-call { flex-shrink: 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0 var(--gutter); max-width: 1180px; margin-inline: auto; }
.crumbs li + li::before { content: "/"; color: var(--muted); margin-right: 8px; }
.crumbs a { color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs [aria-current] { color: var(--muted); }

/* ---------- Hero (editorial) ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: clamp(48px, 7vw, 88px); }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 20px;
}
.ink-rule { display: inline-block; width: 64px; height: 4px; background: var(--accent); border-radius: 2px; transform-origin: left center; }
.js .ink-rule { animation: rule-draw 600ms ease-out 150ms both; }
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero h1 { max-width: 16ch; margin-bottom: 20px; }
.lede { font-size: clamp(1.125rem, 1vw + 1rem, 1.25rem); line-height: 1.6; max-width: 56ch; color: var(--ink); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 16px; }
.hero-note { font-size: 0.9375rem; color: var(--muted); font-weight: 600; margin: 0; }
.hero-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-raised); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { font-size: 0.9375rem; color: var(--muted); padding: 12px 16px; background: var(--surface); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec-pad); }
.section-head { max-width: 68ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* ---------- Pull quote call box (signature) ---------- */
.pullquote {
  background: var(--surface); border-left: 6px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-soft); padding: clamp(24px, 4vw, 40px);
  max-width: 68ch; margin-block: 40px;
}
.pullquote-text {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(1.25rem, 2vw + 1rem, 1.625rem); line-height: 1.45; margin: 0 0 12px;
}
.pullquote-sub { color: var(--muted); margin-bottom: 24px; }
.pullquote .btn { margin-top: 4px; }

/* ---------- Checklist ---------- */
.ticks { list-style: none; margin: 24px 0; padding: 0; }
.ticks li { position: relative; padding-left: 44px; margin-bottom: 16px; max-width: 62ch; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 28px; height: 28px;
  background: var(--accent); border-radius: 50%;
}
.ticks li::after {
  content: ""; position: absolute; left: 9px; top: 12px; width: 10px; height: 6px;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(-45deg);
}

/* ---------- Steps (numbered panels) ---------- */
.steps-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.steps-grid li {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 28px 24px; border-top: 4px solid var(--accent);
}
.step-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; display: block; margin-bottom: 12px; }
.steps-grid h3 { margin-bottom: 8px; }
.steps-grid p { font-size: 1rem; color: var(--muted); margin: 0; }
/* ---------- Service panels (numbered editorial rows) ---------- */
.service-panels { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; }
.service-panel {
  display: grid; gap: 0; background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
@media (min-width: 760px) { .service-panel { grid-template-columns: 300px 1fr; } }
.service-panel img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-panel-body { padding: clamp(24px, 3vw, 36px); }
.service-panel-body h3 { margin-bottom: 8px; }
.service-panel-body h3 a { color: var(--ink); text-decoration: none; }
.service-panel-body h3 a:hover { color: var(--primary); text-decoration: underline; }
.service-panel-body p { color: var(--muted); margin-bottom: 16px; }
.service-panel-num { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--primary); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Cards (max one row of three) ---------- */
.cards-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.3125rem; margin: 0; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--primary); text-decoration: underline; }
.card-body p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Callout boxes ---------- */
.wait-box, .safety {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); padding: clamp(24px, 4vw, 40px); margin-block: 40px;
}
.wait-box { border-top: 6px solid var(--primary); }
.wait-box ul { margin: 16px 0 0; padding-left: 24px; }
.wait-box li { margin-bottom: 12px; max-width: 62ch; }
.safety { border: 2px solid var(--primary); background: #F7F9FB; }
.safety h2, .safety h3 { color: var(--primary); }

/* ---------- FAQ accordion ---------- */
.faqs { scroll-margin-top: 96px; }
.faq { max-width: 68ch; margin-top: 32px; border-top: 2px solid var(--line); }
.faq-item { border-bottom: 2px solid var(--line); }
.faq-q { margin: 0; }
.faq-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 64px; padding: 16px 4px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: clamp(1.125rem, 1vw + 1rem, 1.3125rem);
  font-weight: 600; color: var(--ink); line-height: 1.35;
}
.faq-btn:hover { color: var(--primary); }
.faq-ic { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; }
.faq-ic::before { left: 8px; right: 8px; top: 13px; height: 3px; }
.faq-ic::after { top: 8px; bottom: 8px; left: 13px; width: 3px; transition: transform 160ms ease-out; }
.faq-btn[aria-expanded="true"] .faq-ic::after { transform: scaleY(0); }
.faq-a { padding: 0 4px 24px; color: var(--ink); }
.faq-a p:last-child { margin-bottom: 0; }
html:not(.js) .faq-a { display: block !important; }

/* ---------- Closing CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { padding-block: clamp(56px, 7vw, 88px); text-align: center; }
.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta-band p { color: #C9D3DC; max-width: 56ch; margin-inline: auto; }
.cta-band .btn { margin-top: 12px; }
.cta-note { font-size: 0.9375rem; color: #C9D3DC; margin: 16px 0 0; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D7DEE5; }
.foot-grid { display: grid; gap: 40px; padding-block: 56px 40px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.foot-brand p { font-size: 1rem; color: #B9C4CE; }
.foot-brand .btn { margin-top: 16px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 4px; }
.foot-grid nav a { color: #D7DEE5; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }
.foot-grid nav a:hover { color: var(--accent); text-decoration: underline; }
.foot-base { border-top: 1px solid #33404D; padding-block: 28px; font-size: 0.9375rem; color: #A9B5C0; }
.foot-base p { margin-bottom: 12px; }
.foot-base .disclosure { color: #C6D0DA; }
.foot-base .recording { color: #C6D0DA; }

/* ---------- Floating call button ---------- */
.float-call {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1.0625rem;
  text-decoration: none; border-radius: 999px; padding: 14px 22px; min-height: 56px;
  box-shadow: var(--shadow-raised); border: 0; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 240ms ease-out, transform 240ms ease-out, visibility 240ms;
}
.float-call.show, html:not(.js) .float-call { opacity: 1; visibility: visible; transform: translateY(0); }
.float-call:hover { background: #E8B425; color: var(--accent-ink); }
.float-call svg { flex-shrink: 0; }

/* ---------- Mobile bottom call bar ---------- */
.call-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(26,32,39,.12);
  opacity: 0; visibility: hidden; transform: translateY(100%);
  transition: opacity 240ms ease-out, transform 240ms ease-out, visibility 240ms;
}
.call-bar .btn { flex: 1; width: 100%; }
@media (max-width: 767px) {
  .call-bar.show, html:not(.js) .call-bar { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
  html:not(.js) body, body.has-callbar { padding-bottom: 92px; }
}

/* ---------- Motion: reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--reveal-dur) ease-out, transform var(--reveal-dur) ease-out; }
.js .reveal.in { opacity: 1; transform: translateY(0); }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 480ms ease-out; }
.js .reveal-img.in { clip-path: inset(0 0 0% 0); }

/* ---------- Prose helpers ---------- */
.prose-split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .prose-split { grid-template-columns: 1fr 0.9fr; gap: 56px; } }
figure.media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--surface); }
figure.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figure.media figcaption { font-size: 0.9375rem; color: var(--muted); padding: 12px 16px; }

/* ---------- Mobile nav ---------- */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .header-call { order: 1; }
  .nav-toggle { order: 2; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: 120;
    background: var(--surface); box-shadow: var(--shadow-raised);
    transform: translateX(105%); visibility: hidden; transition: transform 240ms ease-out, visibility 0s linear 240ms;
    overflow-y: auto; padding: 24px;
  }
  .site-nav.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav .menu a { width: 100%; min-height: 48px; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--accent); border-radius: 0; margin: 0 0 8px 12px; padding: 0 0 0 8px; }
  .nav-close { display: inline-flex; margin-bottom: 16px; }
  .nav-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(26,32,39,.5); opacity: 0; visibility: hidden; transition: opacity 240ms ease-out, visibility 240ms; }
  .nav-scrim.show { opacity: 1; visibility: visible; }
}
@media (min-width: 900px) {
  .nav-close { display: none; }
  .nav-scrim { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
}

/* Float button hidden on mobile: the bottom call bar serves small screens */
@media (max-width: 767px) {
  .float-call { display: none; }
}

/* Card variants used on hubs and "at a glance" rows */
.card > .card-h { font-family: var(--serif); font-size: 1.3125rem; font-weight: 600; line-height: 1.25; margin: 0; padding: 24px 24px 0; }
.card > .card-h + p { padding: 8px 24px 24px; margin: 0; color: var(--muted); font-size: 1rem; }
.card-img { position: relative; }
.card-img > a { display: block; color: var(--ink); text-decoration: none; }
.card-img > a::after { content: ""; position: absolute; inset: 0; }
.card-media { display: block; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 240ms ease-out; }
.card-img:hover .card-media img { transform: scale(1.03); }
.card-img h3 { font-size: 1.3125rem; margin: 0; padding: 20px 24px 8px; }
.card-img:hover h3 { color: var(--primary); text-decoration: underline; }
.card-img > p { padding: 0 24px 24px; margin: 0; color: var(--muted); font-size: 1rem; flex: 1; }
.contact-phone { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; margin: 0 0 16px; }
.contact-phone a { color: var(--ink); text-decoration: none; }
.contact-phone a:hover { color: var(--primary); text-decoration: underline; }

/* Compact header call button on phones */
@media (max-width: 599px) {
  .brand img { height: 40px; }
  .header-in { gap: 10px; }
  .header-call { font-size: 0; width: 48px; min-height: 48px; padding: 0; border-radius: 50%; }
  .header-call::before { content: ""; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat; }
}
