/* =============================================================
   Forward Finance — Contact page
   Companion to pages/contact.html.
   Link order: fonts.css → tokens.css → site.css → contact.css

   Shared chrome comes from site.css. The hero uses the same `.phero`
   shell as About and Products so the RBI badge sits on one shared
   vertical line when switching between the three pages.
   ============================================================= */

/* The hero type ramp now lives entirely on .phero h1 in site.css, at the
   same 52px this page used to set for itself. */


/* -------------------------------------------------------------
   Contact channels — 3 up
   ------------------------------------------------------------- */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }

.ccard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 28px;
  height: 100%;
  transition: box-shadow .22s var(--ease-forward), transform .22s var(--ease-forward);
}
.ccard:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

.ccard-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--neutral-100);
  margin-bottom: 20px;
}
.ccard-ico svg { width: 22px; height: 22px; color: var(--fg-2); }
.ccard-ico.is-blue { background: rgba(0, 99, 255, 0.09); }
.ccard-ico.is-blue svg { color: var(--fw-blue); }
.ccard-ico.is-gold { background: rgba(229, 173, 67, 0.22); }
.ccard-ico.is-gold svg { color: var(--ff-gold-deep); }
.ccard-ico.is-green { background: rgba(30, 143, 90, 0.1); }
.ccard-ico.is-green svg { color: var(--status-success); }

.ccard h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.ccard p { font-size: 14px; line-height: 1.6; color: var(--fg-2); margin-top: 10px; }
.ccard p b { color: var(--fg-1); font-weight: 600; }
/* Reserve two lines for the intro copy so the blue contact links below it sit on
   one horizontal line across all three cards, whatever each intro wraps to. */
.ccard > p:first-of-type { min-height: calc(14px * 1.6 * 2); }

/* the address/email/phone itself — the thing people came for */
.ccard-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 16px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--fw-blue);
  overflow-wrap: anywhere;
  transition: color .18s;
}
.ccard-link:hover { color: var(--fw-blue-deep); text-decoration: underline; text-underline-offset: 3px; }

.ccard-meta { font-size: 12.5px; line-height: 1.55; color: var(--fg-3); margin-top: 12px; }
.ccard-meta:first-of-type { margin-top: 10px; }


/* -------------------------------------------------------------
   Offices — 2 up
   ------------------------------------------------------------- */
.ogrid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.ocard-addr {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 28px;
}
.ocard-addr h3 { font-size: 17px; font-weight: 600; }
.ocard-addr address {
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-2);
  margin-top: 10px;
}


/* -------------------------------------------------------------
   Escalation ladder
   ------------------------------------------------------------- */
.esteps {
  counter-reset: estep;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.esteps li {
  counter-increment: estep;
  position: relative;
  padding-left: 52px;
}
.esteps li::before {
  content: counter(estep);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fw-blue);
  background: rgba(0, 99, 255, 0.09);
}
.esteps h3 { font-size: 17px; font-weight: 600; color: var(--fg-1); }
.esteps p { font-size: 14.5px; line-height: 1.65; color: var(--fg-2); margin-top: 6px; }
.esteps a { color: var(--fw-blue); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.esteps a:hover { color: var(--fw-blue-deep); }

.rbi-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rbi-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  background: var(--neutral-50);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  transition: all .18s var(--ease-forward);
}
.rbi-links a svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--fg-3); }
.rbi-links a:hover {
  color: var(--fw-blue);
  border-color: var(--fw-blue);
  background: #fff;
  text-decoration: none;
}
.rbi-links a:hover svg { color: var(--fw-blue); }


/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
  .cgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cgrid { grid-template-columns: 1fr; gap: 14px; }
  .ccard { padding: 22px; }
  .ccard:hover { transform: none; }
  /* Stacked, so there is no row to align to and no reason to pad short copy. */
  .ccard > p:first-of-type { min-height: 0; }

  .ogrid-2 { grid-template-columns: 1fr; gap: 14px; }
  .ocard-addr { padding: 22px; }

  .esteps li { padding-left: 44px; }
  .esteps li::before { width: 30px; height: 30px; font-size: 13px; }
}

@media (max-width: 480px) {
  .ccard-link { font-size: 15px; }
  .esteps li { padding-left: 0; }
  /* the number sits above the heading once there is no room beside it */
  .esteps li::before { position: static; margin-bottom: 10px; }
}
