/* ==========================================================================
   Disruptive Templates - Universal footer
   Depends on tokens from dt-design-system.css

   Ground is brand black (#181716). Green stays an accent, never body text.
   The 3D layer uses line patterns and blurred solids only, no colour ramps.
   ========================================================================== */

.dt-ft {
  position: relative;
  background: var(--dt-black);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--dt-font-body);
}

/* --------------------------------------------------------------------------
   3D background layer
   -------------------------------------------------------------------------- */
.dt-ft__bg {
  position: absolute; inset: 0; z-index: 0;
  perspective: 1100px; perspective-origin: 50% 38%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.dt-ft__grid {
  position: absolute; inset: -10%;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 72px);
  opacity: .45;
  transform: translate3d(calc(var(--mx, 0) * .12px), calc(var(--my, 0) * .12px), -260px) scale(1.12);
  transition: transform 600ms var(--dt-ease);
}

.dt-ft__glow {
  position: absolute; top: -180px; right: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  background: rgba(0, 153, 51, .11);
  filter: blur(120px);
  transform: translate3d(calc(var(--mx, 0) * .4px), calc(var(--my, 0) * .4px), -200px);
  transition: transform 700ms var(--dt-ease);
}

/* Abstract resume sheets floating in depth. */
.dt-ft__sheet {
  position: absolute; display: block;
  width: 188px; height: 250px; border-radius: 12px;
  background-color: rgba(255, 255, 255, .022);
  border: 1px solid rgba(255, 255, 255, .055);
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 26px,
    rgba(255,255,255,.05) 26px 28px,
    transparent 28px 40px
  );
  background-position: 22px 46px;
  background-size: calc(100% - 44px) auto;
  background-repeat: no-repeat;
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.9);
  transform:
    translate3d(
      calc(var(--mx, 0) * var(--d) * 1px),
      calc(var(--my, 0) * var(--d) * 1px),
      var(--z)
    )
    rotateX(calc(var(--my, 0) * .05deg))
    rotateY(calc(var(--mx, 0) * -.07deg))
    rotate(var(--rot));
  transition: transform 550ms var(--dt-ease);
  will-change: transform;
}
/* A green header band on each sheet, like a name line. */
.dt-ft__sheet::before {
  content: ''; position: absolute; left: 22px; top: 24px;
  width: 46%; height: 6px; border-radius: 3px;
  background-color: rgba(0, 153, 51, .3);
}

.dt-ft__sheet--1 { left: 4%;  top: 14%; --d: .10; --z: -140px; --rot: -9deg; }
.dt-ft__sheet--2 { left: 17%; top: 52%; --d: .18; --z: -80px;  --rot: 6deg; width: 150px; height: 200px; }
.dt-ft__sheet--3 { right: 9%; top: 10%; --d: .14; --z: -110px; --rot: 11deg; }
.dt-ft__sheet--4 { right: 22%; bottom: 6%; --d: .22; --z: -60px; --rot: -5deg; width: 164px; height: 218px; }
.dt-ft__sheet--5 { left: 46%; top: 62%; --d: .08; --z: -190px; --rot: 14deg; width: 132px; height: 176px; }

