/* ═══════════════════════════════════════════════════════════════════════════
   FCME — Page Builder Sections
   Styles for the ACF Flexible Content section library.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Page hero with background image ─────────────────────────────────────── */

.page-hero--image { padding-top: 160px; padding-bottom: 88px; }

/* The supplied banner artwork carries its own headline on the left, so the
   background is anchored right — we show only the texture and keep a real,
   crawlable <h1> on top of it. */
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: auto 165%;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: var(--dark);
  opacity: 0.32;
  z-index: 0;
}

.page-hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark) 8%, rgba(8, 14, 28, 0.72) 55%, rgba(8, 14, 28, 0.45) 100%);
  z-index: 0;
}

.page-hero--image .container { z-index: 1; }

.page-hero__eyebrow {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-hero .fcme-section-actions { margin-top: 32px; }

/* ─── Shared ───────────────────────────────────────────────────────────────── */

.fcme-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section-header--center .fcme-section-actions { justify-content: center; }

/* ─── Prose ────────────────────────────────────────────────────────────────── */

.fcme-prose { color: var(--text-2); }
.fcme-prose--narrow { max-width: 760px; margin-inline: auto; }

.fcme-prose > * + * { margin-top: 18px; }

.fcme-prose h2,
.fcme-prose h3,
.fcme-prose h4 { color: var(--text-1); margin-top: 36px; }

.fcme-prose h3 { font-size: 1.25rem; }
.fcme-prose h4 { font-size: 1.05rem; }

.fcme-prose p { line-height: 1.8; }

.fcme-prose ul,
.fcme-prose ol { padding-left: 22px; }

.fcme-prose li { margin-top: 8px; line-height: 1.7; }
.fcme-prose ul li { list-style: disc; }
.fcme-prose ol li { list-style: decimal; }

.fcme-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.fcme-prose strong { color: var(--text-1); font-weight: 700; }

.dark-section .fcme-prose { color: var(--text-dark-2); }
.dark-section .fcme-prose h2,
.dark-section .fcme-prose h3,
.dark-section .fcme-prose h4,
.dark-section .fcme-prose strong { color: var(--text-dark-1); }
.dark-section .fcme-prose a { color: var(--orange); }

.dark-section .section-title,
.dark-section h2 { color: var(--text-dark-1); }

/* ─── Split ────────────────────────────────────────────────────────────────── */

.fcme-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.fcme-split--reverse .fcme-split__text  { order: 2; }
.fcme-split--reverse .fcme-split__media { order: 1; }

.fcme-split .section-header { margin-bottom: 24px; }

.fcme-split__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ─── Tick list ────────────────────────────────────────────────────────────── */

.fcme-tick-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.fcme-tick-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
  line-height: 1.6;
}

.fcme-tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange-light);
  box-shadow: inset 0 0 0 2px var(--orange);
}

.dark-section .fcme-tick-list li { color: var(--text-dark-2); }
.dark-section .fcme-tick-list li::before {
  background: rgba(245, 166, 35, 0.15);
  box-shadow: inset 0 0 0 2px var(--orange);
}

/* ─── Feature grid ─────────────────────────────────────────────────────────── */

.fcme-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.fcme-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

.fcme-feature--plain {
  background: transparent;
  border: 0;
  padding: 0;
}

.fcme-feature--plain:hover { transform: none; box-shadow: none; }

.fcme-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.fcme-feature__icon svg { width: 24px; height: 24px; }

.fcme-feature__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}

.fcme-feature__text {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-2);
}

.section--gray .fcme-feature { background: #fff; }

.dark-section .fcme-feature {
  background: var(--dark-2);
  border-color: var(--line-dark);
}
.dark-section .fcme-feature--plain { background: transparent; border: 0; }
.dark-section .fcme-feature__icon { background: rgba(245, 166, 35, 0.12); color: var(--orange); }
.dark-section .fcme-feature__title { color: var(--text-dark-1); }
.dark-section .fcme-feature__text  { color: var(--text-dark-2); }

/* ─── Process steps ────────────────────────────────────────────────────────── */

.fcme-steps { list-style: none; }

.fcme-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
}

