/* Bay Cleaning & Moving — main styles
   Palette: deep bay ink, cool paper, mist, bay blue, and sponge yellow (from the logo). */

:root {
  --ink: #0f2e37;
  --ink-soft: #1d434e;
  --bay: #2b6a7c;
  --sponge: #f4c542;
  --sponge-deep: #e5b42a;
  --mist: #e6eeec;
  --paper: #fbfcfb;
  --white: #ffffff;
  --line: #cfdbd9;
  --muted: #4b6168;
  --on-ink: #e9f1f0;
  --on-ink-muted: #a9c0c2;
  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

:focus-visible {
  outline: 3px solid var(--bay);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--sponge);
  color: var(--ink);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.button:hover { background: var(--sponge-deep); }
.button:active { box-shadow: inset 0 2px 0 rgb(15 46 55 / .15); }

.button-small { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.text-link {
  display: inline-block;
  font-weight: 650;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sponge);
  text-underline-offset: 6px;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.text-link:hover { text-decoration-color: var(--ink); }

.call-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  text-decoration: none;
}
.call-link svg { width: 18px; height: 18px; }
.call-link:hover { color: var(--bay); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(251 252 251 / .92);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgb(15 46 55 / .08);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo lockup: solid truck mark + two-tier wordmark.
   "bay" is the anchor; the descriptor sits on a hairline rule beneath it. */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  text-decoration: none;
}
.brand-mark { width: 78px; aspect-ratio: 120 / 68; flex-shrink: 0; }
.brand-mark > img { width: 100%; height: auto; }
.brand-name {
  display: grid;
  font-size: 30px;
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.045em;
}
.brand-name > span {
  display: block;
  margin-top: 8px;
  padding-top: 5px;
  border-top: 1.5px solid currentColor;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

#navigation {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 550;
}
#navigation > a:not(.button) {
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
#navigation > a:not(.button):hover { border-bottom-color: var(--sponge); }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; }
.nav-phone svg { width: 16px; height: 16px; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(40px, 6vw, 84px); }

.hero-copy { display: grid; gap: 36px; }

h1 {
  margin: 0;
  font-size: clamp(52px, 8.6vw, 132px);
  font-weight: 750;
  line-height: .92;
  letter-spacing: -.045em;
}
h1 .line { display: block; white-space: nowrap; }

.hero-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 48px;
}

.hero-description {
  max-width: 46ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Location: where the business is based, stated up front. */
.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
}
.hero-location svg { width: 18px; height: 18px; color: var(--bay); }

.contact-copy > .contact-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -8px 0 32px;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}
.contact-area svg { width: 22px; height: 22px; color: var(--sponge); margin-inline: 12px; }
.contact-area small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-ink-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
}

.hero-visual {
  margin: clamp(36px, 5vw, 64px) 0 0;
  border-radius: var(--radius-lg);
  overflow: clip; /* not scrollable; the photo is scaled for parallax */
  background: var(--mist);
  aspect-ratio: 21 / 9;
}
.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

/* "What we do": every service visible at a glance, each linking to its details.
   Static wrapped list by default (no JS, reduced motion, keyboard focus);
   app.js turns it into a continuously scrolling carousel (.is-animated). */
.service-index { margin-top: clamp(32px, 4vw, 48px); }
.service-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.service-index-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--muted);
  margin: 0;
}
.carousel-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.carousel-toggle:hover { border-color: var(--ink); }
.carousel-toggle svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.carousel-toggle .icon-play { display: none; }
.service-index.is-paused .carousel-toggle .icon-play { display: block; }
.service-index.is-paused .carousel-toggle .icon-pause { display: none; }

.service-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.service-index li { flex: none; }
.service-index li[aria-hidden="true"] { display: none; }
.service-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  height: 100%;
  padding: 10px 16px 10px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.service-index a:hover { border-color: var(--ink); }
.index-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mist);
  flex-shrink: 0;
}
.index-icon svg { width: 22px; height: 22px; }

/* Animated carousel: the list is duplicated by app.js, then slides left by
   exactly one copy (half its width plus half a gap) and loops seamlessly. */
