/* Site footer: clean, balanced, beautifully aligned footer with full skyline panorama background,
   crisp SVG icons, and unified green trust bar */
footer.fx {
  --fg: #168B3D;
  --fg-dark: #0f7132;
  --fo: #FF8500;
  --fi: #10243B;
  --fm: #334155;
  --fl: #e2e8f0;
  --fbg: #ffffff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 64px;
  padding: 0; /* app.css gives every footer 32px padding: that left a strip below the green bar */
  color: var(--fm);
  font-family: var(--font-body, Inter, system-ui, sans-serif);
  font-size: 14px;
  background-color: var(--fbg);
  border-top: 1px solid var(--fl);
}

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

.fx .wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Skyline strip: sits whole between the link columns and the green bar (its waterline meets the bar).
   Cropped band of footer-skyline.webp (2000x196); never shown behind text or below the bar. */
.fx-sky {
  position: relative;
  z-index: 0;
  pointer-events: none;
  aspect-ratio: 2000 / 196;
  min-height: 76px;
  margin-top: 10px;
  background: url(/assets/img/footer-skyline-band.webp) center bottom / max(100%, 760px) auto no-repeat;
  opacity: .78;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
}

.fx .fx-in {
  position: relative;
  z-index: 1;
  padding-top: 44px;
  padding-bottom: 22px;
}

/* Main 6-column grid */
.fx-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.6fr 1.2fr 1.2fr 1.05fr 1.05fr;
  gap: 32px;
  align-items: start;
}

/* Brand column */
.fx-brand {
  display: flex;
  flex-direction: column;
}

.fx-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fx-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.fx-logo span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.fx-logo b {
  font-family: var(--font-head, Poppins, sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--fi);
  letter-spacing: -0.03em;
}

.fx-logo b em {
  font-style: normal;
  color: var(--fo);
}

.fx-logo small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fi);
  white-space: nowrap;
}

.fx-logo small:before {
  content: "";
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--fo);
}

.fx-brand > p {
  margin: 0 0 16px;
  line-height: 1.6;
  color: #334155;
  font-size: 13.5px;
  font-weight: 500;
}

/* Social icons with crisp SVG centering & hover brand pop */
.fx-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.fx-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.fx-social a svg {
  display: block;
  transition: transform 0.2s ease;
}

.fx-social a:hover {
  transform: translateY(-2px);
}

.fx-social .s-ig:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(214, 36, 159, 0.45);
}

.fx-social .s-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(24, 119, 242, 0.45);
}

.fx-social .s-li:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(10, 102, 194, 0.45);
}

/* Contact info */
.fx-reach {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.fx-reach a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fi);
  transition: color 0.15s;
}

.fx-reach a i {
  color: var(--fg);
  font-size: 16px;
}

.fx-reach a:hover {
  color: var(--fg);
}

/* Navigation columns */
.fx-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.fx h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-head, Poppins, sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--fi);
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
  padding-bottom: 8px;
  width: 100%;
  border-bottom: 2px solid rgba(22,139,61, 0.15);
}

.fx h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
}

.fx h3 i {
  font-size: 18px;
  color: var(--fg);
  flex-shrink: 0;
}

/* Column links */
.fx-col > a:not(.fx-btn),
.fx-cities a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  line-height: 1.35;
  font-size: 13.5px;
  font-weight: 500;
  padding: 3px 0;
  transition: all 0.2s ease;
}

.fx-col > a:not(.fx-btn) i,
.fx-cities a i {
  flex: none;
  font-size: 16px;
  color: #64748b;
  transition: color 0.2s, transform 0.2s;
}

.fx-col > a:not(.fx-btn):hover,
.fx-cities a:hover {
  color: var(--fg);
  transform: translateX(3px);
}

.fx-col > a:not(.fx-btn):hover i,
.fx-cities a:hover i {
  color: var(--fg);
}

/* Cities 2-column grid */
.fx-cities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  width: 100%;
}

/* Buttons in columns */
.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--fg);
  color: var(--fg) !important;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(22,139,61, 0.1);
}

.fx-btn:hover {
  background: var(--fg);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(22,139,61, 0.25);
  transform: translateY(-1px);
}

.fx-btn-o {
  border-color: var(--fo);
  color: #e2701c !important;
  box-shadow: 0 2px 6px rgba(240, 138, 36, 0.12);
}

.fx-btn-o:hover {
  background: var(--fo);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(240, 138, 36, 0.3);
}

/* Green bottom bar: Trust items + Copyright */
.fx-bottom {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #093c24, #12633d 50%, #0a472a);
  color: #fff;
  padding: 16px 0 20px;
}

.fx-bottom .wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fx-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  gap: 12px;
}

.fx-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head, Poppins, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: #e0f8ea;
  white-space: nowrap;
}

.fx-trust i {
  font-size: 20px;
  color: #6ee7b7;
}

.fx-trust li:nth-child(2) i {
  color: #fbbf24;
}

.fx-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.fx-copy p {
  margin: 0;
}

.fx-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fx-legal-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.fx-legal-links a:hover {
  color: #fff;
}

.fx-legal-links .dot {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

/* Dark theme overrides */
html[data-theme="dark"] footer.fx {
  --fi: #eef3fa;
  --fm: #cbd5e1;
  --fl: rgba(255, 255, 255, 0.08);
  --fbg: #0b1424;
}

html[data-theme="dark"] .fx-sky {
  opacity: .5;
  filter: saturate(.85) brightness(.85);
}

html[data-theme="dark"] .fx-brand > p,
html[data-theme="dark"] .fx-col > a:not(.fx-btn),
html[data-theme="dark"] .fx-cities a {
  color: #cbd5e1;
}

html[data-theme="dark"] .fx-col > a:not(.fx-btn) i,
html[data-theme="dark"] .fx-cities a i {
  color: #8a99ae;
}

html[data-theme="dark"] .fx-social a,
html[data-theme="dark"] .fx-btn {
  background: #111d31;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
  .fx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
  }
  .fx-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fl);
  }
  .fx-brand > p {
    margin: 0;
    max-width: 460px;
  }
}

@media (max-width: 900px) {
  .fx-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .fx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .fx-citycol {
    grid-column: 1 / -1;
  }
  .fx-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 600px) {
  footer.fx {
    margin-top: 40px;
  }
  .fx .fx-in {
    padding-top: 32px;
    padding-bottom: 4px;
  }
  .fx-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .fx-cities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fx-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .fx-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* footer brand = the supplied logo image */
.fx-logo .fx-logoimg { display: block; width: auto; height: 60px; max-width: 100%; object-fit: contain; }
html[data-theme="dark"] .fx-logo .fx-logoimg { background: #fff; padding: 6px 10px; border-radius: 12px; box-sizing: content-box; height: 50px; }
