/* Detailing course theme.
   Loaded after style.css — overrides the shared design tokens so every
   reused component (buttons, cards, accordion, form, badges) re-themes
   into neon/glass automatically, then layers a few detailing-only effects.
   --red is reused as the "primary/CTA" token, --blue as "secondary/structure". */
:root {
  --bg: #05070a;
  --bg-alt: #070b12;
  --card: rgba(18, 26, 41, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --red: #22e5ff;
  --red-rgb: 34, 229, 255;
  --blue: #8b5cf6;
  --blue-rgb: 139, 92, 246;
  --text-dim: #9aa3b8;
}

body { background-color: var(--bg); }

/* Filled neon buttons need dark text for contrast (light cyan/violet fill
   would fail against white text) — same approach already used by
   .choice-btn.selected in the shared stylesheet. */
.btn-primary,
.nav-cta {
  background: linear-gradient(135deg, rgba(var(--red-rgb), 0.95), rgba(var(--blue-rgb), 0.9)) !important;
  color: #04070a !important;
  text-shadow: none;
  box-shadow: 0 0 25px rgba(var(--red-rgb), 0.3);
}
.btn-primary:hover,
.nav-cta:hover {
  box-shadow: 0 0 30px rgba(var(--red-rgb), 0.5), 0 0 55px rgba(var(--blue-rgb), 0.3);
}

.skip-link {
  background: #04070a;
  color: var(--red);
  border: 1px solid var(--red);
}

.back-to-top {
  background: rgba(9, 13, 22, 0.85);
  color: var(--red);
  border: 1px solid rgba(var(--red-rgb), 0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(var(--red-rgb), 0.25);
}
.back-to-top:hover { box-shadow: 0 0 28px rgba(var(--red-rgb), 0.45); }

.site-header {
  background-color: rgba(5, 7, 10, 0.7);
  backdrop-filter: blur(10px);
}

/* Glass surfaces */
.module-card,
.why-item,
.faq-item,
.signup-form {
  background-color: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.module-card:hover { box-shadow: 0 0 30px rgba(var(--blue-rgb), 0.18); }
.why-item:hover { box-shadow: 0 0 30px rgba(var(--red-rgb), 0.18); }

.form-row input,
.form-row select,
.form-row textarea {
  background-color: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}
.choice-btn {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Sparingly-used glow accents, kept off the base theme's shared classes */
.highlight { text-shadow: 0 0 18px rgba(var(--red-rgb), 0.5); }
.section-eyebrow { text-shadow: 0 0 12px rgba(var(--blue-rgb), 0.45); }

.hero {
  background:
    radial-gradient(circle at 26% 22%, rgba(var(--red-rgb), 0.12) 0%, transparent 45%),
    radial-gradient(circle at 78% 78%, rgba(var(--blue-rgb), 0.14) 0%, transparent 50%),
    var(--bg);
}

/* Hero visual: original SVG/glass illustration (no stock photo available) */
.detailing-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 24px;
  background: rgba(18, 26, 41, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.detailing-visual-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--red-rgb), 0.25), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.detailing-visual-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  filter: contrast(1.1) saturate(0.85);
}
.detailing-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(160deg, rgba(var(--red-rgb), 0.2) 0%, transparent 45%, rgba(5, 7, 10, 0.8) 100%);
  pointer-events: none;
}
.detailing-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 12, 20, 0.75);
  border: 1px solid rgba(var(--blue-rgb), 0.4);
  color: var(--text);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(var(--blue-rgb), 0.2);
  animation: float-chip 4s ease-in-out infinite;
}
.detailing-chip .icon { width: 16px; height: 16px; color: var(--blue); }
.chip-1 { top: 10%; inset-inline-start: 6%; }
.chip-2 { bottom: 12%; inset-inline-end: 6%; animation-delay: 2s; }

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .detailing-chip { animation: none; }
}

@media (max-width: 780px) {
  .detailing-visual { max-width: 320px; }
  .chip-1, .chip-2 { font-size: 12px; padding: 6px 12px; }
}

/* Final CTA section: real workshop photo backdrop behind the glass signup form */
.signup {
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(180deg, rgba(5, 7, 10, 0.82) 0%, rgba(5, 7, 10, 0.93) 100%),
    url('img/detailing-cta.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

/* Partner section: YR DETAILING, the workshop the course is run with.
   --yr is the partner's own gold, kept local to this block so the page's
   cyan/violet theme stays intact everywhere else. */
.partner {
  padding: 80px 0;
  background-color: var(--bg-alt);
  --yr: #ffb400;
  --yr-rgb: 255, 180, 0;
}
.partner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}
.partner-media {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 420px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(var(--yr-rgb), 0.28);
  background: rgba(18, 26, 41, 0.5);
  box-shadow: 0 0 40px rgba(var(--yr-rgb), 0.12);
}
.partner-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
  filter: contrast(1.05) saturate(0.95);
}
.partner-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(var(--yr-rgb), 0.12) 0%, transparent 45%, rgba(5, 7, 10, 0.75) 100%);
  pointer-events: none;
}
.partner-body { flex: 1 1 380px; min-width: 0; }
.partner-wordmark {
  font-family: 'Great Vibes', 'Segoe Script', cursive;
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1.1;
  color: var(--yr);
  margin: 0;
  direction: ltr;
  text-align: start;
  text-shadow: 0 0 18px rgba(var(--yr-rgb), 0.55), 0 0 45px rgba(var(--yr-rgb), 0.25);
}
.partner-slogan {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text);
  direction: ltr;
  text-align: start;
  margin: 6px 0 4px;
}
.partner-motto {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
  direction: ltr;
  text-align: start;
  margin: 0 0 22px;
}
.partner-text {
  color: var(--text-dim);
  line-height: 1.9;
  margin: 0 0 24px;
}
.partner-text strong { color: var(--yr); font-weight: 700; }
.partner-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.partner-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}
.partner-point-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(var(--yr-rgb), 0.35);
  background: rgba(var(--yr-rgb), 0.08);
  color: var(--yr);
}
.partner-point-icon .icon { width: 20px; height: 20px; }

.footer-partner {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}
.footer-partner strong { color: #ffb400; font-weight: 700; }

@media (max-width: 780px) {
  .partner-inner { gap: 28px; }
  .partner-media { margin: 0 auto; }
}
