/* Swift Wash — landing page styles */

:root {
  --ink: #0c161d;        /* base: wet asphalt at night */
  --surface: #13222b;    /* raised panels */
  --surface-2: #192c36;
  --line: #263a44;
  --pearl: #e7ecee;      /* primary text */
  --mist: #93a5ae;       /* secondary text */
  --champagne: #d6bf97;  /* accent: polished brass */
  --champagne-deep: #b89d70;
  --error: #f0a08c;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.125rem, 4vw, 3rem);
  --step-hero: clamp(3.75rem, 11vw, 9.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1200px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--pearl);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 500; }
h2 {
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--champagne);
  color: var(--ink);
  padding: 0.5rem 1rem;
}
.skip:focus { top: 1rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--champagne);
  color: var(--ink);
  font: 600 var(--step-0) / 1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover { background: #e4d0ab; }
.btn--small { min-height: 2.5rem; padding: 0 1.1rem; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: 0.85; }

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pearl);
  font: 500 var(--step-0) / 1.4 var(--sans);
  text-decoration: underline;
  text-decoration-color: var(--champagne-deep);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.link:hover { text-decoration-color: var(--champagne); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 22, 29, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 58, 68, 0.6);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span { font-style: italic; font-weight: 400; color: var(--champagne); margin-left: 0.08em; }
.nav__links {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
}
.nav__links a { color: var(--mist); text-decoration: none; }
.nav__links a:hover { color: var(--pearl); }

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

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 70% 60% at 15% 0%, rgba(214, 191, 151, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(70, 120, 140, 0.16), transparent 70%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.hero__title {
  position: relative;
  display: flex; /* flex stops the lines' negative margins from collapsing */
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--serif);
  font-size: var(--step-hero);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}
.hero__line {
  display: block;
  /* Extra padding so ascenders and descenders stay inside the gradient-clipped box. */
  padding: 0.18em 0 0.22em;
  margin: -0.18em 0 -0.22em;
  background: linear-gradient(
    100deg,
    var(--pearl) 0%,
    var(--pearl) 40%,
    #fff8e8 48%,
    var(--champagne) 50%,
    #fff8e8 52%,
    var(--pearl) 60%,
    var(--pearl) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 2.4s cubic-bezier(0.6, 0, 0.2, 1) 0.4s both;
}
.hero__line + .hero__line { font-style: italic; font-weight: 400; padding-left: 0.4em; animation-delay: 0.65s; }

/* The memorable bit: the headline sits on a wet, polished surface. */
.hero__reflection {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: block;
  transform: scaleY(-1);
  transform-origin: center;
  margin-top: -0.12em;
  color: var(--pearl);
  opacity: 0.16;
  filter: blur(1.2px);
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 55%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 55%);
}
.hero__reflection span { display: block; }
.hero__reflection span + span { font-style: italic; font-weight: 400; padding-left: 0.4em; }

@keyframes sheen {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

.hero__lede {
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--mist);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

/* Example job report */
.receipt {
  position: relative;
  padding: 1.75rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}
.receipt__head { font-size: var(--step--1); color: var(--mist); }
.receipt__title {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.15;
  margin: 0.35rem 0 1.5rem;
}
.receipt__rows { margin: 0; }
.receipt__rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}
.receipt__rows dt { color: var(--mist); }
.receipt__rows dd { margin: 0; text-align: right; }
.receipt__rows div:last-child dd { color: var(--champagne); font-weight: 600; }
.receipt__note {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: var(--step--1);
  color: var(--mist);
}

/* ---------- Facts ---------- */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts__grid p {
  padding: 1.5rem 1.25rem 1.5rem 0;
  font-size: var(--step--1);
  color: var(--mist);
}
.facts__grid p + p { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.facts__grid strong {
  display: block;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--pearl);
  margin-bottom: 0.15rem;
}

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

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__head p { color: var(--mist); max-width: 34rem; }

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 3rem 0 0;
  list-style: none;
}
/* The working day, 08:00 to 18:00 */
.timeline::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--line), var(--champagne-deep) 50%, var(--line));
}
.timeline__step { position: relative; }
.timeline__step::before {
  content: "";
  position: absolute;
  top: -3rem;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--champagne);
}
.timeline__step time {
  display: block;
  font-family: var(--serif);
  font-size: var(--step-2);
  font-style: italic;
  color: var(--champagne);
  margin-bottom: 0.75rem;
  font-variant-numeric: lining-nums;
}
.timeline__step h3 { margin-bottom: 0.5rem; }
.timeline__step p { color: var(--mist); font-size: var(--step--1); line-height: 1.6; }

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

.services { background: var(--surface); }

.menu { border-top: 1px solid var(--line); }
.menu__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 1rem 3rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.menu__name h3 { font-family: var(--serif); font-size: var(--step-2); font-weight: 500; line-height: 1.15; }
.menu__time { margin-top: 0.35rem; font-size: var(--step--1); color: var(--mist); }
.menu__desc { color: var(--mist); max-width: 36rem; }
.menu__price {
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.menu__item--featured {
  position: relative;
  margin: 0 calc(var(--gutter) * -0.5);
  padding-left: calc(var(--gutter) * 0.5);
  padding-right: calc(var(--gutter) * 0.5);
  background: linear-gradient(90deg, rgba(214, 191, 151, 0.09), rgba(214, 191, 151, 0.02));
  box-shadow: inset 2px 0 0 var(--champagne);
}
.menu__item--featured .menu__time { color: var(--champagne); }

.plan {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 3rem;
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink);
}
.plan h3 { margin-bottom: 0.35rem; }
.plan p { color: var(--mist); max-width: 40rem; }
.plan__price { white-space: nowrap; }
.plan__price strong {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 500;
  color: var(--pearl);
  margin-right: 0.35rem;
}

