:root {
  color-scheme: light;
  --paper: #f5f7f5;
  --white: #fff;
  --ink: #101c22;
  --muted: #44565e;
  --line: #cbd6d6;
  --cyan: #55d9fa;
  --blue: #006c85;
  --pale: #e4f4f6;
  --shell: 82rem;
  --gutter: clamp(1rem, 4vw, 3.75rem);
  --section-space: clamp(3.25rem, 7vw, 6.5rem);
  --panel-space: clamp(1.25rem, 4vw, 3.75rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
body > main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
figure, p, dl, dd, address { margin: 0; }
address { font-style: normal; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #0082a2; outline-offset: 5px; }
:is(.site-header, .hero, .location-band, .address-panel, .treatment-dark) :focus-visible { outline-color: var(--cyan); }
[id] { scroll-margin-top: 1.5rem; }
::selection { color: var(--ink); background: var(--cyan); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-weight: 800; line-height: 1; letter-spacing: -.032em; }
h1 { font-size: clamp(3.125rem, 7.2vw, 7rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 4.4rem); }
h3 { font-weight: 750; line-height: 1.18; }

.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { margin-block-start: var(--section-space); }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 5;
  inset: .65rem auto auto .65rem;
  padding: .65rem 1rem;
  background: var(--white);
}

.site-header {
  --header-rule: #3b454a;
  background: #000;
  color: var(--white);
  border-bottom: 1px solid var(--header-rule);
}
.header-inner {
  min-height: 5.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.brand { position: relative; display: block; width: clamp(7.25rem, 11vw, 9rem); }
/* Clip the black banner and adapt the wordmark’s white background separately. */
.brand img { clip-path: inset(8.9% 0 55.4%); }
.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/lave_auto_logo.png") center / contain no-repeat;
  clip-path: inset(49% 0 0);
  filter: invert(1) hue-rotate(180deg) brightness(1.15);
  pointer-events: none;
}
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.9rem); align-self: stretch; }
.main-nav a {
  display: grid;
  align-items: center;
  position: relative;
  padding-block: .35rem;
  font-size: .95rem;
  font-weight: 680;
  color: #c7d1d6;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current] { color: var(--white); }
.main-nav a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--cyan);
}
.phone-link { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.phone-link::before {
  content: "";
  flex: 0 0 1em;
  height: 1em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.3 3H5a2 2 0 0 0-2 2.2A18 18 0 0 0 18.8 21a2 2 0 0 0 2.2-2v-2.3a1 1 0 0 0-.7-1l-3.9-1.3a1 1 0 0 0-1 .2l-1.6 1.6a14 14 0 0 1-6-6l1.6-1.6a1 1 0 0 0 .2-1L8.3 3.7a1 1 0 0 0-1-.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.header-phone {
  justify-self: end;
  padding: .58rem .9rem;
  border: 1px solid var(--header-rule);
  font-size: .92rem;
  font-weight: 760;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.header-phone:hover { background: var(--ink); border-color: var(--cyan); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .62rem;
  color: var(--blue);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: 0 0 .43rem;
  height: .76rem;
  background: currentColor;
  transform: skewX(-20deg);
  margin-inline: .12rem;
}
.eyebrow + :is(h1, h2) { margin-block-start: .85rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: .68rem 1.15rem;
  border: 1px solid transparent;
  font-weight: 760;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-bright { background: var(--cyan); color: var(--ink); }
.button-bright:hover { background: #a4eeff; }
.button-outline { border-color: #839a9f; color: var(--white); background: transparent; }
.button-outline:hover { background: #273c46; border-color: var(--white); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #244451; }
.button-light { border-color: var(--line); background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--pale); border-color: var(--blue); }
.text-button {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .22em;
  cursor: pointer;
}
.text-button:hover { text-decoration-thickness: .13em; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(29rem, 41vw, 36.5rem);
  margin-top: clamp(.8rem, 2vw, 1.6rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero-media { position: absolute; z-index: -1; inset: 0 0 0 33%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 79% 50%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0 0 0 -1px;
  background: linear-gradient(90deg, var(--ink), rgba(16, 28, 34, .72) 11%, transparent 42%);
}
.hero::after {
  content: "";
  position: absolute;
  width: clamp(2rem, 5vw, 4rem);
  height: .52rem;
  bottom: 0;
  right: 1rem;
  background: var(--cyan);
  transform: skewX(-24deg);
}
.hero-content { width: 58%; padding: var(--panel-space); }
:is(.hero, .location-band, .address-panel) .eyebrow { color: var(--cyan); }
.hero h1 { font-size: clamp(3.25rem, 6.65vw, 6.6rem); }
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero-intro { max-width: 29rem; margin-block: 1.25rem 1.8rem; color: #e0eaed; font-size: clamp(1rem, 1.5vw, 1.2rem); }

.facts {
  display: grid;
  grid-template-columns: .9fr .9fr 1.4fr;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--white);
}
.facts > div { display: flex; flex-direction: column-reverse; justify-content: center; gap: .3rem; padding: 1.35rem clamp(1rem, 3vw, 2.25rem); }
.facts > div + div { border-inline-start: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { font-size: clamp(1.75rem, 3.1vw, 2.65rem); font-weight: 790; line-height: 1.15; letter-spacing: -.044em; }
.facts dd span { color: var(--blue); }
.facts dd a { font-size: .7em; letter-spacing: -.04em; text-decoration-thickness: 1px; text-decoration-color: var(--blue); }

.section-heading { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem 2.5rem; align-items: end; }
.section-heading > p, .page-intro > p { max-width: 38rem; color: var(--muted); font-size: 1.1rem; }
.service-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.service-links a { display: block; padding: clamp(1.15rem, 3vw, 2.15rem); text-decoration: none; }
.service-links a + a { border-inline-start: 1px solid var(--line); }
.service-links a:hover { background: var(--pale); }
.service-links h3 { margin-block-end: .5rem; font-size: clamp(1.25rem, 2.2vw, 1.65rem); letter-spacing: -.035em; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.service-links p { color: var(--muted); }

.quality { display: grid; grid-template-columns: 1.16fr 1fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: center; padding: var(--panel-space); background: var(--pale); }
.quality-copy > p:not(.eyebrow) { margin-block: 1rem; }
.quality-copy > .button { margin-block-start: 1.25rem; }
.check-list { list-style: none; margin: 1.15rem 0 0; padding: 0; }
.check-list li { position: relative; padding: .52rem 0 .52rem 1.4rem; border-bottom: 1px solid #b9d5d9; }
.check-list li::before {
  content: "";
  position: absolute;
  top: 1em;
  left: .12em;
  width: .52em;
  height: .3em;
  border: solid var(--blue);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.quality-photo { background: var(--white); padding: .625rem .625rem 0; }
.quality-photo img { width: 100%; aspect-ratio: 270 / 146; object-fit: cover; }
.quality-photo figcaption { padding: .65rem .25rem; color: var(--muted); font-size: .9rem; }
.photo-series { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-series img { width: 100%; aspect-ratio: 2.25; object-fit: cover; background: var(--ink); }
.photo-series figcaption { padding-block: .65rem; font-weight: 700; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(11rem, 28vw, 23rem);
  gap: .75rem;
}
.gallery-tile { display: block; background: var(--ink); cursor: zoom-in; }
.gallery-tile:hover { outline: 3px solid var(--cyan); outline-offset: -3px; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-feature { grid-column: span 2; }
.nano-gallery .gallery-grid { margin-block-start: 1.75rem; }
.nano-gallery .gallery-feature img { object-position: center 62%; }

.gallery-viewer {
  position: fixed;
  inset: 0;
  width: min(63rem, calc(100% - 1.5rem));
  height: min(54rem, calc(100dvh - 1.5rem));
  max-width: none;
  max-height: none;
  padding: .75rem;
  border: 1px solid #51616a;
  background: var(--ink);
  color: var(--white);
}
.gallery-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .75rem; }
.gallery-viewer::backdrop { background: #101c22e8; }
.gallery-viewer :focus-visible { outline-color: var(--cyan); }
.gallery-viewer-header, .gallery-viewer-controls { display: flex; align-items: center; gap: .65rem; }
.gallery-viewer-header { justify-content: space-between; }
.gallery-viewer-controls { justify-content: center; }
.gallery-viewer .button { min-height: 2.75rem; }
.gallery-position { color: #e0eaed; font-variant-numeric: tabular-nums; }
.gallery-full-photo { width: 100%; height: 100%; min-height: 0; object-fit: scale-down; }
body:has(.gallery-viewer[open]) { overflow: hidden; }

.location-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: var(--panel-space);
  background: var(--ink);
  color: var(--white);
}
.location-band address { margin-top: .9rem; color: #e0eaed; }
.location-band address span { padding-inline: .22rem; color: var(--cyan); }

.page-intro {
  display: grid;
  grid-template-columns: 1fr .78fr;
  align-items: end;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 6.5vw, 5.5rem) clamp(1.75rem, 4vw, 3rem);
}
.page-intro h1 span { color: var(--blue); }
.page-intro > p { padding-block-end: .3rem; }
.contact-intro { grid-template-columns: 1.25fr .75fr; }
.wash-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.wash-photos img { width: 100%; aspect-ratio: 193 / 104; object-fit: cover; background: var(--pale); }
.section-nav { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; margin-top: 1rem; border-bottom: 1px solid var(--line); }
.section-nav a { display: flex; align-items: center; min-height: 2.75rem; font-weight: 720; color: var(--blue); }
.wash { display: grid; grid-template-columns: minmax(13rem, .75fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 5vw, 4rem); }
.wash-copy > p:not(.eyebrow) { margin: 1rem 0 1.35rem; color: var(--muted); }
.wash-matrix { align-self: start; border: 1px solid var(--line); background: var(--white); }
.wash-matrix table { width: 100%; table-layout: fixed; border-collapse: collapse; line-height: 1.4; }
.vehicle-column { width: 40%; }
.wash-matrix :is(th, td) { border-bottom: 1px solid var(--line); padding: .75rem .32rem; text-align: center; }
.wash-matrix th:first-child { padding-inline-start: clamp(.5rem, 2vw, 1.4rem); text-align: left; }
.wash-matrix thead { background: var(--pale); }
.wash-matrix tbody th { font-weight: 630; }
.wash-matrix td { color: var(--blue); font-weight: 850; }
.wash-matrix > p { padding: .75rem clamp(.5rem, 2vw, 1.4rem); color: var(--muted); }
.wash-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  align-items: center;
  gap: clamp(1.25rem, 5vw, 4rem);
  padding: var(--panel-space);
  background: var(--pale);
}
.wash-video p { max-width: 32rem; margin-top: 1rem; color: var(--muted); }
.wash-video video { display: block; width: 100%; max-width: 20rem; height: auto; justify-self: center; background: var(--ink); }
.treatment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.treatment-panel { padding: var(--panel-space); border: 1px solid var(--line); background: var(--white); }
.treatment-panel h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); }
.treatment-panel > p { margin-block: .8rem; }
.treatment-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.treatment-dark p { color: #e0eaed; }
.treatment-dark .button { margin-block-start: .55rem; }
.ruled-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ruled-list li { border-top: 1px solid var(--line); padding-block: .6rem; }
.treatment-dark .ruled-list li { border-color: #51616a; }
.detailing .treatment-grid { margin-block-start: 1.75rem; }
.detailing h3 { font-size: clamp(1.35rem, 2.5vw, 1.95rem); letter-spacing: -.03em; }
.service-price { color: var(--blue); font-weight: 740; }
.nano-photo-link { display: flex; align-items: center; gap: .85rem; max-width: 22rem; color: var(--blue); font-weight: 720; }
.nano-photo-link img { width: 50%; flex: none; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.team-card h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.team-card .team-members { margin: 1rem 0 0; padding: 0; list-style: none; font-size: 1.15rem; font-weight: 750; color: var(--blue); }
.team-owner .team-members { color: var(--cyan); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 1rem; }
.address-panel { padding: var(--panel-space); background: var(--ink); color: var(--white); }
.address-panel h2 { font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1.04; }
.address-panel address { margin-block: .65rem 1.4rem; color: #e0eaed; }
.address-panel h3 { font-size: .94rem; font-weight: 650; color: #e0eaed; }
.contact-phone { color: var(--cyan); font-size: clamp(1.3rem, 2.7vw, 2rem); font-weight: 740; }
.address-panel .actions { margin-block-start: 1.4rem; }
.map-panel { display: grid; grid-template-rows: auto 1fr; min-height: 20rem; border: 1px solid var(--line); background: var(--white); }
.map-panel h2 { padding: .95rem 1.25rem; font-size: 1.1rem; letter-spacing: -.025em; }
.map-panel iframe { width: 100%; height: 100%; min-height: 15rem; border: 0; }

.site-footer { margin-top: var(--section-space); padding-block: 1.3rem; border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .55rem 1.5rem; color: var(--muted); font-size: .875rem; }
.footer-brand { color: var(--ink); font-weight: 760; font-size: 1rem; }
.cookie-panel { position: fixed; z-index: 3; right: 1rem; bottom: 1rem; width: min(23rem, calc(100% - 2rem)); border: 1px solid var(--line); padding: 1.15rem; background: var(--white); box-shadow: 0 .45rem 1.7rem #101c2233; }
.cookie-panel h2 { font-size: 1.2rem; letter-spacing: -.024em; }
.cookie-panel p { margin-block: .5rem .8rem; color: var(--muted); }
.cookie-panel .button { min-height: 2.75rem; }

@media (max-width: 950px) {
  .facts { grid-template-columns: .9fr .95fr 1.45fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(10rem, 32vw, 19rem); }
  .service-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-links a:nth-child(odd) { border-inline-start: 0; }
  .service-links a:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (min-width: 1100px) {
  .nano-gallery .gallery-grid { grid-auto-rows: clamp(14rem, 25vw, 20rem); }
}

@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .hero-content { width: auto; padding-bottom: 1.4rem; }
  .hero-media { position: relative; z-index: auto; inset: auto; aspect-ratio: 3 / 2; }
  .hero-media img { object-position: center; }
  .hero-media::after { background: linear-gradient(180deg, var(--ink), transparent 15%); }
  .hero-intro { margin-block: 1rem 1.25rem; }
}

@media (max-width: 880px) {
  .header-inner { grid-template-columns: 1fr 1fr; gap: 0 1rem; min-height: auto; padding-block-start: .25rem; }
  .header-phone { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; flex-wrap: wrap; gap: 0 .55rem; border-top: 1px solid var(--header-rule); }
  .main-nav a { min-height: 2.8rem; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2.65rem, 12.3vw, 5.9rem); }
  .section-heading, .quality, .page-intro, .wash, .wash-video, .contact-grid { grid-template-columns: 1fr; }
  .wash-copy > p:not(.eyebrow) { max-width: 38rem; }
  .desktop-break { display: none; }
  .page-intro > p { font-size: 1.04rem; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 530px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 52vw; gap: .5rem; }
  .hero-content .actions > a { min-height: 2.85rem; padding-inline: .85rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding-block: .85rem; }
  .facts > div:last-child { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line); }
  .facts dt { line-height: 1.35; }
  .service-links, .photo-series, .treatment-grid { grid-template-columns: 1fr; }
  .service-links a + a { border-inline-start: 0; border-top: 1px solid var(--line); }
  .section-heading br, .quality-copy br { display: none; }
  .photo-series { gap: .85rem; }
  .photo-series img { aspect-ratio: 2.65; }
  .wash-photos { grid-template-columns: repeat(2, 1fr); }
  .wash-matrix table { font-size: .875rem; }
  .vehicle-column { width: 34%; }
  .wash-matrix :is(th, td) { padding-inline: .1rem; }
  .wash-matrix thead th { letter-spacing: -.025em; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 400px) {
  .main-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); justify-items: center; }
  .main-nav a { grid-column: span 2; }
  .main-nav a:nth-last-child(-n+2) { grid-column: span 3; }
}
