/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== TOKENS ===== */
:root {
  --amber: #f0a500;
  --amber-dark: #d99200;
  --dark: #1a1a1a;
  --white: #ffffff;
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: Impact, "Arial Black", sans-serif;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1 { font-size: clamp(42px, 6.5vw, 88px); }
h2 { font-size: clamp(34px, 4.4vw, 62px); }
h3 { font-size: clamp(28px, 3vw, 40px); }

/* NAV is handled by Tailwind + main.js (ETC Home style) */
.nav-logo-img { height: 28px; width: auto; }

/* Mobile menu */
.mobile-menu-bg { background: #020301; }
.mobile-nav-link { border-color: rgba(255,255,255,0.08); }
.hidden-modules-inner { border-top: none; }

/* ===== HERO ===== */
.hero {
  background: var(--amber);
  padding: 128px 32px 100px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero p {
  font-size: 1.05rem;
  color: var(--dark);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
  opacity: 0.85;
}

.btn-pay {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  padding: 14px 44px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-pay:hover {
  background: #333;
  transform: translateY(-1px);
}

/* ===== INSTRUCTORS ===== */
.instructors-section {
  background: var(--white);
  padding: 64px 0 0;
}

.instructors-header {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 48px;
}

.instructors-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.instructors-names {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  padding-top: 6px;
}

.instructors-photos {
  position: relative;
}

.amber-bar {
  height: 8px;
  background: var(--amber);
  width: 100%;
}

.photos-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  width: 100%;
  overflow: hidden;
}

.photo-slot {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ccc;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ===== WHAT YOU'LL LEARN ===== */
.outcomes-section {
  background: var(--amber);
  padding: 72px 48px;
}

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

.outcomes-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.outcomes-left p {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.75;
  opacity: 0.85;
}

.outcomes-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.outcome-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.outcome-item:first-child { padding-top: 0; }
.outcome-item:last-child { border-bottom: none; }

.outcome-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.outcome-check svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}

.outcome-item p {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.6;
}

/* ===== CURRICULUM ===== */
.curriculum-section {
  background: var(--white);
  padding: 72px 48px;
}

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

.curriculum-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
}

.module-list {
  border-top: 1px solid #e0e0e0;
}

.module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.15s;
}

.module-row:hover { color: var(--amber-dark); }

.module-row-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark);
}

.module-row-chevron {
  font-size: 1rem;
  color: #888;
  transition: transform 0.25s;
}

.module-row.open .module-row-chevron { transform: rotate(180deg); }

.module-row-lessons {
  display: none;
  padding: 0 0 16px 0;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
  border-bottom: 1px solid #e0e0e0;
}

.module-row.open + .module-row-lessons { display: block; }

.show-more {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
  border-bottom: 1px solid #aaa;
  padding-bottom: 1px;
}

.show-more:hover { color: #333; }

/* ===== COURSE CARD ===== */
.course-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.course-card-top {
  background: var(--dark);
  padding: 24px;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card-label {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  font-family: var(--font-display);
}

.course-card-mid {
  background: var(--amber);
  padding: 20px 24px;
  min-height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.course-card-mid p {
  font-size: 0.78rem;
  color: var(--dark);
  line-height: 1.5;
  max-width: 160px;
}

.course-card-illustration {
  flex-shrink: 0;
  opacity: 0.9;
}

.course-card-illustration svg {
  width: 80px;
  height: 80px;
}

.course-card-bottom {
  background: var(--white);
  padding: 20px 24px;
}

.course-card-bottom h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dark);
  display: inline-block;
}

.course-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.course-meta-row:last-child { border-bottom: none; }

.course-meta-icon {
  font-size: 1rem;
  color: #555;
  width: 20px;
  text-align: center;
}

.course-meta-text {
  font-size: 0.875rem;
  color: #333;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--white);
  padding: 72px 48px;
  border-top: 1px solid #e8e8e8;
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
}

.faq-item { border-top: 1px solid #e0e0e0; }
.faq-item:last-child { border-bottom: 1px solid #e0e0e0; }

.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #555;
  transition: transform 0.25s;
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-q-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.faq-a {
  display: none;
  padding: 0 0 20px 40px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.75;
}

.faq-item.open .faq-a { display: block; }

/* ===== CTA STRIP ===== */
.cta-strip {
  background: var(--amber);
  padding: 56px 32px;
  text-align: center;
}

.cta-strip h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.cta-strip p {
  font-size: 1rem;
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 28px;
}



/* ===== MODULE ACCORDION ===== */
.module-lessons-panel {
  display: none;
  border-bottom: 1px solid #e0e0e0;
}

.module-row.open + .module-lessons-panel { display: block; }

.module-row.open .module-row-chevron { transform: rotate(180deg); }

.lesson-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.lesson-row:last-child { border-bottom: none; }

.lesson-icon-tx,
.lesson-icon-ar { flex-shrink: 0; line-height: 0; }

.lesson-name { line-height: 1.4; }

/* ===== HIDDEN MODULES ===== */
.hidden-modules { display: none; }
.hidden-modules.visible { display: block; }

/* ===== PROMO STICKY BAR ===== */
.promo-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--dark);
  border-top: 2px solid var(--amber);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-bar.visible { transform: translateY(0); }

.promo-phase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-phase--hidden { display: none; }

.promo-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.promo-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.promo-bar-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.promo-badge--week { background: #fff; }

.promo-bar-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-sans);
}

.promo-bar-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1.5px dashed rgba(255,255,255,0.35);
  color: #fff;
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.promo-bar-code:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.55); }
.promo-bar-code.copied { border-color: var(--amber); background: rgba(240,165,0,0.12); }