/* ---------- Why ---------- */

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem 5rem;
  align-items: start;
}
.why__grid h2 { position: sticky; top: 7rem; }
.why__list { margin: 0; }
.why__list div { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.why__list div:last-child { border-bottom: 1px solid var(--line); }
.why__list dt { font-size: var(--step-1); font-weight: 600; margin-bottom: 0.4rem; }
.why__list dd { margin: 0; color: var(--mist); max-width: 38rem; }

/* ---------- Testimonials ---------- */

.voices { padding-top: 0; }
.voices__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
}
.quote { margin: 0; }
.quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-style: italic;
  line-height: 1.32;
}
.quote figcaption { color: var(--mist); font-size: var(--step--1); }

/* ---------- Booking ---------- */

.book {
  background:
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(214, 191, 151, 0.07), transparent 70%),
    var(--surface);
}
.book__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.book__intro p { color: var(--mist); margin-top: 1.25rem; max-width: 28rem; }
.book__promises {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.book__promises li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.75rem;
  border-top: 1px solid var(--line);
}
.book__promises li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.25rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--champagne);
  border-bottom: 2px solid var(--champagne);
  transform: rotate(-45deg);
}

.book__panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.field { display: grid; gap: 0.45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend { font-size: var(--step--1); font-weight: 500; color: var(--pearl); padding: 0; }
.field legend { margin-bottom: 0.45rem; }
.field__opt { color: var(--mist); font-weight: 400; margin-left: 0.35rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--pearl);
  font: 400 1rem / 1.4 var(--sans);
  transition: border-color 0.15s ease;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder,
.field textarea::placeholder { color: #61757f; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #38505b; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--champagne); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { min-height: 0; font-size: 0.8125rem; color: var(--error); }
.field__error:empty { display: none; }

.choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: var(--step--1);
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice__opt em { font-style: normal; font-weight: 400; color: var(--mist); }
.choice__opt:hover span { border-color: #38505b; }
.choice__opt input:checked + span {
  border-color: var(--champagne);
  background: rgba(214, 191, 151, 0.08);
}
.choice__opt input:checked + span em { color: var(--champagne); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--champagne); outline-offset: 2px; }

.form__status { font-size: var(--step--1); color: var(--error); text-align: center; }
.form__status:empty { display: none; }

.btn .spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(12, 22, 29, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success { text-align: center; padding: 2.5rem 0.5rem; outline: none; }
.success h3 { font-family: var(--serif); font-size: var(--step-3); font-weight: 500; margin: 1.5rem 0 0.75rem; }
.success p { color: var(--mist); max-width: 26rem; margin: 0 auto 1.75rem; }
.success__mark { width: 4rem; height: 4rem; fill: none; stroke: var(--champagne); stroke-width: 2; }
.success__mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.6s ease-out forwards; }
.success__mark path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.35s ease-out 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

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

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem 5rem;
}
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  font-size: var(--step-1);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1.5px solid var(--champagne);
  border-bottom: 1.5px solid var(--champagne);
  transform: rotate(45deg) translateY(-25%);
  transition: transform 0.2s ease;
}
.faq__list details[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.faq__list details p { padding: 0 0 1.5rem; color: var(--mist); max-width: 40rem; }

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

.footer { border-top: 1px solid var(--line); padding: 3rem 0; }
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem 3rem;
  align-items: start;
  font-size: var(--step--1);
  color: var(--mist);
}
.footer__inner a { color: var(--pearl); text-decoration: none; }
.footer__inner a:hover { color: var(--champagne); }
.footer__legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); }

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

@media (max-width: 960px) {
  .hero__grid,
  .book__grid,
  .why__grid,
  .faq__grid,
  .section__head { grid-template-columns: minmax(0, 1fr); }
  .receipt { max-width: 26rem; }
  .why__grid h2 { position: static; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__grid p:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__grid p:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .menu__item { grid-template-columns: minmax(0, 1fr) auto; }
  .menu__desc { grid-column: 1 / -1; grid-row: 2; }
  .menu__price { grid-column: 2; grid-row: 1; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .timeline { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 2.25rem; gap: 2.25rem; }
  .timeline::before {
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--line), var(--champagne-deep) 50%, var(--line));
  }
  .timeline__step::before { top: 0.6rem; left: -2.25rem; }
  .voices__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .choice { grid-template-columns: minmax(0, 1fr); }
  .choice__opt span { flex-direction: row; justify-content: space-between; }
  .facts__grid { grid-template-columns: minmax(0, 1fr); }
  .facts__grid p,
  .facts__grid p + p { padding: 1.1rem 0; border-left: 0; }
  .facts__grid p + p { border-top: 1px solid var(--line); }
  .hero__actions .btn { width: 100%; }
  .plan { padding: 1.5rem; }
  .menu__item--featured { margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
