/* ============================================================
   CG'S MOBILE DETAILING — SHARED STYLES
   All pages link to this stylesheet
   ============================================================ */

:root {
  --black: #080808;
  --graphite: #111111;
  --graphite-mid: #1a1a1a;
  --graphite-light: #242424;
  --red: #c8102e;
  --red-hot: #e8112e;
  --white: #f0ede8;
  --white-dim: #999690;
  --border: rgba(200,16,46,0.18);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --max-w: 1280px;
  --pad: 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: var(--font-body); font-weight: 300; overflow-x: hidden; }

/* noise */
body::before { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9999; opacity: 0.4; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); background: rgba(8,8,8,0.97); border-bottom: 1px solid rgba(200,16,46,0.08); backdrop-filter: blur(8px); }
.nav-logo { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.08em; color: var(--white); text-decoration: none; flex-shrink: 0; }
.nav-logo span { color: var(--red); }
.nav-center { display: flex; gap: 0; list-style: none; }
.nav-center li { position: relative; }
.nav-center > li > a { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-dim); text-decoration: none; padding: 8px 16px; display: block; transition: color 0.2s; }
.nav-center > li > a:hover, .nav-center > li > a.active { color: var(--white); }
.nav-center > li > a.active::after { content: ''; position: absolute; bottom: -1px; left: 16px; right: 16px; height: 1px; background: var(--red); }
/* dropdown */
.has-dropdown:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown { position: absolute; top: 100%; left: 0; background: var(--graphite); border: 1px solid var(--border); min-width: 220px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s; z-index: 300; }
.dropdown a { display: block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-dim); text-decoration: none; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.04); transition: color 0.15s, background 0.15s; }
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--white); background: var(--graphite-light); }
.nav-cta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); background: var(--red); padding: 10px 22px; text-decoration: none; transition: background 0.2s; flex-shrink: 0; }
.nav-cta:hover { background: var(--red-hot); }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--white); transition: 0.3s; }
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--black); z-index: 199; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0.06em; color: var(--white); text-decoration: none; padding: 6px 0; }
.mobile-menu a:hover { color: var(--red); }
.mobile-menu .mobile-sep { width: 40px; height: 1px; background: var(--border); margin: 12px 0; }

/* ── FOOTER ── */
footer { background: var(--black); padding: 72px var(--pad) 40px; border-top: 1px solid rgba(200,16,46,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.06em; color: var(--white); margin-bottom: 14px; }
.footer-brand span { color: var(--red); }
.footer-tagline { font-size: 0.88rem; line-height: 1.75; color: var(--white-dim); max-width: 280px; margin-bottom: 20px; }
.footer-jaxwax { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.87rem; color: var(--white-dim); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--white-dim); }

