/* ============================================================
   MERIDIAN MECHANICAL — HVAC
   Design system: "technical datasheet"
   Palette   deep midnight navy / flame orange / glacier cyan
   Type      Space Grotesk (display) + IBM Plex Sans (body)
             IBM Plex Mono (labels, figures, units)
   Shape     chamfered / notched panels, hairline rules,
             no border-radius anywhere
   No frameworks, no build step.
   ============================================================ */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* Dark blues */
  --navy-950: #060d18;
  --navy-900: #0a1524;
  --navy-850: #0e1c30;

  /* Light neutrals */
  --paper: #eaeff4;
  --paper-2: #ffffff;
  --slate: #56687d;
  --slate-2: #7c8ea3;

  /* Accents */
  --flame: #ff6a1a;
  --flame-600: #e5540a;
  --flame-tint: rgba(255, 106, 26, 0.12);
  --flame-edge: rgba(255, 106, 26, 0.32);

  --glacier: #1cb2cd;
  --glacier-edge: rgba(28, 178, 205, 0.3);

  --mint: #45dd9e;

  /* Lines & shadows */
  --line: #d2dbe4;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-dark-2: rgba(255, 255, 255, 0.07);
  --shadow-md: 0 12px 30px rgba(8, 18, 32, 0.12);
  --shadow-lg: 0 26px 60px rgba(8, 18, 32, 0.22);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(60px, 7.5vw, 108px);
  --header-h: 72px;
  --utility-h: 38px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.14rem; }
h4 { font-size: 1.02rem; }

strong {
  font-weight: 600;
  color: var(--navy-900);
}

::selection {
  background: var(--flame);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--glacier);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.7rem 1.2rem;
  background: var(--flame);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: var(--container-narrow);
}


/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn {
  --btn-cut: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.92rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  clip-path: polygon(
    0 0,
    calc(100% - var(--btn-cut)) 0,
    100% var(--btn-cut),
    100% 100%,
    var(--btn-cut) 100%,
    0 calc(100% - var(--btn-cut))
  );
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn i {
  font-size: 0.85em;
  transition: transform 0.25s var(--ease);
}

.btn:hover i {
  transform: translateX(3px);
}

.btn-solid {
  background: var(--flame);
  color: #fff;
}

.btn-solid:hover {
  background: var(--flame-600);
  transform: translateY(-2px);
}

.btn-line {
  color: var(--navy-900);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--navy-900);
}

.btn-line:hover {
  background: var(--navy-900);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.62rem 1.05rem;
  font-size: 0.86rem;
  --btn-cut: 7px;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--navy-900);
  transform: translateY(-2px);
}

/* ============================================================
   4. SECTION SHELL & HEADINGS
   ============================================================ */
.section {
  padding-block: var(--section-y);
}

.section-panel {
  background: var(--paper-2);
}

.section-dark {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.74);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark strong {
  color: #fff;
}

.head {
  max-width: 760px;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.head-sub {
  margin-top: 1rem;
  font-size: 1.03rem;
}

/* Numbered section label */
.index {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame-600);
}

.index span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--navy-900);
  color: var(--flame);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.index i {
  font-size: 1rem;
  letter-spacing: 0;
}

.index-light {
  color: var(--glacier);
}

.index-light span {
  background: var(--flame);
  color: #fff;
}

/* ============================================================
   5. UTILITY BAR
   ============================================================ */
.utility-bar {
  position: relative;
  z-index: 1001;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--line-dark-2);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--utility-h);
}

.utility-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.utility-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.utility-list i {
  color: var(--flame);
}

.utility-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  transition: color 0.2s var(--ease);
}

.utility-list a:hover {
  color: #fff;
}

.utility-list a:hover i {
  color: var(--flame);
}

.utility-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.utility-phone:hover {
  color: var(--flame);
}

/* ============================================================
   6. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 21, 36, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-stuck {
  background: var(--navy-900);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--flame);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand:hover .brand-mark {
  background: var(--flame-600);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-text small {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.89rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.22rem;
  height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.menu-toggle:hover {
  border-color: var(--flame-edge);
  background: rgba(255, 255, 255, 0.08);
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(3.2rem, 6vw, 5.2rem) clamp(3.6rem, 6vw, 5.6rem);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.76);
  overflow: hidden;
  isolation: isolate;
}

/* Faint technical grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  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);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.17;
  filter: grayscale(1) contrast(1.15);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 8% 20%, rgba(10, 21, 36, 0.35) 0%, var(--navy-900) 72%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.55) 0%, rgba(6, 13, 24, 0.9) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  max-width: 720px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.5rem;
  background: rgba(28, 178, 205, 0.1);
  box-shadow: inset 0 0 0 1px var(--glacier-edge);
  color: var(--glacier);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  max-width: 17ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--flame);
}

.lede {
  margin-top: 1.35rem;
  max-width: 60ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 2.6rem;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.hero-facts > div {
  flex: 1 1 170px;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.035);
}

.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero-facts dd {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* ============================================================
   8. UNITS LEGEND STRIP
   ============================================================ */
