/* ============================================================
   McDermott Private Training — Global Styles
   Palette: #121212 matte black · #1C1C1E charcoal · #D4AF37 gold
   Type: Montserrat (display) · Inter (body)
   ============================================================ */

:root {
  --black: #121212;
  --charcoal: #1C1C1E;
  --charcoal-2: #232326;
  --gold: #D4AF37;
  --gold-dim: rgba(212, 175, 55, 0.35);
  --gold-faint: rgba(212, 175, 55, 0.08);
  --ink: #F5F5F0;
  --muted: #9A9A9E;
  --line: rgba(245, 245, 240, 0.08);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Montserrat', system-ui, sans-serif;
}

::selection { background: var(--gold); color: var(--black); }

/* ---- Signature: blueprint grid ---- */
.blueprint {
  position: relative;
  isolation: isolate;
}
.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 100%);
}
.blueprint-soft::before {
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

/* ---- Eyebrow labels ---- */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold-dim);
}

/* ---- Buttons ---- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--gold);
  color: var(--black);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.125rem 2.25rem;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold:hover {
  background: #E4C452;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.22);
}
.btn-gold:focus-visible,
.btn-ghost:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: 1px solid var(--gold-dim);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.125rem 2.25rem;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-faint);
}

/* ---- Nav ---- */
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}

#site-nav {
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* ---- Cards & panels ---- */
.panel {
  background: var(--charcoal);
  border: 1px solid var(--line);
}
.panel-hover {
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.panel-hover:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

/* ---- Tier cards ---- */
.tier-flagship {
  background: linear-gradient(160deg, var(--charcoal-2) 0%, var(--charcoal) 60%);
  border: 1px solid var(--gold-dim);
  position: relative;
}
.tier-flagship::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.check-gold { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.check-mute { color: var(--muted); flex-shrink: 0; margin-top: 2px; }

/* ---- Forms ---- */
.field-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.625rem;
}
.field-input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 1rem 1.125rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
  appearance: none;
  border-radius: 0;
}
.field-input::placeholder { color: #5A5A5E; }
.field-input:focus {
  border-color: var(--gold);
  outline: none;
}
.field-input.field-error { border-color: #B0453A; }
.error-msg {
  color: #D4756B;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  display: none;
}
.error-msg.show { display: block; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.125rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-gold:hover { transform: none; }
  .panel-hover:hover { transform: none; }
}

/* ---- Stat numbers ---- */
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--gold);
  line-height: 1;
}

/* ---- Logo image blend (hides the charcoal card behind the mark) ---- */
.logo-blend { mix-blend-mode: lighten; }

/* ---- Mobile menu ---- */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 24rem;
  opacity: 1;
}

/* ---- Horizontal milestone timeline ---- */
.timeline-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.timeline-scroll::-webkit-scrollbar { height: 4px; }
.timeline-scroll::-webkit-scrollbar-track { background: rgba(245,245,240,0.04); }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.timeline-card {
  scroll-snap-align: start;
  flex: 0 0 19rem;
  max-width: 19rem;
}
.tl-week {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.tl-marker {
  position: relative;
  height: 1px;
  background: var(--gold-dim);
  width: calc(100% + 1.5rem);
  margin: 0.875rem 0 1.25rem;
}
.timeline-card:last-child .tl-marker { width: 100%; background: linear-gradient(90deg, var(--gold-dim), transparent); }
.tl-node {
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.tl-body {
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: 1.5rem;
  height: 100%;
}
.tl-chip { display: flex; gap: 0.5rem; align-items: baseline; font-size: 0.6875rem; line-height: 1.5; }
.tl-chip b { font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; flex-shrink: 0; }

/* ---- FAQ accordion ---- */
.faq-item {
  border: 1px solid var(--line);
  background: var(--charcoal);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ---- Sticky mobile CTA bar ---- */
.cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-dim);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
}
@media (max-width: 767px) {
  .cta-bar { display: block; }
  body.has-cta-bar { padding-bottom: 5rem; }
}

/* ---- Cohort countdown ---- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.cd-block {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  min-width: 4.5rem;
  padding: 0.875rem 0.5rem 0.75rem;
  text-align: center;
}
.cd-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
  display: block;
}
@media (max-width: 480px) {
  .cd-block { min-width: 3.75rem; }
  .cd-num { font-size: 1.375rem; }
}
