/* Auto Premium Detailing — Phase 1 art-direction proof
   "The studio as a darkroom. Light is the only material." */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/sora-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
}

:root {
  --black: #000000;
  --charcoal: #121212;
  --yellow: #F5C518;
  --yellow-dark: #C99A05;
  --silver: #A7A9AC;
  --white: #FFFFFF;
  --grey: #6E6E6E;

  --grid-margin: 90px;
  --hairline: 1px solid rgba(245, 197, 24, 0.10);
}

* { box-sizing: border-box; }

html { background: var(--black); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', -apple-system, sans-serif;
  overflow-x: hidden;
}

.grid-rule {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--grid-margin);
  width: 1px;
  background: rgba(245, 197, 24, 0.10);
  z-index: 5;
  pointer-events: none;
}

/* cursor / drift light */
.ambient-light {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--lx, 50%) var(--ly, 40%),
    rgba(255, 255, 255, 0.05),
    transparent 60%
  );
  transition: background-position 0.2s ease-out;
}

/* ---------- chapter primitive ---------- */
.chapter {
  position: relative;
  border-top: var(--hairline);
  padding: 0 var(--grid-margin);
}

.chapter-number {
  position: absolute;
  top: 32px;
  left: var(--grid-margin);
  right: var(--grid-margin);
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--grey);
  z-index: 4;
  white-space: nowrap;
}
.chapter-number .label {
  color: var(--grey);
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .chapter-number { font-size: 10px; letter-spacing: 0.15em; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-top: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.08) translateY(var(--parallax, 0px));
}

/* fix 1 — the floor, not objects: a room is identified by its ground.
   Painted ABOVE the darkening gradient (z-index 3/4) so it survives the
   text-legibility falloff instead of being buried under it. */
.hero-reflection {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0;
  height: 30%;
  z-index: 3;
  object-fit: cover;
  object-position: bottom;
  transform: scaleY(-1);
  filter: blur(4px) brightness(0.85) saturate(0.9);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.65), transparent 85%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.65), transparent 85%);
  opacity: 0.65;
  pointer-events: none;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.72) 100%);
  z-index: 1;
}

.hero-floor-sheen {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22%;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%),
    radial-gradient(60% 100% at 50% 100%, rgba(245,197,24,0.07), transparent 70%);
}

.hero-logo {
  position: relative;
  z-index: 5;
  padding: 40px var(--grid-margin) 0;
  min-width: 180px;
}
.hero-logo img {
  width: 280px;
  max-width: 40vw;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 5;
  padding: 0 var(--grid-margin) 72px;
  max-width: 900px;
}

.kicker {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 18px;
}

.hero-headline {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1.02;
  margin: 0 0 22px;
  color: var(--white);
}
.hero-headline .accent { color: var(--yellow); font-weight: 400; }

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--silver);
  max-width: 520px;
  margin: 0 0 34px;
  line-height: 1.5;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 28px;
  border-radius: 2px;
  width: fit-content;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta:hover { background: var(--yellow-dark); }
.cta:active { transform: scale(0.97); }

/* content-gap marker — calm, one line, reads as "one conversation away"
   not as an alarm. Chrome-level gaps (IG, TikTok, address, hours) are not
   flagged at all — they're simply absent, per the same logic. */
.tbd-chip {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--grey);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 3px 11px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  right: var(--grid-margin);
  z-index: 5;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--grey);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--grey);
  margin-top: 10px;
}

/* ---------- services / card ---------- */
.services {
  padding-top: 90px;
  padding-bottom: 100px;
}

.services-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.02em;
  margin: 64px 0 48px;
  max-width: 640px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--charcoal);
  border-radius: 2px;
}

.card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.08) saturate(0.82) brightness(0.96);
  transform: scale(var(--card-scale, 1));
  transition: transform 0.1s linear;
}

/* light sweep — shared visual language with the video chapters */
.light-sweep {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 250, 235, 0.16) 47%,
    rgba(255, 235, 180, 0.22) 50%,
    rgba(255, 250, 235, 0.16) 53%,
    transparent 70%
  );
  background-size: 300% 100%;
  background-position: calc(100% - var(--sweep, 0) * 300%) 0;
  mix-blend-mode: screen;
}

/* grain, identical treatment across stills and video chapters */
.grain {
  position: absolute;
  inset: -20%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.card-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(80,140,180,0.10), transparent 45%),
              linear-gradient(20deg, rgba(255,190,110,0.08), transparent 40%);
}

.card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  padding: 24px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.card-eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 8px;
}

.card-title {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--white);
}

.card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-media video, .hero-media img { transform: none !important; }
  .light-sweep { background-position: 50% 0 !important; }
  .card-media img { transform: none !important; }
  .ambient-light { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- premise (chapter 02) ---------- */
.premise {
  padding-top: 80px;
  padding-bottom: 80px;
}
.premise p {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: clamp(24px, 3.6vw, 42px);
  line-height: 1.4;
  max-width: 900px;
  margin: 56px 0 0;
  color: var(--white);
}
.premise .accent { color: var(--yellow); }

/* ---------- before / after (chapter 03) ---------- */
.before-after {
  padding: 0;
}
.ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 92vh;
  overflow: hidden;
  margin-top: 64px;
}
.ba-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(245,197,24,0.6);
  z-index: 2;
}
.ba-label {
  position: absolute;
  bottom: 24px;
  z-index: 3;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,0.5);
  padding: 8px 14px;
}
.ba-label.before { left: 24px; }
.ba-label.after { right: 24px; }

