/* Nonstop Mortgage — site stylesheet.
   Hand-written, no framework. Brand: navy #192B51 on white, one light tint,
   Manrope throughout. Keep it quiet: hairlines over shadows, space over boxes. */

:root {
  --navy: #192b51;
  --navy-2: #24386b;
  --ink: #131c33;
  --slate: #5b6479;
  --line: #e8e6e1;
  --tint: #f7f5f1;
  --gold: #efa823;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ring: 0 0 0 3px rgba(36, 56, 107, 0.25);
  --shell: 71.25rem; /* 1140px */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); letter-spacing: -0.02em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -0.015em; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--navy); }

.shell { max-width: var(--shell); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

::selection { background: var(--navy); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.15s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn-arrow { width: 17px; height: 17px; transition: transform 0.18s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--tint); border-color: var(--tint); }

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 132px; height: auto; }
.site-nav { display: flex; gap: 0.25rem; margin-right: auto; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
}
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--tint); }
.nav-phone-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nav-phone:hover { text-decoration: underline; text-underline-offset: 3px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.6rem 0.2rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .header-row { gap: 1rem; }
  .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 0.6rem; font-size: 1.05rem; border-radius: 8px; }
  .nav-phone-mobile { display: block; }
}

/* ---- Sections ---- */

section { padding: 6.5rem 0; }
@media (max-width: 700px) { section { padding: 4rem 0; } }

.sec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}
.sec-note { color: var(--slate); font-size: 0.98rem; }
.sec-head { margin-bottom: 2.75rem; max-width: 38rem; }
.sec-head .sec-note { margin-top: 0.7rem; }
.kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.sec-note a { color: var(--navy); font-weight: 600; }

.micro { color: var(--slate); font-size: 0.9rem; }
.micro a { color: inherit; font-weight: 600; }

/* ---- Hero ---- */

