/* components.css — buttons, cards, badges, forms, hero, misc */

/* ── Typography ── */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height);
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-dark);
}

.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--purple h1,
.section--purple h2,
.section--purple h3 {
  color: #fff;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  box-shadow: 0 12px 32px rgba(114, 0, 229, 0.45);
  transform: translateY(-1px);
}
.btn--accent {
  background: var(--grad-accent);
  color: var(--color-dark);
  box-shadow: var(--shadow-btn-accent);
}
.btn--accent:hover {
  box-shadow: 0 12px 32px rgba(75, 196, 213, 0.45);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--color-purple-dark);
  border-color: var(--color-purple-dark);
}
.btn--outline:hover {
  background: var(--color-purple-dark);
  color: #fff;
}
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.50);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn--lg {
  padding: 17px 36px;
  font-size: 15px;
}
.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ── Hero ── */
.hero {
  background: var(--grad-hero);
  color: #fff;
  padding-block: 96px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(88, 8, 251, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  max-width: 680px;
}
.hero__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-start);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.65;
}
.hero--centered {
  text-align: center;
}
.hero--centered .hero__content {
  margin-inline: auto;
}
.hero--centered .hero__sub {
  margin-inline: auto;
}

/* ── Stats / proof bar ── */
.proof-bar {
  background: var(--color-purple-dark);
  color: #fff;
  padding-block: 28px;
}
.proof-bar__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 48px;
  align-items: center;
}
.proof-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.proof-bar__num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proof-bar__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin-top: 4px;
}
.proof-bar__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.20);
}

/* ── Cards ── */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 60px rgba(0,0,0,0.13);
}
.card__body {
  padding: 32px;
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  background: var(--color-purple-lighter);
}
.card__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-purple-mid);
  margin-bottom: 8px;
}
.card__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-dark);
}
.card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--color-purple-light);
}
.card__image--book {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--color-purple-light), var(--color-purple-lighter));
}

/* Door cards (home page Three Doors) */
.door-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid transparent;
}
.door-card--audiobooks { border-top-color: var(--color-purple-mid); }
.door-card--podcraft   { border-top-color: var(--color-accent-start); }
.door-card--tea        { border-top-color: var(--color-accent-end); }

.door-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 64px rgba(0,0,0,0.13);
}
.door-card__icon {
  font-size: 40px;
  margin-bottom: 20px;
}
.door-card__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}
.door-card__text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 28px;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--purple {
  background: var(--color-purple-lighter);
  color: var(--color-purple-dark);
}
.badge--cyan {
  background: rgba(75, 196, 213, 0.12);
  color: #087080;
}
.badge--green {
  background: rgba(164, 205, 57, 0.15);
  color: #5a7a00;
}
.badge--dark {
  background: var(--color-dark);
  color: #fff;
}

/* ── Testimonials ── */
.testimonial {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--color-purple-light);
  position: absolute;
  top: 16px;
  left: 28px;
  font-style: italic;
}
.testimonial__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-top: 20px;
}
.testimonial__author {
  font-weight: 800;
  font-size: 14px;
  color: var(--color-dark);
}
.testimonial__role {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ── FAQ Accordion ── */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--color-purple-mid); }
.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-purple-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-purple-mid);
  color: #fff;
}
.faq-answer {
  display: none;
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-item.is-open .faq-answer {
  display: block;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--color-purple-mid);
  box-shadow: 0 0 0 3px rgba(114, 0, 229, 0.12);
}
.form-control.error {
  border-color: #e53e3e;
}
.form-error-msg {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
  display: none;
}
.form-control.error + .form-error-msg {
  display: block;
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-success {
  display: none;
  background: rgba(164, 205, 57, 0.12);
  border: 2px solid var(--color-accent-end);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-weight: 600;
  color: #3a5a00;
  text-align: center;
}
.inquiry-form {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 48px;
  max-width: 640px;
  margin-inline: auto;
}

/* ── Filter tabs ── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  justify-content: center;
}
.filter-tab {
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-bg);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover {
  border-color: var(--color-purple-mid);
  color: var(--color-purple-mid);
}
.filter-tab.active {
  background: var(--color-purple-dark);
  border-color: var(--color-purple-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(71, 35, 102, 0.25);
}

/* ── Step cards (PodCraft how it works) ── */
.step-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Process number cards (vertical stacking on mobile) ── */
.process-steps {
  display: grid;
  gap: 20px;
}

/* ── Calculator widget ── */
.calculator {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 48px;
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}
.calculator h3 {
  margin-bottom: 8px;
}
.calculator p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}
.slider-wrap {
  margin-bottom: 24px;
}
.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--color-purple-mid) 0%, var(--color-purple-mid) var(--pct, 30%), var(--color-border) var(--pct, 30%), var(--color-border) 100%);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-purple-dark);
  box-shadow: 0 2px 8px rgba(71,35,102,0.35);
  cursor: pointer;
}
.calc-result {
  background: var(--color-purple-lighter);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-top: 20px;
}
.calc-result__num {
  font-size: 42px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.calc-result__label {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ── Team cards ── */
.team-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
}
.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--color-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--color-purple-dark);
}
.team-card__body {
  padding: 24px;
}
.team-card__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.team-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-purple-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.team-card__bio {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Awards bar ── */
.awards-bar {
  background: var(--color-purple-lighter);
  padding-block: 40px;
  text-align: center;
}
.awards-bar__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.awards-bar__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  align-items: center;
}
.awards-bar__item {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-purple-dark);
  opacity: 0.75;
}

/* ── Partner directory cards ── */
.partner-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 56px rgba(0,0,0,0.12);
}
.partner-card__logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--color-purple-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.partner-card__name {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-dark);
}
.partner-card__category {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-purple-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.partner-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

/* ── Article cards (Insights) ── */
.article-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.article-card:hover { transform: translateY(-3px); }
.article-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.article-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}
.article-card__excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

/* ── Audio player stub ── */
.audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-purple-lighter);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 12px;
}
.audio-player__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  cursor: pointer;
}
.audio-player__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ── Event card ── */
.event-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px;
  max-width: 720px;
  margin-inline: auto;
  border-left: 5px solid var(--color-accent-end);
}
.event-card__date {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-end);
  margin-bottom: 8px;
}
.event-card__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 12px;
}
.event-card__panelists {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ── Misc helpers ── */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.hidden { display: none; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .inquiry-form { padding: 28px 20px; }
  .calculator   { padding: 28px 20px; }
  .hero { padding-block: 60px 48px; }
  .door-card { padding: 28px 24px; }
  .proof-bar__divider { display: none; }
}
