/*
  Local business website template, by FormTango (https://formtango.com). MIT license.

  CHANGE THE LOOK HERE. Two colors do most of the work:
    --brand   the dark color (header, hero, footer, text)
    --accent  the loud color (buttons, stripes, highlights)
  Keep --brand dark and --accent bright so text stays readable:
  dark text sits on the accent, and accent text sits on the brand color.
*/
:root {
  --brand: #10263f;        /* deep navy */
  --brand-deep: #0a1a2c;   /* darker navy: footer, button shadows */
  --brand-soft: #1d3b5e;   /* lighter navy: lines and panels on dark sections */
  --accent: #ff7a1a;       /* safety orange */
  --accent-deep: #a83f08;  /* dark orange: accent text on light backgrounds, button shadows */
  --paper: #f5efe3;        /* warm page background */
  --paper-2: #e9e0cf;      /* a shade darker, for alternating sections */
  --card: #fffaf0;         /* cards and form fields */
  --ink: #10263f;          /* body text on light backgrounds */
  --ink-soft: #3a4c61;     /* secondary text on light backgrounds */
  --on-brand: #f5efe3;     /* text on dark sections */
  --on-brand-soft: #b9c8d9;/* secondary text on dark sections */
  --ok: #17603a;
  --error: #a3231a;

  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --wrap: 1160px;
  --focus: var(--accent-deep);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, p, ul, ol, figure, blockquote, fieldset, table, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--accent); color: var(--brand-deep);
  padding: 12px 18px; font-weight: 700; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

h1, h2, h3, .kicker, .button, .eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.75rem, 8.4vw, 5.25rem); font-weight: 800; line-height: 0.94; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800; line-height: 0.98; text-wrap: balance; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent-deep); margin-bottom: 10px;
}
.kicker::before { content: ""; width: 28px; height: 6px; background: currentColor; }

/* ---------- Buttons: chunky, with a hard shadow you can press ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 24px;
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.1;
  text-decoration: none; text-align: center; white-space: nowrap;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(4px); }

.button-accent { background: var(--accent); color: var(--brand-deep); box-shadow: 0 6px 0 var(--accent-deep); }
.button-accent:hover { box-shadow: 0 8px 0 var(--accent-deep); }
.button-accent:active { box-shadow: 0 2px 0 var(--accent-deep); }

.button-brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 0 var(--brand-deep); }
.button-brand:hover { box-shadow: 0 8px 0 var(--brand-deep); }
.button-brand:active { box-shadow: 0 2px 0 var(--brand-deep); }

.button-paper { background: var(--paper); color: var(--brand-deep); box-shadow: 0 6px 0 var(--on-brand-soft); }

.button-ghost { background: transparent; color: var(--on-brand); box-shadow: inset 0 0 0 3px var(--on-brand); }
.button-ghost:hover { background: var(--on-brand); color: var(--brand-deep); }

.button-large { min-height: 62px; padding: 12px 30px; font-size: 1.55rem; }
.button-huge { min-height: 78px; padding: 14px 34px; font-size: clamp(1.9rem, 6.4vw, 2.75rem); font-weight: 800; }
.button-block { width: 100%; }
.button[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* ---------- Hazard stripe ---------- */

.hazard {
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--brand-deep) 14px 28px);
}

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

.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand); color: var(--on-brand); --focus: var(--accent); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.site-header .hazard { height: 6px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.mark-bg { fill: var(--accent); }
.mark-pipe { fill: none; stroke: var(--brand-deep); stroke-width: 10; }
.mark-collar { fill: var(--paper); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--on-brand-soft); margin-top: 3px; white-space: nowrap; }

.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a {
  font-family: var(--display); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }

.header-phone { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1; }
.header-phone-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--on-brand-soft); }
.header-phone-number {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--display); font-weight: 800; font-size: 2.1rem; color: var(--accent); white-space: nowrap;
}
.header-phone-number .icon { width: 0.8em; height: 0.8em; stroke-width: 2.4; }
.header-phone:hover .header-phone-number { color: var(--on-brand); }

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