.hero {
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 8.75rem);
  min-height: calc(100svh - 8.75rem); /* leave a sliver so the reviews strip peeks at the fold */
  padding: 4rem 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.14) 55%, rgba(255, 255, 255, 0.04) 100%),
    url("/assets/img/hero-clouds.jpg") center / cover no-repeat;
}
.hero-inner { max-width: 46rem; margin: 0 auto; }
.hero h1 { font-size: clamp(2.85rem, 6vw, 4.6rem); letter-spacing: -0.02em; }
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--slate);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 14px; height: 13px; }
.hero .lede {
  font-size: 1.18rem;
  color: var(--slate);
  max-width: 34rem;
  margin: 1.4rem auto 2.3rem;
}
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero .cta-row { justify-content: center; }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.88); border-color: rgba(25, 43, 81, 0.18); }
.hero .btn-ghost:hover { background: #fff; border-color: var(--navy); }
.hero .micro { margin-top: 1.5rem; }
@media (max-width: 880px) {
  .hero { min-height: auto; padding: 3rem 0 3.5rem; background-position: center 45%; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
}

/* ---- Reviews strip (sits right at the hero's lip) ---- */

.reviews { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  padding-left: 1.1rem;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.review {
  width: 21rem;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.review .stars { color: var(--gold); font-size: 0.98rem; letter-spacing: 2px; line-height: 1; }
.review blockquote {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review figcaption { font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.review figcaption::after {
  content: "Google review";
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 1px;
}
@media (max-width: 700px) { .review { width: 17rem; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---- Steps ---- */

.steps-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 5rem;
  align-items: center;
}
.steps-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 40%;
  border-radius: 96px 20px 20px 20px;
  box-shadow: 0 24px 48px -24px rgba(25, 43, 81, 0.3);
}
.steps-body .sec-head { margin-bottom: 2rem; }
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.steps-grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.steps-grid h3 { margin-bottom: 0.35rem; }
.steps-grid p { color: var(--slate); font-size: 0.97rem; }
@media (max-width: 880px) {
  .steps-split { grid-template-columns: 1fr; gap: 2.75rem; }
  .steps-media { order: 2; max-width: 28rem; }
  .steps-media img { border-radius: 64px 16px 16px 16px; }
}

/* ---- Team ---- */

.team { background: var(--tint); border-top: 1px solid var(--line); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.5rem;
}
.tm { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tm-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
  border: 1px solid var(--line);
}
.tm-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: 0.02em;
  background: #eef1f8;
  border-color: transparent;
}
.tm-name { font-weight: 700; color: var(--navy); margin-top: 0.9rem; }
.tm-role { color: var(--slate); font-size: 0.85rem; margin-top: 0.15rem; }
.tm-mail { color: var(--slate); font-size: 0.82rem; text-decoration: none; margin-top: 0.4rem; word-break: break-word; }
.tm-mail:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.team-join { margin-top: 3rem; text-align: center; color: var(--slate); }
.team-join a { font-weight: 700; }
@media (max-width: 880px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-mail { font-size: 0.74rem; }
}

/* ---- FAQ ---- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 3rem 5rem;
  align-items: start;
}
.faq-intro h2 { margin-bottom: 0.9rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--navy);
  padding: 1.15rem 0.25rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; width: 12px; height: 12px; flex: none; }
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  background: var(--slate);
  transition: transform 0.18s;
}
.faq-mark::before { left: 0; right: 0; top: 5px; height: 2px; }
.faq-mark::after { top: 0; bottom: 0; left: 5px; width: 2px; }
details[open] .faq-mark::after { transform: scaleY(0); }
.faq-list details > p { color: var(--slate); padding: 0 2.5rem 1.3rem 0.25rem; max-width: 38rem; }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- CTA band ---- */

.cta-band { background: var(--navy); text-align: center; padding: 6rem 0; }
.cta-band .cta-row { justify-content: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.cta-band > .shell > p { color: rgba(255, 255, 255, 0.75); max-width: 32rem; margin: 1rem auto 2.2rem; }
.cta-band .micro { color: rgba(255, 255, 255, 0.6); margin-top: 1.3rem; }
.cta-band .micro a { color: #fff; }

/* Homepage CTA: a light "sky" bookend to the hero — not a dark stock-photo band */
.cta-photo {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.66) 100%),
    url("/assets/img/hero-sky-warm.jpg") center / cover no-repeat;
  border-top: 1px solid var(--line);
  padding: 7rem 0;
}
.cta-photo h2 { color: var(--navy); }
.cta-photo > .shell > p { color: var(--slate); }
.cta-photo .micro { color: var(--slate); }
.cta-photo .micro a { color: var(--navy); }

/* ---- Footer ---- */

.site-footer { padding: 4.5rem 0 2rem; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  padding-bottom: 3rem;
}
.footer-brand img { width: 132px; }
.footer-brand > p { color: var(--slate); font-size: 0.95rem; max-width: 21rem; margin-top: 1rem; }
.footer-legalrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  color: var(--slate);
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-legalrow img { width: 34px; }
.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.25rem 0;
}
.footer-col a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  color: var(--slate);
  font-size: 0.88rem;
}
.footer-legal-links { display: inline-flex; gap: 1.5rem; }
.footer-legal-links a { color: var(--slate); }
.footer-legal-links a:hover { color: var(--navy); }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Inner pages (generated by build-pages.mjs) ---- */

.page-hero { text-align: center; padding: 5.5rem 0 4rem; background: linear-gradient(180deg, var(--tint), #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.page-hero .lede { font-size: 1.1rem; color: var(--slate); max-width: 36rem; margin: 1.2rem auto 0; }
.page-hero .cta-row { margin-top: 2.2rem; }

.prose { max-width: 47.5rem; margin: 0 auto; padding-bottom: 5.5rem; color: var(--ink); line-height: 1.7; overflow-wrap: break-word; }
.prose strong { color: var(--navy); }
.prose a { color: var(--navy); }

.points {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.points li { border-top: 2px solid var(--navy); padding-top: 1.4rem; }
.points h3 { margin-bottom: 0.5rem; }
.points p { color: var(--slate); font-size: 0.97rem; }
@media (max-width: 880px) { .points { grid-template-columns: 1fr; gap: 2rem; } }

.tool-frame iframe { width: 100%; border: 0; border-radius: 12px; display: block; }

section.pt-0 { padding-top: 0; }