.promo-copy-hint {
  font-size: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.promo-bar-expires {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.promo-countdown {
  display: flex;
  align-items: center;
  gap: 3px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
  font-family: var(--font-sans);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.cd-label {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-sans);
}

.cd-sep {
  font-size: 1.2rem;
  color: var(--amber);
  font-weight: 700;
  margin: 0 1px;
  line-height: 1;
  padding-bottom: 10px;
}

.promo-bar-enrol {
  background: var(--amber);
  color: var(--dark);
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.promo-bar-enrol:hover { background: #f5c842; transform: translateY(-1px); }

@media (max-width: 700px) {
  .promo-phase { padding: 12px 16px; gap: 8px; }
  .promo-bar-text { display: none; }
  .promo-bar-enrol { padding: 8px 16px; }
}

/* ===== DISCOUNT HINT (below CTA buttons) ===== */
.pay-hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(26,26,26,0.6);
  font-family: var(--font-sans);
}

.pay-hint--hidden { display: none; }

/* hero section hint is on amber bg so needs dark text */
.hero .pay-hint { color: rgba(26,26,26,0.65); }

/* ===== PAYMENT MODAL ===== */
.pay-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
}

.pay-modal-overlay.open { display: flex; }

.pay-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 48px rgba(0,0,0,0.2);
  will-change: transform, opacity;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.pay-modal-discount-tag {
  display: none;
  background: #fff8e6;
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a07000;
  font-family: var(--font-sans);
  margin-bottom: 16px;
  display: inline-block;
}

.pay-modal-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.pay-modal-card p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.pay-modal-input {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 1rem;
  margin-bottom: 10px;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}

.pay-modal-input:focus { border-color: var(--amber); }

.pay-modal-error {
  display: none;
  color: #c0392b;
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.pay-modal-submit {
  width: 100%;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  transition: background 0.2s, transform 0.15s;
}

.pay-modal-submit:hover { background: #333; transform: translateY(-1px); }

.pay-modal-cancel {
  background: none;
  border: none;
  color: #aaa;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.2s;
}

.pay-modal-cancel:hover { color: var(--dark); }

/* ===== FAQ CONTACT LINK ===== */
.faq-contact-link {
  color: #1a1a1a;
  text-decoration: underline;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .instructors-header {
    grid-template-columns: 1fr;
    padding: 0 24px 32px;
    gap: 24px;
  }

  .photos-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-slot:nth-child(n+4) { display: none; }

  .outcomes-section { padding: 56px 24px; }
  .outcomes-inner { grid-template-columns: 1fr; gap: 40px; }

  .curriculum-section { padding: 56px 24px; }
  .curriculum-inner { grid-template-columns: 1fr; }
  .course-card { max-width: 360px; }

  .faq-section { padding: 56px 24px; }

  .nav { padding: 0 20px; }
  .nav-user-name { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 56px 20px 72px; }
  .photos-strip { grid-template-columns: repeat(2, 1fr); }
  .photo-slot:nth-child(n+3) { display: none; }
}
