/* ================================================================
   WARTA LOKAL — assets/css/footer.css
   Styles: Footer Main, Footer Bottom, Copyright Bar
   ================================================================ */

/* ════════════════════════════════════════
   FOOTER WRAPPER
════════════════════════════════════════ */
#wl-footer {
  margin-top: auto;
}

/* ════════════════════════════════════════
   FOOTER MAIN
════════════════════════════════════════ */
.wl-footer__main {
  background: var(--clr-navy);
  padding: 52px 0 40px;
  border-top: 3px solid var(--clr-gold);
}

.wl-footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr 1.4fr;
  gap: var(--space-8);
}

/* ── Col 1: Brand ── */
.wl-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wl-footer__logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  letter-spacing: -0.5px;
  line-height: 1;
  display: inline-block;
}

.wl-footer__logo-image img,
.wl-footer__logo .custom-logo {
  max-height: 42px;
  width: auto;
  display: block;
}

.wl-footer__logo-text {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.wl-footer__logo span {
  color: var(--clr-gold);
}

.wl-footer__tagline {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  font-weight: var(--fw-medium);
  margin-top: 5px;
  margin-bottom: 14px;
}

.wl-footer__desc {
  font-size: 13px;
  color: #7a90a8;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 260px;
}

.wl-footer__social {
  display: flex;
  gap: var(--space-2);
}

.wl-footer__social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-navy-light);
  color: var(--clr-text-muted);
  font-size: 13px;
  transition: all var(--tr-fast);
}

.wl-footer__social a:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background: rgba(201, 168, 76, 0.08);
}

.wl-footer__col-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--clr-navy-light);
  position: relative;
}

.wl-footer__col-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--clr-gold);
  border-radius: 2px;
}

/* ── Footer Widget Lists ── */
.wl-footer-widget ul {
  display: flex;
  flex-direction: column;
  gap: 9px;

  margin: 0;
  padding: 0;
  list-style: none;
}

.wl-footer-widget li {
  margin: 0;
  padding: 0;
}

.wl-footer-widget li a {
  font-size: 13px;
  color: #7a90a8;

  transition:
    color var(--tr-fast),
    padding-left var(--tr-fast);

  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wl-footer-widget li a::before {
  content: "";

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: var(--clr-navy-light);

  flex-shrink: 0;

  transition: background var(--tr-fast);
}

.wl-footer-widget li a:hover {
  color: var(--clr-gold-light);

  padding-left: 4px;
}

.wl-footer-widget li a:hover::before {
  background: var(--clr-gold);
}

.wl-footer-widget .sub-menu {
  display: none;
}

.wl-footer-widget li::before {
  display: none !important;
}

/* ════════════════════════════════════════
   FOOTER CONTACT WIDGET
════════════════════════════════════════ */

.wl-contact-widget .wl-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.wl-contact-widget .wl-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  margin: 0;
  padding: 0;
}

.wl-contact-widget .wl-footer__contact li::before {
  display: none !important;
}

.wl-contact-widget .wl-footer__contact i {
  width: 18px;

  font-size: 14px;

  color: var(--clr-gold);

  text-align: center;

  margin-top: 3px;

  flex-shrink: 0;
}

.wl-contact-widget .wl-footer__contact span,
.wl-contact-widget .wl-footer__contact a {
  font-size: 13px;

  line-height: 1.65;

  color: #7a90a8;
}

.wl-contact-widget .wl-footer__contact a {
  display: inline;

  padding: 0;

  text-decoration: none;
}

.wl-contact-widget .wl-footer__contact a::before {
  display: none !important;
  content: none !important;
}

.wl-contact-widget .wl-footer__contact a:hover {
  color: var(--clr-gold-light);

  padding-left: 0;
}

/* ════════════════════════════════════════
   FOOTER CATEGORY WIDGET
════════════════════════════════════════ */

.wl-footer-widget.widget_categories ul {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 10px 20px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.wl-footer-widget.widget_categories li {
  margin: 0;
  padding: 0;
}

.wl-footer-widget.widget_categories li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;

  color: #7a90a8;

  transition:
    color var(--tr-fast),
    padding-left var(--tr-fast);
}

