/* ==========================================================================
   CROWN RIDES — HOME PAGE
   ========================================================================== */

/* ==========================================================================
   1. HERO — editorial split: statement left, live booking panel right.
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--s-7));
  padding-bottom: var(--s-8);
  overflow: hidden;
  background: var(--c-black);

  /* The hero sits on black, so full-strength gold is safe here (9.99:1).
     --c-gold-deep would only reach 4.29:1 against this ground. */
  --text-accent: var(--c-gold);
  --border: rgba(255, 255, 255, 0.12);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% center;
  transform: scale(1.08);
  animation: hero-drift 18s var(--e-inout) forwards;
}
@keyframes hero-drift { to { transform: scale(1); } }

/* Two-layer scrim: vertical for legibility, horizontal to seat the headline */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.60) 0%, rgba(0,0,0,.14) 40%, rgba(0,0,0,.70) 100%),
    linear-gradient(100deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.26) 56%, rgba(0,0,0,0) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  /* minmax(0,…) — not 1fr — so a wide child can never push the column
     past the viewport. See the note on .segment. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  align-items: end;
  width: 100%;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
}

.hero__title {
  color: var(--c-white);
  max-width: 17ch;
}

.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: var(--fw-light);
  font-style: italic;
  color: var(--c-gold);
  letter-spacing: 0.01em;
}

.hero__lead {
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero__actions .btn--secondary { color: var(--c-white); }
.hero__actions .btn--secondary:hover { background: var(--c-white); color: var(--c-black); }

/* Scroll cue */
.hero__cue {
  display: none;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.hero__cue-line {
  display: block;
  width: 54px; height: 1px;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}
.hero__cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-gold);
  transform: translateX(-100%);
  animation: cue 2.4s var(--e-inout) infinite;
}
@keyframes cue {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* --------------------------------------------------------------------------
   1b. BOOKING PANEL — dark glass. One of only two glass surfaces on the site.
   -------------------------------------------------------------------------- */

.booking {
  position: relative;
  min-width: 0;
  padding: var(--s-6);
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
}

/* Gold hairline running along the panel's top edge */
.booking::before {
  content: "";
  position: absolute;
  top: -1px; left: var(--s-7); right: var(--s-7);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}

.booking__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.booking__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--fw-regular);
  color: var(--c-white);
}
.booking__note { font-size: var(--fs-xs); color: var(--c-n-400); }

.booking__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  margin-block: var(--s-5);
}

.booking__foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--glass-dark-border);
}
.booking__hint {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--c-n-400);
}
.booking__hint svg { width: 14px; height: 14px; color: var(--c-gold); flex: none; }

/* Conditional fields — revealed by the ride-type switcher */
.booking__conditional { display: none; }
.booking__conditional.is-active { display: flex; }

/* ==========================================================================
   7. ABOUT — asymmetric image + copy, with an overlapping stat card
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }

/* Sits ON the photograph, so it has to read as a separate object laid over
   it. It previously ran 529px wide against a 561px image and covered 37% of
   its own height — near-flush on three sides, which stops looking like a card
   on a photo and starts looking like one merged block with a dark bottom.
   Now: narrower than the image, inset from the edge, and only tucked far
   enough to prove it is in front. */
.about__stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-5) var(--s-6);
  background: var(--c-ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  margin-top: calc(var(--s-5) * -1);
  margin-inline: var(--s-6);
  position: relative;
  z-index: 2;
}
.about__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: var(--fw-light);
  line-height: 1;
  color: var(--c-gold);
}
.about__stat-label {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-n-400);
}

.about__copy { display: flex; flex-direction: column; gap: var(--s-5); }
.about__points { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-2); }
.about__point { display: flex; gap: var(--s-4); align-items: flex-start; }
.about__point svg { width: 20px; height: 20px; color: var(--text-accent); flex: none; margin-top: 4px; }

/* ==========================================================================
   8. TEAM
   ========================================================================== */

/* The team grid lives in components.css — /about renders it too and does not
   load this file. Leaving it here made the About page render the portraits at
   their natural size in a single column. Second time this has happened; see
   DECISIONS.md. If a component appears on more than the home page, it belongs
   in components.css. */


/* ==========================================================================
   RESPONSIVE — home page only
   ========================================================================== */

@media (min-width: 520px) {
  .booking__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking__foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .booking__foot .btn { flex: none; }
}

@media (min-width: 768px) {
  .about__grid  { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
  /* Only as wide as its own text, pushed to the right and held off the
     image edge. Width is what sells it as a separate card. */
  .about__stat  {
    width: fit-content;
    margin-inline: auto var(--s-6);
    margin-top: calc(var(--s-6) * -1);
    align-self: start;
  }
  .hero__cue    { display: flex; }
}

@media (min-width: 1024px) {
  .hero { align-items: center; padding-bottom: var(--s-9); }
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-9); align-items: center; }
  .booking { padding: var(--s-7); }
  .booking__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
}

@media (min-width: 1280px) {
  .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-10); }
}
