/* ============================================================
   CINEMATIC FOOTER — Mama Tava Travel
   Ported from React/shadcn component to vanilla CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   FOOTER THEME VARIABLES (dark cinematic)
   ============================================================ */
.cinematic-footer-wrapper {
  --f-fg:       #FFFFFF;
  --f-bg:       #060d18;
  --f-primary:  #83C1C6;
  --f-teal:     #4D7B7B;
  --f-muted:    #7a90a8;
  --f-heart:    #F87171;

  /* Glass pill variables */
  --pill-bg-1:             rgba(255,255,255,0.05);
  --pill-bg-2:             rgba(255,255,255,0.01);
  --pill-shadow:           rgba(0,0,0,0.50);
  --pill-highlight:        rgba(255,255,255,0.10);
  --pill-inset-shadow:     rgba(0,0,0,0.65);
  --pill-border:           rgba(255,255,255,0.09);
  --pill-bg-1-hover:       rgba(255,255,255,0.11);
  --pill-bg-2-hover:       rgba(255,255,255,0.03);
  --pill-border-hover:     rgba(131,193,198,0.40);
  --pill-shadow-hover:     rgba(0,0,0,0.65);
  --pill-highlight-hover:  rgba(131,193,198,0.22);

  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   CURTAIN WRAPPER
   Standard-flow element that holds the fixed footer "underneath"
   the rest of the page. clip-path keeps rendering contained.
   ============================================================ */
.footer-curtain-wrapper {
  position: relative;
  height: 78vh;
  min-height: 560px;
  width: 100%;
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
}

/* ============================================================
   MAIN FOOTER — fixed, full-viewport, revealed as user scrolls
   ============================================================ */
.cinematic-footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%; height: 78vh;
  min-height: 560px;
  background: var(--f-bg);
  color: var(--f-fg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  z-index: 0;
}

/* ============================================================
   AURORA GLOW
   ============================================================ */
.footer-aurora-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 80vw; height: 60vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(131,193,198,0.18) 0%,
    rgba(77,123,123,0.14) 38%,
    transparent 68%
  );
  border-radius: 50%;
  filter: blur(50px);
  animation: f-breathe 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes f-breathe {
  0%   { transform: translate(-50%,-50%) scale(1);    opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(1.15); opacity: 1;   }
}

/* ============================================================
   GRID BACKGROUND
   ============================================================ */
.footer-bg-grid {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right,  rgba(131,193,198,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(131,193,198,0.05) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, transparent, black 28%, black 72%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 28%, black 72%, transparent);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   LOGO WATERMARK
   ============================================================ */
.footer-logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(380px, 52vw, 780px);
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.footer-logo-watermark img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.08;
}

/* ============================================================
   GIANT BACKGROUND TEXT
   ============================================================ */
.footer-giant-text {
  position: absolute;
  bottom: -4vh;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'Bangond', Georgia, serif;
  text-transform: uppercase;
  font-size: clamp(12vw, 19vw, 24vw);
  line-height: 0.85;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(131,193,198,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 60%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* ============================================================
   DIAGONAL MARQUEE STRIP
   ============================================================ */
.footer-marquee-strip {
  position: absolute;
  top: 44px;
  /* Bleed 8% beyond each side before rotation so edges are never naked */
  left: -8%;
  width: 116%;
  overflow: hidden;
  border-top: 1px solid rgba(131,193,198,0.18);
  border-bottom: 1px solid rgba(131,193,198,0.18);
  background: rgba(6,13,24,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 13px 0;
  z-index: 10;
  transform: rotate(-1.5deg);
  box-shadow: 0 12px 56px rgba(0,0,0,0.55);
}

.footer-marquee-track {
  display: inline-flex;
  width: max-content;
  animation: f-marquee 38s linear infinite;
}

.footer-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--f-muted);
  white-space: nowrap;
}

.footer-marquee-dot {
  color: var(--f-primary);
  opacity: 0.65;
  font-size: 8px;
}

@keyframes f-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.footer-main-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 68px clamp(20px, 4vw, 48px) 16px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

/* ── Footer stair heading ───────────────────────────────── */
.footer-stair-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 40px;
  width: 100%;
  text-align: center;
}

.fsh-top {
  display: block;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 6.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fsh-bot {
  display: block;
  font-family: 'Bangond', Georgia, serif;
  font-size: clamp(3.2rem, 7.8vw, 9.2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.9;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.50) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(131,193,198,0.18));
}

