﻿:root {
  --charcoal: #1e2328;
  --charcoal-2: #14181c;
  --steel: #6b7280;
  --light: #f4f6f8;
  --line: #d9dee5;
  --orange: #f97316;
  --orange-dark: #c54f08;
  --blue: #0f2a3d;
  --white: #ffffff;
  --max: 1160px;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(15, 42, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 110px;
}

body {
  margin: 0;
  color: var(--charcoal);
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header .container {
  width: min(100% - 32px, 1280px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--charcoal), var(--blue));
  border: 2px solid rgba(249, 115, 22, 0.9);
}

.brand-logo {
  width: 112px;
  height: 58px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.brand-name {
  display: block;
  color: var(--charcoal);
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  color: var(--steel);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 8px;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  border-radius: 6px;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--orange-dark);
  background: #fff3eb;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 210px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-item.is-open-submenu .submenu {
  display: block;
}

@media (min-width: 981px) {
  .nav-item:hover .submenu,
  .nav-item:focus-within .submenu {
    display: block;
  }
}

.submenu a {
  width: 100%;
}

.submenu-note {
  display: block;
  padding: 8px 10px 4px;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link {
  color: var(--charcoal);
  font-weight: 800;
  font-size: 0.86rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.portal-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portal-dashboard {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portal-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  color: var(--white);
  background: var(--charcoal);
}

.portal-sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  border-radius: 6px;
}

.portal-sidebar a:hover,
.portal-sidebar a.is-active {
  color: var(--white);
  background: rgba(249, 115, 22, 0.18);
}

.portal-sidebar-label {
  display: block;
  margin: 14px 4px 4px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.portal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 16px;
  margin-bottom: 8px;
  font-weight: 900;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.portal-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.portal-workspace {
  min-width: 0;
  padding: 24px;
  background: #f8fafc;
}

.portal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.portal-toolbar h2 {
  margin: 0;
}

.portal-actions {
  display: flex;
  gap: 10px;
}

.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.portal-stat {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-stat strong {
  color: var(--blue);
  font-size: 1.9rem;
  line-height: 1;
}

.portal-stat span {
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 800;
}

.portal-table {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr 0.75fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.portal-row:first-child {
  border-top: 0;
}

.portal-row-head {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f1f5f9;
}

.status-pill {
  justify-self: start;
  padding: 6px 9px;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  background: #ffedd5;
  border-radius: 999px;
}

.status-pill.warning {
  color: #991b1b;
  background: #fee2e2;
}

.status-pill.done {
  color: #166534;
  background: #dcfce7;
}

.portal-form input:disabled,
.portal-form button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.offer-card .feature-list {
  margin-top: 16px;
}

.case-grid {
  display: grid;
  gap: 24px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.case-photo {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--charcoal), var(--blue));
}

.case-body {
  padding: 28px;
}

@media (max-width: 1220px) {
  .brand-subtitle {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-secondary {
  color: var(--charcoal);
  background: var(--white);
  border-color: var(--charcoal);
}

.btn-secondary:hover {
  border-color: var(--orange);
}

.btn-dark {
  color: var(--white);
  background: var(--charcoal);
}

.hero {
  position: relative;
  min-height: 760px;
  color: var(--white);
  background: var(--charcoal-2);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 24, 28, 0.96) 0%, rgba(20, 24, 28, 0.86) 34%, rgba(20, 24, 28, 0.38) 64%, rgba(20, 24, 28, 0.12) 100%),
    url("../images/industrial-boiler-hero.webp") center / cover no-repeat;
}

.hero > .container {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  min-height: 760px;
  padding: 108px 0 180px;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #ffbd8a;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  background: var(--orange);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: Montserrat, Inter, Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 6vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.18rem;
}

.lead {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.service-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  color: var(--white);
  background: rgba(15, 42, 61, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.service-strip .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 82px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-weight: 800;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.strip-item:first-child {
  border-left: 0;
}

.section {
  padding: 88px 0;
}

.section-light {
  background: var(--light);
}

.section-dark {
  color: var(--white);
  background: var(--charcoal);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 36px;
}

.section-head p,
.muted {
  color: var(--steel);
}

.section-dark .section-head p,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.76);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 22px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 42, 61, 0.06);
}

.card p {
  margin: 12px 0 0;
  color: var(--steel);
}

.template-link-card {
  display: block;
  color: var(--charcoal);
  border-top: 4px solid var(--orange);
}

.template-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--orange);
  background: #fff3eb;
  border: 1px solid #fed7bd;
  border-radius: var(--radius);
}

.icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list-panel {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--orange);
  content: "âœ“";
}

