/* ==========================================================================
   Footer — Modern Green-Gradient Stylesheet
   For: Sekondi Takoradi Metropolitan Assembly site footer (footer.php)

   footer.php already links this file directly:
     <link rel="stylesheet" href="css/footer-modern.css" type="text/css" media="all">
   at the very top, so no further wiring is needed. Only the visible
   <footer> markup was restructured — the two popup panels (Download
   Forms / Complaints form) are untouched.
   ========================================================================== */

:root {
  --ft-green-1: #234d10;
  --ft-green-2: #4f8a2b;
  --ft-green-3: #74b246;
  --ft-red: #cd2122;
  --ft-line: rgba(255, 255, 255, 0.16);
  --ft-text: rgba(255, 255, 255, 0.92);
  --ft-muted: rgba(255, 255, 255, 0.68);
  --ft-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dp-footer {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--ft-green-1) 0%,
    var(--ft-green-2) 55%,
    var(--ft-green-3) 100%
  );
  color: var(--ft-text);
  padding: 36px 0 0;
  overflow: hidden;
  font-family: var(--ft-font);
}

/* soft radial glow for depth, quietly modern rather than flat */
.dp-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}

.dp-footer .container {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------
   Cards (Sponsor / Location / Get In Touch)
   -------------------------------------------------------------------- */

.dp-footer__card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--ft-line);
  border-radius: 14px;
  padding: 18px 20px;
  height: 100%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.dp-footer__card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

/* the theme's generic .mb-30 utility is too generous for this compact
   footer — tighten just within .dp-footer without touching it elsewhere */
.dp-footer .mb-30 {
  margin-bottom: 14px;
}

.dp-footer__title {
  display: inline-block;
  color: #fff;
  font-family: var(--ft-font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 3px solid var(--ft-red);
}

/* Sponsor logo — the frame stretches to fill whatever height the card
   ends up (matching its taller siblings), so any source image — big,
   small, wide, tall — scales up to fill that space while staying
   fully visible (object-fit: contain never crops it) */
.dp-footer__sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 110px;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  overflow: hidden;
}

.dp-footer__sponsor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.dp-footer__card:hover .dp-footer__sponsor img {
  transform: scale(1.06);
}

/* Location map */
.dp-footer__map {
  flex: 1;
  min-height: 110px;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  transition: opacity 0.3s ease;
}

.dp-footer__map iframe {
  width: 100%;
  height: 100%;
  min-height: 110px;
  border: 0;
  filter: saturate(0.9);
}

/* Get in touch */
.dp-footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ft-text);
}

.dp-footer__contact p:last-child {
  margin-bottom: 0;
}

.dp-footer__contact i {
  flex: 0 0 auto;
  margin-top: 3px;
  width: 18px;
  color: var(--ft-red);
  font-size: 14px;
}

/* --------------------------------------------------------------------
   Quick links row
   -------------------------------------------------------------------- */

.dp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--ft-line);
}

.dp-footer__links a {
  position: relative;
  color: var(--ft-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.dp-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ft-red);
  transition: width 0.25s ease;
}

.dp-footer__links a:hover {
  color: #fff;
  text-decoration: none;
}

.dp-footer__links a:hover::after {
  width: 100%;
}

/* --------------------------------------------------------------------
   Bottom bar — social icons + copyright
   -------------------------------------------------------------------- */

.dp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 18px;
}

.dp-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dp-footer__social-label {
  color: var(--ft-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
}

.dp-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.dp-footer__social a:hover {
  background: var(--ft-red);
  color: #fff;
  transform: translateY(-3px);
}

.dp-footer__copyright p {
  margin: 0;
  font-size: 13px;
  color: var(--ft-muted);
}

.dp-footer__copyright a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.dp-footer__copyright a:hover {
  color: #fff;
  border-color: var(--ft-red);
}

/* --------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */

@media (max-width: 767px) {
  .dp-footer {
    padding-top: 28px;
  }
  .dp-footer__card {
    margin-bottom: 4px;
  }
  .dp-footer__bottom {
    justify-content: center;
    text-align: center;
  }
}
