/* ============================================================
   LUSTRAVVIA — Main CSS Entry Point
   ============================================================ */

@import url('./tokens.css');
@import url('./typography.css');
@import url('./animations.css');
@import url('./components.css');


/* ─── GLOBAL BASE ──────────────────────────────────────────── */

html, body {
  width: 100%;
  min-height: 100%;
  color-scheme: dark;
}

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

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

button {
  cursor: pointer;
}

/* Scrollbar — minimal dark */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--lv-abyss);
}

::-webkit-scrollbar-thumb {
  background: var(--lv-graphite);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lv-mist);
}


/* ─── SECTIONS — Thematic environments ─────────────────────── */

/* Dark aviation — primary Lustravvia environment */
.env-dark {
  background: var(--lv-void);
  color: var(--lv-white);
}

/* Deep midnight */
.env-midnight {
  background: var(--lv-abyss);
  color: var(--lv-white);
}

/* Elevated dark surface */
.env-elevated {
  background: var(--lv-charcoal);
  color: var(--lv-white);
}

/* Warm ivory — editorial sections */
.env-ivory {
  background: var(--lv-ivory);
  color: var(--lv-void);
}

.env-ivory .lv-section-label {
  color: var(--lv-accent-dim);
}

.env-ivory .lv-section-label::before {
  background: var(--lv-accent-dim);
}

/* Pure white */
.env-white {
  background: var(--lv-white);
  color: var(--lv-void);
}

/* Stone */
.env-stone {
  background: var(--lv-stone);
  color: var(--lv-void);
}


/* ─── HERO ──────────────────────────────────────────────────── */

.lv-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

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

.lv-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: lv-parallax-drift 20s ease-in-out infinite alternate;
}

.lv-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.75) 85%,
    rgba(11,12,17,1) 100%
  );
  z-index: 1;
}

.lv-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-16) var(--section-padding-x);
  padding-top: calc(var(--nav-height) + var(--space-20));
}

.lv-hero__eyebrow {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lv-champagne);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: lv-fade-up 0.8s var(--ease-luxury) 0.3s both;
}

.lv-hero__headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--display-lg);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--lv-white);
  max-width: 16ch;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: lv-fade-up 1s var(--ease-luxury) 0.5s both;
}

.lv-hero__headline em {
  font-style: italic;
  color: rgba(255,255,255,0.7);
}

.lv-hero__subhead {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--lv-silver);
  line-height: var(--leading-relaxed);
  max-width: 50ch;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: lv-fade-up 1s var(--ease-luxury) 0.7s both;
}

.lv-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  opacity: 0;
  animation: lv-fade-up 1s var(--ease-luxury) 0.9s both;
}

/* Scroll indicator */
.lv-hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: lv-fade-in 1s ease 1.5s both;
}

.lv-hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: lv-fade-up 2s ease infinite;
}

.lv-hero__scroll-label {
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lv-mist);
  writing-mode: vertical-lr;
}

/* Journey line — animated SVG path connecting cities */
.lv-journey-arc {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
}

.lv-journey-arc path {
  stroke: var(--lv-champagne);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 8 4;
  animation: lv-journey-line 3s var(--ease-luxury) 1.5s both;
}


/* ─── GLOVE SVG (inline brand mark) ────────────────────────── */

.lv-glove-mark {
  display: block;
}

.lv-glove-mark svg {
  width: 100%;
  height: 100%;
}


/* ─── AIRCRAFT CATEGORY SCROLL ─────────────────────────────── */

.lv-category-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-4);
}

.lv-category-scroll::-webkit-scrollbar {
  display: none;
}

.lv-category-scroll__track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  padding: var(--space-2) 0;
}

.lv-category-card {
  position: relative;
  width: 320px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur-slow) var(--ease-luxury);
}

.lv-category-card__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slower) var(--ease-luxury);
}

.lv-category-card:hover .lv-category-card__image {
  transform: scale(1.06);
}

.lv-category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.2) 50%,
    transparent 100%
  );
}

.lv-category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
}

.lv-category-card__label {
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lv-champagne);
  margin-bottom: var(--space-2);
}

.lv-category-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--lv-white);
}

.lv-category-card__range {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--lv-mist);
  margin-top: var(--space-2);
}


/* ─── STATS / SPECS ROW ─────────────────────────────────────── */

.lv-stats-row {
  display: flex;
  gap: var(--space-12);
  align-items: flex-end;
}