@media (max-width: 1023px) {
  .dt-ft__sheet--2, .dt-ft__sheet--4, .dt-ft__sheet--5 { display: none; }
  .dt-ft__sheet--1 { left: -6%; top: 6%; }
  .dt-ft__sheet--3 { right: -8%; top: 4%; }
}
@media (max-width: 620px) {
  .dt-ft__sheet { display: none; }
  .dt-ft__glow { width: 340px; height: 340px; top: -120px; right: -100px; }
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
.dt-ft__inner { position: relative; z-index: 1; padding-block: clamp(48px, 6vw, 88px) 0; }

.dt-ft a { color: rgba(255,255,255,.72); text-decoration: none; transition: color 160ms var(--dt-ease); }
.dt-ft a:hover { color: #fff; text-decoration: none; }

/* Top band */
.dt-ft__top {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 72px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.dt-ft__logo { display: inline-flex; align-items: center; gap: 13px; margin-bottom: 20px; line-height: 0; }
.dt-ft__logo img { display: block; width: auto; }
.dt-ft__logo img:first-child { height: 64px; width: 64px; filter: invert(1) brightness(2); }
.dt-ft .dt-ft__logo img.dt-ft__word { height: 13px; width: auto; max-width: 150px; opacity: .82; filter: invert(1) brightness(2); }

.dt-ft__pitch { max-width: 44ch; font-size: .9375rem; line-height: 1.7; color: rgba(255,255,255,.66); margin: 0; }

.dt-ft__facts { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 0; padding: 0; }
.dt-ft__facts li { display: flex; flex-direction: column; gap: 1px; margin: 0; }
.dt-ft__facts strong { font-family: var(--dt-font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; color: #fff; }
.dt-ft__facts span { font-size: .8125rem; color: rgba(255,255,255,.5); }

.dt-ft__cta-h { font-family: var(--dt-font-display); font-size: 1.375rem; font-weight: 600; color: #fff; margin: 0 0 6px; letter-spacing: -.01em; }
.dt-ft__cta-s { font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.6); margin: 0 0 18px; max-width: 42ch; }

.dt-ft__search { display: flex; gap: 10px; margin-bottom: 14px; }
.dt-ft__search .dt-field {
  flex: 1 1 auto; min-height: 46px;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
.dt-ft__search .dt-field::placeholder { color: rgba(255,255,255,.42); }
.dt-ft__search .dt-field:focus { border-color: var(--dt-accent); outline-color: rgba(0,153,51,.4); }
.dt-ft .dt-ft__search .dt-btn--primary { background: #fff; color: var(--dt-black); border-color: #fff; min-height: 46px; }
.dt-ft .dt-ft__search .dt-btn--primary:hover { background: var(--dt-accent); border-color: var(--dt-accent); color: #fff; }

.dt-ft__browse { display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; font-weight: 600; color: var(--dt-accent) !important; }
.dt-ft__browse svg { transition: transform 220ms var(--dt-ease); }
.dt-ft__browse:hover { color: #fff !important; }
.dt-ft__browse:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Link columns
   -------------------------------------------------------------------------- */
.dt-ft__cols {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
  padding-block: clamp(32px, 4vw, 56px);
}

.dt-ft__col { min-width: 0; }
.dt-ft__col-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: .8125rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; margin: 0 0 16px; list-style: none; cursor: default;
}
.dt-ft__col-h::-webkit-details-marker { display: none; }
.dt-ft__chev { display: none; color: rgba(255,255,255,.5); transition: transform 240ms var(--dt-ease); }

.dt-ft__col-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dt-ft__col-body li { margin: 0; }
.dt-ft__col-body a { font-size: .875rem; line-height: 1.45; display: inline-block; position: relative; }
.dt-ft__col-body a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--dt-accent); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--dt-ease);
}
.dt-ft__col-body a:hover::after { transform: scaleX(1); }
.dt-ft__more a { color: var(--dt-accent) !important; font-weight: 700; }
.dt-ft__more a:hover { color: #fff !important; }

/* --------------------------------------------------------------------------
   Trust row + bottom bar
   -------------------------------------------------------------------------- */
.dt-ft__trust {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  list-style: none; margin: 0; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.dt-ft__trust li {
  margin: 0; font-size: .8125rem; color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 8px;
}
.dt-ft__trust li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--dt-accent); flex: 0 0 auto;
}

.dt-ft__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 22px 26px;
}
.dt-ft__legal, .dt-ft__licence { margin: 0; font-size: .8125rem; color: rgba(255,255,255,.45); }

/* --------------------------------------------------------------------------
   Responsive: columns collapse into click-to-expand sections
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .dt-ft__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dt-ft__top { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .dt-ft__cols { grid-template-columns: 1fr; gap: 0; padding-block: 8px 24px; }

  .dt-ft__col { border-bottom: 1px solid rgba(255,255,255,.12); }
  .dt-ft__col-h {
    cursor: pointer; margin: 0; padding: 16px 2px; min-height: 54px;
    -webkit-user-select: none; user-select: none;
  }
  .dt-ft__chev { display: inline-flex; }
  .dt-ft__col[open] .dt-ft__chev { transform: rotate(180deg); color: var(--dt-accent); }
  .dt-ft__col[open] .dt-ft__col-h { color: var(--dt-accent); }
  .dt-ft__col-body { padding: 2px 2px 18px; }
  .dt-ft__col-body ul { gap: 2px; }
  .dt-ft__col-body a { padding: 9px 0; min-height: 40px; display: flex; align-items: center; }

  .dt-ft__facts { gap: 20px; }
  .dt-ft__search { flex-direction: column; }
  .dt-ft__bar { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .dt-ft__sheet, .dt-ft__grid, .dt-ft__glow, .dt-ft__chev,
  .dt-ft__col-body a::after, .dt-ft__browse svg {
    transition: none !important;
  }
}

/* Hide Astra's own footer if any fragment survives. */
.site-footer, .ast-small-footer, .site-primary-footer-wrap, .site-below-footer-wrap { display: none !important; }

/* Scrim over the 3D layer so depth is felt without fighting the copy. */
.dt-ft__bg::after {
  content: ''; position: absolute; inset: 0;
  background-color: rgba(24, 23, 22, .62);
}

/* Brand block: the mark carries the identity, the wordmark supports it. */
.dt-ft__logo img:first-child { transition: transform 320ms cubic-bezier(.22,1.15,.36,1); }
.dt-ft__logo:hover img:first-child { transform: scale(1.06) rotate(-3deg); }
@media (max-width: 760px) {
  .dt-ft__logo { gap: 11px; margin-bottom: 16px; }
  .dt-ft__logo img:first-child { height: 52px; width: 52px; }
  .dt-ft .dt-ft__logo img.dt-ft__word { height: 12px; }
  .dt-ft__pitch { font-size: .875rem; line-height: 1.65; }
}

/* Elementor's .elementor img { height:auto } sits at (0,1,1) and will beat a
   single class, so both footer logo images are pinned above it. */
.dt-ft .dt-ft__logo img:first-child { height: 64px; width: 64px; }
@media (max-width: 760px) { .dt-ft .dt-ft__logo img:first-child { height: 52px; width: 52px; } }

/* Policy row above the copyright bar. */
.dt-ft__policies {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: clamp(22px, 2.6vw, 32px); padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.dt-ft .dt-ft__policies a {
  font-size: .8125rem; color: rgba(255, 255, 255, .62); text-decoration: none;
  transition: color 180ms var(--dt-ease);
}
.dt-ft .dt-ft__policies a:hover { color: #00e050; text-decoration: none; }
@media (max-width: 640px) {
  .dt-ft__policies { gap: 10px 18px; }
  .dt-ft .dt-ft__policies a { font-size: .78125rem; }
}

/* Social profiles. Brand green on the dark ground, filling in on hover so the
   row reads as ours rather than as seven borrowed logos. */
.dt-so {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.dt-so li { margin: 0; }
.dt-ft a.dt-so__a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; text-decoration: none;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .68);
  transition: background 200ms var(--dt-ease), border-color 200ms var(--dt-ease), color 200ms var(--dt-ease), transform 200ms var(--dt-ease);
}
.dt-so__a svg { width: 19px; height: 19px; display: block; }
.dt-ft a.dt-so__a:hover,
.dt-ft a.dt-so__a:focus-visible {
  background: rgba(0, 224, 80, .14);
  border-color: #00e050;
  color: #00e050;
  transform: translateY(-3px);
  text-decoration: none;
}
@media (max-width: 640px) {
  .dt-so { gap: 8px; margin-top: 18px; }
  .dt-ft a.dt-so__a { width: 38px; height: 38px; border-radius: 11px; }
  .dt-so__a svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .dt-ft a.dt-so__a { transition: none !important; }
}