/* ==========================================================================
   HeatMax Energy Limited — stylesheet
   Organised per the approved blueprint (§22): tokens → reset → base/type →
   layout primitives → components → page overrides.
   Built incrementally, one component at a time. Sections marked "not yet
   built" are added when the page/component that needs them is built.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour — see blueprint §10 */
  --color-primary: #0F3D57;
  --color-primary-dark: #0A2C40;
  --color-primary-tint: #E4EEF2;
  --color-secondary: #167A5D;
  --color-secondary-dark: #0F5C46;
  --color-accent: #E0A426;
  --color-success: #1F7A52;
  --color-error: #B3261E;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --color-bg: #F7F9FA;
  --color-surface: #FFFFFF;
  --color-border: #E1E7EA;
  --color-text-primary: #1C2B33;
  --color-text-body: #3D4A54;
  --color-text-muted: #6B7880;

  /* Typography — see blueprint §11 */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --fs-h1: clamp(2rem, 1.6rem + 2vw, 3rem);       /* 32px → 48px */
  --fs-h2: clamp(1.75rem, 1.45rem + 1.5vw, 2.25rem); /* 28px → 36px */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);  /* 20px → 24px */
  --fs-h4: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem); /* 18px → 20px */
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing — 8px base unit, see blueprint §12 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Radius + shadow — see blueprint §9, §14 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(15, 61, 87, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 61, 87, 0.12);

  /* Layout */
  --header-height: 80px;
  --container-width: 1200px;

  /* Motion */
  --transition-fast: 150ms ease;
  /* Added in the media-refinement phase. Both sit inside the 180–500ms
     brief; the easing decelerates without overshoot (no bounce). */
  --transition-base: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-reveal: 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Minimal reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

h1, h2, h3, h4, p, figure { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input, textarea, select { font: inherit; }

/* --------------------------------------------------------------------------
   3. Base & typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-body);
  background: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text-primary);
}

h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.15; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.4; }

.text-small { font-size: var(--fs-small); line-height: 1.5; }
.text-muted { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   4. Accessibility helpers
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Respect prefers-reduced-motion globally, rather than per component */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

.site-main {
  min-height: 60vh;
}

/* --------------------------------------------------------------------------
   6. Components — buttons (blueprint §13)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn--lg {
  min-height: 52px;
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-primary-dark);
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--color-primary-tint);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn--whatsapp:hover, .btn--whatsapp:focus-visible {
  background: var(--color-whatsapp-dark);
}

.btn--call {
  background: transparent;
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.btn--call:hover, .btn--call:focus-visible {
  background: var(--color-primary-tint);
}

.btn--text {
  padding: var(--space-2) 0;
  border-radius: 0;
  min-height: 0;
}
.btn--text:hover, .btn--text:focus-visible {
  text-decoration: underline;
}

.btn--on-primary {
  background: #fff;
  color: var(--color-primary);
}
.btn--on-primary:hover, .btn--on-primary:focus-visible {
  background: var(--color-primary-tint);
}

/* --------------------------------------------------------------------------
   7. Component — notice (used for form feedback later; used now for the
      temporary "build in progress" note on the homepage stub)
   -------------------------------------------------------------------------- */
.notice {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  background: var(--color-primary-tint);
  color: var(--color-text-body);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   8. Component — site header & navigation (blueprint §3, §7)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-fast);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-4);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo img {
  max-height: 52px;
  width: auto;
  height: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-toggle:hover { background: var(--color-primary-tint); }

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: fixed;
  inset-inline: 0;
  top: var(--header-height);
  bottom: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: none;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-4);
  overflow-y: auto;
}

.site-nav.is-open { display: flex; }

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-nav__list a {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  background: var(--color-primary-tint);
}

.site-nav__list a.is-active {
  color: var(--color-primary);
}

.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    border-top: none;
    padding: 0;
    gap: var(--space-8);
    overflow: visible;
  }

  .site-nav__list {
    flex-direction: row;
    gap: var(--space-6);
  }

  .site-nav__list a { padding: var(--space-2); }

  .site-nav__actions {
    flex-direction: row;
    gap: var(--space-3);
  }
}

/* --------------------------------------------------------------------------
   9. Component — site footer (blueprint §7)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-24);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-16);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__logo-frame {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}

.site-footer__logo-frame img {
  display: block;
  height: 32px;
  width: auto;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-4);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.site-footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: var(--space-4);
  font-size: var(--fs-small);
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. Layout primitive — section vertical rhythm (blueprint §12)
       Used by every page, including the foundation-stage stub headings.
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--space-12);
}

@media (min-width: 1024px) {
  .section { padding-block: var(--space-24); }
}

.section > h1 {
  margin-bottom: var(--space-4);
}

.section--surface {
  background: var(--color-surface);
}

.section--tint {
  background: var(--color-primary-tint);
}

.section__footer-cta {
  text-align: center;
  margin-top: var(--space-8);
}

/* --------------------------------------------------------------------------
   11. Footer placeholder text (profile download, Privacy/Terms) — styled
       as clearly non-interactive until those items are confirmed/built.
   -------------------------------------------------------------------------- */