@media (prefers-reduced-motion: no-preference) {
  .service-index.is-animated .carousel-toggle { display: inline-flex; }
  .service-index.is-animated .carousel-viewport {
    overflow: clip;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
  .service-index.is-animated ul {
    flex-wrap: nowrap;
    width: max-content;
    animation: service-marquee 42s linear infinite;
  }
  .service-index.is-animated li[aria-hidden="true"] { display: block; }
  /* Hover and the pause button hold it still. */
  .service-index.is-animated .carousel-viewport:hover ul,
  .service-index.is-paused ul { animation-play-state: paused; }
  /* Keyboard users get the full static list, so a focused link is never off-screen. */
  .service-index.is-animated:has(a:focus-visible) .carousel-viewport { -webkit-mask-image: none; mask-image: none; }
  .service-index.is-animated:has(a:focus-visible) ul { animation: none; flex-wrap: wrap; width: auto; }
  .service-index.is-animated:has(a:focus-visible) li[aria-hidden="true"] { display: none; }
}
@keyframes service-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 5px)); }
}

/* One orchestrated entrance: headline lines rise, photo unveils. */
@media (prefers-reduced-motion: no-preference) {
  h1 .line { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  h1 .line + .line { animation-delay: .12s; }
  .hero-side { animation: fade .8s .3s ease both; }
  .hero-visual { animation: unveil 1.1s .2s cubic-bezier(.65, 0, .25, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes unveil { from { clip-path: inset(18% 6% 0 6% round var(--radius-lg)); } to { clip-path: inset(0 0 0 0 round var(--radius-lg)); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 9vw, 128px); }

h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.section-heading h2 { max-width: 16ch; }
.section-heading > p { margin: 0; color: var(--muted); max-width: 42ch; }

/* ---------- Services ---------- */

.service-list { border-top: 2px solid var(--ink); }

.service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
}
.service-icon svg { width: 30px; height: 30px; stroke-width: 1.5; }

.service-main h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 6px 0 10px;
}
.service-main p { margin: 0; color: var(--muted); max-width: 44ch; }

.service-row ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 16px;
}
.service-row li {
  position: relative;
  padding: 3px 0 3px 20px;
}
.service-row li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .82em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sponge);
}

.floor-care-shortcut {
  text-decoration: underline;
  text-decoration-color: var(--bay);
  text-underline-offset: 4px;
}
.floor-care-shortcut:hover { color: var(--bay); }

.service-row .text-link { margin-top: 8px; white-space: nowrap; }

/* ---------- Airbnb & condos ---------- */

.airbnb-section { padding-bottom: clamp(72px, 9vw, 120px); }

.airbnb-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.airbnb-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: clip;
  background: var(--mist);
}
/* Shown until assets/airbnb-setup.jpg exists (the img removes itself if missing). */
.airbnb-visual-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--bay);
  background:
    radial-gradient(circle at 50% 50%, rgb(244 197 66 / .35) 0 22%, transparent 22.5%),
    var(--mist);
}
.airbnb-visual-fallback svg { width: 34%; height: auto; stroke-width: 1.1; }
.airbnb-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.airbnb-content h2 { max-width: 14ch; }
.airbnb-lead {
  margin: 22px 0 32px;
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
}

.airbnb-services article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.airbnb-services article:first-child { border-top: 2px solid var(--ink); }
.airbnb-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sponge);
  color: var(--ink);
}
.airbnb-icon svg { width: 26px; height: 26px; }
.airbnb-services h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 4px 0 8px;
}
.airbnb-services p { margin: 0 0 14px; color: var(--muted); max-width: 52ch; }

/* ---------- Approach ---------- */

.approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 8vw, 120px);
  padding-top: clamp(72px, 9vw, 128px);
}
.approach-intro h2 { max-width: 13ch; }
.approach-intro p { color: var(--muted); margin: 24px 0 28px; max-width: 42ch; }

.approach-points article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.approach-points article:first-child { padding-top: 0; }
.approach-points article:last-child { border-bottom: 0; }

.approach-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--sponge);
}
.approach-icon svg { width: 24px; height: 24px; }

.approach-points h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 2px 0 6px;
}
.approach-points p { margin: 0; color: var(--muted); }

