/* ───────────────────────────────────────────────────────────────────────────
   OSPREXON — Closing CTA + Site footer
   Dark warm-gradient closing band with two columns (CTA + stats),
   followed by the four-column site footer and the bottom bar.
   ─────────────────────────────────────────────────────────────────────── */

.closing {
  --closing-ink: #f4efe2;
  --closing-muted: rgba(244, 239, 226, 0.62);
  --closing-rule: rgba(244, 239, 226, 0.12);
  --closing-accent: #e89422;

  position: relative;
  isolation: isolate;
  background:
    radial-gradient(
      120% 80% at 50% -10%,
      rgba(232, 148, 34, 0.18) 0%,
      rgba(232, 148, 34, 0) 60%
    ),
    linear-gradient(180deg, #14171c 0%, #0d1014 100%);
  color: var(--closing-ink);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    "Segoe UI",
    sans-serif;
  overflow: hidden;
}

.closing__cta {
  position: relative;
  max-width: var(--container-w, 1180px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 130px)
    var(--container-pad-x, clamp(1.1rem, 4vw, 2rem)) clamp(48px, 6.5vw, 90px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.closing__cta::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--closing-rule),
    transparent
  );
}
.closing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #f8c574;
  background: rgba(232, 148, 34, 0.1);
  border: 1px solid rgba(232, 148, 34, 0.22);
  border-radius: 999px;
}
.closing__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--closing-accent);
  box-shadow: 0 0 0 3px rgba(232, 148, 34, 0.22);
}
.closing__title {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.closing__title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--closing-accent);
}
.closing__sub {
  margin: 0 0 32px;
  max-width: 520px;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.6;
  color: var(--closing-muted);
}
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.closing__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.closing__btn--primary {
  background: var(--closing-accent);
  color: #14171c;
  box-shadow: 0 14px 32px -10px rgba(232, 148, 34, 0.55);
}
.closing__btn--primary:hover {
  transform: translateY(-2px);
  background: #f3a945;
}
.closing__btn--ghost {
  background: transparent;
  color: var(--closing-ink);
  border-color: var(--closing-rule);
}
.closing__btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 239, 226, 0.3);
  background: rgba(244, 239, 226, 0.04);
}
.closing__btn:focus-visible {
  outline: 2px solid rgba(232, 148, 34, 0.95);
  outline-offset: 2px;
}
.closing__btn svg {
  width: 16px;
  height: 16px;
}

/* Highlight stat panel on the right */
.closing__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.closing__stat {
  padding: 22px 22px 24px;
  background: rgba(244, 239, 226, 0.04);
  border: 1px solid var(--closing-rule);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}
.closing__stat-num {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--closing-ink);
}
.closing__stat-num em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--closing-accent);
}
.closing__stat-label {
  margin: 0;
  font-size: 13px;
  color: var(--closing-muted);
  line-height: 1.4;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  max-width: var(--container-w, 1180px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px)
    var(--container-pad-x, clamp(1.1rem, 4vw, 2rem)) 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  font-size: 14px;
  color: var(--closing-muted);
}
.site-footer__brand-wrap {
  max-width: 320px;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  color: var(--closing-ink);
  letter-spacing: -0.01em;
}
.site-footer__brand-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 14px -4px rgba(232, 148, 34, 0.35);
}
.site-footer__brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.site-footer__tag {
  margin: 0;
  line-height: 1.6;
}
.site-footer h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--closing-ink);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.site-footer a {
  color: var(--closing-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--closing-ink);
}
.site-footer a:focus-visible {
  outline: 2px solid rgba(232, 148, 34, 0.95);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-footer__bar {
  max-width: var(--container-w, 1180px);
  margin: 0 auto;
  padding: 22px var(--container-pad-x, clamp(1.1rem, 4vw, 2rem)) 40px;
  border-top: 1px solid var(--closing-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--closing-muted);
}
.site-footer__bar-links {
  display: flex;
  gap: 18px;
}
.site-footer__socials {
  display: inline-flex;
  gap: 8px;
}
.site-footer__socials a {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--closing-rule);
  color: var(--closing-muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.site-footer__socials a:hover {
  color: var(--closing-ink);
  border-color: rgba(244, 239, 226, 0.3);
  transform: translateY(-2px);
}
.site-footer__socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .closing__cta {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 44px);
  }
  /* When the layout stacks, the stat panel shouldn't span the whole width
     — cap it so it stays visually paired with the editorial copy above. */
  .closing__stats {
    max-width: 560px;
  }
  .site-footer {
    /* 4 → 2 columns on tablet keeps each link list readable without
       collapsing too aggressively. */
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .closing__stats {
    gap: 24px;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand-wrap {
    grid-column: 1 / -1;
    max-width: none;
  }
}
@media (max-width: 640px) {
  .closing__cta {
    padding-top: clamp(56px, 12vw, 84px);
    padding-bottom: clamp(40px, 9vw, 64px);
    gap: 28px;
  }
  .closing__btn {
    padding: 12px 18px;
    font-size: 13.5px;
  }
  .closing__actions {
    width: 100%;
  }
  .closing__btn--primary,
  .closing__btn--ghost {
    flex: 1 1 auto;
    justify-content: center;
  }
  .closing__stat {
    padding: 20px 18px 22px;
  }
}
@media (max-width: 520px) {
  .closing__stats {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 40px 28px;
  }
  .site-footer__bar {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 18px 28px;
  }
  .site-footer__bar-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 390px) {
  .closing__title {
    font-size: clamp(1.85rem, 8vw, 2.2rem);
  }
  .closing__btn {
    padding: 11px 16px;
    font-size: 13px;
  }
  .site-footer {
    gap: 22px;
  }
  .site-footer__brand {
    font-size: 1.4rem;
  }
}

@media (max-width: 320px) {
  .closing__cta {
    padding-top: clamp(44px, 10vw, 64px);
    padding-bottom: clamp(32px, 8vw, 48px);
    gap: 20px;
  }
  .closing__eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.3em;
    padding: 4px 10px 4px 8px;
    margin-bottom: 14px;
  }
  .closing__title {
    font-size: clamp(1.55rem, 8.5vw, 1.95rem);
    margin-bottom: 12px;
  }
  .closing__sub {
    font-size: clamp(0.88rem, 3.2vw, 0.98rem);
    margin-bottom: 20px;
  }
  .closing__actions {
    gap: 8px;
  }
  .closing__btn {
    padding: 10px 14px;
    font-size: 12.5px;
    gap: 6px;
  }
  .closing__btn svg {
    width: 14px;
    height: 14px;
  }
  .closing__stats {
    gap: 14px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .closing__stat {
    padding: 16px 14px 18px;
    border-radius: 14px;
  }
  .closing__stat-num {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  }
  .closing__stat-label {
    font-size: 11.5px;
  }
  .site-footer {
    gap: 18px;
    padding-block: 28px 20px;
    font-size: 12.5px;
  }
  .site-footer__brand {
    font-size: 1.25rem;
    gap: 6px;
  }
  .site-footer__brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .site-footer h4 {
    font-size: 10px;
    margin-bottom: 10px;
    letter-spacing: 0.18em;
  }
  .site-footer ul {
    gap: 8px;
  }
  .site-footer__bar {
    padding: 14px var(--container-pad-x, clamp(0.5rem, 2vw, 1rem)) 24px;
    gap: 10px;
    font-size: 11px;
  }
  .site-footer__bar-links {
    gap: 10px;
  }
  .site-footer__socials a {
    width: 32px;
    height: 32px;
  }
  .site-footer__socials svg {
    width: 14px;
    height: 14px;
  }
}
