/*--------------------------------------------------------------
  Inner Pages — shared styles (legacy US Legal Counsel markup mapped to
  the site theme). Loaded via /includes/style.asp on all pages.
--------------------------------------------------------------*/

/* Section rhythm */
.section {
  padding: 90px 0;
  position: relative;
}
.section-sm {
  padding: 60px 0;
}
.bg-tertiary {
  background: #f7f9fd;
}
.overflow-hidden {
  overflow: hidden;
}
.position-relative {
  position: relative;
}

/* Utility color overrides → site palette */
.text-primary {
  color: var(--pink) !important;
}
.text-black {
  color: var(--ink) !important;
}
.text-light {
  color: rgba(255, 255, 255, 0.35) !important;
}
.bg-primary {
  background: var(--pink) !important;
}
.rounded-lg {
  border-radius: 18px !important;
}

/* Page header (breadcrumb banner) */
.page-header {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(251, 203, 191, 0.14) 0, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.page-header h2 {
  font-family: var(--heading-font);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}
.breadcrumbs {
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.25s ease;
}
.breadcrumbs a:hover {
  color: var(--peach);
}
.breadcrumbs .list-inline-item:last-child a {
  color: var(--peach);
}

/* Decorative background shapes */
.has-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.has-shapes .shape {
  position: absolute;
  pointer-events: none;
}
.page-header .has-shapes svg,
.page-header .has-shapes .shape {
  color: rgba(255, 255, 255, 0.3);
}
.section .has-shapes .shape,
.about-section .has-shapes .shape {
  color: rgba(224, 122, 102, 0.18);
}
.has-shapes .shape-left {
  left: 0;
  bottom: -40px;
  height: 110%;
}
.has-shapes .shape-right {
  right: 0;
  top: -40px;
  height: 110%;
}
.page-header > .container,
.section > .container,
.about-section > .container {
  position: relative;
  z-index: 1;
}

/* Section titles */
.section-title h1,
.section-title h2 {
  font-family: var(--heading-font);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  margin-bottom: 0;
}
.section-title .content p,
.section-title p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.section-title .lead {
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
}

/* Feature list blocks (difference-of-us) */
.difference-of-us-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.difference-of-us-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
}
/* Icons removed from difference-of-us boxes per design request */
.difference-of-us-item .icon {
  display: none;
}
.difference-of-us-item h3 {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.difference-of-us-item p {
  font-size: 14.5px;
  color: var(--muted);
}

/* Steps (loan-steps) */
/* Keep the "Just 3 Easy Steps" heading on a single line at all resolutions:
   scale the font with the viewport so the text shrinks instead of wrapping. */
.loan-steps .section-title {
  margin-bottom: 40px;
}
.loan-steps .section-title h1 {
  white-space: nowrap;
  font-size: clamp(12px, 4vw, 34px);
  margin-bottom: 0;
}
.loan-steps .count {
  font-family: var(--heading-font);
  font-size: 44px;
  color: var(--peach-deep);
  line-height: 1;
  margin-bottom: 14px;
}
.step-item h3 {
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.step-item p {
  font-size: 14.5px;
  color: var(--muted);
}

/* FAQ accordions — match homepage .faq pill style */
.section .accordion {
  --bs-accordion-bg: transparent;
  max-width: 820px;
  margin: 32px auto 0;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}
.section .accordion .accordion-item {
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-radius 0.3s, box-shadow 0.3s;
}
.section .accordion .accordion-item:has(.accordion-collapse.show),
.section .accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}
.section .accordion .accordion-button {
  width: 100%;
  padding: 18px 20px 18px 26px;
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  border: 0;
  border-radius: 999px;
  margin: 0;
  cursor: pointer;
}
.section .accordion .accordion-button:not(.collapsed),
.section .accordion .accordion-button.active {
  color: var(--pink);
  background: #fff;
}
.section .accordion .accordion-button:focus {
  box-shadow: none;
}
.section .accordion .accordion-button::after {
  content: "\2b";
  background-image: none;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  background: var(--navy);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.section .accordion .accordion-button:not(.collapsed)::after,
.section .accordion .accordion-button.active::after {
  content: "\2212";
  background: var(--peach);
  color: var(--navy);
  transform: rotate(180deg);
}
.section .accordion .accordion-body {
  padding: 0 26px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.section .accordion .accordion-collapse {
  border: 0;
}

/* Contact blocks */
.contact-info .block h4,
.contact-info .h5 {
  font-family: var(--heading-font);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-info .content {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.contact-info a {
  color: var(--pink);
  text-decoration: none;
}
.contact-info a:hover {
  color: var(--pink-dark);
}

/* Blog / legacy widgets */
.widget-title {
  font-family: var(--heading-font);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--peach);
}
.widget {
  margin-bottom: 34px;
}
.widget-list a:hover {
  color: var(--pink);
}
.social-icons a {
  color: var(--muted);
  transition: color 0.25s ease;
}
.social-icons a:hover {
  color: var(--pink);
}
.pagination .page-link {
  color: var(--ink);
  border-color: var(--line);
}
.pagination .page-item.active .page-link,
.pagination .page-link:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

/* Buttons — inner pages match home .btn--primary (solid peach pill + arrow circle) */
.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 24px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-primary-bg, #fbcbbf);
  color: var(--btn-secondary-bg, #220f3c);
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(251, 203, 191, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
/* navy arrow circle appended to the label (main-page .btn__icon look) */
.btn.btn-primary::after {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6l6 6-6 6'/%3E%3C/svg%3E")
      center / 14px 14px no-repeat,
    var(--btn-primary-icon-bg, #000b21);
  transition: transform 0.3s ease, background-color 0.25s ease;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background: var(--peach-deep, #f2a995);
  color: var(--btn-secondary-bg, #220f3c);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(251, 203, 191, 0.55);
}
.btn.btn-primary:hover::after,
.btn.btn-primary:focus::after {
  transform: rotate(-45deg);
}

@media (max-width: 991px) {
  .section {
    padding: 70px 0;
  }
  .page-header {
    padding: 90px 0 70px;
  }
}
@media (max-width: 575px) {
  .section {
    padding: 56px 0;
  }
}
