@import url("https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css");

/* Background + base font */
body {
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.45), rgba(10, 10, 15, 0.35)),
    url("/assets/images/man-water-vuur.webp") center center / cover fixed;
  color: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Top bar teasers */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.5rem 1rem;
  max-width: 72rem; /* align with hero width */
  margin: 0 auto;
}
.top-teasers {
  flex: 1;
  max-width: 900px;
  height: 2.6rem;
  font-size: 1.05rem;
  line-height: 1.3;
  opacity: 0.9;
  min-width: 0;
}
.top-teasers p { color: #fbbf24; }

/* Rotating teaser questions */
.teasers {
  --count: 6;
  --per: 4s;
  --time: calc(var(--per) * var(--count));
  position: relative;
  height: 2.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  overflow: hidden;
}

.teasers p {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  color: #fbbf24;
  transform: translateY(100%);
  animation: teaserCycle var(--time) linear infinite;
}

.teasers p:nth-child(1) { animation-delay: calc((var(--time)/var(--count)) * 0); }
.teasers p:nth-child(2) { animation-delay: calc((var(--time)/var(--count)) * 1); }
.teasers p:nth-child(3) { animation-delay: calc((var(--time)/var(--count)) * 2); }
.teasers p:nth-child(4) { animation-delay: calc((var(--time)/var(--count)) * 3); }
.teasers p:nth-child(5) { animation-delay: calc((var(--time)/var(--count)) * 4); }
.teasers p:nth-child(6) { animation-delay: calc((var(--time)/var(--count)) * 5); }

@keyframes teaserCycle {
  0%   { opacity: 0; transform: translateY(100%); }
  8%   { opacity: 1; transform: translateY(0); }
  20%  { opacity: 1; transform: translateY(0); }
  25%  { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(-100%); }
}

@media (max-width: 640px) {
  .top-teasers { height: 3.4rem; font-size: 1rem; line-height: 1.35; }
  .teasers {
    height: 3.4rem;
    font-size: 1rem;
  }
}

.keyword { color: #fbbf24; font-weight: 600; }

a { color: #fbbf24; }
a:hover,
a:focus { color: #fb923c; }

/* Basic typography to replace lost defaults */
body { line-height: 1.6; }
p { margin: 0 0 1rem; color: #e2e8f0; }
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* Align member page headings so H1 isn't oversized */
.members-content h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
ul, ol {
  padding-left: 1.25rem;
  margin: 0.35rem 0 1rem;
}
ul { list-style: disc; }
ol { list-style: decimal; }
li + li { margin-top: 0.35rem; }

/* Reusable utility classes (no Tailwind build step available) */
.content-panel {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  padding: clamp(1.5rem, 2vw, 2rem);
}

.quote-panel {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: #e2e8f0;
  font-style: italic;
  position: relative;
}
.quote-panel::before {
  content: "“";
  position: absolute;
  top: -0.6rem;
  left: 0.75rem;
  font-size: 2.5rem;
  color: rgba(251, 191, 36, 0.8);
  line-height: 1;
}

.section-card {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 1.25rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) {
  .section-card { padding: 2.5rem; }
}

.modal-panel {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  transition: transform 120ms ease, box-shadow 160ms ease;
}
.btn-primary.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  .btn-primary { padding: 0.75rem 1.35rem; }
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 120ms ease, box-shadow 160ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.3);
  border-color: rgba(251, 191, 36, 0.6);
  color: #fbbf24;
}

/* Panel layout helpers to reduce repeated Tailwind strings */
.panel {
  width: 100%;
  scroll-margin-top: 8rem; /* matches scroll-mt-32 */
}
.panel > * + * { margin-top: 1rem; } /* space-y-4 */
@media (min-width: 768px) {
  .panel { max-width: 48rem; } /* md:max-w-3xl */
}
.panel-start { align-self: flex-start; }
.panel-end { align-self: flex-end; }
.panel-center { align-self: center; }

/* Section card helper */
.section-card {
  display: block;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 1.25rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  scroll-margin-top: 8rem;
}
.section-card > * + * { margin-top: 1.25rem; } /* space-y-5/6 */
@media (min-width: 768px) {
  .section-card { padding: 2.5rem; }
}
.section-card + .section-card {
  margin-top: 2.5rem;
}

/* Ensure form inputs stay readable on dark sections (overrides native white fields) */
.section-card input,
.section-card textarea,
.section-card select {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
.section-card input::placeholder,
.section-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Modal overlay + panel helpers */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
}
.modal-overlay.hidden {
  display: none !important;
}

/* Newsletter flyout */
#newsletter-modal.newsletter-flyout {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: min(26rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#newsletter-modal.newsletter-flyout .modal-panel {
  pointer-events: auto;
  padding: 1.25rem 1.35rem 1.4rem;
  border: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}
#newsletter-modal.newsletter-flyout.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#newsletter-modal.newsletter-flyout.hidden {
  display: none !important;
}
@media (max-width: 640px) {
  #newsletter-modal.newsletter-flyout {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
    max-height: calc(100vh - 1.5rem);
  }
  #newsletter-modal.newsletter-flyout .modal-panel {
    max-height: calc(100vh - 2rem);
  }
}

