/* ================================================================
   ONLINE PAYMENTS PAGE TEMPLATE
   Figma S1: node 1889:2078
   Prefix: op-
   Depends on: ../../style.css (design tokens + layout utilities)
   ================================================================ */


/* ================================================================
   S1 — HERO BANNER
   Figma: node 1889:2078
   Inset rounded card with photo bg, dark tint overlay,
   three-stop navy gradient. Navy eyebrow pill + white H1 + body.
   Base structure mirrors fi-hero (fees page S1).
   ================================================================ */

.op-hero {
  padding-top: 20px;
  padding-bottom: var(--site-py);
  background: #fff;
}

/* Inset card */
.op-hero__card {
  position: relative;
  width: 100%;
  min-height: 465px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-1, 0 0 12px rgba(0, 0, 0, 0.09));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 115px 20px 135px;
}

/* Background layers */
.op-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.op-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.op-hero__overlay {
  position: absolute;
  inset: 0;
}

.op-hero__gradient {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
}

/* Content — centred column */
.op-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 778px;
  width: 100%;
}

/* Header: eyebrow pill + H1 stacked */
.op-hero__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Navy eyebrow pill — Rubik Medium 16px uppercase */
.op-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--color-primary, #071D49);
  border-radius: 99px;
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-overhead, 16px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.03em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

/* H1 — white Playfair SemiBold 54px */
.op-hero__heading {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--fs-h1, 54px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
}

/* Body */
.op-hero__body {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-hero-body, 20px);
  font-weight: var(--fw-hero-body, 500);
  line-height: var(--lh-hero-body, 1.40);
  letter-spacing: var(--ls-hero-body, 0.2px);
  color: #fff;
  max-width: 564px;
  margin: 0;
}


/* ── Responsive — laptop ≤1366px ─────────────────────────────── */

@media (max-width: 1366px) {
  .op-hero__card    { min-height: 420px; }

}

/* ── Responsive — tablet ≤1024px ─────────────────────────────── */

@media (max-width: 1024px) {
  .op-hero       { padding: 0; }
  .op-hero__card { min-height: 380px; border-radius: 0; padding: 80px 40px; }

}

/* ── Responsive — mobile ≤767px ──────────────────────────────── */

@media (max-width: 767px) {
  .op-hero {
    padding-top: 0;
    padding-bottom: 0;
  }

  .op-hero__card {
    min-height: auto;
    border-radius: 0;
    box-shadow: none;
    padding: 80px 20px;
  }

  .op-hero__content  { max-width: 100%; }
  .op-hero__eyebrow  { font-size: var(--fs-overhead-mob, 14px); }

}


/* ================================================================
   S3 — LEGL PAYMENT INFO
   Figma: node 1889:2350
   White bg. Two-column: text + body left, stacked horizontal
   feature cards right. Teal eyebrow pill + Playfair H2 +
   Rubik Light 18px body left; navy icon circle + Playfair Bold
   24px title + Rubik Light 14px body per card right.
   Base structure mirrors sc-vp (service-child S7).
   ================================================================ */