.wl-footer-widget.widget_categories li a::before {
  content: "";

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: var(--clr-navy-light);

  flex-shrink: 0;

  transition: background var(--tr-fast);
}

.wl-footer-widget.widget_categories li a:hover {
  color: var(--clr-gold-light);

  padding-left: 4px;
}

.wl-footer-widget.widget_categories li a:hover::before {
  background: var(--clr-gold);
}

/* ════════════════════════════════════════
   ADS: FLOATING ADS
════════════════════════════════════════ */
.wl-ads-slot {
  text-align: center;
  margin: 20px auto;
}

.wl-ads-slot a {
  display: inline-block;
}

.wl-ads-slot img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wl-floating-ad {
  position: fixed;

  top: 12%;

  width: 160px;

  z-index: 100;
}

.wl-floating-ad--left {
  left: calc((100vw - 1200px) / 2 - 160px);
}

.wl-floating-ad--right {
  right: calc((100vw - 1200px) / 2 - 160px);
}

.wl-floating-ad img {
  display: block;

  max-width: 100%;

  height: auto;
}

.wl-floating-ad__close {
  position: absolute;

  top: -10px;

  right: -10px;

  width: 26px;

  height: 26px;

  border: 0;

  border-radius: 50%;

  cursor: pointer;

  font-size: 16px;

  line-height: 1;

  background: #fff;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);

  z-index: 2;
}

.wl-floating-ad__close:hover {
  transform: scale(1.05);
}

@media (max-width: 1400px) {
  .wl-floating-ad {
    display: none;
  }
}

/* ======================================
   PARALLAX HEADER ADS
====================================== */

.wl-header-parallax-link {
  display: block;
}

.wl-header-parallax-desktop {
  display: block;
}

.wl-header-parallax-mobile {
  display: none;
}

.wl-header-parallax-desktop .wl-header-parallax-container {

    height: 300px;

    background-position: center top;

    background-repeat: no-repeat;

    background-size: contain;

    background-attachment: fixed;
}

@media (max-width: 768px) {
  .wl-header-parallax-desktop {
    display: none;
  }

  .wl-header-parallax-mobile {
    display: block;
  }

  .wl-header-parallax-mobile .wl-header-parallax-container {
    width: 100%;
    height: 280px;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    background-attachment: fixed;
  }
}

/* ════════════════════════════════════════
   FOOTER BOTTOM (copyright bar)
════════════════════════════════════════ */
.wl-footer__bottom {
  background: #081422;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wl-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.wl-footer__copyright {
  font-size: 12px;
  color: #4a6070;
}

.wl-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.wl-footer__bottom-links a {
  font-size: 12px;
  color: #4a6070;
  transition: color var(--tr-fast);
}

.wl-footer__bottom-links a:hover {
  color: var(--clr-text-muted);
}

.wl-footer__bottom-divider {
  width: 1px;
  height: 12px;
  background: #1e3248;
}

/* ════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════ */

.wl-back-to-top {
  position: fixed;

  right: 20px;
  bottom: 20px;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;

  border-radius: 50%;

  cursor: pointer;

  background: var(--clr-gold);

  color: var(--clr-navy);

  font-size: 16px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

  opacity: 0;

  visibility: hidden;

  transform: translateY(12px);

  transition: all 0.25s ease;

  z-index: 999;
}

.wl-back-to-top.is-visible {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.wl-back-to-top:hover {
  transform: translateY(-3px);

  background: var(--clr-gold-light);
}

.wl-back-to-top:active {
  transform: scale(0.95);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .wl-footer__grid {
    grid-template-columns: 1.5fr 1fr 1.4fr;
    gap: var(--space-6);
  }

  .wl-footer__col:last-child {
    grid-column: 1 / -1;
  }

  .wl-footer__contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-5);
  }
}

@media (max-width: 768px) {
  .wl-footer__main {
    padding: 40px 0 32px;
  }

  .wl-footer__bottom-links {
    gap: 8px 14px;
  }

  .wl-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .wl-footer__brand {
    grid-column: 1 / -1;
  }

  .wl-footer__desc {
    max-width: 100%;
  }

  .wl-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

@media (max-width: 480px) {
  .wl-footer__grid {
    grid-template-columns: 1fr;
  }

  .wl-footer__cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wl-footer__contact {
    flex-direction: column;
  }
}
