/*
 * GoTop Custom Footer CSS — verbatim from prototype
 * Source: design-prototypes/hero-implementation-v20/styles.css (lines 3901-4198)
 * Scope: .gtp-footer*
 */

:root {
  --cyan:          #5EEAFF;
  --font-head:  "Rubik", "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:  "Heebo", "Rubik", system-ui, -apple-system, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* Hello Elementor's own footer is source-disabled via `hello_elementor_header_footer`
   filter in gotop-header.php. No CSS hide needed. */

/* Page background = dark navy so no white strip ever appears below content/footer */
html, body { background-color: #040A13 !important; }
body:has(footer.gtp-footer) { background-color: #040A13 !important; }
body:has(footer.gtp-footer) #page,
body:has(footer.gtp-footer) .site,
body:has(footer.gtp-footer) main,
body:has(footer.gtp-footer) #content { background-color: transparent !important; }

/* Ensure nothing renders after our footer (kills any orphan section/strip from
   theme or Elementor that would leave a white tail on mobile) */
footer.gtp-footer ~ * { display: none !important; }
footer.gtp-footer { margin-bottom: 0 !important; }

/* === Footer === */
.gtp-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 80% at 50% 0%, rgba(94, 234, 255, .08), transparent 62%),
    linear-gradient(180deg, #050B16 0%, #07111F 48%, #040A13 100%);
  color: #E6EEF8;
  border-top: 1px solid rgba(94, 234, 255, .14);
  direction: rtl;
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  left: 0;
  right: 0;
  box-sizing: border-box;
}
.gtp-footer * { box-sizing: border-box; }
.gtp-footer a { color: inherit; text-decoration: none; }

.gtp-footer__glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 255, .78), transparent);
  box-shadow: 0 0 24px rgba(94, 234, 255, .22);
}
.gtp-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 234, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 255, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 0%, #000 20%, transparent 76%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 0%, #000 20%, transparent 76%);
  opacity: .5;
}

.gtp-footer__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 24px;
}

/* === Top strip — 3 service groups, centered === */
.gtp-footer__services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  justify-items: center;
  text-align: center;
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 0;
  position: relative;
}
.gtp-footer__services::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 238, 248, .12), transparent);
  opacity: .65;
  pointer-events: none;
}
.gtp-footer__svc-col {
  width: min(100%, 300px);
  text-align: center;
}
.gtp-footer__svc-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--cyan);
  text-transform: uppercase;
  text-align: center;
}

/* === Info row === */
.gtp-footer__info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  justify-items: center;
  text-align: center;
}
.gtp-footer__brand,
.gtp-footer__nav,
.gtp-footer__contact { width: min(100%, 300px); }
.gtp-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gtp-footer__nav,
.gtp-footer__contact { text-align: center; }

.gtp-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 14px;
}
.gtp-footer__logo img {
  display: block;
  width: clamp(145px, 12vw, 165px);
  height: auto;
  object-fit: contain;
}

.gtp-footer__brand-text {
  max-width: 280px;
  margin: 0 auto 18px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(230, 238, 248, .68);
}

.gtp-footer__social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.gtp-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 255, .24);
  background: rgba(94, 234, 255, .04);
  color: rgba(230, 238, 248, .80);
  text-decoration: none;
  transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease;
}
.gtp-footer__social a:hover {
  color: var(--cyan);
  border-color: rgba(94, 234, 255, .55);
  background: rgba(94, 234, 255, .10);
  transform: translateY(-2px);
}
.gtp-footer__social svg { width: 16px; height: 16px; display: block; }

.gtp-footer__title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  color: #F4F7FB;
}

.gtp-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.gtp-footer__contact-list a { justify-content: center; }
.gtp-footer__list a,
.gtp-footer__legal a {
  color: rgba(230, 238, 248, .70);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  transition: color .2s ease, opacity .2s ease;
}
.gtp-footer__list a:hover,
.gtp-footer__legal a:hover { color: var(--cyan); }

.gtp-footer__contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gtp-footer__mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(94, 234, 255, .24);
  color: var(--cyan);
  background: rgba(94, 234, 255, .06);
  flex: 0 0 auto;
}
.gtp-footer__mini-icon svg { width: 14px; height: 14px; display: block; }
.gtp-footer__mini-icon--wa svg { width: 16px; height: 16px; }

/* === Bottom legal row === */
.gtp-footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.gtp-footer__bottom::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 238, 248, .12), transparent);
  pointer-events: none;
}
.gtp-footer__copyright {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: rgba(230, 238, 248, .58);
}
.gtp-footer__legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.gtp-footer__legal a { font-size: 13.5px; color: rgba(230, 238, 248, .58); }

@media (max-width: 1024px) {
  .gtp-footer__services { row-gap: 36px; }
}

@media (max-width: 767px) {
  .gtp-footer__inner {
    width: min(100% - 32px, 540px);
    padding: 52px 0 26px;
    text-align: center;
  }
  .gtp-footer__services,
  .gtp-footer__info {
    grid-template-columns: 1fr;
    gap: 26px;
    justify-items: center;
    text-align: center;
  }
  .gtp-footer__services {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
  .gtp-footer__brand,
  .gtp-footer__nav,
  .gtp-footer__contact,
  .gtp-footer__svc-col {
    width: min(100%, 340px);
    text-align: center;
  }
  .gtp-footer__brand { align-items: center; }
  .gtp-footer__logo img { width: clamp(120px, 34vw, 140px); }
  .gtp-footer__brand-text { font-size: 14px; line-height: 1.75; max-width: 280px; }
  .gtp-footer__list { justify-items: center; }
  .gtp-footer__contact-list a { justify-content: center; }
  .gtp-footer__bottom {
    margin-top: 28px;
    padding-top: 20px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }
  .gtp-footer__legal {
    justify-content: center;
    gap: 14px;
  }
}

/* ============================================================
 * MOBILE STICKY-BAR CLEARANCE (added 2026-07-30)
 * Reserves bottom space on the footer so the fixed mobile CTA
 * bar (.gtp-cta__mbar) does not overlay legal links (Israeli
 * accessibility law: the "הצהרת נגישות" link must remain
 * reachable). Bar min-height 52px + iOS safe-area + 16px buffer.
 * Same 1023px breakpoint as .gtp-cta__mbar mobile activation.
 * ============================================================ */
@media (max-width: 1023px) {
  .gtp-footer {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px) + 16px);
  }
}