.footer-main-heading {
  font-family: 'Bangond', Georgia, serif;
  font-size: clamp(3.4rem, 8vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;              /* spans manage their own rhythm */
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.50) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(131,193,198,0.18));
}
/* TAN Kindred eyebrow line */
.footer-main-heading .mh-caps {
  font-size: 0.40em;          /* compact — noticeably smaller than "te llama" */
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin-bottom: 0.1em;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Bangond dominant line */
.footer-main-heading .mh-serif {
  line-height: 0.90;
  letter-spacing: -0.01em;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   LINKS AREA
   ============================================================ */
.footer-links-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.footer-primary-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-nav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
}

/* ============================================================
   GLASS PILL BASE
   ============================================================ */
.footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9999px;
  background: linear-gradient(145deg, var(--pill-bg-1) 0%, var(--pill-bg-2) 100%);
  box-shadow:
    0 10px 30px -10px var(--pill-shadow),
    inset 0 1px 1px var(--pill-highlight),
    inset 0 -1px 2px var(--pill-inset-shadow);
  border: 1px solid var(--pill-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgba(255,255,255,0.82);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  will-change: transform;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.footer-pill:hover,
.footer-pill:focus-visible {
  background: linear-gradient(145deg, var(--pill-bg-1-hover) 0%, var(--pill-bg-2-hover) 100%);
  border-color: var(--pill-border-hover);
  box-shadow:
    0 20px 40px -10px var(--pill-shadow-hover),
    inset 0 1px 1px var(--pill-highlight-hover);
  color: var(--f-fg);
  text-decoration: none;
}

/* Primary CTA */
.footer-pill--primary {
  padding: 18px 40px;
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--f-fg);
}

/* WhatsApp CTA */
.footer-pill--wa {
  padding: 18px 40px;
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--f-fg);
  border-color: rgba(131,193,198,0.22);
}
.footer-pill--wa:hover {
  color: var(--f-fg);
  border-color: rgba(131,193,198,0.45);
  box-shadow:
    0 20px 48px -10px rgba(131,193,198,0.18),
    inset 0 1px 1px rgba(131,193,198,0.15);
}

/* Small nav pills */
.footer-pill--sm {
  padding: 9px 20px;
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--f-muted);
}

/* Badge pill (non-interactive) */
.footer-pill--badge {
  padding: 9px 20px;
  gap: 5px;
  cursor: default;
}
.footer-pill--badge:hover {
  background: linear-gradient(145deg, var(--pill-bg-1) 0%, var(--pill-bg-2) 100%);
  border-color: var(--pill-border);
  box-shadow:
    0 10px 30px -10px var(--pill-shadow),
    inset 0 1px 1px var(--pill-highlight),
    inset 0 -1px 2px var(--pill-inset-shadow);
  color: rgba(255,255,255,0.82);
}

/* Back-to-top pill */
.footer-pill--top {
  width: 48px; height: 48px;
  padding: 0;
  flex-shrink: 0;
  background: none;
  border-color: rgba(255,255,255,0.10);
}
.footer-pill--top svg {
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.footer-pill--top:hover svg { transform: translateY(-5px); }

/* ============================================================
   BOTTOM BAR
   ============================================================ */
.footer-bottom-bar {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 10px clamp(20px, 4vw, 48px) 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(131,193,198,0.08);
}

.footer-copyright {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--f-muted);
  order: 2;
}

.footer-badge-text {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--f-muted);
}

.footer-badge-brand {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--f-fg);
  margin-left: 2px;
}

.footer-heartbeat {
  color: var(--f-heart);
  font-size: 13px;
  display: inline-block;
  animation: f-heartbeat 2s cubic-bezier(0.25,1,0.5,1) infinite;
}

@keyframes f-heartbeat {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(248,113,113,0.45)); }
  15%, 45% { transform: scale(1.35); filter: drop-shadow(0 0 12px rgba(248,113,113,0.90)); }
  30%      { transform: scale(1);   }
}

/* ============================================================
   ZK MARKETING CREDIT
   ============================================================ */
.footer-zk-credit {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(131,193,198,0.55);
  order: 1;
  margin-right: auto;
}
.footer-zk-credit a {
  color: var(--f-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.footer-zk-credit a:hover {
  color: var(--f-fg);
  opacity: 1;
}

/* ============================================================
   MAGNETIC BUTTON UTILITY
   ============================================================ */
.footer-pill.magnetic-btn {
  transform-style: preserve-3d;
  transform-origin: center center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .footer-curtain-wrapper,
  .cinematic-footer { height: 85vh; min-height: 520px; }
  .footer-giant-text {
    font-size: clamp(20vw, 32vw, 40vw);
    white-space: nowrap;
    bottom: -2vh;
  }
  .footer-main-heading {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
    margin-bottom: 28px;
  }
  .footer-pill--primary,
  .footer-pill--wa { padding: 15px 26px; }
  .footer-marquee-strip { top: 32px; left: -10%; width: 120%; }
  .footer-bottom-bar { justify-content: center; }
  .footer-copyright { order: 3; text-align: center; width: 100%; }
}

@media (max-width: 480px) {
  .footer-curtain-wrapper,
  .cinematic-footer { height: 92vh; min-height: 540px; }
  .footer-main-content { padding: 64px 18px 14px; }
  .footer-primary-ctas { flex-direction: column; align-items: stretch; }
  .footer-pill--primary,
  .footer-pill--wa { width: 100%; max-width: 300px; align-self: center; }
}