/* ---------- Process (a true sequence, so it is numbered) ---------- */

.process {
  background: var(--mist);
  padding-block: clamp(72px, 9vw, 120px);
}

.process-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 48px;
  margin-bottom: 56px;
}
.process-heading p { margin: 0; font-size: 19px; color: var(--muted); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  counter-reset: none;
}
.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.step-no {
  display: block;
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--bay);
  margin-bottom: 22px;
}
.steps h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.steps p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(40px, 8vw, 120px);
}
.faq-intro h2 { max-width: 15ch; margin-bottom: 28px; }

.faqs { border-top: 2px solid var(--ink); }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 24px 56px 24px 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after,
.faqs summary::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease;
}
.faqs summary::before { transform: rotate(90deg); }
.faqs details[open] summary::before { transform: rotate(0deg); }
.faqs summary:hover { color: var(--bay); }
.faqs details p {
  margin: 0;
  padding: 0 56px 26px 0;
  color: var(--muted);
  max-width: 62ch;
}
.faqs details p a { font-weight: 650; }

/* ---------- Contact ---------- */

.contact-section {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(72px, 9vw, 120px);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.contact-copy h2 { color: var(--white); max-width: 11ch; }
.contact-copy > p { color: var(--on-ink-muted); margin: 24px 0 36px; max-width: 38ch; font-size: 19px; }

.contact-methods { display: grid; gap: 14px; }
.contact-methods > a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgb(233 241 240 / .18);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.contact-methods > a:hover { border-color: var(--sponge); background: rgb(255 255 255 / .04); }
.contact-methods small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-ink-muted);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sponge);
  color: var(--ink);
  flex-shrink: 0;
}
.contact-icon > svg { width: 20px; height: 20px; }
.email-text { font-size: 17px; overflow-wrap: anywhere; }
.contact-section :focus-visible { outline-color: var(--sponge); }

.quote-form {
  background: var(--white);
  color: var(--ink);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
}
.quote-form :focus-visible { outline-color: var(--bay); }
.quote-form h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 4px;
}
.form-intro { color: var(--muted); margin-bottom: 26px; font-size: 16px; }

.quote-form label {
  display: block;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 18px;
}
.optional { font-weight: 450; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease;
}
input, select { height: 50px; }
input:hover, select:hover, textarea:hover { border-color: #a9bcbc; }
input:focus, select:focus, textarea:focus { border-color: var(--bay); background: var(--white); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgb(43 106 124 / .25); outline-offset: 0; }
input::placeholder, textarea::placeholder { color: #7d9095; }
textarea { resize: vertical; min-height: 120px; }

.quote-form > .button { width: 100%; margin-top: 4px; }
.quote-form > .button:disabled { opacity: .7; cursor: wait; }
.quote-form > .hidden { display: none; }
.form-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.form-feedback {
  font-size: 15px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fdf3d3;
  border-left: 4px solid var(--sponge);
}
.form-feedback a { font-weight: 650; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  border-top: 1px solid rgb(233 241 240 / .12);
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-block: 56px 44px;
}
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-name > span { color: var(--on-ink-muted); border-top-color: rgb(233 241 240 / .35); }
.footer-brand p { margin: 18px 0 0; color: var(--on-ink-muted); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin: 0;
}
.footer-contact dt { font-size: 14px; color: var(--on-ink-muted); }
.footer-contact dd { margin: 2px 0 0; font-weight: 600; }
.footer-contact a { text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover { text-decoration: underline; text-decoration-color: var(--sponge); text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid rgb(233 241 240 / .12);
  font-size: 14px;
  color: var(--on-ink-muted);
}
.back-top { text-decoration: none; }
.back-top:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--sponge); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  #navigation { gap: 20px; }
  .nav-phone { display: none !important; }
  .service-row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); }
  .service-icon { width: 56px; height: 56px; }
  .service-row .text-link { grid-column: 2 / -1; margin-top: 0; }
}

