/* ============================================================
   EXPRESS AUTOCARE — black / red / white
   Display: Big Shoulders Display · Body: Instrument Sans · Mono: IBM Plex Mono
   ============================================================ */

:root {
  --black: #0a0a0b;
  --black-2: #121214;
  --red: #e10600;
  --red-deep: #a30400;
  --white: #f7f5f2;
  --white-dim: #c9c5c0;
  --grey-line: rgba(247, 245, 242, 0.14);
  --ink: #141416;            /* text on light */
  --ink-soft: #55534f;       /* body on light */
  --light-bg: #f4f1ec;
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--white); }

/* subtle grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  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'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ LOADER ============ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-brand { display: flex; gap: 0.35em; }
.loader-ea {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
}
.loader-ea--red { color: var(--red); }
.loader-track {
  width: min(320px, 60vw);
  height: 2px;
  background: var(--grey-line);
  overflow: hidden;
}
#loader-bar {
  width: 0%;
  height: 100%;
  background: var(--red);
  transition: width 0.2s ease;
}
#loader-percent {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--white-dim);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4vw;
  mix-blend-mode: normal;
  background: linear-gradient(to bottom, rgba(10,10,11,0.85), rgba(10,10,11,0));
  transition: background 0.35s ease;
}
.site-header.solid {
  background: rgba(10, 10, 11, 0.97);
  border-bottom: 1px solid var(--grey-line);
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}
.logo em { font-style: normal; color: var(--red); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.25s;
}
.site-nav a:hover { color: var(--white); }
.nav-phone { font-family: var(--font-mono); }
.nav-cta {
  color: var(--white) !important;
  background: var(--red);
  padding: 10px 20px;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--red-deep); }

/* ============ HERO ============ */
.hero-standalone {
  position: relative;
  z-index: 50;
  height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  padding: 0 4vw;
}
.hero-inner { max-width: 1200px; }
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 1.4rem;
}
.hero-label { color: var(--white-dim); }
.hero-label::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 14px;
}
.hero-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.4rem, 13.5vw, 13.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.hero-word { display: block; overflow: hidden; }
.hero-word--red { color: var(--red); }
.hero-tagline {
  margin-top: 2rem;
  max-width: 520px;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--white-dim);
}
.scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 4vw;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--white-dim);
}
.scroll-indicator svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* ============ CANVAS / OVERLAY / MARQUEE ============ */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
}
#canvas { width: 100%; height: 100%; display: block; }

#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(6, 6, 7, 1);
  opacity: 0;
  pointer-events: none;
}

.marquee-wrap {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.marquee-text {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13vw;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(247, 245, 242, 0.55);
  will-change: transform;
}

/* ============ SCROLL SECTIONS ============ */
#scroll-container {
  position: relative;
  z-index: 4;
  height: 900vh;
}
.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  visibility: hidden;   /* app.js flips to visible when in range */
}
/* editorial edge scrim: keeps side-zone text readable over busy frames */
.scroll-section.align-left::before,
.scroll-section.align-right::before {
  content: "";
  position: absolute;
  top: -18vh;
  bottom: -18vh;
  width: 58vw;
  pointer-events: none;
  z-index: -1;
}
.scroll-section.align-left::before {
  left: 0;
  background: linear-gradient(to right, rgba(6,6,7,0.88) 0%, rgba(6,6,7,0.62) 55%, rgba(6,6,7,0) 100%);
}
.scroll-section.align-right::before {
  right: 0;
  background: linear-gradient(to left, rgba(6,6,7,0.88) 0%, rgba(6,6,7,0.62) 55%, rgba(6,6,7,0) 100%);
}
.align-left { padding-left: 5vw; padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw; }
.align-left .section-inner, .align-right .section-inner { max-width: 40vw; }

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
  line-height: 0.98;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.section-heading em { font-style: normal; color: var(--red); }
