/* =========================================================
   PRIME MORTGAGE SOLUTIONS
   Premium Financial / Fintech Design System
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */

:root {
  --prime-navy: #0b1f33;
  --prime-navy-2: #102d47;
  --prime-blue: #1c4f76;
  --prime-gold: #c6a15b;

  --prime-white: #ffffff;
  --prime-offwhite: #f7f7f4;
  --prime-light: #eef1f3;
  --prime-gray: #68737d;
  --prime-dark: #17212b;

  --prime-radius: 4px;
  --prime-radius-lg: 10px;

  --prime-container: 1180px;

  --prime-shadow:
    0 10px 35px rgba(11, 31, 51, 0.08);

  --prime-transition:
    all 0.25s ease;
}


/* ---------- 2. GLOBAL RESET ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--prime-white);
  color: var(--prime-dark);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
}


/* ---------- 3. TYPOGRAPHY ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--prime-navy);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(42px, 5vw, 72px);
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
}

h3 {
  font-size: 26px;
}

.eyebrow,
.section-eyebrow {
  color: var(--prime-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ---------- 4. CONTAINER ---------- */

.container,
.site-container,
.content-container {
  width: min(
    calc(100% - 48px),
    var(--prime-container)
  );

  margin-left: auto;
  margin-right: auto;
}


/* ---------- 5. HEADER ---------- */

header,
.site-header,
.navbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e7e9eb;

  position: relative;
  z-index: 1000;
}

header .container,
.site-header .container,
.navbar .container {
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav a {
  color: var(--prime-navy);

  font-size: 14px;
  font-weight: 600;

  transition: var(--prime-transition);
}

nav a:hover {
  color: var(--prime-gold);
}


/* ---------- 6. PRIMARY BUTTON ---------- */

.btn-primary,
.primary-button,
.cta-button,
a.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 0 26px;

  border: 1px solid var(--prime-navy);
  border-radius: var(--prime-radius);

  background: var(--prime-navy);
  color: white !important;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;

  transition: var(--prime-transition);
}

.btn-primary:hover,
.primary-button:hover,
.cta-button:hover,
a.button-primary:hover {
  background: var(--prime-gold);
  border-color: var(--prime-gold);

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(11, 31, 51, 0.15);
}


/* ---------- 7. SECONDARY BUTTON ---------- */

.btn-secondary,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 0 26px;

  border: 1px solid var(--prime-navy);
  border-radius: var(--prime-radius);

  background: transparent;
  color: var(--prime-navy) !important;

  font-size: 14px;
  font-weight: 700;

  transition: var(--prime-transition);
}

.btn-secondary:hover,
.secondary-button:hover {
  background: var(--prime-navy);
  color: white !important;
}


/* ---------- 8. HERO ---------- */

.hero,
.home-hero,
.banner {
  position: relative;

  min-height: 680px;

  display: flex;
  align-items: center;

  background:
    linear-gradient(
      90deg,
      rgba(11, 31, 51, 0.97) 0%,
      rgba(11, 31, 51, 0.88) 48%,
      rgba(11, 31, 51, 0.25) 100%
    );

  color: white;
}

.hero h1,
.home-hero h1,
.banner h1 {
  max-width: 780px;

  color: white;

  font-size: clamp(46px, 6vw, 76px);
  font-weight: 650;
}

.hero p,
.home-hero p,
.banner p {
  max-width: 650px;

  color: rgba(255,255,255,0.82);

  font-size: 19px;
}

.hero .eyebrow {
  color: var(--prime-gold);
}


/* ---------- 9. HERO BACKGROUND ---------- */

.hero::before,
.home-hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(11,31,51,.98),
      rgba(11,31,51,.72)
    );

  z-index: 0;
}

.hero > *,
.home-hero > * {
  position: relative;
  z-index: 1;
}


/* ---------- 10. TRUST BAR ---------- */

.trust-bar {
  background: var(--prime-offwhite);

  border-bottom: 1px solid #e2e5e7;
}

.trust-bar .container {
  min-height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.trust-item {
  color: var(--prime-gray);

  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}


/* ---------- 11. SECTION SYSTEM ---------- */

section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-light {
  background: var(--prime-offwhite);
}

.section-dark {
  background: var(--prime-navy);
  color: white;
}

.section-dark h2,
.section-dark h3 {
  color: white;
}


/* ---------- 12. WHO WE HELP CARDS ---------- */

.borrower-grid,
.card-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 20px;
}

