/* ============================================================
   Tradition Page — public template styles
   Reusable across all /traditions/{slug} pages.
   All colour tokens are ALIASED to the global theme variables
   (--p / --p-rgb etc.) emitted by includes/brand-color.php so
   every tradition page always follows the site-wide branding.
   ============================================================ */

/* ── Token aliases (fallbacks = brand default #4a3fcf) ── */
:root {
  --tp-purple:      var(--p,       #4a3fcf);
  --tp-purple-dark: var(--p-dark,  #3a31a6);
  --tp-purple-mid:  var(--p-mid,   #8a80e0);
  --tp-purple-soft: var(--p-soft,  #f1f0fb);
  --tp-purple-rgb:  var(--p-rgb,   74, 63, 207);
  --tp-ink:         var(--heading, #111827);
  --tp-text:        var(--muted,   #6b7280);
  --tp-border:      var(--border,  #e5e7eb);
  --tp-bg:          #ffffff;
  --tp-bg-alt:      #faf9fe;
  --tp-radius:      18px;
  --tp-radius-sm:   12px;
  --tp-shadow:      0 8px 30px rgba(var(--tp-purple-rgb), .07);
  --tp-shadow-hover:0 16px 44px rgba(var(--tp-purple-rgb), .14);
}

/* ── Base ── */
.tradition-page-body {
  margin: 0; padding: 0;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: var(--font-body, Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}
.trad-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* trad-main offsets the fixed nav (same as fp-main in feature-page.css) */
.trad-main { display: block; padding-top: 64px; }

/* ── Breadcrumbs ──
   Tradition pages use the shared .fp-breadcrumbs + .fp-crumb-sep classes from
   feature-page.css (loaded before this file). No duplicate rules needed here.
   The .trad-wrap class on the inner div ensures max-width matches the rest of
   the tradition page layout. */

/* ── Section base ── */
.trad-section { padding: 70px 0; }
.trad-section-alt { background: var(--tp-bg-alt); }
.trad-section-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--tp-purple); text-transform: uppercase; letter-spacing: .08em;
  background: var(--tp-purple-soft); padding: 5px 14px; border-radius: 999px;
  margin-bottom: 12px; font-family: var(--font-body, Arial, sans-serif);
}
.trad-section-title {
  font-family: 'Bricolage Grotesque', var(--font-heading, system-ui, sans-serif);
  font-size: clamp(24px, 3vw, 34px); font-weight: 700;
  color: var(--tp-ink); line-height: 1.2; margin: 0 0 20px;
}
.trad-section-desc {
  font-size: 16px; color: var(--tp-text); line-height: 1.65;
  max-width: 640px; margin: 0 0 32px;
  font-family: var(--font-body, Arial, sans-serif);
}
.trad-center { text-align: center; }
.trad-center .trad-section-desc { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.trad-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 12px; text-decoration: none;
  cursor: pointer; border: 1.5px solid transparent;
  transition: all .2s ease; font-family: var(--font-body, Arial, sans-serif);
}
.trad-btn svg { transition: transform .2s ease; }
.trad-btn:hover svg { transform: translateX(3px); }
.trad-btn-primary {
  background: var(--tp-purple); color: #fff;
  box-shadow: 0 6px 18px rgba(var(--tp-purple-rgb), .28);
}
.trad-btn-primary:hover {
  background: var(--tp-purple-dark);
  box-shadow: 0 10px 26px rgba(var(--tp-purple-rgb), .34);
}
.trad-btn-outline {
  background: #fff; color: var(--tp-purple); border-color: var(--tp-border);
}
.trad-btn-outline:hover { border-color: var(--tp-purple); background: var(--tp-purple-soft); }
.trad-btn-white { background: #fff; color: var(--tp-purple); }
.trad-btn-white:hover { background: var(--tp-purple-soft); }
.trad-btn-ghost-light { background: #ffffff24; color: #fff; border-color: #ffffff80; }
.trad-btn-ghost-light:hover { background: #ffffff3d; }

/* ── Hero ── */
.trad-hero {
  padding: 32px 0 56px;
  background: linear-gradient(180deg, var(--tp-bg-alt) 0%, #fff 100%);
}
.trad-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.trad-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tp-purple-soft); color: var(--tp-purple);
  font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px; font-family: var(--font-body, Arial, sans-serif);
}
.trad-hero-eyebrow i, .trad-hero-eyebrow svg { width: 16px; height: 16px; }
.trad-hero-title {
  font-family: 'Bricolage Grotesque', var(--font-heading, system-ui, sans-serif);
  font-size: clamp(30px, 4.4vw, 50px); font-weight: 800;
  line-height: 1.08; color: var(--tp-ink); margin: 0 0 18px; letter-spacing: -.5px;
}
.trad-highlight { color: var(--tp-purple);}
.trad-hero-subtitle {
  font-size: 17px; line-height: 1.65; color: var(--tp-text);
  margin: 0 0 28px; max-width: 560px;
  font-family: var(--font-body, Arial, sans-serif);
}
.trad-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.trad-hero-trust { display: flex; flex-wrap: wrap; gap: 18px; }
.trad-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--tp-text); font-weight: 500;
  font-family: var(--font-body, Arial, sans-serif);
}
.trad-trust-item i, .trad-trust-item svg { width: 15px; height: 15px; color: var(--tp-purple); }

/* Hero visual */
.trad-hero-visual { display: flex; justify-content: center; align-items: center; }
.trad-hero-img {
  width: 100%; max-width: 320px; border-radius: 22px; display: block;
  box-shadow: 0 24px 60px rgba(var(--tp-purple-rgb), .18);    transform: rotate(5deg);
}
.trad-hero-img-placeholder {
  width: 100%; max-width: 420px; aspect-ratio: 4/5; border-radius: 22px;
  background: linear-gradient(160deg, var(--tp-purple-soft), #fff);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--tp-text); font-family: var(--font-body, Arial, sans-serif);
  font-size: 14px; box-shadow: var(--tp-shadow);
}
.trad-hero-img-placeholder i { width: 48px; height: 48px; color: var(--tp-purple); opacity: .4; }

/* ── Stats bar ── */
.trad-stats {
  padding: 0 0 56px;
  background: #fff;
}
.trad-stats-inner {
  background: var(--tp-purple);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
}
.trad-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding:15px 0;
}
.trad-stat-item {
  text-align: center;
  padding:15px 20px;
  border-right: 1px solid rgba(255,255,255,.15);
  position: relative;
}
.trad-stat-item:last-child { border-right: none; }
.trad-stat-value {
  font-family: 'Bricolage Grotesque', var(--font-heading, system-ui, sans-serif);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.5px;
}
.trad-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  line-height: 1.4;
  font-family: var(--font-body, Arial, sans-serif);
}

/* ── Tradition pills ── */
.trad-pills-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.trad-pill {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1.5px solid var(--tp-border); border-radius: 999px;
  padding: 10px 22px; font-size: 14px; font-weight: 600; color: var(--tp-ink);
  box-shadow: var(--tp-shadow); transition: all .2s ease;
  font-family: var(--font-body, Arial, sans-serif);
}
.trad-pill:hover {
  border-color: var(--tp-purple); color: var(--tp-purple);
  box-shadow: var(--tp-shadow-hover); transform: translateY(-2px);
}
.trad-pill i, .trad-pill svg { width: 16px; height: 16px; color: var(--tp-purple); }

/* ── Ceremonies ── */
.trad-ceremonies-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px; margin-top: 32px;
}
.trad-ceremony-card {
  background: #fff; border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius); padding: 28px 20px; text-align: center;
  box-shadow: var(--tp-shadow); transition: all .22s ease;
}
.trad-ceremony-card:hover {
  border-color: var(--tp-purple); box-shadow: var(--tp-shadow-hover); transform: translateY(-3px);
}
.trad-ceremony-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--tp-purple-soft); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px; color: var(--tp-purple);
}
.trad-ceremony-icon i, .trad-ceremony-icon svg { width: 22px; height: 22px; }
.trad-ceremony-title {
  font-size: 15px; font-weight: 700; color: var(--tp-ink); margin-bottom: 8px;
  font-family: 'Bricolage Grotesque', var(--font-heading, system-ui, sans-serif);
}
.trad-ceremony-desc {
  font-size: 13px; color: var(--tp-text); line-height: 1.6;
  font-family: var(--font-body, Arial, sans-serif);
}

/* ── Features grid ── */
.trad-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trad-feature-card {
  background: #fff; border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius); padding: 28px 24px;
  box-shadow: var(--tp-shadow); transition: all .22s ease;
}
.trad-feature-card:hover {
  border-color: var(--tp-purple); box-shadow: var(--tp-shadow-hover); transform: translateY(-3px);
}
.trad-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--tp-purple-soft); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; color: var(--tp-purple);
}
.trad-feature-icon i, .trad-feature-icon svg { width: 22px; height: 22px; }
.trad-feature-title {
  font-size: 16px; font-weight: 700; color: var(--tp-ink); margin: 0 0 8px;
  font-family: 'Bricolage Grotesque', var(--font-heading, system-ui, sans-serif);
}
.trad-feature-desc {
  font-size: 14px; color: var(--tp-text); line-height: 1.6; margin: 0;
  font-family: var(--font-body, Arial, sans-serif);
}