.section-body {
  color: var(--white-dim);
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.65);
}
.section-note {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.service-list { list-style: none; }
.service-list li {
  padding: 0.52em 0;
  border-bottom: 1px solid var(--grey-line);
  font-weight: 500;
  color: var(--white);
}
.service-list li::before {
  content: "//";
  font-family: var(--font-mono);
  color: var(--red);
  margin-right: 0.8em;
  font-size: 0.8em;
}

/* plans list */
.plan-list { display: flex; flex-direction: column; }
.plan-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--grey-line);
  padding: 0.72em 0.4em 0.72em 0;
  color: var(--white);
  transition: background 0.25s, padding-left 0.25s;
}
.plan-row:hover { background: rgba(225, 6, 0, 0.12); padding-left: 0.6em; }
.plan-pts {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--red);
  min-width: 2ch;
  line-height: 1;
}
.plan-info { flex: 1; display: flex; flex-direction: column; }
.plan-info strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.plan-info small { color: var(--white-dim); font-size: 0.8rem; }
.plan-arrow { color: var(--red); font-size: 1.1rem; opacity: 0; transition: opacity 0.25s, transform 0.25s; }
.plan-row:hover .plan-arrow { opacity: 1; transform: translateX(4px); }

/* stats */
.section-stats { padding: 0 6vw; }
.stats-label { text-align: center; margin-bottom: 3rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3vw;
  max-width: 1250px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat-line { display: flex; align-items: baseline; justify-content: center; gap: 0.1em; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 6.5vw, 6.2rem);
  line-height: 1;
  color: var(--white);
}
.stat-suffix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: var(--red);
}
.stat-label {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white-dim);
}

.cta-button {
  display: inline-block;
  margin-top: 1.6rem;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 30px;
  transition: background 0.25s, transform 0.25s;
}
.cta-button:hover { background: var(--red-deep); transform: translateY(-2px); }

/* ============ AFTER-SCROLL PAGE ============ */
.page-after { position: relative; z-index: 10; }

/* ---- Rate explorer (light zone) ---- */
.rates {
  background: var(--light-bg);
  color: var(--ink);
  padding: clamp(70px, 9vw, 130px) 6vw;
}
.rates .section-label { color: var(--red); }
.rates-heading, .booking-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  line-height: 0.98;
  text-transform: uppercase;
}
.rates-heading em, .booking-heading em { font-style: normal; color: var(--red); }
.rates-sub {
  max-width: 560px;
  margin-top: 1.2rem;
  color: var(--ink-soft);
}
.rates-controls { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(20, 20, 22, 0.25);
  color: var(--ink);
  transition: all 0.22s;
}
.chip:hover { border-color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.oil-toggle { display: flex; border: 1px solid rgba(20, 20, 22, 0.25); }
.oil-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  transition: all 0.22s;
}
.oil-btn.active { background: var(--red); color: var(--white); }
.models-hint-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  border-bottom: 1px dashed rgba(20,20,22,0.4);
  padding: 4px 0;
  color: var(--ink-soft);
}
.models-hint-btn:hover { color: var(--ink); }
.models-hint {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: rgba(20, 20, 22, 0.05);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  line-height: 1.7;
}
.models-hint strong { color: var(--ink); }

