/**
 * OFF MARKET — Premium editorial footer
 */

.om-footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-radius: 0;
  border-top: 1px solid rgba(245, 242, 235, 0.06);
  background: #11120d;
  color: rgba(245, 242, 235, 0.88);
  font-family: var(--om-font-body, Inter, Helvetica, Arial, sans-serif);
  box-sizing: border-box;
}

footer.om-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
  border-radius: 0;
  background: #11120d;
}

.om-footer a {
  color: rgba(245, 242, 235, 0.68);
  text-decoration: none;
  transition: color 220ms ease;
}

/* Beat global `.has-hover a:hover { color: var(--t-heading) }` (black) on dark footer */
.om-footer a:hover,
.om-footer a:focus-visible,
.om-footer a:hover:active,
.has-hover .om-footer a:hover,
.has-hover .om-footer a:hover:active,
.has-hover .om-footer a:focus-visible {
  color: rgba(255, 251, 244, 0.96) !important;
}

.om-footer__transition {
  pointer-events: none;
  height: 10vh;
  min-height: 64px;
  background: linear-gradient(
    180deg,
    rgba(17, 18, 13, 0) 0%,
    rgba(17, 18, 13, 0.72) 52%,
    #11120d 100%
  );
}

/* Never leave a transparent band over an ivory/cream page behind the footer */
body:has(.om-final-cta) .om-footer__transition,
body:has(.om-final-cta) footer .om-footer__transition {
  display: none;
  height: 0;
  min-height: 0;
  overflow: hidden;
}

.om-final-cta + .om-footer,
.om-final-cta + footer.om-footer,
.om-final-cta + footer,
.om-inner-page main:has(.om-final-cta) + .om-footer,
.om-inner-page main:has(.om-final-cta) + footer.om-footer,
.om-inner-page main:has(.om-final-cta) + footer,
/* GlobalSiteFooter is a direct body child, not adjacent to .om-final-cta */
body:has(.om-final-cta) > .om-footer,
body:has(.om-final-cta) > footer.om-footer,
body:has(.om-final-cta) > footer,
body:has(.om-footer) > .om-footer,
body:has(.om-footer) > footer.om-footer {
  z-index: 1;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  padding-inline: 0;
  border-radius: 0;
  background-color: #11120d;
}

.om-final-cta + .om-footer .om-footer__transition,
.om-final-cta + footer .om-footer__transition,
.om-inner-page main:has(.om-final-cta) + .om-footer .om-footer__transition,
.om-inner-page main:has(.om-final-cta) + footer .om-footer__transition,
body:has(.om-final-cta) > .om-footer .om-footer__transition,
body:has(.om-final-cta) > footer.om-footer .om-footer__transition,
body:has(.om-final-cta) > footer .om-footer__transition {
  display: none;
  height: 0;
  min-height: 0;
  overflow: hidden;
}

.om-footer__inner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.om-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-top: 2.15rem;
  padding-bottom: 1.75rem;
}

.om-footer__col {
  min-width: 0;
}

/* Tablet — 768px to 1199px */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .om-footer__inner {
    padding-inline: clamp(1.5rem, 4vw, 2.5rem);
  }

  .om-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      'brand cta'
      'nav immobilier';
    gap: clamp(2rem, 3.5vw, 2.75rem);
    padding-top: clamp(2.75rem, 5vw, 4rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  .om-footer__col--brand {
    grid-area: brand;
  }

  .om-footer__col--nav {
    grid-area: nav;
  }

  .om-footer__col--immobilier {
    grid-area: immobilier;
  }

  .om-footer__col--cta {
    grid-area: cta;
  }

  .om-footer__headline,
  .om-footer__support,
  .om-footer__newsletter,
  .om-footer__statement {
    max-width: 100%;
  }

  .om-footer__newsletter-form {
    flex-direction: column;
    gap: 0.65rem;
  }

  .om-footer__newsletter-btn {
    width: 100%;
  }
}

/* Desktop — 1200px+ */
@media (min-width: 1200px) {
  .om-footer__grid {
    grid-template-columns:
      minmax(0, 1.4fr)
      minmax(0, 0.75fr)
      minmax(0, 0.85fr)
      minmax(0, 1.05fr);
    grid-template-areas: 'brand nav immobilier cta';
    gap: clamp(2rem, 3vw, 3.5rem);
    padding-top: clamp(3.5rem, 6vw, 5.5rem);
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
  }

  .om-footer__col--brand {
    grid-area: brand;
  }

  .om-footer__col--nav {
    grid-area: nav;
  }

  .om-footer__col--immobilier {
    grid-area: immobilier;
  }

  .om-footer__col--cta {
    grid-area: cta;
  }
}

.om-footer__logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.35rem;
}

.om-footer__logo {
  display: block;
  width: auto;
  height: 34px;
  max-width: 148px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.15) saturate(0.9);
  opacity: 0.96;
}

.om-footer__headline {
  margin: 0;
  max-width: 22rem;
  font-family: var(--om-font-display, var(--font-main, Georgia, serif));
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 251, 244, 0.94);
}

.om-footer__support {
  margin: 0.85rem 0 0;
  max-width: 24rem;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 242, 235, 0.62);
}

.om-footer__label {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: rgba(245, 242, 235, 0.42);
}

.om-footer__links {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.om-footer__links li + li {
  margin-top: 0.35rem;
}

.om-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 450;
  color: rgba(245, 242, 235, 0.66);
}

.om-footer__links a:hover,
.om-footer__links a:focus-visible,
.om-footer__links a[aria-current='page'],
.has-hover .om-footer__links a:hover,
.has-hover .om-footer__links a:hover:active,
.has-hover .om-footer__links a:focus-visible {
  color: rgba(255, 251, 244, 0.95) !important;
}

