/* ==========================================================================
   ZLINE AUSTIN LIMOUSINE — design tokens
   Palette: asphalt charcoal + brass trim + taillight red (sparing) + dusk grey
   Type: DM Serif Display (headline) / Manrope (body) / JetBrains Mono (data)
   Signature element: departure-board route ticker
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0e0f11;
  --bg-alt: #17181b;
  --bg-alt-2: #1e2023;
  --ink: #f3f1ec;
  --ink-dim: #b7b4ac;
  --ink-faint: #7c7a75;
  --brass: #b08d57;
  --brass-light: #d9bc85;
  --taillight: #9a2a20;
  --taillight-bright: #c8493c;
  --dusk: #3a4750;
  --line: rgba(243, 241, 236, 0.12);
  --line-strong: rgba(243, 241, 236, 0.22);

  /* Translucent panels — let the tarmac backdrop read through every page */
  --panel: rgba(14, 15, 17, 0.68);
  --panel-alt: rgba(21, 22, 25, 0.74);
  --panel-field: rgba(23, 24, 27, 0.72);
  --panel-header: rgba(14, 15, 17, 0.72);

  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Site-wide photographic backdrop ---------- */
/* Fixed pseudo-layers rather than background-attachment: fixed, which is
   unreliable on iOS. ::before holds the photo, ::after the readability scrim. */

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url('/assets/images/fleet-tarmac-bg.jpg') center 35% / cover no-repeat;
}

body::after {
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(14, 15, 17, 0.74) 0%,
    rgba(14, 15, 17, 0.6) 38%,
    rgba(14, 15, 17, 0.66) 64%,
    rgba(14, 15, 17, 0.82) 100%
  );
}

@media (max-width: 760px) {
  body::before { background-image: url('/assets/images/fleet-tarmac-bg-mobile.jpg'); }
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Typography ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

p.lede {
  font-size: 1.15rem;
  color: var(--ink-dim);
  max-width: 46ch;
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel-header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand .mark {
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--ink);
}

nav.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brass);
}

.nav-cta {
  background: var(--brass);
  color: var(--bg) !important;
  padding: 10px 20px;
  border-radius: 2px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--brass-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 40px; height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  nav.main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(14, 15, 17, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 20px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 15px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--brass); color: var(--bg); }
.btn-primary:hover { background: var(--brass-light); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-light); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 82% -10%, rgba(176,141,87,0.16), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(243,241,236,0.035) 118px 120px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin: 18px 0 20px; }
.hero h1 em { color: var(--brass-light); font-style: normal; }

.hero-cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-art {
  aspect-ratio: 4/3;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(160deg, rgba(30, 32, 35, 0.6), rgba(14, 15, 17, 0.78));
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.hero-art .plate {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
}

.hero-art .beam {
  position: absolute;
  width: 240%; height: 140px;
  background: radial-gradient(ellipse at center, rgba(217,188,133,0.16), transparent 70%);
  top: -40px; left: -70%;
  transform: rotate(-8deg);
}

.hero-art .skyline {
  position: absolute; bottom: 0; left: 0; right: 0; height: 46%;
  background:
    linear-gradient(0deg, var(--bg) 0%, transparent 100%),
    repeating-linear-gradient(90deg, var(--bg-alt) 0 26px, var(--bg-alt-2) 26px 52px, transparent 52px 90px);
  clip-path: polygon(0 60%, 4% 40%, 9% 55%, 14% 20%, 20% 45%, 27% 30%, 34% 50%, 41% 15%, 48% 42%, 55% 25%, 62% 48%, 70% 35%, 77% 55%, 85% 22%, 92% 46%, 100% 30%, 100% 100%, 0 100%);
  opacity: 0.9;
}

.hero-art .caption {
  position: relative;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Departure board (signature element) ---------- */

.board {
  border: 1px solid var(--line-strong);
  background: var(--panel-alt);
  backdrop-filter: blur(8px);
  margin-top: 40px;
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.board-head .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--taillight-bright);
  margin-right: 8px;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.board-row {
  display: grid;
  grid-template-columns: 2.2fr 2.2fr 1fr 1fr;
  gap: 12px;
  padding: 13px 18px;
  font-family: var(--mono);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
}
.board-row:last-child { border-bottom: none; }
.board-row .route-to { color: var(--ink); }
.board-row .status { color: var(--brass-light); text-align: right; }

@media (max-width: 480px) {
  .board-row { grid-template-columns: 1fr 1fr; row-gap: 4px; font-size: 0.74rem; }
  .board-row .status { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.border-top { border-top: 1px solid var(--line); }
.bg-alt { background: var(--panel-alt); backdrop-filter: blur(8px); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

/* ---------- Cards ---------- */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  backdrop-filter: blur(8px);
  padding: 32px 28px;
}
.card .num {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.card h3 { margin: 14px 0 10px; font-size: 1.25rem; }
.card p { color: var(--ink-dim); font-size: 0.95rem; }

/* ---------- Stats ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

.stat .value {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--brass-light);
}
.stat .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* ---------- Testimonial ---------- */

.testimonial {
  border-left: 2px solid var(--brass);
  padding-left: 28px;
  max-width: 720px;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
}
.testimonial cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: rgba(58, 71, 80, 0.62);
  backdrop-filter: blur(8px);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--ink-dim); margin: 0 auto 32px; max-width: 50ch; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; color: var(--ink-dim); }
.footer-grid a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page header (inner pages) ---------- */

.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { margin-bottom: 14px; }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input, .field select, .field textarea {
  background: var(--panel-field);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 16px;
}

.form-success {
  display: none;
  border: 1px solid var(--brass);
  background: rgba(176,141,87,0.08);
  padding: 20px;
  margin-top: 20px;
  font-size: 0.92rem;
}
.form-success.show { display: block; }

/* ---------- Utility ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.vehicle-art {
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, rgba(30, 32, 35, 0.6), rgba(14, 15, 17, 0.78));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.vehicle-art::after {
  content: '';
  position: absolute; left: 8%; right: 8%; bottom: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.6;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 64px 0;
}

.focus-visible-ring:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
