/* Evolabs dark premium footer — compact enterprise density */

.site-footer {
  --footer-bg: var(--navy, #071e33);
  --footer-bg-accent: #0a2d4a;
  --footer-text: rgba(255, 255, 255, 0.92);
  --footer-muted: rgba(255, 255, 255, 0.68);
  --footer-faint: rgba(255, 255, 255, 0.42);
  --footer-divider: rgba(255, 255, 255, 0.14);
  --footer-link-hover: #7ec8f0;
  position: relative;
  color: var(--footer-text);
  background:
    radial-gradient(ellipse 70% 55% at 8% 0%, rgba(15, 110, 169, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 40% at 96% 12%, rgba(58, 95, 191, 0.14), transparent 52%),
    linear-gradient(180deg, var(--footer-bg-accent) 0%, var(--footer-bg) 38%, #051525 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer::before {
  display: none;
}

.site-footer .footer-shell {
  display: grid;
  gap: 0;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(24px, 3vw, 40px);
}

/* Reset global section-inner vertical padding when combined with footer-shell */
.site-footer .footer-shell.section-inner {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(24px, 3vw, 40px);
}

/* ── Top band: logo + CTA cluster ── */
.footer-top-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding-bottom: clamp(16px, 2vw, 24px);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-brand:hover {
  opacity: 0.88;
}

.footer-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.footer-brand--wordmark .footer-brand-logo {
  width: auto;
  height: 34px;
  max-width: min(200px, 58vw);
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  filter: none;
}

.footer-brand-name {
  font-family: var(--font-display, "Plus Jakarta Sans", "Inter", sans-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-brand--wordmark .footer-brand-name {
  display: none;
}

.footer-cta-cluster {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.footer-cta-heading {
  margin: 0;
  color: #fff;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.footer-cta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

/* Quiet text trigger — styles live in catalogue-lead.css; keep layout here */
.site-footer .footer-links-grid .footer-catalogue-link {
  width: fit-content;
  min-height: auto;
  padding: 4px 0;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

/* ── Pill CTAs ── */
.footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.footer-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.footer-pill:hover svg {
  transform: translateX(3px);
}

.footer-pill--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-hot, #ff8a3d), var(--demo-cta, #ff5a24));
  box-shadow: 0 10px 22px rgba(255, 90, 36, 0.28);
}

.footer-pill--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 90, 36, 0.36);
}

.footer-pill--outline {
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.footer-pill--outline:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.footer-pill:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.site-footer .footer-links-grid a:focus-visible,
.footer-legal-links a:focus-visible,
.footer-social-link:focus-visible,
.footer-brand:focus-visible {
  outline: 2px solid var(--footer-link-hover);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Dividers ── */
.footer-divider {
  margin: 0;
  border: none;
  height: 1px;
  background: var(--footer-divider);
}

/* ── Link grid ── */
.site-footer .footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
  padding: clamp(18px, 2.5vw, 28px) 0;
}

.site-footer .footer-links-grid nav {
  display: grid;
  align-content: start;
  gap: 4px;
}

.footer-col-heading {
  margin: 0 0 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.site-footer .footer-links-grid a {
  width: fit-content;
  color: var(--footer-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-links-grid a:hover {
  color: var(--footer-link-hover);
  transform: translateX(3px);
}

/* ── Legal strip ── */
.footer-legal {
  display: grid;
  gap: 8px;
  padding-top: clamp(12px, 1.5vw, 18px);
}

.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.footer-legal-links a {
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #fff;
}

.footer-legal-sep {
  color: var(--footer-faint);
  font-size: 12px;
  user-select: none;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.footer-social-link img {
  width: 15px;
  height: 15px;
  display: block;
  /* Light marks on dark footer (source SVGs are brand-colored) */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--footer-link-hover);
  outline-offset: 2px;
}

.footer-copyright {
  margin: 0;
  max-width: 72ch;
  color: var(--footer-faint);
  font-size: 12px;
  line-height: 1.4;
}

/* ── Reset legacy footer elements if present ── */
.site-footer .footer-main,
.site-footer .footer-identity,
.site-footer .footer-contact-card,
.site-footer .footer-proof-grid,
.site-footer .footer-bottom {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .site-footer .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }
}

@media (max-width: 720px) {
  .footer-top-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta-cluster {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .footer-cta-pills {
    flex-direction: column;
    width: 100%;
  }

  .footer-pill {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }

  .site-footer .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .site-footer .footer-shell,
  .site-footer .footer-shell.section-inner {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  .footer-top-band {
    gap: 14px;
    padding-bottom: 14px;
  }

  .footer-cta-cluster {
    gap: 10px;
  }

  .site-footer .footer-links-grid {
    gap: 16px;
  }

  .footer-legal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-legal-sep {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-shell,
  .site-footer .footer-shell.section-inner {
    padding-top: 22px;
    padding-bottom: 16px;
  }

  .footer-legal-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-legal-sep {
    display: none;
  }
}

