/* SHARED SUB-PAGE COMPONENTS — ProvidusUnity Bank design system
   (gold #f5a800 · dark #212529 · Montserrat + Inter)
   Canonical styles for the building blocks every sub-page uses:
   hero, section scaffold, CTA band, forms, sidebar cards and the
   val-card / next-card grids. Load AFTER styles.css/redesign.css
   and BEFORE the page's own css/pages/<page>.css. */

/* Page shell */
.page-shell {
  background: linear-gradient(180deg, #fffdf6 0%, #f7f7f5 38%, #f4f5f7 100%);
  position: relative;
  overflow: hidden;
}

/* HERO (dark, gold glow) */
/* display/text-align reset the legacy .page-hero rule in styles.css
   (flex + centered), which otherwise bleeds into non-.center heroes */
.page-hero {
  position: relative;
  display: block;
  text-align: left;
  padding: calc(var(--nav-h) + var(--util-h) + 72px) 80px 112px;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 60% at 85% -10%, #241a05 0%, #14100a 55%), #0b0906;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 88% 10%, rgba(253, 184, 19, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(253, 184, 19, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
}

.page-hero-text {
  max-width: 640px;
}

.page-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 22px;
}

.page-crumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.page-crumb a:hover {
  color: var(--gold);
}

.page-crumb .current {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.page-h1 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 18px;
}

.page-h1 em {
  font-style: normal;
  color: var(--gold);
}

.page-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  max-width: 540px;
  margin-bottom: 28px;
}

.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-hero-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.page-hero-meta strong {
  color: #fff;
  font-weight: 700;
}

.page-hero-meta-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

/* HERO PHOTO MODIFIER (page owns a real hero image) */
/* Bolder full-bleed version of the hero: the page's own photo becomes
   the section background with a dark overlay, so it reads as a real
   banner image rather than the faint watermark the plain hero uses.
   Text reverts to light since the overlay underneath it is dark. */
.page-hero.page-hero-photo {
  background:
    linear-gradient(100deg, rgba(8, 6, 2, 0.86) 0%, rgba(8, 6, 2, 0.62) 48%, rgba(8, 6, 2, 0.32) 100%),
    var(--hero-photo) center / cover no-repeat,
    #0b0906;
}

.page-hero.page-hero-photo.center {
  background:
    linear-gradient(180deg, rgba(8, 6, 2, 0.8) 0%, rgba(8, 6, 2, 0.62) 45%, rgba(8, 6, 2, 0.82) 100%),
    var(--hero-photo) center / cover no-repeat,
    #0b0906;
}

.page-hero.page-hero-photo::before {
  background: radial-gradient(ellipse 55% 65% at 88% 10%, rgba(253, 184, 19, 0.2) 0%, transparent 60%);
}

.page-hero.page-hero-photo .page-crumb,
.page-hero.page-hero-photo .page-crumb a {
  color: rgba(255, 255, 255, 0.45);
}

.page-hero.page-hero-photo .page-crumb .current {
  color: rgba(255, 255, 255, 0.75);
}

.page-hero.page-hero-photo .page-h1 {
  color: #fff;
}