.footer-pending {
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.site-footer__legal {
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   12. Section header — reusable eyebrow + heading + intro, centred
   -------------------------------------------------------------------------- */
.section-header {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  text-align: center;
}

.section-header__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

.section-header__intro {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   13. Card grid — responsive, reused by services / sectors / why-choose /
       featured projects without per-section column rules
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

/* --------------------------------------------------------------------------
   14. Cards — base + variants (blueprint §14)
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

/* Service card */
.card--service {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card--service .card__link {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-primary);
}

.card--service .card__link::after {
  content: " \2192";
}

/* Value card (Why choose HeatMax) */
.card--value {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.card--value .card__icon {
  flex-shrink: 0;
  color: var(--color-secondary);
}

/* Sector card */
.card--sector {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

/* Project card */
.card--project {
  padding: 0;
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
  display: block;
}

.card--project:hover,
.card--project:focus-visible,
.card--project:focus-within {
  box-shadow: var(--shadow-md);
}

.card--project img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.card--project .card__body {
  padding: var(--space-4);
}

.card--project .card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: var(--space-1);
}

.card--project .card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-1);
}

.card--project .card__caption {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

/* Featured Projects grid — explicit breakpoints for this section only
   (the shared .card-grid auto-fit behaviour elsewhere is untouched). */
.card-grid--projects {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .card-grid--projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--projects {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   15. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 520px;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 44, 64, 0.68) 0%, rgba(10, 44, 64, 0.42) 55%, rgba(10, 44, 64, 0.22) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-block: var(--space-16);
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-3);
}

.hero__content h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__lead {
  margin-top: var(--space-4);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero__alt-contact {
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.85);
}

.hero__alt-contact a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.hero__credibility {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.75);
  max-width: 48ch;
}

@media (min-width: 768px) {
  .hero { min-height: 620px; }
}

/* --------------------------------------------------------------------------
   16. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--color-primary-tint);
  padding-block: var(--space-8);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4) var(--space-6);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-primary);
}

.trust-strip__item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   17. Split section — image + content (company introduction)
   -------------------------------------------------------------------------- */
.split-section {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.split-section__media img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-section__content p {
  margin-top: var(--space-4);
}

.split-section__content .card__link {
  display: inline-block;
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
}

.split-section__content .btn {
  margin-top: var(--space-6);
}

.split-section__content .card__link::after {
  content: " \2192";
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .split-section--reverse .split-section__media {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   18. Specification chip — signature technical-fact element (blueprint §9)
   -------------------------------------------------------------------------- */
.spec-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
}

/* --------------------------------------------------------------------------
   19. FLOW GAS section — one deliberate contained colour panel, not full-bleed
   -------------------------------------------------------------------------- */
.flow-gas {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

@media (min-width: 768px) {
  .flow-gas { padding: var(--space-16) var(--space-12); }
}

.flow-gas .section-header__eyebrow { color: rgba(255, 255, 255, 0.85); }
.flow-gas .section-header__heading { color: #fff; }
.flow-gas__intro {
  max-width: 56ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.9);
}

.flow-gas__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.flow-gas .spec-chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.flow-gas__cta {
  margin-top: var(--space-8);
}

/* --------------------------------------------------------------------------
   20. Icon list — reused by Why-choose and Safety-and-reliability
   -------------------------------------------------------------------------- */
.icon-list {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .icon-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-8) var(--space-6);
  }
}

.icon-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.icon-list__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--color-secondary);
}

.icon-list__title {
  margin-bottom: var(--space-1);
}

.icon-list__item p {
  color: var(--color-text-body);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   21. Final CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}

