/* ============================================================
   MMPAV - Blog / Article / Calculator Cohesive Stylesheet
   Matches the site design system (black + cyan, DM Sans / Space Mono).
   Loaded alongside /header-footer.css which owns the nav + footer.

   Legacy markup from the old navy+gold build is reused as-is; this
   file remaps the legacy --color-* tokens to the cohesive palette so
   existing inline styles inherit the correct colors automatically.
   ============================================================ */

:root {
  /* Cohesive palette (mirrors header-footer.css / tokens.css) */
  --font-display: 'DM Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --accent:       #3de0e0;          /* site cyan */
  --accent-2:     #8b5cf6;          /* violet for gradients */

  /* ── Legacy token remap (old navy+gold -> cohesive dark+cyan) ── */
  --color-blue:        #3de0e0;
  --color-gold:        #3de0e0;     /* gold accent -> cyan everywhere */
  --color-white:       #ffffff;
  --color-light:       rgba(255,255,255,0.80);
  --color-gray:        rgba(255,255,255,0.55);
  --color-dark:        #000000;
  --color-dark-card:   #111111;
  --color-darker:      #0a0a0a;
}

/* ── Base ── */
body {
  margin: 0;
  background: #000000;
  color: rgba(255,255,255,0.80);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a:not(.btn):not(.btn-gradient):not(.btn-gradient-outline):not(.nav__link):not(.nav__cta):not(.nav__mobile-link) {
  color: var(--accent);
}

/* Nav chrome uses white links (header-footer.css); beat legacy cyan anchor rule */
.nav__link,
.nav__cta,
.nav__mobile-link,
.nav__dropdown-menu a,
.nav__mobile-dropdown a {
  color: #ffffff;
}

/* ── Layout primitives ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 800px; }

.section { padding: clamp(64px, 8vw, 120px) 0; }
.section--dark { background: #000000; }
.section--alt  { background: #0a0a0a; }

/* ── Section eyebrow / headings ── */
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.text-gold,
.text-accent { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ── Page hero (blog index) ── */
.page-hero {
  padding: 9rem 0 3rem;
  background: radial-gradient(120% 100% at 50% 0%, rgba(61,224,224,0.08), transparent 60%), #000;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin: 0 0 1rem; }
.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,0.60);
  font-size: 1.125rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease, cubic-bezier(0.16,1,0.3,1)), background .25s, border-color .25s, color .25s;
}
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.8125rem; }
.btn--lg { padding: 1.05rem 2.25rem; font-size: 1.0625rem; }

/* Match site .btn-gradient: white label on deeper cyan→indigo→violet */
.btn--primary,
.btn--gold {
  background: linear-gradient(135deg, #3de0e0 0%, #6366f1 52%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.btn--primary:hover,
.btn--gold:hover {
  transform: translateY(-2px) scale(1.02);
  color: #ffffff;
  text-decoration: none;
}
.btn--primary .btn__arrow,
.btn--gold .btn__arrow {
  color: inherit;
}

.btn--ghost,
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost:hover,
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn__arrow { transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── Cards / grid ── */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }

.section__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__header--center {
  text-align: center;
}
.section__header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}
.section__header p {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.625rem;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: transform .3s var(--ease, cubic-bezier(0.16,1,0.3,1)), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(61,224,224,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(61,224,224,0.12);
}
.card--accent,
.card--gold {
  border-color: rgba(61,224,224,0.28);
  background: linear-gradient(165deg, rgba(61,224,224,0.1) 0%, #111111 48%);
}
.card--accent::before,
.card--gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3de0e0, #6366f1 55%, #8b5cf6);
}
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: rgba(61,224,224,0.1);
  border: 1px solid rgba(61,224,224,0.22);
  color: var(--accent);
  flex-shrink: 0;
}
.card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
}
.card__title {
  margin: 0 0 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.card__text {
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.58);
}

.network-cards {
  max-width: 72rem;
}
.network-cards .grid--3 {
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}
.network-cards .card {
  min-height: 100%;
}