.page-hero.page-hero-photo .page-lead {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero.page-hero-photo .page-hero-meta {
  color: rgba(255, 255, 255, 0.55);
}

.page-hero.page-hero-photo .page-hero-meta strong {
  color: #fff;
}

.page-hero.page-hero-photo .page-hero-meta-sep {
  background: rgba(255, 255, 255, 0.25);
}

.page-hero.page-hero-photo .btn-ghost-white {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.page-hero.page-hero-photo .btn-ghost-white:hover {
  border-color: rgba(253, 184, 19, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* centered hero variant (help centre, contact) */
.page-hero.center {
  text-align: center;
}

.page-hero.center .page-hero-text {
  margin: 0 auto;
}

.page-hero.center .page-crumb {
  justify-content: center;
}

.page-hero.center .eyebrow {
  justify-content: center;
}

.page-hero.center .page-lead {
  margin-left: auto;
  margin-right: auto;
}

.page-hero.center .page-cta-row {
  justify-content: center;
}

.page-hero.center .page-hero-meta {
  justify-content: center;
}

/* Section scaffold */
.page-sec {
  max-width: 1440px;
  margin: 0 auto;
  padding: 88px 80px;
  position: relative;
}

/* Drops a section's top padding so two stacked sections don't double up
   the vertical rhythm. The section classes are repeated as compound
   selectors because .ab-sec and friends live in per-page stylesheets
   that load after this file and would otherwise win on source order. */
.flush-top,
.page-sec.flush-top,
.ab-sec.flush-top {
  padding-top: 0;
}

.page-sec-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.page-sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-sec-head.center .eyebrow {
  justify-content: center;
}

.page-sec-head.wide {
  max-width: none;
}

.page-sec-sub {
  font-size: 15px;
  line-height: 1.75;
  color: #5e5e57;
  margin-top: 14px;
}

/* CTA BAND (brand gold, dark type) */
.page-cta {
  position: relative;
  max-width: 1280px;
  width: calc(100% - 160px);
  margin: 0 auto 100px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdb813 0%, #f0a90c 100%);
  border: 1px solid rgba(26, 18, 0, 0.1);
  padding: 64px 72px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 40px;
  align-items: center;
}

.page-cta::before {
  content: "";
  position: absolute;
  top: -70px;
  left: -50px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

.page-cta-eye {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a1200;
  margin-bottom: 14px;
}

.page-cta-eye span {
  width: 24px;
  height: 1px;
  background: #1a1200;
}

.page-cta h2 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.15;
  color: #1a1200;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.page-cta h2 em {
  font-style: normal;
  color: #fff;
}

.page-cta p {
  font-size: 14px;
  color: rgba(26, 18, 0, 0.68);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.page-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.page-cta-actions .btn-gold,
.page-cta-actions .btn-ghost-white {
  justify-content: center;
}

/* inverted CTAs so they read on the gold band:
   primary = black bg / white text, secondary = white bg / black text */
.page-cta .btn-gold {
  background: #1a1200;
  color: #fff;
  box-shadow: 0 3px 11px rgba(26, 18, 0, 0.12);
}

.page-cta .btn-gold:hover {
  background: #000;
  box-shadow: 0 5px 17px rgba(26, 18, 0, 0.12);
}

.page-cta .btn-ghost-white {
  border-color: rgba(26, 18, 0, 0.15);
  background: #fff;
  color: #1a1200;
}

.page-cta .btn-ghost-white:hover {
  border-color: #1a1200;
  background: #fff;
}

/* Card / split layout */
.page-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  box-shadow: 0 1px 1px rgba(20, 16, 0, 0.02), 0 4px 11px rgba(20, 16, 0, 0.02);
}

.page-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

.page-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Form */
.form-card {
  padding: 44px;
}

.form-head h3 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #1a1a1a;
}

.form-head p {
  font-size: 13.5px;
  color: #76766f;
  margin-top: 6px;
}

.page-form {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #3a3a35;
}

.form-field label .req {
  color: var(--gold);
}

.form-field label .opt {
  color: #9a9a96;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  background: #fbfbf9;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  border-radius: 11px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: "Inter", sans-serif;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 168, 0, 0.12);
}

.form-field small.err {
  display: none;
  font-size: 11.5px;
  color: #c0392b;
}

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: #c0392b;
}

.form-field.invalid small.err {
  display: block;
}

.form-consent {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-consent input {
  appearance: none;
  -webkit-appearance: none;
  margin: 2px 0 0;
  padding: 0;
  box-sizing: border-box;
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 1.3px solid rgba(0, 0, 0, 0.24);
  border-radius: 4px;
  background: #fbfbf9;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.form-consent input:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

.form-consent input:checked {
  border-color: var(--gold);
  background: var(--gold);
}

.form-consent input:checked::after {
  content: "";
  display: block;
  width: 4px;
  height: 7px;
  margin: 0.5px auto 0;
  border: solid #1a1200;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.form-consent input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-consent label {
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b6b6b;
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-foot .btn-gold {
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

.form-note {
  font-size: 11.5px;
  color: #9a9a96;
}

/* form success state */
.form-success {
  display: none;
  padding: 44px;
  text-align: center;
}

.form-success.is-visible {
  display: block;
}

.form-card.is-sent .page-form,
.form-card.is-sent .form-head {
  display: none;
}

.form-success-ico {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e9f7ef;
  color: #2f8f5b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success-ico svg {
  width: 26px;
  height: 26px;
}

.form-success h3 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.form-success p {
  font-size: 14px;
  color: #76766f;
  max-width: 380px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.form-success button {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* SIDEBAR CARDS (office / hours / socials) */
.page-office {
  padding: 30px;
}

.page-office-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-office h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.page-office address {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6b6b6b;
}

.page-office-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.page-office-link svg {
  width: 12px;
  height: 12px;
}

.page-hours {
  padding: 26px 30px;
}

.page-hours h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.page-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.page-hours-row:first-of-type {
  border-top: none;
}

.page-hours-row span:first-child {
  color: #6b6b6b;
}

.page-hours-row span:last-child {
  color: #1a1a1a;
  font-weight: 600;
}

.page-hours-row .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f8f5b;
  margin-right: 6px;
}

.page-social-card {
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-social-card h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #1a1a1a;
}

.page-social-row {
  display: flex;
  gap: 8px;
}

.page-social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: #b37a00;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.page-social-row a svg {
  width: 15px;
  height: 15px;
}

.page-social-row a:hover {
  background: var(--gold);
  color: #1a1200;
  transform: translateY(-2px);
}

/* VAL-CARD (feature / benefit grid item, no link) */
.val-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 28px 24px 30px;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s,
    border-color 0.3s;
}

.val-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02), 0 5px 14px rgba(0, 0, 0, 0.03);
  border-color: rgba(245, 168, 0, 0.4);
}

.val-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.25s;
}

.val-card:hover .val-ico {
  background: var(--gold);
}

.val-ico svg {
  width: 22px;
  height: 22px;
  color: #b37a00;
  transition: color 0.25s;
}

.val-card:hover .val-ico svg {
  color: #1a1a1a;
}

.val-card h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.val-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #76766f;
}

/* NEXT-CARD (related-links / "See Also" grid item) */
.next-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s,
    border-color 0.3s;
}

