/* ==========================================================================
   Baromak-Inspired Industrial Mega Footer & Live Bursa Clock
   ========================================================================== */

.site-footer {
  background: #05070c;
  color: #94a3b8;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 5rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

[data-theme="light"] .site-footer {
  background: #0b101b;
  color: #94a3b8;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Footer Upper CTA Strip */
.footer-cta-strip {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(255, 94, 26, 0.08) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4.5rem;
  backdrop-filter: blur(20px);
}

.footer-cta-text h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-cta-text p {
  color: #cbd5e1;
  font-size: 1rem;
  max-width: 600px;
}

.footer-cta-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Main 4-Column Footer Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Column 1: Brand & Badges */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
}

/* Industrial Quality Badges */
.footer-industrial-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.ind-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
}

.ind-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

/* Live Bursa Time Widget */
.footer-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--border-radius-full);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: #34d399;
  width: fit-content;
  margin-top: 0.5rem;
}

/* Navigation Columns */
.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent-gradient-primary);
  border-radius: 2px;
}

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

.footer-link {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-link:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

/* Contact Column */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact-text strong {
  color: #ffffff;
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.social-circle-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.social-circle-btn.yt:hover {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.social-circle-btn.ig:hover {
  background: #e1306c;
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.social-circle-btn.li:hover {
  background: #0077b5;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
}

/* Bottom Bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

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

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

/* Back to Top Floating Button with Scroll Ring */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.back-to-top-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top-ring-circle {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  transition: stroke-dashoffset 0.1s linear;
}

/* Responsive Grid */
@media (max-width: 1100px) {
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
  }
  .footer-cta-strip {
    flex-direction: column;
    text-align: center;
  }
  .footer-cta-buttons {
    width: 100%;
    justify-content: center;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