.legend {
  background: var(--navy-950);
  border-block: 1px solid var(--line-dark-2);
}

.legend-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.legend-label {
  flex-shrink: 0;
  padding: 0.3rem 0.7rem;
  background: var(--flame);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legend-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
}

.legend-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.legend-list .num {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--glacier);
}

.legend-list .lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

/* ============================================================
   9. SERVICE GROUPS
   ============================================================ */
.service-groups {
  display: grid;
  gap: 1.25rem;
}

.group {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  border-left: 3px solid var(--navy-900);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.group:hover {
  border-left-color: var(--flame);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md);
}

.group-head {
  padding: 1.7rem 1.6rem;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
}

.group-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  background: var(--flame);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.group-head h3 {
  color: #fff;
  font-size: 1.16rem;
  line-height: 1.22;
}

.group-head p {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.service-list li {
  padding: 1.4rem 1.5rem;
  background: var(--paper-2);
}

.service-list h4 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  font-size: 0.99rem;
}

.service-list h4::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 2px;
  background: var(--flame);
  transition: width 0.28s var(--ease);
}

.service-list li:hover h4::before {
  width: 26px;
}

.service-list p {
  font-size: 0.9rem;
  line-height: 1.62;
}

/* ============================================================
   10. APPROACH
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: center;
}

.approach-media {
  position: relative;
  padding-bottom: 2.2rem;
}

.approach-frame {
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.approach-frame img {
  width: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05);
  transition: filter 0.5s var(--ease);
}

.approach-frame-lg img {
  height: 420px;
}

.approach-frame-sm {
  position: absolute;
  right: -1rem;
  bottom: 0;
  width: 46%;
  box-shadow: var(--shadow-lg);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.approach-frame-sm img {
  height: 150px;
}

.approach-media:hover img {
  filter: saturate(1) contrast(1.05);
}

.approach-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.approach-caption i {
  color: var(--flame);
}

.approach-copy > p {
  max-width: 58ch;
}

.approach-copy h2 {
  margin-bottom: 1.1rem;
}

.approach-steps {
  counter-reset: approach;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}

.approach-steps li {
  counter-increment: approach;
  position: relative;
  padding: 1.3rem 1.4rem 1.35rem;
  background: var(--paper-2);
  transition: background-color 0.24s var(--ease);
}

.approach-steps li:hover {
  background: #f5f9fc;
}

.approach-steps li::before {
  content: counter(approach, decimal-leading-zero);
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--flacier);
}

.approach-steps li::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--flame);
  transition: height 0.32s var(--ease);
}

.approach-steps li:hover::after {
  height: calc(100% - 2.6rem);
}

.approach-steps h3 {
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.approach-steps p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============================================================
   11. DIAGNOSTICS TABLE
   ============================================================ */
.diag-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-dark);
  -webkit-overflow-scrolling: touch;
}

.diag-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  text-align: left;
}

.diag-table thead th {
  padding: 0.95rem 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glacier);
  white-space: nowrap;
}

.diag-table tbody tr {
  transition: background-color 0.22s var(--ease);
}

.diag-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.diag-table tbody th,
.diag-table tbody td {
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid var(--line-dark-2);
  vertical-align: top;
}

.diag-table tbody tr:last-child th,
.diag-table tbody tr:last-child td {
  border-bottom: 0;
}

.diag-table tbody th {
  width: 27%;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  position: relative;
  padding-left: 1.6rem;
}

.diag-table tbody th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.42rem;
  width: 8px;
  height: 2px;
  background: var(--flame);
}

.diag-table tbody td {
  width: 27%;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.diag-table tbody td:last-child {
  color: rgba(255, 255, 255, 0.6);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 1.75rem;
  padding: 1.15rem 1.35rem;
  background: rgba(28, 178, 205, 0.07);
  box-shadow: inset 0 0 0 1px var(--glacier-edge);
  font-size: 0.89rem;
  color: rgba(255, 255, 255, 0.76);
}

.note i {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--glacier);
}

/* ============================================================
   12. EFFICIENCY GRID
   ============================================================ */
.eff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.eff-item {
  padding: 1.7rem 1.5rem;
  background: var(--navy-900);
  transition: background-color 0.3s var(--ease);
}

.eff-item:hover {
  background: var(--navy-850);
}

.eff-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.22rem 0.6rem;
  background: rgba(28, 178, 205, 0.12);
  box-shadow: inset 0 0 0 1px var(--glacier-edge);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glacier);
}

.eff-item h3 {
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  color: var(--flame);
}

