/* ============================================================
   DIGITAL DADI — Footer v2 (Orisa-pattern curtain reveal)
   ============================================================ */

/* ── Page-level: main sits on top of fixed footer ────────── */
main {
  position: relative;
  z-index: 2;
  background: var(--dadi-light);
  will-change: transform;
}

/* ── Fixed outer footer ───────────────────────────────────── */
.site-footer-v2 {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1;
  background: #0a0f1e url('/assets/images/bg-footer.webp') center center / cover no-repeat;
  overflow: hidden;
  font-family: var(--font-sans);
  /* No transform/scale here — only .footer-inner scales */
}

/* Dark overlay so text stays legible over the image */
.site-footer-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    rgba(10,15,30,0.78),
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(74,75,113,.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── Gradient blob layer (stays full-size, doesn't scale) ── */
.footer-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 60% at 12% 20%, rgba(74,75,113,.18) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 90% 80%, rgba(253,187,17,.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 55% 100%, rgba(74,75,113,.10) 0%, transparent 65%);
}

/* ── SVG canvas (also full-size, no scale) ───────────────── */
.footer-svg-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.fp-grid-group   { animation: fp-grid-breathe 9s ease-in-out infinite; }
.fp-shape-diamond-a { animation: fp-float-a 16s ease-in-out infinite; }
.fp-shape-diamond-b { animation: fp-float-b 21s ease-in-out infinite; }
.fp-shape-circle    { animation: fp-float-c 24s ease-in-out infinite; }
.fp-shape-hex       { animation: fp-float-d 18s ease-in-out infinite; }
.fp-corner-lines    { animation: fp-fade-pulse 12s ease-in-out infinite; }
@keyframes fp-grid-breathe { 0%,100%{opacity:1} 50%{opacity:.55} }
@keyframes fp-float-a { 0%,100%{transform:translateY(0) rotate(0)} 33%{transform:translateY(-14px) rotate(6deg)} 66%{transform:translateY(-6px) rotate(-4deg)} }
@keyframes fp-float-b { 0%,100%{transform:translateY(0) rotate(0)} 40%{transform:translateY(-20px) rotate(-5deg)} 70%{transform:translateY(-8px) rotate(3deg)} }
@keyframes fp-float-c { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-12px) scale(1.06)} }
@keyframes fp-float-d { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(10px) rotate(15deg)} }
@keyframes fp-fade-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── Inner content — THIS element scales on reveal ──────── */
.footer-inner {
  position: relative;
  z-index: 1;
  transform-origin: center bottom; /* set by GSAP */
}

/* ── Container (like Orisa's .container) ─────────────────── */
.footer-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* ── Top section: 4-column nav grid ─────────────────────── */
.footer-top { padding-top: 5rem; }

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Brand col */
.footer-brand-col .footer-logo-mark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: 1rem;
  text-decoration: none;
}
.fl-main {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #fff;
}
.fl-main em { font-style: normal; color: var(--dadi-yellow); }
.fl-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dadi-orange);
  margin-top: 0.2rem;
}
.footer-brand-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.65;
  max-width: 28ch;
  margin-bottom: 1.5rem;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-contact-item:hover { color: var(--dadi-yellow); }
.footer-contact-item svg   { opacity: 0.5; flex-shrink: 0; }

/* Nav cols */
.footer-nav-col h4 {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.25rem;
}
.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav-col ul li a:hover { color: #fff; }
.footer-cta-link { color: var(--dadi-yellow) !important; font-weight: 600; }
.footer-cta-link:hover { color: #ffc72c !important; }
.footer-see-all  { color: rgba(255,255,255,0.3) !important; font-size: 0.8rem !important; }
.footer-see-all:hover { color: rgba(255,255,255,0.65) !important; }

/* Social list */
.footer-social-list { gap: 0 !important; }
.footer-social-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  gap: 0;
}
.footer-social-list li:first-child a { border-top: 1px solid rgba(255,255,255,0.06); }
.footer-social-list li a:hover { color: #fff; }
.footer-social-arrow {
  width: 9px; height: 9px;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-social-list li a:hover .footer-social-arrow {
  opacity: 1;
  transform: translate(2px,-2px);
}

/* ── Bottom border section ───────────────────────────────── */
.footer-bottom-border {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-bottom-right { display: flex; align-items: center; gap: 2rem; }
.footer-hours { text-align: right; }
.footer-hours span {
  display: block;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 0.15rem;
}
.footer-hours strong { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.45); }

/* ── Big display headline (Orisa fz-160 equivalent) ─────── */
.footer-headline-wrap {
  overflow: hidden;
  padding: 0.5rem 0 1rem;
}
.footer-big-headline {
  font-size: clamp(3.5rem, 10.5vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.88;
  color: #fff;
  white-space: nowrap;
  padding: 0 4rem;
  /* Odd words outlined like Orisa's Studio® */
}
/* Every other word is outlined */
.footer-big-headline em {
  font-style: normal;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.22);
}

/* ── Service tag chips ───────────────────────────────────── */
.footer-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9999px;
  padding: 0.2rem 0.7rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.footer-tag:hover { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.18); }
.footer-tag svg   { opacity: 0.4; transition: opacity 0.2s, transform 0.2s; }
.footer-tag:hover svg { opacity: 0.8; transform: translate(1px,-1px); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1199px) {
  .footer-container { padding: 0 2.5rem; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-big-headline { padding: 0 2.5rem; }
}
@media (max-width: 767px) {
  .footer-container { padding: 0 1.25rem; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand-col { grid-column: auto; }
  .footer-big-headline { padding: 0 1.25rem; font-size: clamp(2.5rem, 12vw, 5rem); }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
  .footer-hours { text-align: left; }
}
