/* ─────────────────────────────────────────────────────────
   D'NX Motors. Shared landing-page styles
   Tokens lifted 1:1 from index.html (brand red #BD000D, black, Roboto).
   Used by lp-financing, lp-used-cars, lp-trucks, lp-suvs, lp-forest, lp-altavista.
   ───────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background: #000; color: #f5f5f5; overflow-x: hidden; line-height: 1.6; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #BD000D; border-radius: 3px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── STRIPPED NAV (logo + call only) ── */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: rgba(0,0,0,0.92); backdrop-filter: blur(12px); box-shadow: 0 2px 24px rgba(0,0,0,0.6); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo span { font-weight: 900; font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.nav-logo .red { color: #BD000D; }
.nav-call { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; border: 1px solid rgba(189,0,13,0.5); padding: 9px 18px; border-radius: 4px; transition: background 0.25s, border-color 0.25s; }
.nav-call svg { width: 17px; height: 17px; color: #BD000D; }
.nav-call:hover { background: rgba(189,0,13,0.1); border-color: #BD000D; }
.nav-call .num { white-space: nowrap; }
@media (max-width: 520px) { .nav-call .num { display: none; } .nav-call { padding: 9px 12px; } }

/* ── BUTTONS ── */
.btn-primary { background: #BD000D; color: #fff; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 15px 36px; border: 2px solid #BD000D; transition: all 0.3s; display: inline-block; cursor: pointer; text-align: center; }
.btn-primary:hover { background: #9a000b; border-color: #9a000b; box-shadow: 0 0 30px rgba(189,0,13,0.3); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 15px 36px; border: 2px solid rgba(255,255,255,0.4); transition: all 0.3s; display: inline-block; cursor: pointer; text-align: center; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); transform: translateY(-2px); }

/* ── HERO (photo backdrop + 2-col copy/form) ── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; background: linear-gradient(180deg, #0a0a0a 0%, #000 40%, #080808 100%); padding: 110px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 25% 50%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.82) 55%, rgba(0,0,0,0.92) 100%), repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(189,0,13,0.012) 2px, rgba(189,0,13,0.012) 4px); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; width: 100%; }
.hero-copy h1 { font-size: 3rem; font-weight: 900; line-height: 1.08; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 18px; }
.hero-copy h1 .accent { color: #BD000D; }
.hero-sub { font-size: 1.12rem; color: rgba(255,255,255,0.7); font-weight: 400; margin-bottom: 28px; max-width: 520px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: rgba(255,255,255,0.5); }
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-dot { width: 6px; height: 6px; background: #BD000D; border-radius: 50%; flex-shrink: 0; }

/* ── LEAD FORM ── */
.lead-card { background: #111; border: 1px solid rgba(189,0,13,0.3); border-top: 4px solid #BD000D; border-radius: 0 0 4px 4px; padding: 32px 30px; box-shadow: 0 24px 64px rgba(0,0,0,0.4); }
.lead-card h2 { font-size: 1.45rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 4px; }
.lead-card .lead-tag { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 22px; }
.lead-field { margin-bottom: 14px; }
.lead-field label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.lead-field input, .lead-field select { width: 100%; background: #0a0a0a; color: #f5f5f5; border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; padding: 12px 14px; font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s; }
.lead-field input:focus, .lead-field select:focus { outline: none; border-color: #BD000D; }
.lead-field input::placeholder { color: rgba(255,255,255,0.4); }
.lead-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23BD000D' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-card .btn-primary { width: 100%; margin-top: 8px; padding: 16px; }
.lead-or { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 14px; text-align: center; }
.lead-or a { color: #BD000D; font-weight: 700; }
.lead-or a:hover { color: #fff; }
.lead-fine { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 12px; text-align: center; line-height: 1.5; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero-copy h1 { font-size: 2.2rem; } }
@media (max-width: 520px) { .lead-row { grid-template-columns: 1fr; } }

/* ── GOOGLE REVIEWS BAND ── */
.reviews-band { background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 22px 0; }
.reviews-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.reviews-stars { display: inline-flex; gap: 3px; color: #BD000D; }
.reviews-stars svg { width: 22px; height: 22px; }
.reviews-text { font-size: 0.95rem; color: rgba(255,255,255,0.75); }
.reviews-text strong { color: #fff; font-weight: 900; font-size: 1.1rem; }
.reviews-text a { color: #BD000D; font-weight: 700; }
.reviews-text a:hover { color: #fff; }

/* ── SECTIONS ── */
.section { padding: 90px 0; }
.section-dark { background: #0a0a0a; }
.section-title { font-size: 2rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.section-lead { color: rgba(255,255,255,0.6); font-size: 0.98rem; max-width: 640px; margin-bottom: 40px; }
.accent-line { width: 50px; height: 3px; background: #BD000D; margin-bottom: 40px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(189,0,13,0.25), transparent); }

/* ── VALUE PROPS ── */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card { background: #111; border: 1px solid rgba(255,255,255,0.05); padding: 34px 28px; border-radius: 4px; transition: all 0.4s; }
.feature-card:hover { border-color: rgba(189,0,13,0.3); transform: translateY(-4px); }
.feature-icon { width: 44px; height: 44px; margin-bottom: 18px; color: #BD000D; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.03em; }
.feature-card p { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.65; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

/* ── SHOP BY TYPE ── */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.type-card { background: #111; border: 1px solid rgba(255,255,255,0.06); padding: 34px 20px 26px; text-align: center; border-radius: 4px; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); position: relative; overflow: hidden; }
.type-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(189,0,13,0.1), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.type-card:hover::before { opacity: 1; }
.type-card:hover { border-color: rgba(189,0,13,0.4); box-shadow: 0 0 40px rgba(189,0,13,0.1), 0 16px 48px rgba(0,0,0,0.4); transform: translateY(-6px); }
.type-icon { width: 56px; height: 56px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.type-icon svg { width: 48px; height: 48px; }
.type-card h3 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.type-card .view-link { font-size: 0.72rem; font-weight: 600; color: #BD000D; text-transform: uppercase; letter-spacing: 0.08em; transition: color 0.2s; }
.type-card:hover .view-link { color: #fff; }
@media (max-width: 599px) { .type-grid { grid-template-columns: 1fr; } }

/* ── FINANCING BAND ── */
.financing { background: radial-gradient(ellipse at 30% 50%, rgba(189,0,13,0.08) 0%, transparent 60%), linear-gradient(135deg, #0d0d0d 0%, #111 50%, #0a0a0a 100%); position: relative; padding: 80px 0; text-align: center; }
.financing::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(189,0,13,0.018) 24px, rgba(189,0,13,0.018) 25px); pointer-events: none; }
.financing-inner { position: relative; z-index: 2; }
.financing h2 { font-size: 2.1rem; font-weight: 900; text-transform: uppercase; margin-bottom: 16px; }
.financing p { color: rgba(255,255,255,0.65); font-size: 1.02rem; max-width: 680px; margin: 0 auto 14px; line-height: 1.7; }
.financing .areas { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 20px auto 32px; max-width: 640px; letter-spacing: 0.02em; }

/* ── LOCATIONS ── */
.locations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.location-card { background: #111; border-top: 3px solid #BD000D; padding: 32px 30px; border-radius: 0 0 4px 4px; transition: box-shadow 0.4s; }
.location-card:hover { box-shadow: 0 8px 36px rgba(189,0,13,0.1); }
.location-card h3 { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.location-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.location-detail svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: #BD000D; }
.location-card .directions-link { display: inline-block; margin-top: 14px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #BD000D; border-bottom: 1px solid rgba(189,0,13,0.3); padding-bottom: 2px; transition: all 0.2s; }
.location-card .directions-link:hover { color: #fff; border-color: #fff; }
@media (max-width: 768px) { .locations-grid { grid-template-columns: 1fr; } }

/* ── MAP EMBED (location pages) ── */
.map-wrap { border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; line-height: 0; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(0.3) contrast(1.05); }
.loc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 768px) { .loc-split { grid-template-columns: 1fr; } }

/* ── FOOTER ── */
.footer { background: #0a0a0a; padding: 44px 0 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; margin-bottom: 32px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.84rem; max-width: 320px; line-height: 1.6; }
.footer-col h3 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,0.55); font-size: 0.86rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: #BD000D; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0 84px; text-align: center; color: rgba(255,255,255,0.3); font-size: 0.78rem; }
@media (min-width: 769px) { .footer-bottom { padding-bottom: 18px; } }

/* ── STICKY MOBILE CTA ── */
.mobile-cta { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 90; display: none; gap: 10px; padding: 10px 14px; background: rgba(0,0,0,0.92); backdrop-filter: blur(10px); border-top: 1px solid rgba(189,0,13,0.3); }
.mobile-cta a { flex: 1; padding: 14px; font-size: 0.8rem; }
@media (max-width: 768px) { .mobile-cta { display: flex; } }

/* ── FADE-UP (fail-open) ── */
html.js .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
html.js .fade-up.visible { opacity: 1; transform: translateY(0); }
html.js .fade-up.delay-1 { transition-delay: 0.08s; }
html.js .fade-up.delay-2 { transition-delay: 0.16s; }
html.js .fade-up.delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html.js .fade-up { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}
