/* ==========================================================================
   Kickoff Abroad — Footer Component
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

/* Decorative top border */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-primary)
  );
}

/* --------------------------------------------------------------------------
   2. Footer Grid
   -------------------------------------------------------------------------- */
.footer-main {
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
  border-radius: var(--radius-full);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   3. Footer Columns
   -------------------------------------------------------------------------- */
.footer-col h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
  border-radius: var(--radius-full);
}

/* Company Info Column */
.footer-company-info {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
  text-decoration: none;
}

.footer-logo img {
  max-height: 40px;
}

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

.footer-logo .logo-text .highlight {
  color: var(--color-secondary);
}

.footer-company-info p {
  font-size: var(--font-size-sm);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

/* Links Column */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  position: relative;
  padding-left: 0;
}

.footer-col ul a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--color-secondary);
  transition: width var(--transition-base);
}

.footer-col ul a:hover {
  color: var(--color-white);
  padding-left: 0.5rem;
}

.footer-col ul a:hover::before {
  width: 12px;
}

/* Contact Info Column */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  transition: all var(--transition-base);
}

.footer-contact-item:hover .footer-contact-icon {
  background: rgba(212, 168, 67, 0.1);
  border-color: rgba(212, 168, 67, 0.3);
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.footer-contact-text a {
  color: rgba(255, 255, 255, 0.65);
}

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

/* --------------------------------------------------------------------------
   4. Social Links
   -------------------------------------------------------------------------- */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.footer-social .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social .social-link-item {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.footer-social .social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-base);
  padding: 0;
}

.footer-social .social-link::before {
  content: none;
}

.footer-social .social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  padding-left: 0;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(3, 70, 148, 0.4);
}

.footer-social .social-link svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Footer Bottom
   -------------------------------------------------------------------------- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

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

.footer-copyright {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

/* --------------------------------------------------------------------------
   6. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 900;
  box-shadow: var(--shadow-primary);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(3, 70, 148, 0.5);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .footer-main {
    padding: var(--space-lg) 0 var(--space-md);
  }

  .footer-grid {
    gap: var(--space-md);
  }

  .footer-company-info {
    max-width: none;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}
