/* =====================================================================
   AYODHYA TRAVEL — FOOTER REDESIGN (purple + gold temple theme)
   =====================================================================
   Loaded after design-system.css (see header.php) so these rules win.
   Self-contained: everything the new footer needs lives in this file,
   nothing here touches any other section's styling.
   ===================================================================== */

:root {
  --footerV2-bg-1:      #2E1B4D;
  --footerV2-bg-2:      #241440;
  --footerV2-bg-3:      #1B0F32;
  --footerV2-gold:      #E8C77A;
  --footerV2-gold-dark: #C9A24E;
  --footerV2-text:      #F2ECFB;
  --footerV2-muted:     #B9A9D6;
  --footerV2-line:      rgba(232, 199, 122, 0.22);
}

.footerV2 {
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary, inherit);
  isolation: isolate;
}

/* ---------------------------------------------------------------------
   Wave transition into the footer
   ------------------------------------------------------------------ */
.footerV2__wave {
  display: block;
  line-height: 0;
  position: relative;
  z-index: 2;
}

.footerV2__wave svg {
  display: block;
  width: 100%;
  height: 56px;
}

.footerV2__waveFill {
  fill: var(--footerV2-bg-1);
}

.footerV2__waveLine {
  stroke: var(--footerV2-gold);
  stroke-width: 3;
  opacity: 0.85;
}

/* ---------------------------------------------------------------------
   Main body
   ------------------------------------------------------------------ */
.footerV2__body {
  position: relative;
  background: linear-gradient(165deg, var(--footerV2-bg-1) 0%, var(--footerV2-bg-2) 55%, var(--footerV2-bg-3) 100%);
  padding-top: 56px;
  margin-top: -2px; /* seam the wave to the body with no hairline gap */
}

.footerV2__body::before,
.footerV2__body::after {
  content: "";
  position: absolute;
  top: -40px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 199, 122, 0.10) 0%, rgba(232, 199, 122, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.footerV2__body::before { left: -140px; }
.footerV2__body::after  { right: -140px; top: 120px; }

.footerV2__flourish {
  position: absolute;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}

.footerV2__flourish--left  { left: -30px; top: 10px; width: 220px; height: 220px; }
.footerV2__flourish--right { right: -30px; bottom: 60px; width: 260px; height: 260px; }

.footerV2__body > .container {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------
   Grid — brand column + three link columns
   ------------------------------------------------------------------ */
.footerV2__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 40px;
  padding-bottom: 36px;
}

/* The real logo's wordmark and temple silhouette are navy — on the
   footer's dark purple they'd all but disappear, so it sits on its
   own light backdrop card instead of being recoloured. The logo file
   itself is untouched. */
.footerV2__logoWrap {
  display: inline-block;
  background: #FBF8F3;
  border-radius: var(--radius-md, 14px);
  padding: 12px 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footerV2__logoWrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.footerV2__logo {
  height: 52px;
  width: auto;
  display: block;
}

.footerV2__tagline {
  color: var(--footerV2-muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 20px;
}

.footerV2__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footerV2__badges img {
  height: 46px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease;
}

.footerV2__badges img:hover {
  transform: translateY(-3px) scale(1.03);
}

.footerV2__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--footerV2-gold);
  font-family: var(--font-display, inherit);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.footerV2__heading svg {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
}

.footerV2__heading::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 6px;
  background: linear-gradient(90deg, var(--footerV2-line), transparent);
}

.footerV2__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footerV2__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--footerV2-text);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, padding-left 0.25s ease;
  position: relative;
}

.footerV2__links a svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: var(--footerV2-gold);
  transition: transform 0.3s ease;
}

.footerV2__links a:hover {
  color: var(--footerV2-gold);
  padding-left: 4px;
}

.footerV2__links a:hover svg {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------------
   Contact column
   ------------------------------------------------------------------ */
.footerV2__contactList {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footerV2__contactList li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--footerV2-text);
  font-size: 14px;
  line-height: 1.55;
}

.footerV2__contactList svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--footerV2-gold);
}