.borrower-card,
.loan-card,
.feature-card {
  padding: 32px;

  background: white;

  border: 1px solid #e4e7e9;
  border-radius: var(--prime-radius-lg);

  transition: var(--prime-transition);
}

.borrower-card:hover,
.loan-card:hover,
.feature-card:hover {
  transform: translateY(-5px);

  border-color: var(--prime-gold);

  box-shadow: var(--prime-shadow);
}

.borrower-card h3,
.loan-card h3 {
  margin-bottom: 12px;
}

.borrower-card p,
.loan-card p {
  color: var(--prime-gray);
}


/* ---------- 13. CARD ICON ---------- */

.card-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 24px;

  border-radius: 50%;

  background: #edf2f5;
  color: var(--prime-navy);

  font-size: 20px;
}


/* ---------- 14. INTERNATIONAL SECTION ---------- */

.international-section {
  position: relative;

  background:
    linear-gradient(
      100deg,
      var(--prime-navy) 0%,
      #153c5c 100%
    );

  color: white;
}

.international-section h2 {
  color: white;
}

.international-section p {
  color: rgba(255,255,255,.78);
}

.route {
  display: inline-flex;

  margin-right: 8px;
  margin-bottom: 10px;

  padding: 10px 16px;

  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;

  color: white;

  font-size: 13px;
  font-weight: 600;
}


/* ---------- 15. CALCULATOR ---------- */

.calculator-card {
  max-width: 900px;

  margin: 0 auto;

  padding: 48px;

  background: white;

  border: 1px solid #e1e5e8;
  border-radius: var(--prime-radius-lg);

  box-shadow: var(--prime-shadow);
}

.calculator-card input,
.calculator-card select,
form input,
form select,
form textarea {
  width: 100%;

  min-height: 52px;

  padding: 0 16px;

  border: 1px solid #ccd3d8;
  border-radius: var(--prime-radius);

  background: white;

  color: var(--prime-dark);

  font-size: 16px;

  transition: var(--prime-transition);
}

.calculator-card input:focus,
.calculator-card select:focus,
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;

  border-color: var(--prime-blue);

  box-shadow:
    0 0 0 3px rgba(28,79,118,.1);
}


/* ---------- 16. QUALIFICATION QUIZ ---------- */

.quiz-container {
  max-width: 720px;

  margin: 50px auto;

  padding: 42px;

  background: white;

  border: 1px solid #e2e6e9;
  border-radius: var(--prime-radius-lg);

  box-shadow: var(--prime-shadow);
}

.quiz-progress {
  height: 5px;

  margin-bottom: 35px;

  overflow: hidden;

  border-radius: 5px;

  background: #e7ebee;
}

.quiz-progress-bar {
  height: 100%;

  background: var(--prime-gold);

  transition: width .3s ease;
}

.quiz-question {
  margin-bottom: 28px;

  color: var(--prime-navy);

  font-size: 30px;
  font-weight: 650;
  line-height: 1.2;
}

.quiz-option {
  width: 100%;

  margin-bottom: 12px;
  padding: 18px 20px;

  border: 1px solid #d9dfe3;
  border-radius: var(--prime-radius);

  background: white;

  text-align: left;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition: var(--prime-transition);
}

.quiz-option:hover {
  border-color: var(--prime-gold);

  background: #faf8f2;
}

.quiz-option.selected {
  border-color: var(--prime-navy);

  background: #eef3f6;
}


/* ---------- 17. RESULTS ---------- */

.qualification-result {
  padding: 36px;

  border-left: 4px solid var(--prime-gold);

  background: var(--prime-offwhite);
}

.qualification-result h3 {
  margin-bottom: 8px;
}

.result-program {
  padding: 20px;

  margin-top: 15px;

  background: white;

  border: 1px solid #e1e5e8;
  border-radius: var(--prime-radius);
}


/* ---------- 18. HOW IT WORKS ---------- */

.process-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 30px;
}

.process-number {
  margin-bottom: 18px;

  color: var(--prime-gold);

  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
}

.process-step h3 {
  margin-bottom: 10px;
}

.process-step p {
  color: var(--prime-gray);
}


