/* ==========================================================================
   Runway Chauffeurs — pages.css
   Art-directed sections: hero, quote panel, showcase, timeline, CTA, headers.
   ========================================================================== */

/* ----- Atmospheric background helper ------------------------------------ */
.glow-top { position: relative; isolation: isolate; }
.glow-top::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 60%; z-index: -1;
  background: radial-gradient(60% 100% at 50% 0%, var(--gold-08), transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.62) 46%, rgba(8,8,8,0.18) 100%),
    linear-gradient(0deg, rgba(8,8,8,0.85) 0%, transparent 52%);
}
.hero__inner {
  min-height: min(90vh, 820px);
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
}
.hero__content { max-width: min(680px, 100%); }
.hero__content > * { max-width: 100%; }
.hero__eyebrow { margin-bottom: 1.5rem; }
.hero h1 { font-size: var(--step-5); margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero__lede { font-size: var(--step-1); color: #d9d3c8; max-width: 52ch; margin-bottom: 2.2rem; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-bottom: 2.4rem; }
.hero__phone { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.hero__phone .icon { color: var(--gold); }
.hero__phone span { color: var(--muted); font-weight: 400; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__trust li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.92rem; color: #cfc9be; }
.hero__trust .icon { color: var(--gold); width: 1.2em; height: 1.2em; }

/* Vertical side label */
.hero__aside {
  position: absolute; right: clamp(1rem, 2vw, 2.5rem); top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--muted-2); display: none;
}
@media (min-width: 1200px) { .hero__aside { display: block; } }

/* ==========================================================================
   QUOTE PANEL (compact, home) / full form
   ========================================================================== */
.quote-panel {
  background: var(--surface-2); border: 1px solid var(--gold-14);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  position: relative;
}
.quote-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.quote-panel__head h2 { font-size: var(--step-2); }
.quote-panel__head p { color: var(--muted); font-size: 0.9rem; }
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.quote-grid .col-span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .quote-grid { grid-template-columns: 1fr; } .quote-grid .col-span-2 { grid-column: auto; } }

/* Hero overlaps quote panel on desktop */
.hero-quote { position: relative; }
.hero-quote__panel { margin-top: -3.5rem; position: relative; z-index: 5; }
@media (max-width: 900px) { .hero-quote__panel { margin-top: 0; } }

/* Full quote layout (quote page) */
.quote-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (max-width: 940px) { .quote-layout { grid-template-columns: 1fr; } }
.quote-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
@media (max-width: 940px) { .quote-aside { position: static; } }
.fieldset-group { border: 0; padding: 0; margin: 0 0 1.75rem; }
.fieldset-group > legend { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; margin-bottom: 1.1rem; padding: 0; display: flex; align-items: center; gap: 0.6rem; }
.fieldset-group > legend .num { width: 30px; height: 30px; border: 1px solid var(--gold-40); border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; }

/* ==========================================================================
   PAGE HEADER (interior pages)
   ========================================================================== */
.page-header { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-header__media { position: absolute; inset: 0; z-index: -2; }
.page-header__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.page-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,8,8,0.92), rgba(8,8,8,0.7) 60%, rgba(8,8,8,0.45)),
              linear-gradient(0deg, var(--bg), transparent 60%);
}
.page-header__inner { padding-block: clamp(3rem, 2.5rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); }
.page-header .breadcrumbs { margin-bottom: 1.6rem; }
.page-header__eyebrow { margin-bottom: 1.1rem; }
.page-header h1 { font-size: var(--step-4); max-width: 18ch; margin-bottom: 1.2rem; }
.page-header__lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }

/* ==========================================================================
   SERVICE SHOWCASE (varied, not identical cards)
   ========================================================================== */
.showcase { display: grid; gap: 1.25rem; grid-template-columns: repeat(12, 1fr); }
.svc {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  display: flex; flex-direction: column; min-height: 250px;
  grid-column: span 4;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  isolation: isolate;
}
.svc:hover { border-color: var(--gold-22); transform: translateY(-4px); }
.svc__media { position: absolute; inset: 0; z-index: -2; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.26; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.svc:hover .svc__media img { opacity: 0.4; transform: scale(1.05); }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(16,16,16,0.5), rgba(12,12,12,0.94)); }
.svc__icon { width: 46px; height: 46px; border: 1px solid var(--gold-22); border-radius: 50%; display: grid; place-items: center; color: var(--gold); margin-bottom: auto; background: rgba(8,8,8,0.4); }
.svc__eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 1.4rem 0 0.55rem; font-weight: 600; }
.svc h3 { font-size: var(--step-2); margin-bottom: 0.55rem; }
.svc p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.2rem; max-width: 42ch; }
.svc__link { margin-top: auto; }
/* Two feature tiles span half-width and stand taller, creating rhythm */
.svc--feature { grid-column: span 6; min-height: 330px; }
.svc--feature h3 { font-size: var(--step-3); }
.svc--feature .svc__media img { opacity: 0.34; }
@media (max-width: 1024px) {
  .svc { grid-column: span 6; }
  .svc--feature { grid-column: span 6; }
}
@media (max-width: 620px) {
  .svc, .svc--feature { grid-column: 1 / -1; }
}