.hero {
  --focus: var(--accent);
  position: relative;
  color: var(--on-brand);
  background-color: var(--brand);
  /* blueprint grid */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  padding: clamp(44px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--brand-deep); background: var(--accent);
  padding: 6px 14px 6px 10px; margin-bottom: 22px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-right: 26px;
}
.accent-text { color: var(--accent); }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--on-brand-soft); max-width: 34em; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--accent); stroke-width: 3; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.art-pipe { fill: none; stroke: var(--paper); stroke-width: 38; }
.art-pipe-line { fill: none; stroke: var(--paper-2); stroke-width: 6; transform: translate(-9px, 9px); }
.art-collar { fill: var(--accent); }
.art-stem { fill: var(--on-brand-soft); }
.art-gauge { fill: var(--brand-deep); stroke: var(--paper); stroke-width: 9; }
.art-ticks { fill: none; stroke: var(--on-brand-soft); stroke-width: 4; stroke-linecap: round; }
.art-needle { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.art-hub { fill: var(--accent); }
.art-wheel { fill: none; stroke: var(--accent); stroke-width: 9; }
.art-drop { fill: var(--accent); }

.stamp {
  position: absolute; right: 0; top: 4%;
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 20px;
  font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
  border: 4px solid var(--accent); outline: 2px solid var(--accent); outline-offset: 4px;
  border-radius: var(--radius);
  background: var(--brand);
  transform: rotate(7deg);
}

/* ---------- Trust strip ---------- */

.trust { background: var(--accent); color: var(--brand-deep); --focus: var(--brand-deep); }
.trust-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-list li { display: flex; align-items: center; gap: 16px; padding: 26px 24px; border-left: 3px solid var(--brand-deep); }
.trust-list li:first-child { border-left: 0; padding-left: 0; }
.trust-list .icon { width: 46px; height: 46px; stroke-width: 1.8; }
.trust-list strong { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.trust-list span { display: block; font-size: 0.98rem; font-weight: 500; line-height: 1.35; margin-top: 2px; }

/* ---------- Sections ---------- */

.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-intro { font-size: 1.15rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Services ---------- */

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.service {
  position: relative;
  background: var(--card);
  border: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--brand);
  padding: 28px 24px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--accent); }
.service-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 18px;
  background: var(--brand); color: var(--accent);
  border-radius: var(--radius);
}
.service-icon .icon { width: 36px; height: 36px; }
.service p { color: var(--ink-soft); margin-top: 8px; }

/* ---------- How it works ---------- */

.how { background: var(--brand); color: var(--on-brand); --focus: var(--accent); }
.how .kicker { color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; padding: 34px 28px 0 0; border-top: 10px solid var(--brand-soft); }
/* the orange collar on the pipe */
.step::before { content: ""; position: absolute; left: 0; top: -19px; width: 18px; height: 28px; background: var(--accent); border-radius: 2px; }
.step-number {
  display: block;
  font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 11vw, 8rem); line-height: 0.8;
  color: var(--accent); margin-bottom: 18px;
}
.step h3 { font-size: 1.75rem; }
.step p { color: var(--on-brand-soft); margin-top: 8px; max-width: 30em; }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-copy > p:not(.kicker) { margin-top: 18px; max-width: 36em; }
.crew { display: grid; gap: 14px; margin-top: 30px; }
.crew li { display: flex; align-items: center; gap: 16px; }
.crew-badge {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  background: var(--brand); color: var(--accent);
  border-radius: 50%; border: 3px solid var(--accent);
}
.crew strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.crew span:not(.crew-badge) { color: var(--ink-soft); }

.placeholder-quote {
  border: 3px dashed var(--brand); border-radius: var(--radius);
  padding: 28px 26px 26px;
  background: repeating-linear-gradient(-45deg, transparent 0 16px, rgba(16, 38, 63, 0.045) 16px 32px);
}
.placeholder-tag {
  display: inline-block; margin-bottom: 16px; padding: 4px 10px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--brand); color: var(--on-brand);
}
.placeholder-quote blockquote p { font-size: 1.3rem; line-height: 1.45; font-weight: 500; }
.placeholder-quote figcaption { margin-top: 16px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Service area ---------- */

.area { background: var(--paper-2); }
.area-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.area-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; text-transform: uppercase; line-height: 1.1;
  background: var(--card); border-left: 10px solid var(--accent); border-radius: var(--radius);
}
.area-note { margin-top: 28px; font-size: 1.1rem; }
.area-note a { color: var(--accent-deep); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Quote request ---------- */

.quote {
  --focus: var(--accent);
  background-color: var(--brand);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--on-brand);
}
.quote-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.quote .kicker { color: var(--accent); }
.quote-aside > p { color: var(--on-brand-soft); margin-top: 16px; font-size: 1.12rem; }

.callout {
  display: flex; gap: 14px;
  margin-top: 28px; padding: 20px;
  background: var(--accent); color: var(--brand-deep);
  border-radius: var(--radius);
  --focus: var(--brand-deep);
}
.callout > .icon { width: 34px; height: 34px; margin-top: 2px; }
.callout h3 { font-size: 1.45rem; }
.callout p { margin-top: 8px; font-weight: 500; line-height: 1.45; }
.callout a { font-weight: 700; white-space: nowrap; }

