/* ================================================================
   Spolton Mortgages — Mid-page sections
   Process, Why Broker, Fees, Armed Forces
   ================================================================ */

/* --- Shared: centred section head ------------------------------ */
.spm-section-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 720px;
}

.spm-eyebrow--center {
  justify-content: center;
}

.spm-eyebrow--center::before {
  display: none;
}

/* ================================================================
   PROCESS
   ================================================================ */

.spm-process {
  background: var(--surface);
}

.spm-proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}

@media (max-width: 820px) {
  .spm-proc-grid {
    grid-template-columns: 1fr;
  }
}

.spm-proc-step {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.spm-proc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.spm-proc-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--grad-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
  flex-shrink: 0;
}

.spm-proc-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 44px;
  color: var(--purple-100);
  line-height: 1;
  user-select: none;
}

.spm-proc-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 9px;
  text-transform: none;
  letter-spacing: 0;
}

.spm-proc-body {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--slate);
  margin: 0;
}

.spm-proc-connector {
  position: absolute;
  right: -26px;
  top: 44%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  z-index: 2;
  border: 1px solid var(--line);
  pointer-events: none;
}

@media (max-width: 820px) {
  .spm-proc-connector {
    display: none;
  }
}

/* ================================================================
   WHY BROKER
   ================================================================ */

.spm-why-broker {
  background: var(--surface);
}

.spm-wb-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  align-items: start;
  margin-top: 48px;
}

@media (max-width: 820px) {
  .spm-wb-grid {
    grid-template-columns: 1fr;
  }
}

.spm-wb-card-head {
  margin-bottom: 18px;
}

/* Direct card */
.spm-wb-direct {
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.spm-wb-direct-tag {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--muted);
}

/* Broker card */
.spm-wb-broker {
  position: relative;
  background: #fff;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--purple-200);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.spm-wb-broker-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad-purple);
}

.spm-wb-broker-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--brand-strong);
}

/* Shared list */
.spm-wb-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 13px;
}

.spm-wb-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.4;
}

.spm-wb-x {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.spm-wb-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.spm-wb-item .spm-wb-check ~ span {
  color: var(--ink);
  font-weight: 600;
}

.spm-wb-cta {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.spm-wb-warning {
  text-align: center;
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ================================================================
   FEES
   ================================================================ */

.spm-fees {
  background: #fff;
}

.spm-fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .spm-fees-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Left column */
.spm-fees-checks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.spm-fees-check {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  color: var(--slate);
  font-weight: 600;
}

.spm-fees-check svg {
  color: var(--success);
  flex-shrink: 0;
}

.spm-fees-warning {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Fee table card */
.spm-fees-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.spm-fees-card-head {
  background: var(--grad-purple);
  color: #fff;
  padding: 18px 26px;
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spm-fees-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.spm-fees-lab {
  color: var(--slate);
}

.spm-fees-val {
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}

.spm-fees-free {
  color: var(--success);
}

.spm-fees-card-foot {
  padding: 16px 26px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
}

/* ================================================================
   ARMED FORCES
   ================================================================ */

.spm-af {
  position: relative;
  padding: 88px 0;
  background: var(--forces-navy);
  color: #fff;
  overflow: hidden;
}

.spm-af-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4B1F6E, #9457C0, #9FB4E0);
}

.spm-af-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

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

  .spm-af-media {
    display: none;
  }
}

/* Left: copy */
.spm-af-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9FB4E0;
  margin: 0 0 14px;
}

.spm-af-eyebrow .spm-eyebrow-dash {
  background: currentColor;
}

.spm-af-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-2xl);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: #fff;
  margin: 0 0 16px;
  text-wrap: balance;
}

.spm-af-lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: #D6DAE6;
  margin: 0;
}

.spm-af-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 32px;
}

.spm-af-point {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  color: #EDEFF5;
  font-weight: 600;
  line-height: 1.35;
}

.spm-af-point svg {
  color: #9FB4E0;
  flex-shrink: 0;
}

.spm-af-cta {
  background: #fff;
  color: var(--forces-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.spm-af-cta:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Right: photo + badge */
.spm-af-media {
  position: relative;
}

.spm-af-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.3;
}

.spm-af-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spm-af-badge {
  position: absolute;
  left: -22px;
  bottom: 28px;
  background: #fff;
  color: var(--forces-navy);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 22px;
  text-align: center;
}

.spm-af-badge-big {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 30px;
  color: var(--brand);
  line-height: 1;
}

.spm-af-badge-sub {
  font-size: 12px;
  color: var(--slate);
  margin-top: 4px;
}

/* Armed Forces section: supporting links under the CTA */
.spm-af-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0 0; }
.spm-af-links a { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); font-weight: 600; color: rgba(255,255,255,.82); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.spm-af-links a:hover { color: #fff; text-decoration: underline; }
.spm-af-links svg { color: var(--purple-200, #cbb6e6); flex-shrink: 0; }
