/* ==========================================================================
   Mavengity - Design System
   Brand: Navy (trust) + Teal (clarity/growth) + Gold (attention/CTA)
   Type: Source Serif 4 (headings) + Inter (body/UI)
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #0b1e3d;
  --navy-800: #122a52;
  --navy-700: #1a3766;
  --teal-600: #0f9d74;
  --teal-700: #0b7d5c;
  --teal-100: #e3f7ef;
  --gold-500: #e7a93c;
  --gold-600: #c98f28;
  --gold-100: #fbecd2;

  /* Neutrals */
  --ink-900: #14181f;
  --ink-700: #3a4250;
  --ink-500: #5b6472;
  --ink-300: #a3aab5;
  --ink-100: #e3e6eb;
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --white: #ffffff;

  /* Type */
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(11, 30, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 30, 61, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 30, 61, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn--primary {
  background: var(--teal-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--teal-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: var(--gold-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  border-color: var(--ink-100);
  color: var(--navy-900);
}
.btn--outline:hover { border-color: var(--teal-600); color: var(--teal-700); }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  padding: 6px 2px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--navy-900); border-color: var(--gold-500); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1120px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 18px 24px 26px;
    gap: 16px;
    border-bottom: 1px solid var(--ink-100);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-size: clamp(32px, 4.2vw, 50px);
  margin-bottom: 18px;
}
.hero__title em { color: var(--teal-700); font-style: normal; }
.hero__subtitle {
  font-size: 18px;
  color: var(--ink-500);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art { display: flex; justify-content: center; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--white); border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.section__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section__title { font-size: 30px; margin: 6px 0 0; }
.section__subtitle { color: var(--ink-500); font-size: 16px; max-width: 60ch; margin-top: 8px; }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.category-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--teal-100);
  color: var(--teal-700);
}
.category-card__title { font-size: 20px; margin-bottom: 8px; }
.category-card__desc { color: var(--ink-500); font-size: 14.5px; margin-bottom: 16px; }
.category-card__link { font-weight: 700; font-size: 14px; color: var(--teal-700); display: inline-flex; align-items: center; gap: 6px; }
.category-card__link svg { transition: transform 0.15s ease; }
.category-card:hover .category-card__link svg { transform: translateX(3px); }

@media (max-width: 980px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

/* ---------- Category hero (top-of-category pages) ---------- */
.category-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--ink-100);
}
.category-hero__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-100);
  color: var(--teal-700);
  margin-bottom: 18px;
}
.category-hero h1 { font-size: 38px; margin-bottom: 10px; }
.category-hero p { color: var(--ink-500); font-size: 17px; max-width: 65ch; }

/* ---------- Article cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card__media { aspect-ratio: 16/10; background: var(--bg-alt); }
.article-card__body { padding: 20px; }
.article-card__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.article-card__title { font-size: 19px; margin-bottom: 8px; }
.article-card__excerpt { font-size: 14.5px; color: var(--ink-500); margin-bottom: 14px; }
.article-card__meta { font-size: 13px; color: var(--ink-300); display: flex; gap: 10px; }

@media (max-width: 980px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } }

/* Featured article (homepage) */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: stretch;
}
.featured__media { background: linear-gradient(135deg, var(--navy-700), var(--teal-700)); min-height: 260px; }
.featured__body { padding: 40px 40px 40px 8px; display: flex; flex-direction: column; justify-content: center; color: var(--white); }
.featured .article-card__tag { background: rgba(231,169,60,0.16); color: var(--gold-500); }
.featured__title { color: var(--white); font-size: 28px; margin-bottom: 12px; }
.featured__excerpt { color: rgba(255,255,255,0.72); font-size: 15.5px; margin-bottom: 20px; }
.featured__meta { color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 22px; display: flex; gap: 10px; }

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .featured__body { padding: 32px; }
}

/* Empty state (categories with no articles yet) */
.empty-state {
  border: 1.5px dashed var(--ink-100);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-500);
  background: var(--white);
}
.empty-state h3 { color: var(--navy-900); margin-bottom: 8px; }