.next-title { margin-top: 34px; font-size: 1.35rem; }
.next-list { counter-reset: next; margin-top: 12px; display: grid; gap: 10px; color: var(--on-brand-soft); }
.next-list li { counter-increment: next; display: flex; gap: 12px; align-items: baseline; }
.next-list li::before {
  content: counter(next); flex: none;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--accent);
  width: 1.1em;
}

/* the form, styled like a job ticket */
form[data-contact] {
  --focus: var(--accent-deep);
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--accent);
}
.form-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  padding: 16px 26px;
  border-bottom: 3px dashed var(--brand);
}
.form-head-title { font-family: var(--display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.02em; }
.form-head-note { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.form-body { padding: 24px 26px 26px; }

.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field { margin-bottom: 18px; }
legend { padding: 0; }
label, legend { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block; width: 100%;
  min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--card);
  border: 3px solid var(--brand); border-radius: var(--radius);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; background: #fff; }

.choices { border: 0; margin-bottom: 18px; min-width: 0; }
.choice-row { display: flex; gap: 12px; }
.choice { position: relative; flex: 0 1 140px; margin: 0; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center; min-height: 52px; padding: 8px 18px;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--card); border: 3px solid var(--brand); border-radius: var(--radius);
}
.choice input:checked + span { background: var(--brand); color: var(--on-brand); box-shadow: inset 0 -6px 0 var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent-deep); outline-offset: 2px; }

.status {
  margin-top: 20px; padding: 12px 14px;
  font-weight: 600; line-height: 1.4;
  background: var(--card); border: 3px solid var(--brand); border-left-width: 10px; border-radius: var(--radius);
}
.status[data-kind="ok"] { color: var(--ok); border-color: var(--ok); }
.status[data-kind="error"] { color: var(--error); border-color: var(--error); }
.form-foot { margin-top: 16px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Emergency banner ---------- */

.emergency { background: var(--accent); color: var(--brand-deep); --focus: var(--brand-deep); }
.emergency .kicker { color: var(--brand-deep); }
.emergency-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(44px, 6vw, 68px); }
.emergency-inner > div { flex: 1 1 420px; min-width: 0; }
.emergency p:not(.kicker) { font-size: 1.15rem; font-weight: 500; margin-top: 12px; max-width: 34em; }
.emergency .button-huge .icon { width: 0.85em; height: 0.85em; stroke-width: 2.4; }

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

.site-footer { background: var(--brand-deep); color: var(--on-brand-soft); padding: 60px 0 32px; --focus: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 0.8fr; gap: 40px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; text-transform: uppercase; color: var(--on-brand); }
.footer-brand-sub { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; margin: 4px 0 18px; }
.footer-title { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 14px; }
.site-footer a { color: var(--on-brand); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: grid; gap: 6px; }
.hours { border-collapse: collapse; width: 100%; max-width: 380px; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--brand-soft); font-weight: 400; vertical-align: top; }
.hours th { padding-right: 16px; color: var(--on-brand); font-weight: 600; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--brand-soft);
  font-size: 0.92rem;
}

/* ---------- Sticky call bar (phones only) ---------- */