.lv-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.lv-stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--lv-white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.lv-stat__unit {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--lv-champagne);
  margin-left: var(--space-1);
}

.lv-stat__label {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lv-mist);
}


/* ─── ECOSYSTEM CARDS ───────────────────────────────────────── */

.lv-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
}

.lv-ecosystem-card {
  background: var(--lv-void);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  cursor: pointer;
  transition: all var(--dur-slow) var(--ease-luxury);
  position: relative;
  overflow: hidden;
}

.lv-ecosystem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lv-charcoal);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-luxury);
}

.lv-ecosystem-card:hover::before {
  opacity: 1;
}

.lv-ecosystem-card__content {
  position: relative;
  z-index: 1;
}

.lv-ecosystem-card__icon {
  color: var(--lv-champagne);
  margin-bottom: var(--space-4);
  opacity: 0.8;
}

.lv-ecosystem-card__label {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lv-champagne);
  margin-bottom: var(--space-2);
}

.lv-ecosystem-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--lv-white);
  margin-bottom: var(--space-3);
}

.lv-ecosystem-card__desc {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--lv-mist);
  line-height: var(--leading-relaxed);
}

.lv-ecosystem-card__cta {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lv-mist);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: color var(--transition-normal);
}

.lv-ecosystem-card:hover .lv-ecosystem-card__cta {
  color: var(--lv-champagne);
}

.lv-ecosystem-card__coming-soon {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lv-mist);
  background: rgba(255,255,255,0.05);
  padding: var(--space-1) var(--space-3);
}


/* ─── ITINERARY DOSSIER ─────────────────────────────────────── */

.lv-itinerary {
  background: var(--lv-charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-8);
}

.lv-itinerary__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--space-6);
}

.lv-itinerary__segment {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.lv-itinerary__segment:last-child {
  border-bottom: none;
}

.lv-itinerary__time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--lv-champagne);
  min-width: 50px;
  flex-shrink: 0;
}

.lv-itinerary__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lv-graphite);
  flex-shrink: 0;
  margin-top: 4px;
}

.lv-itinerary__dot--active {
  background: var(--lv-champagne);
}

.lv-itinerary__details {
  flex: 1;
}

.lv-itinerary__event {
  font-size: var(--text-sm);
  color: var(--lv-white);
  font-weight: 400;
}

.lv-itinerary__meta {
  font-size: var(--text-xs);
  color: var(--lv-mist);
  margin-top: var(--space-1);
}


/* ─── FILTER PANEL ──────────────────────────────────────────── */

.lv-filter-panel {
  background: var(--lv-charcoal);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.lv-filter-group__title {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lv-mist);
  margin-bottom: var(--space-4);
}

.lv-filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--lv-silver);
  transition: color var(--transition-fast);
}

.lv-filter-option:hover {
  color: var(--lv-white);
}

.lv-filter-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  position: relative;
}

.lv-filter-option input[type="checkbox"]:checked {
  background: var(--lv-champagne);
  border-color: var(--lv-champagne);
}

.lv-filter-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 7px;
  border-right: 1.5px solid var(--lv-void);
  border-bottom: 1.5px solid var(--lv-void);
  transform: rotate(45deg);
}


/* ─── ACCOUNT / CLIENT PORTAL ───────────────────────────────── */

.lv-portal {
  min-height: 100svh;
  background: var(--lv-abyss);
  display: grid;
  grid-template-columns: 280px 1fr;
}

.lv-portal__sidebar {
  background: var(--lv-charcoal);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: calc(var(--nav-height) + var(--space-8));
}

.lv-portal__sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--lv-mist);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.lv-portal__sidebar-item:hover {
  color: var(--lv-white);
  background: rgba(255,255,255,0.04);
}

.lv-portal__sidebar-item.is-active {
  color: var(--lv-white);
  border-left-color: var(--lv-champagne);
  background: rgba(255,255,255,0.04);
}

.lv-portal__main {
  padding: calc(var(--nav-height) + var(--space-10)) var(--space-10) var(--space-10);
  overflow-y: auto;
}


/* ─── TYPOGRAPHY HELPERS ────────────────────────────────────── */

.balance    { text-wrap: balance; }
.pretty     { text-wrap: pretty; }
.nowrap     { white-space: nowrap; }
.uppercase  { text-transform: uppercase; }
.italic     { font-style: italic; }
