/* ═══════════════════════════════════════════════════════════════
   KRITEXA LABS — FOOTER CSS
   css/footer.css

   UI Refinement — Premium footer system

   Covers:
     - Global CTA section (.gcta)
     - Footer layout (.footer)
     - Newsletter card (.f-nl-block) — separate top card
     - Main footer card (.f-main-card) — ONE SINGLE OUTER CARD
         contains navigation grid, company panel, and bottom bar
     - Navigation area (.f-nav-area, .f-col, .f-col-links)
     - Company area (.f-company-area, .f-brand-logo, .f-brand-desc)
     - Social icons (.f-socials, .f-soc, per-platform hover colors)
     - Footer bottom bar (.f-bottom-bar) — INSIDE .f-main-card
     - Legal pending links (.f-link-pending)
     - Footer special link colors (.f-link-labs, .f-link-kai)
     - Responsive breakpoints
     - Reduced-motion overrides
     - Focus visible states

   Load order:
     global.css → utilities.css → header.css → footer.css → components.css

   CSS Architecture:
     - Uses design tokens from css/tokens.css (via global.css)
     - No arbitrary hard-coded values — references tokens where possible
═══════════════════════════════════════════════════════════════ */


/* ═══ GLOBAL CTA SECTION ═══ */

.gcta {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.gcta-box {
  position: relative;
  background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(6,182,212,.05));
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--r3);
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
}

.gcta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% -20%, rgba(124,58,237,.2), transparent 70%);
  pointer-events: none;
}

.gcta-box h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  position: relative;
}

.gcta-box p {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 32px;
  position: relative;
}

.gcta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* WhatsApp and Email buttons */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: all .25s;
  box-shadow: 0 0 28px rgba(37,211,102,.2);
  text-decoration: none;
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 36px rgba(37,211,102,.38);
}

.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: all .25s;
  text-decoration: none;
}
.btn-email:hover {
  border-color: rgba(124,58,237,.4);
  background: rgba(124,58,237,.06);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER — MAIN WRAPPER
   Dark purple-black background distinguishes footer from body.
   Subtle top gradient fades from body background into footer.
═══════════════════════════════════════════════════════════════ */

.footer {
  position: relative;
  z-index: 1;
  padding: 32px 0 48px;
  background: linear-gradient(180deg, #080810 0%, #060610 60%, #05050d 100%);
  border-top: 1px solid rgba(124, 58, 237, 0.15);
}


/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER CARD — separate top card above the main footer card
   Premium full-width container with:
   - Darker purple-night gradient surface
   - Thicker visible purple border
   - Controlled ambient glow
   - Desktop: left side = icon + text, right side = form
   - Mobile: stacked column layout
═══════════════════════════════════════════════════════════════ */

.f-nl-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 44px;
  margin-bottom: 18px;
  background: linear-gradient(135deg,
    rgba(18, 12, 40, 0.99) 0%,
    rgba(9, 7, 22, 1.0) 100%
  );
  border: 1.5px solid rgba(124, 58, 237, 0.42);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.10),
    0 0 60px rgba(124, 58, 237, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    inset 0 0 48px rgba(124, 58, 237, 0.04);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: box-shadow .28s ease, border-color .28s ease;
}

.f-nl-block:hover {
  border-color: rgba(124, 58, 237, 0.58);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.16),
    0 0 80px rgba(124, 58, 237, 0.18),
    0 16px 52px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 60px rgba(124, 58, 237, 0.06);
}

/* Left: icon + heading + description */
.f-nl-identity {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.f-nl-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg,
    rgba(124, 58, 237, 0.24) 0%,
    rgba(88, 28, 135, 0.18) 100%
  );
  border: 1.5px solid rgba(139, 92, 246, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4a7ff;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.10),
    0 0 22px rgba(124, 58, 237, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.f-nl-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.f-nl-title {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: -0.25px;
  color: var(--color-white);
  line-height: 1.2;
}

.f-nl-desc {
  font-size: 13px;
  color: rgba(161, 161, 172, 0.88);
  line-height: 1.62;
  max-width: 420px;
}

/* Right: form — input + button */
.f-nl-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-shrink: 0;
}