.footerV2__contactList a {
  color: var(--footerV2-text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footerV2__contactList a:hover {
  color: var(--footerV2-gold);
}

.footerV2__socialLabel {
  display: block;
  color: var(--footerV2-gold);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 12px;
}

.footerV2__socialIcons {
  display: flex;
  gap: 12px;
}

.footerV2__socialIcons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--footerV2-line);
  color: var(--footerV2-text);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.footerV2__socialIcons svg {
  width: 17px;
  height: 17px;
}

.footerV2__socialIcons a:hover {
  transform: translateY(-4px) scale(1.08);
  background: var(--footerV2-gold);
  color: #241440;
  box-shadow: 0 10px 22px rgba(232, 199, 122, 0.35);
}

/* ---------------------------------------------------------------------
   Scenic strip — real Ayodhya temple-skyline photo behind the trust
   strip + bottom bar, with a purple gradient layered on top so the
   text and icons stay legible (same treatment as the mockup).
   ------------------------------------------------------------------ */
.footerV2__scenicWrap {
  position: relative;
  background-image:
    linear-gradient(180deg,
      var(--footerV2-bg-2) 0%,
      rgba(36, 20, 64, 0.55) 30%,
      rgba(27, 15, 50, 0.38) 60%,
      rgba(18, 10, 34, 0.74) 100%),
    url('/images/footer_ayodhya_skyline.jpg');
  background-size: cover, cover;
  background-position: center top, center bottom;
  background-repeat: no-repeat, no-repeat;
}

/* ---------------------------------------------------------------------
   Trust strip
   ------------------------------------------------------------------ */
.footerV2__trustWrap {
  border-top: 1px solid var(--footerV2-line);
  position: relative;
  z-index: 1;
}

.footerV2__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 26px 0;
}

.footerV2__stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footerV2__stat svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: var(--footerV2-gold);
  transition: transform 0.4s ease;
}

.footerV2__stat:hover svg {
  transform: translateY(-3px) rotate(-4deg);
}

.footerV2__stat strong {
  display: block;
  color: var(--footerV2-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.footerV2__stat span {
  display: block;
  color: var(--footerV2-muted);
  font-size: 12.5px;
}

.footerV2__stat.-highlight strong {
  color: var(--footerV2-gold);
}

.footerV2__enquireBtn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F3D996, var(--footerV2-gold-dark));
  color: #2A1748;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(232, 199, 122, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.6s ease;
  background-size: 160% 160%;
  background-position: 0% 0%;
}

.footerV2__enquireBtn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s ease;
}

.footerV2__enquireBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(232, 199, 122, 0.4);
  background-position: 100% 100%;
}

.footerV2__enquireBtn:hover svg {
  transform: translateX(3px) translateY(-2px);
}

.footerV2__enquireBtn:active {
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------------
   Bottom bar
   ------------------------------------------------------------------ */
.footerV2__bottom {
  background: rgba(14, 8, 26, 0.55);
  border-top: 1px solid var(--footerV2-line);
  position: relative;
  z-index: 1;
}

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

.footerV2__bottomRow p {
  margin: 0;
  color: var(--footerV2-muted);
  font-size: 13.5px;
}

.footerV2__madeWith {
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid var(--footerV2-line);
}

.footerV2__heart {
  display: inline-block;
  animation: footerV2-heartbeat 1.6s ease-in-out infinite;
}

@keyframes footerV2-heartbeat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.18); }
  40%      { transform: scale(1); }
  55%      { transform: scale(1.12); }
}

.footerV2__payments {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footerV2__payments img {
  height: 22px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footerV2__payments img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------
   Scroll-reveal starting state.
   Deliberately NOT wired to the theme's existing data-anim/ScrollMagic
   system (js/main.js) — that system only flips its "animated" class on
   scroll events and did not reliably fire for the footer in testing,
   which left the whole section stuck at opacity:0. Instead the footer
   ships its own tiny IntersectionObserver (see footer.php) that is:
     1. Safe by default — these elements are fully visible until JS
        adds .js-reveal-ready to the footer; if that script never runs
        (blocked, errors, old browser), nothing here is ever hidden.
     2. Self-contained — no dependency on ScrollMagic/main.js timing.
   ------------------------------------------------------------------ */
.footerV2.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.footerV2.js-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footerV2 [data-reveal-delay="1"] { transition-delay: 0.08s; }
.footerV2 [data-reveal-delay="2"] { transition-delay: 0.16s; }
.footerV2 [data-reveal-delay="3"] { transition-delay: 0.24s; }

/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1199px) {
  .footerV2__grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 36px;
  }
  .footerV2__brand { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
  .footerV2__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footerV2__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .footerV2__wave svg { height: 40px; }
  .footerV2__body { padding-top: 36px; }
  .footerV2__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 28px;
  }
  .footerV2__tagline { max-width: none; }
  .footerV2__trust {
    padding: 22px 0;
    gap: 18px;
  }
  .footerV2__enquireBtn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .footerV2__stat { width: calc(50% - 9px); }
  .footerV2__bottomRow {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
  .footerV2__madeWith {
    display: block;
    margin: 4px 0 0;
    padding: 0;
    border: none;
  }
}

@media (max-width: 420px) {
  .footerV2__stat { width: 100%; }
}

/* Respect a visitor's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .footerV2 [data-reveal],
  .footerV2__badges img,
  .footerV2__links a,
  .footerV2__links a svg,
  .footerV2__socialIcons a,
  .footerV2__stat svg,
  .footerV2__enquireBtn,
  .footerV2__enquireBtn svg,
  .footerV2__heart,
  .footerV2__payments img {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
