/* ── WildGaze cinematic footer (Ocha-style) ── */

.wg-footer {
  --wg-footer-overlay: rgba(0, 0, 0, 0.78);
  --wg-footer-overlay-deep: rgba(0, 0, 0, 0.92);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0;
  border-top: none;
}

/* Background scene */
.wg-footer__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #0c0a08;
  background-image: url('../images/NEW-FOOTER.jpg');
  /* Full width of photo — avoids cover “teeth close-up” crop; slight top crop if footer is tall */
  background-size: 100% auto;
  background-position: center 22%;
  background-repeat: no-repeat;
  image-rendering: auto;
}

@media (min-width: 900px) {
  .wg-footer__scene {
    background-size: cover;
    background-position: center 32%;
    /* Gentle de-zoom: modest bleed, not the extreme -55% that hid the image */
    inset: -22%;
  }
}

@media (min-width: 768px) {
  .wg-footer__scene {
    background-image: image-set(
      url('../images/NEW-FOOTER.jpg') 1x,
      url('../images/NEW-FOOTER.jpg') 2x
    );
  }
}

.wg-footer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1);
  /* SAFARI-EARTH: filter → photo-treatment.css */
  z-index: 0;
}

/* Smooth black overlay – image stays visible underneath */
.wg-footer__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.36) 100%);
}

.wg-footer__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 42%);
}

/* Film grain + vignette */
.wg-footer__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.1;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wg-footer__grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.28) 100%);
}

/* Decorative acacia silhouettes */
.wg-footer__acacia {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: clamp(7rem, 14vw, 11rem);
  height: auto;
  opacity: 0.14;
  color: rgba(255, 255, 255, 0.35);
  filter: none;
}

.wg-footer__acacia--left { left: 2%; transform: scaleX(-1); }
.wg-footer__acacia--right { right: 2%; }

/* Safari trail dots */
.wg-footer__trail {
  position: absolute;
  left: 50%;
  bottom: 18%;
  z-index: 2;
  width: min(520px, 70vw);
  height: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 10px,
    rgba(184, 148, 26, 0.35) 10px,
    rgba(184, 148, 26, 0.35) 14px
  );
  opacity: 0.45;
}

.wg-footer__trail::before,
.wg-footer__trail::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wg-gold);
  transform: translateY(-50%);
}

.wg-footer__trail::before { left: 0; }
.wg-footer__trail::after { right: 0; }

/* Content shell */
.wg-footer__inner {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 9vw, 5.5rem) 0 clamp(2rem, 4vw, 2.75rem);
}

.wg-footer__rule {
  height: 1px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184, 148, 26, 0.55) 18%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(184, 148, 26, 0.55) 82%,
    transparent 100%
  );
}

.wg-footer__grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

@media (min-width: 900px) {
  .wg-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto minmax(220px, 1.15fr);
    align-items: start;
    gap: clamp(1.25rem, 2.2vw, 2rem);
  }
}

.wg-footer__col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wg-gold-lt);
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.wg-footer__col h4 a {
  color: inherit;
  text-decoration: none;
}

.wg-footer__col h4 a:hover {
  color: #fff;
}

.wg-footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wg-footer__col li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  animation: wg-footer-link-in 0.5s var(--wg-ease) both;
  animation-delay: calc(var(--fi, 0) * 0.05s);
}

.wg-footer__col li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--wg-gold);
  box-shadow: 0 0 0 0 rgba(232, 197, 71, 0.45);
  animation: wg-footer-dot-pulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--fi, 0) * 0.15s);
}

.wg-footer__col li:nth-child(1) { --fi: 0; }
.wg-footer__col li:nth-child(2) { --fi: 1; }
.wg-footer__col li:nth-child(3) { --fi: 2; }
.wg-footer__col li:nth-child(4) { --fi: 3; }
.wg-footer__col li:nth-child(5) { --fi: 4; }
.wg-footer__col li:nth-child(6) { --fi: 5; }
.wg-footer__col li:nth-child(7) { --fi: 6; }

.wg-footer__col a {
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  transition: color 0.25s ease, transform 0.25s ease;
}