/* ==========================================================================
   JOURNEY TIMELINE (how it works)
   ========================================================================== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.timeline__step { position: relative; padding-top: 2.5rem; }
.timeline__step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold);
}
.timeline__step::after {
  content: ""; position: absolute; top: 0.9rem; left: 3rem; right: -0.75rem; height: 1px;
  background: linear-gradient(90deg, var(--gold-40), transparent);
}
.timeline__step:last-child::after { display: none; }
.timeline__icon { width: 48px; height: 48px; border: 1px solid var(--gold-22); border-radius: 50%; display: grid; place-items: center; color: var(--gold); margin-bottom: 1.2rem; background: var(--surface); }
.timeline__step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.timeline__step p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } .timeline__step:nth-child(2)::after { display: none; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } .timeline__step::after { display: none; } }

/* ==========================================================================
   DESTINATIONS
   ========================================================================== */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.dest {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
  overflow: hidden;
}
.dest:hover { border-color: var(--gold-22); transform: translateY(-3px); background: var(--surface-2); }
.dest__code { position: absolute; top: 1rem; right: 1.25rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-40); letter-spacing: 0.05em; }
.dest__icon { color: var(--gold); width: 1.6em; height: 1.6em; margin-bottom: 0.6rem; }
.dest h3 { font-size: var(--step-1); }
.dest p { color: var(--muted); font-size: 0.9rem; }
.dest__confirm { margin-top: 0.6rem; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 0.4rem; }

/* ==========================================================================
   VEHICLES
   ========================================================================== */
.vehicle {
  display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); transition: border-color 0.4s var(--ease);
}
.vehicle:hover { border-color: var(--gold-22); }
.vehicle__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.vehicle__media img { width: 100%; height: 100%; object-fit: cover; }
.vehicle__body { padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.vehicle__best { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.vehicle h3 { font-size: var(--step-2); margin: 0.5rem 0 0.4rem; }
.vehicle__summary { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.3rem; }
.vehicle__specs { display: grid; gap: 0.85rem; padding: 1.3rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.3rem; }
.vehicle__spec { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.vehicle__spec .icon { color: var(--gold); flex: none; margin-top: 0.1em; width: 1.2em; height: 1.2em; }
.vehicle__spec strong { color: var(--text); display: block; font-weight: 600; }
.vehicle__features { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-size: 0.78rem; padding: 0.35rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--muted); }
.vehicle__access { margin-top: 1.2rem; font-size: 0.86rem; color: var(--muted); display: flex; gap: 0.6rem; align-items: flex-start; }
.vehicle__access .icon { color: var(--gold); flex: none; margin-top: 0.15em; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-note { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-22); border-radius: 100px; padding: 0.4rem 0.9rem; }
.tstm { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; height: 100%; }
.tstm__quote { color: var(--gold); width: 2.2rem; height: 2.2rem; margin-bottom: 1rem; opacity: 0.85; }
.tstm__stars { display: flex; gap: 0.2rem; margin-bottom: 1rem; color: var(--gold); }
.tstm__stars .icon { width: 1.05em; height: 1.05em; fill: var(--gold); }
.tstm__text { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; color: var(--text); margin-bottom: 1.5rem; font-style: italic; }
.tstm__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tstm__name { font-weight: 600; }
.tstm__meta { font-size: 0.82rem; color: var(--muted); }
.tstm__badge { font-size: 0.72rem; color: var(--muted-2); border: 1px dashed var(--gold-22); border-radius: 4px; padding: 0.25rem 0.5rem; }

/* ==========================================================================
   CORPORATE / EVENT FEATURE (distinct band)
   ========================================================================== */
.feature-band { position: relative; overflow: hidden; isolation: isolate; background: var(--surface-2); border-block: 1px solid var(--gold-14); }
.feature-band__media { position: absolute; inset: 0 0 0 auto; width: 45%; z-index: -2; }
.feature-band__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface-2), rgba(23,23,23,0.3) 60%, transparent); }
.feature-band__inner { padding-block: var(--space-section); max-width: 620px; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.5rem; margin-top: 1.8rem; }
.feature-list li { display: flex; gap: 0.6rem; align-items: center; color: var(--muted); font-size: 0.95rem; }
.feature-list .icon { color: var(--gold); width: 1.1em; height: 1.1em; flex: none; }
@media (max-width: 820px) { .feature-band__media { display: none; } .feature-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   PULL QUOTE
   ========================================================================== */
.pullquote { text-align: center; max-width: 24ch; margin-inline: auto; }
.pullquote blockquote { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.12; font-style: italic; }
.pullquote blockquote span { color: var(--gold); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta-final { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 50% 0%, var(--gold-08), transparent 60%); }
.cta-final__inner { padding-block: var(--space-section); max-width: 720px; margin-inline: auto; }
.cta-final h2 { font-size: var(--step-4); margin-bottom: 1.2rem; }
.cta-final p { color: var(--muted); font-size: var(--step-1); margin-bottom: 2rem; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; align-items: center; }
.cta-final__phone { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); font-weight: 600; }
.cta-final__phone .icon { color: var(--gold); }