.call-bar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .header-phone { margin-left: auto; }
  .area-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list { grid-template-columns: minmax(0, 1fr); padding: 8px 0; }
  .trust-list li, .trust-list li:first-child { border-left: 0; border-top: 3px solid var(--brand-deep); padding: 18px 0; }
  .trust-list li:first-child { border-top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .step { padding-right: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 84px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .header-cta { display: none; }
  .site-header .wrap { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.45rem; }
  .header-phone-label { display: none; }
  .header-phone-number { font-size: 1.6rem; margin-top: 0; }
  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px;
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--brand-deep);
    border-top: 4px solid var(--accent);
    --focus: var(--on-brand);
  }
  .call-bar .button { min-height: 50px; padding: 8px 10px; font-size: 1.3rem; box-shadow: none; transform: none; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service { box-shadow: 6px 6px 0 var(--brand); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .button { width: 100%; }
  .form-head, .form-body { padding-left: 18px; padding-right: 18px; }
  form[data-contact] { box-shadow: 6px 6px 0 var(--accent); }
  .choice { flex: 1 1 0; }
  .callout { padding: 16px; }
}

@media (max-width: 460px) {
  .brand-sub, .header-phone-number .icon { display: none; }
  .brand { flex: none; }
  .brand-name { font-size: 1.35rem; }
  .header-phone-number { font-size: 1.5rem; }
  .eyebrow { font-size: 0.95rem; }
}

@media (max-width: 400px) {
  .area-list li { font-size: 1.2rem; padding: 14px 12px; border-left-width: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .button:active, .service:hover { transform: none; }
}

/* ===== Liffey Electrical overrides ===== */
.demo-bar { margin: 0; padding: 6px 16px; text-align: center; font-size: 0.9rem; background: var(--paper); color: var(--brand-deep); border-bottom: 1px solid var(--paper-2); }
.sample-note { margin-top: 22px; font-size: 0.92rem; color: var(--ink-soft); }
.mark-bolt { fill: var(--brand-deep); }

/* hero art: a consumer unit with three cores leaving it */
.art-board { fill: var(--paper); }
.art-board-inner { fill: var(--paper-2); stroke: var(--brand-deep); stroke-width: 3; }
.art-main { fill: var(--brand-deep); }
.art-main-text { fill: var(--paper); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.14em; }
.art-mcb { fill: var(--brand); stroke: var(--brand-deep); stroke-width: 3; }
.art-lever { fill: var(--paper); }
.art-lever-off { fill: var(--accent); }
.art-labels rect { fill: var(--card); stroke: var(--brand-deep); stroke-width: 2; }
.art-rcd { fill: var(--brand-deep); stroke: var(--accent); stroke-width: 3; }
.art-rcd-text { fill: var(--accent); font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.1em; }
.art-cores path { fill: none; stroke-linecap: round; stroke-width: 18; }
.core-live { stroke: #8a5532; }
.core-neutral { stroke: #4a86d0; }
.core-earth { stroke: #2f9e57; }
.core-earth-stripe { stroke: #ffd21f; stroke-width: 7 !important; }
.art-bolt { fill: var(--accent); stroke: var(--brand); stroke-width: 6; stroke-linejoin: round; }

.stamp { top: -9%; right: -2%; }

/* photo hero and gallery */
.stamp { top: -6%; right: -4%; }
.hero-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 68% 50%; border: 4px solid var(--paper); border-radius: var(--radius); box-shadow: 12px 12px 0 var(--accent); background: var(--brand-deep); }
@media (max-width: 900px) {
  .hero-art { display: block; max-width: 520px; margin: 12px 12px 0 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .stamp { right: -2%; }
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.shot { margin: 0; background: var(--brand); border: 3px solid var(--brand); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--brand); overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.shot:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--accent); }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.shot figcaption { padding: 14px 18px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--on-brand); border-top: 4px solid var(--accent); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; } .shot img { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: reduce) { .shot:hover { transform: none; } }
.footer-base a { color: var(--on-brand); }

/* tighter photo proportions */
.hero-photo { aspect-ratio: 1 / 1; max-height: 520px; width: 100%; }
.shot img { aspect-ratio: 4 / 3; }
.shot img, .hero-photo { height: auto; }

/* slider, reveal, prices */
.slides { position: relative; aspect-ratio: 1 / 1; max-height: 520px; overflow: hidden; }
.slides .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.slides .slide.is-on { opacity: 1; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
.price-list { list-style: none; margin: 0; padding: 0; max-width: 760px; border: 3px solid var(--brand); border-radius: var(--radius); background: var(--paper); box-shadow: 8px 8px 0 var(--brand); }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 2px dashed rgba(16,38,63,.25); font-size: 1.05rem; }
.price-list li:last-child { border-bottom: 0; }
.price-list strong { font-family: var(--display); font-size: 1.4rem; color: var(--brand); text-transform: uppercase; white-space: nowrap; }
@media (max-width: 520px) { .price-list li { flex-direction: column; gap: 2px; } }

/* no side stripes: full borders with an accent offset */
.area-list li { border: 3px solid var(--brand); border-left-width: 3px; box-shadow: 4px 4px 0 var(--accent); }
.status { border-left-width: 3px; border-width: 3px; box-shadow: 4px 4px 0 var(--accent); }
@media (max-width: 900px) { .area-list li { border-left-width: 3px; } }

.site-nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1200px) { .site-nav { gap: 14px; } }

/* full-bleed photo hero */
.hero { background-image: none; background-color: var(--brand-deep); min-height: min(88vh, 760px); display: flex; align-items: center; }
.hero > .hero-grid, .hero > .wrap { position: relative; z-index: 2; width: 100%; }
.hero-bg { position: absolute; inset: 0; z-index: 0; max-height: none; aspect-ratio: auto; border: 0; box-shadow: none; border-radius: 0; }
.hero-bg .slide { object-position: 72% 30%; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,26,44,.94) 0%, rgba(10,26,44,.84) 38%, rgba(10,26,44,.35) 70%, rgba(10,26,44,.15) 100%), linear-gradient(0deg, rgba(10,26,44,.55), transparent 35%); }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.4fr); }
.hero-art { align-self: end; justify-self: end; position: relative; min-height: 120px; width: 100%; }
.hero-art .stamp { position: absolute; right: 0; bottom: -10px; top: auto; }
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 56px 0 64px; }
  .hero-shade { background: linear-gradient(180deg, rgba(10,26,44,.88), rgba(10,26,44,.82)); }
  .hero-art { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* service photos */
.service { overflow: hidden; padding-top: 0; }
.service-photo { display: block; width: calc(100% + 48px); max-width: none; height: auto; margin: 0 -24px 0; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 3px solid var(--brand); background: var(--brand); }
.service-photo.fuse { object-position: 50% 52%; }
.service-photo.ev { object-position: 56% 55%; }
.service-icon { margin-top: -34px; position: relative; border: 3px solid var(--paper); }
.hero-bg .slide { object-position: 88% 30%; }

/* tile choices for job type and call time */
.choice-wrap { flex-wrap: wrap; }
.choice-wrap .choice { flex: 1 1 auto; }
.choice-wrap .choice span { padding: 12px 16px; white-space: nowrap; }

/* calmer tile grid */
.choice-wrap { display: grid; gap: 10px; }
.choice-wrap.jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-wrap.times { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-wrap .choice { flex: none; }
.choice-wrap .choice span { display: flex; align-items: center; justify-content: flex-start; gap: 10px; height: 100%; padding: 13px 16px; border-width: 2px; border-radius: var(--radius); font-size: 1.12rem; letter-spacing: 0.02em; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.choice-wrap .choice span::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid var(--brand); border-radius: 50%; background: transparent; }
.choice-wrap .choice:hover span { border-color: var(--accent-deep); transform: translateY(-1px); }
.choice-wrap .choice input:checked + span { box-shadow: none; border-color: var(--brand); }
.choice-wrap .choice input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.choice-wrap.times .choice span { justify-content: center; }
.choice-wrap.times .choice span::before { display: none; }
.choice-wrap.jobs .choice:last-child { grid-column: 1 / -1; }
@media (max-width: 520px) { .choice-wrap.jobs { grid-template-columns: minmax(0, 1fr); } .choice-wrap.times { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .choice-wrap .choice:hover span { transform: none; } }

/* larger tap targets in the footer */
.site-footer nav a, .site-footer address a, .footer-base a { display: inline-block; padding: 10px 0; }
.footer-base a { padding: 6px 2px; }

/* keep hero text clear of the drill and hand */
.hero-shade { background: linear-gradient(90deg, rgba(10,26,44,.95) 0%, rgba(10,26,44,.9) 44%, rgba(10,26,44,.6) 62%, rgba(10,26,44,.12) 100%), linear-gradient(0deg, rgba(10,26,44,.55), transparent 35%); }
.hero .lede { max-width: 28em; }

/* reviews */
.reviews { background: var(--paper); }
.reviews-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 36px; }
.reviews-head .section-head { margin-bottom: 0; }
.rating-card { background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 22px 28px; box-shadow: 8px 8px 0 var(--accent); text-align: center; }
.rating-score { font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: 1; }
.rating-score span { font-size: 1.6rem; opacity: .7; }
.rating-count { margin-top: 6px; font-size: .95rem; color: var(--on-brand-soft); }
.stars { display: inline-flex; gap: 3px; color: var(--accent); margin-top: 8px; }
.stars svg { width: 20px; height: 20px; fill: currentColor; }
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.review { background: var(--card); border: 3px solid var(--brand); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--brand); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.review .stars { margin-top: 0; }
.review blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.review-who { margin-top: auto; display: flex; flex-direction: column; border-top: 2px dashed rgba(16,38,63,.25); padding-top: 12px; }
.review-who span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .reviews-head { grid-template-columns: minmax(0, 1fr); } .rating-card { justify-self: start; } .review-grid { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--card); border: 3px solid var(--brand); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius); background: var(--brand); color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { box-shadow: 6px 6px 0 var(--accent); }
.faq-item p { padding: 0 22px 20px; color: var(--ink-soft); line-height: 1.6; }
.faq-item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
.faq-item summary::after { font: 700 24px/1 Arial, sans-serif; }