.cta-banner h2 { color: #fff; }

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
  margin-inline: auto;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.cta-banner .btn--call {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta-banner .btn--call:hover,
.cta-banner .btn--call:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   22. Internal page hero — compact, text-led, distinct from the homepage
       hero (blueprint: "do not reuse the full homepage hero design")
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding-block: var(--space-8) var(--space-12);
}

@media (min-width: 768px) {
  .page-hero { padding-block: var(--space-12) var(--space-16); }
}

.page-hero h1 {
  color: #fff;
  margin-top: var(--space-3);
}

.page-hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.page-hero__intro {
  margin-top: var(--space-4);
  max-width: 65ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
}

/* Optional two-column variant with a supporting image (Services uses this;
   About doesn't, since its brief calls for a text-only hero). */
.page-hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .page-hero__grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

.page-hero__media img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.page-hero .btn--call {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.page-hero .btn--call:hover,
.page-hero .btn--call:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   23. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  margin-bottom: var(--space-4);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
}

.breadcrumbs__list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs__list li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   24. Mission & vision — two visually balanced blocks
   -------------------------------------------------------------------------- */
.mv-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .mv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mv-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

.mv-card--vision {
  border-left-color: var(--color-primary);
}

.mv-card__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.mv-card--vision .mv-card__label {
  color: var(--color-primary);
}

.mv-card__quote {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   25. Numbered feature blocks (Why Choose HeatMax, About-page treatment)
   -------------------------------------------------------------------------- */
.numbered-blocks {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .numbered-blocks {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.numbered-block {
  display: flex;
  gap: var(--space-4);
}

.numbered-block__index {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numbered-block__title {
  margin-bottom: var(--space-1);
}

.numbered-block p {
  color: var(--color-text-body);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   26. Partnerships section
   -------------------------------------------------------------------------- */
.partnership-grid {
  display: grid;
  gap: var(--space-6);
}

.partnership-grid--narrow {
  max-width: 640px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .partnership-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.partnership-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.partnership-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.partnership-card p {
  font-size: var(--fs-small);
  color: var(--color-text-body);
}

/* --------------------------------------------------------------------------
   27. Leadership — text-led, no portrait
   -------------------------------------------------------------------------- */
.leadership-block {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

.leadership-block__icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.leadership-block__name {
  margin-bottom: var(--space-1);
}

.leadership-block__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   28. In-page service navigation — wraps on small screens, never overflows
   -------------------------------------------------------------------------- */
.service-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-4);
  position: sticky;
  top: var(--header-height);
  z-index: 10;
}

.service-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.service-nav__list a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-text-body);
}

.service-nav__list a:hover,
.service-nav__list a:focus-visible {
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   29. Feature list — simple checkmark list for "typical components",
       "general categories" and similar itemised, non-iconic content
   -------------------------------------------------------------------------- */
.feature-list {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: var(--space-4);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-text-body);
}

.feature-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-secondary);
}

.feature-list--narrow {
  max-width: 760px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   30. Service selection guide
   -------------------------------------------------------------------------- */
.selection-guide {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.selection-guide__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.selection-guide__question {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.selection-guide__item a {
  display: inline-block;
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-primary);
}

.selection-guide__item a:hover,
.selection-guide__item a:focus-visible {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   31. FAQ — native <details>/<summary>, no JS required
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-6);
}

.faq-item summary {
  cursor: pointer;
  padding-block: var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--color-secondary);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: var(--space-4);
  color: var(--color-text-body);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   32. Project metadata — small facts row on project cards and entries
   -------------------------------------------------------------------------- */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.project-meta__item:not(:last-child)::after {
  content: "\2022";
  margin-left: var(--space-2);
  color: var(--color-border);
}

/* --------------------------------------------------------------------------
   33. Verified named projects — text-led (no confirmed photo match)
   -------------------------------------------------------------------------- */
.verified-project-list {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.verified-project {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.verified-project__title {
  margin-bottom: var(--space-1);
}

.verified-project p {
  font-size: var(--fs-small);
  color: var(--color-text-body);
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   34. Category example tags — compact pill list ("Schools, Universities...")
   -------------------------------------------------------------------------- */
.category-examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.category-examples--center {
  justify-content: center;
}

.category-examples li {
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.notice--spaced {
  margin-top: var(--space-8);
}

.card--service p {
  overflow-wrap: anywhere;
}

.category-section {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.category-section:last-child {
  border-bottom: none;
}

.category-section__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   35. Contact form
   -------------------------------------------------------------------------- */
.contact-form-wrap {
  max-width: 760px;
  margin-inline: auto;
}

.form-status {
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
  border: 1px solid transparent;
}

.form-status p {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
}

.form-status ul {
  margin-top: var(--space-2);
  padding-left: var(--space-4);
  list-style: disc;
}

.form-status li {
  font-size: var(--fs-small);
}

.form-status li a {
  color: inherit;
  text-decoration: underline;
}

.form-status--success {
  background: #EAF6EF;
  border-color: var(--color-success);
  color: #14532D;
}

.form-status--error {
  background: #FDECEA;
  border-color: var(--color-error);
  color: #7A1D17;
}

.form-status--error:focus {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
}

.form-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-group--full {
    grid-column: 1 / -1;
  }
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.required-indicator {
  color: var(--color-text-muted);
  font-weight: 500;
}

.optional-indicator {
  color: var(--color-text-muted);
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font: inherit;
  color: var(--color-text-primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-hint {
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.field-error {
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-error);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 44px;
  padding-block: var(--space-2);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--color-text-body);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--color-primary);
}

/* Honeypot — present in the DOM (not display:none) so simple bots that
   fill every visible-looking input still trip it, but positioned off
   screen and out of tab order so real visitors never encounter it. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#contact-submit {
  margin-top: var(--space-8);
  width: 100%;
}

@media (min-width: 768px) {
  #contact-submit {
    width: auto;
  }
}

#contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   35b. Text-led service block — used when the manifest holds no approved
        photograph for a service slot, so the section reads as an
        intentional single column rather than a broken two-column grid.
        Mirrors the measure of .split-section__content.
   -------------------------------------------------------------------------- */
.service-block--text-led {
  max-width: 720px;
}

.service-block--text-led p {
  margin-top: var(--space-4);
}

.service-block--text-led .btn {
  margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   36. Video figure — shared by the Director's message (about.php) and the
       client testimonial (index.php).

       Both supplied videos are 1920x1080 landscape, so the frame is a fixed
       16 / 9 box that matches the real source dimensions. If a portrait or
       square video is ever added, give it its own modifier rather than
       forcing it into this ratio.
   -------------------------------------------------------------------------- */
.video-figure {
  max-width: 880px;
  margin-inline: auto;
}

.video-figure__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-primary-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* The video fills the frame exactly, so controls can never sit outside the
   rounded corners and the box reserves its space before metadata loads —
   no layout shift when the poster arrives. */
.video-figure__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--color-primary-dark);
}

/* Fallback text (shown only when <video> is unsupported) needs to be
   readable against the dark frame. */
.video-figure__frame a {
  color: #fff;
  text-decoration: underline;
}

.video-figure__caption {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  text-align: center;
}

.video-figure__meta {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Transcript block — only rendered when a transcript has been supplied. */
.video-transcript {
  max-width: 880px;
  margin: var(--space-6) auto 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  padding-inline: var(--space-4);
}

.video-transcript summary {
  cursor: pointer;
  padding-block: var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-primary);
}

.video-transcript__body {
  padding-bottom: var(--space-4);
  color: var(--color-text-body);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   37. Scroll reveal

       Deliberately inert by default: a .reveal element is fully visible with
       no JavaScript, because nothing is hidden until main.js adds
       .reveal--armed at runtime. If the script fails, is blocked, or the
       visitor has reduced motion enabled, every section simply renders.
   -------------------------------------------------------------------------- */
.reveal {
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal--armed {
  opacity: 0;
  /* Small offset only — 12px reads as a settle, not a slide. */
  transform: translateY(12px);
}

.reveal--visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }

/* --------------------------------------------------------------------------
   38. Transition refinements on existing components

       Additive only — each rule below adds movement or timing to a component
       that already existed; none changes its layout, colour or size.
   -------------------------------------------------------------------------- */

/* Navigation underline. Drawn with a pseudo-element so it animates without
   affecting layout. Desktop only: on mobile the nav items are full-width
   rows where the existing tint background is the clearer affordance. */
@media (min-width: 1024px) {
  .site-nav__list a {
    position: relative;
  }

  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: var(--space-2);
    right: var(--space-2);
    bottom: 4px;
    height: 2px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition-base);
  }

  .site-nav__list a:hover::after,
  .site-nav__list a:focus-visible::after,
  .site-nav__list a.is-active::after {
    transform: scaleX(1);
  }
}

/* Cards gain a shadow and a 2px lift on hover. Keyboard users get the same
   feedback via :focus-within, since the service cards contain a link. */
.card--service,
.card--sector {
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card--service:hover,
.card--sector:hover,
.card--service:focus-within,
.card--sector:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Project cards already transition box-shadow; add the matching lift and
   bring them onto the shared timing. */
.card--project {
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card--project:hover,
.card--project:focus-visible,
.card--project:focus-within {
  transform: translateY(-2px);
}

/* Image reveal inside project cards — a restrained 1.02 scale, no pan. */
.card--project img {
  transition: transform var(--transition-base);
}

.card--project:hover img,
.card--project:focus-within img {
  transform: scale(1.02);
}

/* FAQ answers ease open rather than snapping. The existing +/- marker
   rotation is left as-is. */
.faq-item summary {
  transition: color var(--transition-base);
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Reduced motion — the global rule in section 4 already collapses every
   transition above to ~0ms. This block additionally guarantees that a
   reveal element can never be left invisible if main.js armed it before the
   preference was evaluated.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--armed {
    opacity: 1 !important;
    transform: none !important;
  }

  .card--service:hover,
  .card--sector:hover,
  .card--project:hover,
  .card--project:hover img {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Not yet built: nothing outstanding — all six pages now have full content.
   -------------------------------------------------------------------------- */