.industries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.industry-pill {
  min-height: 68px;
  padding: 16px;
  color: var(--charcoal);
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.safety-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.45fr);
  gap: 36px;
  align-items: center;
  padding: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--charcoal));
  border-radius: var(--radius);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  color: #ffbd8a;
  font-size: 1.45rem;
  line-height: 1.1;
}

.cta {
  padding: 64px 0;
  color: var(--white);
  background: var(--charcoal-2);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.page-hero {
  padding: 86px 0 64px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(20, 24, 28, 0.98), rgba(15, 42, 61, 0.9)),
    url("../images/industrial-boiler-hero.webp") center / cover no-repeat;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:last-child {
  border-bottom: 0;
}

.service-detail .icon {
  margin-bottom: 0;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.5fr);
  gap: 44px;
}

.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.form {
  display: grid;
  gap: 16px;
}

.form button[type="submit"] {
  scroll-margin-bottom: 120px;
}

.calculator-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.calculator-app {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.calculator-menu {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--charcoal);
  border-radius: var(--radius);
}

.calculator-menu button {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  cursor: pointer;
}

.calculator-menu button:hover,
.calculator-menu button.is-active {
  color: var(--charcoal);
  background: var(--white);
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timer-box {
  display: grid;
  min-height: 76px;
  place-items: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  background: var(--blue);
  border-radius: var(--radius);
}

.result-lines {
  display: grid;
  gap: 8px;
}

.result-box {
  min-height: 180px;
  padding: 24px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
}

.result-box strong {
  display: block;
  color: #ffbd8a;
  font-size: 2rem;
  line-height: 1.1;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--charcoal);
  font: inherit;
  background: var(--white);
  border: 1px solid #cfd6df;
  border-radius: var(--radius);
}

textarea {
  min-height: 144px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(249, 115, 22, 0.2);
  border-color: var(--orange);
}

.form-note {
  margin: 0;
  color: var(--steel);
  font-size: 0.92rem;
}

.template-page {
  background: #eef2f6;
}

.template-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.report-sheet {
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 960px;
  min-height: 1280px;
  margin: 0 auto;
  padding: 24px 28px;
  color: #111827;
  font-size: 0.82rem;
  line-height: 1.32;
  background: var(--white);
  border: 1px solid #cfd6df;
  border-radius: 2px;
  box-shadow: 0 18px 42px rgba(15, 42, 61, 0.12);
}

.report-body {
  align-self: stretch;
}

.report-footer {
  align-self: end;
  padding-top: 10px;
  border-top: 1px solid #cfd6df;
}

.report-footer-note {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--charcoal);
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 56%;
}

.report-brand img {
  width: 70px;
  height: auto;
}

.report-brand strong,
.report-title h1 {
  display: block;
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 900;
}

.report-brand span,
.report-title p {
  display: block;
  margin: 2px 0 0;
  color: var(--steel);
  font-weight: 700;
}

.report-title {
  text-align: right;
}

.report-title h1 {
  color: var(--blue);
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
}

.report-grid {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.report-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-grid > div,
.report-block {
  padding: 8px 9px;
  background: #fbfcfd;
  border: 1px solid #d8e0e8;
  border-radius: 2px;
}

.report-grid span,
.invoice-meta span {
  display: block;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-grid strong,
.invoice-meta strong {
  display: block;
  margin-top: 2px;
  color: var(--charcoal);
}

.report-block {
  margin-bottom: 10px;
}

.report-block.compact {
  margin-bottom: 0;
}

.report-block h2 {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.report-block p {
  margin: 0;
  color: #334155;
}

.report-checks {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
}

.report-text-box {
  min-height: 76px;
  padding: 9px;
  color: #64748b;
  background: var(--white);
  border: 1px dashed #b8c3cf;
  border-radius: 2px;
}

.report-text-box.small {
  min-height: 62px;
}

.report-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 4px;
}

.report-signatures div {
  min-height: 46px;
  border-bottom: 2px solid #1f2937;
}

.report-signatures span {
  display: block;
  margin-top: 29px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
}

.template-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  overflow: hidden;
  font-size: 0.74rem;
}

.template-table th,
.template-table td {
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #dbe3ec;
}

.template-table th {
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--charcoal);
}

