:root {
  --navy: #102746;
  --ice: #eff8fe;
  --arctic-border: #cfe3f1;
  --arctic-accent: #00a8f0;
}

.header .header-box {
  width: min(1100px, calc(100% - 32px));
  border-color: var(--arctic-border);
}

.header .header-area {
  display: flex;
  justify-content: space-between;
  gap: .25rem 1rem;
  flex-wrap: wrap;
  background: #e2f4ff;
  color: var(--navy);
  font-size: .85rem;
}

.header .header-area:hover,
.header .header-area a { text-decoration: none; }
.header .header-area a:hover { text-decoration: underline; }
.header .logo { width: clamp(130px, 17vw, 175px); }
.header .header-quote { background: var(--navy); }
.header .mobile-menu-label { display: none; }
.header .nav > a, .header .flooring-nav > a { font-size: .95rem; white-space: nowrap; }

.header .flooring-nav .service-menu summary {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  list-style: none;
}

.header .service-menu summary::-webkit-details-marker { display: none; }
.header .flooring-nav .service-menu summary::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.header .flooring-nav .service-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.header .flooring-nav .service-menu > div {
  min-width: 190px;
  border-color: var(--arctic-border);
  background: #f8fcff;
}

.cleaning-hero {
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  min-height: 470px;
  --hero-surface: #f4fbff;
  background: var(--hero-surface);
  overflow: hidden;
}

.cleaning-hero > img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.cleaning-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #fff, #ffffffb3 20px, transparent 76px),
    linear-gradient(to right, var(--hero-surface) 29%, #f4fbfff5 38%, #f4fbffd1 48%, #f4fbff70 59%, #f4fbff26 70%, transparent 80%);
  z-index: -1;
}

.cleaning-hero-copy { padding-block: 3rem; }
.cleaning-hero h1 {
  max-width: 22ch;
  color: var(--navy);
  font: 800 clamp(2.5rem, 5vw, 4.7rem)/1.04 Arial, sans-serif;
  letter-spacing: -.045em;
  text-transform: none;
}
.cleaning-hero h1::after {
  content: "";
  display: block;
  width: 5rem;
  height: .32rem;
  margin-top: 1rem;
  border-radius: 100%;
  background: var(--arctic-accent);
}
.cleaning-hero p { max-width: 35ch; font-size: 1.12rem; }
.cleaning-hero .button, .project-quote .button { min-height: 48px; text-align: center; }
main .service-card { border-radius: 16px; border-color: var(--arctic-border); }
main .hero:not(.cleaning-hero), main .gallery, main .ice { background: var(--ice); }

.project-quote { padding: 2rem 0; background: #e2f4ff; }
.project-quote-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.project-quote h2 { margin: 0; font: 800 clamp(1.6rem, 3vw, 2.35rem)/1.12 Arial, sans-serif; text-transform: none; }

/* Tapered section lines follow the Arctic Flooring divider pattern. */
.section-divider {
  position: relative;
  height: clamp(9px, 1.4vw, 18px);
  pointer-events: none;
}

.section-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #b9dff4;
  clip-path: polygon(0 0, 100% calc(100% - 2px), 100% 100%, 0 2px);
}

.section-divider:nth-child(even of .section-divider)::after { transform: scaleX(-1); }

.footer {
  position: relative;
  background: var(--navy);
  border-top: 0;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--arctic-accent);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
  pointer-events: none;
}
.footer .footer-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ffffff40;
}
.footer .footer-intro p { max-width: 40ch; font-size: 1.05rem; margin: 0; }
.footer .footer-intro .van { width: min(100%, 420px); max-width: 100%; margin: 0 0 0 auto; }
.footer .footer-columns { grid-template-columns: 1fr 1.35fr 1fr; gap: 1.5rem; }
.footer .footer-columns > div { min-width: 0; }
.footer .footer-legal { border-top: 1px solid #ffffff40; margin-top: 1.5rem; padding-top: 1rem; }
.footer .footer-legal p { margin: 0; }

@media (max-width: 760px) {
  .header .header-box { width: calc(100% - 16px); }
  .header .header-area {
    padding: 6px 10px;
    font-size: clamp(.72rem, 2.75vw, .85rem);
    gap: 4px 8px;
  }
  .header .header-area a[href^="tel:"] { white-space: nowrap; }
  .header .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 48px;
    grid-template-areas: "brand quote menu" "navigation navigation navigation";
    gap: 0 8px;
    padding: 6px 8px;
  }
  .header .bar > a:first-child {
    grid-area: brand;
    display: flex;
    align-items: center;
    min-height: 48px;
  }
  .header .logo { width: min(100%, 155px); height: auto; }
  .header .bar .mobile-nav-toggle { grid-area: menu; width: 48px; height: 48px; }
  .header .mobile-nav-toggle[aria-expanded="true"] span {
    position: relative;
    background: transparent;
    box-shadow: none;
  }
  .header .mobile-nav-toggle[aria-expanded="true"] span::before,
  .header .mobile-nav-toggle[aria-expanded="true"] span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    transform: rotate(45deg);
  }
  .header .mobile-nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }
  .header .bar .nav {
    grid-area: navigation;
    max-height: min(60dvh, 28rem);
    margin-top: 6px;
    overscroll-behavior: contain;
  }
  .header .header-quote { grid-area: quote; display: grid; place-items: center; min-height: 48px; }
  .header .bar .nav > a {
    display: flex;
    align-items: center;
    padding-inline: 14px;
    min-height: 52px;
  }
  .header .bar .flooring-nav,
  .header .bar .flooring-nav .service-menu { display: block; }
  .header .bar .flooring-nav > a { display: none; }
  .header .bar .flooring-nav .service-menu summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 52px;
    padding-inline: 14px;
  }
  .header .mobile-menu-label { display: inline; }
  .header .bar .flooring-nav .service-menu[open] summary { background: var(--navy); color: #fff; }
  .header .bar .flooring-nav .service-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: .5rem 1.25rem;
  }
  .cleaning-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .cleaning-hero::before {
    inset: auto 0 0;
    height: 48px;
    background: linear-gradient(to top, #fff, transparent);
    z-index: 0;
    pointer-events: none;
  }
  .cleaning-hero-copy { padding-block: 2rem 1.5rem; }
  .cleaning-hero h1 { font-size: clamp(2rem, 7.6vw, 3.2rem); }
  .cleaning-hero > img {
    position: static;
    width: 100%;
    height: clamp(190px, 48vw, 350px);
    mask-image: linear-gradient(to bottom, transparent, #000 32px);
  }
  .cleaning-hero .actions { display: grid; }
  .project-quote-inner { align-items: flex-start; flex-direction: column; }
  .footer .footer-intro, .footer .footer-columns { grid-template-columns: 1fr; }
  .footer .footer-intro .van { margin-inline: 0 auto; }
  .footer .footer-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
