/*
Theme Name: First Order Livery
Theme URI: https://example.com/first-order-livery
Author: You
Description: A luxurious, dark WordPress theme with a First Order vibe for premium transportation.
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: first-order-livery
*/

/* Base tokens */
:root {
  --fo-bg: #0b0b0c;
  --fo-bg-soft: #121214;
  --fo-card: #16161a;
  --fo-text: #e6e6e6;
  --fo-text-dim: #b9bcc2;
  --fo-red: #d91414;
  --fo-red-700: #b40f0f;
  --fo-border: #2a2b2f;
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--fo-bg);
  color: var(--fo-text);
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fo-red); text-decoration: none; }
a:hover { color: var(--fo-red-700); }

.container { width: min(1200px, 92vw); margin: 0 auto; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(180deg, var(--fo-red), var(--fo-red-700)); color: white;
  box-shadow: 0 10px 24px rgba(217,20,20,.25);
}
.btn--outline { background: transparent; border: 2px solid var(--fo-red); color: var(--fo-text); }
.btn:hover { filter: brightness(0.95); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(8px);
  background: rgba(12,12,14,.55);
  border-bottom: 1px solid var(--fo-border);
}
.site-header-inner { display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.4px; }
.brand__logo { width:36px; height:36px; border-radius:50%; background: radial-gradient(circle at 30% 30%, #2a2b2f, #0b0b0c); border:1px solid var(--fo-border); }
.main-nav a { color: var(--fo-text); padding: 10px 12px; border-radius: 8px; }
.main-nav a:hover { background: #1b1b20; }
.header-cta { display:flex; align-items:center; gap:8px; }
.header-cta .phone { font-weight:700; }

/* Hero */
.hero {
  position: relative; isolation: isolate; min-height: 72vh; display:grid; place-items:center;
  background: #000; /* fallback */
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.85));
  z-index: -1;
}
.hero .hero-inner { text-align:center; padding: 80px 0; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); margin: 0 0 12px; letter-spacing:.8px; }
.hero h1.glow { text-shadow: 0 0 12px rgba(217,20,20,.6), 0 0 32px rgba(217,20,20,.35); }
.hero p { color: var(--fo-text-dim); margin: 0 0 28px; }
.hero .cta-row { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* Sections */
.section { padding: 64px 0; }
.section--card { background: var(--fo-bg-soft); border-top:1px solid var(--fo-border); border-bottom:1px solid var(--fo-border); }
.section h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
.section p.lead { color: var(--fo-text-dim); margin-top:0; }

/* Grid */
.grid { display:grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--fo-card); border:1px solid var(--fo-border); border-radius: 16px; overflow:hidden; }
.card .card-body { padding: 18px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { color: var(--fo-text-dim); }
.card .card-actions { margin-top: 12px; }

/* Image-only mode */
.card--image-only .card-body { display: none; }

/* Single vehicle media grid */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.media-grid__item img { width: 100%; height: auto; border-radius: 12px; }

/* Footer */
.site-footer { background: #0a0a0b; border-top: 1px solid var(--fo-border); padding: 36px 0; color: var(--fo-text-dim); }
.site-footer a { color: var(--fo-text-dim); }
.site-footer a:hover { color: var(--fo-text); }

/* Forms */
.form { display:grid; gap:14px; }
.form input, .form textarea, .form select {
  background: #0e0e10; color: var(--fo-text); border:1px solid var(--fo-border);
  border-radius: 12px; padding: 12px 14px; width:100%;
}
.form button { align-self:start; }

/* Utilities */
.mt-0{margin-top:0} .mb-0{margin-bottom:0} .mt-24{margin-top:24px} .mb-24{margin-bottom:24px}
