/* ==========================================================================
   Adam's Boiler Company: V2
   Plain HTML, CSS and JavaScript. Material Design 3 is the reference for
   component patterns (buttons, chips, outlined text fields, lists, state
   layers); the look is the site's own: card orange on charcoal, white and
   warm-gray surfaces, IBM Plex Sans, bold headings, 6px corners.
   Icons: Material Symbols (icon font, Apache 2.0).
   ========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --orange: #ff7a00;          /* business card orange: always with dark text */
  --orange-deep: #c2410c;     /* orange text/links on light backgrounds (5.2:1) */
  --orange-tint: #fff4ea;
  --ink: #1c1917;
  --ink-2: #44403c;
  --ink-3: #57534e;
  --line: #d6d3d1;
  --field-line: #8a8580;      /* form field outline, 3.6:1 on white */
  --surface: #ffffff;
  --surface-alt: #f5f5f4;
  --hero-bg: #f8f8f8;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 4px 16px rgba(28, 25, 23, 0.06);
  --shadow-hover: 0 2px 4px rgba(28, 25, 23, 0.08), 0 12px 28px rgba(28, 25, 23, 0.1);

  --error: #b91c1c;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* State layers (Material pattern): a tint over the component on hover/press */
  --state-hover: 0.08;
  --state-press: 0.12;

  /* ---- Layout ---- */
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 12px;
  --radius-sm: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-deep); }
ul, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
address { font-style: normal; }
a[href^="tel:"] { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  left: 0; top: 0;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -56px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 2px; }

section[id], .service-group[id], .equipment-card[id], .emergency-card[id] { scroll-margin-top: 84px; }

/* ---------- Icons (Material Symbols icon font) ---------- */
.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  font-family: "Material Symbols Outlined";
  font-size: 24px;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  overflow: hidden;
  user-select: none;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ---------- Buttons ----------
   .btn--filled (orange), .btn--dark, .btn--outlined, .btn--text
   Modifiers: .btn--lg, .btn--light (on dark backgrounds), .btn--quiet */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: transparent;
  --btn-state: var(--ink);
  --btn-hover: var(--state-hover);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font: 600 16px/1.2 var(--font);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: var(--btn-state);
  opacity: 0;
  transition: opacity 0.15s;
}
.btn:hover::before { opacity: var(--btn-hover); }
.btn:active::before { opacity: var(--state-press); }
.btn .icon { font-size: 20px; margin-left: -2px; }
.btn .icon:last-child:not(:first-child) { margin-left: 0; margin-right: -2px; }
.btn:disabled { cursor: default; opacity: 0.6; }
.btn:disabled::before { opacity: 0; }

.btn--filled { --btn-bg: var(--orange); --btn-border: var(--orange); --btn-state: #fff; --btn-hover: 0.18; }
.btn--dark { --btn-bg: var(--ink); --btn-border: var(--ink); --btn-fg: #fff; --btn-state: #fff; --btn-hover: 0.12; }
.btn--outlined { --btn-border: var(--ink); }
.btn--light { --btn-border: #fff; --btn-fg: #fff; --btn-state: #fff; }
.btn--quiet { --btn-border: var(--line); border-width: 1px; }
.btn--text { min-height: 40px; padding: 0 12px; font-weight: 500; --btn-state: var(--orange); }
.btn--text[aria-current="page"] { color: var(--orange-deep); font-weight: 600; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 17px; }

/* Icon button (menu toggle) */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: rgba(28, 25, 23, var(--state-hover)); }
.icon-btn:active { background: rgba(28, 25, 23, var(--state-press)); }

/* ---------- Chips (links) ---------- */
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font: 500 16px/1.2 var(--font);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  opacity: 0;
  transition: opacity 0.15s;
}
.chip:hover::before { opacity: var(--state-hover); }
.chip:active::before { opacity: var(--state-press); }

/* ---------- Outlined text fields (floating label) ---------- */
.text-field { position: relative; min-width: 0; }
.text-field input,
.text-field select,
.text-field textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 15px;
  font: 400 16px/24px var(--font);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  caret-color: var(--orange-deep);
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.text-field textarea { resize: vertical; }
.text-field select { padding-right: 44px; cursor: pointer; }
.text-field label {
  position: absolute;
  left: 11px;
  top: 16px;
  padding: 0 4px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-3);
  background: #fff;
  pointer-events: none;
  transition: top 0.15s, font-size 0.15s, line-height 0.15s, color 0.15s;
}
.select-arrow {
  position: absolute;
  right: 12px;
  top: 16px;
  color: var(--ink-2);
  pointer-events: none;
}
.text-field :is(input, select, textarea):hover { border-color: var(--ink); }
.text-field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--orange-deep);
  box-shadow: inset 0 0 0 1px var(--orange-deep);
}
/* Label floats onto the outline when the field is focused or filled */
.text-field :is(input, textarea):focus + label,
.text-field :is(input, textarea):not(:placeholder-shown) + label,
.text-field select:focus + label,
.text-field select:valid + label {
  top: -8px;
  font-size: 12px;
  line-height: 16px;
}
.text-field :is(input, select, textarea):focus + label { color: var(--orange-deep); }
.text-field.has-error :is(input, select, textarea) { border-color: var(--error); }
.text-field.has-error :is(input, select, textarea):focus { box-shadow: inset 0 0 0 1px var(--error); }
.text-field.has-error label { color: var(--error); }
.field-error { margin: 4px 16px 0; font-size: 14px; line-height: 20px; color: var(--error); }
.field-error:empty { display: none; }

