/*
 * NDN child-theme CATEGORY-ARCHIVE presentation (Topic 067, v3).
 * Scoped under .ndn-cat-hero / .ndn-cat-cta / .ndn-category-archive-intro so it
 * cannot leak to landings (.ndn-lp), single posts, or other archives. Loaded
 * ONLY on mapped category archives. Managed by theme:category-archive-deploy.
 * Palette: brand navy #154a93 / red #e33b45 (clinic-facts.md); hero deep navy
 * #12294a with gold accent #d9a441 to match the site topbar.
 */

/* ---------- HERO (full-bleed, above the post grid) ---------- */

.ndn-cat-hero {
  width: 100vw;
  margin: 0 calc(50% - 50vw) 2.25rem;
  background: linear-gradient(160deg, #0e2140 0%, #12294a 55%, #1b3f77 100%);
  color: #fff;
  text-align: center;
}

.ndn-cat-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 3rem;
}

.ndn-cat-hero__eyebrow {
  margin: 0 0 0.75rem;
  color: #d9a441;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ndn-cat-hero__title {
  margin: 0 0 0.75rem;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 4.5vw, 2.875rem);
  font-weight: 700;
  line-height: 1.2;
}

.ndn-cat-hero__title-accent {
  color: #d9a441;
  font-style: italic;
}

.ndn-cat-hero__subtitle {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.65;
}

.ndn-cat-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.25rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.ndn-cat-hero__trust-item {
  position: relative;
  padding-left: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9375rem;
}

.ndn-cat-hero__trust-item::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #d9a441;
  font-size: 0.75rem;
  line-height: 1.7;
}

.ndn-cat-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.ndn-cat-hero__btn {
  display: inline-block;
  padding: 0.8125rem 2rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.ndn-cat-hero__btn--primary {
  background: #e33b45;
  color: #fff;
}

.ndn-cat-hero__btn--primary:hover {
  background: #c92f39;
  color: #fff;
}

.ndn-cat-hero__btn--ghost {
  background: #fff;
  color: #12294a;
}

.ndn-cat-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.88);
  color: #12294a;
}

/* ---------- BOTTOM CTA + FORM (full-bleed, after the post grid) ---------- */

.ndn-cat-cta {
  width: 100vw;
  margin: 2.5rem calc(50% - 50vw) 0;
  border-top: 3px solid #d9a441;
  background: #faf6ef;
  text-align: center;
}

.ndn-cat-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.25rem;
}

.ndn-cat-cta__heading {
  margin: 0 0 0.5rem;
  color: #12294a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
}

.ndn-cat-cta__subheading {
  margin: 0 0 1.75rem;
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.6;
}

.ndn-cat-cta__form {
  max-width: 440px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18, 41, 74, 0.12);
  text-align: left;
}

.ndn-cat-cta__form .wpcf7-form-control-wrap {
  display: block;
  margin: 0 0 0.875rem;
}

.ndn-cat-cta__form input[type='text'],
.ndn-cat-cta__form input[type='tel'],
.ndn-cat-cta__form input[type='email'] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.9375rem;
}

.ndn-cat-cta__form input[type='submit'] {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #e33b45;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ndn-cat-cta__form input[type='submit']:hover {
  background: #c92f39;
}

/* ---------- Legacy simple intro block (fallback when no hero config) ---------- */

.ndn-category-archive-intro {
  grid-column: 1 / -1; /* harmless outside grids; keeps the block full-row if it ever lands inside one */
  margin: 0.25rem 0 1.75rem;
  padding: 1.25rem 1.5rem;
  background: #f5f8fc;
  border-left: 4px solid #154a93;
  border-radius: 0 8px 8px 0;
}

.ndn-category-archive-intro__heading {
  margin: 0 0 0.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #154a93;
}

.ndn-category-archive-intro__body {
  color: inherit;
  line-height: 1.6;
}

.ndn-category-archive-intro__body p {
  margin: 0 0 0.75rem;
}

.ndn-category-archive-intro__body a {
  color: #e33b45;
  font-weight: 600;
  text-decoration: none;
}

.ndn-category-archive-intro__body a:hover {
  text-decoration: underline;
}

.ndn-category-archive-intro__body > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .ndn-cat-hero__inner {
    padding: 2.5rem 1rem 2.25rem;
  }

  .ndn-cat-hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
  }

  .ndn-cat-cta__inner {
    padding: 2.25rem 1rem 2.5rem;
  }

  .ndn-category-archive-intro {
    padding: 1rem 1.125rem;
  }
}
