/* ============================================================
   PEARL Auto Atelier — Doha
   Ice Titanium / Sport: graphite, cool silver, ice-blue accent.
   ============================================================ */
:root {
  --bg: #08090b;
  --bg-soft: #0e1114;
  --ink: #e8edf1;
  --ink-dim: rgba(232, 237, 241, 0.55);
  --ice: #8fd6ff;
  --ice-soft: rgba(143, 214, 255, 0.35);
  --ice-glow: rgba(143, 214, 255, 0.12);
  --steel: #9aa7b0;
  --hair: rgba(232, 237, 241, 0.1);
  --display: "Space Grotesk", sans-serif;
  --sans: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: initial; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ice); color: var(--bg); }

/* ---------- type ---------- */
.kicker {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 1.3rem;
  font-weight: 500;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem clamp(1.4rem, 4vw, 3.5rem);
  background: linear-gradient(rgba(8, 9, 11, 0.8), transparent);
}
.nav-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand span { color: var(--steel); font-weight: 400; letter-spacing: 0.12em; font-size: 0.8rem; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--ice); }
.nav-cta {
  color: var(--ice);
  border: 1px solid var(--ice-soft);
  border-radius: 3px;
  padding: 0.55rem 1.3rem;
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.nav-cta:hover { background: var(--ice); color: var(--bg); box-shadow: 0 0 24px var(--ice-soft); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- cinematic scrub sections ---------- */
.cinematic { height: 480vh; position: relative; }
.cinematic.short { height: 420vh; }
.cinematic .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.cinematic canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(8, 9, 11, 0.55), transparent 60%),
    linear-gradient(rgba(8, 9, 11, 0.35), transparent 30%, transparent 70%, rgba(8, 9, 11, 0.6));
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  text-align: center;
  pointer-events: none;
  padding: 0 1.5rem 14vh;
}
.ol { grid-area: 1 / 1; opacity: 0; will-change: opacity, transform; }
.ol h1 { text-shadow: 0 2px 44px rgba(0, 0, 0, 0.7); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: opacity 0.5s;
  animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- intro ---------- */
.intro {
  padding: clamp(6rem, 14vh, 10rem) clamp(1.5rem, 6vw, 4rem);
  display: flex;
  justify-content: center;
}
.intro p {
  max-width: 44rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.55;
  color: var(--ink-dim);
  text-align: center;
}

/* ---------- journey head ---------- */
.journey-head {
  padding: 0 clamp(1.5rem, 6vw, 4rem) clamp(4rem, 10vh, 7rem);
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}
.journey-index { list-style: none; }
.journey-index li { border-bottom: 1px solid var(--hair); }
.journey-index a {
  display: block;
  padding: 0.85rem 0;
  color: var(--ink-dim);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s, padding-left 0.3s;
}
.journey-index a:hover { color: var(--ice); padding-left: 0.6rem; }
@media (max-width: 860px) { .journey-head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- sections shared ---------- */
.section-head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }

/* ---------- station note (after scrubs) ---------- */
.station-note {
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1.5rem, 6vw, 4rem);
  display: flex;
  justify-content: center;
}
.station-note p {
  max-width: 40rem;
  text-align: center;
  color: var(--ink-dim);
  font-size: 1.02rem;
  line-height: 1.8;
}
.station-note b { color: var(--ice); font-weight: 500; }

/* ---------- stations (split) ---------- */
.station {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 8rem) clamp(1.5rem, 6vw, 4rem);
}
.station-media img {
  width: 100%;
  display: block;
  border: 1px solid var(--hair);
}
.station-copy .body {
  color: var(--ink-dim);
  line-height: 1.8;
  margin-top: 1.4rem;
  font-size: 0.98rem;
}
@media (max-width: 860px) {
  .station { grid-template-columns: 1fr; }
  .station.flip .station-copy { order: 2; }
}

/* spec list */
.spec-list {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--hair);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.86rem;
}
.spec-list span { color: var(--ink-dim); letter-spacing: 0.06em; }
.spec-list b { font-family: var(--display); font-weight: 500; color: var(--ice); }

/* graphene bars */
.bars { margin-top: 2.2rem; display: grid; gap: 1.15rem; }
.bar span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.45rem;
}
.bar-track { height: 3px; background: var(--hair); overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--steel), var(--ice));
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.bar.in .bar-fill { width: var(--w); }

/* ---------- tint demo ---------- */
.station-wide {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 8rem) clamp(1.5rem, 6vw, 4rem);
}
.tint-demo {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.tint-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair);
}
.tint-stage img { width: 100%; display: block; }
.tint-overlay {
  position: absolute;
  inset: 0;
  background: #04070c;
  opacity: 0.5;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.tint-readout {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  font-family: var(--display);
  color: var(--ink);
  text-shadow: 0 1px 12px rgba(0,0,0,0.8);
}
.tint-readout b { font-size: 1.6rem; font-weight: 600; color: var(--ice); }
.tint-readout span { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); }
.tint-controls input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 3px;
  background: var(--hair);
  outline: none;
}
.tint-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ice);
  cursor: pointer;
  box-shadow: 0 0 16px var(--ice-soft);
}
.tint-controls input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: none;
  background: var(--ice); cursor: pointer;
}
.tint-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.tint-note { margin-top: 1.8rem; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.75; }
.tint-note b { color: var(--ice); font-weight: 500; }
@media (max-width: 860px) { .tint-demo { grid-template-columns: 1fr; } }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--hair);
  border-block: 1px solid var(--hair);
  margin: clamp(3rem, 8vh, 6rem) 0;
}
.stat { background: var(--bg); padding: 3.2rem 2rem; text-align: center; }
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  color: var(--ice);
  margin-bottom: 0.6rem;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- process ---------- */
