/* Myntra / Nykaa Style Professional Responsive Footer Stylesheet */

footer.site-footer {
  background-color: #1a1a1a; /* Dark Premium Theme */
  color: #a3a3a3;
  font-family: var(--font-sans, 'Inter', sans-serif);
  padding: 0;
  width: 100%;
  border-top: 3px solid var(--primary-color, #fc3c8a); /* Highlight pink edge */
  position: relative;
  z-index: 99;
  overflow-x: hidden;
}

/* Container limits */
footer.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 1. Middle Section: Categorized Links List */
.footer-links-grid {
  padding: 50px 0;
  border-bottom: 1px solid #2d2d2d;
}

.footer-links-grid .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col-header {
  color: #ffffff;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-accordion-icon {
  display: none; /* Hidden on desktop */
}

.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-list a {
  color: #a3a3a3;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 500;
}

.footer-col-list a:hover {
  color: var(--primary-color, #fc3c8a);
  padding-left: 4px;
}

/* 3. Trust Badges Section */
.footer-trust-badges {
  background-color: #141414;
  padding: 30px 0;
  border-bottom: 1px solid #2d2d2d;
}

.footer-trust-badges .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.badge-icon {
  font-size: 28px;
  color: var(--primary-color, #fc3c8a);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(252, 60, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-text h5 {
  color: #ffffff;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.badge-text p {
  font-size: 11.5px;
  color: #8a8a8a;
  line-height: 1.4;
}

/* 4. Bottom Section: Socials & Copyright */
.footer-bottom {
  padding: 40px 0 0 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid #2d2d2d;
}

.footer-brand-info {
  max-width: 480px;
}

.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand-info p {
  font-size: 13px;
  color: #8a8a8a;
  line-height: 1.5;
}

.footer-social-wrapper h5 {
  color: #ffffff;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-align: right;
}

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

.social-icons a {
  width: 36px;
  height: 36px;
  background-color: #262626;
  border: 1px solid #3d3d3d;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color, #fc3c8a);
  border-color: var(--primary-color, #fc3c8a);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-copyright-bar {
  padding: 24px 0;
  font-size: 12px;
  color: #737373;
}

.footer-copyright-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none !important;
}

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

.legal-links a {
  color: #737373;
  text-decoration: none;
  transition: all 0.25s ease;
}

.legal-links a:hover {
  color: var(--primary-color, #fc3c8a);
}

/* Mobile Breakpoints & Responsive styling */

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

  .footer-trust-badges .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .badge-item {
    max-width: 100%;
  }
}

/* Tablet portrait / small screens: 768px and below */
@media (max-width: 768px) {
  /* Link Accordion behavior on mobile */
  .footer-links-grid {
    padding: 0;
  }

  .footer-links-grid .container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .footer-col-links {
    border-bottom: 1px solid #2d2d2d;
    padding: 0 20px;
  }

  .footer-col-header {
    margin-bottom: 0;
    padding: 16px 0;
    cursor: pointer;
    font-size: 13px;
  }

  .mobile-accordion-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #737373;
    font-size: 11px;
  }

  .footer-col-list {
    max-height: 0;
    overflow: hidden;
    gap: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  }

  /* Accordion active/expanded state classes */
  .footer-col-links.open .footer-col-list {
    max-height: 400px;
    padding-bottom: 20px;
    gap: 12px;
  }

  .footer-col-links.open .mobile-accordion-icon {
    transform: rotate(180deg);
    color: var(--primary-color, #fc3c8a);
  }

  /* Trust Badges Stack */
  .footer-trust-badges {
    padding: 25px 0;
  }

  .footer-trust-badges .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .badge-item {
    text-align: left;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }

  /* Bottom section stack */
  .footer-bottom {
    padding: 30px 0 0 0;
  }

  .footer-bottom .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding-bottom: 24px;
  }

  .footer-logo {
    max-width: 100%;
  }

  .footer-brand-info {
    max-width: 100%;
  }

  .footer-social-wrapper h5 {
    text-align: center;
  }

  .footer-copyright-bar .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
}

/* Very small screens: 480px and below */
@media (max-width: 480px) {
  footer.site-footer .container {
    padding: 0 16px;
  }

  .footer-links-grid .container {
    padding: 0;
  }

  .footer-col-links {
    padding: 0 16px;
  }

  .footer-col-header {
    font-size: 12px;
    padding: 14px 0;
  }

  .footer-trust-badges {
    padding: 20px 0;
  }

  .badge-icon {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .badge-text h5 {
    font-size: 12px;
  }

  .badge-text p {
    font-size: 11px;
  }

  .footer-bottom {
    padding: 24px 0 0 0;
  }

  .footer-logo {
    height: 36px;
  }

  .footer-social-wrapper h5 {
    font-size: 12px;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .social-icons {
    gap: 8px;
  }

  .footer-copyright-bar {
    padding: 18px 0;
    font-size: 11px;
  }

  .legal-links {
    gap: 12px;
  }

  .legal-links a {
    font-size: 11px;
  }
}