.template-table td {
  min-height: 26px;
  background: var(--white);
}

.checklist-table th:nth-child(2),
.checklist-table th:nth-child(3),
.checklist-table th:nth-child(4),
.checklist-table td:nth-child(2),
.checklist-table td:nth-child(3),
.checklist-table td:nth-child(4) {
  width: 62px;
  text-align: center;
}

.checklist-table {
  font-size: 0.68rem;
}

.checklist-table th,
.checklist-table td {
  padding: 4px 5px;
}

.invoice-meta {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5px 12px;
}

.invoice-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.invoice-totals {
  display: grid;
  gap: 0;
  border: 1px solid #dbe3ec;
}

.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px;
  background: var(--white);
  border-bottom: 1px solid #dbe3ec;
}

.invoice-totals div:last-child {
  border-bottom: 0;
}

.invoice-totals span {
  color: var(--steel);
  font-weight: 800;
}

.invoice-totals strong {
  color: var(--charcoal);
}

.invoice-totals .grand-total {
  color: var(--white);
  background: var(--charcoal);
}

.invoice-totals .grand-total span,
.invoice-totals .grand-total strong {
  color: var(--white);
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  body {
    background: var(--white);
  }

  .site-header,
  .site-footer,
  .mobile-bar,
  .template-actions {
    display: none !important;
  }

  .section {
    padding: 0;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .report-sheet {
    max-width: none;
    min-height: calc(297mm - 16mm);
    padding: 0;
    font-size: 9.4px;
    line-height: 1.18;
    border: 0;
    box-shadow: none;
  }

  .report-header {
    padding-bottom: 8px;
    margin-bottom: 7px;
  }

  .report-brand img {
    width: 46px;
  }

  .report-title h1 {
    font-size: 18px;
  }

  .report-grid {
    gap: 4px;
    margin-bottom: 6px;
  }

  .report-grid > div,
  .report-block {
    padding: 5px 6px;
  }

  .report-block {
    margin-bottom: 6px;
  }

  .report-block h2 {
    margin-bottom: 4px;
    font-size: 9.5px;
  }

  .report-text-box {
    min-height: 42px;
    padding: 5px;
  }

  .report-text-box.small {
    min-height: 38px;
  }

  .template-table {
    margin-bottom: 6px;
    font-size: 8.2px;
  }

  .template-table th,
  .template-table td {
    padding: 3px 4px;
  }

  .checklist-table {
    font-size: 7.5px;
  }

  .checklist-table th,
  .checklist-table td {
    padding: 2px 3px;
  }

  .report-signatures {
    gap: 18px;
    margin-top: 8px;
  }

  .report-signatures div {
    min-height: 30px;
  }

  .report-signatures span {
    margin-top: 18px;
    font-size: 7.5px;
  }

  .report-checks {
    gap: 1px;
  }

  .invoice-summary {
    gap: 8px;
  }

  .invoice-totals div {
    padding: 5px 7px;
  }

  .template-table tr,
  .template-table th,
  .template-table td {
    break-inside: avoid;
  }
}

.success-message {
  display: none;
  padding: 16px;
  color: #13562b;
  font-weight: 800;
  background: #e9f8ee;
  border: 1px solid #a7e1b8;
  border-radius: var(--radius);
}

.success-message.is-visible {
  display: block;
}

.message-status-wrap {
  position: relative;
  z-index: 2;
}

.message-status {
  margin: 18px 0 0;
}

.error-message {
  display: none;
  padding: 16px;
  color: #7c1d1d;
  font-weight: 800;
  background: #fff0f0;
  border: 1px solid #f0b4b4;
  border-radius: var(--radius);
}

.error-message.is-visible {
  display: block;
}

.hidden-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  min-height: 0;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  color: var(--white);
  font-weight: 800;
  line-height: 1.35;
  background: var(--charcoal);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card {
  padding: 28px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
}

.contact-card a {
  color: var(--white);
  font-weight: 800;
}

.contact-line {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-line:last-child {
  border-bottom: 0;
}

.parts-search {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-weight: 800;
}

.parts-finder {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 42, 61, 0.05);
}

.parts-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
}