.wg-footer__col a:hover {
  color: #fff;
  transform: translateX(3px);
}

@keyframes wg-footer-link-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Dashed vertical divider */
.wg-footer__divider {
  display: none;
}

@media (min-width: 900px) {
  .wg-footer__divider {
    display: block;
    width: 1px;
    align-self: stretch;
    min-height: 100%;
    margin-inline: 0.35rem;
    background: repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55) 0,
      rgba(255, 255, 255, 0.55) 6px,
      transparent 6px,
      transparent 12px
    );
    opacity: 0.55;
  }
}

/* Brand block */
.wg-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wg-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.wg-footer__logo img {
  width: auto;
  height: 56px;
  object-fit: contain;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.wg-footer__logo-word {
  font-family: var(--wg-font-sans);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
}

.wg-footer__logo-word .wg-logo-w {
  color: #ffffff;
}

.wg-footer__logo-word .wg-logo-g {
  color: var(--wg-gold-lt);
}

.wg-footer__logo-word .wg-logo-s {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
}

.wg-footer__location {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.15rem;
}

.wg-footer__phone {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wg-footer__phone a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.wg-footer__phone a:hover { color: var(--wg-gold-lt); }

.wg-footer__email {
  font-size: 0.82rem;
}

.wg-footer__email a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}

.wg-footer__email a:hover { color: #fff; }

/* Bottom bar */
.wg-footer__bottom {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
}

/* WhatsApp FAB */
.wg-footer__wa {
  position: fixed;
  left: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem 0.72rem 0.85rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--wg-ease);
}

.wg-footer__wa svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.wg-footer__wa:hover {
  transform: translateY(-3px);
}

/* Back to top */
.wg-footer__top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  width: 2.65rem;
  height: 2.65rem;
  border: none;
  border-radius: 50%;
  background: var(--wg-gold);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--wg-ease), background 0.2s;
}

.wg-footer__top svg {
  width: 1rem;
  height: 1rem;
}

.wg-footer__top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wg-footer__top:hover { background: var(--wg-gold-lt); }

/* Mobile – compact link columns (Explore removed site-wide) */
@media (max-width: 899px) {
  .wg-footer__inner {
    padding-top: clamp(2rem, 6vw, 2.75rem);
    padding-bottom: clamp(1.25rem, 4vw, 1.75rem);
  }

  .wg-footer__rule {
    margin-bottom: 1.25rem;
  }

  .wg-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.85rem;
  }

  .wg-footer__col {
    border-bottom: none;
    padding-bottom: 0;
  }

  .wg-footer__col h4 {
    margin-bottom: 0.65rem;
    padding: 0;
    font-size: 0.65rem;
  }

  .wg-footer__col h4::after { display: none; }

  .wg-footer__col ul {
    max-height: none;
    overflow: visible;
    opacity: 1;
    padding: 0 0 0.5rem;
    gap: 0.4rem;
  }

  .wg-footer__col a {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .wg-footer__brand {
    grid-column: 1 / -1;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.22);
    margin-top: 0.15rem;
    text-align: center;
    align-items: center;
  }

  .wg-footer__logo { justify-content: center; }

  .wg-footer__social {
    margin-top: 0.75rem;
    justify-content: center;
  }

  .wg-footer__bottom {
    margin-top: 1rem;
    padding-top: 0.85rem;
    justify-content: center;
    text-align: center;
  }
}

@keyframes wg-footer-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 197, 71, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(232, 197, 71, 0); }
}

.wg-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: clamp(1rem, 2vw, 1.35rem) 0 0;
  padding-bottom: 0.25rem;
}

.wg-footer__social-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.wg-footer__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wg-footer__social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, color 0.25s;
}

.wg-footer__social-links a:hover {
  background: rgba(232, 197, 71, 0.15);
  border-color: rgba(232, 197, 71, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .wg-footer__col ul,
  .wg-footer__top,
  .wg-footer__wa { transition: none !important; }

  .wg-footer__col li,
  .wg-footer__col li::before { animation: none !important; }
}