/* ---------- Trust / value props ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item { text-align: left; }
.trust-item__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.trust-item h3 { font-size: 17px; margin-bottom: 6px; }
.trust-item p { color: var(--ink-500); font-size: 14.5px; margin: 0; }

@media (max-width: 980px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--teal-100);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}
.newsletter h2 { font-size: 26px; margin-bottom: 8px; }
.newsletter p { color: var(--ink-700); margin: 0; }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
}
.newsletter__form input:focus { outline: none; border-color: var(--teal-600); }
.newsletter__note { font-size: 12.5px; color: var(--ink-500); margin-top: 10px; }

@media (max-width: 780px) {
  .newsletter { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-500);
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--teal-700); }
.breadcrumb span[aria-hidden] { color: var(--ink-300); }
.breadcrumb .current { color: var(--navy-900); font-weight: 600; }

/* ---------- Article page ---------- */
.article-header { padding: 24px 0 30px; max-width: 760px; }
.article-title { font-size: clamp(28px, 4vw, 42px); margin: 12px 0 14px; }
.article-dek { font-size: 18px; color: var(--ink-500); margin-bottom: 20px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-500);
  padding-top: 16px;
  border-top: 1px solid var(--ink-100);
}
.article-meta__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--navy-700));
}
.article-meta strong { color: var(--navy-900); }

.article-hero-media {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-700));
  box-shadow: var(--shadow-md);
}

.article-body {
  max-width: 720px;
  margin: 36px auto 0;
  font-size: 18px;
  color: var(--ink-700);
}
.article-body p { margin: 0 0 22px; }
.article-body h2 { font-size: 25px; margin: 38px 0 16px; }
.article-body h3 { font-size: 20px; margin: 28px 0 12px; }
.article-body ul { margin: 0 0 22px; padding: 0; }
.article-body li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
}
.article-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-600);
}
.article-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--gold-500);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-700);
}
.article-body strong { color: var(--navy-900); }

/* Blurred teaser paragraph leading into the Continue Reading CTA */
.article-teaser {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 85px;
}
.article-teaser p {
  margin: 0 0 22px;
  user-select: none;
}
/* Progressive blur overlay - sits on top of the plain text, so any
   paragraph dropped into .article-teaser gets the effect for free. */
.article-teaser__blur {
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,1) 65%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,1) 65%);
  pointer-events: none;
}
.article-teaser::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg) 55%);
  pointer-events: none;
}
.article-teaser__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.article-teaser__cta .btn--gold {
  font-size: 16px;
  padding: 14px 30px;
  box-shadow: var(--shadow-lg);
}

.page-indicator {
  max-width: 720px;
  margin: 0 auto 0;
  font-size: 13px;
  color: var(--ink-300);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Continue Reading CTA block */
.continue-cta {
  max-width: 720px;
  margin: 40px auto 0;
  background: var(--white);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.continue-cta__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.continue-cta__hook {
  font-size: 19px;
  color: var(--navy-900);
  font-family: var(--font-head);
  margin-bottom: 22px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.continue-cta .btn--gold { font-size: 16.5px; padding: 15px 34px; }

.author-box {
  max-width: 720px;
  margin: 44px auto 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.author-box__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal-600), var(--navy-700));
}
.author-box h4 { margin: 0 0 4px; font-size: 16px; }
.author-box p { margin: 0; color: var(--ink-500); font-size: 14px; }

.disclosure {
  max-width: 720px;
  margin: 30px auto 0;
  font-size: 13px;
  color: var(--ink-300);
  border-top: 1px solid var(--ink-100);
  padding-top: 18px;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 44px 0 30px;
  border-bottom: 1px solid var(--ink-100);
}
.legal-hero h1 { font-size: 36px; margin-bottom: 8px; }
.legal-hero p { color: var(--ink-500); }
.legal-content {
  max-width: 760px;
  margin: 40px auto;
  font-size: 16px;
  color: var(--ink-700);
}
.legal-content h2 { font-size: 21px; margin: 34px 0 12px; }
.legal-content h3 { font-size: 17px; margin: 22px 0 8px; }
.legal-content p { margin: 0 0 16px; }
.legal-content ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--teal-700); text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; border: 1px solid var(--ink-100); }
.legal-content th { background: var(--bg-alt); }
.imprint-box {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin: 24px 0;
}
.imprint-box dl { margin: 0; }
.imprint-box dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-300); font-weight: 700; margin-top: 14px; }
.imprint-box dt:first-child { margin-top: 0; }
.imprint-box dd { margin: 4px 0 0; font-size: 16px; color: var(--navy-900); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  margin-top: 64px;
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand img { height: 30px; margin-bottom: 14px; }
.footer__brand p { font-size: 14px; max-width: 32ch; color: rgba(255,255,255,0.55); }
.footer__col h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 14.5px; color: rgba(255,255,255,0.65); }
.footer__col a:hover { color: var(--gold-500); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