.f-nl-input {
  padding: 12px 20px;
  width: 240px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 12px;
  color: var(--color-white);
  font-family: var(--font-family-primary);
  font-size: 13.5px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.38);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.f-nl-input::placeholder {
  color: rgba(82, 82, 91, 0.85);
}

.f-nl-input:focus {
  border-color: rgba(139, 92, 246, 0.65);
  background: rgba(124, 58, 237, 0.045);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(124, 58, 237, 0.16),
    0 0 22px rgba(124, 58, 237, 0.13);
}

.f-nl-btn {
  padding: 12px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  border: 1.5px solid rgba(139, 92, 246, 0.62);
  cursor: pointer;
  font-family: var(--font-family-primary);
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.22),
    0 4px 22px rgba(88, 28, 135, 0.58),
    0 1px 4px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
  transition: background .22s, transform .22s, box-shadow .22s, border-color .22s;
}

.f-nl-btn:hover {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  border-color: rgba(167, 139, 250, 0.78);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.38),
    0 8px 32px rgba(88, 28, 135, 0.68),
    0 2px 8px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}


/* ═══════════════════════════════════════════════════════════════
   MAIN FOOTER CARD — ONE SINGLE OUTER CARD
   Contains: navigation area + company area + bottom bar
   Dark purple/black background, subtle purple border, rounded corners,
   premium restrained glow/shadow.
   DO NOT apply card styles to f-nav-area or f-company-area individually.
═══════════════════════════════════════════════════════════════ */

.f-main-card {
  background: linear-gradient(155deg,
    rgba(20, 16, 36, 0.97) 0%,
    rgba(12, 9, 22, 0.99) 100%
  );
  border: 1px solid rgba(124, 58, 237, 0.24);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 8px 32px rgba(0, 0, 0, 0.60),
    0 2px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition:
    box-shadow .28s ease,
    border-color .28s ease;
}

.f-main-card:hover {
  border-color: rgba(124, 58, 237, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 14px 50px rgba(0, 0, 0, 0.68),
    0 4px 16px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    0 0 44px rgba(124, 58, 237, 0.09);
}


/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT GRID — Navigation (left) + Company (right)
   Desktop: navigation occupies the larger left portion,
            company occupies the smaller right portion.
   A subtle right-border on nav-area acts as a vertical divider.
═══════════════════════════════════════════════════════════════ */

.f-main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  align-items: start;
  min-height: 260px;
}


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION AREA — left side of the main footer card
   4 link columns inside, with right-border divider.
   No outer card border — it inherits from f-main-card.
═══════════════════════════════════════════════════════════════ */

.f-nav-area {
  padding: 40px 38px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-right: 1px solid rgba(124, 58, 237, 0.14);
  /* Vertical stretch: fill full card height so divider reaches bottom grid */
  align-self: stretch;
}

/* Column label — purple-tinted uppercase mono heading */
.f-col-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(139, 92, 246, 0.72);
  margin-bottom: 16px;
  font-family: var(--font-family-mono);
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.16);
  line-height: 1.4;
}

.f-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.f-col-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(180, 178, 205, 0.76);
  text-decoration: none;
  display: inline-block;
  transition: color .18s ease, padding-left .18s ease;
  line-height: 1.4;
}

.f-col-links a:hover {
  color: var(--color-white);
  padding-left: 3px;
}

.f-col-links a.f-active {
  color: var(--color-purple2);
  font-weight: 600;
}

/* Kritexa.AI — cyan identity */
.f-link-kai {
  color: var(--color-cyan) !important;
}
.f-link-kai:hover {
  color: #67e8f9 !important;
}

/* Labs — subtle purple accent */
.f-link-labs {
  color: var(--color-purple2) !important;
}
.f-link-labs:hover {
  color: var(--color-white) !important;
}