.op-legl { background: #fff; }

/* site-container provides max-width + horizontal padding;
   layout flex row applied directly to the container element. */
.op-legl__layout {
  display: flex;
  align-items: center;
  gap: var(--site-py);
  padding-top: var(--site-py-flush);
  padding-bottom: var(--site-py);
}

/* ── Left: eyebrow, heading, body ───────────────────────────── */

.op-legl__left {
  flex: 50%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.op-legl__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Teal eyebrow pill */
.op-legl__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--color-teal, #4FBEBE);
  color: var(--color-primary, #071D49);
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-overhead, 16px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-start;
}

/* H2 — Playfair SemiBold 44px */
.op-legl__heading {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: var(--color-text, #1E153D);
  margin: 0;
}

/* Body — Rubik Light 18px */
.op-legl__body {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-body, 18px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--color-text, #1E153D);
}

.op-legl__body p          { margin: 0; }
.op-legl__body p + p      { margin-top: 1em; }
.op-legl__body a          { color: var(--color-primary, #071D49); text-underline-offset: 3px; }
.op-legl__body a:hover    { opacity: 0.75; }

/* ── Right: stacked horizontal feature cards ─────────────────── */

.op-legl__right {
  flex: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.op-legl__card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.10);
}

/* Navy circle icon badge */
.op-legl__icon-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary, #071D49);
  display: flex;
  align-items: center;
  justify-content: center;
}

.op-legl__icon {
  width: 36px;
  height: auto;
  display: block;
}

.op-legl__card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

/* Card title — Playfair Bold 24px */
.op-legl__card-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--fs-h4);
    font-weight: var(--fw-h4);
    line-height: var(--lh-h4);
    letter-spacing: var(--ls-h4);
  color: var(--color-text, #1E153D);
  margin: 0;
}

/* Card body — Rubik Light 14px */
.op-legl__card-body {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-body-s);
  line-height: var(--lh-body-s);
  letter-spacing: var(--ls-body-s);
  color: var(--color-text, #1E153D);
  margin: 0;
}

/* ── Responsive — laptop ≤1366px ─────────────────────────────── */

@media (max-width: 1366px) {

}

/* ── Responsive — tablet ≤1024px ─────────────────────────────── */

@media (max-width: 1024px) {
  .op-legl__layout {
    flex-direction: column;
    gap: 32px;
    padding-top: var(--site-py-flush);
    padding-bottom: var(--site-py);
  }

  .op-legl__left    { flex: none; width: 100%; }
  .op-legl__heading { font-size: 34px; }
  .op-legl__right   { width: 100%; }

  .op-legl__card {
    gap: 16px;
    padding: 20px;
  }
}

/* ── Responsive — mobile ≤767px ──────────────────────────────── */

@media (max-width: 767px) {
  .op-legl__layout {
    gap: 28px;
  }

  .op-legl__heading { font-size: 30px; }
  .op-legl__body    { font-size: 16px; }

  .op-legl__icon-wrap { width: 48px; height: 48px; }
  .op-legl__icon      { width: 26px; }

  .op-legl__card-title { font-size: 20px; }
}


/* ================================================================
   S4 — PORTAL INFO SPLIT
   Figma: node 1889:2391
   Grey (#E8EDF6) bg. 50/50 split — full-height photo left
   (right corners rounded), text right (teal eyebrow + Playfair
   H2 + Rubik Light body). Mirrors te-ethos (testimonials S4).
   ================================================================ */

.op-portal {
  background: var(--color-stroke, #E8EDF6);
  overflow: hidden;
}

/* ── 50/50 flex row ──────────────────────────────────────────── */

.op-portal__inner {
  display: flex;
  min-height: 560px;
  padding-top: var(--site-py);
  padding-bottom: var(--site-py-flush);
  align-items: center;
}

/* ── Left: full-height photo ─────────────────────────────────── */

.op-portal__img-wrap {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  /* Left edge flush with viewport, right corners rounded */
  border-radius: 0 32px 32px 0;
  aspect-ratio: 16 / 9;
  max-height: 650px;
  min-height: 550px;
}

.op-portal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Right: text content ─────────────────────────────────────── */

.op-portal__content {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  /* pl-[80px] from photo, pr-[118px] to viewport edge, py-[80px] */
  padding: 0px var(--site-px, 118px);
  max-width: 720px;
}

.op-portal__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Teal eyebrow pill */
.op-portal__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--color-teal, #4FBEBE);
  border-radius: 99px;
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-overhead, 16px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.03em;
  color: var(--color-primary, #071D49);
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-start;
}

/* H2 — Playfair SemiBold 48px */
.op-portal__heading {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: var(--color-text, #1E153D);
  margin: 0;
}

/* Body — Rubik Light 18px */
.op-portal__body {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-body, 18px);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-text, #1E153D);
}

.op-portal__body p          { margin: 0 0 1em; }
.op-portal__body p:last-child { margin-bottom: 0; }
.op-portal__body a          { color: var(--color-primary, #071D49); text-underline-offset: 3px; }
.op-portal__body a:hover    { opacity: 0.75; }

/* Navy pill CTA button */
.op-portal__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--color-primary, #071D49);
  border: 0;
  border-radius: 99px;
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-action);
  font-weight: var(--fw-action);
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
  align-self: flex-start;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.op-portal__btn:hover { opacity: 0.85; color: #fff; }

/* ── Responsive — laptop ≤1366px ─────────────────────────────── */

@media (max-width: 1366px) {


}

/* ── Responsive — tablet ≤1024px ─────────────────────────────── */

@media (max-width: 1024px) {
  .op-portal__inner {
    flex-direction: column-reverse;
    min-height: auto;
    padding: 0;
  }

  .op-portal__img-wrap {
    flex: none;
    border-radius: 0 50px 0 0;
    width: 100%;
    min-height: unset;
  }

  .op-portal__content {
    flex: none;
    padding: var(--site-py) var(--site-px);
    max-width: 100%;
  }


}

/* ── Responsive — mobile ≤767px ──────────────────────────────── */

@media (max-width: 767px) {
  .op-portal__img-wrap { height: 260px; }
  .op-portal__content  { padding: 40px 20px; }
}


/* ================================================================
   S5 — PAYMENT SPLIT (mirrored op-portal)
   Same 50/50 split as S4, but photo right / text left. Reuses all
   .op-portal__* BEM classes — only the row direction + photo corner
   radii differ, via the --reverse modifier (mirrors the
   .co-image-text--right pattern in careers/opportunities.css).
   ================================================================ */

.op-portal--reverse .op-portal__inner {
  flex-direction: row-reverse;
  padding-top: var(--site-py-flush);
    padding-bottom: var(--site-py);
}

.op-body-container p {
    font-size: var(--fs-body-s);
}

.op-portal--reverse .op-portal__img-wrap {
  /* Right edge flush with viewport, left corners rounded */
  border-radius: 32px 0 0 32px;
}

@media (max-width: 1024px) {
  .op-portal--reverse .op-portal__inner {
    flex-direction: column-reverse;
    padding-bottom: 0;
  }

  .op-portal--reverse .op-portal__content {
    padding-top: 0;
  }
  .op-portal--reverse .op-portal__img-wrap {
    border-radius: 50px 0 0 0;
  }
}

/* ================================================================
   SHARED UTILITIES
   Pill used in S5 header and S7 CTA.
   ================================================================ */

.op-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 99px;
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-overhead, 16px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
}

.op-pill--teal {
  background: var(--color-teal, #4FBEBE);
  color: var(--color-primary, #071D49);
}


/* ================================================================
   S6 — GOOGLE REVIEWS
   ================================================================ */

.op-reviews-section {
    padding: var(--site-py) 0 var(--site-py-flush);
}

/* ================================================================
   S7 — CTA BANNER
   Dark card with layered gradient glow. Mirrors fi-cta / cu-cta.
   ================================================================ */

/* Light button utility */
.op-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-action, 16px);
  font-weight: var(--fw-action);
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  width: fit-content;
  justify-content: center;
}

.op-btn:hover { opacity: 0.82; }
.op-btn__arrow { flex-shrink: 0; }

.op-btn--light {
  background: var(--color-stroke, #E8EDF6);
  color: var(--color-text, #1E153D);
}

/* Section */
.op-cta {
  background: #fff;
  padding-top: var(--site-py-flush);
  padding-bottom: var(--site-py);
}

/* Card */
.op-cta__card {
  position: relative;
  width: 100%;
  border-radius: 32px;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.10);
  isolation: isolate;
}

/* Deep navy base layer */
.op-cta__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #060f20;
  opacity: 0.89;
  z-index: -2;
}

/* Teal-to-navy blurred gradient glow */
.op-cta__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    129deg,
    var(--color-teal, #4FBEBE) 24%,
    var(--color-primary, #071D49) 70%,
    var(--color-text, #1E153D) 94%
  );
  filter: blur(37px);
  opacity: 0.35;
  z-index: -1;
}

.op-cta__heading {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--fs-h2, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  max-width: 775px;
  margin: 0;
}

.op-cta__body {
  font-family: var(--font-body, 'Rubik', sans-serif);
  font-size: var(--fs-body-s, 14px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #fff;
  max-width: 628px;
  margin: 0;
}

.op-cta__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}


/* ── Responsive — tablet ≤1024px ─────────────────────────────── */

@media (max-width: 1024px) {
  .op-cta         { padding: 0; }
  .op-cta__card   { padding: 60px 40px; border-radius: 0; }
}

/* ── Responsive — mobile ≤767px ──────────────────────────────── */

@media (max-width: 767px) {

  .op-btn { width: 100%; }

  .op-cta__card {
    padding: 48px 24px;
    gap: 24px;
  }

  .op-cta__heading { font-size: var(--fs-h2-mob, 32px); }

  .op-cta__actions {
    flex-direction: column;
    width: fit-content;
  }

  .op-cta__actions .op-btn,
  .op-cta__actions .gradient-outline-pill {
    width: 100%;
    justify-content: center;
  }
}
