/* Theme layer: loaded last on every page. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --font-ui: "Inter", system-ui, sans-serif;
  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --muted: #8d9399;
  --line: rgba(255, 255, 255, 0.07);
  --accent-a: #ff4d57;
  --accent-b: #a90d17;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(216, 23, 34, 0.45);
}

.events-page {
  --accent-a: #f4519e;
  --accent-b: #76268d;
  --glass-border: rgba(244, 81, 158, 0.45);
}

/* Fonts */
html, body, button, input, select, textarea, p, a, li, span, label, small {
  font-family: var(--font-ui);
}
h1, h2, h3, h4, .brand, .btn, .eyebrow, .event417-hero h1, .event417-script,
.event417-panel-header h3, .event417 h2, .event417 h3 {
  font-family: var(--font-head) !important;
  letter-spacing: -0.02em;
  text-transform: none;
}
h1 em, h2 em, h3 em, .serif-accent, .hero h1 span, .about-page-hero h1 span,
.event417-script, .event417-hero h1 small {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Background: gradient + grain */
body {
  background: linear-gradient(180deg, #050506 0%, #0b0708 35%, #2a0a0d 75%, #5a0f15 100%) fixed;
  color: #c9ced2;
}
.events-page {
  background: linear-gradient(180deg, #050506 0%, #120a18 35%, #3a1450 75%, #8a2a6a 100%) fixed;
}
.hero, .page-hero, .about-page-hero, .event417, .event417-hero, .section-soft,
.cta-band, .trust-strip, .site-footer, footer {
  background: transparent !important;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Gradient hero text */
.hero h1, .page-hero h1, .about-page-hero h1, .event417-hero h1 {
  background: linear-gradient(120deg, #ffffff 10%, var(--accent-a) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero h1 span, .about-page-hero h1 span, .event417-hero h1 .pink, .event417-hero h1 small {
  -webkit-text-fill-color: transparent;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Badge above headline */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 500 0.78rem var(--font-ui);
  color: #d6dadd;
}
.badge svg { width: 14px; height: 14px; color: var(--accent-a); }

/* Glass + colored-border cards */
.course-card, .course-detail-card, .group-card, .quote-card, .contact-card,
.form-card, .trust-item, .event417-panel-shell, .event417-hero-info-item,
.story-section .card, .team-card, .fact-card {
  background: var(--glass) !important;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  color: #c9ced2;
}
.course-card:nth-child(3n+2), .quote-card:nth-child(3n+2) { border-color: rgba(255, 255, 255, 0.22) !important; }
.course-card:nth-child(3n), .quote-card:nth-child(3n) { border-color: rgba(169, 13, 23, 0.7) !important; }

/* Icon boxes (3 in a row) */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 16px; padding: 22px; }
.trust-icon, .course-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  color: var(--accent-a);
  font-size: 0;
  flex: none;
}
.trust-icon svg, .course-icon svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }
.btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-left: 6px; }

/* Buttons fade on hover */
.btn, .nav-cta, button, .menu-toggle {
  transition: opacity 0.35s ease;
}
.btn:hover, .nav-cta:hover, button:hover {
  opacity: 0.72;
  transform: none;
}

/* Inconsistent spacing */
.section:nth-of-type(odd) { padding-top: 96px; padding-bottom: 64px; }
.section:nth-of-type(even) { padding-top: 58px; padding-bottom: 112px; }
.course-grid, .contact-cards { gap: 22px 14px; }
.section-head { margin-bottom: 46px; }
.eyebrow { margin-bottom: 11px; font-style: italic; font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0; text-transform: none; }

/* Fade in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Cursor following glow */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, var(--accent-a) 0%, transparent 65%);
  opacity: 0.14;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* Low-contrast dark mode */