.next-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02), 0 5px 14px rgba(0, 0, 0, 0.03);
  border-color: rgba(245, 168, 0, 0.4);
}

.next-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.next-ico svg {
  width: 21px;
  height: 21px;
  color: #b37a00;
}

.next-card h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  color: #1a1a1a;
}

.next-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #76766f;
  flex: 1;
}

.next-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
}

.next-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s;
}

.next-card:hover .next-link svg {
  transform: translateX(4px);
}

/* Faq accordion */
.faq,
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item.is-hidden {
  display: none;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 22px 4px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
}

.faq-q svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold);
  transition: transform 0.3s;
}

.faq-item.is-open .faq-q svg {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a-inner {
  padding: 0 4px 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #6b6b6b;
  max-width: 680px;
}

.faq-empty {
  display: none;
  text-align: center;
  padding: 50px 24px;
  color: #9a9a96;
}

.faq-empty.is-visible {
  display: block;
}

/* MAP THUMB (stylised dark map: glow + grid) */
.map-thumb {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 44%, rgba(245, 168, 0, 0.33) 0%, transparent 47%),
    linear-gradient(135deg, #1a1200 0%, #0d0d0d 100%);
}

.map-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .page-hero {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: calc(var(--nav-h) + var(--util-h) + 56px);
  }

  .page-sec {
    padding-left: 40px;
    padding-right: 40px;
  }

  .page-cta {
    width: calc(100% - 80px);
  }

  .page-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  /* utility bar is hidden below 768px, so --util-h is not in play here */
  .page-hero {
    padding: calc(var(--nav-h) + 56px) 24px 84px;
  }

  .page-sec {
    padding: 56px 24px;
  }

  .form-card {
    padding: 28px 22px;
  }

  .page-form {
    grid-template-columns: 1fr;
  }

  .page-cta {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    padding: 40px 26px;
  }

  .page-social-card {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}
