/* =========================================================
   PJS COLLECTIONS – FOOTER
   Professional Luxury E-commerce Footer
========================================================= */

/* =========================================================
   CSS VARIABLES
========================================================= */
:root {
  --gold: #c6a667;
  --gold-light: #d8c08f;
  --gold-dark: #a28c63;
  --black: #000000;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;
  --bg-light: #fafafa;
  --bg-ivory: #faf7f3;
  --border-color: #e5e5e5;
  --border-light: #f0f0f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   FOOTER BASE
========================================================= */
.pjs-footer {
  background: var(--white);
  padding: 80px 0 0;
  color: var(--text-dark);
  border-top: 1px solid var(--border-light);
  width: 100%;
  position: relative;
}

.pjs-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold) 50%,
    transparent
  );
}

/* =========================================================
   FOOTER CONTAINER
========================================================= */
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================================================
   TOP SECTION - LINKS GRID
========================================================= */
.footer-top {
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-light);
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 60px;
}

.footer-col {
  position: relative;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.footer-col a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 12px;
}

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

/* =========================================================
   NEWSLETTER SECTION
========================================================= */
.footer-newsletter {
  max-width: 300px;
}

.newsletter-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 166, 103, 0.1);
}

.newsletter-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.newsletter-btn:hover {
  background: var(--gold);
  transform: translateX(2px);
}

.newsletter-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--gold);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
}

/* =========================================================
   BOTTOM BAR
========================================================= */
.footer-bottom {
  padding: 40px 0;
  background: var(--bg-ivory);
}

.footer-bottom .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

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

.footer-logo-link {
  display: inline-block;
  transition: var(--transition);
}

.footer-logo-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.footer-logo {
  width: 160px;
  height: auto;
  display: block;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

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

.footer-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.uae-flag {
  width: 24px;
  height: auto;
  display: block;
}

.footer-language {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-right {
  display: flex;
  gap: 12px;
}

/* =========================================================
   SOCIAL ICONS
========================================================= */
.social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-circle svg {
  width: 20px;
  height: 20px;
  fill: var(--text-dark);
  stroke: var(--text-dark);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.social-circle:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(198, 166, 103, 0.3);
}

.social-circle:hover::before {
  opacity: 1;
}

.social-circle:hover svg {
  fill: var(--white);
  stroke: var(--white);
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 1200px) {
  .footer-top .footer-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }

  .footer-newsletter {
    grid-column: span 3;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .footer-top .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-newsletter {
    grid-column: span 2;
  }

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

  .footer-bottom-center {
    order: -1;
  }
}

@media (max-width: 768px) {
  .pjs-footer {
    padding: 60px 0 0;
  }

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

  .footer-top .footer-container {
    display: block;
    padding: 0 20px;
  }

  .footer-col {
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    margin-bottom: 0;
  }

  .footer-col:last-child {
    border-bottom: none;
  }

  /* Accordion toggle */
  .footer-col h4 {
    margin: 0;
    padding: 20px 0;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
  }

  .footer-col h4::after {
    display: none;
  }

  .footer-col h4::before {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 300;
    color: var(--gold);
    transition: transform 0.3s ease;
  }

  .footer-col.active h4::before {
    transform: translateY(-50%) rotate(45deg);
  }

  /* Links collapsed by default */
  .footer-col ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .footer-col.active ul {
    max-height: 500px;
    padding-bottom: 20px;
  }

  .footer-col ul li {
    margin-bottom: 10px;
  }

  .footer-col a {
    font-size: 14px;
    padding-left: 0;
  }

  .footer-col a::before {
    display: none;
  }

  .footer-col a:hover {
    padding-left: 0;
  }

  /* Newsletter */
  .footer-newsletter {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
  }

  .footer-contact {
    margin-top: 20px;
  }

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

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

  .footer-logo {
    width: 140px;
  }

  .footer-bottom-right {
    justify-content: center;
    width: 100%;
  }

  .social-circle {
    width: 40px;
    height: 40px;
  }

  .social-circle svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .footer-col h4 {
    font-size: 12px;
    padding: 18px 0;
  }

  .footer-col a {
    font-size: 13px;
  }

  .newsletter-text {
    font-size: 13px;
  }

  .footer-copyright {
    font-size: 12px;
  }

  .footer-location,
  .footer-language {
    font-size: 12px;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */
.footer-col a:focus-visible,
.social-circle:focus-visible,
.newsletter-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.newsletter-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 0;
}
