/* Final Expense agent template — calm, family-centered, contract-aware. */

.sm-fe-hero,
.sm-fe-guide,
.sm-fe-service,
.sm-fe-faq,
.sm-fe-cta {
  box-sizing: border-box;
  color: var(--sm-body);
  font-family: var(--sm-font-body);
  font-size: var(--sm-text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.sm-fe-hero *,
.sm-fe-guide *,
.sm-fe-service *,
.sm-fe-faq *,
.sm-fe-cta * {
  box-sizing: border-box;
}

/* ── Specialist hero ──────────────────────────────────────── */
.sm-fe-hero {
  padding: var(--sm-section-v) var(--sm-section-h);
  background:
    radial-gradient(circle at 8% 8%, rgba(237, 92, 46, 0.11), transparent 28rem),
    var(--sm-linen);
}
.sm-fe-hero__inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  width: 100%;
  max-width: var(--sm-max-width);
  min-height: 590px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--sm-radius-xl);
  background: var(--sm-purple-deep);
  box-shadow: var(--sm-shadow-lg);
}
.sm-fe-hero__portrait {
  position: relative;
  overflow: hidden;
  background: var(--sm-purple-mid);
}
/* Matches the Medicare and SmartConnect heroes: absolute fill so the photo
   covers a column sized by the copy beside it. */
.sm-fe-hero__image,
.sm-fe-hero__monogram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sm-fe-hero__image {
  display: block;
  object-fit: cover;
  object-position: center top;
}
.sm-fe-hero__monogram {
  display: grid;
  place-items: center;
  color: var(--sm-white);
  background: var(--sm-purple-mid);
  font-family: var(--sm-font-head);
  font-size: 9rem;
  font-weight: 800;
}
.sm-fe-hero__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 76px);
  color: var(--sm-white);
}
.sm-fe-hero__eyebrow,
.sm-fe-section-head__eyebrow,
.sm-fe-cta__eyebrow,
.sm-fe-guide__type-label {
  margin: 0 0 var(--sm-space-3);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sm-fe-hero__eyebrow,
.sm-fe-cta__eyebrow {
  color: #f6a287;
}
.sm-fe-hero h1 {
  margin: 0;
  color: var(--sm-white);
  font-family: var(--sm-font-head);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.sm-fe-hero__role {
  margin: var(--sm-space-3) 0 0;
  color: var(--sm-on-photo);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-md);
  font-weight: 700;
}
.sm-fe-hero__intro {
  max-width: 39rem;
  margin: var(--sm-space-6) 0 0;
  color: var(--sm-white);
  font-size: var(--sm-text-base);
  line-height: 1.6;
}
.sm-fe-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sm-space-3);
  margin-top: var(--sm-space-6);
}
.sm-fe-hero__primary,
.sm-fe-hero__secondary,
.sm-fe-cta__primary,
.sm-fe-cta__secondary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--sm-radius-full);
  color: var(--sm-white);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-sm);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.sm-fe-hero__primary,
