/* ============================================================
   MUSTANG TOWERS — PREMIUM FOOTER
   Loaded by the plugin on every page. Every selector targets
   Homey's own footer markup — nothing is changed in the theme.

   Turn it off in Tools > MT Hero Fields, or with:
     add_filter( 'mth_footer_css', '__return_false' );

   TYPE
     Headings : "Lexend Deca", 600
     Body     : Poppins, 400 / 16 / 28
   ============================================================ */


/* ============================================================
   THE BAND
   ============================================================ */
.footer-wrap.footer{
  --f-ink:     #06141A;
  --f-deep:    #0C2731;
  --f-crimson: #E4194F;
  --f-surf:    #2FA3A5;
  --f-sand:    #E9DFCD;
  --f-white:   #FFFFFF;
  --f-mute:    rgba(255,255,255,.68);
  --f-line:    rgba(255,255,255,.12);
  --f-ease:    cubic-bezier(.22,.72,.24,1);

  position: relative;
  overflow: hidden;
  background:
    radial-gradient(62% 70% at 12% 0%, rgba(47,163,165,.20) 0%, rgba(47,163,165,0) 60%),
    radial-gradient(55% 65% at 92% 100%, rgba(228,25,79,.16) 0%, rgba(228,25,79,0) 60%),
    linear-gradient(165deg, var(--f-deep) 0%, var(--f-ink) 62%) !important;
  color: var(--f-mute);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 28px;
}

/* the theme draws its own borders here, which is where the doubled
   lines come from — clear every one of them first */
.footer-wrap.footer,
.footer-top-wrap,
.footer-bottom-wrap,
.footer-wrap.footer .container,
.footer-wrap.footer .row{
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* one 1px hairline across the top, drifting slowly */
.footer-wrap.footer::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 4;
  background: linear-gradient(90deg,
    var(--f-crimson) 0%,
    var(--f-sand) 22%,
    var(--f-surf) 44%,
    var(--f-sand) 66%,
    var(--f-crimson) 88%,
    var(--f-sand) 100%);
  background-size: 300% 100%;
  animation: mtf-drift 9s linear infinite;
}
@keyframes mtf-drift{
  from{ background-position: 0% 50%; }
  to  { background-position: 300% 50%; }
}

/* a whisper of texture so the gradients never band on a wide
   screen. Done with gradients rather than an SVG, because the
   Customiser rejects any CSS containing angle brackets. */
.footer-wrap.footer::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.014) 0px, rgba(255,255,255,.014) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 3px),
    repeating-linear-gradient(25deg, rgba(0,0,0,.02) 0px, rgba(0,0,0,.02) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 4px);
}

.footer-wrap.footer .container{ position: relative; z-index: 3; }

.footer-top-wrap{
  padding-top: clamp(56px, 7vw, 96px) !important;
  padding-bottom: clamp(36px, 4vw, 56px) !important;
}

/* ============================================================
   COMMON TEXT
   ============================================================ */
.footer-wrap.footer p,
.footer-wrap.footer li,
.footer-wrap.footer .widget-body{
  color: var(--f-mute);
  font-size: 15px;
  line-height: 27px;
}

.footer-wrap.footer a{
  color: var(--f-mute);
  text-decoration: none;
  transition: color .3s var(--f-ease);
}
.footer-wrap.footer a:hover,
.footer-wrap.footer a:focus{ color: var(--f-white); }

/* ---- widget headings ---- */
.footer-wrap.footer .widget-top{ margin-bottom: 22px !important; }
.footer-wrap.footer .widget-title{
  position: relative;
  margin: 0 0 18px !important;
  padding-bottom: 14px;
  font-family: "Lexend Deca", sans-serif !important;
  font-weight: 600 !important;
  font-size: 17px !important;
  line-height: 24px !important;
  letter-spacing: .01em;
  color: var(--f-white) !important;
}
.footer-wrap.footer .widget-title::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--f-crimson), var(--f-surf));
  transition: width .5s var(--f-ease);
}
.footer-wrap.footer .widget:hover .widget-title::after{ width: 60px; }

.footer-wrap.footer .widget{ margin-bottom: 34px; }

/* ============================================================
   ABOUT COLUMN
   ============================================================ */
.footer-wrap.footer .widget-about img{
  display: block;
  max-width: 200px;
  width: auto;
  height: auto;
  margin: 0 0 20px;
  opacity: 1;
  visibility: visible;
}

/* If your footer logo is the DARK one it will be hard to read here.
   Best fix: put Mustang-Towers-White.webp in the widget.
   Quick fix without changing the image: uncomment the next rule,
   which paints any logo solid white. Do not use it if the logo is
   already white — it would turn it black. */
/*
.footer-wrap.footer .widget-about img{
  filter: brightness(0) invert(1);
}
*/
.footer-wrap.footer .widget-about p{ max-width: 34ch; }

/* ============================================================
   FEATURED CONDOS
   ============================================================ */
.footer-wrap.footer .widget-latest-properties .item-list-view{
  margin-bottom: 12px;
}
.footer-wrap.footer .property-item{
  display: flex !important;
  align-items: center;
  gap: 14px;
  margin: 0 !important;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid transparent;
  transition: background-color .4s var(--f-ease), border-color .4s var(--f-ease), transform .4s var(--f-ease);
}
.footer-wrap.footer .property-item:hover{
  background: rgba(255,255,255,.07);
  border-color: var(--f-line);
  transform: translateX(4px);
}