.om-footer__newsletter {
  margin-top: 1.75rem;
  max-width: 24rem;
}

.om-footer__newsletter-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 251, 244, 0.9);
}

.om-footer__newsletter-text {
  margin: 0.45rem 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 242, 235, 0.55);
}

.om-footer__newsletter-form {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.om-footer__newsletter-field {
  flex: 1 1 auto;
  min-width: 0;
}

.om-footer__newsletter-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 235, 0.14);
  background: rgba(255, 251, 244, 0.03);
  color: rgba(255, 251, 244, 0.92);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
  transition:
    border-color 220ms ease,
    background 220ms ease;
}

.om-footer__newsletter-input::placeholder {
  color: rgba(245, 242, 235, 0.38);
}

.om-footer__newsletter-input:focus-visible {
  border-color: rgba(245, 242, 235, 0.28);
  background: rgba(255, 251, 244, 0.05);
}

.om-footer__newsletter-btn {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.92);
  color: #11120d;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.om-footer__newsletter-btn:hover {
  background: #fffbf4;
}

.om-footer__newsletter-btn:focus-visible {
  outline: 2px solid rgba(245, 242, 235, 0.45);
  outline-offset: 3px;
}

.om-footer__newsletter-success {
  margin: 0.9rem 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 242, 235, 0.72);
}

.om-footer__statement {
  margin: 0;
  max-width: 16rem;
  font-family: var(--om-font-display, var(--font-main, Georgia, serif));
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(255, 251, 244, 0.94);
}

.om-footer__cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 1.35rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.94);
  color: #11120d !important;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.om-footer__cta:hover {
  background: #fffbf4;
  color: #11120d !important;
  transform: translateY(-1px);
}

.om-footer__contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.om-footer__contact-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 235, 0.12);
  background: rgba(255, 251, 244, 0.03);
  color: rgba(245, 242, 235, 0.72) !important;
  font-size: 13px;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.om-footer__contact-btn:hover {
  border-color: rgba(245, 242, 235, 0.22);
  background: rgba(255, 251, 244, 0.06);
  color: rgba(255, 251, 244, 0.95) !important;
}

.om-footer__contact-btn span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.om-footer__contact-icon {
  flex: 0 0 auto;
}

.om-footer__address {
  margin-top: 1.5rem;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 242, 235, 0.52);
}

.om-footer__address p {
  margin: 0;
}

.om-footer__address p + p {
  margin-top: 0.2rem;
}

.om-footer__address-title {
  margin-bottom: 0.35rem !important;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(245, 242, 235, 0.42);
}

.om-footer__bottom {
  border-top: 1px solid rgba(245, 242, 235, 0.08);
}

.om-footer__bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.35rem 0 clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  .om-footer__bar {
    flex-direction: row;
    align-items: center;
  }
}

.om-footer__copyright {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(245, 242, 235, 0.48);
}

.om-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.om-footer__legal a {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(245, 242, 235, 0.48);
}

.om-footer__legal a:hover,
.om-footer__legal a:focus-visible,
.om-footer__legal a[aria-current='page'],
.has-hover .om-footer__legal a:hover,
.has-hover .om-footer__legal a:hover:active {
  color: rgba(255, 251, 244, 0.9) !important;
}

.om-footer__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1199.98px) {
  .om-final-cta + .om-footer,
  .om-final-cta + footer.om-footer,
  .om-final-cta + footer,
  .om-inner-page main:has(.om-final-cta) + .om-footer,
  .om-inner-page main:has(.om-final-cta) + footer.om-footer,
  .om-inner-page main:has(.om-final-cta) + footer,
  body:has(.om-final-cta) > .om-footer,
  body:has(.om-final-cta) > footer.om-footer,
  body:has(.om-final-cta) > footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767.98px) {
  .om-footer,
  footer.om-footer,
  .om-final-cta + .om-footer,
  .om-final-cta + footer.om-footer,
  .om-final-cta + footer,
  .om-inner-page main:has(.om-final-cta) + .om-footer,
  .om-inner-page main:has(.om-final-cta) + footer.om-footer,
  .om-inner-page main:has(.om-final-cta) + footer,
  body:has(.om-final-cta) > .om-footer,
  body:has(.om-final-cta) > footer.om-footer,
  body:has(.om-final-cta) > footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
  }

  .om-footer__inner {
    padding-inline: 1.15rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .om-footer__grid {
    grid-template-areas:
      'brand'
      'nav'
      'immobilier'
      'cta';
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .om-footer__col--brand {
    grid-area: brand;
  }

  .om-footer__col--nav {
    grid-area: nav;
  }

  .om-footer__col--immobilier {
    grid-area: immobilier;
  }

  .om-footer__col--cta {
    grid-area: cta;
  }

  .om-footer__logo-link {
    margin-bottom: 1rem;
  }

  .om-footer__logo {
    height: 28px;
    max-width: 118px;
  }

  .om-footer__headline {
    max-width: 100%;
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .om-footer__support {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.55;
  }

  .om-footer__statement {
    max-width: 100%;
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .om-footer__newsletter {
    margin-top: 1.35rem;
    max-width: 100%;
  }

  .om-footer__newsletter-form {
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
  }

  .om-footer__newsletter-btn {
    width: 100%;
  }

  .om-footer__links a {
    min-height: 40px;
    font-size: 15px;
  }

  .om-footer__cta {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .om-footer__contact-btn {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .om-footer__bar {
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.15rem;
    padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  }

  .om-footer__copyright {
    max-width: 100%;
  }

  .om-footer__legal {
    width: 100%;
    gap: 0.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .om-footer *,
  .om-footer *::before,
  .om-footer *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
