/* =====================================================================
   Site footer (includes/footer.php, footer.footer-v2) - shared by all pages
   Dark, with a gradient call-to-action card, 4 columns and a bottom bar.
   Uses brand tokens from header-modern.css.
   ===================================================================== */
.footer-v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0 0;
  background:
    radial-gradient(45% 50% at 0% 0%, rgba(106, 61, 240, 0.2), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(232, 49, 138, 0.14), transparent 70%),
    #08080f;
  color: rgba(255, 255, 255, 0.7);
}
/* pattern: concentric waves fading from the top */
.footer-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 36px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
          mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}
.footer-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- CTA card ---------- */
.footer-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  border-radius: 28px;
  background: var(--brand-gradient);
  box-shadow: 0 40px 80px -40px rgba(232, 49, 138, 0.7);
}
.footer-cta::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.footer-v2 .footer-cta-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.footer-v2 .footer-cta-text {
  margin: 10px 0 0;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.88);
}
.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: #ffffff;
  font-family: var(--title-font);
  font-size: 16px;
  font-weight: 700;
  color: #12141c;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.45);
  transition: transform 350ms var(--header-ease), color 250ms ease;
}
.footer-cta-btn i {
  font-size: 13px;
  transition: transform 300ms var(--header-ease);
}
.footer-cta-btn:hover {
  color: var(--brand-pink);
  transform: translateY(-2px);
}
.footer-cta-btn:hover i {
  transform: translateX(4px);
}
.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--title-font);
  font-size: 15.5px;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}
.footer-cta-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* ---------- Columns ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1.5fr 1fr;
  gap: 48px;
  padding: 64px 0 52px;
}
.footer-logo img {
  display: block;
  max-width: 200px;
  height: auto;
}
.footer-v2 .footer-brand p {
  margin: 20px 0 0;
  max-width: 360px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}
.footer-v2 .footer-heading {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li + li {
  margin-top: 11px;
}
.footer-links-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.footer-links-2col li + li {
  margin-top: 0;
}
.footer-links-2col li {
  margin-bottom: 11px;
}
.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
  transition: color 250ms ease, transform 300ms var(--header-ease);
}
.footer-links a::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-pink);
  opacity: 0;
  translate: 0 -50%;
  transition: opacity 250ms ease;
}
.footer-links a:hover {
  color: #ffffff;
  transform: translateX(12px);
}
.footer-links a:hover::before {
  opacity: 1;
}
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.footer-contact li + li {
  margin-top: 16px;
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}
.footer-contact a:hover {
  color: #ffffff;
}
.footer-contact-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f9a8d4;
  font-size: 14px;
}

/* ---------- Bottom bar ---------- */
.footer-bottom-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-v2 .footer-bottom-v2 p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.footer-top i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  transition: background 250ms ease, transform 300ms var(--header-ease);
}
.footer-top:hover {
  color: #ffffff;
}
.footer-top:hover i {
  background: var(--brand-gradient);
  transform: translateY(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 991.98px) {
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 30px;
  }
}
@media (max-width: 575.98px) {
  .footer-v2 {
    padding-top: 60px;
  }
  .footer-container {
    padding: 0 20px;
  }
  .footer-cta {
    padding: 30px 22px;
    border-radius: 22px;
  }
  .footer-cta-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 36px;
  }
  .footer-bottom-v2 {
    flex-direction: column;
    text-align: center;
  }
}

/* fixes: keep the email on one line, stop the CTA text overflowing on phones */
@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.35fr 0.8fr 1fr 1.2fr; /* services is one column now, so columns are evenly spaced */
  }
}
.footer-contact a {
  word-break: normal;
  overflow-wrap: anywhere;
}
.footer-cta > div {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 575.98px) {
  .footer-links-2col {
    grid-template-columns: 1fr;
  }
}

/* bottom bar: copyright centred (back-to-top link removed) */
.footer-bottom-v2 {
  justify-content: center;
  text-align: center;
}

/* =====================================================================
   Shared: every home-page section heading uses the same size on phones
   (kept in this file because it loads last, so it wins over each section's own size)
   ===================================================================== */
@media (max-width: 575.98px) {
  .services-v2 .services-title,
  .about-v2 .about-title,
  .process-v2 .process-title,
  .work-v2 .work-title,
  .why-v2 .why-title,
  .testi-v2 .testi-title,
  .contact-v2 .contact-title {
    font-size: clamp(24px, 7.4vw, 34px);
    line-height: 1.15;
  }
}

