@font-face {
  font-family: "Mollie Glaston";
  src: url("assets/mollie-glaston.otf") format("opentype");
  font-display: swap;
}

:root {
  --plum: #773263;
  --teal: #094e69;
  --sage: #8bb27f;
  --mist: #e9e6ed;
  --moss: #778e7f;
  --gold: #b5a35a;
  --ink: #1d2830;
  --paper: #f5f1eb;
  --cream: #fffaf1;
  --warm-panel: #f8f4ee;
  --white: #ffffff;
  --line: rgba(9, 78, 105, 0.14);
  --shadow: 0 24px 60px rgba(29, 40, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(160px, 270px) 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 14px clamp(18px, 5vw, 68px);
  background: rgba(9, 78, 105, 0.96);
  border-bottom: 1px solid rgba(181, 163, 90, 0.22);
  backdrop-filter: blur(16px);
}

.site-header[data-scrolled] {
  box-shadow: 0 10px 28px rgba(29, 40, 48, 0.18);
}

.brand {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(181, 163, 90, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 12px 28px rgba(29, 40, 48, 0.12);
}

.brand img {
  width: 215px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(26px, 4.2vw, 58px);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.nav a,
.header-cta,
.button {
  text-decoration: none;
}

.nav a {
  color: rgba(255, 250, 241, 0.9);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--cream);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(9, 78, 105, 0.18);
}

.header-cta {
  background: var(--cream);
  color: var(--teal);
  border-color: rgba(181, 163, 90, 0.42);
  box-shadow: 0 14px 34px rgba(29, 40, 48, 0.2);
}

.button.secondary {
  border-color: rgba(9, 78, 105, 0.22);
  color: var(--teal);
}

.button.light {
  background: var(--white);
  color: var(--teal);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.78fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  min-height: 560px;
  padding: clamp(28px, 3.5vw, 46px) clamp(20px, 7vw, 96px) clamp(26px, 3vw, 42px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(116deg, rgba(255, 250, 241, 0.96) 0%, rgba(248, 244, 238, 0.9) 48%, rgba(139, 178, 127, 0.24) 100%),
    linear-gradient(180deg, rgba(9, 78, 105, 0.09), transparent);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -260px;
  width: min(48vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(181, 163, 90, 0.32);
  transform: rotate(12deg);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--teal);
  font-family: "Mollie Glaston", Georgia, serif;
  font-size: clamp(2.9rem, 5.1vw, 5.25rem);
  line-height: 0.94;
  font-weight: 400;
}

h2 {
  margin-bottom: 14px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 400;
}

h3 {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  color: rgba(29, 40, 48, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  padding: clamp(20px, 2.8vw, 30px);
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(181, 163, 90, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto 18px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(29, 40, 48, 0.1);
}

.highlight-grid {
  display: grid;
  gap: 12px;
}

.highlight-grid div,
.loan-card,
.steps article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.88);
}

.highlight-grid div {
  padding: 16px;
}

.highlight-grid strong,
.highlight-grid span {
  display: block;
}

.highlight-grid strong {
  color: var(--plum);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-grid span {
  margin-top: 6px;
  color: rgba(29, 40, 48, 0.72);
}

.intro-band {
  display: grid;
  place-items: center;
  padding: 18px clamp(20px, 7vw, 96px);
  background: var(--teal);
  color: var(--white);
  text-align: center;
}

.intro-band p {
  max-width: 960px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.16rem, 1.8vw, 1.65rem);
  line-height: 1.3;
}

.section {
  padding: clamp(40px, 5vw, 66px) clamp(20px, 7vw, 96px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.loan-section .section-heading {
  margin-inline: auto;
  text-align: center;
}

.section-heading.narrow {
  max-width: 660px;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.contact-copy p,
.quote-band p {
  color: rgba(29, 40, 48, 0.72);
}

.loan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.loan-section {
  background: var(--warm-panel);
}

.loan-card {
  min-height: 188px;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: 6px;
  object-fit: cover;
}

.loan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(29, 40, 48, 0.08);
}

.loan-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--plum);
  font-weight: 850;
}

.loan-card p,
.steps p {
  margin-bottom: 0;
  color: rgba(29, 40, 48, 0.72);
}

.process-section {
  background: #edf3e8;
  border-block: 1px solid rgba(9, 78, 105, 0.08);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  padding: 22px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 900;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 56px);
  align-items: center;
  padding: clamp(42px, 5vw, 68px) clamp(20px, 7vw, 96px);
  background: var(--cream);
}

.about-image {
  overflow: hidden;
  justify-self: center;
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(181, 163, 90, 0.24);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  max-width: 780px;
}

.quote-band {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  margin: clamp(16px, 2.5vw, 30px) clamp(20px, 7vw, 96px) 0;
  padding: clamp(22px, 3.4vw, 34px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
}

.quote-band img {
  width: 120px;
  opacity: 0.65;
}

.quote-band h2 {
  color: var(--white);
}

.quote-band .eyebrow,
.quote-band p {
  color: rgba(255, 255, 255, 0.78);
}

.quote-band p {
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  background: var(--paper);
}

.contact-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-card div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-card span,
.contact-card a {
  display: block;
}

.contact-card span {
  margin-bottom: 4px;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--teal);
  font-size: 1.15rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 34px clamp(20px, 7vw, 96px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
}

.site-footer img {
  width: 210px;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 8px;
  background: var(--white);
}

.site-footer p {
  max-width: 960px;
}

.site-footer .legal {
  font-size: 0.88rem;
}

.copyright {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: clamp(20px, 4vw, 36px);
    font-size: 0.92rem;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  h1 {
    max-width: 680px;
    font-size: clamp(2.65rem, 8vw, 4.35rem);
    line-height: 0.96;
  }

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

  .quote-band {
    grid-template-columns: 84px 1fr;
  }

  .quote-band .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .quote-band img {
    width: 78px;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(130px, 150px) minmax(0, 1fr);
    gap: 10px 12px;
    padding: 10px 16px 12px;
  }

  .brand {
    align-self: stretch;
    justify-self: start;
    padding: 6px 8px;
  }

  .brand img {
    width: 136px;
  }

  .header-cta {
    align-self: stretch;
    justify-self: stretch;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.76rem;
    text-align: center;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 17px;
    font-size: 0.82rem;
  }

  .hero {
    gap: 20px;
    padding: 22px 18px 30px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  h1 {
    max-width: 390px;
    font-size: clamp(1.9rem, 9.4vw, 2.72rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.75rem, 10vw, 2.7rem);
  }

  .hero-text {
    max-width: 390px;
    font-size: 0.98rem;
    line-height: 1.52;
    margin-bottom: 18px;
  }

  .hero-panel {
    padding: 16px;
  }

  .intro-band br,
  .section-heading br {
    display: none;
  }

  .section,
  .about-section {
    padding-block: 34px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .loan-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .loan-card {
    min-height: auto;
  }

  .steps article,
  .loan-card,
  .contact-card {
    padding: 18px;
  }

  .about-image {
    max-width: 300px;
  }

  .quote-band {
    grid-template-columns: 1fr;
    margin-inline: 16px;
  }

  .site-footer {
    padding-block: 28px;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 128px;
  }

  .nav {
    gap: 14px;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(1.82rem, 8.9vw, 2.42rem);
  }
}