/* Legal pending — non-clickable placeholder */
.f-link-pending {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(82, 82, 91, 0.65);
  cursor: default;
  user-select: none;
  display: inline-block;
  line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════════════
   COMPANY AREA — right side of the main footer card
   Logo · Description · Social buttons.
   NOT a separate outer card — lives inside f-main-card.
═══════════════════════════════════════════════════════════════ */

.f-company-area {
  padding: 40px 28px 40px 28px;
  display: flex;
  flex-direction: column;
}

.f-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--color-white);
  transition: opacity .18s;
}

.f-brand-logo:hover {
  opacity: 0.85;
  text-decoration: none;
}

.f-brand-logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.f-brand-logo-mark img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.f-brand-dim {
  color: rgba(82, 82, 91, 0.9);
  font-weight: 400;
}

.f-brand-desc {
  font-size: 12.5px;
  color: rgba(161, 161, 170, 0.82);
  line-height: 1.70;
  margin-bottom: 22px;
  text-align: left;
}


/* ═══════════════════════════════════════════════════════════════
   SOCIAL ICONS — Premium platform buttons
   36×36 visible icon squares with platform-color hover states.
   ::after pseudo provides 44×44 minimum touch target.
═══════════════════════════════════════════════════════════════ */

.f-socials {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.f-soc {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 12, 32, 0.96);
  border: 1px solid rgba(124, 58, 237, 0.26);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.50),
    0 1px 3px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(160, 158, 185, 0.86);
  text-decoration: none;
  position: relative;
  transition:
    color .22s ease,
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

/* 44×44 minimum touch target */
.f-soc::after {
  content: '';
  position: absolute;
  inset: -4px;
}