.sm-fe-cta__primary {
  background: var(--sm-orange);
  box-shadow: var(--sm-shadow-cta);
}
.sm-fe-hero__primary:hover,
.sm-fe-cta__primary:hover {
  color: var(--sm-white);
  background: var(--sm-orange-hover);
}
.sm-fe-hero__secondary,
.sm-fe-cta__secondary {
  border-color: rgba(255, 255, 255, 0.48);
}
.sm-fe-hero__secondary:hover,
.sm-fe-cta__secondary:hover {
  color: var(--sm-white);
  border-color: var(--sm-white);
  background: rgba(255, 255, 255, 0.08);
}
.sm-fe-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sm-space-4) var(--sm-space-6);
  margin: var(--sm-space-8) 0 0;
  padding: var(--sm-space-6) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.sm-fe-hero__facts div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.sm-fe-hero__facts dt {
  margin: 0 0 3px;
  color: var(--sm-on-photo);
  font-size: var(--sm-text-xs);
  font-weight: 700;
}
.sm-fe-hero__facts dd {
  min-width: 0;
  margin: 0;
  color: var(--sm-white);
  font-size: var(--sm-text-sm);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.sm-fe-hero__facts a,
.sm-fe-hero__review {
  color: var(--sm-white);
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 3px;
}
.sm-fe-hero__facts dd span {
  color: var(--sm-on-photo);
  white-space: nowrap;
}
.sm-fe-hero__review {
  align-self: flex-start;
  margin-top: var(--sm-space-5);
  font-size: var(--sm-text-sm);
  font-weight: 700;
}

/* ── Shared headings ──────────────────────────────────────── */
.sm-fe-guide,
.sm-fe-service,
.sm-fe-faq {
  padding: var(--sm-section-v) var(--sm-section-h);
}
.sm-fe-guide__inner,
.sm-fe-service__inner,
.sm-fe-faq__inner,
.sm-fe-cta__inner {
  width: 100%;
  max-width: var(--sm-max-width);
  margin: 0 auto;
}
.sm-fe-section-head {
  max-width: 50rem;
  margin-bottom: var(--sm-space-10);
}
.sm-fe-section-head__eyebrow,
.sm-fe-guide__type-label {
  color: var(--sm-orange);
}
.sm-fe-section-head h2,
.sm-fe-guide__compare > header h2,
.sm-fe-guide__other h2,
.sm-fe-cta h2 {
  margin: 0;
  color: var(--sm-purple);
  font-family: var(--sm-font-head);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.sm-fe-section-head > p:last-child,
.sm-fe-guide__compare > header > p:last-child {
  margin: var(--sm-space-4) 0 0;
  color: var(--sm-muted);
  font-size: var(--sm-text-md);
  line-height: 1.55;
}
.sm-fe-guide__uses h3,
.sm-fe-guide__types h3,
.sm-fe-service__grid h3 {
  margin: 0;
  color: var(--sm-purple);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-lg);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ── Education and policy types ───────────────────────────── */
.sm-fe-guide {
  background: var(--sm-white);
}
.sm-fe-guide__uses,
.sm-fe-guide__types,
.sm-fe-service__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sm-space-6);
}
.sm-fe-guide__uses article,
.sm-fe-service__grid article {
  padding: var(--sm-space-6);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  background: var(--sm-linen);
}
.sm-fe-guide__uses article > span {
  display: block;
  margin-bottom: var(--sm-space-4);
  color: var(--sm-orange);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sm-fe-guide__uses p,
.sm-fe-guide__types article > p:last-child,
.sm-fe-service__grid p {
  margin: var(--sm-space-3) 0 0;
  color: var(--sm-muted);
  font-size: var(--sm-text-sm);
  line-height: 1.6;
}
.sm-fe-guide__compare {
  margin-top: var(--sm-space-20);
}
.sm-fe-guide__compare > header {
  max-width: 52rem;
  margin-bottom: var(--sm-space-10);
}
.sm-fe-guide__types article {
  padding: var(--sm-space-6);
  border-top: 3px solid var(--sm-orange);
  border-radius: 0 0 var(--sm-radius-lg) var(--sm-radius-lg);
  background: var(--sm-purple-lter);
}
.sm-fe-guide__disclaimer {
  margin: var(--sm-space-6) 0 0;
  padding: var(--sm-space-4) var(--sm-space-5);
  border-left: 4px solid var(--sm-orange);
  border-radius: var(--sm-radius-sm);
  color: var(--sm-muted);
  background: var(--sm-orange-lt);
  font-size: var(--sm-text-xs);
  line-height: 1.55;
}
.sm-fe-guide__other {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  margin-top: var(--sm-space-16);
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--sm-radius-xl);
  background: var(--sm-purple-lt);
}
.sm-fe-guide__other h2 {
  font-size: clamp(26px, 3vw, 36px);
}
.sm-fe-guide__other > p {
  margin: 0;
  color: var(--sm-muted);
  font-size: var(--sm-text-sm);
  line-height: 1.65;
}