/* ── COMMON COMPONENTS ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.section-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; width: 22px; height: 1px; background: var(--red); }
.section-title { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: 0.03em; color: var(--white); margin-bottom: 18px; }
.section-desc { font-size: 0.95rem; line-height: 1.8; color: var(--white-dim); max-width: 560px; }
.btn-primary { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); background: var(--red); padding: 15px 34px; text-decoration: none; display: inline-block; transition: background 0.2s, transform 0.15s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--red-hot); transform: translateY(-1px); }
.btn-ghost { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-dim); border: 1px solid rgba(240,237,232,0.15); padding: 15px 34px; text-decoration: none; display: inline-block; transition: color 0.2s, border-color 0.2s; }
.btn-ghost:hover { color: var(--white); border-color: rgba(240,237,232,0.4); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }

/* marquee */
.marquee-wrap { overflow: hidden; background: var(--red); padding: 13px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 24s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.1em; color: var(--white); padding: 0 28px; flex-shrink: 0; white-space: nowrap; }
.marquee-track .dot { color: rgba(255,255,255,0.35); padding: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* page hero (inner pages) */
.page-hero { padding: 160px var(--pad) 80px; background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(200,16,46,0.07) 0%, transparent 65%), linear-gradient(170deg, #0f0f0f 0%, #080808 100%); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); }
.page-hero-badge { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.page-hero-badge::before { content: ''; width: 22px; height: 1px; background: var(--red); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(3.5rem, 9vw, 7.5rem); line-height: 0.92; color: var(--white); margin-bottom: 24px; }
.page-hero p { font-size: 1rem; line-height: 1.75; color: var(--white-dim); max-width: 540px; margin-bottom: 40px; }

/* cards */
.card { background: var(--graphite-mid); padding: 36px 32px; border-top: 2px solid transparent; transition: border-color 0.25s, background 0.25s; }
.card:hover { border-top-color: var(--red); background: var(--graphite-light); }
.card-num { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em; color: var(--red); margin-bottom: 28px; }
.card-icon { font-size: 1.8rem; margin-bottom: 16px; display: block; }
.card-title { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.04em; color: var(--white); margin-bottom: 12px; }
.card-body { font-size: 0.87rem; line-height: 1.75; color: var(--white-dim); margin-bottom: 22px; }
.card-link { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.card-link:hover { gap: 10px; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; }
.card ul li { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--white-dim); display: flex; align-items: center; gap: 8px; }
.card ul li::before { content: '→'; color: var(--red); font-size: 0.65rem; }

/* form */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white-dim); }
.form-group input, .form-group select, .form-group textarea { background: var(--graphite); border: 1px solid rgba(255,255,255,0.07); color: var(--white); font-family: var(--font-body); font-size: 0.9rem; padding: 13px 15px; outline: none; transition: border-color 0.2s; appearance: none; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group select option { background: var(--graphite-mid); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--red); min-height: 20px; }

/* sidebar */
.article-layout > div:last-child { position: sticky; top: 100px; align-self: start; }
.sidebar-card { background: var(--graphite); padding: 26px; margin-bottom: 16px; }
.sidebar-card:last-child { margin-bottom: 0; }
.sidebar-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.sidebar-card h4 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.04em; color: var(--white); margin-bottom: 10px; }
.sidebar-card p { font-size: 0.84rem; line-height: 1.7; color: var(--white-dim); margin-bottom: 14px; }
.sidebar-card p:last-child { margin-bottom: 0; }
.sidebar-card a { color: var(--red); text-decoration: none; }
.sidebar-cta { background: var(--red); padding: 26px; margin-bottom: 16px; }
.sidebar-cta h4 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.04em; color: var(--white); margin-bottom: 8px; }
.sidebar-cta p { font-size: 0.84rem; color: rgba(240,237,232,0.8); margin-bottom: 18px; }
.sidebar-cta a { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); background: var(--black); padding: 11px 18px; text-decoration: none; display: inline-block; }

/* blog cards */
.blog-card { background: var(--graphite); padding: 32px 28px; text-decoration: none; display: block; border-top: 2px solid transparent; transition: background 0.2s, border-color 0.2s; }
.blog-card:hover { background: var(--graphite-light); border-top-color: var(--red); }
.blog-tag { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.blog-title { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.03em; color: var(--white); margin-bottom: 10px; line-height: 1.1; }
.blog-excerpt { font-size: 0.84rem; line-height: 1.7; color: var(--white-dim); margin-bottom: 18px; }
.blog-read { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }

/* article prose */
.prose h2 { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.04em; color: var(--white); margin: 48px 0 16px; }
.prose h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--white); margin: 36px 0 12px; }
.prose p { font-size: 1rem; line-height: 1.9; color: var(--white-dim); margin-bottom: 18px; }
.prose p a { color: var(--red); text-decoration: none; }
.prose p strong { color: var(--white); font-weight: 500; }
.prose ul, .prose ol { margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; padding-left: 4px; }
.prose ul li, .prose ol li { font-size: 0.95rem; line-height: 1.75; color: var(--white-dim); padding-left: 20px; position: relative; }
.prose ul li::before { content: '→'; color: var(--red); position: absolute; left: 0; font-size: 0.75rem; }
.prose blockquote { border-left: 3px solid var(--red); padding: 16px 22px; background: rgba(200,16,46,0.05); margin: 26px 0; font-style: italic; color: var(--white-dim); font-size: 0.95rem; line-height: 1.75; }

/* responsive */
@media (max-width: 1024px) {
  :root { --pad: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  :root { --pad: 20px; }
  nav { padding: 16px var(--pad); }
  .nav-center, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 130px var(--pad) 60px; }
  .page-hero h1 { font-size: clamp(2.2rem, 8vw, 5rem); }
  .section-title { font-size: clamp(1.8rem, 6vw, 4rem); }
  .prose h2 { font-size: 1.5rem; }
  .prose h3 { font-size: 1.2rem; }
  .card { padding: 28px 24px; }
  .blog-card { padding: 24px 20px; }
  .marquee-track span { font-size: 0.8rem; padding: 0 18px; }
}
@media (max-width: 480px) {
  :root { --pad: 16px; }
  .page-hero { padding: 110px var(--pad) 48px; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
  .section-title { font-size: clamp(1.5rem, 5.5vw, 2.6rem); }
  .sidebar-cta, .sidebar-card { padding: 20px; }
  .card { padding: 24px 20px; }
  .card-title { font-size: 1.3rem; }
}