/* ---------- Type scale (class names follow M3 roles; values follow the site) ---------- */
.display-medium {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.display-small {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.headline-large {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.headline-small {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.title-large { font-size: 20px; line-height: 1.3; font-weight: 600; }
.title-medium { font-size: 17px; line-height: 1.4; font-weight: 600; }
.title-small {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.body-large { font-size: 18px; line-height: 1.6; }
.body-medium { font-size: 16px; line-height: 1.6; }
.label-large { font-size: 15px; font-weight: 600; }
.on-surface-variant { color: var(--ink-2); }

/* ---------- Cards ---------- */
.card { position: relative; border-radius: var(--radius); }
.card--outlined {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card--filled {
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

/* ---------- Top bar ---------- */
.top-bar { background: var(--ink); color: #fff; }
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 40px;
}
.top-bar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.top-bar-phone:hover { text-decoration: underline; }
.top-bar-phone .icon { font-size: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.logo img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-toggle { display: none; }

/* Mobile menu: full-screen panel, slides in from the right */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 0.32s;
}
.mobile-nav.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1), visibility 0s;
}
.mobile-nav-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 0 var(--gutter);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-list { padding-block: 12px; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 var(--gutter);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav-list a:hover { background: rgba(28, 25, 23, var(--state-hover)); }
.nav-list a[aria-current="page"] { color: var(--orange-deep); }
.mobile-nav-cta {
  display: grid;
  gap: 12px;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.mobile-nav-cta .btn { width: 100%; }
html.menu-open { overflow: hidden; }
@media (min-width: 1025px) { .mobile-nav { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .mobile-nav.is-open { transition: none; }
}

/* ---------- Hero ---------- */
/* Text column (left) and photo column (right, bleeding to the viewport edge)
   never overlap. The photo occupies only the headline + supporting-text row. */
.hero {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  padding-block: 72px;
}
.hero-content { display: contents; }
.hero-content > * {
  grid-column: 1;
  padding-right: 56px;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.hero .eyebrow {
  grid-row: 1;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.hero-text { grid-row: 2; }
.hero-text h1 { max-width: 18ch; }
.hero-lede { margin-top: 20px; font-size: 20px; color: var(--ink-2); max-width: 52ch; }
.hero-actions { grid-row: 3; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-media {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  min-height: 240px;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* Fades in from the left (toward the text); top and bottom stay crisp;
     bleeds off the right edge */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 60%);
  mask-image: linear-gradient(to right, transparent 0%, #000 60%);
}

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section--container { background: var(--surface-alt); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .body-large { margin-top: 16px; color: var(--ink-2); max-width: 68ch; }

/* ---------- Who we serve ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: #fff;
}
.industry-card .icon {
  font-size: 36px;
  color: var(--orange-deep);
  flex: none;
}
.systems {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}
.systems .title-medium { color: var(--ink-2); }
.systems .chip { border-color: var(--ink); font-weight: 600; }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
}
/* Icon tile: orange square with charcoal icon */
.service-card > .icon,
.service-group > .icon,
.emergency-card > .icon {
  font-size: 30px;
  box-sizing: content-box;
  padding: 11px;
  color: var(--ink);
  background: var(--orange);
  border-radius: 10px;
}
.service-card > .icon { margin-bottom: 6px; }
.service-card p { color: var(--ink-2); }

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.section-foot .body-large { font-size: 17px; color: var(--ink-2); }
.section-foot a { font-weight: 600; }

/* ---------- Equipment teaser ---------- */
.teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.teaser-text .body-large { margin-top: 16px; color: var(--ink-2); }
.teaser-text .btn { margin-top: 28px; }
.teaser .chip { min-height: 44px; font-size: 17px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text > p { max-width: 62ch; color: var(--ink-2); }
.about-text > p + p { margin-top: 16px; }
.about-text strong { color: var(--ink); }
.owner-card {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.owner-card .title-medium { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.owner-card a { font-weight: 600; }
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4 / 5;
}
/* Anchored at the bottom and zoomed slightly from the bottom-right corner: keeps
   the full figure and pushes the camera date stamp (bottom-left) out of frame */
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.12);
  transform-origin: right bottom;
}

.field { margin-top: 72px; }
.field h3 { font-size: 22px; margin-bottom: 20px; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.field-grid li {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
}
.field-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact { background: var(--surface-alt); color: var(--ink); padding-block: 88px; border-top: 1px solid var(--line); }
.contact .section-head .body-large { color: var(--ink-2); }
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-card .title-large { font-size: 22px; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  background: var(--surface-alt);
  border-right: 1px solid var(--line);
}
.contact-info .btn { width: 100%; }
.contact-details { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; font-size: 16px; }
.contact-details li { display: flex; gap: 12px; align-items: flex-start; }
.contact-details .icon { color: var(--orange-deep); flex: none; }
.contact-details a { color: var(--ink); font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 16px; padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.contact-form .btn { width: 100%; margin-top: 4px; }
.emergency-hint {
  padding: 10px 12px;
  background: var(--orange-tint);
  border-radius: var(--radius-sm);
}
.emergency-hint a { font-weight: 700; }
.form-status { font-weight: 500; }
.form-status:empty { display: none; }

/* ---------- Inner pages ---------- */
.page-hero {
  padding-block: 56px 48px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { margin-bottom: 12px; font-size: 15px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); }
.page-hero .body-large { margin-top: 16px; font-size: 19px; color: var(--ink-2); max-width: 68ch; }

.service-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-group { padding: 28px; }
.service-group h2 { font-size: 21px; margin: 14px 0; }
.bullet-list { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.bullet-list li { position: relative; padding-left: 20px; }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.6em;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
}

.emergency-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 28px;
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--orange-tint);
  border: 1px solid #fed7aa;
  border-left: 5px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.emergency-card h2 { font-size: 22px; margin-bottom: 4px; }
.emergency-card p { font-size: 17px; color: var(--ink-2); max-width: 60ch; }

.equipment-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.equipment-side { display: flex; flex-direction: column; gap: 32px; }
.equipment-card { padding: 32px; box-shadow: none; }
.equipment-card h2 { font-size: 22px; margin-bottom: 16px; }
.equipment-card .body-large.on-surface-variant { font-size: 16px; margin-bottom: 18px; }
.equipment-list > div {
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.equipment-list > div:first-child { border-top: 0; padding-top: 0; }
.equipment-list dd { color: var(--ink-2); }
.bullet-list--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.bullet-list li { overflow-wrap: break-word; }
.parts-more { margin-top: 14px; color: var(--ink-3); font-style: italic; }

.cta-band { background: var(--surface-alt); color: var(--ink); padding-block: 56px; border-top: 1px solid var(--line); }
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d6d3d1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  gap: 48px;
  padding-block: 64px 48px;
}
.footer-brand img { height: 120px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 52ch; }
.site-footer h3 { margin-bottom: 14px; color: #fff; }
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #e7e5e4; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer a.title-medium { font-size: 22px; font-weight: 700; color: var(--orange); }
.footer-bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a8a29e;
}
.footer-bottom p { font-size: 14px; }

/* ---------- Mobile bottom bar ---------- */
.mobile-cta { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .service-grid,
  .service-groups { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  /* Phones get the sticky Call bar, so the hero keeps a single CTA. */
  .hero-phone { display: none; }
  /* Tablet: text left, photo right and running off the right edge */
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-block: 56px; }
  .hero-content > * { padding-right: 32px; }
  .hero-text h1 { font-size: clamp(30px, 4.6vw, 40px); }
  .hero-lede { font-size: 18px; }

  .equipment-grid,
  .about-grid,
  .teaser,
  .contact-card { grid-template-columns: minmax(0, 1fr); }
  .teaser { gap: 28px; }
  .about-media { max-width: 480px; }
  .contact-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .emergency-card { grid-template-columns: auto 1fr; }
  .emergency-card .btn { grid-column: 1 / -1; justify-self: start; }

  .section, .contact { padding-block: 64px; }

  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
  }
  .mobile-cta .btn { width: 100%; }
  body { padding-bottom: 72px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --radius: 10px; }
  body { font-size: 16px; }

  /* Type scale for phones */
  .display-medium { font-size: 30px; line-height: 1.15; }
  .display-small { font-size: 30px; }
  .headline-large { font-size: 26px; }
  .headline-small { font-size: 20px; }
  .title-large { font-size: 18px; }
  .body-large { font-size: 16px; }

  /* Header */
  .top-bar-inner { min-height: 36px; }
  .top-bar-phone { font-size: 15px; }
  .header-inner,
  .mobile-nav-head { min-height: 64px; gap: 12px; }
  .logo img { height: 20px; }
  section[id], .service-group[id], .equipment-card[id], .emergency-card[id] { scroll-margin-top: 72px; }

  /* Hero: stacks on phones; the photo goes below the text, full width */
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto; padding-block: 32px 0; }
  .hero-content > * { padding-inline: var(--gutter); }
  .hero-text h1 { font-size: 30px; }
  .hero-media { grid-column: 1; grid-row: 4; min-height: 0; }
  .hero-media img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
  }
  .hero .eyebrow { font-size: 13px; margin-bottom: 12px; }
  .hero-lede { margin-top: 14px; font-size: 17px; }
  .hero-actions { margin-top: 24px; padding-bottom: 28px; }
  .hero-actions .btn--filled { width: 100%; }
  .hero-media { height: clamp(200px, 56vw, 300px); }
  .btn--lg { min-height: 48px; font-size: 16px; }

  /* Sections */
  .section, .contact { padding-block: 48px; }
  .section-head { margin-bottom: 24px; }
  .section-head .body-large { margin-top: 10px; }
  .section-foot { margin-top: 24px; gap: 14px; }
  .section-foot .body-large { font-size: 16px; }

  /* Who we serve */
  .industry-grid { grid-template-columns: 1fr; gap: 10px; }
  .industry-card { padding: 14px 16px; gap: 12px; }
  .industry-card .icon { font-size: 28px; }
  .systems { margin-top: 20px; gap: 10px; }

  /* Services: compact rows (icon beside text); home shows the first three */
  .service-grid,
  .service-groups { grid-template-columns: 1fr; gap: 12px; }
  .service-grid > li:nth-child(n+4) { display: none; }
  .service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 2px;
    padding: 18px;
  }
  .service-card > .icon { grid-row: span 2; align-self: start; margin: 0; font-size: 24px; padding: 9px; border-radius: 8px; }
  .service-card .title-large { font-size: 17px; }
  .service-card p { font-size: 15px; }
  .service-group { padding: 20px; }
  .service-group > .icon,
  .emergency-card > .icon { font-size: 24px; padding: 9px; border-radius: 8px; }
  .service-group h2 { font-size: 19px; margin: 12px 0 10px; }

  /* Equipment teaser */
  .teaser { gap: 20px; }
  .teaser-text .btn { margin-top: 20px; }
  .teaser .chip { min-height: 40px; font-size: 16px; }

  /* About */
  .about-grid { gap: 28px; }
  .about-text h2 { margin-bottom: 14px; }
  .about-media { aspect-ratio: 4 / 5; }
  .owner-card { margin-top: 20px; padding: 16px 18px; }
  .owner-card .title-medium { font-size: 17px; }
  .field { margin-top: 40px; }
  .field h3 { font-size: 18px; margin-bottom: 12px; }
  .field-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 20px; }
  .contact-card .title-large { font-size: 19px; }

  /* Inner pages */
  .page-hero { padding-block: 32px 28px; }
  .page-hero .body-large { font-size: 16px; }
  .equipment-grid,
  .equipment-side { gap: 16px; }
  .equipment-card { padding: 20px; }
  .equipment-card h2 { font-size: 19px; }
  .emergency-card { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; padding: 20px; }
  .emergency-card h2 { font-size: 19px; }
  .emergency-card p { font-size: 16px; }
  .cta-band { padding-block: 36px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 32px; }
  .footer-brand img { height: 96px; margin-bottom: 16px; }
  .site-footer a.title-medium { font-size: 20px; }

  /* Full-width buttons */
  .emergency-card .btn,
  .cta-band-actions,
  .cta-band-actions > *,
  .section-foot .btn,
  .teaser-text .btn { width: 100%; }
}

/* Very narrow phones (folds, small Androids) */
@media (max-width: 380px) {
  .bullet-list--cols { grid-template-columns: 1fr; }
  .display-medium, .display-small, .hero-text h1 { font-size: 28px; }
}

.nowrap { white-space: nowrap; }