/* Header switches to the menu button below 1000px (keep in sync with app.js). */
@media (max-width: 1000px) {
  .menu-toggle {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--white);
  }
  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .2s ease;
  }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  #navigation {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 32px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgb(15 46 55 / .25);
    font-size: 18px;
  }
  #navigation.open { display: flex; }
  #navigation > a:not(.button) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  #navigation > a:not(.button):hover { border-bottom-color: var(--line); color: var(--bay); }
  #navigation .nav-phone { display: flex !important; }
  #navigation .button { margin-top: 16px; min-height: 52px; font-size: 16px; }
}

@media (max-width: 860px) {
  .hero-copy,
  .section-heading,
  .approach,
  .faq-section,
  .contact-grid,
  .airbnb-grid { grid-template-columns: 1fr; }
  .hero-copy { gap: 28px; }
  .section-heading { gap: 18px; }
  .hero-visual { aspect-ratio: 16 / 10; }
  .airbnb-visual { aspect-ratio: 16 / 10; order: 2; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step-no { margin-bottom: 14px; }
}

@media (max-width: 620px) {
  :root { --header-h: 70px; --radius-lg: 20px; }
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }

  .brand { gap: 11px; }
  .brand-mark { width: 64px; }
  .brand-name { font-size: 26px; }
  .brand-name > span { font-size: 10px; margin-top: 6px; padding-top: 4px; }

  #navigation { padding-inline: 16px; }

  /* "Smooth moves." is ~7em wide; size it to always fit the phone width on one line. */
  h1 { font-size: min(72px, calc((100vw - 40px) / 7.1)); }
  .hero-description { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-actions { gap: 16px; }
  .hero-actions .call-link { padding: 6px 0; }
  .hero-visual { aspect-ratio: 4 / 3.4; margin-top: 32px; }
  .service-index a { padding-block: 8px; font-size: 15px; }
  .index-icon { width: 36px; height: 36px; }
  .airbnb-lead { font-size: 17px; }
  .airbnb-services article { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .airbnb-icon { width: 44px; height: 44px; }
  .airbnb-icon svg { width: 22px; height: 22px; }
  .airbnb-services h3 { font-size: 21px; }

  .service-row { grid-template-columns: 1fr; gap: 16px; padding-block: 30px; }
  .service-row .text-link { grid-column: auto; }
  .service-icon { width: 52px; height: 52px; }
  .service-main h3 { font-size: 25px; margin-top: 0; }
  .service-row ul { margin-top: 0; }

  .approach-points article { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .approach-icon { width: 44px; height: 44px; }

  .faqs summary { font-size: 17px; padding: 20px 44px 20px 0; }
  .faqs summary::after, .faqs summary::before { right: 6px; }
  .faqs details p { padding-right: 0; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-methods > a { font-size: 17px; padding: 14px; gap: 12px; }
  .contact-icon { width: 40px; height: 40px; }
  .email-text { font-size: 14px; }

  .footer-main { flex-direction: column; gap: 32px; padding-block: 44px 32px; }
  .footer-contact { flex-direction: column; gap: 16px; }
}

@media (max-width: 359px) {
  .brand-name { font-size: 23px; }
  .brand-mark { width: 54px; }
  .contact-methods > a { gap: 12px; }
}

/* =====================================================================
   Motion & interaction
   - Scroll reveals only run when app.js adds .has-motion to <html>
     (never with reduced motion or without JavaScript), so content is
     always visible by default.
   - Easing is one shared curve; distances are small and durations short.
   ===================================================================== */

:root {
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --sparkle: var(--ink);
}

/* ---- Scroll reveals ---- */
.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s var(--ease-out),
    transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger, 90ms));
}
.has-motion [data-reveal="unveil"] {
  transform: none;
  clip-path: inset(10% 8% 10% 8% round var(--radius-lg));
  transition:
    opacity .6s var(--ease-out),
    clip-path 1.1s var(--ease-in-out);
}
.has-motion [data-reveal="panel"] { transform: translateY(28px) scale(.985); }
.has-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round var(--radius-lg));
}
.has-motion [data-reveal]:not([data-reveal="unveil"]).is-in { clip-path: none; }
.steps li { --stagger: 200ms; }

