/* ============================================
   ASL Footer Section Styles
   File: Assets/footer-section/CSS/footer-section.css
   ============================================ */

/* CSS Variables */
.asl-footer-wrapper {
  --asl-footer-primary-bg: #1E3A5F;
  --asl-footer-secondary-bg: #2B3E50;
  --asl-footer-accent: #C6A15B;
  --asl-footer-accent-dark: #C77C5D;
  --asl-footer-text: rgba(255, 255, 255, 0.85);
  --asl-footer-text-muted: rgba(255, 255, 255, 0.7);
  --asl-footer-spacing-lg: 80px;
  --asl-footer-spacing-md: 60px;
  --asl-footer-spacing-sm: 40px;
  --asl-footer-gap: 50px;
}

/* Mandatory Wrapper Pattern - CRITICAL */
.asl-footer-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.asl-footer-wrapper * {
  box-sizing: border-box;
}

/* Main Footer Container */
.asl-footer-wrapper .asl-footer-section {
  background: linear-gradient(135deg, var(--asl-footer-primary-bg) 0%, var(--asl-footer-secondary-bg) 100%);
  color: var(--asl-footer-text);
  padding: var(--asl-footer-spacing-lg) 5% var(--asl-footer-spacing-sm);
  border-radius: 40px 40px 0 0;  /* TOP corners only */
  margin-top: -30px;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

/* Top Decorative Line */
.asl-footer-wrapper .asl-footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--asl-footer-accent) 50%, transparent);
}

/* Footer Content Container - Mandatory Centering Pattern */
.asl-footer-wrapper .asl-footer-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Footer Grid - Option 2: Mixed Width Layout */
.asl-footer-wrapper .asl-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: var(--asl-footer-gap);
  margin-bottom: var(--asl-footer-spacing-md);
}

/* Footer Column */
.asl-footer-wrapper .asl-footer-column {
  padding: 0;
  margin: 0;
}

/* Company Info Section */
.asl-footer-wrapper .asl-footer-company h3 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 16px;
  padding: 0;
  line-height: 1.2;
}

.asl-footer-wrapper .asl-footer-company p {
  font-size: 16px;
  color: var(--asl-footer-text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
  padding: 0;
}

.asl-footer-wrapper .asl-footer-license {
  font-size: 14px;
  color: var(--asl-footer-accent);
  margin: 0;
  padding: 0;
}

/* Column Headings */
.asl-footer-wrapper .asl-footer-column h4 {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 20px;
  padding: 0;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* Links List */
.asl-footer-wrapper .asl-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.asl-footer-wrapper .asl-footer-links li {
  margin-bottom: 12px;
  padding: 0;
}

.asl-footer-wrapper .asl-footer-links a {
  color: var(--asl-footer-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 15px;
  line-height: 1.6;
  display: inline-block;
}

.asl-footer-wrapper .asl-footer-links a:hover,
.asl-footer-wrapper .asl-footer-links a:focus {
  color: var(--asl-footer-accent);
}

/* Contact Info */
.asl-footer-wrapper .asl-footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.asl-footer-wrapper .asl-footer-contact-info li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
  color: var(--asl-footer-text-muted);
  padding: 0;
}

.asl-footer-wrapper .asl-footer-contact-info a {
  color: var(--asl-footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.asl-footer-wrapper .asl-footer-contact-info a:hover,
.asl-footer-wrapper .asl-footer-contact-info a:focus {
  color: var(--asl-footer-accent);
}

/* Social Media Container */
.asl-footer-wrapper .asl-footer-social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Social Media Links */
.asl-footer-wrapper .asl-footer-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s ease;
}

.asl-footer-wrapper .asl-footer-social-link:hover,
.asl-footer-wrapper .asl-footer-social-link:focus {
  background: linear-gradient(135deg, var(--asl-footer-accent-dark) 0%, var(--asl-footer-accent) 100%);
  transform: translateY(-3px);
}

.asl-footer-wrapper .asl-footer-social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer Bottom */
.asl-footer-wrapper .asl-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
}

.asl-footer-wrapper .asl-footer-bottom p {
  margin: 0;
  padding: 0;
  color: var(--asl-footer-text);
}

/* Legal Links */
.asl-footer-wrapper .asl-footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asl-footer-wrapper .asl-footer-legal li {
  margin: 0;
  padding: 0;
}

.asl-footer-wrapper .asl-footer-legal a {
  color: var(--asl-footer-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.asl-footer-wrapper .asl-footer-legal a:hover,
.asl-footer-wrapper .asl-footer-legal a:focus {
  color: var(--asl-footer-accent);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet - 1024px and below */
@media screen and (max-width: 1024px) {
  .asl-footer-wrapper .asl-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .asl-footer-wrapper {
    --asl-footer-gap: 40px;
  }
}

/* Mobile - 768px and below */
@media screen and (max-width: 768px) {
  .asl-footer-wrapper .asl-footer-section {
    padding: 60px 5% 30px;
  }
  
  .asl-footer-wrapper .asl-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .asl-footer-wrapper .asl-footer-company h3 {
    font-size: 24px;
  }
  
  .asl-footer-wrapper .asl-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 30px;
  }
  
  .asl-footer-wrapper .asl-footer-legal {
    flex-direction: column;
    gap: 12px;
  }
  
  .asl-footer-wrapper {
    --asl-footer-spacing-lg: 60px;
    --asl-footer-spacing-md: 40px;
    --asl-footer-spacing-sm: 30px;
  }
}

/* Small Mobile - 480px and below */
@media screen and (max-width: 480px) {
  .asl-footer-wrapper .asl-footer-section {
    padding: 40px 5% 20px;
  }
  
  .asl-footer-wrapper .asl-footer-grid {
    gap: 30px;
  }
  
  .asl-footer-wrapper .asl-footer-social-link {
    width: 40px;
    height: 40px;
  }
  
  .asl-footer-wrapper {
    --asl-footer-spacing-lg: 40px;
    --asl-footer-spacing-sm: 20px;
  }
}

@media (max-width: 1024px) {
  body .asl-footer-wrapper {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
}
