/* ===== Shared Help / Contact page styles ===== */
.help-eyebrow {
  margin: 0 0 12px;
  color: var(--deep-teal);
  font: 600 13px/1.2 'Manrope', sans-serif;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.lp-reveal-on [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.lp-reveal-on [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== Contact page ===== */
.cp-section { padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 48px); background: #FFFFFF; }
.cp-wrap { max-width: 1280px; margin: 0 auto; }
.cp-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 28px; }
.cp-head h2 {
  margin: 0; color: var(--charcoal-navy);
  font-size: clamp(30px, 3.4vw, 46px); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); font-weight: var(--fw-heading);
}
.cp-follow { display: flex; align-items: center; gap: 14px; }
.cp-follow-label { color: var(--muted-blue-gray); font-size: 14px; font-weight: 600; }
.cp-socials { display: flex; gap: 10px; }
.cp-social {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: #EAF5FA; color: var(--deep-teal); text-decoration: none;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.cp-social svg { width: 20px; height: 20px; }
.cp-social:hover, .cp-social:focus-visible { color: #FFFFFF; transform: translateY(-2px); }
.cp-social:focus-visible { outline: 3px solid rgba(45,174,224,.5); outline-offset: 3px; }
.cp-social--fb:hover, .cp-social--fb:focus-visible { background: #1877F2; box-shadow: 0 8px 18px rgba(24,119,242,.28); }
.cp-social--in:hover, .cp-social--in:focus-visible { background: #0A66C2; box-shadow: 0 8px 18px rgba(10,102,194,.28); }
.cp-social--ig:hover, .cp-social--ig:focus-visible { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); box-shadow: 0 8px 18px rgba(214,36,159,.28); }
@media (prefers-reduced-motion: reduce) { .cp-social { transition: none; } .cp-social:hover { transform: none; } }

.cp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.cp-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px;
  border: 1px solid rgba(27,96,131,.12); border-radius: 20px; background: #FFFFFF;
  transition: border-color 250ms ease, opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1);
}
.cp-card:hover { border-color: rgba(45,174,224,.45); }
.cp-card-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 12px; background: #EAF5FA; color: var(--deep-teal);
}
.cp-card-icon svg { width: 20px; height: 20px; }
.cp-card-label { color: var(--muted-blue-gray); font-size: 13px; font-weight: 600; line-height: var(--lh-ui); }
.cp-card-value { color: var(--charcoal-navy); font-size: 15px; font-weight: 600; line-height: var(--lh-body); overflow-wrap: anywhere; text-decoration: none; }
a.cp-card-value:hover { color: var(--deep-teal); text-decoration: underline; text-underline-offset: 3px; }

.cp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.cp-map-card { position: relative; min-height: 420px; overflow: hidden; border-radius: 20px; background: #EAF5FA; border: 1px solid rgba(27,96,131,.12); }
.cp-map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cp-form-card {
  padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: #FFFFFF;
  border: 1px solid rgba(27,96,131,.12);
}
.cp-form-card h3 { margin: 0 0 6px; color: var(--charcoal-navy); font-size: clamp(20px, 1.8vw, 24px); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); line-height: var(--lh-ui); }
.cp-form-card > p { margin: 0 0 22px; color: var(--muted-blue-gray); font-size: 15px; line-height: var(--lh-body); }
.cp-form-card .form-field input, .cp-form-card .form-field textarea { background: #F8FBFC; }
.cp-form-card .form-field input:focus, .cp-form-card .form-field textarea:focus { background: #FFFFFF; }
.cp-form-card .contact-submit { justify-self: start; min-width: 200px; }

@media (max-width: 1100px) {
  .cp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cp-split { grid-template-columns: minmax(0, 1fr); }
  .cp-form-card { order: 1; }
  .cp-map-card { order: 2; min-height: 340px; }
}
@media (max-width: 640px) {
  .cp-section { padding-left: 16px; padding-right: 16px; }
  .cp-head { align-items: flex-start; flex-direction: column; }
  .cp-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cp-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; padding: 16px 18px; }
  .cp-card-icon { grid-row: span 3; margin: 0; }
  .cp-form-card { padding: 22px 18px; }
  .cp-form-card .contact-submit { justify-self: stretch; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cp-card { transition: none; } }

/* ===== Loan Officers ===== */
.lo-section { padding: 0 clamp(20px, 4vw, 48px) clamp(56px, 7vw, 88px); background: #FFFFFF; }
.lo-container { max-width: 1280px; margin: 0 auto; }
.lo-heading { max-width: 760px; margin: 0 0 28px; }
.lo-heading h2 {
  margin: 0; color: var(--charcoal-navy);
  font-size: clamp(30px, 3.4vw, 46px); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); font-weight: var(--fw-heading);
}

/* ===== Help page: match Our Story / Our Team look ===== */
.cp-head { flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; margin: 0 auto clamp(32px, 4vw, 44px); }
.cp-head h2, .lo-heading h2 { font-size: clamp(30px, 3.6vw, 48px); }
.lo-heading { max-width: 780px; margin: 0 auto clamp(28px, 3.5vw, 40px); text-align: center; }

.cp-cards { gap: 16px; margin-bottom: 16px; }
.cp-card {
  align-items: center; text-align: center; gap: 4px; padding: 28px 22px;
  border: 0; border-radius: 24px; background: #F2F8FB;
  transition: transform 400ms cubic-bezier(.22,1,.36,1), box-shadow 400ms cubic-bezier(.22,1,.36,1), opacity 700ms cubic-bezier(.22,1,.36,1);
}
.cp-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -24px rgba(19,47,62,.35); }
.cp-card-icon { width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; background: #FFFFFF; }
.cp-card-icon svg { width: 22px; height: 22px; }

.cp-split { gap: 16px; }
.cp-map-card { border: 0; border-radius: 24px; }
.cp-form-card { border: 0; border-radius: 24px; background: #F2F8FB; }
.cp-form-card .form-field input, .cp-form-card .form-field textarea { background: #FFFFFF; border-color: transparent; }
.cp-form-card .form-field input:focus, .cp-form-card .form-field textarea:focus { border-color: var(--bright-blue); }


@media (max-width: 640px) {
  .cp-card { text-align: left; align-items: start; padding: 16px 18px; border-radius: 20px; }
  .cp-card-icon { width: 44px; height: 44px; }
  .cp-map-card, .cp-form-card { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-card:hover { transform: none; }
}

/* ===== Help page: lighter, more open contact area ===== */
.cp-head { margin-bottom: clamp(36px, 4.5vw, 56px); }
.cp-cards { gap: 0; margin: 0 0 clamp(48px, 6vw, 80px); }
.cp-card {
  padding: 4px clamp(16px, 2vw, 28px); background: transparent; border-radius: 0;
  border-left: 1px solid rgba(27,96,131,.12);
}
.cp-card:first-child { border-left: 0; }
.cp-card:hover { transform: none; box-shadow: none; }
.cp-card-icon { background: #EAF5FA; }

.cp-split { gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.cp-map-card { min-height: 480px; border-radius: 28px; }
.cp-form-card { padding: 8px 0 0; background: transparent; border-radius: 0; }
.cp-form-card h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 8px; }
.cp-form-card > p { margin-bottom: 28px; }
.cp-form-card .contact-form { gap: 20px; }
.cp-form-card .form-field input, .cp-form-card .form-field textarea { background: #F6FAFC; border-color: rgba(27,96,131,.14); }
.cp-form-card .form-field input:focus, .cp-form-card .form-field textarea:focus { background: #FFFFFF; border-color: var(--bright-blue); }

@media (max-width: 1100px) {
  .cp-cards { row-gap: 32px; }
  .cp-card:nth-child(odd) { border-left: 0; }
}
@media (max-width: 900px) {
  .cp-form-card { padding: 0; }
  .cp-map-card { min-height: 340px; border-radius: 24px; }
}
@media (max-width: 640px) {
  .cp-cards { row-gap: 0; margin-bottom: 40px; }
  .cp-card, .cp-card:nth-child(odd) {
    padding: 18px 0; border-left: 0; border-radius: 0; background: transparent;
    border-top: 1px solid rgba(27,96,131,.12);
  }
  .cp-card:first-child { border-top: 0; padding-top: 0; }
  .cp-map-card { border-radius: 20px; }
}

/* Form panel: soft solid background so it stands out beside the map */
.cp-form-card { padding: clamp(28px, 3.5vw, 44px); background: #EEF6FA; border-radius: 28px; }
.cp-form-card .form-field input, .cp-form-card .form-field textarea { background: #FFFFFF; border-color: transparent; }
.cp-form-card .form-field input:focus, .cp-form-card .form-field textarea:focus { border-color: var(--bright-blue); }
@media (max-width: 900px) { .cp-form-card { padding: 28px 24px; border-radius: 24px; } }
@media (max-width: 640px) { .cp-form-card { padding: 24px 18px; border-radius: 20px; } }

/* Send Message: teal (orange is reserved for Apply Now), full width */
.cp-form-card .contact-submit {
  justify-self: stretch; width: 100%; min-width: 0; min-height: 54px;
  background: var(--deep-teal) !important; border-color: var(--deep-teal) !important; color: #FFFFFF !important;
  box-shadow: none !important; transform: none !important;
  transition: background-color 200ms ease;
}
.cp-form-card .contact-submit span { display: inline-block; transition: transform 200ms ease; }
.cp-form-card .contact-submit:hover,
.cp-form-card .contact-submit:focus-visible { background: #164F6C !important; border-color: #164F6C !important; }
.cp-form-card .contact-submit:hover span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .cp-form-card .contact-submit span { transition: none; } }

/* Contact details: soft fading separators instead of hard borders */
.cp-card, .cp-card:nth-child(odd) { position: relative; border-left: 0 !important; border-top: 0 !important; }
.cp-card + .cp-card::before {
  content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px;
  background: linear-gradient(to bottom, rgba(27,96,131,0), rgba(27,96,131,.24) 50%, rgba(27,96,131,0));
  pointer-events: none;
}
@media (max-width: 1100px) {
  .cp-card:nth-child(odd)::before { display: none; }
}
@media (max-width: 640px) {
  .cp-card + .cp-card::before, .cp-card:nth-child(odd)::before {
    display: block; top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px;
    background: linear-gradient(to right, rgba(27,96,131,0), rgba(27,96,131,.24) 50%, rgba(27,96,131,0));
  }
  .cp-card:first-child::before { display: none; }
}

/* ===== Loan officer cards ===== */
.lo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lo-card {
  display: flex; flex-direction: column; gap: 16px; padding: 22px;
  border-radius: 24px; background: #F2F8FB;
  transition: transform 400ms cubic-bezier(.22,1,.36,1), box-shadow 400ms cubic-bezier(.22,1,.36,1), opacity 700ms cubic-bezier(.22,1,.36,1);
}
.lo-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -24px rgba(19,47,62,.35); }
.lo-top { display: flex; align-items: center; gap: 14px; }
.lo-avatar {
  flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
  background: #FFFFFF; box-shadow: 0 0 0 3px #FFFFFF;
}
.lo-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.lo-avatar--placeholder { display: grid; place-items: center; background: linear-gradient(160deg, #D6ECF5 0%, #B9DCEB 100%); }
.lo-avatar-icon { display: block; width: 58%; color: #FFFFFF; opacity: .9; }
.lo-avatar-icon svg { display: block; width: 100%; height: auto; }
.lo-info { flex: 1 1 auto; min-width: 0; }
.lo-name { margin: 0; color: var(--charcoal-navy); font-size: 17px; font-weight: var(--fw-heading); line-height: var(--lh-ui); letter-spacing: 0; }
.lo-role { margin: 6px 0 0; color: var(--muted-blue-gray); font-size: 14px; line-height: var(--lh-ui); }
.lo-msg {
  flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: #FFFFFF; color: #0866FF; text-decoration: none;
  transition: background-color 220ms ease, color 220ms ease;
}
.lo-msg svg { width: 20px; height: 20px; }
.lo-msg:hover { background: #0866FF; color: #FFFFFF; }
.lo-msg:focus-visible { outline: 3px solid rgba(45,174,224,.55); outline-offset: 3px; }
.lo-contacts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 16px 2px 0; border-top: 1px solid rgba(27,96,131,.1);
}
.lo-contact {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  color: var(--charcoal-navy); font-size: 13.5px; font-weight: 600; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.lo-contact svg { flex: 0 0 16px; width: 16px; height: 16px; }
.lo-contact--mail svg { color: #1E9FD3; }
.lo-contact--phone svg { color: #22A05A; }
.lo-contact span { overflow-wrap: anywhere; }
.lo-contact:hover { color: var(--deep-teal); }
.lo-contact:hover span { text-decoration: underline; text-underline-offset: 3px; }
.lo-contact + .lo-contact { position: relative; padding-left: 18px; }
.lo-contact + .lo-contact::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 16px; transform: translateY(-50%);
  background: rgba(27,96,131,.18);
}
@media (max-width: 1100px) { .lo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lo-section { padding-left: 16px; padding-right: 16px; }
  .lo-grid { grid-template-columns: 1fr; gap: 12px; }
  /* One column: each card reveals as it scrolls in, so no stagger delay. */
  .lo-card { padding: 18px; border-radius: 20px; --reveal-delay: 0ms !important; }
  .lo-avatar { flex-basis: 52px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .lo-card, .lo-msg { transition: none; }
  .lo-card:hover { transform: none; }
}