/* ── Blog index (grid layout - hero uses .hero.hero--centered + mmpav-cohesive.css) ── */
.blog-index {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}
.blog-index__rule {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 0 0.25rem 0.5rem;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.blog-index__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem;
}
@media (min-width: 768px) {
  .blog-index__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-index__grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-index__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.blog-index__card:hover { background: rgba(61,224,224,0.08); }
.blog-index__card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.blog-index__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: #0a0a0a;
}
.blog-index__thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-index__thumb--cyan,
.blog-index__thumb--violet,
.blog-index__thumb--teal,
.blog-index__thumb--amber {
  background: #0a0a0a;
}
.blog-index__thumb::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  pointer-events: none;
}
.blog-index__card:hover .blog-index__thumb { transform: scale(1.02); }
.blog-index__thumb--cyan {
  background: radial-gradient(80% 60% at 20% 0%, rgba(61,224,224,0.12), transparent 70%),
              linear-gradient(160deg, rgba(61,224,224,0.22) 0%, #111 40%, #0a0a0a 100%);
}
.blog-index__thumb--violet {
  background: radial-gradient(80% 60% at 80% 0%, rgba(139,92,246,0.14), transparent 70%),
              linear-gradient(160deg, rgba(139,92,246,0.28) 0%, #111 40%, #0a0a0a 100%);
}
.blog-index__thumb--teal {
  background: radial-gradient(80% 60% at 50% 100%, rgba(34,211,238,0.16), transparent 70%),
              linear-gradient(160deg, rgba(34,211,238,0.22) 0%, #111 40%, #0a0a0a 100%);
}
.blog-index__thumb--amber {
  background: radial-gradient(80% 60% at 0% 50%, rgba(251,146,60,0.14), transparent 70%),
              linear-gradient(160deg, rgba(251,146,60,0.18) 0%, #111 40%, #0a0a0a 100%);
}
.blog-index__body { padding: 0.25rem 0.5rem 0.75rem; }
.blog-index__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.5rem;
}
.blog-index__meta .blog-index__tag {
  color: rgba(61,224,224,0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-index__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(61,224,224,0.5);
  flex-shrink: 0;
}
.blog-index__card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-index__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog index cards (legacy) */
a.blog-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
a.blog-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.blog-card { display: flex; flex-direction: column; }
.blog-card__image {
  height: 160px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(120% 100% at 20% 0%, rgba(61,224,224,0.18), transparent 55%),
              linear-gradient(160deg, #111111 0%, #0a0a0a 100%);
}
.blog-card__image--violet {
  background: radial-gradient(120% 100% at 80% 0%, rgba(139,92,246,0.22), transparent 55%),
              linear-gradient(160deg, #111111 0%, #0a0a0a 100%);
}
.blog-card__image--teal {
  background: radial-gradient(120% 100% at 50% 100%, rgba(34,211,238,0.2), transparent 60%),
              linear-gradient(160deg, #111111 0%, #0a0a0a 100%);
}
.blog-card__image--amber {
  background: radial-gradient(120% 100% at 0% 50%, rgba(251,146,60,0.16), transparent 55%),
              linear-gradient(160deg, #111111 0%, #0a0a0a 100%);
}
.blog-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.blog-card__category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card__title { font-size: 1.15rem; margin: 0; color: #fff; line-height: 1.3; }
.blog-card__excerpt { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin: 0; }
.blog-card__meta { color: rgba(255,255,255,0.4); font-family: var(--font-mono); font-size: 0.78rem; margin: 0.5rem 0 0; }

/* ── Article lead image ── */
.blog-article-hero {
  margin: 0 auto 2.5rem;
  max-width: var(--container-narrow, 48rem);
  padding: 0 1.5rem;
}
.blog-article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  max-height: min(56vh, 520px);
}
.blog-article-hero__caption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(61,224,224,0.65);
  letter-spacing: 0.04em;
}

/* ── Article body ── */
.blog-hero { padding: 8rem 0 3rem; }
.blog-meta { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.blog-meta__item { font-family: var(--font-mono); font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.blog-meta__tag {
  background: rgba(61,224,224,0.12);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.blog-content { max-width: 720px; margin: 0 auto; }
.blog-content h2 { color: #fff; font-size: 1.75rem; margin-top: 3rem; margin-bottom: 1rem; }
.blog-content h3 { color: var(--accent); font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.blog-content p { color: rgba(255,255,255,0.80); font-size: 1.0625rem; line-height: 1.85; margin-bottom: 1.25rem; }
.blog-content ul, .blog-content ol { color: rgba(255,255,255,0.80); font-size: 1.0625rem; line-height: 1.85; margin-bottom: 1.25rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; }
.blog-content strong { color: #fff; }
/* Inline prose links only - not CTAs (.btn) or related cards */
.blog-content a:not(.btn):not(.card) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-content a.btn.btn--primary,
.blog-content a.btn.btn--gold,
.blog-cta-box a.btn,
.cta-section a.btn.btn--primary,
.cta-section a.btn.btn--gold {
  color: #ffffff;
  text-decoration: none;
}
.blog-content a.btn.btn--primary:hover,
.blog-content a.btn.btn--gold:hover,
.blog-cta-box a.btn:hover,
.cta-section a.btn.btn--primary:hover,
.cta-section a.btn.btn--gold:hover {
  color: #ffffff;
}

.blog-pullquote {
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: rgba(61,224,224,0.05);
  border-radius: 0 12px 12px 0;
}
.blog-pullquote p { font-size: 1.25rem; font-style: italic; color: #fff; margin: 0; }

.blog-cta-box {
  background: #111111;
  border: 1px solid rgba(61,224,224,0.4);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}
.blog-related { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
.blog-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
}
@media (min-width: 640px) {
  .blog-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-related__grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-related__card:hover { transform: translateY(-2px); }
.blog-related__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.blog-related__thumb { aspect-ratio: 3 / 2; }
.blog-related__card:hover .blog-related__thumb { transform: scale(1.02); }
.blog-related__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-related__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(61,224,224,0.9);
}

/* ── CTA section ── */
.cta-section { padding: clamp(64px, 8vw, 120px) 0; text-align: center; }
.cta-section h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin: 0 0 1rem; }
.cta-section p { color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto 2rem; font-size: 1.0625rem; }

/* ── Urgency pill ── */
.urgency { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); }
.urgency__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(61,224,224,0.6); animation: urgptipulse 2s infinite; }
@keyframes urgptipulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,224,224,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(61,224,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,224,224,0); }
}

/* ── Reveal animation (matches site IntersectionObserver) ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease, cubic-bezier(0.16,1,0.3,1)), transform .7s var(--ease, cubic-bezier(0.16,1,0.3,1)); }
.reveal--visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: .08s; }
.reveal--delay-2 { transition-delay: .16s; }
.reveal--delay-3 { transition-delay: .24s; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease, cubic-bezier(0.16,1,0.3,1)), transform .6s var(--ease, cubic-bezier(0.16,1,0.3,1)); }
.stagger.reveal--visible > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
}
