/* Homepage redesign, Dec 5 2026. Scoped to this page so city and other layouts stay as they are. */
.iq-home-page { scroll-behavior: auto; }
.iq-home {
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  padding: 124px 28px 48px;
  background: #fff;
  border-right: 2px solid #eaf2ff;
  border-left: 2px solid #eaf2ff;
  color: #333;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.iq-home-next { padding-top: 8px; }
.iq-home-page > .grid-includes { box-sizing: border-box; }
.iq-home *,
.iq-home *::before,
.iq-home *::after { box-sizing: border-box; }
.iq-wrap { max-width: 1120px; margin: 0 auto; }
.iq-home h1,
.iq-home h2,
.iq-home h3 {
  margin: 0 0 12px;
  color: #131199;
  font-family: BioRhyme, serif;
  font-weight: 700;
  line-height: 1.15;
}
.iq-home h1 { font-size: 46px; letter-spacing: -0.02em; }
.iq-home h2 { font-size: 44px; }
.iq-home h3 { font-size: 26px; color: #131199; line-height: 1.3; }
.iq-home p { margin: 0 0 12px; }
.iq-home a { color: #131199; }
.iq-where {
  margin: 0 0 12px;
  color: #131199;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.iq-kicker {
  margin: 0 0 10px;
  color: #4085fa;
  font-family: BioRhyme, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.iq-lead { max-width: 62ch; font-size: 18px; }
.iq-section { padding: 56px 0 28px; border-top: 0; text-align: center; }
.iq-section h2 { max-width: none; }
.iq-intro { max-width: 68ch; margin-left: auto; margin-right: auto; color: #333; }

.iq-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
  padding-bottom: 12px;
}
.iq-hero-photo img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
}
.iq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 14px; }
.iq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 48px;
  padding: 15px 22px;
  border: 2px solid #4085fa;
  border-radius: 50px;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.iq-btn-primary { background: #4085fa; color: #fff; }
.iq-btn-primary:hover { background: #131199; border-color: #131199; color: #fff; }
.iq-btn-secondary { background: #fff; color: #131199; }
.iq-btn-secondary:hover { background: #eaf2ff; }
.iq-phone {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.iq-phone a { color: #131199; text-decoration: underline; text-underline-offset: 3px; }
.iq-fine { margin: 6px 0 0; color: #727272; font-size: 14px; }
.iq-fine a { color: #131199; }

.iq-cards, .iq-reviews {
  display: grid;
  gap: 30px;
  margin-top: 24px;
}
.iq-cards, .iq-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.iq-card, .iq-case, .iq-review, .iq-faq article, .iq-office, .iq-disclaimer {
  min-width: 0;
  border: 0;
  border-radius: 20px;
  background-color: #eaf2ff;
  background-image: linear-gradient(60deg, #eaf2ffeb 57%, #eaf2ffa3), url(/assets/wf/67d92bf91fae9fbbfc1e374d/67ef7f1869ec119c5f941a27_IQRATE%20MARTAGAGES%20light%20pattern.png);
  background-position: 0 0, 0 0;
  background-size: auto, 1560px;
}
.iq-card, .iq-case, .iq-faq article { padding: 20px; text-align: left; }
.iq-card, .iq-case { transition: transform .3s, box-shadow .3s; }
.iq-card:hover, .iq-case:hover { transform: translateY(-6px); box-shadow: 0 5px 20px #0000002e; }
.iq-card p, .iq-case p, .iq-review p { font-size: 16px; }
.iq-card h3 a, .iq-more a { font-weight: 700; }
.iq-more { margin: 14px 0 0; font-size: 15px; }

.iq-case { margin-top: 14px; }
.iq-case h3 { margin-bottom: 8px; }
.iq-dl { display: grid; gap: 8px; margin: 0; }
.iq-dl div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 10px; }
.iq-dl dt { margin: 0; color: #131199; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.iq-dl dd { margin: 0; }
.iq-disclaimer {
  margin-top: 16px;
  padding: 16px 18px;
  color: #333;
  font-size: 14px;
  text-align: left;
}

.iq-david {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.iq-david img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.iq-office {
  margin-top: 18px;
  padding: 20px;
  text-align: left;
}
.iq-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.iq-pills a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d5e3fb;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.iq-pills a:hover { background: #eaf2ff; }

.iq-ratings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; width: 100%; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.iq-ratings strong { color: #131199; }
.iq-stars { color: #e2a100; font-size: 12px; letter-spacing: 1px; }
.iq-review { padding: 16px 16px 12px; text-align: left; }
.iq-review-kicker { margin: 0 0 6px; color: #727272; font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 700; }
.iq-review blockquote {
  margin: 0 0 8px;
  padding: 0 0 0 10px;
  border-left: 3px solid #d5e3fb;
  font-size: 15px;
  line-height: 1.4;
}
.iq-review blockquote p { margin: 0; }
.iq-review-name { margin: 0; font-weight: 700; color: #131199; }

.iq-calc-note { max-width: 760px; margin: 12px auto 0; color: #5a6782; font-size: 13px; }
#iq-calc { max-width: 760px; }

.iq-faq { display: grid; gap: 12px; margin-top: 16px; }
.iq-faq h3 { font-family: "DM Sans", sans-serif; font-size: 18px; }

.iq-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
  padding: 28px;
  border-radius: 20px;
  background-color: #eaf2ff;
  background-image: linear-gradient(60deg, #eaf2ffeb 57%, #eaf2ffa3), url(/assets/wf/67d92bf91fae9fbbfc1e374d/67ef7f1869ec119c5f941a27_IQRATE%20MARTAGAGES%20light%20pattern.png);
  background-size: auto, 1560px;
  text-align: left;
}
.iq-cta-person { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.iq-cta-person img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.iq-cta-mark { width: 140px; height: auto; justify-self: end; }

.iq-home :focus-visible { outline: 3px solid #131199; outline-offset: 3px; }

/* Guarantee card body copy inherits the light link blue. Darken only that text. */
.iq-home-page #guarantees .grid-icon-text-button p {
  color: #333;
}

@media (max-width: 900px) {
  .iq-home { padding: 112px 16px 36px; }
  .iq-home h1 { font-size: 32px; }
  .iq-home h2 { font-size: 30px; }
  .iq-kicker { font-size: 18px; }
  .iq-hero, .iq-cards, .iq-reviews, .iq-david, .iq-cta {
    grid-template-columns: 1fr;
  }
  .iq-hero-photo img { height: 200px; }
  .iq-dl div { grid-template-columns: 1fr; gap: 2px; }
  .iq-cta-mark { display: none; }
  .iq-section { padding: 28px 0; }
  .iq-card, .iq-case, .iq-faq article { padding: 16px; }
  .iq-review { padding: 12px 14px; }
  .iq-reviews { gap: 12px; }
  .iq-btn { min-width: 0; width: 100%; }
}
