/* =================================================================
   PREMIUM CORPORATE FOOTER — STYLESHEET
   Font: Poppins | Base BG: #0f172a | Accent: #6366f1 / #22d3ee
   ================================================================= */

:root {
  --footer-bg: #0f172a;
  --footer-bg-darker: #0b1220;
  --footer-border: rgba(255, 255, 255, 0.08);
  --text-primary: #e5e9f0;
  --text-muted: #94a3b8;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-cyan: #22d3ee;
  --radius-sm: 8px;
  --radius-full: 50%;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

/* Demo page filler — not part of the footer component */
.demo-page {
  min-height: 60vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  padding: 2rem;
}
.demo-page h1 {
  font-weight: 700;
  font-size: 2rem;
}
.demo-page p {
  color: #64748b;
}

/* =================================================================
   FOOTER BASE
   ================================================================= */
.site-footer {
  background-color: var(--footer-bg);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

/* subtle top glow line for premium feel */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-cyan), transparent);
  opacity: 0.6;
}

.footer-main {
  padding: 70px 0 40px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
  letter-spacing: 0.3px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
}

/* =================================================================
   1. COMPANY INFO
   ================================================================= */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 18px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.logo-accent {
  color: var(--accent-cyan);
  font-weight: 300;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 320px;
  margin-bottom: 20px;
}

.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 500;
}

.trusted-badge i {
  color: var(--accent-cyan);
}

/* =================================================================
   2 & 3. QUICK LINKS / SERVICES
   ================================================================= */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  position: relative;
}

.footer-links a i {
  font-size: 0.65rem;
  color: var(--accent-cyan);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-6px);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-links a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* underline hover effect */
.footer-links a span,
.legal-links a {
  background-image: linear-gradient(var(--accent-cyan), var(--accent-cyan));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s ease;
}

/* =================================================================
   4. CONTACT INFO
   ================================================================= */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact li i {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--accent-cyan);
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 28px;
}

.map-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* =================================================================
   5. NEWSLETTER
   ================================================================= */
.newsletter-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  max-width: 340px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.newsletter-form:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 12px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
}

.newsletter-input::placeholder {
  color: #64748b;
}

.newsletter-btn {
  border: none;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  filter: brightness(1.15);
  padding-right: 26px;
}

/* =================================================================
   6. SOCIAL ICONS
   ================================================================= */
.social-row {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--footer-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.social-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.35);
}

/* =================================================================
   BOTTOM FOOTER
   ================================================================= */
.footer-bottom {
  background: var(--footer-bg-darker);
  border-top: 1px solid var(--footer-border);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.copyright,
.credit {
  color: var(--text-muted);
  font-size: 0.83rem;
  margin: 0;
}

.credit span {
  color: var(--accent-cyan);
  font-weight: 500;
}

.legal-links {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.83rem;
  transition: var(--transition);
  padding-bottom: 2px;
}

.legal-links a:hover {
  color: #ffffff;
  background-size: 100% 1px;
}

/* =================================================================
   SCROLL TO TOP BUTTON
   ================================================================= */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 999;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-4px);
}

/* =================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================= */
@media (max-width: 991px) {
  .footer-main {
    padding: 55px 0 30px;
  }
  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .social-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .newsletter-form {
    max-width: 100%;
  }
  .scroll-top-btn {
    bottom: 18px;
    right: 18px;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
