:root {
  --ink: #1a1a1a;
  --muted: #626a6d;
  --paper: #ffffff;
  --soft: #f2f7f7;
  --teal: #23a6ad;
  --teal-dark: #15777d;
  --line: rgba(26, 26, 26, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 84px;
  padding: 16px clamp(20px, 5vw, 76px);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.main-nav {
  align-items: center;
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--teal);
}

.menu-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.menu-button span {
  background: var(--ink);
  height: 2px;
  width: 25px;
}

.hero-slider {
  background: #3c3c3b;
  color: #ffffff;
  min-height: clamp(500px, calc(100vh - 284px), 760px);
  overflow: hidden;
  position: relative;
}

.hero-slide {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22)),
    var(--hero-image) center / contain no-repeat;
  display: grid;
  inset: 0;
  opacity: 0;
  padding: clamp(90px, 12vw, 170px) clamp(22px, 7vw, 96px);
  position: absolute;
  transform: scale(1.025);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-content {
  max-width: 840px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease 180ms, transform 720ms ease 180ms;
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-panel {
  align-items: end;
  bottom: clamp(24px, 5vw, 54px);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: clamp(22px, 7vw, 96px);
  position: absolute;
  right: clamp(22px, 7vw, 96px);
  z-index: 3;
}

.hero-panel .contact-actions {
  grid-auto-flow: column;
  margin-top: 0;
}

.hero-dots {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 52px;
}

.hero-dots button {
  background: rgba(255, 255, 255, 0.46);
  border: 0;
  cursor: pointer;
  height: 10px;
  padding: 0;
  transition: background 180ms ease, transform 180ms ease, width 180ms ease;
  width: 28px;
}

.hero-dots button.active,
.hero-dots button:hover {
  background: #ffffff;
  transform: translateY(-1px);
  width: 42px;
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero-slider .eyebrow {
  color: #ffffff;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(48px, 8vw, 106px);
}

h2 {
  font-size: clamp(34px, 5vw, 70px);
}

h3 {
  font-size: clamp(22px, 3vw, 34px);
}

p,
li {
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.7;
}

.hero-slider p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 650px;
}

.section {
  padding: clamp(70px, 10vw, 120px) clamp(22px, 6vw, 90px);
}

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

.section.teal-band {
  background: #00917e;
  padding-block: clamp(28px, 5vw, 72px);
}

.wrap {
  margin: 0 auto;
  max-width: 1160px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.text-panel {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  padding: clamp(28px, 5vw, 56px);
}

.text-panel h2 {
  font-size: clamp(34px, 4vw, 58px);
  margin-bottom: 24px;
}

.text-panel h3 {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 6px;
}

.text-panel p {
  margin: 0 0 22px;
}

.text-panel p:last-child {
  margin-bottom: 0;
}

.intro-panel p {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
}

.offer-list {
  display: grid;
  gap: 28px;
}

.vaillant-panel h2 {
  text-transform: uppercase;
}

.service-line {
  color: var(--teal);
  font-weight: 700;
}

.home-contact-panel {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
}

.about-hero-panel {
  background: #ffffff;
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1fr;
  overflow: hidden;
}

.about-hero-panel img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  width: 100%;
}

.about-hero-panel > div {
  align-self: center;
  padding: clamp(34px, 5vw, 64px);
}

.about-hero-panel h2 {
  font-size: clamp(36px, 5vw, 68px);
}

.about-info-grid,
.locations-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.locations-grid section {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 34px);
}

.locations-grid h3 {
  margin-bottom: 16px;
}

.locations-grid a,
.text-panel a {
  color: var(--teal-dark);
  font-weight: 700;
}

.services-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.service-tile {
  align-items: center;
  aspect-ratio: 1.65 / 1;
  border-radius: 4px;
  color: #ffffff;
  display: grid;
  isolation: isolate;
  justify-items: center;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.service-tile::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.service-tile img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1.02);
  transition: transform 320ms ease;
  width: 100%;
  z-index: -2;
}

.service-tile:hover img {
  transform: scale(1.08);
}

.service-tile span {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  padding: 24px;
}

.service-detail-hero {
  background: #ffffff;
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1fr;
  overflow: hidden;
}

.service-detail-hero img {
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  width: 100%;
}

.service-detail-hero > div {
  align-self: center;
  padding: clamp(34px, 5vw, 64px);
}

.service-detail-hero h2 {
  font-size: clamp(38px, 5vw, 72px);
}

.service-copy ul {
  color: var(--muted);
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding-left: 1.2em;
}

.service-copy strong {
  color: var(--ink);
  font-weight: 800;
}

.service-copy-title {
  font-size: clamp(30px, 4vw, 54px);
  margin-bottom: 22px;
}

.service-copy-image {
  border-radius: 4px;
  margin-bottom: 34px;
  width: 100%;
}

.service-gallery {
  display: grid;
  gap: 24px;
  margin: 30px 0;
}

.service-gallery img {
  border-radius: 4px;
  width: 100%;
}

.service-actions {
  grid-auto-flow: column;
  justify-content: start;
}

.stores-intro h2 {
  max-width: 760px;
}

.stores-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.store-card {
  background: #ffffff;
  border-radius: 4px;
  display: grid;
  gap: 30px;
  min-height: 320px;
  padding: clamp(28px, 4vw, 46px);
}

.store-card h2 {
  font-size: clamp(30px, 4vw, 50px);
  margin-bottom: 22px;
}

.store-card p {
  margin: 0 0 16px;
}

.store-card a {
  color: var(--teal-dark);
  font-weight: 700;
}

.store-actions {
  align-self: end;
  grid-auto-flow: column;
  justify-content: start;
}

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

