/* ============================================================
   CARPET CRUISERS — "Cruise Control"
   Colors are placeholders wired to variables. Swap the values
   in :root when the real brand palette arrives.
   ============================================================ */

:root {
  /* ---- PALETTE (placeholder — swap when colors arrive) ---- */
  --ink:        #0c1a22;   /* deep midnight — primary dark */
  --ink-2:      #112733;   /* raised dark surface */
  --chrome:     #e8eef1;   /* cool off-white (light sections) */
  --chrome-2:   #d4dde2;   /* light surface edge */
  --steel:      #8aa2af;   /* muted steel for captions */
  --accent:     #ff6a3d;   /* sunset cruise — primary accent */
  --accent-2:   #ffb02e;   /* amber highlight */
  --line:       rgba(255,255,255,.10);
  --line-dark:  rgba(12,26,34,.12);

  /* ---- TYPE ---- */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  /* ---- SPACE ---- */
  --gut: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1200px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--chrome);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent-2); }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--accent);
}

.section { padding: clamp(3.5rem, 9vw, 7rem) var(--gut); }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: .5rem 0 .75rem;
}
.section__lead { color: var(--steel); font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  padding: .85em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #1a0a04; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line); color: var(--chrome); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 1.05em 1.8em; font-size: .95rem; }
.btn--block { width: 100%; }

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

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem var(--gut);
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav.is-scrolled { background: color-mix(in srgb, var(--ink) 94%, transparent); }

/* ---------- WORDMARK LOGO ---------- */
.brand {
  display: inline-flex; flex-direction: column; line-height: .82;
  font-family: var(--display); font-weight: 800; letter-spacing: -.01em;
}
.brand__carpet {
  font-size: .68em; letter-spacing: .42em; padding-left: .42em;
  color: var(--accent);
  font-family: var(--mono); font-weight: 700;
}
.brand__cruisers { font-size: 1.5rem; }
.nav .brand { font-size: 1rem; }

.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .92rem; }
.nav__links a { color: var(--steel); transition: color .2s; }
.nav__links a:hover { color: var(--chrome); }
.nav__cta { margin-left: 0; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 5rem var(--gut);
  background:
    radial-gradient(120% 80% at 80% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(100% 70% at 0% 110%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 55%),
    var(--ink);
  overflow: hidden;
}
/* speed lines on the horizon */
.hero__lines {
  position: absolute; inset: auto 0 8% 0; height: 40%;
  background-image: repeating-linear-gradient(
    180deg, transparent 0 38px, var(--line) 38px 39px);
  mask-image: linear-gradient(180deg, transparent, #000 60%, transparent);
  opacity: .6; pointer-events: none;
}
.hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: .96; letter-spacing: -.03em;
  margin: 1rem 0 1.25rem;
}
.hero__sub { max-width: 560px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--chrome-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.5rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem; list-style: none;
  border-top: 1px solid var(--line); padding-top: 1.75rem; max-width: 640px;
}
.hero__stats li { display: flex; flex-direction: column; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--accent-2); }
.stat__label { font-family: var(--mono); font-size: .72rem; color: var(--steel); text-transform: uppercase; letter-spacing: .1em; }

