/* ============================================
   ApexEdOS — EMS Training Landing Page
   Warm, professional aesthetic for healthcare education
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- TOKENS ---- */
:root {
  --cream:       #faf7f2;
  --cream-deep:   #f0ece2;
  --cream-border: #e6dfd2;
  --charcoal:     #1a1a2e;
  --charcoal-mid: #2d2d45;
  --text-dark:    #1a1a2e;
  --text-muted:   #6b6880;
  --text-dim:     #9896a8;
  --amber:        #c8860a;
  --amber-light:  #f0a819;
  --amber-glow:   rgba(200, 134, 10, 0.12);
  --amber-glow-strong: rgba(200, 134, 10, 0.22);
  --red-soft:     #c0392b;
  --white:        #ffffff;
  --shadow-sm:    0 1px 4px rgba(26,26,46,0.07);
  --shadow-md:    0 4px 20px rgba(26,26,46,0.10);
  --shadow-lg:    0 12px 48px rgba(26,26,46,0.14);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(38px, 5.5vw, 68px); letter-spacing: -2px; }
h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -1.5px; }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
p  { line-height: 1.75; }

a { color: inherit; text-decoration: none; }

.accent        { color: var(--amber); }
.accent-dark   { color: var(--charcoal); }
.text-muted    { color: var(--text-muted); }
.text-dim      { color: var(--text-dim); }

/* ---- NAVIGATION ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand span { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal-mid);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--charcoal);
  background: var(--cream-deep);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-locations {
  display: flex;
  align-items: center;
  gap: 6px;
}

.loc-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--cream-deep);
  border: 1px solid var(--cream-border);
  padding: 3px 10px;
  border-radius: 20px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.2px;
}

.nav-cta:hover { background: var(--charcoal-mid); transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0); }

/* ---- HERO ---- */
.hero {
  padding: 80px 32px 96px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-glow);
  border: 1px solid rgba(200, 134, 10, 0.25);
  padding: 7px 16px;
  border-radius: 4px;
  margin-bottom: 28px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 22px;
  color: var(--charcoal);
}

.hero h1 .accent { color: var(--amber); }

.hero-lede {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 12px rgba(200, 134, 10, 0.35);
}

.btn-primary:hover {
  background: #b57808;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 134, 10, 0.4);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cream-border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.btn-secondary:hover {
  border-color: var(--amber);
  background: var(--amber-glow);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-border);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
}

.hero-meta-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---- SECTION COMMON ---- */
.section {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.section-header {
  margin-bottom: 48px;
}

/* ---- NREMT TUTORING ---- */
.nremt-section {
  background: var(--charcoal);
  padding: 96px 32px;
}

.nremt-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.nremt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber-light);
  background: rgba(240, 168, 25, 0.12);
  border: 1px solid rgba(240, 168, 25, 0.25);
  padding: 7px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.nremt-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.nremt-title .accent { color: var(--amber-light); }

.nremt-lede {
  font-size: 17px;
  color: #9896b0;
  line-height: 1.75;
  margin-bottom: 32px;
}

.nremt-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.nremt-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: #d8d6e8;
  line-height: 1.5;
}

.nremt-points li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--amber-light);
}

.nremt-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-light);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.2px;
}

