
.footer {
  --primary-color: #ffffff;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --accent-color: #3b82f6;
  --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 50%, var(--primary-light) 100%);
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-lg: 0.5rem;
  --radius-2xl: 1rem;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
}
.footer ul { margin: 0; padding: 0; }
.footer .container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
@media (min-width: 768px) {
  .footer .container { width: 80vw; max-width: none; }
}
.newsletter-modal-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
.newsletter-modal-overlay[hidden] { display: none; }
.newsletter-modal { position: relative; background: #1a1a2e; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; padding: 2.5rem; max-width: 28rem; width: 90%; text-align: center; color: #fff; }
.newsletter-modal h3 { margin: 0 0 .75rem; font-size: 1.25rem; }
.newsletter-modal p { margin: 0 0 1.5rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.newsletter-modal__close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: rgba(255,255,255,.5); cursor: pointer; font-size: 1.4rem; }

/* ========================================
   FOOTER
   ======================================== */

.footer {
 
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr repeat(5, 1fr);
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Footer Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo-img {
  height: 64px;
  width: auto;
  
}

.footer-logo-text {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--white);
}

.footer-description {
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--gray-800);
  border-radius: var(--radius-lg);
  color: var(--gray-300);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.social-icon {
  font-size: var(--text-lg);
}

/* Footer Links */
.footer-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.5;
}

.footer-link:hover {
  color: var(--white);
}

/* Newsletter */
.footer-newsletter {
  margin-bottom: var(--space-12);
  padding: var(--space-8);
  background-color: var(--gray-800);
  border-radius: var(--radius-2xl);
  text-align: center;
}

.newsletter-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin-bottom: var(--space-3);
}

.newsletter-description {
  color: var(--gray-400);
  margin-bottom: var(--space-6);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 400px;
  margin: 0 auto var(--space-3);
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-600);
  border-radius: var(--radius-lg);
  background-color: var(--gray-700);
  color: var(--white);
  font-size: var(--text-base);
}

.newsletter-input::placeholder {
  color: var(--gray-400);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.newsletter-btn {
  padding: var(--space-3) var(--space-6);
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.newsletter-note {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* Trust & Security */
.footer-trust {
  margin-bottom: var(--space-12);
  text-align: center;
}

.trust-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--white);
  margin-bottom: var(--space-6);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: var(--gray-800);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-300);
}

/* Bottom Footer */
.footer-bottom {
  display: grid;
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-800);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 768px) {
  .footer-legal {
    align-items: flex-start;
  }
}

.copyright {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 768px) {
  .legal-links {
    justify-content: flex-start;
  }
}

.legal-link {
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-link:hover {
  color: var(--white);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

@media (min-width: 768px) {
  .footer-contact {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-6);
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.contact-icon {
  font-size: var(--text-base);
}

.contact-text {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-text:hover {
  color: var(--white);
}

/* Back to Top */
.back-to-top {
  text-align: center;
  margin-top: var(--space-8);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background-color: var(--gray-800);
  color: var(--gray-300);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.back-to-top-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.back-to-top-icon {
  font-size: var(--text-lg); 
  font-weight: var(--font-bold);
}

.back-to-top-text {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

body.theme-light-corp .footer-logo-img,
.light-mode .footer-logo-img {
  content: url('/assets/images/logo/logo-blimx-dark.png');
}

/* Footer: true light-theme close */
body.theme-light-corp .footer,
.light-mode .footer {
  margin-top: 2rem;
  padding-top: 2.6rem;
  padding-bottom: 1.1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 60%, #e9f1ff 100%) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  color: #1e293b;
}

body.theme-light-corp .footer-newsletter,
.light-mode .footer-newsletter {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08)) !important;
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.theme-light-corp .newsletter-title,
.light-mode .newsletter-title {
  color: #0f172a;
}

body.theme-light-corp .newsletter-description,
body.theme-light-corp .newsletter-note,
.light-mode .newsletter-description,
.light-mode .newsletter-note {
  color: #475569;
}

body.theme-light-corp .newsletter-input,
.light-mode .newsletter-input {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.36);
  color: #0f172a;
}

body.theme-light-corp .newsletter-input::placeholder,
.light-mode .newsletter-input::placeholder {
  color: rgba(100, 116, 139, 0.85);
}

body.theme-light-corp .footer-section,
.light-mode .footer-section {
  background: transparent !important;
  background-color: inherit !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

body.theme-light-corp .footer-title,
.light-mode .footer-title {
  color: #0f172a;
}

body.theme-light-corp .footer-description,
body.theme-light-corp .footer-link,
body.theme-light-corp .contact-text,
body.theme-light-corp .legal-link,
body.theme-light-corp .copyright,
.light-mode .footer-description,
.light-mode .footer-link,
.light-mode .contact-text,
.light-mode .legal-link,
.light-mode .copyright {
  color: #475569;
}

body.theme-light-corp .footer-link:hover,
body.theme-light-corp .contact-text:hover,
body.theme-light-corp .legal-link:hover,
.light-mode .footer-link:hover,
.light-mode .contact-text:hover,
.light-mode .legal-link:hover {
  color: #1d4ed8;
}

body.theme-light-corp .social-link,
.light-mode .social-link {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

body.theme-light-corp .social-link:hover,
.light-mode .social-link:hover {
  background: #dbeafe;
  border-color: rgba(59, 130, 246, 0.45);
}

body.theme-light-corp .trust-title,
.light-mode .trust-title {
  color: #0f172a;
}

body.theme-light-corp .trust-badge,
.light-mode .trust-badge {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #334155;
}

body.theme-light-corp .footer-bottom,
.light-mode .footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.26);
}


@media (max-width: 991px) {
  body.theme-light-corp .footer-section,
  .light-mode .footer-section { padding: 0 !important; }
}