/* ---------- 19. TESTIMONIALS ---------- */

.testimonial-card {
  padding: 38px;

  background: white;

  border: 1px solid #e3e6e8;
  border-radius: var(--prime-radius-lg);

  box-shadow:
    0 5px 20px rgba(11,31,51,.04);
}

.testimonial-stars {
  color: var(--prime-gold);

  margin-bottom: 18px;

  letter-spacing: 3px;
}

.testimonial-card blockquote {
  margin: 0 0 22px;

  color: var(--prime-navy);

  font-size: 19px;
  line-height: 1.55;
}


/* ---------- 20. TEAM ---------- */

.team-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 30px;
}

.team-card {
  overflow: hidden;

  background: white;

  border: 1px solid #e3e6e8;
  border-radius: var(--prime-radius-lg);
}

.team-card img {
  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;
}

.team-card-content {
  padding: 25px;
}

.team-card-role {
  color: var(--prime-gold);

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: .08em;
}


/* ---------- 21. RESOURCE CARDS ---------- */

.resource-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 24px;
}

.resource-card {
  overflow: hidden;

  background: white;

  border: 1px solid #e3e6e8;
  border-radius: var(--prime-radius-lg);

  transition: var(--prime-transition);
}

.resource-card:hover {
  transform: translateY(-4px);

  box-shadow: var(--prime-shadow);
}

.resource-card img {
  width: 100%;

  aspect-ratio: 16 / 9;

  object-fit: cover;
}

.resource-content {
  padding: 28px;
}


/* ---------- 22. FINAL CTA ---------- */

.final-cta {
  padding: 100px 20px;

  background: var(--prime-navy);

  text-align: center;
}

.final-cta h2 {
  max-width: 800px;

  margin-left: auto;
  margin-right: auto;

  color: white;
}

.final-cta p {
  max-width: 650px;

  margin-left: auto;
  margin-right: auto;

  color: rgba(255,255,255,.75);

  font-size: 18px;
}


/* ---------- 23. FOOTER ---------- */

footer {
  padding: 70px 0 30px;

  background: #071522;

  color: rgba(255,255,255,.65);
}

footer h3,
footer h4 {
  color: white;
}

footer a {
  transition: var(--prime-transition);
}

footer a:hover {
  color: var(--prime-gold);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 25px;

  border-top: 1px solid rgba(255,255,255,.1);

  font-size: 12px;
}


/* ---------- 24. FORM LABELS ---------- */

form label {
  display: block;

  margin-bottom: 7px;

  color: var(--prime-navy);

  font-size: 14px;
  font-weight: 650;
}

.form-group {
  margin-bottom: 20px;
}


/* ---------- 25. FAQ ---------- */

.faq-item {
  padding: 22px 0;

  border-bottom: 1px solid #dfe3e6;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;

  color: var(--prime-navy);

  font-size: 18px;
  font-weight: 650;
}


/* ---------- 26. STICKY MOBILE CTA ---------- */

.mobile-cta {
  display: none;
}


/* ---------- 27. RESPONSIVE ---------- */

@media (max-width: 1000px) {

  .borrower-grid,
  .process-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .resource-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 600px;
  }

}


@media (max-width: 700px) {

  .container,
  .site-container,
  .content-container {
    width: min(
      calc(100% - 32px),
      var(--prime-container)
    );
  }

  section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 35px;
  }

  .hero {
    min-height: 650px;
  }

  .hero p {
    font-size: 17px;
  }

  .borrower-grid,
  .process-grid,
  .team-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar .container {
    flex-direction: column;

    align-items: flex-start;

    padding-top: 25px;
    padding-bottom: 25px;
  }

  .calculator-card,
  .quiz-container {
    padding: 28px 22px;
  }

  .mobile-cta {
    position: fixed;

    display: flex;
    align-items: center;
    justify-content: center;

    left: 0;
    right: 0;
    bottom: 0;

    height: 64px;

    background: var(--prime-navy);

    z-index: 9999;

    box-shadow:
      0 -5px 20px rgba(0,0,0,.15);
  }

  .mobile-cta a {
    color: white;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .03em;
  }

  body {
    padding-bottom: 64px;
  }

}


/* ---------- 28. ACCESSIBILITY ---------- */

:focus-visible {
  outline: 3px solid var(--prime-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition: none !important;
  }

}