/* ============================================
   ULEM RTS Landing Page — Styles
   Typography: DM Sans + Instrument Serif
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #CC0000;
  --red-hover: #A30000;
  --dark: #1A1A1A;
  --dark-surface: #222222;
  --off-white: #F5F5F5;
  --white: #FFFFFF;
  --gray-light: #DDDDDD;
  --gray-mid: #555555;
  --rose: #F5EDED;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
em { font-family: var(--font-display); font-style: italic; }

/* Screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Headlines --- */
.section-headline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.section-headline--white { color: var(--white); }

/* Red divider rule */
.learn__rule, .qualify__rule, .form-card__rule,
.timeline__rule, .instructor__rule, .faq__rule {
  width: 80px;
  height: 3px;
  background: var(--red);
  margin: 12px 0 24px;
  border: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s var(--ease-spring), box-shadow 0.2s ease;
  text-align: center;
}

.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(204, 0, 0, 0.3);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--full { width: 100%; }

/* Spinner inside button */
.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn--loading .btn__text { display: none; }
.btn--loading .btn__spinner { display: inline-block; }
.btn--loading { pointer-events: none; opacity: 0.85; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Reveal animations --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   SECTION 1: HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: 48px 0 56px;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--red);
}

.hero__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__logo-row {
  margin-bottom: 32px;
}

.hero__logo {
  width: 48px;
  height: 48px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gray-light);
  margin-bottom: 16px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 12px;
  max-width: 600px;
}

.hero__rule {
  width: 80px;
  height: 3px;
  background: var(--red);
  margin: 16px 0;
}

.hero__sub {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--gray-light);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.hero__secondary-cta {
  font-size: 0.9rem;
  color: var(--gray-light);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__secondary-cta:hover {
  color: var(--white);
  border-color: var(--white);
}

.hero__secondary-cta:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-light);
  opacity: 0.7;
}

.hero__trust-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* ============================================
   SECTION 2: STATS
   ============================================ */
.stats {
  background: var(--white);
  padding: 64px 0;
}

.stats__intro {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--dark);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--off-white);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card--highlight {
  background: var(--rose);
  border-color: rgba(204, 0, 0, 0.08);
}

.stat-card__number {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-card__label {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.4;
}

.stats__bridge {
  text-align: center;
  font-size: 1.05rem;
  color: var(--dark);
  max-width: 600px;
  margin: 0 auto 12px;
}

.stats__sources {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-mid);
  opacity: 0.7;
}


/* ============================================
   SECTION 3: WHAT YOU'LL LEARN
   ============================================ */
.learn {
  background: var(--off-white);
  padding: 64px 0;
}

.learn__sub {
  font-size: 1rem;
  color: var(--gray-mid);
  margin-bottom: 32px;
  max-width: 520px;
}

.learn__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.role-card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 3px solid var(--red);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.role-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose);
  border-radius: 10px;
  color: var(--red);
}

.role-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
  margin-bottom: 4px;
}

.role-card__desc {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.45;
}

.cert-callout {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 2px solid var(--red);
}

.cert-callout__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose);
  border-radius: 50%;
  color: var(--red);
}

.cert-callout p {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.5;
}


/* ============================================
   SECTION 4: WHO THIS IS FOR
   ============================================ */
.qualify {
  background: var(--white);
  padding: 64px 0;
}

.qualify__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.qualify__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}

.qualify__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose);
  border-radius: 50%;
  color: var(--red);
  margin-top: 1px;
}

.qualify__banner {
  background: var(--rose);
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.5;
}


/* ============================================
   SECTION 5 & 8: FORMS
   ============================================ */
.form-section--light {
  background: var(--off-white);
  padding: 64px 0;
}

.form-section--dark {
  background: var(--dark);
  padding: 64px 0;
}

.form-card {
  max-width: 560px;
  margin: 0 auto;
}

.form-card--light {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.form-card--dark {
  background: var(--dark-surface);
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid rgba(255,255,255,0.06);
}

.form-card__sub {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.5;
  margin-bottom: 8px;
}

.form-card__sub--light {
  color: var(--gray-light);
}

.form-card__schedule {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-bottom: 28px;
  font-weight: 500;
}

/* Date picker */
.date-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.date-option {
  padding: 14px 12px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s var(--ease-spring);
  user-select: none;
}

.date-option:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

.date-option:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.date-option[aria-checked="true"] {
  border-color: var(--red);
  background: var(--rose);
}

.date-option__day {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.date-option__time {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-mid);
}

/* Form fields */
.form__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.form--dark .form__label { color: var(--gray-light); }

.form__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form__input::placeholder {
  color: #aaa;
}

.form__input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form__input--error {
  border-color: var(--red);
}

.form--dark .form__input {
  background: var(--dark);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}

.form--dark .form__input::placeholder {
  color: #666;
}

.form--dark .form__input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
}

.form__error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 4px;
  min-height: 0;
}

.form__reassure {
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-top: 16px;
  text-align: center;
  line-height: 1.5;
}

.form__reassure--light { color: var(--gray-light); }

/* Success state */
.form__success {
  text-align: center;
  padding: 24px 0;
}

.form__success-icon {
  display: inline-block;
  color: #22c55e;
  margin-bottom: 16px;
}