/* ---------- process (chapter 05) ---------- */
.process-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  max-width: 760px;
}
.process-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: var(--hairline);
}
.process-list li:first-child { border-top: none; }
.process-num {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--yellow);
}
.process-list h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  color: var(--white);
}
.process-list p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--silver);
  margin: 0;
}

/* ---------- el criterio (chapter 06) ---------- */
.criterio-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  max-width: 820px;
  display: grid;
  gap: 32px;
}
.criterio-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
}
.criterio-num {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--grey);
}
.criterio-list p {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--white);
  margin: 0;
}

/* ---------- sun section (chapter 07) ---------- */
.sun-chapter {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
.sun-chapter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
  transform: scale(var(--card-scale, 1));
  transition: transform 0.1s linear;
}
.sun-chapter::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
}
.sun-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--grid-margin) 80px;
  max-width: 720px;
}
.sun-content p {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.45;
  color: var(--white);
  margin: 0;
}
.sun-content .accent { color: var(--yellow); }

/* ---------- closing CTA (chapter 08) ---------- */
.closing {
  padding-top: 90px;
  padding-bottom: 90px;
}
.closing-headline {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.1;
  max-width: 780px;
  margin: 56px 0 32px;
}
.closing-headline .accent { color: var(--yellow); }
.closing-meta {
  display: grid;
  gap: 8px;
  margin: 36px 0 40px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--silver);
}
.closing-meta strong { color: var(--white); font-weight: 500; }

.site-footer {
  border-top: var(--hairline);
  padding: 32px var(--grid-margin) 40px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: var(--grey); }

/* ---------- services index page ---------- */
.page-hero {
  padding: 140px var(--grid-margin) 60px;
  border-top: none;
}
.page-hero h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 56px);
  margin: 24px 0 0;
  max-width: 820px;
}
.breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--grey);
  padding: 24px var(--grid-margin) 0;
}
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--yellow); }

.card-grid.six {
  grid-template-columns: repeat(3, 1fr);
  padding: 0 0 100px;
}

/* ---------- service page skeleton ---------- */
.service-hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.service-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(var(--card-scale, 1));
  transition: transform 0.1s linear;
}
.service-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.82) 100%);
}
.service-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--grid-margin) 60px;
  max-width: 760px;
}
.service-hero-content h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(32px, 5.5vw, 64px);
  margin: 16px 0 16px;
  line-height: 1.05;
}
.service-hero-content .promise {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--silver);
  max-width: 520px;
}

.service-section {
  padding: 64px var(--grid-margin);
  max-width: 900px;
}
.service-section h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin: 0 0 20px;
}
.service-section .lead {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.5;
  color: var(--white);
  margin: 0;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 22px 0 22px 52px;
  border-top: var(--hairline);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--silver);
}
.steps-list li:first-child { border-top: none; }
.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 20px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: var(--yellow);
}
.steps-list strong { color: var(--white); font-weight: 500; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--silver);
  padding-left: 22px;
  position: relative;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 1px;
  background: var(--yellow);
}

.duration-note {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--grey);
}

/* service before/after (smaller, static) */
.service-ba {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.service-ba img { width: 100%; height: 100%; object-fit: cover; }
.service-ba .ba-divider { display: none; }

/* FAQ accordion */
.faq-list { margin: 0; padding: 0; }
.faq-item { border-top: var(--hairline); }
.faq-item:last-child { border-bottom: var(--hairline); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  font-size: 16px;
  padding: 22px 32px 22px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq-q::marker,
.faq-q::-webkit-details-marker {
  display: none;
  content: '';
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 0; top: 20px;
  color: var(--yellow);
  font-size: 20px;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--silver);
  padding: 0 0 22px;
  max-width: 640px;
}

.related-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.related-links a {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(245,197,24,0.3);
  padding: 12px 20px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.related-links a:hover { border-color: var(--yellow); color: var(--yellow); }

.service-cta {
  padding: 60px var(--grid-margin) 80px;
  text-align: left;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --grid-margin: 28px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.six { grid-template-columns: repeat(2, 1fr); }
  .hero-logo img { width: 220px; }
  .service-hero { height: 60vh; }
  .ba-frame { aspect-ratio: 4/5; max-height: none; }
}

@media (max-width: 480px) {
  :root { --grid-margin: 18px; }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-grid.six { grid-template-columns: 1fr; }
  .hero-headline { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .scroll-cue { display: none; }
  .services-heading { margin-top: 44px; }
  .ba-frame { aspect-ratio: 3/4; }
  .process-list li, .criterio-list li { grid-template-columns: 36px 1fr; }
}