.fcme-step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: var(--fcme-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fcme-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}

.fcme-step__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
}

.dark-section .fcme-step { background: var(--dark-2); border-color: var(--line-dark); }
.dark-section .fcme-step__title { color: var(--text-dark-1); }
.dark-section .fcme-step__text  { color: var(--text-dark-2); }

/* ─── Checklist ────────────────────────────────────────────────────────────── */

.fcme-checklist { list-style: none; row-gap: 32px; }
.fcme-checklist--single { grid-template-columns: 1fr !important; }

.fcme-checklist__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fcme-checklist__mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.fcme-checklist__mark svg { width: 15px; height: 15px; }

.fcme-checklist__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}

.fcme-checklist__text {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-2);
}

.dark-section .fcme-checklist__mark { background: rgba(245, 166, 35, 0.15); color: var(--orange); }
.dark-section .fcme-checklist__title { color: var(--text-dark-1); }
.dark-section .fcme-checklist__text  { color: var(--text-dark-2); }

/* ─── Pill groups ──────────────────────────────────────────────────────────── */

.fcme-pill-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.fcme-pill-group__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.fcme-pill-group__items { display: flex; flex-wrap: wrap; gap: 8px; }

.fcme-pill {
  padding: 5px 13px;
  border-radius: 100px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-2);
}

.dark-section .fcme-pill-group { background: var(--dark-2); border-color: var(--line-dark); }
.dark-section .fcme-pill-group__label { color: var(--orange); }
.dark-section .fcme-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
  color: rgba(255, 255, 255, 0.78);
}

/* ─── Stat band ────────────────────────────────────────────────────────────── */

.fcme-stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  padding: 44px 32px;
  background: #fff;
}

.fcme-stat { text-align: center; }

.fcme-stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--fcme-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fcme-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.dark-section .fcme-stat-band { background: var(--dark-2); border-color: var(--line-dark); }
.dark-section .fcme-stat__label { color: var(--text-dark-2); }

/* ─── FAQ ──────────────────────────────────────────────────────────────────── */

.fcme-faq {
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.fcme-faq__item { border-bottom: 1px solid var(--line); }

.fcme-faq__q { margin: 0; }

.fcme-faq__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-1);
  transition: color var(--transition);
}

.fcme-faq__toggle:hover { color: var(--blue); }

.fcme-faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform var(--transition);
}

.fcme-faq__toggle[aria-expanded="true"] .fcme-faq__chevron { transform: rotate(180deg); }

.fcme-faq__a-inner {
  padding: 0 4px 24px;
  color: var(--text-2);
  line-height: 1.8;
  font-size: 0.95rem;
  max-width: 68ch;
}

.fcme-faq__a-inner p + p { margin-top: 14px; }

.dark-section .fcme-faq,
.dark-section .fcme-faq__item { border-color: var(--line-dark); }
.dark-section .fcme-faq__toggle { color: var(--text-dark-1); }
.dark-section .fcme-faq__toggle:hover { color: var(--orange); }
.dark-section .fcme-faq__a-inner { color: var(--text-dark-2); }

/* ─── CTA block ────────────────────────────────────────────────────────────── */

.fcme-cta { text-align: center; max-width: 760px; margin-inline: auto; }
.fcme-cta .section-header { margin-bottom: 0; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .fcme-split { grid-template-columns: 1fr; gap: 40px; }
  .fcme-split--reverse .fcme-split__text,
  .fcme-split--reverse .fcme-split__media { order: initial; }
}

@media (max-width: 640px) {
  .page-hero--image { padding-top: 120px; padding-bottom: 56px; }
  .fcme-checklist { grid-template-columns: 1fr; }
  .fcme-stat-band { padding: 32px 20px; }
  .fcme-section-actions .btn { width: 100%; justify-content: center; }
}