/* Hero mobile collapse behavior */
#banner.hero-collapsed .hero-teasers,
#banner.hero-collapsed .hero-subtitle {
  opacity: 0;
  visibility: hidden;
}
#banner.hero-collapsed .hero-teasers,
#banner.hero-collapsed .hero-subtitle {
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Hero shrink on scroll */
#banner {
  transition: padding 0.3s ease, background 0.3s ease;
}
#banner .hero-inner {
  transition: padding 0.3s ease;
}
#banner .hero-title {
  transition: font-size 0.3s ease, line-height 0.3s ease, margin 0.3s ease;
}
@media (max-width: 767px) {
  #banner .hero-inner { padding-top: 1rem !important; padding-bottom: 1.25rem !important; }
  #banner.hero-collapsed .hero-inner { padding-top: 0.4rem !important; padding-bottom: 0.5rem !important; }
  #banner.hero-collapsed .hero-title { font-size: 1.4rem !important; line-height: 1.05; }
  #banner.hero-collapsed .hero-secondary { margin-top: 0 !important; }
}
@media (min-width: 768px) {
  #banner.hero-collapsed .hero-inner { padding-top: 0.4rem !important; padding-bottom: 0.5rem !important; }
  #banner.hero-collapsed .hero-title { font-size: 2rem !important; line-height: 1.15; }
  #banner.hero-collapsed .hero-secondary { margin-top: 0 !important; }
}
#banner.hero-collapsed .hero-inner > * + * {
  margin-top: 0 !important;
}

/* MailerLite embed styling */
.newsletter-embed .ml-form-embedContainer,
.newsletter-embed .ml-form-embedWrapper,
.newsletter-embed .ml-form-embedBody,
.newsletter-embed .ml-block-form,
.newsletter-embed .ml-form-formContent,
.newsletter-embed .ml-form-fieldRow,
.newsletter-embed .ml-form-embedSubmit {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.newsletter-embed .ml-form-embedContent {
  display: none !important;
}
.newsletter-embed .ml-form-fieldRow {
  position: relative !important;
}
.newsletter-embed input[type="email"],
.newsletter-embed input[type="text"] {
  width: 100% !important;
  padding: 1rem 4.25rem 1rem 1.25rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  background: rgba(0,0,0,0.35) !important;
  color: #fff !important;
  font-size: 1rem !important;
  box-sizing: border-box !important;
}
.newsletter-embed input::placeholder {
  color: rgba(255,255,255,0.7) !important;
}
.newsletter-embed input:focus {
  outline: none !important;
  border-color: #ffb347 !important;
  box-shadow: 0 0 0 3px rgba(255,179,71,0.2) !important;
}
.newsletter-embed .ml-form-embedSubmit {
  position: absolute !important;
  top: 50% !important;
  right: 0.4rem !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
}
.newsletter-embed .ml-form-embedSubmit button {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: none !important;
  background: linear-gradient(135deg, #ffb347, #ff8235) !important;
  color: transparent !important;
  font-size: 0 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.newsletter-embed .ml-form-embedSubmit button::after {
  content: "→";
  color: #1b1b1b;
  font-size: 1.4rem;
  line-height: 1;
}
.newsletter-embed .ml-form-embedSubmit button:hover,
.newsletter-embed .ml-form-embedSubmit button:focus {
  transform: scale(1.05) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.35) !important;
  outline: none !important;
}
.newsletter-embed .ml-form-embedSubmit .loading,
.newsletter-embed .ml-form-embedSubmit button.loading { display: none !important; }
.newsletter-embed .ml-form-successBody {
  background: rgba(255,255,255,0.05) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  text-align: center !important;
}
.newsletter-embed .ml-form-successContent h4 { color: #ffb347 !important; }
.newsletter-embed .ml-form-successContent p { color: #fff !important; }
.nl-pill {
  position: relative;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  padding: 0.15rem 0.2rem;
}

/* Higher-specificity overrides for MailerLite injected IDs */
.newsletter-embed [id^="mlb2-"].ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input {
  width: 100% !important;
  padding: 1rem 4.25rem 1rem 1.25rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  background: rgba(0,0,0,0.35) !important;
  color: #fff !important;
  font-size: 1rem !important;
  box-sizing: border-box !important;
}
.newsletter-embed [id^="mlb2-"].ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
  position: absolute !important;
  top: 50% !important;
  right: 0.4rem !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
}
.newsletter-embed [id^="mlb2-"].ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: none !important;
  background: linear-gradient(135deg, #ffb347, #ff8235) !important;
  color: transparent !important;
  font-size: 0 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.newsletter-embed [id^="mlb2-"].ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button::after {
  content: "→";
  color: #1b1b1b;
  font-size: 1.4rem;
  line-height: 1;
}

/* Module 1 session layout */
.module1 {
  display: flex;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}
.module1-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 6rem;
  align-self: flex-start;
  background: rgba(0,0,0,0.7);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.module1-sidebar h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.module1-back {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
}
.module1-back a {
  color: #ffb347;
  text-decoration: none;
}
.module1-sidebar ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.module1-sidebar li + li {
  margin-top: 0.35rem;
}
.module1-sidebar a {
  color: #fff;
  text-decoration: none;
}
.module1-sidebar li.is-active a {
  font-weight: 700;
  border-left: 3px solid #ffb347;
  padding-left: 0.5rem;
}
.module1-content {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,0.7);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  box-sizing: border-box;
}
.module1-bottom-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}
.module1-bottom-nav a {
  text-decoration: none;
  color: #ffb347;
  font-weight: 600;
}
@media (max-width: 800px) {
  .module1 {
    flex-direction: column;
  }
  .module1-sidebar {
    position: static;
    order: -1;
  }
}