.nremt-cta:hover { background: #f5b82a; transform: translateY(-2px); }

.nremt-visual {
  background: var(--amber-glow-strong);
  border: 1px solid rgba(240, 168, 25, 0.2);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}

.nremt-visual-label {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  color: var(--amber-light);
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 8px;
}

.nremt-visual-sub {
  font-size: 14px;
  font-weight: 600;
  color: #9896b0;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.nremt-visual-detail {
  font-size: 15px;
  color: #9896b0;
  line-height: 1.65;
}

.nremt-visual-bar {
  height: 6px;
  background: linear-gradient(to right, var(--amber-light), #f0a81980);
  border-radius: 3px;
  margin-top: 24px;
  overflow: hidden;
}

.nremt-visual-bar-fill {
  height: 100%;
  background: var(--amber-light);
  border-radius: 3px;
  animation: bar-grow 2s ease-out forwards;
  width: 0%;
}

@keyframes bar-grow {
  to { width: 78%; }
}

/* ---- COURSES ---- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--amber), var(--amber-light));
  opacity: 0;
  transition: opacity 0.2s;
}

.course-card:hover {
  border-color: rgba(200, 134, 10, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.course-card:hover::before { opacity: 1; }

.course-card-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-glow);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}

.course-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.course-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.course-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.course-card-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.course-card-stat svg { color: var(--amber); flex-shrink: 0; }

.course-card.aha {
  border-color: rgba(200, 134, 10, 0.25);
  background: #fffbf0;
}

/* ---- TRUST ---- */
.trust-section {
  background: var(--cream-deep);
  padding: 80px 32px;
  border-top: 1px solid var(--cream-border);
  border-bottom: 1px solid var(--cream-border);
}

.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.trust-header {
  text-align: center;
  margin-bottom: 56px;
}

.trust-header .section-title { margin-bottom: 8px; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-item {
  text-align: center;
  padding: 32px 24px;
}

.trust-icon {
  width: 56px;
  height: 56px;
  background: var(--amber-glow);
  border: 1.5px solid rgba(200, 134, 10, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--amber);
}

.trust-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- LOCATIONS ---- */
.locations-section {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.locations-header {
  text-align: center;
  margin-bottom: 56px;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.location-card {
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
}

.location-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--amber), transparent);
  border-radius: 0 0 2px 2px;
}

.location-city {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.location-state {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-muted);
}

.location-detail svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }

.location-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.loc-course-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal-mid);
  background: var(--cream-deep);
  border: 1px solid var(--cream-border);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ---- CLOSING / CTA ---- */
.closing {
  background: var(--charcoal);
  padding: 100px 32px;
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber-light);
  display: block;
  margin-bottom: 20px;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.closing h2 .accent { color: var(--amber-light); }

.closing p {
  font-size: 18px;
  color: #9896b0;
  line-height: 1.7;
  margin-bottom: 36px;
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-enroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-light);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.2px;
}

.btn-enroll:hover { background: #f5b82a; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9896b0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(152, 150, 176, 0.3);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover { border-color: var(--amber-light); color: var(--amber-light); }

.enrollware-note {
  font-size: 12px;
  color: #5a5870;
  margin-top: 20px;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}

.footer-brand span { color: var(--amber); }

.footer-tagline {
  font-size: 13px;
  color: #5a5870;
  margin-top: 3px;
}

.footer-right {
  font-size: 12px;
  color: #5a5870;
}

.footer-right a {
  color: #9896b0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-right a:hover { color: var(--amber-light); }

/* ---- FOOTER CONTACT ---- */
.footer-contact a {
  color: #9896b0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-contact a:hover { color: var(--amber-light); }

/* ---- LOCATION BOOKING CTA ---- */
.location-book-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  background: var(--amber);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 10px rgba(200, 134, 10, 0.25);
}
.location-book-cta:hover {
  background: #b57808;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 134, 10, 0.35);
}
.location-book-cta:active { transform: translateY(0); }

/* ---- ENROLLWARE NOTE LINK ---- */
.enrollware-note a {
  color: var(--amber-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.enrollware-note a:hover { color: #f5b82a; }

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nremt-inner { grid-template-columns: 1fr; gap: 40px; }
  .nremt-visual { order: -1; }
  .courses-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 10;
    background: var(--cream);
    border-top: 1px solid var(--cream-border);
    padding: 12px 0;
    gap: 0;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
  }
  .hamburger { display: flex; }
  .nav-locations { display: none; }
  .hero { padding: 60px 20px 72px; }
  .section { padding: 64px 20px; }
  .nremt-section { padding: 64px 20px; }
  .closing { padding: 72px 20px; }
  .hero-stats { flex-direction: column; align-items: flex-start; }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
  .locations-section { padding: 64px 20px; }
  .trust-section { padding: 64px 20px; }
  .location-card { padding: 32px 28px; }
  .courses-grid { gap: 16px; }
  .course-card { padding: 28px 24px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
}

@media (max-width: 480px) {
  h1 { letter-spacing: -1px; }
  h2 { letter-spacing: -0.5px; }
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .nremt-title { font-size: 34px; }
  .hero-lede { font-size: 17px; }
  .btn-primary, .btn-secondary { font-size: 14px; }
  .closing h2 { font-size: 30px; }
}