@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── CSS Variables (brand tokens) ───────────────────────── */
:root {
  --burgundy:       #7A1228;
  --burgundy-deep:  #4E0B1A;
  --charcoal:       #232023;
  --ink:            #120D0E;
  --gold:           #B68A4E;
  --paper:          #F7F4F0;
  --mist:           #E7E1DA;
  --white:          #FFFFFF;
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--paper); color: var(--charcoal); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 300; line-height: 1.1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ── Typography ─────────────────────────────────────────── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.display { font-family: 'Fraunces', serif; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; }
.h1 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; }
.h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 300; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 400; }
.data-fig { font-family: 'IBM Plex Mono', monospace; font-feature-settings: 'tnum'; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 4px;
  background: var(--burgundy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.15s ease;
}
.btn-primary:hover  { background: var(--burgundy-deep); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 2rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-outline:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.25s ease;
}
.btn-gold:hover { background: var(--gold); color: var(--ink); }

/* ── Header / Nav ────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(18, 13, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.08);
}
.nav-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--gold); }

/* Mega-dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 17rem;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown-parent:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block;
  padding: 0.875rem 1.25rem;
  transition: background 0.15s ease;
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.05); }
.nav-dropdown a .dd-title { display: block; color: var(--white); font-size: 0.875rem; margin-bottom: 0.2rem; }
.nav-dropdown a .dd-sub   { display: block; color: rgba(255,255,255,0.45); font-size: 0.75rem; }

/* ── Glass surfaces ──────────────────────────────────────── */
.glass {
  background: rgba(18, 13, 14, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,13,14,0.92) 0%, rgba(18,13,14,0.3) 50%, rgba(18,13,14,0.1) 100%);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(122,18,40,0.4) 0%, transparent 60%);
}

/* ── Section spacing ─────────────────────────────────────── */
.section     { padding: 6rem 0; }
.section-lg  { padding: 9rem 0; }
.section-dark { background: var(--ink); }
.section-charcoal { background: var(--charcoal); }
.section-paper { background: var(--paper); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover { box-shadow: 0 24px 48px rgba(18,13,14,0.12); transform: translateY(-4px); }

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.card-dark:hover { border-color: rgba(182,138,78,0.35); }

/* Gold accent line inside cards */
.card-accent { width: 2.5rem; height: 2px; background: var(--burgundy); margin-bottom: 1.5rem; transition: width 0.3s ease; }
.card:hover .card-accent,
.card-dark:hover .card-accent { width: 4rem; }

/* ── Stat block ──────────────────────────────────────────── */
.stat-number { font-family: 'IBM Plex Mono', monospace; font-size: clamp(2rem, 4vw, 3.25rem); color: var(--white); font-weight: 400; line-height: 1; }
.stat-label  { font-size: 0.8125rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; }

/* ── Division pills ──────────────────────────────────────── */
.division-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(182,138,78,0.35);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus { outline: none; border-color: var(--gold); }

.form-input-light {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}
.form-input-light:focus { outline: none; border-color: var(--burgundy); }
.form-label { display: block; font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,0.6); margin-bottom: 0.4rem; }
.form-label-light { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.4rem; }

/* ── Swiper overrides ────────────────────────────────────── */
.swiper-testimonials-pagination .swiper-pagination-bullet { background: rgba(255,255,255,0.3); }
.swiper-testimonials-pagination .swiper-pagination-bullet-active { background: var(--gold); }

/* ── FAQ accordion ───────────────────────────────────────── */
[data-faq-panel] { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(.4,0,.2,1); }
[data-faq-icon] { transition: transform 0.3s ease; }

/* ── Utility ─────────────────────────────────────────────── */
.text-gold    { color: var(--gold); }
.text-burgundy{ color: var(--burgundy); }
.bg-burgundy  { background: var(--burgundy); }
.bg-ink       { background: var(--ink); }
.divide-gold > * + * { border-top: 1px solid rgba(182,138,78,0.2); }

/* ── Grid helpers ────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Responsive type helpers ─────────────────────────────── */
@media (max-width: 640px) {
  .section    { padding: 4rem 0; }
  .section-lg { padding: 5rem 0; }
}

/* ── Contact form 2-col ──────────────────────────────────── */
.form-2col { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media(min-width:640px) { .form-2col { grid-template-columns: 1fr 1fr; } }

/* ── Swiper testimonials equal height ────────────────────── */
.swiper-testimonials .swiper-slide { height: auto; }
.swiper-testimonials .swiper-wrapper { align-items: stretch; }

/* ── Section utilities missing ──────────────────────────── */
.section-lg   { padding: 9rem 0; }
.section-paper { background: var(--paper); }

/* ── Swiper overflow containment ─────────────────────────── */
.swiper { overflow: hidden; }
.swiper-fleet .swiper-slide { width: 300px; }
@media(min-width:640px)  { .swiper-fleet .swiper-slide { width: 340px; } }
@media(min-width:1024px) { .swiper-fleet .swiper-slide { width: 380px; } }

/* ── btn-outline light variant — dark text for use on paper/white backgrounds ── */
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--mist);
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.25s ease, border-color 0.25s ease;
  background: transparent;
}
.btn-outline-dark:hover { background: var(--mist); border-color: var(--charcoal); }
.btn-outline-dark:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

/* ── Booking panels ───────────────────────────────────────── */
.booking-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2rem;
}
.item-list::-webkit-scrollbar { width: 4px; }
.item-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 2px; }
.item-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ── Step dots ────────────────────────────────────────────── */
.step-dot { cursor: default; }

/* ── Auth forms — ensure input placeholder visible on dark bg ── */
.form-input::placeholder { color: rgba(255,255,255,0.3); }
select.form-input { color: rgba(255,255,255,0.8); }
select.form-input option { background: var(--ink); color: var(--white); }

/* ── Consultation topic radio buttons ──────────────────────── */
.topic-btn { user-select: none; }

/* ── iOS zoom prevention — inputs must be ≥16px ──────────── */
.form-input,
.form-input-light,
.a-input,
select.a-input,
textarea.a-input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  font-size: max(16px, 1rem) !important;
}

/* ── Mobile layout utilities ─────────────────────────────── */
@media (max-width: 639px) {
  .container { padding: 0 1rem; }
  .section    { padding: 3.5rem 0; }
  .section-lg { padding: 4.5rem 0; }
  .display    { font-size: clamp(2rem, 8vw, 4.5rem); }
  .h1         { font-size: clamp(1.625rem, 6vw, 3rem); }

  /* Stack 2-col grids on mobile */
  .form-2col  { grid-template-columns: 1fr !important; }
  .grid-3     { grid-template-columns: 1fr !important; }
  .grid-4     { grid-template-columns: 1fr 1fr !important; }

  /* Mobile booking wizard panels */
  .booking-panel { padding: 0; }

  /* Admin sidebar full-width on mobile */
  #admin-sidebar { width: 100%; }
}

/* ── Touch targets — minimum 44×44px ────────────────────── */
.nav-link,
.a-btn,
.btn-primary,
.btn-outline,
.btn-gold {
  min-height: 44px;
}

/* ── Swiper mobile slides full-width ─────────────────────── */
@media (max-width: 639px) {
  .swiper-fleet .swiper-slide  { width: 80vw !important; }
}

/* ── Footer grid responsive ──────────────────────────────── */
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}