/* ============ SERVICES ============ */
.services { background: var(--ink); }
.cards {
  display: grid; gap: 1.25rem; max-width: var(--maxw); margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card--feature {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -20px color-mix(in srgb, var(--accent) 60%, transparent);
}
.card__tag { font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.card__title { font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin: .35rem 0 .25rem; }
.card__price { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--accent-2); margin-bottom: .75rem; }
.card__desc { color: var(--steel); font-size: .95rem; margin-bottom: 1.1rem; }
.card__list { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; font-size: .92rem; }
.card__list li { padding-left: 1.4rem; position: relative; }
.card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.card__btn { margin-top: auto; }

/* single-service layout */
.menu-solo { max-width: 480px; margin: 0 auto; text-align: center; }
.menu-solo .card { text-align: left; }
.menu-solo .card__price { font-size: 3rem; }
.menu-solo__aside { margin-top: 1.25rem; font-family: var(--mono); font-size: .85rem; color: var(--steel); }
.menu-solo__aside strong { color: var(--accent-2); }

.addons { max-width: var(--maxw); margin: 2rem auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.addons__label { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.addons__list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; }
.addons__list li { font-family: var(--mono); font-size: .8rem; padding: .4em .9em; border: 1px solid var(--line); border-radius: 999px; color: var(--chrome-2); }

/* ============ GALLERY / BEFORE-AFTER ============ */
.gallery { background: var(--chrome); color: var(--ink); }
.gallery .eyebrow { color: color-mix(in srgb, var(--accent) 85%, #000); }
.gallery .section__lead { color: #51636d; }

.ba {
  position: relative; max-width: 560px; margin: 0 auto;
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  user-select: none; touch-action: none;
  box-shadow: 0 30px 60px -25px rgba(12,26,34,.5);
  cursor: ew-resize;
}
.ba__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba__img--after  { background-image: url("assets/img/after.jpeg"); }
.ba__img--before { background-image: url("assets/img/before.jpeg"); clip-path: inset(0 50% 0 0); }
.ba__badge {
  position: absolute; top: 1rem; font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em; padding: .35em .8em; border-radius: 999px; color: #fff;
}
.ba__badge--before { left: 1rem; background: rgba(0,0,0,.55); }
.ba__badge--after  { right: 1rem; background: var(--accent); color: #1a0a04; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%);
  background: #fff; cursor: ew-resize;
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.ba__grip::before { content: "⟷"; font-size: 1.1rem; color: var(--ink); }
.ba__hint { text-align: center; font-family: var(--mono); font-size: .78rem; color: #51636d; margin-top: 1rem; letter-spacing: .1em; }

/* ============ REVIEWS ============ */
.reviews { background: var(--ink); }
.quotes { display: grid; gap: 1.25rem; max-width: var(--maxw); margin: 0 auto; grid-template-columns: repeat(3, 1fr); }
.quote { background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.75rem; }
.quote p { font-size: 1.05rem; margin-bottom: 1rem; }
.quote cite { font-family: var(--mono); font-size: .8rem; color: var(--steel); font-style: normal; }

/* ============ ABOUT / STEPS ============ */
.about { background: var(--ink); }
.steps { list-style: none; display: grid; gap: 1.5rem; max-width: var(--maxw); margin: 0 auto; grid-template-columns: repeat(3, 1fr); counter-reset: none; }
.step { padding: 1.5rem; }
.step__num {
  font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--accent);
  display: block; line-height: 1; margin-bottom: .5rem;
}
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin-bottom: .35rem; }
.step p { color: var(--steel); }

/* ============ BOOKING ============ */
.book { background:
  radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
  var(--ink-2); }
.book__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book__copy .section__title { text-align: left; }
.book__copy { position: sticky; top: 100px; }
.book__contact { margin-top: 1.25rem; font-family: var(--mono); font-size: .9rem; color: var(--steel); }
.book__contact a { color: var(--accent); }

.form { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--chrome);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px;
  padding: .75em .9em; width: 100%; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #5e7682; }
.form .btn { margin-top: .5rem; }
.form__consent { font-size: .78rem; line-height: 1.5; color: var(--steel); margin-top: 1rem; }
.form__consent a { color: var(--accent); text-decoration: underline; }
.form__status { font-family: var(--mono); font-size: .85rem; margin-top: 1rem; text-align: center; min-height: 1.2em; }
.form__status.is-ok { color: var(--accent-2); }
.form__status.is-err { color: #ff7a6b; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) var(--gut) 2rem; }
.footer__brand { font-size: 1.1rem; margin-bottom: 2rem; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 2.5rem; max-width: var(--maxw); margin: 0 auto 2rem; }
.footer__label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .4rem; }
.footer__cols p { color: var(--steel); font-size: .95rem; }
.footer__cols a:hover { color: var(--chrome); }
.footer__legal { font-family: var(--mono); font-size: .75rem; color: var(--steel); text-align: center; border-top: 1px solid var(--line); padding-top: 1.5rem; }

/* ============ LEGAL PAGE ============ */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(5rem, 10vw, 8rem) var(--gut) 4rem; }
.legal__back { font-family: var(--mono); font-size: .8rem; color: var(--accent); display: inline-block; margin-bottom: 2rem; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.02em; margin-bottom: .35rem; }
.legal__updated { font-family: var(--mono); font-size: .78rem; color: var(--steel); margin-bottom: 2.5rem; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--chrome-2); font-size: 1rem; margin-bottom: .75rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: .75rem; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong { color: var(--chrome); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .cards, .quotes, .steps { grid-template-columns: 1fr; }
  .book__inner { grid-template-columns: 1fr; }
  .book__copy { position: static; }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
}

/* ============ MOTION PREFERENCES ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