.parts-finder-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.parts-toggle {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  color: var(--charcoal);
  font-weight: 800;
}

.parts-toggle input {
  width: 18px;
  min-height: 18px;
}

.parts-result-note {
  margin: 0;
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 700;
}

.parts-empty-state {
  padding: 28px;
  color: var(--steel);
  background: var(--white);
  border: 1px dashed #cfd6df;
  border-radius: var(--radius);
}

.parts-empty-state h3 {
  margin: 0 0 8px;
  color: var(--charcoal);
}

.parts-empty-state p {
  margin: 0;
}

.parts-catalogue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.parts-list {
  display: grid;
  gap: 12px;
}

.part-photo {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  color: var(--blue);
  background: #fff3eb;
  border: 1px solid #fed7bd;
  border-radius: var(--radius);
}

.part-photo span {
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.part-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(142px, 0.22fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 42, 61, 0.05);
}

.part-main {
  min-width: 0;
}

.part-main h3 {
  margin-bottom: 8px;
  color: var(--charcoal);
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.part-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.part-meta div {
  min-width: 0;
}

.part-meta dt {
  color: var(--steel);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.part-meta dd {
  margin: 0;
  color: var(--charcoal);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.part-meta code {
  font-size: 0.76rem;
  white-space: normal;
}

.part-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #13562b;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  background: #e9f8ee;
  border: 1px solid #a7e1b8;
  border-radius: 999px;
}

.part-select {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--white);
  font: inherit;
  font-weight: 900;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  cursor: pointer;
}

.part-select.is-selected {
  background: var(--blue);
  border-color: var(--blue);
}

.parts-request-panel {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow-y: hidden;
  overscroll-behavior: contain;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.parts-request-panel:hover,
.parts-request-panel:focus-within {
  overflow-y: auto;
}

.parts-request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.parts-request-head h2 {
  font-size: 1.45rem;
}

.btn-compact {
  min-height: 38px;
  padding: 9px 12px;
}

.site-footer {
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  color: rgba(255, 255, 255, 0.78);
  background: var(--charcoal);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 16px;
}

.site-footer .brand-logo {
  width: 38px;
  height: 38px;
}

.site-footer .brand-name {
  font-size: 0.92rem;
}

.site-footer .brand-subtitle {
  font-size: 0.58rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  font-weight: 800;
}

.footer-credit {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: right;
}

.mobile-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(15, 42, 61, 0.12);
}

.mobile-bar a {
  display: grid;
  place-items: center;
  min-height: 58px;
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 900;
  border-left: 1px solid var(--line);
}

.mobile-bar a:first-child {
  color: var(--white);
  background: var(--orange);
  border-left: 0;
}

@media (max-width: 980px) {
  .header-actions,
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .site-nav {
    position: absolute;
    top: 84px;
    right: 0;
    left: 0;
    display: block;
    padding: 12px 16px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .nav-list {
    display: grid;
    gap: 4px;
  }

  .site-header.is-open .nav-item {
    display: grid;
  }

  .site-header.is-open .submenu {
    position: static;
    display: none;
    min-width: 0;
    box-shadow: none;
    border-color: var(--line);
  }

  .site-header.is-open .nav-item.is-open-submenu .submenu {
    display: grid;
  }

  .site-header.is-open .nav-list a {
    min-height: 48px;
  }

  .hero,
  .hero > .container {
    min-height: 650px;
  }

  .service-strip .container,
  .grid-4,
  .grid-3,
  .portal-login-grid,
  .case-card,
  .industries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-dashboard {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portal-logo {
    grid-column: 1 / -1;
  }

  .portal-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-grid-3,
  .report-grid-4,
  .invoice-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .safety-panel,
  .about-layout,
  .contact-layout,
  .parts-filter-row,
  .parts-catalogue-layout {
    grid-template-columns: 1fr;
  }

  .parts-request-panel {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .part-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .part-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .parts-finder-actions {
    display: grid;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .header-inner {
    min-height: 72px;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand > span {
    min-width: 0;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    width: 88px;
    height: 46px;
    flex: 0 0 auto;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .nav-toggle {
    flex: 0 0 44px;
  }

  .site-header.is-open .site-nav {
    top: 72px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(20, 24, 28, 0.96) 0%, rgba(20, 24, 28, 0.86) 52%, rgba(20, 24, 28, 0.38) 100%),
      url("../images/industrial-boiler-hero.webp") 68% center / cover no-repeat;
  }

  .hero > .container {
    min-height: auto;
    padding: 66px 0 340px;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions,
  .cta-inner {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .service-strip {
    position: relative;
  }

  .service-strip .container,
  .grid-4,
  .grid-3,
  .grid-2,
  .calculator-panel,
  .calculator-app,
  .portal-login-grid,
  .portal-sidebar,
  .portal-stat-grid,
  .case-card,
  .industries,
  .check-list,
  .stats,
  .form-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
  }

  .footer-credit {
    max-width: none;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: left;
  }

  .portal-workspace {
    padding: 16px;
  }

  .portal-toolbar,
  .portal-actions {
    display: grid;
  }

  .portal-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .portal-row-head {
    display: none;
  }

  .template-actions,
  .report-header,
  .report-signatures,
  .report-grid-2,
  .report-grid-3,
  .report-grid-4,
  .invoice-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-sheet {
    padding: 14px;
    font-size: 0.72rem;
  }

  .report-title {
    text-align: left;
  }

  .report-header {
    display: flex;
    gap: 10px;
  }

  .report-brand {
    gap: 8px;
    max-width: 58%;
  }

  .report-brand img {
    width: 50px;
  }

  .report-brand strong {
    font-size: 0.78rem;
  }

  .report-brand span,
  .report-title p {
    font-size: 0.65rem;
  }

  .report-title h1 {
    font-size: 1.05rem;
  }

  .report-grid-3,
  .report-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .invoice-meta {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .strip-item:first-child {
    border-top: 0;
  }

  .section {
    padding: 64px 0;
  }

  .contact-layout .list-panel {
    padding-bottom: 118px;
  }

  .contact-layout .form {
    padding-bottom: 88px;
  }

  .contact-layout .form button[type="submit"] {
    margin-top: 8px;
    margin-bottom: 32px;
  }

  input,
  textarea,
  select,
  button {
    scroll-margin-bottom: 132px;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 26px;
  }

  .part-card {
    grid-template-columns: 1fr;
  }

  .part-photo {
    width: 54px;
  }

  .part-meta {
    grid-template-columns: 1fr 1fr;
  }

  .list-panel,
  .safety-panel {
    padding: 26px;
  }

  .cta {
    padding: 48px 0;
  }

  .site-footer {
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  }

.mobile-bar {
    display: grid;
  }
}

/* Premium industrial UX refresh for local preview */
:root {
  --soft-blue: #eef5f8;
  --warm-panel: #fff7f1;
}

body {
  font-size: 15.5px;
  line-height: 1.68;
  background: #fbfcfd;
}

.site-header {
  transition: box-shadow 180ms ease, background 180ms ease;
}

.header-inner {
  min-height: 74px;
  transition: min-height 180ms ease;
}

.brand-logo {
  transition: width 180ms ease, height 180ms ease;
}

.nav-list {
  gap: 2px;
}

.nav-list a {
  min-height: 36px;
  padding: 7px 8px;
  font-size: 0.8rem;
}

.submenu {
  min-width: 230px;
}

.hero {
  min-height: 640px;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(20, 24, 28, 0.72));
}

.hero > .container {
  min-height: 640px;
  padding: 92px 0 170px;
}

.hero-content {
  max-width: 620px;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.3rem, 4.6vw, 4.1rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.lead {
  max-width: 560px;
  font-size: 1.03rem;
  line-height: 1.58;
}

.section {
  padding: 82px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head p {
  max-width: 620px;
}

.card {
  padding: 23px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: var(--shadow);
}

.card p,
.muted {
  line-height: 1.58;
}

.premium-card {
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--orange);
  content: "";
}

.compact-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.compact-list li {
  margin: 6px 0;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.media-band {
  background:
    linear-gradient(120deg, rgba(15, 42, 61, 0.94), rgba(30, 35, 40, 0.86)),
    url("../images/industrial-boiler-hero.webp") center / cover no-repeat;
}

.media-band .section-head,
.media-band .section-head p,
.media-band h2 {
  color: var(--white);
}

.media-band .card {
  background: rgba(255, 255, 255, 0.94);
}

.mini-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.accordion-list {
  display: grid;
  gap: 12px;
}

.accordion-list details {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 42, 61, 0.05);
}

.accordion-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 900;
  cursor: pointer;
}

.accordion-list summary::after {
  color: var(--orange);
  content: "+";
}

.accordion-list details[open] summary::after {
  content: "-";
}

.accordion-list .accordion-body {
  padding: 0 20px 20px;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-photo {
  display: grid;
  min-height: 230px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(30, 35, 40, 0.82), rgba(15, 42, 61, 0.78)),
    url("../images/industrial-boiler-hero.webp") center / cover no-repeat;
}

.project-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.case-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.case-steps div {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.case-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
}

.contact-card,
.parts-request-panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.emergency-card {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border: 0;
}

.emergency-card a {
  color: var(--white);
}

.coverage-map {
  min-height: 190px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(15, 42, 61, 0.94), rgba(20, 24, 28, 0.78)),
    url("../images/industrial-boiler-hero.webp") center / cover no-repeat;
  border-radius: var(--radius);
}

.coverage-map span {
  display: inline-flex;
  margin: 6px;
  padding: 7px 10px;
  color: var(--white);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

@media (max-width: 950px) {
  html {
    scroll-padding-top: 92px;
  }

  .site-header {
    padding-top: max(6px, env(safe-area-inset-top));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-logo {
    width: 86px;
    height: 44px;
  }

  .site-nav {
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }

  .nav-list a {
    min-height: 44px;
  }

  .submenu {
    box-shadow: none;
  }

  .hero,
  .hero > .container {
    min-height: auto;
  }

  .hero > .container {
    padding-top: 76px;
    padding-bottom: 320px;
  }

  .section {
    padding: 62px 0;
  }

  .case-steps,
  .project-layout {
    grid-template-columns: 1fr;
  }
}

/* Home page is the master visual system for every inner page. */
.hero,
.page-hero {
  position: relative;
  min-height: 640px;
  color: var(--white);
  background: var(--charcoal-2);
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 24, 28, 0.96) 0%, rgba(20, 24, 28, 0.86) 34%, rgba(20, 24, 28, 0.38) 64%, rgba(20, 24, 28, 0.12) 100%),
    url("../images/industrial-boiler-hero.webp") center / cover no-repeat;
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(20, 24, 28, 0.72));
}

.hero > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  min-height: 640px;
  padding: 92px 0 170px;
}

.hero-content,
.page-hero > .container {
  max-width: none;
}

.hero h1,
.page-hero h1 {
  max-width: 720px;
  color: var(--white);
  font-size: clamp(2.3rem, 4.6vw, 4.1rem);
  font-weight: 900;
  line-height: 1.12;
}

.hero .lead,
.page-hero p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.03rem;
  line-height: 1.58;
}

.page-hero .eyebrow {
  color: #ffbd8a;
}

.section {
  padding: 82px 0;
}

.section-light {
  background:
    linear-gradient(180deg, rgba(244, 246, 248, 0.98), rgba(238, 245, 248, 0.92));
}

.card,
.list-panel,
.contact-card,
.parts-finder,
.portal-dashboard,
.project-layout,
.safety-panel {
  border-radius: var(--radius);
}

.card,
.list-panel,
.contact-card,
.parts-finder,
.portal-dashboard,
.project-layout {
  box-shadow: 0 12px 34px rgba(15, 42, 61, 0.08);
}

.btn {
  min-height: 46px;
  padding: 12px 15px;
  border-radius: var(--radius);
  font-size: 0.94rem;
}

@media (max-width: 950px) {
  .hero,
  .page-hero {
    min-height: auto;
  }

  .hero::before,
  .page-hero::before {
    background:
      linear-gradient(180deg, rgba(20, 24, 28, 0.96) 0%, rgba(20, 24, 28, 0.86) 52%, rgba(20, 24, 28, 0.38) 100%),
      url("../images/industrial-boiler-hero.webp") 68% center / cover no-repeat;
  }

  .hero > .container,
  .page-hero > .container {
    min-height: auto;
    padding: 76px 0 320px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero .lead,
  .page-hero p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1rem;
  }
}

/* Pixel-locked master hero component. Home controls every page. */
.hero,
.page-hero {
  position: relative !important;
  min-height: 760px !important;
  height: calc(100svh - 74px);
  max-height: 880px;
  color: var(--white) !important;
  background: var(--charcoal-2) !important;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  position: absolute !important;
  inset: 0 !important;
  content: "" !important;
  background:
    linear-gradient(90deg, rgba(20, 24, 28, 0.96) 0%, rgba(20, 24, 28, 0.86) 34%, rgba(20, 24, 28, 0.38) 64%, rgba(20, 24, 28, 0.12) 100%),
    url("../images/industrial-boiler-hero.webp") center / cover no-repeat !important;
  filter: contrast(1.04) saturate(1.03);
}

.hero::after,
.page-hero::after {
  position: absolute !important;
  inset: auto 0 0 !important;
  z-index: 0;
  height: 30% !important;
  content: "" !important;
  background: linear-gradient(180deg, transparent, rgba(20, 24, 28, 0.72)) !important;
  pointer-events: none;
}

.hero > .container,
.page-hero > .container {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  align-content: start !important;
  justify-items: start !important;
  width: min(100% - 32px, var(--max)) !important;
  min-height: 760px !important;
  height: 100% !important;
  padding: 108px 0 180px !important;
  margin: 0 auto !important;
}

.hero-content,
.page-hero > .container > * {
  max-width: 680px;
}

.hero h1,
.page-hero h1 {
  max-width: 760px !important;
  margin: 0 !important;
  color: var(--white) !important;
  font-size: clamp(1.8rem, 4.2vw, 3.45rem) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.hero .eyebrow,
.page-hero .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  color: #ffbd8a !important;
  font-size: 0.83rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.hero .eyebrow::before,
.page-hero .eyebrow::before {
  width: 32px !important;
  height: 2px !important;
  background: var(--orange) !important;
  content: "" !important;
}

.hero .lead,
.page-hero p:not(.eyebrow) {
  max-width: 680px !important;
  margin: 22px 0 0 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 1.15rem !important;
  line-height: 1.6 !important;
}

.hero-actions,
.page-hero .hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: 32px !important;
}

.page-hero .hero-actions {
  max-width: 680px !important;
}

.service-strip {
  min-height: 82px;
}

@media (max-width: 950px) {
  .hero,
  .page-hero {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
  }

  .hero::before,
  .page-hero::before {
    background:
      linear-gradient(180deg, rgba(20, 24, 28, 0.96) 0%, rgba(20, 24, 28, 0.86) 52%, rgba(20, 24, 28, 0.38) 100%),
      url("../images/industrial-boiler-hero.webp") 68% center / cover no-repeat !important;
  }

  .hero > .container,
  .page-hero > .container {
    width: min(100% - 24px, var(--max)) !important;
    min-height: auto !important;
    padding: 66px 0 340px !important;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100% !important;
    font-size: clamp(1.4rem, 8.4vw, 2.1rem) !important;
  }

  .hero .lead,
  .page-hero p:not(.eyebrow) {
    max-width: 100% !important;
    font-size: 1rem !important;
  }

  .hero-actions,
  .page-hero .hero-actions {
    display: grid !important;
    width: 100%;
  }
}

/* Header lock: no shrink or visual resize on page scroll. */
.site-header.is-compact {
  box-shadow: none;
}

.site-header.is-compact .header-inner {
  min-height: 74px;
}

.site-header.is-compact .brand-logo {
  width: 112px;
  height: 58px;
}

@media (max-width: 950px) {
  .site-header.is-compact .header-inner {
    min-height: 66px;
  }

  .site-header.is-compact .brand-logo {
    width: 86px;
    height: 44px;
  }
}

/* Final header lock: identical header size before and after scroll. */
.site-header,
.site-header.is-compact {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: none !important;
}

.header-inner,
.site-header.is-compact .header-inner {
  min-height: 84px !important;
  height: 84px !important;
  transition: none !important;
}

.brand-logo,
.site-header.is-compact .brand-logo {
  width: 112px !important;
  height: 58px !important;
  transition: none !important;
}

@media (max-width: 950px) {
  .header-inner,
  .site-header.is-compact .header-inner {
    min-height: 66px !important;
    height: 66px !important;
  }

  .brand-logo,
  .site-header.is-compact .brand-logo {
    width: 86px !important;
    height: 44px !important;
  }
}

/* Admin workspace prototype */
.admin-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-login-form,
.admin-form {
  display: grid;
  gap: 12px;
}

.admin-login-form label,
.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--charcoal);
  font: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-main {
  min-height: 760px;
}

.admin-sidebar .admin-logout {
  width: 100%;
  margin-top: 16px;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-grid,
.admin-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-inline-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  margin-bottom: 18px;
}

.admin-document-preview {
  min-height: 420px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-document-preview .report-brand {
  margin-bottom: 20px;
}

.admin-preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.admin-preview-meta div {
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-preview-meta dt {
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-preview-meta dd {
  margin: 0;
  font-weight: 800;
}

.admin-section-title {
  margin: 24px 0 12px;
}

.admin-record-list {
  display: grid;
  gap: 10px;
}

.admin-record {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-record strong,
.admin-record span {
  display: block;
}

.admin-record div > span {
  color: var(--steel);
  font-size: 0.9rem;
}

.admin-calendar {
  display: grid;
  gap: 12px;
}

.calendar-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calendar-item time {
  color: var(--blue);
  font-weight: 900;
}

.calendar-item time span {
  display: block;
  color: var(--steel);
  font-size: 0.85rem;
}

.calendar-item strong,
.calendar-item p {
  margin: 0;
}

@media (max-width: 950px) {
  .admin-login-panel,
  .admin-shell,
  .admin-two-col,
  .admin-grid,
  .admin-inline-form {
    grid-template-columns: 1fr;
  }

  .admin-main {
    min-height: 0;
    padding: 18px;
  }

  .admin-preview-meta,
  .calendar-item {
    grid-template-columns: 1fr;
  }
}

/* Compact global footer */
.site-footer {
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
}

.site-footer .footer-inner {
  min-height: 44px;
  gap: 14px;
}

.site-footer .brand {
  gap: 12px;
}

.site-footer .brand > span {
  margin-left: 42px;
}

.site-footer .brand-logo {
  width: 70px !important;
  height: 36px !important;
  transform: scale(1.6);
  transform-origin: left center;
}

.site-footer .brand-name {
  font-size: 1rem;
  line-height: 1.1;
}

.site-footer .brand-subtitle {
  font-size: 0.7rem;
}

.site-footer .footer-credit {
  font-size: 0.78rem;
  line-height: 1.25;
}

@media (max-width: 680px) {
  .site-footer {
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
  }

  .site-footer .brand-logo {
    width: 66px !important;
    height: 34px !important;
    transform: scale(1.3);
  }

  .site-footer .brand > span {
    margin-left: 20px;
  }

  .site-footer .footer-credit {
    max-width: none;
    font-size: 0.66rem;
    line-height: 1.2;
    text-align: left;
  }
}

.fault-helper-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fault-search-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(120px, 0.35fr) auto;
  gap: 14px;
  align-items: end;
}

.fault-search-grid.azl-mode {
  grid-template-columns: minmax(260px, 1fr) minmax(110px, 0.28fr) minmax(110px, 0.28fr) auto;
}

.fault-search-grid label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 0.86rem;
  font-weight: 800;
}

.fault-search-grid select,
.fault-search-grid input {
  min-height: 46px;
  padding: 10px 12px;
  color: var(--charcoal);
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.fault-actions {
  display: flex;
  gap: 10px;
}

.fault-helper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--steel);
  font-size: 0.9rem;
}

.fault-helper-meta a {
  color: var(--blue);
  font-weight: 900;
}

.fault-results {
  display: grid;
  gap: 14px;
}

.fault-empty,
.fault-result-card {
  padding: 18px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fault-result-card {
  display: grid;
  gap: 10px;
}

.fault-result-head {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 10px;
  align-items: center;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 800;
}

.fault-equipment-name {
  grid-column: 1 / -1;
  min-width: 0;
  line-height: 1.25;
}

.fault-code-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.fault-diag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: var(--charcoal);
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 6px;
  font-weight: 900;
}

.fault-result-card h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.fault-result-card p,
.fault-result-card ul {
  margin: 0;
}

.fault-result-card ul {
  padding-left: 20px;
}

.fault-source {
  color: var(--steel);
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  .fault-search-grid {
    grid-template-columns: 1fr;
  }

  .fault-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
