/* Premium unified tools footer — calculators, intelligence, prompts, skills, FAQ */

.site-tools-footer {
  --stf-bg: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 246, 250, 0.92) 42%, rgba(238, 242, 248, 0.98) 100%);
  --stf-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.94) 100%);
  --stf-card-border: rgba(136, 158, 168, 0.16);
  --stf-card-shadow: 0 28px 64px rgba(17, 23, 41, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  --stf-text: #111729;
  --stf-muted: #626d86;
  --stf-hub-bg: rgba(255, 255, 255, 0.88);
  --stf-hub-border: rgba(136, 158, 168, 0.22);
  --stf-hub-shadow: 0 10px 28px rgba(41, 43, 78, 0.06);
  --stf-email-bg: #111729;
  --stf-email-color: #ffffff;
  --stf-email-shadow: 0 14px 32px rgba(17, 23, 41, 0.18);
  position: relative;
  margin-top: clamp(48px, 8vw, 80px);
  padding: 0 0 clamp(32px, 5vw, 48px);
  background: var(--stf-bg);
  overflow: hidden;
}

.site-tools-footer__ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 12% 100%, rgba(44, 69, 125, 0.09), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 0%, rgba(255, 75, 39, 0.07), transparent 52%);
}

.site-tools-footer__inner {
  position: relative;
  width: min(92%, 1120px);
  margin: 0 auto;
  padding-top: 8px;
}

.site-tools-footer__card {
  position: relative;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px) clamp(24px, 3vw, 32px);
  border-radius: 28px;
  border: 1px solid var(--stf-card-border);
  background: var(--stf-card-bg);
  box-shadow: var(--stf-card-shadow);
  backdrop-filter: blur(12px);
}

.site-tools-footer__accent {
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #2c457d 0%, #4a6bb5 42%, #ff4b27 100%);
  opacity: 0.95;
}

.site-tools-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: center;
  padding-top: 12px;
}

.site-tools-footer__brand {
  display: grid;
  gap: 12px;
}

.site-tools-footer__logo {
  display: inline-block;
  width: fit-content;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--stf-text);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-tools-footer__logo:hover {
  color: #2c457d;
}

.site-tools-footer__tagline {
  margin: 0;
  max-width: 38ch;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--stf-muted);
}

.site-tools-footer__hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-tools-footer__hub {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--stf-hub-border);
  background: var(--stf-hub-bg);
  color: var(--stf-text);
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: var(--stf-hub-shadow);
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.site-tools-footer__hub:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 69, 125, 0.34);
  box-shadow: 0 16px 36px rgba(41, 43, 78, 0.1);
  background: #ffffff;
}

.site-tools-footer__hub-label {
  position: relative;
  z-index: 1;
}

.site-tools-footer__bottom {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: clamp(24px, 3vw, 32px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid rgba(136, 158, 168, 0.14);
  text-align: center;
}

.site-tools-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.site-tools-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--stf-hub-border);
  background: var(--stf-hub-bg);
  color: var(--stf-text);
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: var(--stf-hub-shadow);
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.site-tools-footer__cta:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 69, 125, 0.34);
  box-shadow: 0 16px 36px rgba(41, 43, 78, 0.1);
  background: #ffffff;
}

.site-tools-footer__cta--primary {
  border-color: transparent;
  background: var(--stf-email-bg);
  color: var(--stf-email-color);
  box-shadow: var(--stf-email-shadow);
}

.site-tools-footer__cta--primary:hover {
  background: #1a2440;
  box-shadow: 0 18px 40px rgba(17, 23, 41, 0.24);
}

/* Legacy single-email CTA (shell fallback) */
.site-tools-footer__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--stf-email-bg);
  color: var(--stf-email-color);
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: var(--stf-email-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.site-tools-footer__email:hover {
  transform: translateY(-2px);
  background: #1a2440;
  box-shadow: 0 18px 40px rgba(17, 23, 41, 0.24);
}

.site-tools-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
}

.site-tools-footer__legal a {
  color: var(--stf-muted);
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-tools-footer__legal a:hover {
  color: var(--stf-text);
}

.site-tools-footer__sep {
  color: rgba(136, 158, 168, 0.55);
  font-size: 13px;
  user-select: none;
}

.site-tools-footer__copy {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin: 0;
  max-width: 36ch;
  text-align: center;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
}

.site-tools-footer__copy-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--stf-text);
}

.site-tools-footer__copy-heart {
  font-size: 12px;
  font-weight: 500;
  color: var(--stf-muted);
}

.site-tools-footer__copy-cities {
  font-size: 12px;
  font-weight: 500;
  color: rgba(98, 109, 134, 0.88);
  letter-spacing: 0.01em;
}

/* Calculator pages: preserve shell spacing hook */
.footer-section.site-tools-footer {
  margin-top: 64px;
  padding-bottom: 40px;
  background: transparent;
}

.footer-section.site-tools-footer .site-tools-footer__inner {
  width: min(92%, 1400px);
}

/* Dark mode — intelligence + tools with data-theme */
html[data-theme="dark"] .site-tools-footer {
  --stf-bg: linear-gradient(180deg, rgba(3, 7, 18, 0) 0%, rgba(15, 23, 42, 0.94) 38%, #0b1220 100%);
  --stf-card-bg: linear-gradient(145deg, rgba(17, 24, 39, 0.96) 0%, rgba(11, 18, 32, 0.98) 100%);
  --stf-card-border: rgba(148, 163, 184, 0.14);
  --stf-card-shadow: 0 28px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --stf-text: #f1f5f9;
  --stf-muted: #94a3b8;
  --stf-hub-bg: rgba(15, 23, 42, 0.88);
  --stf-hub-border: rgba(148, 163, 184, 0.18);
  --stf-hub-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  --stf-email-bg: #f8fafc;
  --stf-email-color: #0f172a;
  --stf-email-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .site-tools-footer__hub:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(148, 163, 184, 0.32);
}

html[data-theme="dark"] .site-tools-footer__cta:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(148, 163, 184, 0.32);
}

html[data-theme="dark"] .site-tools-footer__cta--primary:hover {
  background: #e2e8f0;
}

html[data-theme="dark"] .site-tools-footer__email:hover {
  background: #e2e8f0;
}

@media (max-width: 767px) {
  .site-tools-footer__main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-tools-footer__hubs {
    justify-content: flex-start;
  }

  .site-tools-footer__tagline {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-tools-footer__hub,
  .site-tools-footer__cta,
  .site-tools-footer__email,
  .site-tools-footer__logo {
    transition: none;
  }

  .site-tools-footer__hub:hover,
  .site-tools-footer__cta:hover,
  .site-tools-footer__email:hover {
    transform: none;
  }
}
