:root {
  --ink: #082860;
  --navy: #284078;
  --blue: #304880;
  --purple: #800080;
  --purple-dark: #600060;
  --teal: #68b0b8;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --line: #dbe2ee;
  --muted: #526072;
  --shadow: 0 20px 60px rgba(8, 40, 96, 0.14);
  --radius: 8px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(40, 64, 120, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 0.7rem 0;
}

.brand {
  width: 168px;
  display: inline-flex;
  align-items: center;
}

.site-nav {
  display: none;
  grid-column: 1 / -1;
  gap: 0.25rem;
  padding: 0.5rem 0 1rem;
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  padding: 0.75rem 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--purple);
}

.nav-toggle {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  display: inline-grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--purple);
  border-radius: 999px;
  background: var(--purple);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(128, 0, 128, 0.2);
}

.button:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

.button-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--soft);
  border-color: var(--teal);
}

.button-small {
  min-height: 40px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.button.header-cta {
  grid-column: 1 / -1;
  width: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.86)),
    url("/assets/img/mortgage-hero.jpg") center bottom / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 6px;
  background: linear-gradient(90deg, var(--navy), var(--teal), var(--purple));
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: 2.4rem;
  line-height: 1.05;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.9rem;
  line-height: 1.15;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.trust-strip {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.trust-strip div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.trust-strip dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-strip dd {
  margin: 0.1rem 0 0;
  font-weight: 800;
}

.brand-panel {
  padding: 1.25rem;
  border: 1px solid rgba(40, 64, 120, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-logo {
  width: min(100%, 420px);
  margin: 0 auto;
}

.barrett-lockup {
  margin: 1.1rem auto 0;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.barrett-lockup img {
  width: min(100%, 330px);
  margin: 0 auto;
}

.award-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(104, 176, 184, 0.16), rgba(128, 0, 128, 0.1));
}

.award-row img {
  width: 96px;
}

.award-row p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.section {
  padding: 4rem 0;
}

.section:nth-of-type(even) {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.card-grid,
.doc-grid {
  display: grid;
  gap: 1rem;
}

.info-card,
.process-step,
.resource-card,
.contact-panel,
.calculator {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.info-card {
  min-height: 170px;
  padding: 1.25rem;
}

.info-card p,
.process-step p,
.resource-card p,
.contact-panel p {
  color: var(--muted);
}

.section.trust-section {
  background: var(--ink);
  color: var(--paper);
}

.section.trust-section .eyebrow,
.section.trust-section p {
  color: rgba(255, 255, 255, 0.8);
}

.trust-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.trust-layout img {
  width: min(100%, 260px);
  justify-self: center;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.process-list {
  display: grid;
  gap: 1rem;
}

.process-step {
  padding: 1.25rem;
}

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-weight: 900;
}

.resource-grid {
  display: grid;
  gap: 1rem;
}

.resource-card {
  overflow: hidden;
}

.resource-card img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: top center;
  background: var(--soft);
}

.resource-card div {
  padding: 1.25rem;
}

.text-link {
  color: var(--purple);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.calculator-layout,
.faq-layout,
.contact-grid,
.split {
  display: grid;
  gap: 2rem;
}

.calculator {
  padding: 1rem;
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(104, 176, 184, 0.35);
  border-color: var(--teal);
}

.calc-results {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.calc-results div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: var(--soft);
}

.calc-results span {
  color: var(--muted);
}

.calc-results strong {
  white-space: nowrap;
}

.fine-print {
  color: var(--muted);
  font-size: 0.85rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

summary {
  cursor: pointer;
  padding: 1rem;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.contact-panel {
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-kicker {
  margin-bottom: 0.4rem;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel h3 {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
}

.contact-methods {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.contact-methods a,
.contact-methods > span {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  text-decoration: none;
}

.contact-methods span span,
.contact-methods a span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-methods strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-card-grid {
  display: grid;
  gap: 1rem;
}

.contact-tile {
  display: grid;
  gap: 0.35rem;
  min-height: 150px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(8, 40, 96, 0.08);
}

.contact-tile span {
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-tile strong {
  align-self: center;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.contact-tile em {
  align-self: end;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.contact-tile:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.social-links a {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.page-hero {
  padding: 4rem 0 3rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 251, 0.9)),
    url("/assets/img/mortgage-hero.jpg") center bottom / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.value-list {
  display: grid;
  gap: 1rem;
}

.value-list article {
  padding: 1.25rem;
  border-left: 4px solid var(--teal);
  background: var(--soft);
  border-radius: var(--radius);
}

.review-grid {
  display: grid;
  gap: 1rem;
}

.reviews-feature {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.review-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(8, 40, 96, 0.09);
}

.review-card p {
  color: var(--muted);
}

.review-card .text-link {
  display: inline-flex;
  margin-top: 0.35rem;
}

.review-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 44px;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: #d32323;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
}

.review-brand-blue {
  background: var(--navy);
}

.review-rating {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(211, 35, 35, 0.1);
  color: #a51d1d;
  font-size: 0.82rem;
  font-weight: 900;
}

.yelp-summary-card {
  display: grid;
  align-content: center;
  padding: 1.5rem;
  border: 1px solid rgba(211, 35, 35, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(211, 35, 35, 0.08), rgba(255, 255, 255, 0)),
    var(--paper);
  box-shadow: 0 16px 36px rgba(8, 40, 96, 0.09);
}

.yelp-summary-card h3 {
  font-size: 1.4rem;
}

.yelp-summary-card p {
  color: var(--muted);
}

.yelp-summary-card-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.yelp-summary-card-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.reviews-preview-section {
  background: var(--ink);
  color: var(--paper);
}

.reviews-preview-section .eyebrow,
.reviews-preview-section p {
  color: rgba(255, 255, 255, 0.78);
}

#main-footer {
  background: #071f4c;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

#main-footer .container {
  width: min(100% - 2rem, var(--shell));
  margin: 0 auto;
}

#footer-widgets {
  padding: 2rem 0;
}

#main-footer table,
#main-footer tbody,
#main-footer tr,
#main-footer td {
  display: block;
  width: 100% !important;
}

#main-footer td {
  padding: 0.5rem !important;
}

#main-footer img {
  margin: 0.5rem auto;
}

#main-footer a {
  color: #ffffff;
}

#footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1rem 0;
}

#footer-info {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
}

@media (min-width: 640px) {
  .contact-card-grid,
  .trust-strip,
  .card-grid,
  .doc-grid,
  .process-list,
  .field-grid,
  .resource-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 3rem;
  }
}

@media (min-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    width: 190px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    grid-column: auto;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .site-nav a {
    padding: 0.5rem 0.55rem;
    font-size: 0.9rem;
  }

  .button.header-cta {
    display: inline-flex;
    grid-column: auto;
    width: auto;
  }

  .hero {
    padding: 5rem 0 5.5rem;
  }

  .hero-grid,
  .trust-layout,
  .calculator-layout,
  .faq-layout,
  .contact-grid,
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  }

  .loan-grid,
  .doc-grid,
  .review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reviews-feature {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  }

  .process-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  #main-footer table,
  #main-footer tbody {
    display: table;
    width: 100% !important;
  }

  #main-footer tr {
    display: table-row;
  }

  #main-footer td {
    display: table-cell;
    width: auto !important;
  }
}

@media (min-width: 1120px) {
  .site-nav a {
    padding-inline: 0.75rem;
  }
}