/* ---- Brand: the truck drives in, and nudges forward on hover ---- */
@media (prefers-reduced-motion: no-preference) {
  .site-header .brand-mark { animation: truck-in 1s var(--ease-out) backwards; }
  .site-header .brand-name { animation: fade .7s .35s ease backwards; }
}
@keyframes truck-in {
  from { opacity: 0; transform: translateX(-26px); }
  50% { opacity: 1; }
  to { transform: none; }
}
.brand-mark > img { transition: transform .45s var(--ease-out); }
.brand:hover .brand-mark > img { transform: translateX(4px); }

/* ---- Floor care: a fresh-wax shine sweeps across once it comes into view ---- */
.floor-care-panel::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 32%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .07) 42%, rgb(244 197 66 / .10) 55%, transparent);
  transform: translateX(-120%) skewX(-16deg);
  pointer-events: none;
}
.has-motion .floor-care-panel.is-in::after { animation: wax-shine 1.8s .5s var(--ease-in-out) both; }
@keyframes wax-shine {
  from { transform: translateX(-120%) skewX(-16deg); }
  to { transform: translateX(420%) skewX(-16deg); }
}
.floor-care-panel { --sparkle: var(--sponge); }

/* ---- How it works: each step's rule fills in, one after another ---- */
.steps li {
  position: relative;
  border-top-color: rgb(15 46 55 / .16);
}
.steps li::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform-origin: left;
}
.has-motion .steps li::before {
  transform: scaleX(0);
  transition: transform 1s var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 200ms + 250ms);
}
.has-motion .steps li.is-in::before { transform: scaleX(1); }

/* ---- Buttons: a small sponge sparkle appears on hover ---- */
.button {
  position: relative;
  transition: background-color .2s ease, box-shadow .25s ease, transform .25s var(--ease-out);
}
.button::after {
  content: '';
  position: absolute;
  top: -8px;
  right: 12px;
  width: 15px;
  height: 15px;
  background: var(--sparkle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.6 16.4 11.1 24 12 16.4 12.9 12.9 16.4 12 24 11.1 16.4 7.6 12.9 0 12 7.6 11.1 11.1 7.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.6 16.4 11.1 24 12 16.4 12.9 12.9 16.4 12 24 11.1 16.4 7.6 12.9 0 12 7.6 11.1 11.1 7.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(0) rotate(-60deg);
  transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), opacity .2s ease;
  pointer-events: none;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgb(15 46 55 / .45); }
.button:hover::after,
.button:focus-visible::after { opacity: 1; transform: scale(1) rotate(0); }
.button:active { transform: none; }

/* ---- Nav: underline slides in from the left (desktop) ---- */
@media (min-width: 1001px) {
  #navigation > a:not(.button) {
    border-bottom: 0;
    background: linear-gradient(var(--sponge), var(--sponge)) left bottom / 0 2px no-repeat;
    transition: background-size .3s var(--ease-out);
  }
  #navigation > a:not(.button):hover { background-size: 100% 2px; }
}

/* ---- Icons respond to hover on their row ---- */
.service-icon,
.airbnb-icon,
.index-icon,
.approach-icon { transition: background-color .25s ease, transform .35s var(--ease-out); }
.service-row:hover .service-icon { background: var(--sponge); transform: rotate(-6deg); }
.airbnb-services article:hover .airbnb-icon { transform: rotate(-6deg) scale(1.05); }
.service-index a:hover .index-icon { background: var(--sponge); }
.approach-points article:hover .approach-icon { transform: rotate(-6deg); }

/* ---- Contact rows: icon slides and an arrow appears ---- */
.contact-icon { transition: transform .35s var(--ease-out); }
.contact-methods > a::after {
  content: '';
  margin-left: auto;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--sponge);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s ease, transform .35s var(--ease-out);
}
.contact-methods > a:hover .contact-icon { transform: translateX(4px); }
.contact-methods > a:hover::after { opacity: 1; transform: none; }

/* ---- FAQ: the answer eases in when a question opens ---- */
@media (prefers-reduced-motion: no-preference) {
  .faqs details[open] > p { animation: faq-open .4s var(--ease-out); }
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Printing never hides content that hasn't been scrolled to yet. */
@media print {
  .has-motion [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .has-motion .steps li::before { transform: none !important; }
}

/* ---- Hero photo parallax (transform set by app.js) ---- */
.has-motion .hero-visual > img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
