/* ============================================
   FOOTER UNIVERSAL — Compact "Command Deck"
   Load on ALL pages for consistent premium footer
   ============================================ */

.footer {
  background: linear-gradient(180deg, #0c0907 0%, #050302 100%);
  padding: 32px 0 0;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(229,57,53,0.5) 15%, rgba(229,57,53,0.8) 50%, rgba(229,57,53,0.5) 85%, transparent 100%);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Brand row */
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.footer-logo img {
  height: 36px;
  width: auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 10px;
  opacity: 0.95;
}

.footer-tagline {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 280px;
  margin: 0;
}

/* Main grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-column-title {
  color: rgba(255,255,255,0.35);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  pointer-events: none;
}

.footer-column-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-column-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.footer-column-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #ff7b6b, #e53935);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-column-links a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-column-links a:hover::after {
  width: calc(100% - 20px);
}

.footer-column-links a i {
  font-size: 0.6rem;
  width: 14px;
  color: rgba(229,57,53,0.5);
  transition: color 0.25s ease;
}

.footer-column-links a:hover i {
  color: #ff7b6b;
}

/* Contact */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.78rem;
  transition: all 0.25s ease;
}

.footer-contact-item:hover {
  color: rgba(255,255,255,0.8);
}

.footer-contact-item i {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229,57,53,0.1);
  border-radius: 5px;
  color: rgba(229,57,53,0.7);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* Social */
.footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.78rem;
}

.footer-social a:hover {
  background: rgba(229,57,53,0.15);
  border-color: rgba(229,57,53,0.25);
  color: #ff7b6b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.15);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-copyright {
  color: rgba(255,255,255,0.25);
  font-size: 0.72rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 0.72rem;
  transition: color 0.25s ease;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

/* Hide old footer patterns */
.footer-accordion,
.footer-accordion-item,
.footer-accordion-header,
.footer-accordion-content,
.footer-accordion-icon,
.footer-contact-card,
.footer-social-section,
.footer-social-grid,
.footer-social-title {
  display: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Mobile — accordion dropdowns */
@media (max-width: 768px) {
  .footer {
    padding: 24px 0 0;
  }

  .footer .container {
    padding: 0 20px;
  }

  .footer-brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .footer-logo img {
    height: 30px;
    padding: 3px 8px;
  }

  .footer-tagline {
    font-size: 0.7rem;
    max-width: 200px;
    text-align: left;
  }

  .footer-grid {
    display: block !important;
    margin-bottom: 8px !important;
  }

  .footer-column {
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .footer-column-title {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 0 !important;
    cursor: pointer;
    font-size: 0.65rem !important;
    pointer-events: auto;
    transition: color 0.25s ease;
  }

  .footer-column-title::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.3);
    transition: transform 0.3s ease, color 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
  }

  .footer-column.is-open .footer-column-title {
    color: rgba(255,255,255,0.6);
  }

  .footer-column.is-open .footer-column-title::after {
    transform: rotate(45deg);
    color: rgba(229,57,53,0.8);
    background: rgba(229,57,53,0.08);
  }

  .footer-column-links,
  .footer-contact-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding-bottom: 0;
    gap: 6px !important;
  }

  .footer-column.is-open .footer-column-links,
  .footer-column.is-open .footer-contact-list {
    max-height: 400px;
    opacity: 1;
    padding-bottom: 14px;
  }

  /* Get In Touch always visible */
  .footer-column:last-child {
    border-bottom: none;
  }

  .footer-column:last-child .footer-column-title {
    cursor: default;
    pointer-events: none;
  }

  .footer-column:last-child .footer-column-title::after {
    display: none;
  }

  .footer-column:last-child .footer-contact-list {
    max-height: none;
    opacity: 1;
    padding-bottom: 14px;
  }

  .footer-social {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .footer-bottom {
    flex-direction: row;
    gap: 8px;
    padding: 12px 0;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .footer-tagline {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}
