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

:root {
  --color-burgundy: #7c161a;
  --color-burgundy-light: #a22c30;
  --color-rose: #96695e;
  --color-peach: #cb8e7e;
  --color-warm: #f6efec;
  --color-cream: #fffaf7;
  --color-text: #26211f;
  --color-muted: #685e59;
  --color-border: #e8d8d2;
  --color-white: #ffffff;
  --shadow: 0 16px 40px rgba(79, 41, 34, .12);
  --max-width: 1180px;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-cream);
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-burgundy);
}

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(124, 22, 26, .12);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  width: 78px;
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav__links a {
  font-size: .92rem;
  font-weight: 700;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-burgundy);
}

.hero {
  min-height: 680px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 250, 247, .98) 0%, rgba(255, 250, 247, .9) 44%, rgba(255, 250, 247, .34) 76%, rgba(255, 250, 247, .16) 100%),
    var(--hero-bg, linear-gradient(135deg, #f6efec 0%, #d8b7ad 42%, #96695e 100%));
  background-position: center;
  background-size: cover;
  padding: 96px 0 72px;
}

.hero--home {
  --hero-bg: url("../images/backgrounds/home.png");
}

.hero__grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-burgundy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--color-rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5.7rem);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--color-text);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero__subtitle {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero__tagline {
  margin: 0;
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__panel,
.callout,
.form-card,
.card,
.agent-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}

.hero__panel {
  padding: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: 34px;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.btn--primary {
  color: var(--color-white);
  background: var(--color-burgundy);
}

.btn--primary:hover {
  color: var(--color-white);
  background: var(--color-burgundy-light);
}

.btn--secondary {
  color: var(--color-burgundy);
  background: var(--color-white);
  border-color: var(--color-burgundy);
}

.section {
  padding: 84px 0;
}

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

.section--rose {
  color: var(--color-white);
  background: var(--color-rose);
}

.section--rose .eyebrow,
.section--rose h2,
.section--rose p {
  color: var(--color-white);
}

.section__intro {
  max-width: 760px;
  margin-bottom: 38px;
  text-align: center;
}

.cards {
  display: grid;
  gap: 22px;
}

.cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards--agents {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  padding: 28px;
}

.card__number {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--color-peach);
  font-weight: 800;
  font-size: 1.45rem;
}

.card a {
  color: var(--color-burgundy);
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-burgundy);
}

.callout {
  padding: 32px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-list div {
  display: grid;
  gap: 3px;
}

.contact-list dt {
  color: var(--color-burgundy);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.link-grid a {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: var(--radius);
  color: var(--color-white);
  font-weight: 800;
  text-align: center;
}

.page-hero {
  padding: 150px 0 72px;
  background:
    linear-gradient(90deg, rgba(255, 250, 247, .98) 0%, rgba(255, 250, 247, .92) 46%, rgba(255, 250, 247, .38) 76%, rgba(255, 250, 247, .18) 100%),
    var(--page-bg, linear-gradient(135deg, #f6efec, #d1a79b));
  background-position: center;
  background-size: cover;
}

.page-hero--apply { --page-bg: url("../images/backgrounds/apply-now.png"); }
.page-hero--inquire { --page-bg: url("../images/backgrounds/inquire-now.png"); }
.page-hero--resources { --page-bg: url("../images/backgrounds/resources.png"); }
.page-hero--about { --page-bg: url("../images/backgrounds/about-us.png"); }
.page-hero--agents { --page-bg: url("../images/backgrounds/agents.png"); }
.page-hero--contact { --page-bg: url("../images/backgrounds/contact-us.png"); }
.page-hero--links { --page-bg: url("../images/backgrounds/links.png"); }
.page-hero--news { --page-bg: url("../images/backgrounds/news.png"); }
.page-hero--faq { --page-bg: url("../images/backgrounds/faq.png"); }
.page-hero--blog { --page-bg: url("../images/backgrounds/blog.png"); }
.page-hero--forms { --page-bg: url("../images/backgrounds/forms.png"); }

.page-hero h1 {
  font-size: clamp(2.7rem, 7vw, 4.8rem);
}

.page-hero p:last-child {
  max-width: 760px;
  color: var(--color-muted);
}

.prose {
  max-width: 900px;
}

.form-card {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.form-card label {
  display: grid;
  gap: 7px;
  font-size: .86rem;
  font-weight: 800;
  color: var(--color-burgundy);
  text-transform: uppercase;
  letter-spacing: .08em;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 11px 13px;
  color: var(--color-text);
  background: var(--color-white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(124, 22, 26, .16);
  border-color: var(--color-burgundy);
}

.agent-card {
  padding: 22px;
  text-align: center;
}

.agent-card__photo {
  width: 112px;
  height: 112px;
  display: block;
  margin: 0 auto 18px;
  border: 4px solid rgba(124, 22, 26, .16);
  border-radius: 50%;
  object-fit: cover;
  object-position: var(--photo-x, center) var(--photo-y, 24%);
  background: var(--color-warm);
  box-shadow: 0 10px 24px rgba(79, 41, 34, .14);
}

.agent-card__photo--romeo { --photo-y: 20%; }
.agent-card__photo--henry { --photo-y: 20%; }
.agent-card__photo--menardo { --photo-y: 16%; }
.agent-card__photo--francis { --photo-y: 18%; }
.agent-card__photo--ray { --photo-y: 34%; }

.agent-card h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.agent-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: .9rem;
}

.site-footer {
  padding: 58px 0 22px;
  color: rgba(255, 255, 255, .82);
  background: #2b1d1a;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer__title {
  margin-bottom: 12px;
  color: var(--color-white);
  font-size: 1rem;
}

.footer__logo {
  width: 112px;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18));
}

.footer__license {
  color: var(--color-peach);
  font-weight: 800;
}

.footer__list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--color-peach);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .85rem;
}

.footer__bottom p {
  margin: 0;
}

@media (max-width: 1020px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    inset: 86px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow);
  }

  .nav__links.is-open {
    display: flex;
  }

  .hero__grid,
  .split {
    grid-template-columns: 1fr;
  }

  .cards--three,
  .cards--agents,
  .footer__grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav {
    min-height: 74px;
  }

  .nav__links {
    inset: 74px 16px auto 16px;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 54px;
    background:
      linear-gradient(180deg, rgba(255, 250, 247, .98) 0%, rgba(255, 250, 247, .92) 58%, rgba(255, 250, 247, .62) 100%),
      var(--hero-bg, linear-gradient(135deg, #f6efec 0%, #d8b7ad 42%, #96695e 100%));
    background-position: center;
    background-size: cover;
  }

  .page-hero {
    background:
      linear-gradient(180deg, rgba(255, 250, 247, .98) 0%, rgba(255, 250, 247, .92) 58%, rgba(255, 250, 247, .62) 100%),
      var(--page-bg, linear-gradient(135deg, #f6efec, #d1a79b));
    background-position: center;
    background-size: cover;
  }

  .hero__panel,
  .callout,
  .form-card,
  .card {
    padding: 22px;
  }

  .section {
    padding: 58px 0;
  }

  .cards--three,
  .cards--agents,
  .footer__grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
  }
}