/* ── Showcase ── */
.trad-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.trad-checklist { list-style: none; margin: 20px 0 32px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.trad-checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--tp-ink); font-weight: 500;
  font-family: var(--font-body, Arial, sans-serif);
}
.trad-check-icon {
  width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
  background: var(--tp-purple-soft); display: flex; align-items: center;
  justify-content: center; margin-top: 1px;
}
.trad-check-icon svg { width: 12px; height: 12px; stroke: var(--tp-purple); stroke-width: 2.5; }
.trad-showcase-visual { display: flex; flex-direction: column; gap: 16px; }
.trad-showcase-img { width: 100%; border-radius: 20px; box-shadow: var(--tp-shadow-hover); display: block; }
.trad-showcase-img-placeholder {
  width: 100%; aspect-ratio: 4/3; border-radius: 20px;
  background: linear-gradient(160deg, var(--tp-purple-soft), #fff);
  display: flex; align-items: center; justify-content: center;
  color: var(--tp-text); font-size: 14px; font-family: var(--font-body, Arial, sans-serif);
  box-shadow: var(--tp-shadow);
}

/* ── Templates ── */
.trad-templates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.trad-template-card {
  background: #fff; border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius); overflow: hidden;
  box-shadow: var(--tp-shadow); transition: all .22s ease;
}
.trad-template-card:hover {
  border-color: var(--tp-purple); box-shadow: var(--tp-shadow-hover); transform: translateY(-3px);
}
.trad-template-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.trad-template-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(160deg, var(--tp-purple-soft), #fff);
  display: flex; align-items: center; justify-content: center;
  color: var(--tp-text); font-size: 13px;
  font-family: var(--font-body, Arial, sans-serif);
}
.trad-template-body { padding: 20px; }
.trad-template-title {
  font-size: 15px; font-weight: 700; color: var(--tp-ink); margin-bottom: 6px;
  font-family: 'Bricolage Grotesque', var(--font-heading, system-ui, sans-serif);
}
.trad-template-desc {
  font-size: 13px; color: var(--tp-text); line-height: 1.6; margin: 0;
  font-family: var(--font-body, Arial, sans-serif);
}

/* ── Benefits (Made Personal) ── */
.trad-benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.trad-benefits-visual { position: relative; display: flex; justify-content: center; }
.trad-benefits-img {
  width: 100%; max-width: 440px; border-radius: 22px; display: block;
  box-shadow: 0 24px 60px rgba(var(--tp-purple-rgb), .18);
}
.trad-benefits-img-placeholder {
  width: 100%; max-width: 440px; aspect-ratio: 3/4; border-radius: 22px;
  background: linear-gradient(160deg, var(--tp-purple-soft), #fff);
  display: flex; align-items: center; justify-content: center;
  color: var(--tp-text); font-size: 14px; font-family: var(--font-body, Arial, sans-serif);
  box-shadow: var(--tp-shadow);
}
.trad-badge {
  position: absolute; bottom: -16px; right: 16px;
  background: #fff; border: 1px solid var(--tp-border); border-radius: 999px;
  padding: 10px 18px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--tp-ink);
  box-shadow: var(--tp-shadow-hover); font-family: var(--font-body, Arial, sans-serif);
}
.trad-badge i, .trad-badge svg { width: 16px; height: 16px; color: var(--tp-purple); }
.trad-benefits-list { display: flex; flex-direction: column; gap: 22px; }
.trad-benefit-item { display: flex; gap: 16px; align-items: flex-start; }
.trad-benefit-icon {
  width: 46px; height: 46px; min-width: 46px; border-radius: 12px;
  background: var(--tp-purple-soft); display: flex; align-items: center;
  justify-content: center; color: var(--tp-purple);
}
.trad-benefit-icon i, .trad-benefit-icon svg { width: 20px; height: 20px; }
.trad-benefit-title {
  font-size: 15px; font-weight: 700; color: var(--tp-ink); margin-bottom: 5px;
  font-family: 'Bricolage Grotesque', var(--font-heading, system-ui, sans-serif);
}
.trad-benefit-desc {
  font-size: 14px; color: var(--tp-text); line-height: 1.6; margin: 0;
  font-family: var(--font-body, Arial, sans-serif);
}

/* ── FAQ ── */
.trad-faq { max-width: 820px; margin: 32px auto 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.trad-faq-item {
  background: #fff; border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm); overflow: hidden; align-self: start;
}
.trad-faq-item[open] { border-color: var(--tp-purple); }
.trad-faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; cursor: pointer; list-style: none; padding: 16px 18px;
  font-weight: 600; font-size: 15px; color: var(--tp-ink);
  font-family: var(--font-body, Arial, sans-serif);
}
.trad-faq-item summary::-webkit-details-marker { display: none; }
.trad-faq-chev { flex: none; color: var(--tp-purple); transition: transform .2s ease; }
.trad-faq-item[open] .trad-faq-chev { transform: rotate(180deg); }
.trad-faq-answer {
  padding: 0 18px 18px; font-size: 14px; line-height: 1.65; color: var(--tp-text);
  font-family: var(--font-body, Arial, sans-serif);
}

/* ── CTA Banner ── */
.trad-cta-banner {
  background: linear-gradient(135deg, var(--tp-purple) 0%, var(--tp-purple-dark) 100%);
  border-radius: 26px; padding: 52px 44px; text-align: center; color: #fff;
  box-shadow: 0 20px 50px rgba(var(--tp-purple-rgb), .32);
}
.trad-cta-title {
  font-family: 'Bricolage Grotesque', var(--font-heading, system-ui, sans-serif);
  font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 14px; color: #fff;
}
.trad-cta-desc {
  font-size: 16px; line-height: 1.6; margin: 0 auto 28px;
  max-width: 620px; color: #ffffffe6;
  font-family: var(--font-body, Arial, sans-serif);
}
.trad-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.trad-cta-note {
  font-size: 13px; color: #ffffff99; margin-top: 18px;
  font-family: var(--font-body, Arial, sans-serif);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .trad-features-grid { grid-template-columns: repeat(2, 1fr); }
  .trad-templates-grid { grid-template-columns: repeat(2, 1fr); }
  .trad-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trad-stat-item:nth-child(2) { border-right: none; }
  .trad-stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,.15); }
  .trad-stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.15); }
}
@media (max-width: 860px) {
  .trad-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .trad-hero-visual { order: -1; }
  .trad-showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .trad-benefits-grid { grid-template-columns: 1fr; gap: 56px; }
  .trad-cta-banner { padding: 40px 24px; }
}
@media (max-width: 640px) {
  .trad-section { padding: 56px 0; }
  .trad-features-grid { grid-template-columns: 1fr; }
  .trad-templates-grid { grid-template-columns: 1fr; }
  .trad-ceremonies-grid { grid-template-columns: repeat(2, 1fr); }
  .trad-wrap { padding: 0 16px; }
}