/* ==========================================================================
   PROSE (legal & long-form)
   ========================================================================== */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 1rem; }
.prose h3 { font-size: var(--step-1); margin: 1.8rem 0 0.7rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: 1rem; }
.prose ul { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.prose a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose__updated { font-size: 0.85rem; color: var(--muted-2); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }

/* ----- Intro/brand two-column with stats -------------------------------- */
.intro-cols { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (max-width: 860px) { .intro-cols { grid-template-columns: 1fr; } }

/* ----- Info cards (contact) --------------------------------------------- */
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; display: flex; gap: 1rem; align-items: flex-start; }
.info-card .icon { color: var(--gold); width: 1.5em; height: 1.5em; flex: none; }
.info-card h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.3rem; }
.info-card a, .info-card p { color: var(--muted); font-size: 0.95rem; }
.info-card a:hover { color: var(--gold); }

/* ----- 404 -------------------------------------------------------------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound__code { font-family: var(--font-display); font-size: clamp(6rem, 4rem + 14vw, 14rem); line-height: 0.9; color: var(--gold); opacity: 0.85; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }

/* ==========================================================================
   GALLERY + LIGHTBOX
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); }
.gallery__item { margin: 0; }
.gallery__btn {
  display: block; width: 100%; padding: 0; cursor: zoom-in; position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.gallery__btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8,8,8,0.45));
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.gallery__btn:hover { border-color: var(--gold-22); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__btn:hover::after { opacity: 1; }
.gallery__btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.lightbox {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center;
  padding: clamp(1rem, 2vw, 3rem);
  background: rgba(5,5,5,0.93); backdrop-filter: blur(6px);
  animation: lb-fade 0.25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox__stage { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(1100px, 94vw); }
.lightbox__img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain;
  border: 1px solid var(--gold-14); border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--surface);
}
.lightbox__caption { margin-top: 0.9rem; color: var(--muted); font-size: 0.9rem; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: fixed; border: 1px solid var(--line-strong); color: var(--text);
  background: rgba(8,8,8,0.65); display: grid; place-items: center; border-radius: 50%;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { color: var(--gold); border-color: var(--gold-40); background: rgba(8,8,8,0.85); }
.lightbox__close { top: clamp(0.8rem, 2vw, 1.6rem); right: clamp(0.8rem, 2vw, 1.6rem); width: 48px; height: 48px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav--prev { left: clamp(0.5rem, 2vw, 1.6rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2vw, 1.6rem); }
.lightbox__nav--prev .icon { transform: rotate(90deg); }
.lightbox__nav--next .icon { transform: rotate(-90deg); }
.lightbox__close .icon, .lightbox__nav .icon { width: 1.4em; height: 1.4em; }
.lightbox__counter { position: fixed; bottom: clamp(0.8rem, 2vw, 1.4rem); left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.82rem; letter-spacing: 0.1em; }
@keyframes lb-fade { from { opacity: 0; } }
@media (max-width: 640px) { .lightbox__nav { width: 44px; height: 44px; } .lightbox__img { max-height: 74vh; } }

/* ----- Anchored section offset for in-page links ------------------------ */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
