/* ══════════════════════════════════════════════════════════════
   K&M CAR CARE — THE NEIGHBORHOOD CHEMIST
   Clinical Luxury Design System
   ══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --carbon: #000000;
  --signal-red: #C41230;
  --signal-red-hover: #A00F28;
  --clinical-white: #FFFFFF;
  --off-white: #E8E8E8;
  --muted: #999999;
  --dark-surface: #0A0A0A;
  --darker-surface: #050505;
  --card-bg: #111111;
  --card-border: #222222;
  --gold: #C9A84C;
  --science-blue: #00AEEF;
  --green: #2ECC71;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-mono: 'Courier Prime', monospace;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark-surface);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--signal-red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--clinical-white); }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--carbon); }

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clinical-white);
  line-height: 1.2;
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--signal-red);
  display: inline-block;
}
h3 { font-size: clamp(18px, 2.5vw, 24px); color: var(--signal-red); margin-bottom: 12px; }
h4 { font-size: 14px; color: var(--gold); font-weight: 600; letter-spacing: 2px; margin-bottom: 8px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
  display: block;
}

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 18px; color: var(--clinical-white); font-weight: 300; line-height: 1.8; }

.mono { font-family: var(--font-mono); }
.gold { color: var(--gold); }
.red { color: var(--signal-red); }
.muted { color: var(--muted); }

/* ── HEADER / NAV ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
  transition: background 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--clinical-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--signal-red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--signal-red); }

.nav-cta {
  background: var(--signal-red);
  color: var(--clinical-white) !important;
  padding: 8px 20px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.nav-cta:hover { background: var(--signal-red-hover); color: var(--clinical-white) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clinical-white);
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav.active { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--signal-red); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 16px; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  background: var(--carbon);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero h1 { margin-bottom: 24px; }

.hero-body {
  font-size: 17px;
  color: var(--off-white);
  line-height: 1.8;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 32px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--signal-red); color: var(--clinical-white); }
.btn-primary:hover { background: var(--signal-red-hover); color: var(--clinical-white); }
.btn-outline { background: transparent; color: var(--clinical-white); border: 1px solid var(--clinical-white); }
.btn-outline:hover { background: var(--clinical-white); color: var(--carbon); }

/* ── CARDS ── */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 768px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 32px 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--signal-red); }

.card h3 { font-size: 18px; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--off-white); line-height: 1.7; }

.card-price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  margin-top: 16px;
  letter-spacing: 1px;
}

/* ── TABLES ── */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--gold);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--signal-red);
  background: var(--card-bg);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
}
tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ── FAQ ACCORDION ── */
.faq-group { margin-bottom: 32px; }
.faq-group-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--signal-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 48px 16px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--clinical-white);
  position: relative;
  transition: color 0.2s;
  user-select: none;
}
.faq-question:hover { color: var(--signal-red); }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--signal-red);
  transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--off-white);
  line-height: 1.7;
}

/* ── GALLERY GRID ── */
.gallery-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--off-white);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--signal-red);
  border-color: var(--signal-red);
  color: var(--clinical-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  overflow: hidden;
}

.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.gallery-img-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.gallery-img-placeholder.before { background: #1a1a1a; color: var(--muted); }
.gallery-img-placeholder.after { background: #1a1a1a; color: var(--signal-red); }

.gallery-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--off-white);
}
.gallery-caption strong { color: var(--clinical-white); }
.gallery-caption .service-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── PROOF STRIP ── */
.proof-strip {
  text-align: center;
  padding: 40px 24px;
  background: var(--carbon);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.stars { color: var(--gold); font-size: 24px; letter-spacing: 4px; margin-bottom: 8px; }
.proof-text { font-family: var(--font-mono); font-size: 14px; color: var(--off-white); }

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 80px 24px;
}
.cta-section h2 { display: block; border: none; padding-bottom: 0; margin-bottom: 16px; }
.cta-section p { max-width: 600px; margin: 0 auto 32px; }

/* ── TIMELINE / STEPS ── */
.process-steps { counter-reset: step-counter; }
.process-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--card-border);
}
.process-step:last-child { border-bottom: none; }

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--signal-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--clinical-white);
}
.step-text h3 { font-size: 16px; margin-bottom: 6px; }
.step-text p { font-size: 14px; color: var(--off-white); margin: 0; }

/* ── SCENARIO CARDS ── */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.scenario-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}
.scenario-card:hover { border-color: var(--signal-red); }
.scenario-icon { font-size: 28px; margin-bottom: 8px; }
.scenario-card h4 { font-size: 13px; color: var(--clinical-white); margin-bottom: 6px; }
.scenario-card p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ── AREAS ── */
.area-group { margin-bottom: 24px; }
.area-group h3 { font-size: 16px; margin-bottom: 8px; }
.area-cities {
  font-size: 14px;
  color: var(--off-white);
  line-height: 2;
}
.area-cities .hq {
  color: var(--signal-red);
  font-weight: 600;
}

/* ── CLEAN SLATE ── */
.clean-slate-block {
  background: var(--card-bg);
  border-left: 3px solid var(--gold);
  padding: 24px;
  border-radius: 0 4px 4px 0;
  margin: 32px 0;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--carbon);
  border-top: 3px solid var(--signal-red);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand .logo { font-size: 20px; margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.footer-links h4 { font-size: 12px; color: var(--gold); margin-bottom: 16px; letter-spacing: 2px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--off-white); transition: color 0.2s; }
.footer-links a:hover { color: var(--signal-red); }

.footer-contact h4 { font-size: 12px; color: var(--gold); margin-bottom: 16px; letter-spacing: 2px; }
.footer-contact p { font-size: 13px; color: var(--off-white); margin-bottom: 8px; }
.footer-contact a { color: var(--off-white); }
.footer-contact a:hover { color: var(--signal-red); }

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ── BOOKING PLACEHOLDER ── */
.booking-placeholder {
  background: var(--card-bg);
  border: 2px dashed var(--card-border);
  border-radius: 4px;
  padding: 80px 24px;
  text-align: center;
  margin: 32px 0;
}
.booking-placeholder p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PAGE TOP OFFSET ── */
.page-top { padding-top: 100px; }

/* ── FEATURE LIST ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 20px;
}
.feature-item h4 { font-size: 13px; margin-bottom: 4px; }
.feature-item p { font-size: 13px; color: var(--off-white); margin: 0; }

/* ── MAP PLACEHOLDER ── */
.map-placeholder {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 32px 0;
}