p, li, .trust-item span, .course-card p { color: #9aa0a6; }
h1, h2, h3 { color: #e4e7ea; }
.site-header { background: rgba(8, 8, 10, 0.55) !important; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-links a { color: #aab0b5; }
.nav-links a.active, .nav-links a:hover { color: #e4e7ea; }

/* Dark mode for formerly light sections */
.section-light, [class*="-light"]:not(.btn-light):not(.dark-light) { background: transparent !important; color: #9aa0a6 !important; }
.section-light h2, .section-light h3, .section-light h4, .section-light strong { color: #e4e7ea !important; }
.quote-card, .quote-card p, .quote-card strong, .quote-card span { color: #aab0b5 !important; }
.quote-card strong { color: #e4e7ea !important; }
.form-card, .form-card label, .form-card h2, .form-card h3, .form-card p { color: #c9ced2 !important; }
.form-card input, .form-card select, .form-card textarea { background: rgba(255,255,255,.06); color: #e4e7ea; border: 1px solid var(--line); }

/* ===== Cleanup: remove stray divider lines ===== */
.site-header, .section-soft, .trust-strip, .trust-item + .trust-item, .cta-band,
.site-footer, footer, .footer-bottom, .footer-grid, .section, .event417-hero-info,
.event417-hero-info-item, .event417-hero-info-item + .event417-hero-info-item,
.event417-panel-header, .event417-subtabs, .event417-subpanel, .quote-author {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left-color: transparent;
}
.trust-item + .trust-item { border-left: 1px solid var(--glass-border) !important; }
.site-header { box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }
.trust-strip { padding: 10px 0 30px; }
.event417-hero-info { background: transparent !important; }
.event417-hero-info-grid { gap: 18px; }
.event417-hero-info-item { padding: 22px; }
hr { display: none; }
.course-card, .quote-card, .trust-item, .contact-card, .course-detail-card,
.event417-card, .event417-panel-shell { box-shadow: none; }
.section { padding-left: 0; padding-right: 0; }

/* ===== Header: animated active page ===== */
.nav-links a:not(.nav-cta) {
  position: relative;
  background: transparent !important;
  transition: color .3s ease;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-a), transparent);
  box-shadow: 0 0 10px var(--accent-a);
  transform: translateX(-50%);
  transition: width .4s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:not(.nav-cta):hover::after { width: 40%; }
.nav-links a.active:not(.nav-cta)::after { width: 70%; animation: navGlow 2.8s ease-in-out infinite; }
.nav-links a.active:not(.nav-cta) {
  background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--accent-a) 22%, transparent), transparent 70%) !important;
}
@keyframes navGlow { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
.nav-links .nav-cta { transition: opacity .35s ease; }

/* ===== Forms: easier to read ===== */
.form-card {
  padding: 40px !important;
  background: rgba(20, 14, 16, 0.78) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 20px;
}
.events-page .form-card { background: rgba(22, 14, 30, 0.8) !important; }
.form-grid { gap: 22px; }
.field { gap: 9px; }
.field label, .form-card label {
  color: #eceef0 !important;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: 0;
}
.field input, .field select, .field textarea,
.form-card input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .form-card select, .form-card textarea {
  padding: 15px 16px;
  font-size: 1rem;
  line-height: 1.4;
  color: #f4f5f6 !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 10px;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #8d9399; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: rgba(255,255,255,.12) !important;
  border-color: var(--accent-a) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-a) 22%, transparent);
}
.field select option { background: #1a1214; color: #f4f5f6; }
.form-card .btn, .form-card button[type=submit] { width: 100%; padding: 16px; font-size: 1rem; }
.form-note, .form-status { color: #aab0b5 !important; }

html { background: #050506; }
.events-page, html:has(.events-page) { background-color: #120a18; }

/* ===== Footer: calm and simple ===== */
.footer {
  margin-top: 40px;
  padding: 56px 0 28px !important;
  background: rgba(0, 0, 0, 0.35) !important;
  border: 0 !important;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 32px;
}
.footer h4 {
  margin: 0 0 14px;
  font: 600 .8rem var(--font-ui) !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7d838a;
}
.footer p, .footer a, .footer span { font-size: .9rem; color: #8d9399; }
.footer p { max-width: 300px; line-height: 1.6; margin-top: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer a { transition: color .25s ease; }
.footer a:hover { color: #e4e7ea; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border: 0 !important;
  color: #6b7178;
}
.footer-bottom span, .footer-tag { font-size: .8rem; letter-spacing: 0; color: #6b7178 !important; font-family: var(--font-ui) !important; }
.footer .grain, .footer::before, .footer::after { display: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer-bottom { flex-direction: column; gap: 6px; } }

/* Remaining dividers */
.page-hero, .about-page-hero, .faq-list, .faq-item, .story-section, .team-section, .facts-section,
.hero, main > section { border: 0 !important; }
.page-hero { background: transparent !important; }
.faq-item { border-bottom: 0 !important; background: var(--glass); border-radius: 14px; margin-bottom: 10px; padding-left: 20px; padding-right: 20px; }
.trust-icon:empty::before, .course-icon:empty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-a); }
:focus-visible { outline: 2px solid var(--accent-a); outline-offset: 3px; }