.form__success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form__success p {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

.form__success a {
  color: var(--red);
  font-weight: 700;
  border-bottom: 1px solid var(--red);
}

/* Success state on dark forms */
.form--dark ~ .form__success h3 { color: var(--white); }
.form--dark ~ .form__success p { color: var(--gray-light); }
.form--dark ~ .form__success a { color: var(--red); }

.form-card__fallback {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--gray-light);
}

.form-card__fallback-link {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s ease;
}

.form-card__fallback-link:hover { border-color: var(--white); }


/* ============================================
   SECTION 6: TIMELINE
   ============================================ */
.timeline-section {
  background: var(--white);
  padding: 64px 0;
}

.timeline {
  position: relative;
  margin: 32px 0;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  opacity: 0.25;
}

.timeline__phase {
  position: relative;
  margin-bottom: 36px;
}

.timeline__phase:last-child { margin-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: -48px;
  top: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border-radius: 50%;
  z-index: 1;
}

.timeline__number {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.timeline__weeks {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.timeline__phase p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.55;
}

.timeline__callouts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.callout-card {
  background: var(--off-white);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(0,0,0,0.04);
}

.callout-card--support {
  background: var(--rose);
  border-color: rgba(204, 0, 0, 0.06);
}

.callout-card__icon {
  flex-shrink: 0;
  color: var(--red);
  margin-top: 2px;
}

.callout-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--dark);
}


/* ============================================
   SECTION 7: INSTRUCTOR
   ============================================ */
.instructor {
  background: var(--off-white);
  padding: 64px 0;
}

.instructor__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 8px;
}

.instructor__photo-wrap {
  display: flex;
  justify-content: center;
}

.instructor__photo {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--red);
}

.instructor__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.instructor__title {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 16px;
}

.instructor__text {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.6;
  margin-bottom: 12px;
}

.instructor__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--red);
  background: var(--rose);
  border-radius: 100px;
  padding: 6px 14px;
}


/* ============================================
   SECTION 9: FAQ
   ============================================ */
.faq {
  background: var(--off-white);
  padding: 64px 0;
}

.accordion {
  max-width: 680px;
}

.accordion__item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.accordion__item:last-child { border-bottom: none; }

.accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  transition: color 0.2s ease;
}

.accordion__header::-webkit-details-marker { display: none; }
.accordion__header::marker { display: none; content: ''; }

.accordion__header:hover { color: var(--red); }

.accordion__header:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

.accordion__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  margin-left: 16px;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out);
}

.accordion__icon::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion__icon::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion__item[open] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion__body {
  padding: 0 0 20px;
}

.accordion__body p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.6;
}


/* ============================================
   SECTION 10: FINAL CTA
   ============================================ */
.final-cta {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 48px;
  text-align: center;
}

.final-cta__rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.final-cta__logo {
  margin: 0 auto 24px;
  opacity: 0.5;
}

.final-cta__headline {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.final-cta__sub {
  font-size: 1rem;
  color: var(--gray-light);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.final-cta__secondary {
  font-size: 0.9rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.final-cta__secondary:hover { border-color: var(--white); }
.final-cta__secondary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }


/* ============================================
   SECTION 11: FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer__text {
  font-size: 0.78rem;
  opacity: 0.6;
}

.footer__privacy {
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer__link {
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: opacity 0.2s ease;
}

.footer__link:hover { opacity: 1; }


/* ============================================
   RESPONSIVE: TABLET & UP (640px)
   ============================================ */
@media (min-width: 640px) {
  .container { padding: 0 32px; }

  .hero { padding: 64px 0; }
  .hero__inner { padding: 0 40px; }
  .hero__headline { font-size: 3rem; }
  .hero__logo { width: 56px; height: 56px; }
  .hero__accent-bar { width: 6px; }

  .section-headline { font-size: 1.85rem; }

  .stats__intro { font-size: 1.5rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat-card__number { font-size: 2.5rem; }

  .learn__grid { grid-template-columns: 1fr 1fr; }

  .date-picker { grid-template-columns: 1fr 1fr 1fr; }
  .form__fields { grid-template-columns: 1fr 1fr; }
  .form-card--light, .form-card--dark { padding: 48px 40px; }

  .timeline__callouts { grid-template-columns: 1fr 1fr; }

  .final-cta__headline { font-size: 2.25rem; }
}


/* ============================================
   RESPONSIVE: DESKTOP (960px)
   ============================================ */
@media (min-width: 960px) {
  .hero__headline { font-size: 3.5rem; max-width: 700px; }
  .hero__sub { font-size: 1.2rem; }
  .hero__ctas { flex-direction: row; align-items: center; }
  .hero { min-height: 85vh; }

  .stats { padding: 80px 0; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }

  .learn { padding: 80px 0; }
  .qualify { padding: 80px 0; }

  .instructor__layout {
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
  }

  .instructor__photo { width: 240px; height: 240px; }
  .instructor { padding: 80px 0; }

  .timeline-section { padding: 80px 0; }
  .faq { padding: 80px 0; }
  .form-section--light, .form-section--dark { padding: 80px 0; }
  .final-cta { padding: 80px 0 64px; }
}
