/* ==========================================================================
   LEADSTHRU FOOTER STYLES (MODERN REDESIGN)
   Clean, aesthetic, responsive footer with subtle depth and micro-interactions.
   ========================================================================== */

.footer {
  background: radial-gradient(100% 80% at 50% 0%, #F8FAFC 0%, #FFFFFF 100%);
  color: #012B43;
  padding-top: 0;
  position: relative;
  border-top: 1px solid #E2E8F0;
  width: 100%;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(2, 132, 199, 0.4) 30%, rgba(56, 189, 248, 0.7) 50%, rgba(2, 132, 199, 0.4) 70%, transparent 100%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   PRE-FOOTER CTA SECTION
   -------------------------------------------------------------------------- */
.pre-footer-cta {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  padding: 80px 0;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
  color: #012B43;
}

.pre-footer-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 350px;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(2, 132, 199, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.pre-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.pre-footer-text {
  max-width: 860px;
}

.pre-footer-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.22);
  color: #0284C7;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.pre-footer-text .badge i,
.pre-footer-text .badge svg {
  width: 13px;
  height: 13px;
}

.pre-footer-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  color: #012B43;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 12px 0;
}

.pre-footer-title .text-gradient {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pre-footer-sub {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.pre-footer-throughline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(1, 43, 67, 0.03);
}

.throughline-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 5px 11px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.throughline-step:hover {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: #0284C7;
}

.throughline-step .step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0284C7;
  display: inline-block;
}

.throughline-step.highlight {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.28);
  color: #059669;
}

.throughline-step .step-dot.active {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.throughline-arrow {
  width: 14px;
  height: 14px;
  color: #94A3B8;
  flex-shrink: 0;
}

.pre-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 280px;
}

.pre-footer-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 0.98rem;
  font-weight: 800;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.pre-footer-actions .btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border: 1px solid #0284C7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.pre-footer-actions .btn-primary:hover {
  background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  transform: translateY(-2px);
}

.pre-footer-actions .btn-secondary {
  background: #FFFFFF;
  color: #012B43;
  border: 1px solid #CBD5E1;
  box-shadow: 0 2px 6px rgba(1, 43, 67, 0.04);
}

.pre-footer-actions .btn-secondary:hover {
  background: #F8FAFC;
  border-color: #0284C7;
  color: #0284C7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   MAIN FOOTER CONTENT GRID
   -------------------------------------------------------------------------- */
.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding: 68px 0 44px 0;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
}

/* Dynamic 3-column support when a section is removed/commented out */
.footer-content:has(> :nth-child(3):last-child) {
  grid-template-columns: 1.5fr 1fr 1.35fr;
  gap: 56px;
}

.footer-content:has(> :nth-child(3):last-child) .footer-desc {
  max-width: 420px;
}

/* Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.footer-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.footer-brand .brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #475569;
  margin: 16px 0 0 0;
  max-width: 360px;
}

/* Navigation Columns */
.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-group h4 {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  color: #012B43;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px 0;
  position: relative;
  padding-bottom: 8px;
}

.link-group h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, #0284C7 0%, #38BDF8 100%);
  border-radius: 2px;
}

.link-group a {
  color: #475569;
  font-size: 0.91rem;
  font-weight: 500;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  text-decoration: none;
  padding: 2px 0;
}

.link-group a i,
.link-group a svg {
  width: 13px;
  height: 13px;
  color: #0284C7;
  opacity: 0.45;
  transition: transform 0.22s ease, opacity 0.22s ease;
  flex-shrink: 0;
}

.link-group a:hover {
  color: #0284C7;
  transform: translateX(4px);
}

.link-group a:hover i,
.link-group a:hover svg {
  opacity: 1;
  transform: translateX(2px);
}

/* Newsletter & Contact Column */
.footer-newsletter-col {
  display: flex;
  flex-direction: column;
}

.footer-newsletter-col h4 {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  color: #012B43;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px 0;
  position: relative;
  padding-bottom: 8px;
}

.footer-newsletter-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, #0284C7 0%, #38BDF8 100%);
  border-radius: 2px;
}

.newsletter-desc {
  font-size: 0.88rem;
  color: #475569;
  margin: 0 0 14px 0;
  line-height: 1.55;
}

.newsletter-input-group {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 4px 6px;
  box-shadow: 0 2px 4px rgba(1, 43, 67, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input-group:focus-within {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.newsletter-input-group .input-email {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  color: #012B43;
  width: 100%;
}

.newsletter-input-group .input-email::placeholder {
  color: #94A3B8;
}

.btn-newsletter {
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.btn-newsletter:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.btn-newsletter:active {
  transform: scale(0.96);
}

.btn-newsletter svg,
.btn-newsletter [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  color: #FFFFFF;
  display: inline-block;
  margin: 0;
}

.form-feedback {
  font-size: 0.82rem;
  color: #059669;
  font-weight: 700;
  margin-top: 6px;
  display: block;
  min-height: 18px;
  transition: all 0.3s ease;
}

/* Contact Items */
.footer-contact-info {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 8px;
  width: fit-content;
  transition: all 0.2s ease;
}

.contact-item .contact-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0284C7;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-item .contact-icon-wrapper i,
.contact-item .contact-icon-wrapper svg {
  width: 14px;
  height: 14px;
}

.contact-item:hover {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.04);
  transform: translateX(3px);
}

.contact-item:hover .contact-icon-wrapper {
  background: #0284C7;
  color: #FFFFFF;
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   SEO KEYWORDS STRIP
   -------------------------------------------------------------------------- */
.footer-seo-keywords {
  padding: 24px 0;
  border-bottom: 1px solid #E2E8F0;
}

.seo-keywords-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 18px;
}

.seo-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #012B43;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.seo-label i,
.seo-label svg {
  color: #0284C7;
  width: 15px;
  height: 15px;
}

.seo-tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.seo-tag {
  font-size: 0.76rem;
  font-weight: 600;
  background: #FFFFFF;
  color: #334155;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(1, 43, 67, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.seo-tag:hover {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: #0284C7;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

/* --------------------------------------------------------------------------
   FOOTER BOTTOM BAR
   -------------------------------------------------------------------------- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 32px 0;
  font-size: 0.85rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-left p {
  margin: 0;
  font-weight: 500;
}

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

.legal-links a {
  color: #64748B;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: #0284C7;
}

.legal-links .bullet {
  color: #CBD5E1;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(1, 43, 67, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.social-icons a svg,
.social-icons a i {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
  transform: translateY(-2px);
}

.social-icons a:hover svg,
.social-icons a:hover i {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #012B43;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(1, 43, 67, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: #0284C7;
  border-color: #38BDF8;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.back-to-top-btn:active {
  transform: scale(0.95);
}

.back-to-top-btn svg,
.back-to-top-btn i {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (BREAKPOINTS)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 56px 0 40px 0;
  }

  .footer-content:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-content:has(> :nth-child(3):last-child) .footer-newsletter-col {
    grid-column: span 2;
    max-width: 540px;
  }

  .footer-brand-col {
    max-width: 100%;
  }

  .pre-footer-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .pre-footer-cta {
    padding: 52px 0;
  }

  .pre-footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .pre-footer-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .pre-footer-actions .btn {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 36px 0;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0 28px 0;
  }

  .footer-bottom-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .social-icons {
    width: 100%;
    justify-content: flex-start;
  }

  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .pre-footer-title {
    font-size: 1.6rem;
  }

  .pre-footer-sub {
    font-size: 0.95rem;
  }

  .seo-keywords-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .legal-links {
    gap: 8px;
    font-size: 0.8rem;
  }
}
