/* ========== FOOTER ========== */

.footer-wrapper {
  width: 100%;
  background: var(--color-bg);
}

.footer {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--container-padding);
}

/* ========== MAIN CONTENT ========== */
.footer-main {
  display: flex;
  gap: 0;
  padding: 40px 60px;
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

/* Left Column — Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 280px;
  flex-shrink: 0;
  padding-right: 40px;
}

.footer-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.footer-brand-name {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: #000;
}

.footer-brand-desc {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
}

.footer-brand-address {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  color: #000;
}

/* Contact buttons */
.footer-contact-btns {
  display: flex;
  gap: 8px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: var(--color-red);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background: var(--color-red-dark);
}

.contact-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-btn-icon svg {
  width: 100%;
  height: 100%;
}

.contact-btn-text {
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  white-space: nowrap;
}

/* Social Media */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-red);
  border-radius: var(--radius-sm);
  padding: 6px 20px;
  width: fit-content;
  transition: background 0.3s ease;
}

.footer-social:hover {
  background: var(--color-red-dark);
}

.social-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ========== NAV COLUMNS ========== */
.footer-nav {
  display: flex;
  flex: 1;
  gap: 40px;
  padding-left: 80px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.footer-nav-title {
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer-nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-item:hover {
  color: var(--color-red);
}

.footer-nav-item span {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-nav-item:hover span {
  color: var(--color-red);
}

.chevron-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chevron-icon svg {
  width: 20px;
  height: 20px;
  color: #999;
  transition: color 0.2s ease;
}

.footer-nav-item:hover .chevron-icon svg {
  color: var(--color-red);
}

/* ========== PARTNER LOGOS ========== */
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 20px 60px;
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  margin-top: 10px;
  box-shadow: none;
}

.partner-logo {
  height: 60px;
  object-fit: contain;
}

.partner-logo-sm {
  height: 50px;
  object-fit: contain;
}

.partner-logo-md {
  height: 60px;
  object-fit: contain;
  position: relative;
  top: 5px;
}

/* ========== BOTTOM BAR ========== */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 60px;
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  margin-top: 10px;
  margin-bottom: 30px;
  box-shadow: none;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-copyright {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 1.5;
}

.footer-legal-link {
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 500;
  color: #000;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--color-red);
}

.footer-credit {
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 500;
  color: #000;
  line-height: 1.5;
}

/* ========== RESPONSIVE — 1024px ========== */
@media (max-width: 1024px) {
  .footer-main {
    padding: 32px 40px;
  }

  .footer-brand {
    width: 240px;
    padding-right: 24px;
  }

  .footer-nav {
    gap: 24px;
    padding-left: 40px;
  }

  .footer-nav-item span {
    font-size: 15px;
  }

  .footer-nav-title {
    font-size: 15px;
  }

  .footer-logos {
    gap: 32px;
    padding: 16px 40px;
  }

  .footer-bottom {
    padding: 12px 40px;
  }

  .footer-copyright,
  .footer-legal-link {
    font-size: 14px;
  }
}

/* ========== FOOTER ACCORDION (tablet/mobile) ========== */
.footer-nav-title-btn {
  display: none;
}

@media (max-width: 1024px) {
  .footer-nav-col.collapsible .footer-nav-title {
    display: none;
  }

  .footer-nav-title-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-bottom: 0;
  }

  .footer-nav-title-btn span {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    color: #000;
    line-height: 1.5;
  }

  .footer-nav-title-btn svg {
    width: 20px;
    height: 20px;
    color: #999;
    transition: transform 0.3s ease, color 0.2s ease;
  }

  .footer-nav-col.collapsible.expanded .footer-nav-title-btn svg {
    transform: rotate(180deg);
    color: var(--color-red);
  }

  .footer-nav-col.collapsible.expanded .footer-nav-title-btn span {
    color: var(--color-red);
  }

  .footer-nav-col.collapsible .footer-nav-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .footer-nav-col.collapsible.expanded .footer-nav-items {
    max-height: 500px;
  }
}

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

  .footer-main {
    flex-direction: column;
    padding: 32px 24px;
    gap: 32px;
  }

  .footer-brand {
    width: 100%;
    padding-right: 0;
  }

  .footer-contact-btns {
    flex-direction: column;
  }

  .footer-nav {
    padding-left: 0;
    flex-direction: column;
    gap: 28px;
  }

  .footer-nav-item span {
    font-size: 16px;
  }

  .footer-nav-title,
  .footer-nav-title-btn span {
    font-size: 18px;
  }

  .footer-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    gap: 20px;
    padding: 24px;
  }

  .footer-logos > :first-child {
    grid-column: 1 / -1;
  }

  .partner-logo {
    height: 48px;
  }

  .partner-logo-sm {
    height: 36px;
  }

  .partner-logo-md {
    height: 48px;
    top: 3px;
  }

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

  .footer-bottom-left {
    flex-direction: column;
    gap: 8px;
  }
}

/* ========== RESPONSIVE — 480px ========== */
@media (max-width: 480px) {
  .footer {
    padding: 0 20px;
  }

  .footer-main {
    padding: 24px 20px;
  }

  .footer-logos {
    gap: 16px;
    padding: 16px 20px;
  }

  .partner-logo {
    height: 40px;
  }

  .partner-logo-sm {
    height: 30px;
  }

  .footer-copyright,
  .footer-legal-link {
    font-size: 13px;
  }
}
