/* ==========================================================================
   GLOBAL FOOTER STYLES
   Substantial, prestigious deep-navy footer with complete architecture
   ========================================================================== */

.dash-footer {
  background-color: var(--dash-navy-950);
  color: var(--dash-slate-300);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(4.5rem, 3.5rem + 3vw, 6.5rem);
  padding-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Translucent Earth Globe, OCC Cardboard Bales & Paper Bobbins Backdrop */
.footer-globe-paper-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 500ms ease;
}

.footer-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

[dir="rtl"] .footer-backdrop-img {
  object-position: center center;
  transform: none;
}

.footer-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 16, 29, 0.92) 0%,
    rgba(5, 16, 29, 0.72) 40%,
    rgba(5, 16, 29, 0.88) 100%
  );
  pointer-events: none;
}

[dir="rtl"] .footer-backdrop-overlay {
  background: linear-gradient(
    180deg,
    rgba(5, 16, 29, 0.92) 0%,
    rgba(5, 16, 29, 0.72) 40%,
    rgba(5, 16, 29, 0.88) 100%
  );
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  margin-bottom: 3.5rem;
}

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

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.footer-brand-logo-img {
  height: clamp(55px, 6.5vw, 80px);
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  transition: transform var(--duration-fast) var(--ease-out-cubic);
}

.footer-brand-logo:hover .footer-brand-logo-img {
  transform: scale(1.04);
}

.footer-positioning-copy {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--dash-slate-400);
  margin-bottom: 1.5rem;
  max-width: 42ch;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--dash-slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out-cubic);
}

.footer-social-btn:hover {
  transform: translateY(-2px);
  color: var(--dash-white);
}

.footer-social-linkedin:hover {
  background-color: #0A66C2;
  border-color: #0A66C2;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}

.footer-social-facebook:hover {
  background-color: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.footer-social-whatsapp:hover {
  background-color: #25D366;
  border-color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.footer-social-email:hover {
  background-color: var(--dash-green-500);
  border-color: var(--dash-green-400);
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.35);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
}

/* Nav Link Columns */
.footer-links-column,
.footer-nav-column {
  display: flex;
  flex-direction: column;
}

.footer-column-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dash-white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--dash-green-400);
}

[dir="rtl"] .footer-column-title::after {
  left: auto;
  right: 0;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link-item a,
.footer-link {
  font-size: 0.875rem;
  color: var(--dash-slate-400);
  text-decoration: none;
  transition: all var(--duration-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link-item a:hover,
.footer-link:hover {
  color: var(--dash-green-300);
  transform: translateX(3px);
}

[dir="rtl"] .footer-link-item a:hover,
[dir="rtl"] .footer-link:hover {
  transform: translateX(-3px);
}

/* Column 4: Contact & Operations Headquarters */
.footer-contact-column {
  display: flex;
  flex-direction: column;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.footer-contact-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.footer-contact-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dash-green-400);
}

.footer-contact-val {
  font-size: 0.8125rem;
  color: var(--dash-slate-200);
  text-decoration: none;
  word-break: break-word;
  transition: color var(--duration-fast);
}

.footer-contact-val:hover {
  color: var(--dash-green-300);
}

/* Bottom Bar */
.footer-bottom-bar {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  width: 100%;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--dash-slate-400);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-legal-link {
  color: var(--dash-slate-400);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color var(--duration-fast);
}

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

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dash-green-300);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--duration-fast);
}

.footer-legal-btn:hover {
  color: var(--dash-white);
}

/* Back to Top Button */
.footer-back-to-top,
.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  color: var(--dash-slate-200);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-cubic);
}

.footer-back-to-top:hover,
.back-to-top-btn:hover {
  background-color: var(--dash-green-500);
  border-color: var(--dash-green-400);
  color: var(--dash-white);
  transform: translateY(-2px);
}

.footer-back-to-top svg,
.back-to-top-btn svg {
  width: 14px;
  height: 14px;
}

/* Floating WhatsApp Button */
.dash-whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all var(--duration-fast) var(--ease-out-cubic);
  text-decoration: none;
}

[dir="rtl"] .dash-whatsapp-float {
  right: auto;
  left: 25px;
}

.dash-whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.dash-whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Image Sources Modal */
.dash-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.dash-modal-container {
  background-color: var(--dash-navy-900);
  color: var(--dash-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  width: min(920px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--dash-white);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
}

.modal-records-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-record-item {
  padding: 0.85rem 1.15rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.record-section {
  font-size: 0.72rem;
  color: var(--dash-green-400);
  font-weight: 700;
  text-transform: uppercase;
}

.record-subject {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dash-white);
  margin-top: 0.15rem;
}

.record-meta-lbl {
  font-size: 0.72rem;
  color: var(--dash-slate-400);
}

.record-meta-val {
  font-size: 0.8125rem;
  color: var(--dash-slate-200);
}

.record-license {
  font-size: 0.8125rem;
  color: var(--dash-green-300);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.modal-footer {
  padding: 1rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  background-color: rgba(7, 14, 26, 0.5);
}

@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .modal-record-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .dash-whatsapp-float { width: 50px; height: 50px; bottom: 1rem; inset-inline-end: 0.75rem; }
  .dash-whatsapp-float svg { width: 26px; height: 26px; }
}
