/* ============================================
   Dream Drive — Mobile-First Stylesheet
   Coastal Dark Luxury
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* Colors */
  --midnight: #0F0E0D;
  --charcoal: #1C1A18;
  --champagne: #C9A84C;
  --champagne-dim: #B8973A;
  --fog: #f5f2ed;
  --mist: #e8e4df;
  --warm-white: #fefdfb;
  --text-light: #EDE8DF;
  --text-light-muted: #8A8A8A;
  --text-dark: #0F0E0D;
  --text-dark-muted: #5e5a6b;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-pad: 6.5rem 1.5rem;
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.82;
  color: var(--text-light);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font: inherit;
  border: none;
  background: none;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 2.5rem;
}

/* Sections with a display heading: tighten label spacing */
.experience .section-label {
  margin-bottom: 0.625rem;
}

/* Display heading — Cormorant anchor for key sections */
.section__display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 3rem;
}

.section__display--light,
.experience .section__display,
.destinations .section__display {
  color: var(--text-light);
}

.section-label--dark {
  color: var(--text-dark-muted);
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition-base), transform 0.15s ease;
  min-height: 48px;
  min-width: 48px;
  padding: 0 2rem;
}

.btn--reserve {
  background: transparent;
  color: var(--champagne);
  border: 1px solid var(--champagne);
}

.btn--reserve:hover {
  background: var(--champagne);
  color: var(--midnight);
}

.btn--reserve:active {
  transform: scale(0.97);
}

/* ---------- Date Fields ---------- */
.date-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.date-field label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.date-field input[type="date"] {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  padding: 0.6rem 0.75rem;
  min-height: 48px;
  min-width: 48px;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}

.date-field input[type="date"]:focus {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
  border-color: var(--champagne);
}

/* Light-background date fields */
.date-field--light label {
  color: var(--text-dark-muted);
}

.date-field--light input[type="date"] {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color-scheme: light;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.25rem 3.5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.hero__slide--active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(8, 8, 16, 0.52) 0%,
      rgba(8, 8, 16, 0.45) 38%,
      rgba(8, 8, 16, 0.78) 74%,
      rgba(8, 8, 16, 0.97) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.hero__tagline::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--champagne);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.5), 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.01em;
}

.hero__supportline {
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-light-muted);
  margin-bottom: 2.5rem;
  max-width: 44ch;
}

.hero__booking {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__dates {
  display: flex;
  gap: 0.75rem;
}

.hero__dates .date-field {
  flex: 1;
}

.hero__reserve {
  width: 100%;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--champagne), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   EXPERIENCE
   ============================================ */
.experience {
  background: #0D0C0B;
  color: var(--text-light);
  padding: var(--section-pad);
}

.experience__steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.experience__step {
  position: relative;
}

.experience__number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.85;
  color: var(--champagne);
  opacity: 0.15;
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.experience__step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.experience__step p {
  font-size: 1rem;
  color: var(--text-light-muted);
  max-width: 38ch;
}

/* ============================================
   VEHICLE
   ============================================ */
.vehicle {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--charcoal) 50%, var(--midnight) 100%);
  padding: 0;
  overflow: hidden;
}

/* Single vehicle cinematic layout */
.vehicle[data-vehicles="1"] .vehicle__showcase {
  display: flex;
  flex-direction: column;
}

.vehicle__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.vehicle__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08) sepia(0.08) brightness(0.95);
}

.vehicle__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 40%,
    var(--charcoal) 100%
  );
}

.vehicle__info {
  padding: 2.5rem 1.25rem 4rem;
}

.vehicle__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.vehicle__name span {
  display: block;
  color: var(--champagne);
}

.vehicle__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.vehicle__specs li {
  font-size: 0.9rem;
  color: var(--text-light-muted);
}

.vehicle__specs strong {
  display: block;
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.vehicle__desc {
  font-size: 1rem;
  color: var(--text-light-muted);
  margin-bottom: 1.25rem;
  max-width: 50ch;
}

.vehicle__cargo {
  font-size: 0.9375rem;
  color: var(--text-light-muted);
  max-width: 50ch;
  padding-top: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(201, 168, 76, 0.35);
  margin-bottom: 2.5rem;
}

.vehicle__fleet-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
  opacity: 0.7;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 44ch;
  font-style: italic;
}

.vehicle__booking {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vehicle__dates {
  display: flex;
  gap: 0.75rem;
}

.vehicle__dates .date-field {
  flex: 1;
}

.vehicle__booking .btn--reserve {
  width: 100%;
}

/* ============================================
   DESTINATIONS
   ============================================ */
.destinations {
  background: var(--charcoal);
  color: var(--text-light);
  padding: var(--section-pad);
}

.destinations__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dest-card {
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dest-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.dest-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) sepia(0.06) brightness(0.88);
  transition: transform 0.6s var(--ease-out);
}

.dest-card:hover .dest-card__image img {
  transform: scale(1.03);
}

.dest-card__content {
  padding: 1.25rem;
}

