/* ================================
   WDB FOOTER - FRONTEND CSS
   ================================ */

/* MASTER WRAPPER — reset theme styles */
.wdb-footer-master {
  position: relative !important;
  z-index: 100 !important;
  clear: both !important;
  width: 100% !important;
  float: none !important;
  margin: -1px 0 0 0 !important;
  padding: 0 !important;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.wdb-footer-master *, .wdb-footer-master *::before, .wdb-footer-master *::after {
  box-sizing: border-box;
}

/* CTA SECTION */
.wdb-cta-section {
  position: relative; padding: 120px 40px 100px;
  text-align: center; overflow: clip; background: #0a1210;
}
.wdb-cta-glow { position: absolute; pointer-events: none; }
.wdb-cta-glow-top { inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 10%, rgba(34,197,94,0.14) 0%, rgba(34,197,94,0.04) 40%, transparent 70%); }
.wdb-cta-glow-bottom { inset: 0; background: radial-gradient(ellipse 40% 50% at 50% 95%, rgba(34,197,94,0.08) 0%, transparent 60%); }
.wdb-cta-dots {
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 0px); background-size: 24px 24px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent 100%);
}
.wdb-cta-dots-lr {
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.3) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.3) 70%, transparent 100%);
}
.wdb-cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.wdb-cta-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 20px;
  border: 1px solid rgba(34,197,94,0.15); background: rgba(34,197,94,0.05);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; color: #22c55e; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 28px;
}
.wdb-cta-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px;
  background: linear-gradient(165deg, #e2e8f0 30%, rgba(34,197,94,0.7) 100%); background-size: 100% 122%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.wdb-cta-title em { font-style: italic; }
.wdb-cta-desc { font-size: 17px; color: rgba(255,255,255,0.5); line-height: 1.75; margin-bottom: 40px; }
/* CTA Hero Button */
@keyframes wdbShine{0%{left:-100%}45%,100%{left:250%}}
@keyframes wdbArrow{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
.wdb-cta-hero{
  display:inline-flex;align-items:center;gap:14px;
  padding:20px 48px;border-radius:16px;
  background-color:#25D366;
  background-image:linear-gradient(135deg,#2edc6f 0%,#25D366 60%,#1fbb57 100%);
  color:#fff;text-decoration:none;
  border:1px solid rgba(255,255,255,.15);
  position:relative;overflow:hidden;
  box-shadow:0 6px 30px rgba(37,211,102,.4),inset 0 1px 0 rgba(255,255,255,.25);
  transition:all .2s ease;
}
.wdb-cta-hero:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 50px rgba(37,211,102,.65),inset 0 1px 0 rgba(255,255,255,.3);
  color:#fff;text-decoration:none;
}
.wdb-cta-arrow{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);
  flex-shrink:0;position:relative;z-index:1;
  transition:background .18s ease;
}
.wdb-cta-hero:hover .wdb-cta-arrow{background:rgba(255,255,255,.25)}
.wdb-cta-arrow svg{animation:wdbArrow 1.8s ease-in-out infinite}
.wdb-cta-services { display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;color:rgba(255,255,255,.4);margin-top:16px; }
.wdb-cta-sub { font-size: 13px; color: rgba(255,255,255,0.25); margin-top: 16px; font-style: italic; }

/* Gradient separator */
.wdb-gradient-sep {
  height: 1px;
  background: linear-gradient(to right, transparent 15%, rgba(34,197,94,0.25) 40%, rgba(34,197,94,0.25) 60%, transparent 85%);
  border: none !important;
  outline: none !important;
  box-shadow: 0 0 6px rgba(34,197,94,0.08);
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 3;
}
.wdb-gradient-sep::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  right: 30%;
  height: 3px;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center, rgba(34,197,94,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.wdb-cta-section { margin-bottom: 0 !important; }
.wdb-footer-wrap { margin-top: -2px !important; }

/* FOOTER WRAPPER */
.wdb-footer-wrap { position: relative; background: #0d1a14; }

/* GIANT TEXT */
.wdb-footer-giant { position: relative; padding: 20px 0 0; }
.wdb-footer-giant-text {
  font-size: clamp(70px, 14vw, 200px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.05em; line-height: 0.75; white-space: nowrap; text-align: center;
  user-select: none; color: rgba(255,255,255,0.04); position: relative; z-index: 1; margin-bottom: -20px;
}
.wdb-footer-giant-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 80% at 50% 60%, rgba(34,197,94,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ROW 1 — Logo + Nav + Socials */
.wdb-footer-row1 {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 60px; position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(13,26,20,0.95);
}
.wdb-footer-nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.wdb-footer-nav a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.3s; }
.wdb-footer-nav a:hover { color: #fff; }
.wdb-footer-nav a i { font-size: 12px; opacity: 0.5; margin-right: 2px; }
.wdb-footer-nav a:hover i { opacity: 1; }
.wdb-footer-right { display: flex; align-items: center; gap: 32px; justify-self: end; }
.wdb-footer-brand-block { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; }
.wdb-footer-logo-img { max-width: 160px; height: auto; opacity: 0.85; }
.wdb-footer-slogan { font-size: 11px; color: rgba(255,255,255,0.2); margin-top: 6px; font-style: italic; letter-spacing: 0.3px; display: block; text-align: center; }
.wdb-footer-brands { display: flex; align-items: center; gap: 32px; }
.wdb-footer-brand-link { opacity: 0.7; transition: opacity 0.3s; display: block; }
.wdb-footer-brand-link:hover { opacity: 1; }
.wdb-footer-brand-link img { height: 40px; width: auto; display: block; max-width: 200px; }

/* Socials */
.wdb-footer-socials { display: flex; align-items: center; gap: 20px; }
.wdb-footer-social { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.3s; }
.wdb-footer-social:hover { color: #22c55e; }
.wdb-footer-social svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* ROW 2 — Phones only */
.wdb-footer-row2 {
  display: flex; justify-content: center; align-items: center;
  padding: 16px 60px 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative; z-index: 2;
  background: rgba(13,26,20,0.95);
}

/* Phones */
.wdb-footer-phones { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; justify-content: center; }
.wdb-footer-phone-group { display: flex; flex-direction: column; gap: 2px; }
.wdb-footer-phone-group-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.06); align-self: center; }
.wdb-footer-phone {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.3s; white-space: nowrap;
}
.wdb-footer-phone:hover { color: #fff; }
.wdb-footer-phone .ph-icon {
  width: 12px; height: 12px; flex-shrink: 0;
  stroke: rgba(255,255,255,0.3); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.wdb-footer-phone .wh-icon { font-size: 13px; color: #25D366; }
.wdb-footer-phone:hover .wh-icon { color: #25D366; }
.wdb-footer-phone .phone-label { font-weight: 600; color: rgba(255,255,255,0.45); margin-right: 1px; }

/* Bottom bar — Sensei + Address + Legal */
.wdb-footer-bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 60px 16px; font-size: 11px; color: rgba(255,255,255,0.15); position: relative; z-index: 2;
  background: rgba(13,26,20,0.95);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.wdb-footer-copyright-block { display: flex; align-items: center; gap: 10px; }
.wdb-footer-sensei-logo { height: 22px; width: auto; opacity: 0.5; }
.wdb-footer-copyright { font-size: 11px; color: rgba(255,255,255,0.2); }
.wdb-footer-address {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,0.15);
}
.wdb-footer-address .pin-icon { width: 14px; height: 14px; stroke: rgba(34,197,94,0.4); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wdb-footer-legal { display: flex; gap: 20px; justify-self: end; }
.wdb-footer-legal a { font-size: 11px; color: rgba(255,255,255,0.2); text-decoration: none; transition: color 0.3s; }
.wdb-footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* RESPONSIVE — TABLET */
@media (max-width: 1024px) {
  .wdb-footer-row1 {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 30px;
    text-align: center;
    justify-items: center;
  }
  .wdb-footer-brand-block { align-items: center; }
  .wdb-footer-brands { gap: 24px; }
  .wdb-footer-right { justify-self: center; }
  .wdb-footer-nav { justify-content: center; flex-wrap: wrap; }

  .wdb-footer-row2 { padding: 20px 30px; }
  .wdb-footer-phones { gap: 16px; justify-content: center; flex-wrap: wrap; }
  .wdb-footer-bottom { grid-template-columns: 1fr; gap: 12px; justify-items: center; text-align: center; padding: 12px 30px 16px; }
  .wdb-footer-copyright-block { justify-content: center; }
  .wdb-footer-legal { justify-self: center; }
}

/* RESPONSIVE — MOBILE */
@media (max-width: 768px) {
  .wdb-cta-section { padding: 50px 20px 20px; }
  .wdb-cta-title { font-size: 28px; }
  .wdb-cta-desc { font-size: 15px; margin-bottom: 30px; }
  .wdb-cta-hero { padding: 14px 20px !important; gap: 10px !important; }
  .wdb-cta-hero svg[width="32"] { width: 24px !important; height: 24px !important; }
  .wdb-cta-arrow { width: 30px !important; height: 30px !important; }
  .wdb-cta-services { font-size: 11px; margin-top: 12px !important; }
  .wdb-cta-btn { padding: 14px 32px; font-size: 14px; }

  /* Giant text — smaller on mobile, force visible */
  .wdb-footer-giant { overflow: hidden; position: relative; }
  .wdb-footer-giant-text {
    font-size: 40px !important;
    letter-spacing: -0.03em;
    margin-bottom: -10px;
    white-space: nowrap;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Row 1 — stack vertically */
  .wdb-footer-row1 {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
    text-align: center;
    justify-items: center;
  }
  .wdb-footer-brand-block { align-items: center; }
  .wdb-footer-logo-img { max-width: 140px; }
  .wdb-footer-nav { flex-direction: column; gap: 14px; }
  .wdb-footer-nav a { font-size: 15px; }
  .wdb-footer-right { justify-self: center; }
  .wdb-footer-socials { gap: 24px; }
  .wdb-footer-social svg { width: 24px; height: 24px; }

  /* Row 2 — phones centered */
  .wdb-footer-row2 { padding: 24px 20px; }

  /* Phones — stack vertically, remove dividers */
  .wdb-footer-phones {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .wdb-footer-phone-group {
    align-items: center;
  }
  .wdb-footer-phone-group-divider { display: none; }
  .wdb-footer-phone { font-size: 14px; justify-content: center; }
  .wdb-footer-phone .phone-label { font-weight: 700; }

  /* Bottom bar — stack on mobile */
  .wdb-footer-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
    text-align: center;
    padding: 12px 20px 20px;
  }
  .wdb-footer-copyright-block {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .wdb-footer-sensei-logo { height: 24px; }
  .wdb-footer-legal { justify-self: center; gap: 16px; }
  .wdb-footer-address { font-size: 12px; text-align: center; flex-wrap: wrap; justify-content: center; gap: 4px; }
  .wdb-footer-address .pin-icon { width: 14px; height: 14px; margin: 0; }
  .wdb-footer-address .pin-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 2px;
  }
}

/* ================================
   ENTRANCE ANIMATIONS (CSS-based, no GSAP conflicts)
   ================================ */
.wdb-ft-hidden {
  opacity: 0;
  transform: translateY(30px);
}
.wdb-ft-hidden-scale {
  opacity: 0;
  transform: scale(0);
}
.wdb-ft-hidden-left {
  opacity: 0;
  transform: translateX(-30px);
}
.wdb-ft-visible {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