/* phones: centred, compact call-to-action card */
@media (max-width: 575.98px) {
  .footer-cta {
    align-items: center;
    text-align: center;
    gap: 22px;
    padding: 30px 22px;
  }
  .footer-v2 .footer-cta-title {
    font-size: clamp(22px, 6.4vw, 28px);
    line-height: 1.2;
  }
  .footer-v2 .footer-cta-text {
    font-size: 15px;
    line-height: 1.6;
  }
  .footer-cta-actions {
    width: 100%;
    align-items: center;
    gap: 14px;
  }
  .footer-cta-btn {
    width: 100%;
    justify-content: center;
    height: 52px;
  }
  .footer-cta-link {
    border-bottom: 0;
    opacity: 0.95;
  }
}

/* =====================================================================
   Back-to-top button (markup in includes/header.php): brand gradient
   ===================================================================== */
.back-to-top-wrapper {
  right: 30px;
  width: 50px;
  height: 50px;
}
.back-to-top-wrapper.back-to-top-btn-show {
  bottom: 30px;
}
.back-to-top-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(232, 49, 138, 0.15), 0 14px 28px -10px rgba(232, 49, 138, 0.7);
  transition: transform 350ms var(--header-ease), box-shadow 350ms ease;
}
.back-to-top-btn svg {
  width: 14px;
  height: 8px;
  transform: none;
  color: #ffffff;
  stroke-width: 2;
  transition: transform 350ms var(--header-ease);
}
.back-to-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 6px rgba(232, 49, 138, 0.18), 0 18px 34px -10px rgba(232, 49, 138, 0.8);
}
.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}
@media (max-width: 575.98px) {
  .back-to-top-wrapper {
    right: 18px;
    width: 44px;
    height: 44px;
  }
  .back-to-top-wrapper.back-to-top-btn-show {
    bottom: 18px;
  }
  .back-to-top-btn {
    width: 44px;
    height: 44px;
  }
}

/* footer contact icons: brand gradient tiles with white icons */
.footer-contact-icon {
  border: 0;
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 10px 22px -10px rgba(232, 49, 138, 0.7);
}
/* text sits level with the middle of its icon */
.footer-contact li {
  align-items: center;
}
/* text starts at the top: its first line sits level with the middle of the icon */
.footer-contact li {
  align-items: flex-start;
}
.footer-contact li > :not(.footer-contact-icon) {
  padding-top: 7px; /* (38px icon - 24px line) / 2 */
}

/* =====================================================================
   Footer contact rows: icon + small label + value (like the contact page cards)
   ===================================================================== */
.footer-contact li {
  align-items: center;
  gap: 14px;
}
.footer-contact li > :not(.footer-contact-icon) {
  padding-top: 0;
}
.footer-contact li + li {
  margin-top: 18px;
}
.footer-contact-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 15px;
}
.footer-contact-text {
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.footer-contact-text small {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.footer-contact-text a {
  color: rgba(255, 255, 255, 0.85);
}

/* =====================================================================
   Footer social icons (Facebook, YouTube, Instagram)
   ===================================================================== */
.footer-social {
  display: flex;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.footer-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  font-size: 18px;
  transition: transform 300ms var(--header-ease), box-shadow 300ms ease, filter 300ms ease;
}
.footer-social a.is-facebook  { background: #3b5998; }
.footer-social a.is-youtube   { background: #e62117; }
.footer-social a.is-instagram { background: #232323; border: 1px solid rgba(255, 255, 255, 0.14); }
.footer-social a:hover {
  color: #ffffff;
  transform: translateY(-3px);
  filter: brightness(1.12);
}
.footer-social a.is-facebook:hover  { box-shadow: 0 12px 24px -10px rgba(59, 89, 152, 0.9); }
.footer-social a.is-youtube:hover   { box-shadow: 0 12px 24px -10px rgba(230, 33, 23, 0.9); }
.footer-social a.is-instagram:hover {
  border-color: transparent;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7);
  box-shadow: 0 12px 24px -10px rgba(238, 42, 123, 0.9);
}

/* social icons: brand colours instead of platform colours */
.footer-social a.is-facebook,
.footer-social a.is-youtube,
.footer-social a.is-instagram {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.footer-social a.is-facebook:hover,
.footer-social a.is-youtube:hover,
.footer-social a.is-instagram:hover {
  border-color: transparent;
  background: var(--brand-gradient);
  filter: none;
  box-shadow: 0 12px 24px -10px rgba(232, 49, 138, 0.8);
}

/* social icons: always filled with the brand gradient, like the contact icons */
.footer-social a.is-facebook,
.footer-social a.is-youtube,
.footer-social a.is-instagram {
  border: 0;
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 10px 22px -10px rgba(232, 49, 138, 0.7);
}
.footer-social a.is-facebook:hover,
.footer-social a.is-youtube:hover,
.footer-social a.is-instagram:hover {
  background: var(--brand-gradient);
  filter: brightness(1.1);
  box-shadow: 0 14px 28px -10px rgba(232, 49, 138, 0.9);
}