.eff-item p {
  font-size: 0.89rem;
  line-height: 1.63;
  color: rgba(255, 255, 255, 0.68);
}

/* ---- Calculator ---- */
.calc {
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--navy-850);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.calc-head .index {
  margin-bottom: 0.85rem;
}

.calc-head h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: #fff;
}

.calc-head > p:last-child {
  max-width: 68ch;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.66);
}

.calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 3.5vw, 2.8rem);
  align-items: start;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}

.calc-field label {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.calc-input-wrap {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}

.calc-input-wrap:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--glacier);
}

.calc-input-wrap input[type="number"] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.calc-input-wrap input[type="number"]::-webkit-outer-spin-button,
.calc-input-wrap input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.calc-input-wrap input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-suffix {
  display: grid;
  place-items: center;
  padding-inline: 0.9rem;
  border-left: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--glacier);
}

/* Range slider */
input[type="range"] {
  width: 100%;
  height: 30px;
  margin-top: 1rem;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--flame) 0%,
    var(--flame) var(--fill, 50%),
    rgba(255, 255, 255, 0.14) var(--fill, 50%),
    rgba(255, 255, 255, 0.14) 100%
  );
  border-radius: 0;
}

input[type="range"]::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 0;
}

input[type="range"]::-moz-range-progress {
  height: 4px;
  background: var(--flame);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 26px;
  margin-top: -11px;
  background: var(--flame);
  border: 2px solid var(--navy-950);
  border-radius: 0;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 26px;
  background: var(--flame);
  border: 2px solid var(--navy-950);
  border-radius: 0;
}

.calc-range-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
}

.calc-out {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.calc-out > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--navy-900);
}

.calc-out dt {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.calc-out dt + dd {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
}

.calc-out .unit {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glacier);
}

/* ============================================================
   13. MAINTENANCE TIMELINE
   ============================================================ */
.timeline {
  display: grid;
  gap: 1.25rem;
}

.tl-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.tl-item:hover {
  --rx: 4px;
  box-shadow: inset 0 0 0 1px var(--flame-edge), var(--shadow-md);
}

.tl-marker {
  display: grid;
  place-items: center;
  padding: 1.2rem 0.8rem;
  background: var(--navy-900);
  text-align: center;
}

.tl-marker span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame);
}

.tl-body {
  padding: 1.5rem 1.7rem;
}

.tl-body h3 {
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.tl-body li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.tl-body li:last-child {
  margin-bottom: 0;
}

.tl-body li::before {
  content: "\f111";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.28rem;
  font-size: 0.55rem;
  color: var(--glacier);
}

/* ============================================================
   14. SAFETY & CODE
   ============================================================ */
.safe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.safe-item {
  padding: 1.6rem 1.45rem;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.safe-item:hover {
  --ry: -4px;
  background: var(--paper-2);
  border-bottom-color: var(--flame);
}

.safe-item i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  background: var(--navy-900);
  color: var(--glacier);
  font-size: 1.15rem;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.safe-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.04rem;
}

.safe-item p {
  font-size: 0.9rem;
  line-height: 1.62;
}

/* ============================================================
   15. FAQ
   ============================================================ */
.faq {
  display: grid;
  gap: 1px;
  background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}

.faq-item {
  background: var(--paper-2);
}

.faq-item h3 {
  font-size: inherit;
  letter-spacing: 0;
}

.faq-item h3 button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.2rem 1.4rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-900);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.faq-item h3 button:hover {
  background: #f4f8fb;
  color: var(--flame-600);
}

.faq-item h3 button i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--navy-900);
  color: var(--glacier);
  font-size: 0.72rem;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq-item.is-open h3 button {
  background: #f4f8fb;
  color: var(--flame-600);
}

.faq-item.is-open h3 button i {
  transform: rotate(135deg);
  background: var(--flame);
  color: #fff;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease);
}

.faq-panel > div {
  overflow: hidden;
  min-height: 0;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel p {
  padding: 0 1.4rem 1.35rem;
  font-size: 0.94rem;
  line-height: 1.68;
}

/* Fallback for engines without grid-row interpolation: the panel
   still toggles, it just does not animate. */
@supports not (grid-template-rows: 0fr) {
  .faq-panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.36s var(--ease);
  }

  .faq-item.is-open .faq-panel {
    max-height: 70rem;
  }
}

