/* BlazeBody™ — shared styles
   Brand palette:
   Tekhelet   #5D2E8C
   Eminence   #863994
   Plum       #8D3671
   Rose red   #B33F58
   Coquelicot #F04E23
*/

:root {
  --tekhelet: #5D2E8C;
  --eminence: #863994;
  --plum: #8D3671;
  --rose: #B33F58;
  --coquelicot: #F04E23;

  --brand-gradient: linear-gradient(120deg, #5D2E8C 0%, #863994 28%, #8D3671 50%, #B33F58 72%, #F04E23 100%);
  --ink: #241a2e;
  --muted: #6b6472;
  --line: #ece7f1;
  --paper: #ffffff;
  --wash: #faf8fc;

  --maxw: 1140px;
  --shadow: 0 10px 30px rgba(93, 46, 140, 0.10);
  --shadow-lift: 0 18px 44px rgba(93, 46, 140, 0.18);

  /* Header logo height — also used to offset anchor jumps under the sticky header */
  --logo-h: clamp(78px, 12vw, 128px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-word {
  font-family: "Poppins", "Inter", sans-serif;
  line-height: 1.2;
}

a { color: var(--eminence); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Site header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo {
  height: var(--logo-h);
  width: auto;
}

.brand-word {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0.5px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.brand-word .tm {
  font-size: 0.42em;
  vertical-align: super;
  -webkit-text-fill-color: var(--eminence);
  font-weight: 700;
}

.brand-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--brand-gradient);
  color: #fff;
  text-align: center;
  padding: 72px 0 84px;
}

.hero h1 {
  margin: 0 auto 16px;
  font-size: clamp(30px, 5vw, 50px);
  max-width: 100%;
  font-weight: 800;
}

.hero p {
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: 0.95;
}

.hero-btn {
  margin-top: 30px;
}

/* ---------- Category nav ---------- */
.cat-nav {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.cat-nav .container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.cat-nav a {
  text-decoration: none;
  color: var(--tekhelet);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.cat-nav a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--coquelicot);
}

/* ---------- Sections ---------- */
/* Offset for anchor jumps so the section heading clears the sticky header. */
.section { padding: 56px 0 8px; scroll-margin-top: calc(var(--logo-h) + 84px); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}
.section-head .pill {
  display: inline-block;
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-gradient);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.card .card-top {
  height: 8px;
  background: var(--brand-gradient);
}
.card .card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--coquelicot);
}
.card h3 {
  margin: 0;
  font-size: 19px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.card .more {
  margin-top: auto;
  font-weight: 700;
  color: var(--tekhelet);
  font-size: 14px;
}

/* ---------- Article page ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 20px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--eminence); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article .tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--coquelicot);
}
.article h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  margin: 10px 0 6px;
}
.article .lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
}
.article h2 {
  font-size: 24px;
  margin: 34px 0 10px;
}
.article p { margin: 0 0 18px; font-size: 17px; }
.article ul { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; font-size: 17px; }

.callout {
  background: var(--wash);
  border-left: 4px solid var(--coquelicot);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 26px 0;
  font-size: 16px;
}

.article-nav {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 22px;
}
.back-link {
  display: inline-block;
  font-weight: 700;
  color: var(--tekhelet);
  text-decoration: none;
}
.back-link:hover { color: var(--coquelicot); }

/* ---------- Consultation CTA banner ---------- */
.cta {
  background: var(--brand-gradient);
  color: #fff;
  margin-top: 64px;
  padding: 44px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-text { flex: 1 1 420px; }
.cta-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.cta-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  color: #fff;
}
.cta-desc {
  margin: 0;
  font-size: 16px;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.95);
}
.cta-desc a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.cta-btn {
  flex: 0 0 auto;
  display: inline-block;
  background: #fff;
  color: var(--tekhelet);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  color: var(--coquelicot);
}

/* The CTA already provides the top gap; avoid doubling it before the footer. */
.cta + .site-footer { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2a1636;
  color: #e7dced;
  margin-top: 64px;
  padding: 40px 0;
  text-align: center;
}
.site-footer .brand-word {
  font-size: 26px;
  justify-content: center;
}
.site-footer p {
  margin: 10px auto 0;
  max-width: 62ch;
  font-size: 14px;
  color: #c9b9d6;
}
.site-footer .disclaimer {
  font-size: 12.5px;
  color: #9a86ab;
  margin-top: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .brand img { height: 52px; }
  .hero { padding: 54px 0 60px; }
  .section { padding: 40px 0 4px; }
}