/* ── Service promise ──────────────────────────────────────── */
.sm-fe-service {
  background: var(--sm-linen);
}
.sm-fe-service__grid article {
  background: var(--sm-white);
}
.sm-fe-service__grid article::before {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: var(--sm-space-5);
  border-radius: var(--sm-radius-full);
  content: "";
  background: var(--sm-orange);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.sm-fe-faq {
  background: var(--sm-purple-lter);
}
.sm-fe-faq__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}
.sm-fe-faq__item {
  border-bottom: 1px solid var(--sm-border);
}
.sm-fe-faq__item:first-child {
  border-top: 1px solid var(--sm-border);
}
.sm-fe-faq__item summary {
  position: relative;
  padding: var(--sm-space-5) 42px var(--sm-space-5) 0;
  color: var(--sm-purple);
  cursor: pointer;
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-base);
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}
.sm-fe-faq__item summary::-webkit-details-marker {
  display: none;
}
.sm-fe-faq__item summary span::before,
.sm-fe-faq__item summary span::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 16px;
  height: 2px;
  content: "";
  background: var(--sm-orange);
  transition: transform var(--sm-transition);
}
.sm-fe-faq__item summary span::after {
  transform: rotate(90deg);
}
.sm-fe-faq__item[open] summary span::after {
  transform: rotate(0);
}
.sm-fe-faq__item > div {
  padding: 0 42px var(--sm-space-5) 0;
}
.sm-fe-faq__item p {
  margin: 0;
  color: var(--sm-muted);
  font-size: var(--sm-text-sm);
  line-height: 1.65;
}

/* ── Closing CTA ──────────────────────────────────────────── */
.sm-fe-cta {
  padding: var(--sm-section-v) var(--sm-section-h);
  color: var(--sm-white);
  background: var(--sm-purple-deep);
}
.sm-fe-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
}
.sm-fe-cta h2 {
  color: var(--sm-white);
}
.sm-fe-cta__inner > div:first-child > p:last-child {
  max-width: 45rem;
  margin: var(--sm-space-4) 0 0;
  color: var(--sm-on-photo);
  font-size: var(--sm-text-md);
  line-height: 1.55;
}
.sm-fe-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sm-space-3);
}
.sm-fe-cta__actions > p {
  margin: -4px 0 0;
  color: var(--sm-on-photo);
  font-size: var(--sm-text-xs);
  text-align: center;
}

@media (max-width: 900px) {
  .sm-fe-hero__inner {
    grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr);
  }
  .sm-fe-hero__content {
    padding: var(--sm-space-10);
  }
  .sm-fe-guide__uses,
  .sm-fe-guide__types,
  .sm-fe-service__grid,
  .sm-fe-guide__other,
  .sm-fe-faq__inner,
  .sm-fe-cta__inner {
    grid-template-columns: 1fr;
  }
  .sm-fe-faq__inner {
    gap: 0;
  }
  .sm-fe-cta__actions {
    max-width: 34rem;
  }
}

@media (max-width: 640px) {
  .sm-fe-hero,
  .sm-fe-guide,
  .sm-fe-service,
  .sm-fe-faq,
  .sm-fe-cta {
    padding-top: var(--sm-space-12);
    padding-bottom: var(--sm-space-12);
  }
  .sm-fe-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .sm-fe-hero__portrait {
    aspect-ratio: 4 / 3;
  }
  .sm-fe-hero__content {
    padding: var(--sm-space-8) var(--sm-space-5);
  }
  .sm-fe-hero h1 {
    font-size: 36px;
  }
  .sm-fe-hero__actions a {
    width: 100%;
  }
  .sm-fe-hero__facts {
    grid-template-columns: 1fr;
  }
  .sm-fe-hero__facts div:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .sm-fe-section-head h2,
  .sm-fe-guide__compare > header h2,
  .sm-fe-cta h2 {
    font-size: 30px;
  }
  .sm-fe-section-head > p:last-child,
  .sm-fe-guide__compare > header > p:last-child,
  .sm-fe-cta__inner > div:first-child > p:last-child {
    font-size: var(--sm-text-base);
  }
  .sm-fe-guide__uses article,
  .sm-fe-guide__types article,
  .sm-fe-service__grid article {
    padding: var(--sm-space-5);
  }
  .sm-fe-guide__other {
    padding: var(--sm-space-6) var(--sm-space-5);
  }
}