/* ============================================================
   16. CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}

.contact-copy > p {
  max-width: 52ch;
  margin-top: 1.1rem;
}

.contact-list {
  display: grid;
  gap: 1px;
  margin-block: 2rem;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  background: var(--navy-900);
  transition: background-color 0.24s var(--ease);
}

.contact-list li:hover {
  background: var(--navy-850);
}

.contact-list i {
  flex-shrink: 0;
  margin-top: 0.35rem;
  color: var(--flame);
  font-size: 0.95rem;
}

.contact-list h3 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.contact-list p {
  margin-top: 5px;
  font-size: 0.96rem;
  color: #fff;
  word-break: break-word;
}

.contact-list a {
  border-bottom: 1px solid var(--glacier-edge);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-list a:hover {
  color: var(--glacier);
  border-bottom-color: var(--glacier);
}

.contact-panel {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--navy-850);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.contact-panel h3 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.contact-panel > p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
}

.contact-panel ol {
  counter-reset: step;
  margin-block: 1.3rem;
}

.contact-panel ol li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.74);
}

.contact-panel ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--glacier);
}

.panel-foot {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.52) !important;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid var(--line-dark-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

.footer-brand p {
  max-width: 42ch;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease);
}

.socials a:hover {
  background: var(--flame);
  color: #fff;
}

/* Unverified business claims: dotted underline marks text that must be
   confirmed by the client before launch. Delete the span when confirmed. */

.footer-col h3 {
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glacier);
}

.footer-col li {
  margin-bottom: 0.62rem;
  font-size: 0.89rem;
}

.footer-col a {
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--flame);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact i {
  flex-shrink: 0;
  margin-top: 0.3rem;
  color: var(--flame);
  font-size: 0.75rem;
}

.footer-contact span {
  display: flex;
  gap: 0.6rem;
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark-2);
  padding-block: 1.25rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}

.footer-legal {
  display: flex;
  gap: 1.4rem;
}

.footer-legal a:hover {
  color: var(--flame);
}

/* ============================================================
   18. SCROLL REVEAL
   Hover offsets are driven by --rx / --ry so a reveal animation
   and a hover state can share the same transform property
   without either one cancelling the other.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translate(var(--rx, 0px), var(--ry, 26px));
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(var(--rx, 0px), var(--ry, 0px));
}

/* Staggered entry for repeating grid items */
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ============================================================
   19. KEYFRAMES
   ============================================================ */

/* ============================================================
   20. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   21. RESPONSIVE - 1180px
   ============================================================ */
@media (max-width: 1180px) {
  .eff-grid,
  .safe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem var(--gutter) 1.75rem;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 2;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-dark-2);
    font-size: 1.05rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    padding-block: 0.85rem;
  }
}

/* ============================================================
   22. RESPONSIVE - 980px
   ============================================================ */
@media (max-width: 980px) {
  .utility-list li:nth-child(2),
  .utility-list li:nth-child(3) {
    display: none;
  }

  .hero-grid,
  .calc-body,
  .approach-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .approach-media {
    max-width: 480px;
  }

  .group {
    grid-template-columns: minmax(0, 1fr);
  }

  .group-head {
    padding: 1.4rem 1.5rem;
  }

  .group-num {
    margin-bottom: 0.7rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   23. RESPONSIVE - 760px
   ============================================================ */
@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  .legend-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .legend-list {
    gap: 0.5rem 1.5rem;
  }

  .service-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .approach-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .approach-frame-sm {
    width: 42%;
    right: 0;
  }

  .approach-frame-lg img {
    height: 360px;
  }

  .eff-grid,
  .safe-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tl-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .tl-marker {
    place-items: center start;
    padding: 0.75rem 1.25rem;
  }

  .tl-body {
    padding: 1.25rem;
  }

  .hero-facts {
    flex-direction: column;
  }

  .hero-facts > div {
    padding-block: 0.85rem;
  }
}

/* ============================================================
   24. RESPONSIVE - 520px
   ============================================================ */
@media (max-width: 520px) {
  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text small {
    letter-spacing: 0.14em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .approach-media {
    padding-bottom: 3rem;
  }

  .approach-frame-lg img {
    height: 300px;
  }

  .approach-frame-sm {
    position: static;
    width: 100%;
    margin-top: -1.75rem;
    margin-left: auto;
  }

  .approach-frame-sm img {
    height: 130px;
  }

  .approach-caption {
    font-size: 0.58rem;
    padding: 0.55rem 0.8rem;
    max-width: 78%;
    line-height: 1.5;
  }

  .faq-item h3 button {
    padding: 1.05rem 1.1rem;
    font-size: 0.97rem;
  }

  .faq-panel p {
    padding: 0 1.1rem 1.15rem;
  }

  .contact-list li {
    flex-direction: column;
    gap: 0.35rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   25. PRINT
   ============================================================ */
@media print {
  .utility-bar,
  .site-header,
  .hero-media,
  .legend,
  .menu-toggle,
  .footer-legal {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section-dark {
    background: #fff !important;
    color: #000 !important;
  }

  .section-dark h2,
  .section-dark h3,
  .section-dark h4,
  .section-dark strong,
  .section-dark p,
  .section-dark td {
    color: #000 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