.process {
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 6vw, 4rem);
  max-width: 78rem;
  margin: 0 auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}
.step .num {
  display: block;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--ice);
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: 0.8rem; }
.step p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.7; }

/* ---------- cta ---------- */
.cta {
  padding: clamp(6rem, 16vh, 11rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
  background: radial-gradient(ellipse 60% 45% at 50% 100%, var(--ice-glow), transparent);
}
.cta-sub { color: var(--ink-dim); margin-top: 1.4rem; font-size: 0.95rem; }
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.6rem;
}
.btn-solid, .btn-ghost {
  padding: 0.95rem 2.2rem;
  border-radius: 3px;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn-solid { background: var(--ice); color: var(--bg); font-weight: 600; }
.btn-solid:hover { opacity: 0.85; box-shadow: 0 0 32px var(--ice-soft); }
.btn-ghost { color: var(--ink); border: 1px solid var(--hair); }
.btn-ghost:hover { border-color: var(--ice-soft); color: var(--ice); }

/* ---------- find us / map ---------- */
.visit {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.5rem, 6vw, 4rem) clamp(4rem, 10vh, 7rem);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}
.visit-map {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--hair);
  overflow: hidden;
}
.visit-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* tune the map into the Ice Titanium palette */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7) contrast(0.9) brightness(0.95);
}
.visit-map-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(8, 9, 11, 0.75);
}
.visit-info {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}
.visit-label {
  display: block;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.55rem;
}
.visit-block p {
  color: var(--ink-dim);
  line-height: 1.75;
  font-size: 0.95rem;
}
.visit-block a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.visit-block a:hover { color: var(--ice); }
.visit-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.visit-note {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-dim);
  border-top: 1px solid var(--hair);
  padding-top: 1.2rem;
}
@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
  .visit-map { min-height: 320px; }
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2.2rem clamp(1.5rem, 6vw, 4rem);
  border-top: 1px solid var(--hair);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- booking modal ---------- */
.book-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.book-modal.open { display: block; }
.book-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.book-panel {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(960px, calc(100vw - 2rem));
  height: min(620px, calc(100dvh - 2rem));
  background: var(--bg-soft);
  border: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  overflow: hidden;
  animation: panel-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.book-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  z-index: 2;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s;
}
.book-close:hover { color: var(--ice); }
.book-visual { position: relative; overflow: hidden; }
.book-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.book-visual-grade {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(8,9,11,0.15), rgba(8,9,11,0.85));
}
.book-visual-copy {
  position: absolute;
  left: 1.6rem; bottom: 1.5rem;
}
.book-visual-copy h3 { font-size: 1.9rem; font-weight: 600; line-height: 1.05; }
.book-form {
  padding: 2.4rem 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
}
.book-form .kicker { margin-bottom: 0.4rem; }
.book-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}
.chip {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: none;
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.chip:hover { color: var(--ink); border-color: var(--ice-soft); }
.chip.on {
  color: var(--bg);
  background: var(--ice);
  border-color: var(--ice);
  box-shadow: 0 0 18px var(--ice-glow);
}
.book-route { width: 100%; margin: 0.2rem 0 1rem; overflow: visible; }
.route-line { stroke: var(--hair); stroke-width: 2; }
.route-line-lit {
  stroke: var(--ice);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.4s;
}
.route-node circle {
  fill: var(--bg-soft);
  stroke: var(--hair);
  stroke-width: 2;
  transition: fill 0.3s, stroke 0.3s;
}
.route-node text {
  fill: var(--ink-dim);
  font-family: var(--display);
  font-size: 13px;
  text-anchor: middle;
  letter-spacing: 0.1em;
}
.route-node.lit circle { fill: var(--ice); stroke: var(--ice); }
.route-node.lit text { fill: var(--ice); }
.book-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.6rem; margin-bottom: 0.4rem; }
.book-fields input, .book-fields select {
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.8rem 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}
.book-fields input:focus, .book-fields select:focus { border-color: var(--ice-soft); }
.book-fields input::placeholder { color: var(--ink-dim); }
.book-preview {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-dim);
  border-left: 2px solid var(--ice-soft);
  padding: 0.5rem 0 0.5rem 1rem;
  min-height: 3.4rem;
}
.book-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: auto; }
.book-actions .btn-solid.disabled { opacity: 0.35; pointer-events: auto; cursor: not-allowed; box-shadow: none; }
@media (max-width: 760px) {
  .book-panel { grid-template-columns: 1fr; height: min(720px, calc(100dvh - 2rem)); }
  .book-visual { display: none; }
}

/* ---------- reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-hint { animation: none; }
  .bar-fill { transition: none; }
}
