/* ============================================================
   Premium wave footer - commercialfishingflies.com
   Layered wave divider in its own reserved band above the footer.
   ============================================================ */

#footer.footer-container {
  position: relative;
  margin-top: 130px;
  padding: 70px 0 0;
  color: #e6f0fa;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(30, 120, 200, .25) 0%, rgba(10, 37, 64, 0) 60%),
    linear-gradient(180deg, #0a2540 0%, #0d3b66 45%, #08203a 100%);
  border-top: 0;
  overflow: visible;
}

/* ---- Layered wave divider: sits in the reserved band, never overlapped */
#footer.footer-container::before {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 130px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%230a2540' d='M0,72 C180,114 360,28 540,72 C720,114 900,28 1080,72 C1260,114 1440,28 1440,72 L1440,120 L0,120 Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%231c5c8f' d='M0,58 C160,100 320,16 480,58 C640,100 800,16 960,58 C1120,100 1280,16 1440,58 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 130px, 100% 130px;
  pointer-events: none;
}

/* ---- Animated accent bar at the very bottom ------------------------ */
#footer.footer-container::after {
  content: "";
  position: absolute;
  z-index: 9999;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #ffd166, #4cc9f0, #ff6b35);
  background-size: 200% 100%;
  animation: cff-wave-shift 6s linear infinite;
}
@keyframes cff-wave-shift {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

#footer.footer-container .container { position: relative; z-index: 3; }
#footer.footer-container .inner { padding: 0 15px; }

#footer.footer-container h3,
#footer.footer-container h4,
#footer.footer-container .title_block,
#footer.footer-container .page-subheading,
#footer.footer-container .footer-top h4 {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
#footer.footer-container h3::after,
#footer.footer-container h4::after,
#footer.footer-container .title_block::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #ffd166);
  border-radius: 2px;
}
#footer.footer-container a {
  color: #b9d4ee;
  text-decoration: none;
  transition: color .2s ease;
}
#footer.footer-container a:hover { color: #ffd166; }
#footer.footer-container .block { margin-bottom: 24px; }
#footer.footer-container .block ul li {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}
#footer.footer-container .block ul li:last-child { border-bottom: 0; }
#footer.footer-container .footer-nav {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  margin-top: 24px;
}
#footer.footer-container .footer-nav,
#footer.footer-container #powered,
#footer.footer-container #footnav {
  color: #8faecc;
  font-size: 13px;
}
#footer.footer-container .cff-guides {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 24px;
  background: rgba(0,0,0,.18);
}
#footer.footer-container .cff-guides a { color: #9ec5ea; }
#footer.footer-container .cff-guides a:hover { color: #ffd166; }

@media (max-width: 767px) {
  #footer.footer-container {
    margin-top: 90px;
    padding: 50px 0 0;
  }
  #footer.footer-container::before {
    height: 90px;
    background-size: 100% 90px, 100% 90px;
  }
  #footer.footer-container .footer-bottom,
  #footer.footer-container .footer-center-right { width: 100%; }
}

/* ---- Footer contact rows: icon + text must share one baseline ---- */
#footer .contact-info .media {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px !important;
  overflow: visible;
}
#footer .contact-info .media:last-child {
  margin-bottom: 0 !important;
}
#footer .contact-info .media > .pull-left,
#footer .contact-info .media > .fa {
  float: none !important;
  flex: 0 0 auto;
  width: auto;
  margin: 0 !important;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
}
#footer .contact-info .media > .address {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  line-height: 1.45;
  word-break: break-word;
}
#footer .contact-info .media > .address > a,
#footer .contact-info .media > .address > bdo {
  display: inline;
}
#footer .contact-info .contact-customhtml {
  margin: 0 0 16px !important;
}
#footer .contact-info .contact-customhtml .title_block {
  margin-bottom: 8px !important;
}
#footer .contact-info .contact-customhtml p {
  margin: 0 0 0 0 !important;
}
@media (max-width: 480px) {
  #footer .contact-info .media {
    align-items: center;
    gap: 10px;
  }
  #footer .contact-info .media > .pull-left,
  #footer .contact-info .media > .fa {
    line-height: 1.4;
  }
}