.rates-table { margin-top: 2.6rem; border-top: 2px solid var(--ink); }
.rate-line {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto auto;
  align-items: center;
  gap: 3vw;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(20, 20, 22, 0.15);
}
.rate-pts {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.rate-name { display: flex; flex-direction: column; }
.rate-name strong { font-weight: 600; font-size: 1.05rem; }
.rate-name small { color: var(--ink-soft); font-size: 0.82rem; }
.rate-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: var(--ink);
  text-align: right;
  min-width: 7ch;
}
.rate-book {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 9px 16px;
  transition: all 0.22s;
}
.rate-book:hover { background: var(--red); color: var(--white); }
.rates-notes {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rates-notes li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.rates-notes li::before { content: "* "; color: var(--red); }

/* ---- Booking (dark zone) ---- */
.booking {
  background: var(--black);
  color: var(--white);
  padding: clamp(70px, 9vw, 130px) 6vw;
  position: relative;
}
.booking::before {
  /* red hairline top border */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}
.booking-sub { max-width: 560px; margin-top: 1.2rem; color: var(--white-dim); }
.booking-form {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 34px;
  max-width: 900px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white-dim);
}
.field label small { text-transform: none; letter-spacing: 0.05em; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: var(--black-2);
  border: 1px solid var(--grey-line);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e10600' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field input::placeholder, .field textarea::placeholder { color: rgba(201, 197, 192, 0.45); }
.field input[type="date"] { color-scheme: dark; }
.field input.invalid { border-color: var(--red); background: rgba(225, 6, 0, 0.08); }

.booking-summary {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--white-dim);
  border-left: 3px solid var(--red);
  padding: 12px 18px;
  background: var(--black-2);
}
.booking-summary strong { color: var(--white); }
.booking-summary .sum-price { color: var(--red); font-weight: 600; }
.booking-error {
  grid-column: 1 / -1;
  color: #ff6f6a;
  font-size: 0.88rem;
}
.booking-actions { display: flex; flex-direction: column; gap: 14px; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 18px 34px;
  transition: background 0.25s, transform 0.25s;
}
.btn-whatsapp:hover { background: var(--red-deep); transform: translateY(-2px); }
.booking-fineprint { font-size: 0.8rem; color: var(--white-dim); }
.booking-fineprint strong { color: var(--white); font-family: var(--font-mono); font-weight: 500; }

.booking-success {
  margin-top: 3rem;
  max-width: 560px;
  border: 1px solid var(--grey-line);
  padding: 44px;
  text-align: center;
}
.success-mark {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1.9rem;
  line-height: 64px;
}
.booking-success h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  text-transform: uppercase;
}
.booking-success p { margin-top: 0.8rem; color: var(--white-dim); }
.btn-again {
  margin-top: 1.6rem;
  background: none;
  border: 1px solid var(--grey-line);
  color: var(--white-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 22px;
  transition: all 0.25s;
}
.btn-again:hover { border-color: var(--red); color: var(--white); }

/* ---- Footer ---- */
.site-footer { background: var(--black-2); }
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(30px, 7vw, 100px);
  padding: 40px 6vw;
  border-bottom: 1px solid var(--grey-line);
}
.partner { text-align: center; }
.partner strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.partner small {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 60px 6vw;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.03em;
}
.footer-brand em { font-style: normal; color: var(--red); }
.footer-brand p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 10px;
  letter-spacing: 0;
}
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white-dim);
  transition: color 0.25s;
}
.footer-contact a:hover { color: var(--red); }
.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.8;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 6vw;
  border-top: 1px solid var(--grey-line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(201, 197, 192, 0.55);
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 4vw; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #scroll-container { height: 600vh; }
  .align-left, .align-right { padding-left: 7vw; padding-right: 7vw; }
  .align-left .section-inner, .align-right .section-inner { max-width: 100%; }
  .scroll-section .section-inner {
    background: rgba(6, 6, 7, 0.82);
    padding: 26px 22px;
    margin-top: 64px; /* clear the fixed header when tall sections center */
  }
  .section-stats { padding: 0 7vw; }
  .hero-heading { font-size: clamp(3.4rem, 16vw, 6rem); }
  .marquee-text { font-size: 22vw; }
  .booking-form { grid-template-columns: 1fr; }
  .rate-line { grid-template-columns: 2.4rem 1fr; row-gap: 10px; }
  .rate-price { grid-column: 2; text-align: left; }
  .rate-book { grid-column: 2; justify-self: start; }
}

/* reduced motion: let content be readable without JS animation */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator svg { animation: none; }
}