.photo-card {
  background: #ffffff;
  border: 0;
  border-radius: 4px;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
}

.photo-card img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
  width: 100%;
}

.photo-card:hover img {
  filter: contrast(1.04);
  transform: scale(1.05);
}

.gallery-modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  inset: 0;
  opacity: 0;
  padding: clamp(18px, 4vw, 42px);
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 60;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal figure {
  margin: 0;
  text-align: center;
}

.gallery-modal img {
  border-radius: 4px;
  max-height: 82vh;
  object-fit: contain;
  width: 100%;
}

.gallery-modal figcaption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin-top: 14px;
}

.gallery-close,
.gallery-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  transition: background 180ms ease;
}

.gallery-close:hover,
.gallery-arrow:hover {
  background: rgba(35, 166, 173, 0.74);
}

.gallery-close {
  border-radius: 50%;
  font-size: 34px;
  height: 48px;
  line-height: 1;
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  top: clamp(16px, 3vw, 34px);
  width: 48px;
}

.gallery-arrow {
  border-radius: 50%;
  font-size: 54px;
  height: 58px;
  justify-self: center;
  line-height: 1;
  width: 58px;
}

body.modal-open {
  overflow: hidden;
}

.links-panel h2 {
  text-transform: uppercase;
}

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

.links-list a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 20px clamp(18px, 3vw, 30px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.links-list a:hover {
  background: var(--soft);
  border-color: rgba(35, 166, 173, 0.55);
  transform: translateY(-1px);
}

.links-list span {
  color: var(--ink);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  text-transform: uppercase;
}

.links-list strong {
  color: var(--teal-dark);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facebook-panel {
  background: rgba(35, 166, 173, 0.82);
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}

.facebook-card {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  display: grid;
  gap: 12px;
  justify-items: center;
  min-height: 250px;
  padding: 36px 24px;
  text-align: center;
  transition: background 180ms ease, transform 180ms ease;
}

.facebook-card:nth-child(even) {
  border-right: 0;
}

.facebook-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.facebook-card:hover {
  background: rgba(21, 119, 125, 0.5);
}

.facebook-icon {
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  color: var(--teal);
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 82px;
  font-weight: 800;
  height: 112px;
  justify-content: center;
  line-height: 1;
  width: 112px;
}

.facebook-card strong {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
}

.facebook-card span:last-child {
  font-size: clamp(19px, 2vw, 28px);
}

.grid-2,
.contact-grid {
  display: grid;
  gap: clamp(32px, 6vw, 84px);
  grid-template-columns: 1fr 1fr;
}

.image-frame {
  background: var(--teal);
  min-height: 430px;
  overflow: hidden;
}

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

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 28px;
}

.contact-actions {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.button {
  align-items: center;
  background: var(--teal);
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  text-transform: uppercase;
}

.button.dark {
  background: #3c3c3b;
}

.banner {
  background: #3c3c3b;
  color: #ffffff;
  padding: clamp(42px, 6vw, 72px) clamp(22px, 6vw, 90px);
}

.banner p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  background: #3c3c3b;
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1fr;
  padding: 42px clamp(22px, 6vw, 90px);
}

.site-footer img {
  filter: brightness(0) invert(1);
  max-height: 50px;
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  display: block;
}

.site-footer strong {
  color: #ffffff;
}

.install-prompt {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 4px;
  bottom: max(18px, env(safe-area-inset-bottom));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto auto;
  left: clamp(16px, 4vw, 34px);
  padding: 16px;
  position: fixed;
  right: clamp(16px, 4vw, 34px);
  z-index: 70;
}

.install-prompt[hidden] {
  display: none;
}

.install-prompt strong,
.install-prompt span {
  display: block;
}

.install-prompt strong {
  color: var(--ink);
  font-size: 17px;
}

.install-prompt span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.install-action,
.install-close {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
}

.install-action {
  background: var(--teal);
  color: #ffffff;
  padding: 13px 18px;
  text-transform: uppercase;
}

.install-close {
  align-items: center;
  background: #f1f4f4;
  color: var(--ink);
  display: inline-flex;
  font-size: 24px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

@media (max-width: 860px) {
  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: grid;
    left: 0;
    opacity: 0;
    padding: 28px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 84px;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.menu-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .grid-2,
  .contact-grid,
  .home-contact-panel,
  .about-hero-panel,
  .about-info-grid,
  .locations-grid,
  .services-grid,
  .stores-grid,
  .photo-grid,
  .service-detail-hero,
  .facebook-panel,
  .cards,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: clamp(500px, calc(100svh - 210px), 680px);
  }

  .hero-slide {
    align-items: start;
    padding-bottom: 285px;
    padding-top: clamp(22px, 5vw, 40px);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-panel {
    align-items: stretch;
    bottom: 24px;
    display: grid;
  }

  .hero-panel .contact-actions {
    grid-auto-flow: row;
  }

  .hero-dots {
    justify-content: center;
  }

  .service-actions {
    grid-auto-flow: row;
    justify-content: stretch;
  }

  .store-actions {
    grid-auto-flow: row;
    justify-content: stretch;
  }

  .gallery-modal {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 72px 12px 22px;
  }

  .gallery-arrow {
    font-size: 42px;
    height: 44px;
    width: 44px;
  }

  .install-prompt {
    grid-template-columns: 1fr auto;
  }

  .install-close {
    grid-column: 2;
    grid-row: 1;
  }

  .install-action {
    grid-column: 1 / -1;
  }

  .facebook-card,
  .facebook-card:nth-child(even),
  .facebook-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    border-right: 0;
  }

  .facebook-card:last-child {
    border-bottom: 0;
  }
}
