:root {
  --ink: #17212b;
  --muted: #5f6c73;
  --line: #d9e0e3;
  --paper: #ffffff;
  --wash: #f3f7f8;
  --night: #101920;
  --night-2: #162128;
  --teal: #0b7280;
  --teal-dark: #07515a;
  --gold: #996013;
  --green: #4f6f52;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

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

[hidden] { display: none !important; }
.header-call { display: none; }

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #ca7922;
  outline-offset: 4px;
}

button, input, textarea {
  font: inherit;
}

main, .container > *, .cta-grid > * {
  min-width: 0;
}

h1, h2, h3, p, a, dd, figcaption {
  overflow-wrap: anywhere;
}

[id] { scroll-margin-top: 90px; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  clip: auto;
  color: var(--paper);
  background: var(--teal);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  color: var(--paper);
  background: rgba(16, 25, 32, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

.brand img {
  width: 196px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 10px 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--paper);
}

.site-nav a.is-active {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.site-nav .nav-call {
  margin-left: 8px;
  color: var(--paper);
  background: var(--teal);
  border-radius: 8px;
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: var(--night);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 24, 31, 0.94) 0%, rgba(13, 24, 31, 0.78) 45%, rgba(13, 24, 31, 0.25) 100%),
    linear-gradient(0deg, rgba(13, 24, 31, 0.72), rgba(13, 24, 31, 0.08));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: end;
  padding: 64px 0;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 780px;
  font-size: 3.5rem;
  line-height: 1.08;
  font-weight: 900;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.25rem;
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

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

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--paper);
  background: var(--teal);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.whatsapp-button {
  gap: 8px;
  color: var(--paper);
  background: #128c7e;
}

.button.whatsapp-button:hover,
.button.whatsapp-button:focus-visible {
  background: #0f766c;
}

