:root {
  --ink: #1a1f2e;
  --ink-soft: #3a4255;
  --paper: #f7f3ec;
  --paper-warm: #efe8da;
  --rule: #d4cdbd;
  --accent: #8b3a1f;
  --accent-soft: #c4795a;
  --slate: #2a3548;
  --slate-soft: #3a4760;
}
.site-footer {
  background: var(--slate);
  color: var(--paper);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 121, 90, 0.12), transparent 65%);
  pointer-events: none;
}

.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 40px 50px;
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 1;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-mark-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  width: auto;
  height: 56px;
  flex-shrink: 0;
  display: block;
}

.footer-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--paper);
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.footer-name .sub {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.55);
  margin-top: 6px;
}

.footer-slogan {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.2;
  color: var(--accent-soft);
  margin-top: 2px;
  font-variation-settings: "opsz" 72;
}

.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(247, 243, 236, 0.7);
  max-width: 320px;
  font-variation-settings: "opsz" 96;
}

/* REMAX brokerage block - REMAX brand-required fonts */
.footer-brokerage-block {
  padding-top: 22px;
  border-top: 1px solid rgba(247, 243, 236, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Required: Montserrat is the REMAX web typeface */
  font-family: 'Montserrat', 'Arial', sans-serif;
}

.footer-brokerage-label {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.footer-office-name {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--paper, #f7f3ec);
}

.footer-remax-logo {
  display: block;
  max-width: 300px;
  height: auto;
  /* Clear space requirement: at least half the height of the X in REMAX */
  padding: 4px 0;
  background: transparent;
}

.footer-office-address {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 243, 236, 0.78);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.footer-office-address a {
  color: rgba(247, 243, 236, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-office-address a:hover {
  color: var(--accent-soft);
}

/* Column headings */
.footer-col h4,
.footer-col .footer-heading {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 22px;
}

/* Link columns */
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(247, 243, 236, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  line-height: 1.4;
}

.footer-col ul a:hover {
  color: var(--accent-soft);
}

/* Contact column */
.footer-contact ul {
  gap: 18px;
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact .label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.45);
}

.footer-contact .value {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
}

.footer-contact a.value:hover {
  color: var(--accent-soft);
}

/* Bottom strip */
.footer-bottom {
  border-top: 1px solid rgba(247, 243, 236, 0.1);
  padding: 30px 40px;
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-compliance {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(247, 243, 236, 0.55);
  max-width: 980px;
}

.footer-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 243, 236, 0.08);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(247, 243, 236, 0.45);
  letter-spacing: 0.02em;
}

.footer-licence {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.55);
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-licence::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 50%;
}

@media (max-width: 1000px) and (min-width: 751px) {
  .footer-main, .footer-bottom-inner {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 50px 40px;
    padding-top: 60px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom { padding-left: 0; padding-right: 0; }
  .footer-tagline { max-width: none; }
}

@media (max-width: 750px) {
  .footer-main, .footer-bottom-inner {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 50px;
    padding-bottom: 36px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-bottom { padding: 26px 0; }
  .footer-meta-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-mark { height: 48px; }
  .footer-name { font-size: 17px; }
  .footer-tagline { font-size: 16px; }
  .footer-remax-logo { max-width: 260px; }
}