.dest-card__content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.dest-card__content p {
  font-size: 1rem;
  color: var(--text-light-muted);
  line-height: 1.75;
}


/* ============================================
   TRUST
   ============================================ */
.trust {
  background: var(--charcoal);
  padding: var(--section-pad);
}

.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.trust__item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.trust__item p {
  font-size: 1rem;
  color: var(--text-light-muted);
}

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact {
  background: var(--midnight);
  padding: var(--section-pad);
  padding-bottom: 6rem; /* Clear fixed bottom bar on mobile */
}

.contact__intro {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-light-muted);
  margin-bottom: 2rem;
  max-width: 38ch;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.contact__link {
  font-size: 1rem;
  color: var(--champagne);
  transition: color var(--transition-base);
}

.contact__link:hover {
  color: var(--text-light);
}

.contact__delivery {
  margin-bottom: 3rem;
}

.contact__delivery h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-bottom: 0.75rem;
}

.contact__delivery li {
  font-size: 1rem;
  color: var(--text-light-muted);
  padding: 0.25rem 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.35rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.footer__tagline-anchor {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--champagne);
  opacity: 0.7;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.footer__address {
  font-size: 0.875rem;
  color: var(--text-light-muted);
  margin-bottom: 0.25rem;
}

.footer__legal {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ============================================
   FIXED BOTTOM BAR (mobile)
   ============================================ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 14, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.bottom-bar.visible {
  transform: translateY(0);
}

.bottom-bar__inner {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.bottom-bar__dates {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

.date-field--compact {
  flex: 1;
}

.date-field--compact label {
  font-size: 0.625rem;
}

.date-field--compact input[type="date"] {
  font-size: 0.8rem;
  padding: 0.45rem 0.5rem;
  min-height: 40px;
}

.btn--compact {
  padding: 0 1.25rem;
  min-height: 40px;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* ============================================
   DESKTOP NAV (hidden on mobile)
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  height: 64px;
  background: rgba(15, 14, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
}

.nav.visible {
  transform: translateY(0);
}

.nav--condensed {
  height: 52px;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--text-light);
  white-space: nowrap;
  margin-right: auto;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  transition: color var(--transition-base);
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--text-light);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.date-field--nav input[type="date"] {
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  min-height: 36px;
  width: 140px;
}

.btn--nav {
  min-height: 36px;
  padding: 0 1.25rem;
  font-size: 0.7rem;
}

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================
   RESPONSIVE — Tablet (600px)
   ============================================ */
@media (min-width: 600px) {
  :root {
    --section-pad: 8rem 2.5rem;
  }

  .hero {
    padding: 3rem 2rem 4rem;
  }

  .hero__booking {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem;
  }

  .hero__dates {
    flex: 1;
  }

  .hero__reserve {
    width: auto;
    flex-shrink: 0;
  }

  .experience__steps {
    flex-direction: row;
    gap: 2rem;
  }

  .experience__step {
    flex: 1;
  }

  .vehicle__booking {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem;
  }

  .vehicle__dates {
    flex: 1;
    max-width: 320px;
  }

  .vehicle__booking .btn--reserve {
    width: auto;
    flex-shrink: 0;
  }

  .destinations__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .dest-card:first-child {
    grid-column: 1 / -1;
  }

  .trust__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__details {
    flex-direction: row;
    gap: 2rem;
  }
}

/* ============================================
   RESPONSIVE — Desktop (960px)
   ============================================ */
@media (min-width: 960px) {
  :root {
    --section-pad: 10rem 3rem;
  }

  /* Show desktop nav, hide bottom bar */
  .nav {
    display: flex;
  }

  .bottom-bar {
    display: none;
  }

  .hero {
    justify-content: center;
    padding: 6rem 3rem;
  }

  .hero__content {
    max-width: 700px;
  }

  .hero__scroll-hint {
    bottom: 2.5rem;
  }

  /* Vehicle side-by-side */
  .vehicle[data-vehicles="1"] .vehicle__showcase {
    flex-direction: row;
    min-height: 100vh;
  }

  .vehicle__image-wrap {
    flex: 1.2;
    aspect-ratio: auto;
    position: relative;
  }

  .vehicle__image-wrap::after {
    background: linear-gradient(90deg,
      transparent 50%,
      var(--charcoal) 100%
    );
  }

  .vehicle__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem;
  }

  .experience__steps {
    gap: 3rem;
  }

  .experience__number {
    font-size: clamp(6rem, 10vw, 9rem);
  }

  .trust__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer__bottom {
    grid-column: 1 / -1;
  }
}

/* ============================================
   RESPONSIVE — Wide (1280px)
   ============================================ */
@media (min-width: 1280px) {
  .hero {
    padding: 6rem 4rem;
  }

  .hero__content {
    max-width: 800px;
  }

  .vehicle__info {
    padding: 5rem 4rem;
  }

  .container {
    padding: 0 2rem;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-hint span {
    animation: none;
    opacity: 0.5;
  }

  .bottom-bar,
  .nav {
    transition: none;
  }

  .dest-card__image img {
    transition: none;
  }
}