/* Homey builds these as a media object — flatten the table cells */
.footer-wrap.footer .property-item .media-left,
.footer-wrap.footer .property-item .media-body{
  display: block !important;
  padding: 0 !important;
  width: auto !important;
  vertical-align: middle !important;
}
.footer-wrap.footer .property-item .media-left{ flex: 0 0 auto; }
.footer-wrap.footer .property-item .media-body{ flex: 1 1 auto; min-width: 0; }

.footer-wrap.footer .item-media-thumb{
  position: relative;
  width: 84px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
}
.footer-wrap.footer .item-media-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--f-ease);
}
.footer-wrap.footer .property-item:hover .item-media-thumb img{ transform: scale(1.08); }

/* the Featured flag, shrunk to a dot-sized pill */
.footer-wrap.footer .item-media-thumb .label-wrap{
  position: absolute;
  top: 5px; left: 5px;
  z-index: 2;
}
.footer-wrap.footer .item-media-thumb .label-featured{
  display: inline-block;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  background: var(--f-crimson) !important;
  color: #fff !important;
  font-family: Poppins, sans-serif !important;
  font-size: 8px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-wrap.footer .property-item .item-title-head{ margin: 0 !important; }
.footer-wrap.footer .property-item .title{
  margin: 0 0 7px !important;
  font-family: "Lexend Deca", sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 20px !important;
}
.footer-wrap.footer .property-item .title a{ color: var(--f-white) !important; }
.footer-wrap.footer .property-item:hover .title a{ color: var(--f-sand) !important; }

.footer-wrap.footer .item-amenities{
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.footer-wrap.footer .item-amenities li{
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 12px !important;
  line-height: 18px !important;
  color: var(--f-mute);
}
.footer-wrap.footer .item-amenities li:empty{ display: none !important; }
.footer-wrap.footer .item-amenities .homey-icon{
  font-size: 13px;
  color: var(--f-sand);
  opacity: .9;
}

/* ============================================================
   QUICK LINKS
   ============================================================ */
.footer-wrap.footer .aj-footer-menu{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.footer-wrap.footer .aj-footer-menu li{
  margin: 0 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
}
.footer-wrap.footer .aj-footer-menu li a{
  position: relative;
  display: block;
  padding: 8px 0 8px 20px;
  font-size: 15px;
  line-height: 24px;
  transition: color .3s var(--f-ease), transform .35s var(--f-ease), padding-left .35s var(--f-ease);
}
/* a small chevron that slides in */
.footer-wrap.footer .aj-footer-menu li a::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px; height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid var(--f-crimson);
  border-bottom: 1.5px solid var(--f-crimson);
  transform: rotate(-45deg);
  opacity: .55;
  transition: opacity .3s var(--f-ease), transform .35s var(--f-ease);
}
.footer-wrap.footer .aj-footer-menu li a:hover{
  color: var(--f-white);
  padding-left: 26px;
}
.footer-wrap.footer .aj-footer-menu li a:hover::before{
  opacity: 1;
  transform: rotate(-45deg) translate(2px, 2px);
}

/* ============================================================
   CONTACT
   ============================================================ */
.footer-wrap.footer .widget-contact ul{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.footer-wrap.footer .widget-contact li{
  display: flex !important;
  align-items: flex-start;
  gap: 13px;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 14.5px !important;
  line-height: 24px !important;
}
.footer-wrap.footer .widget-contact li .homey-icon{
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin: 0 !important;
  border-radius: 50%;
  border: 1px solid var(--f-line);
  background: rgba(255,255,255,.05);
  color: var(--f-sand);
  font-size: 15px;
  transition: background-color .4s var(--f-ease), color .4s var(--f-ease), transform .4s var(--f-ease);
}
.footer-wrap.footer .widget-contact li:hover .homey-icon{
  background: var(--f-sand);
  color: var(--f-ink);
  transform: translateY(-2px);
}
.footer-wrap.footer .widget-contact li a{ word-break: break-word; }

/* ============================================================
   BOTTOM BAR
   ============================================================ */
.footer-bottom-wrap{
  position: relative;
  z-index: 3;
  padding: 24px 0 !important;
  background: rgba(0,0,0,.22) !important;
}
/* a single hairline above the copyright, fading out at both ends */
.footer-bottom-wrap::before{
  content: "";
  position: absolute;
  top: 0;
  left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    var(--f-line) 18%,
    var(--f-line) 82%,
    rgba(255,255,255,0) 100%);
}
.footer-wrap.footer .footer-copyright{
  text-align: center;
  font-size: 13px !important;
  line-height: 22px !important;
  letter-spacing: .01em;
  color: rgba(255,255,255,.5) !important;
}
.footer-wrap.footer .footer-copyright a{ color: var(--f-sand); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px){
  .footer-wrap.footer .widget{ margin-bottom: 40px; }
  .footer-wrap.footer .widget-about p{ max-width: none; }
}
@media (max-width: 767px){
  .footer-top-wrap{ padding-top: 48px !important; }
  .footer-wrap.footer .item-media-thumb{ width: 72px; height: 56px; }
  .footer-wrap.footer .widget-title{ font-size: 16px !important; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  .footer-wrap.footer *,
  .footer-wrap.footer *::before,
  .footer-wrap.footer *::after{
    transition-duration: .001ms !important;
    animation: none !important;
  }
}