.f-soc svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.f-soc:hover {
  transform: translateY(-3px) scale(1.07);
  color: var(--color-white);
  border-color: rgba(139, 92, 246, 0.52);
  box-shadow:
    0 0 20px rgba(124, 58, 237, 0.30),
    0 6px 22px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

/* Platform-specific hover identity colors */
.f-soc.s-ig:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-color: rgba(253, 29, 29, 0.52);
  box-shadow:
    0 6px 22px rgba(225, 48, 108, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.f-soc.s-x:hover {
  background: linear-gradient(135deg, #1a1a2e, #2e2e48);
  border-color: rgba(210, 210, 210, 0.28);
  box-shadow:
    0 6px 22px rgba(255, 255, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.f-soc.s-li:hover {
  background: linear-gradient(135deg, #0077B5, #005fa3);
  border-color: rgba(0, 119, 181, 0.62);
  box-shadow:
    0 6px 22px rgba(0, 119, 181, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.f-soc.s-fb:hover {
  background: linear-gradient(135deg, #1877F2, #0d65d9);
  border-color: rgba(24, 119, 242, 0.62);
  box-shadow:
    0 6px 22px rgba(24, 119, 242, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.f-soc.s-yt:hover {
  background: linear-gradient(135deg, #FF0000, #cc0000);
  border-color: rgba(255, 0, 0, 0.52);
  box-shadow:
    0 6px 22px rgba(255, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.f-soc.s-th:hover {
  background: linear-gradient(135deg, #1c1c2e, #2a2a42);
  border-color: rgba(160, 160, 200, 0.28);
  box-shadow:
    0 6px 22px rgba(200, 200, 200, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER BOTTOM BAR — INSIDE .f-main-card
   Subtle top separator, then 3 balanced columns.
   Desktop: 3-column flex (left | center | right)
   Mobile:  stack vertically, center-aligned
═══════════════════════════════════════════════════════════════ */

.f-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 38px 28px;
  border-top: 1px solid rgba(124, 58, 237, 0.18);
  font-size: 11.5px;
  color: rgba(82, 82, 91, 0.88);
  font-family: var(--font-family-mono);
  letter-spacing: .01em;
}

/* Left: copyright */
.f-bottom-copy {
  flex-shrink: 0;
}

/* Center: location — grows to push siblings apart */
.f-bottom-made {
  flex: 1;
  text-align: center;
}

/* Right: powered by */
.f-bottom-powered {
  flex-shrink: 0;
}

.f-bottom-link {
  color: rgba(139, 92, 246, 0.82);
  font-weight: 600;
  text-decoration: none;
  transition: color .18s;
}

.f-bottom-link:hover {
  color: #C084FC;
}


/* ═══════════════════════════════════════════════════════════════
   FOCUS VISIBLE — All interactive footer elements
   Consistent 2px purple outline. Accessibility first.
═══════════════════════════════════════════════════════════════ */

.f-nl-input:focus-visible,
.f-nl-btn:focus-visible,
.f-col-links a:focus-visible,
.f-brand-logo:focus-visible,
.f-soc:focus-visible,
.f-bottom-link:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.85);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════════════ */

/* ── 1100px: slightly narrow company column ── */
@media (max-width: 1100px) {
  .f-main-grid {
    grid-template-columns: 1fr 280px;
  }
}

/* ── 900px: stack nav + company vertically inside the ONE card ── */
@media (max-width: 900px) {
  .f-main-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: auto;
  }

  /* Company moves above navigation on tablet/mobile (brand first) */
  .f-company-area {
    order: 1;
    border-right: none;
    border-bottom: 1px solid rgba(124, 58, 237, 0.14);
    padding: 32px 28px;
  }

  .f-nav-area {
    order: 2;
    border-right: none;
    padding: 32px 28px 40px;
  }
}

/* ── 768px: newsletter stacks; 2-col link grid ── */
@media (max-width: 768px) {

  /* Newsletter: full column stack on mobile */
  .f-nl-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
  }

  .f-nl-identity {
    width: 100%;
    align-items: flex-start;
  }

  .f-nl-title {
    white-space: normal;
  }

  .f-nl-desc {
    max-width: none;
  }

  .f-nl-form {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .f-nl-input {
    width: 100%;
  }

  .f-nl-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Navigation: 2 columns at 768px */
  .f-nav-area {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 20px;
    padding: 28px 24px 36px;
  }

  /* CTA box padding */
  .gcta-box {
    padding: 40px 24px;
  }

  .gcta-btns {
    flex-direction: column;
    align-items: center;
  }

  /* Bottom bar: stack vertically */
  .f-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 24px 28px;
  }

  .f-bottom-copy,
  .f-bottom-made,
  .f-bottom-powered {
    flex: none;
    width: 100%;
    text-align: center;
  }
}

/* ── 480px: tighten further ── */
@media (max-width: 480px) {
  .f-nl-block {
    padding: 24px 20px;
    gap: 18px;
  }

  .f-nav-area {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    padding: 24px 20px 32px;
  }

  .f-company-area {
    padding: 24px 20px;
  }

  .f-bottom-bar {
    padding: 18px 20px 24px;
  }
}

/* ── 360px: single column, minimal padding ── */
@media (max-width: 360px) {
  .f-nl-block {
    padding: 22px 16px;
    gap: 16px;
  }

  .f-nav-area {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 16px 28px;
  }

  .gcta-box {
    padding: 32px 16px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   Preserves full visual appearance; removes all transforms/transitions
   for users who prefer reduced motion.
═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .f-nl-block,
  .f-main-card {
    transition: none;
  }

  .f-nl-block:hover,
  .f-main-card:hover {
    transform: none;
  }

  .f-nl-btn,
  .f-nl-btn:hover {
    transition: none;
    transform: none;
  }

  .f-soc,
  .f-soc:hover {
    transition: none;
    transform: none;
  }

  .btn-wa:hover,
  .btn-email:hover {
    transform: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   SCREEN READER ONLY UTILITY
   For the newsletter email label (.sr-only).
   Safe to define here — duplicate declaration is harmless if
   global.css already defines it (same properties).
═══════════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