.button.secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.button.secondary-dark {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-panel dl,
.hero-panel dd {
  margin: 0;
}

.hero-panel div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-panel dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel dd {
  margin-top: 4px;
  font-weight: 900;
}

.quick-strip {
  background: var(--teal-dark);
}

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

.quick-grid a {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 20px;
  color: var(--paper);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.quick-grid a:hover,
.quick-grid a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  text-decoration-thickness: 2px;
}

.quick-grid a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.quick-grid span {
  min-width: 0;
  overflow-wrap: normal;
}

.quick-grid svg {
  flex: 0 0 20px;
  display: block;
}

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

.muted {
  background: var(--wash);
}

.section-head {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-head p:not(.eyebrow),
.rich-text p,
.rich-text li,
.wide-card p,
.wide-card li {
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.wide-card,
.side-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.08);
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.service-card div {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.service-card .text-link { margin-top: auto; }
.service-card h3 { min-height: 3.2em; line-height: 1.3; }
.service-card img { object-position: center; }
.home-services .boiler-photo,
.boiler-gallery .boiler-photo,
.page-hero .boiler-photo { object-position: 88% center; }
.maintenance-photo { object-position: 30% center; }

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
  min-height: 44px;
  align-items: center;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.two-col {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: start;
}

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

.faq-list details {
  padding: 20px;
}

.faq-list summary {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.testimonial-band {
  padding: 72px 0;
  color: var(--paper);
  background: var(--night-2);
}

.testimonial-band blockquote {
  max-width: 900px;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
}

.contact-cta {
  padding: 72px 0;
  background: #f9faf7;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.cta-grid h2 {
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-hero {
  padding: 48px 0;
  color: var(--paper);
  background:
    linear-gradient(115deg, rgba(16, 25, 32, 0.96), rgba(16, 25, 32, 0.88)),
    var(--night);
}

.page-hero.compact {
  padding: 48px 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
}

.page-hero h1 {
  font-size: 3rem;
}

.page-hero img {
  width: 100%;
  height: 240px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.page-hero .scene-photo {
  height: auto;
  max-width: 480px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

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

.content-grid > * {
  min-width: 0;
}

.rich-text {
  max-width: 780px;
  min-width: 0;
}

.rich-text h2 { font-size: 1.75rem; }
.rich-text h3 { margin-top: 28px; }

.rich-text h2 + p,
.rich-text h2 + ol,
.rich-text p + p,
.rich-text p + ul,
.rich-text ul + h2,
.rich-text p + h2 {
  margin-top: 18px;
}

.rich-text h2:not(:first-child) {
  margin-top: 46px;
}

.rich-text ul,
.rich-text ol,
.wide-card ul {
  padding-left: 20px;
}

.rich-text li + li,
.wide-card li + li {
  margin-top: 10px;
}

.side-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
}

.side-panel h2 {
  font-size: 1.3rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.service-list {
  display: grid;
  gap: 22px;
}

.wide-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding-top: 28px;
  align-items: start;
}

.wide-card > img {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  background: var(--wash);
}

.wide-card > div {
  padding: 0 0 0 30px;
}

.wide-card h2 {
  font-size: 1.75rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.image-tile {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.08);
}

.image-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.image-tile figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.product-gallery {
  margin: 18px 0 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-gallery .image-tile img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7f9fa;
}

.clima-products .image-tile img {
  object-fit: cover;
}

.scroll-gallery-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 52px;
  margin: 18px 0 28px;
  border-radius: 8px;
}

.gallery-arrow {
  position: absolute;
  z-index: 2;
  bottom: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(23, 33, 43, 0.14);
  border-radius: 50%;
  color: var(--ink);
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(23, 33, 43, 0.16);
}

.gallery-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--paper);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-arrow-prev {
  right: 56px;
}

.gallery-arrow-next {
  right: 0;
}

.scroll-gallery {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 0 0 8px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) var(--wash);
  -webkit-overflow-scrolling: touch;
}


.scroll-gallery:focus-visible {
  outline: 3px solid rgba(11, 114, 128, 0.22);
  outline-offset: 3px;
}

.scroll-gallery .image-tile {
  flex: 0 0 min(430px, 88%);
  min-width: 0;
  scroll-snap-align: start;
}

.scroll-gallery .image-tile img {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-position {
  position: absolute;
  left: 0;
  bottom: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.inline-visual {
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.08);
}

.inline-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f7f9fa;
}

.inline-visual figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.brand-strip {
  margin: 28px 0;
  padding: 0;
  background: var(--paper);
}

.brand-strip img {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.mini-gallery img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.image-link {
  display: block;
  min-width: 0;
  cursor: zoom-in;
}

.image-dialog {
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}

.image-dialog::backdrop { background: rgba(10, 15, 18, 0.8); }
body:has(.image-dialog[open]) { overflow: hidden; }
.image-dialog form { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.image-dialog .button { width: auto; }
.image-dialog img { width: 100%; height: min(68dvh, 720px); object-fit: contain; }
.image-dialog p { margin: 12px 0 0; }

.brand-strip p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.brand-strip strong { color: var(--ink); }

.payment-card {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.payment-card p {
  margin: 0;
}

.payment-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.contact-section {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  color: var(--paper);
  background:
    linear-gradient(115deg, rgba(16, 25, 32, 0.98), rgba(16, 25, 32, 0.83)),
    url("images/hero-tools.jpg") center / cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-copy h1 {
  font-size: 3rem;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-cards a,
.contact-info {
  display: block;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--paper);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.contact-cards .whatsapp-link {
  display: block;
}

.contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-cards a:nth-child(n+3) { grid-column: 1 / -1; }
.contact-info { padding: 12px 0; border: 0; background: none; }

.payment-logos {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.8fr;
  align-items: center;
  gap: 20px;
  width: 304px;
  max-width: 100%;
  padding: 16px;
  border-radius: 6px;
  background: var(--paper);
}

.payment-logos img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.contact-location {
  background: var(--wash);
}

.location-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.location-heading h2 { margin: 0; }
.location-heading p { margin: 8px 0 0; color: var(--muted); }
.location-heading .button { width: auto; gap: 8px; }
.location-heading svg { flex-shrink: 0; }

.location-map {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

@media (max-width: 560px) {
  .location-map { height: 260px; }
}

.contact-form h2 { font-size: 1.5rem; margin: 0; }
.form-status { margin: 0; color: var(--teal-dark); }

.contact-cards span,
.contact-info span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(11, 114, 128, 0.15);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
  border: 0;
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 44px 0 42px;
  color: rgba(255, 255, 255, 0.78);
  background: #0f171d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin-bottom: 8px;
  color: var(--paper);
  font-size: 1rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--paper);
}

.site-footer p a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .copyright a { min-height: 44px; }
.contact-cards .whatsapp-icon { margin-right: 6px; }

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.whatsapp-icon,
.site-footer .whatsapp-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin: 0;
  flex: 0 0 auto;
  vertical-align: text-bottom;
}

.button .whatsapp-icon {
  width: 20px;
  height: 20px;
}

.footer-address {
  font-weight: 800;
}

.footer-map {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: #8ad9df;
  font-weight: 700;
  text-underline-offset: 4px;
}

.copyright {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.legal-page {
  background: var(--wash);
}

.legal-text {
  max-width: 860px;
  padding: 0;
}

.legal-text h2 {
  margin-top: 28px;
  font-size: 1.28rem;
}

.legal-text h2:first-child {
  margin-top: 0;
}

@media (max-width: 1080px) {
  .brand img {
    width: 170px;
  }

  .site-nav a {
    padding-inline: 7px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1080px) {

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

  .header-inner {
    min-height: 70px;
    gap: 12px;
  }

  .brand { flex: 1; min-width: 0; }
  .header-call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; background: var(--teal); border-radius: 6px; font-weight: 700; text-decoration: none; }
  .nav-toggle { flex-shrink: 0; }

  .brand img {
    width: 174px;
  }

  .js .nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    display: block;
    background: var(--paper);
  }

  .site-nav {
    display: grid;
    padding: 16px 14px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--night);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  }

  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    display: none;
  }

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

  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; }

  .site-nav a {
    padding: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
  }

  .site-nav .nav-call {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 920px) {

  .hero {
    min-height: auto;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(13, 24, 31, 0.93) 0%, rgba(13, 24, 31, 0.76) 100%);
  }

  .hero-grid,
  .page-hero-grid,
  .content-grid,
  .two-col,
  .contact-grid,
  .footer-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 24px;
    padding: 36px 0;
  }

  h1,
  .page-hero h1,
  .contact-copy h1 {
    font-size: 2.25rem;
    line-height: 1.14;
  }

  .lead {
    font-size: 1.04rem;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .hero-panel {
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
  }

  .hero-panel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hero-panel div + div { margin: 0; padding: 0; border: 0; }
  .hero-panel div:nth-child(-n+2) { display: none; }
  .hero-panel dd { font-size: 0.94rem; font-weight: 600; }
  .hero-actions > :last-child, .cta-actions > :last-child { grid-column: 1 / -1; }
  .hero-actions { margin-top: 20px; }
  .cta-actions .button:first-child { font-size: 0.94rem; padding-inline: 8px; }
  h2 { font-size: 1.75rem; }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .quick-grid a,
  .quick-grid a:last-child {
    min-height: 72px;
    border-right: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 14px 8px;
    gap: 8px;
    font-size: 0.9rem;
  }

  .section,
  .contact-section {
    padding: 40px 0;
  }

  .page-hero,
  .page-hero.compact {
    padding: 32px 0;
  }

  .page-hero img {
    height: 190px;
  }

  .page-hero-grid { gap: 12px; }
  .two-col, .contact-grid, .content-grid { gap: 28px; }
  .section-head { margin-bottom: 24px; }
  .service-card h3 { min-height: 0; }

  .side-panel {
    position: static;
  }

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

  .wide-card > div {
    padding: 20px 0 0;
  }

  .image-grid,
  .mini-gallery,
  .payment-card {
    grid-template-columns: 1fr;
  }

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

  .product-gallery .image-tile img {
    height: auto;
  }

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

  .payment-card img {
    max-width: 220px;
  }

  .button {
    width: 100%;
  }
}

@media (min-width: 561px) and (max-width: 920px) {
  .home-services .service-card img,
  .image-grid:not(.product-gallery) .image-tile img {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 560px) {
  .page-hero.photo-hero {
    padding: 0;
    overflow: hidden;
  }

  .photo-hero .page-hero-grid {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 380px;
    padding-top: 140px;
    gap: 0;
  }

  .photo-hero .page-hero-grid > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
  }

  .photo-hero .page-hero-grid > .boiler-photo {
    object-position: 88% center;
  }

  .photo-hero .page-hero-grid > div {
    position: relative;
    isolation: isolate;
    align-self: end;
    padding: 24px 16px 28px;
  }

  .photo-hero .page-hero-grid > div::before {
    content: "";
    position: absolute;
    inset: -140px 0 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(16, 25, 32, 0.58) 140px, rgba(16, 25, 32, 0.68));
  }

  .photo-hero h1,
  .photo-hero .lead { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }

  .photo-hero h1 { margin-bottom: 12px; }
  .photo-hero .lead { margin-bottom: 0; color: var(--paper); }

  .brand img {
    width: 160px;
  }

  .contact-form,
  .service-card div {
    padding: 20px;
  }

  .home-services .service-grid,
  .home-interventions .image-grid {
    gap: 12px;
  }

  .home-services .service-card,
  .home-interventions .image-tile {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
  }

  .home-services .service-card img,
  .home-interventions .image-tile img {
    width: 96px;
    height: 112px;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    align-self: center;
    background: var(--wash);
  }

  .home-services .service-card > div { min-width: 0; }
  .home-interventions .image-link { align-self: center; }

  .home-services .service-card div {
    padding: 14px;
  }

  .home-services .service-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.12;
  }

  .home-services .service-card p {
    margin-bottom: 6px;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .home-services .text-link {
    margin-top: 0;
    font-size: 0.94rem;
  }

  .home-interventions .image-tile figcaption {
    display: flex;
    align-items: center;
    padding: 12px;
    font-size: 1rem;
    line-height: 1.4;
    align-self: center;
  }

  .product-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-gallery .image-tile img {
    height: auto;
  }

  .scroll-gallery {
    display: flex;
    gap: 12px;
    padding: 0 0 8px;
  }

  .scroll-gallery .image-tile {
    flex-basis: 90%;
    max-width: 90%;
  }

  .product-gallery .image-tile figcaption {
    padding: 10px;
    font-size: 0.94rem;
  }

  .testimonial-band {
    padding: 36px 0;
  }
}

@media (max-width: 359px) {
  .quick-grid svg { display: none; }
  .photo-hero h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
