/* ==========================================================================
   Site footer (all frontend pages) — CTA card, columns, copyright bar
   Markup: resources/views/layouts/partials/footer.blade.php
   Design: "Webase — Services Section Redesign" canvas, Footer.dc.html
   Width:  Bootstrap .container
   ========================================================================== */

.wb-footer {
  --wb-footer-bg: #0E0720;
  --wb-footer-text: #C9CCE3;
  --wb-footer-faint: #A9ADCB;
  --wb-footer-accent: #ED194E;
  --wb-footer-eyebrow: #FF6B8B;
  --wb-footer-line: rgba(255, 255, 255, .12);

  position: relative;
  overflow: hidden;
  padding: 100px 0 0;
  background: var(--wb-footer-bg);
  color: #FFFFFF;
  font-family: 'Inter', system-ui, sans-serif;
}

/* room for the half of the CTA card that sits over the footer */
.wb-footer--has-cta {
  padding-top: calc(90px + 100px);
}

.wb-footer a {
  color: var(--wb-footer-text);
  text-decoration: none;
  transition: color .2s;
}

.wb-footer a:hover {
  color: #FFFFFF;
}

/* ---------- Background glows ---------- */

.wb-footer__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wb-footer__glow span {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.wb-footer__glow-violet {
  left: -200px;
  top: -120px;
  width: 700px;
  height: 600px;
  background: #8B5CF6;
  opacity: .22;
  filter: blur(160px);
}

.wb-footer__glow-red {
  right: -160px;
  top: 80px;
  width: 520px;
  height: 480px;
  background: var(--wb-footer-accent);
  opacity: .2;
  filter: blur(150px);
}

.wb-footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

/* ---------- CTA: floating card, half over the page, half over the footer ---------- */

.wb-footer-cta {
  --wb-footer-cta-overlap: 90px;

  position: relative;
  z-index: 2;
  display: flow-root; /* keeps the card's top margin inside this background */
  margin-bottom: calc(var(--wb-footer-cta-overlap) * -1);
  /* top half continues the page background (redesigned pages end on #F4F1EA); bottom half lies over the footer */
  background: linear-gradient(to bottom, var(--wb-footer-cta-page-bg, #F4F1EA) calc(100% - var(--wb-footer-cta-overlap)), transparent 0);
  color: #FFFFFF;
  font-family: 'Inter', system-ui, sans-serif;
}

.wb-footer-cta__card {
  position: relative;
  width: 90%;
  margin: 40px auto 0;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background: linear-gradient(120deg, #202547 0%, #1A1240 60%, #2A1660 100%);
  box-shadow: 0 40px 80px -36px rgba(14, 7, 32, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.wb-footer-cta__glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.wb-footer-cta__glow--red {
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  background: #ED194E;
  opacity: .32;
}

.wb-footer-cta__glow--violet {
  left: -100px;
  bottom: -180px;
  width: 420px;
  height: 380px;
  background: #8B5CF6;
  opacity: .3;
}

.wb-footer-cta__text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
}

.wb-footer__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #FF6B8B;
}

.wb-footer__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #ED194E;
}

.wb-footer-cta__title {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.wb-footer-cta__title span {
  color: #ED194E;
}

.wb-footer-cta .wb-footer-cta__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0 24px;
  border-radius: 999px;
  background: #ED194E;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, background-color .45s ease;
}

.wb-footer-cta .wb-footer-cta__button:hover {
  color: #FFFFFF;
  background: #FF2E62;
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -14px rgba(237, 25, 78, .7);
}

.wb-footer-cta__button svg {
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.wb-footer-cta__button:hover svg {
  transform: rotate(45deg);
}

/* ---------- Columns ---------- */

.wb-footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.wb-footer__about {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wb-footer__logo img {
  display: block;
  width: auto;
  height: 52px;
}

.wb-footer__intro {
  max-width: 360px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--wb-footer-text);
}

.wb-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--wb-footer-text);
}

.wb-footer__contact li,
.wb-footer__contact a {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
}

.wb-footer__contact svg {
  flex: none;
  margin-top: 2px;
  color: var(--wb-footer-accent);
}

.wb-footer__contact address {
  margin: 0;
  font-style: normal;
  line-height: 1.5;
}

.wb-footer__social {
  display: flex;
  gap: 10px;
}

.wb-footer .wb-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #FFFFFF;
  transition: background-color .2s, border-color .2s;
}

.wb-footer .wb-footer__social a:hover {
  border-color: var(--wb-footer-accent);
  background: var(--wb-footer-accent);
}

.wb-footer__heading {
  margin: 0 0 18px;
  font-family: 'Kanit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #FFFFFF;
}

.wb-footer__links + .wb-footer__heading {
  margin-top: 36px;
}

.wb-footer__subheading {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wb-footer-eyebrow);
}

.wb-footer__links + .wb-footer__subheading {
  margin-top: 26px;
}

.wb-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

/* ---------- Copyright bar ---------- */

.wb-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--wb-footer-line);
  font-size: 14px;
  color: var(--wb-footer-faint);
}

/* ---------- Responsive (Bootstrap steps) ---------- */

@media (max-width: 991.98px) {
  .wb-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wb-footer-cta__card {
    padding: 28px 24px;
    border-radius: 24px;
  }
}

@media (max-width: 767.98px) {
  .wb-footer-cta__card {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .wb-footer {
    padding-top: 72px;
  }

  .wb-footer--has-cta {
    padding-top: calc(90px + 56px);
  }

  .wb-footer__inner {
    gap: 64px;
  }

  .wb-footer__cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-footer-cta__button,
  .wb-footer-cta__button svg {
    transition: none;
  }
}
