/* ============================================================
   RENUCE — FOOTER (footer.css)
   Styles for the site-wide footer component loaded via JS
   into #footer-placeholder.

   Load order: AFTER reset.css, typography.css, components.css
   Depends on: variables.css (all --space-*, --color-*, etc.)

   Sections:
     1.  Footer Shell & Theme Tokens
     2.  Newsletter Strip (top band)
     3.  Footer Main Grid
     4.  Brand Column (logo, tagline, social, contact)
     5.  Navigation Columns (titles + links)
     6.  Trust Badges (in-footer)
     7.  Payment Methods Strip
     8.  Footer Bottom Bar
     9.  Responsive Overrides
   ============================================================ */


/* =====================================================
   1. FOOTER SHELL & THEME TOKENS
   The footer uses an inverted dark palette — defined here
   as local overrides so light-mode vars don't bleed in.
===================================================== */

.site-footer {
  --footer-bg:               #0F0F0F;
  --footer-bg-strip:         #161616;
  --footer-bg-bottom:        #0A0A0A;
  --footer-text:             rgba(255, 255, 255, 0.65);
  --footer-text-strong:      rgba(255, 255, 255, 0.90);
  --footer-text-muted:       rgba(255, 255, 255, 0.38);
  --footer-border:           rgba(255, 255, 255, 0.08);
  --footer-link-color:       rgba(255, 255, 255, 0.60);
  --footer-link-hover:       var(--color-brand-gold);
  --footer-social-bg:        rgba(255, 255, 255, 0.06);
  --footer-social-hover:     rgba(201, 169, 110, 0.15);
  --footer-input-bg:         rgba(255, 255, 255, 0.06);
  --footer-input-border:     rgba(255, 255, 255, 0.12);
  --footer-input-focus:      var(--color-brand-gold);

  background-color: var(--footer-bg);
  color:            var(--footer-text);
  font-family:      var(--font-sans);
  flex-shrink:      0;
}


/* =====================================================
   2. NEWSLETTER STRIP
   Full-width band at the very top of the footer.
   Dark-card-on-dark treatment with a gold accent btn.
===================================================== */

.footer-newsletter-strip {
  background:    var(--footer-bg-strip);
  border-bottom: 1px solid var(--footer-border);
  padding:       var(--space-6) 0;
}

.footer-newsletter-strip__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-8);
  flex-wrap:       wrap;
}

/* Left: icon + text */
.footer-newsletter-strip__content {
  display:     flex;
  align-items: center;
  gap:         var(--space-4);
  flex-shrink: 0;
}

.footer-newsletter-strip__content svg {
  flex-shrink: 0;
  color:       var(--color-brand-gold);
}

.footer-newsletter-strip__content > div {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-0-5);
}

.footer-newsletter-strip__title {
  font-size:    var(--text-base);
  font-weight:  var(--weight-semibold);
  color:        var(--footer-text-strong);
  line-height:  1.3;
}

.footer-newsletter-strip__sub {
  font-size:  var(--text-sm);
  color:      var(--footer-text);
  line-height: 1.4;
}

/* Right: form */
.footer-newsletter-strip__form {
  flex:      1;
  max-width: 480px;
  min-width: 260px;
}

.footer-newsletter-strip__input-group {
  display: flex;
  gap:     0;
}

.footer-newsletter-strip__input {
  flex:           1;
  padding:        0.65rem 1rem;
  font-family:    var(--font-sans);
  font-size:      var(--text-sm);
  color:          var(--footer-text-strong);
  background:     var(--footer-input-bg);
  border:         1.5px solid var(--footer-input-border);
  border-right:   none;
  border-radius:  var(--radius-input) 0 0 var(--radius-input);
  outline:        none;
  transition:     border-color var(--duration-base) var(--ease-in-out),
                  background   var(--duration-base) var(--ease-in-out);
  -webkit-appearance: none;
  appearance:     none;
  min-width:      0;
}

.footer-newsletter-strip__input::placeholder {
  color:   var(--footer-text-muted);
  opacity: 1;
}

.footer-newsletter-strip__input:focus {
  border-color: var(--footer-input-focus);
  background:   rgba(255, 255, 255, 0.08);
}

.footer-newsletter-strip__btn {
  display:         inline-flex;
  align-items:     center;
  gap:             var(--space-2);
  padding:         0.65rem var(--space-5);
  font-family:     var(--font-sans);
  font-size:       var(--text-sm);
  font-weight:     var(--weight-semibold);
  letter-spacing:  var(--tracking-wide);
  color:           var(--color-brand-black);
  background:      var(--color-brand-gold);
  border:          1.5px solid var(--color-brand-gold);
  border-radius:   0 var(--radius-input) var(--radius-input) 0;
  cursor:          pointer;
  white-space:     nowrap;
  transition:      background var(--duration-base) var(--ease-in-out),
                   box-shadow  var(--duration-base) var(--ease-in-out);
  flex-shrink:     0;
}

.footer-newsletter-strip__btn:hover {
  background:  #b8962f;
  border-color: #b8962f;
  box-shadow:  var(--shadow-gold-sm, 0 4px 14px rgba(201, 169, 110, 0.30));
}

.footer-newsletter-strip__btn svg {
  flex-shrink:  0;
  transition:   transform var(--duration-base) var(--ease-out);
}

.footer-newsletter-strip__btn:hover svg {
  transform: translateX(2px);
}

.footer-newsletter-strip__error {
  font-size:  var(--text-xs);
  color:      #FCA5A5;
  margin-top: var(--space-2);
  min-height: 1rem;
  line-height: 1.4;
}

.footer-newsletter-strip__success {
  font-size:   var(--text-sm);
  font-weight: var(--weight-medium);
  color:       var(--color-brand-gold);
  padding:     var(--space-2) 0;
  line-height: 1.5;
}


/* =====================================================
   3. FOOTER MAIN GRID
   4-column layout. Grid columns defined in layout.css
   (.footer-main__grid). Here: padding, border, bg.
===================================================== */

.footer-main {
  border-bottom: 1px solid var(--footer-border);
}

.footer-main .footer-main__grid {
  padding-top:    var(--space-16);
  padding-bottom: var(--space-14);
}


/* =====================================================
   4. BRAND COLUMN
===================================================== */

/* ── Logo ── */
.footer-brand__logo {
  display:         inline-flex;
  align-items:     center;
  gap:             var(--space-2-5);
  text-decoration: none;
  margin-bottom:   var(--space-5);
}

.footer-brand__logo .site-header__logo-mark {
  color:        var(--color-brand-white);
  flex-shrink:  0;
  display:      flex;
  align-items:  center;
}

.footer-brand__wordmark {
  font-family:    var(--font-serif);
  font-size:      var(--text-2xl);
  font-weight:    var(--weight-bold);
  color:          var(--color-brand-white);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  line-height:    1;
}

/* ── Tagline ── */
.footer-brand__tagline {
  font-size:     var(--text-sm);
  color:         var(--footer-text);
  line-height:   var(--leading-relaxed);
  max-width:     300px;
  margin-bottom: var(--space-6);
}

/* ── Social Links ── */
.footer-brand__social {
  display:       flex;
  align-items:   center;
  gap:           var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap:     wrap;
}

.footer-social-link {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           38px;
  height:          38px;
  background:      var(--footer-social-bg);
  border:          1px solid var(--footer-border);
  border-radius:   var(--radius-full);
  color:           var(--footer-text);
  text-decoration: none;
  transition:      background  var(--duration-base) var(--ease-in-out),
                   color       var(--duration-base) var(--ease-in-out),
                   border-color var(--duration-base) var(--ease-in-out),
                   transform   var(--duration-fast) var(--ease-out);
  flex-shrink:     0;
}

.footer-social-link:hover {
  background:   var(--footer-social-hover);
  border-color: rgba(201, 169, 110, 0.30);
  color:        var(--color-brand-gold);
  transform:    translateY(-2px);
}

.footer-social-link--whatsapp:hover {
  background:   rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.30);
  color:        #25D366;
}

.footer-social-link:focus-visible {
  outline:        2px solid var(--color-brand-gold);
  outline-offset: 2px;
}

/* ── Contact Info ── */
.footer-brand__contact {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-2-5);
  font-style:     normal;
}

.footer-contact-link {
  display:         inline-flex;
  align-items:     center;
  gap:             var(--space-2);
  font-size:       var(--text-sm);
  color:           var(--footer-link-color);
  text-decoration: none;
  transition:      color var(--duration-base) var(--ease-in-out);
  line-height:     1.3;
}

.footer-contact-link svg {
  flex-shrink: 0;
  color:       var(--color-brand-gold);
  opacity:     0.75;
}

.footer-contact-link:hover {
  color: var(--footer-link-hover);
}

.footer-contact-link:hover svg {
  opacity: 1;
}


/* =====================================================
   5. NAVIGATION COLUMNS
===================================================== */

.footer-col {
  display:        flex;
  flex-direction: column;
}

/* ── Column Title ── */
.footer-col__title {
  font-family:    var(--font-sans);
  font-size:      var(--text-xs);
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color:          var(--footer-text-strong);
  margin-bottom:  var(--space-4);
  line-height:    1;
}

.footer-col__title--spaced {
  margin-top: var(--space-7);
}

/* ── Links List ── */
.footer-col__links {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-1);
  list-style:     none;
  margin:         0;
  padding:        0;
}

.footer-link {
  display:         inline-flex;
  align-items:     center;
  gap:             var(--space-2);
  padding:         var(--space-1-5) 0;
  font-size:       var(--text-sm);
  color:           var(--footer-link-color);
  text-decoration: none;
  line-height:     1.3;
  transition:      color var(--duration-base) var(--ease-in-out),
                   padding-left var(--duration-base) var(--ease-out);
}

.footer-link:hover {
  color:        var(--footer-link-hover);
  padding-left: var(--space-1-5);
}

.footer-link:focus-visible {
  outline:        2px solid var(--color-brand-gold);
  outline-offset: 2px;
  border-radius:  2px;
}

/* Sale link — red accent */
.footer-link--sale {
  color: #F87171;
}

.footer-link--sale:hover {
  color: #EF4444;
}

/* WhatsApp link in support column */
.footer-link--whatsapp {
  color: rgba(37, 211, 102, 0.75);
}

.footer-link--whatsapp svg {
  flex-shrink: 0;
}

.footer-link--whatsapp:hover {
  color: #25D366;
}

/* Badge on "New Arrivals" link */
.footer-link--badge {
  /* align-items already inline-flex */
}

.footer-badge {
  display:        inline-flex;
  align-items:    center;
  padding:        0.15em 0.55em;
  font-size:      9px;
  font-weight:    var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius:  var(--radius-full);
  line-height:    1.4;
  flex-shrink:    0;
}

.footer-badge--new {
  background: var(--color-brand-gold);
  color:      var(--color-brand-black);
}


/* =====================================================
   6. TRUST BADGES (in-footer, info column)
===================================================== */

.footer-trust {
  display:    flex;
  flex-wrap:  wrap;
  gap:        var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--footer-border);
}

.footer-trust__item {
  display:     flex;
  align-items: center;
  gap:         var(--space-1-5);
  font-size:   var(--text-xs);
  font-weight: var(--weight-medium);
  color:       var(--footer-text-muted);
  transition:  color var(--duration-base) var(--ease-in-out);
  cursor:      default;
}

.footer-trust__item svg {
  flex-shrink: 0;
  color:       var(--color-brand-gold);
  opacity:     0.55;
  transition:  opacity var(--duration-base) var(--ease-in-out);
}

.footer-trust__item:hover {
  color: var(--footer-text);
}

.footer-trust__item:hover svg {
  opacity: 0.85;
}


/* =====================================================
   7. PAYMENT METHODS STRIP
===================================================== */

.footer-payments {
  background:    var(--footer-bg-strip);
  border-bottom: 1px solid var(--footer-border);
  padding:       var(--space-5) 0;
}

.footer-payments__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-6);
  flex-wrap:       wrap;
}

.footer-payments__label {
  font-size:      var(--text-xs);
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color:          var(--footer-text-muted);
  white-space:    nowrap;
  flex-shrink:    0;
}

.footer-payments__icons {
  display:     flex;
  align-items: center;
  gap:         var(--space-2);
  flex-wrap:   wrap;
  flex:        1;
}

.payment-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  opacity:         0.60;
  transition:      opacity var(--duration-base) var(--ease-in-out),
                   transform var(--duration-fast) var(--ease-out);
  cursor:          default;
}

.payment-icon:hover {
  opacity:   0.90;
  transform: translateY(-1px);
}

/* Individual icon color tints */
.payment-icon--cod,
.payment-icon--bank {
  color: var(--footer-text-strong);
}

/* SSL badge */
.footer-payments__secure {
  display:     flex;
  align-items: center;
  gap:         var(--space-1-5);
  font-size:   var(--text-xs);
  font-weight: var(--weight-medium);
  color:       var(--footer-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-payments__secure svg {
  flex-shrink: 0;
  color:       var(--color-brand-gold);
  opacity:     0.65;
}


/* =====================================================
   8. FOOTER BOTTOM BAR
===================================================== */

.footer-bottom {
  background: var(--footer-bg-bottom);
  padding:    var(--space-5) 0;
}

.footer-bottom__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-4);
  flex-wrap:       wrap;
}

/* Copyright */
.footer-bottom__copyright {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         var(--space-2);
  font-size:   var(--text-xs);
  color:       var(--footer-text-muted);
  line-height: 1.4;
  margin:      0;
}

.footer-bottom__separator {
  opacity: 0.35;
}

/* Legal nav */
.footer-bottom__legal {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         var(--space-2);
  font-size:   var(--text-xs);
}

.footer-bottom__legal > span[aria-hidden="true"] {
  color:   var(--footer-text-muted);
  opacity: 0.35;
}

.footer-legal-link {
  color:           var(--footer-text-muted);
  text-decoration: none;
  transition:      color var(--duration-base) var(--ease-in-out);
  white-space:     nowrap;
}

.footer-legal-link:hover {
  color: var(--footer-link-hover);
}

.footer-legal-link:focus-visible {
  outline:        2px solid var(--color-brand-gold);
  outline-offset: 2px;
  border-radius:  2px;
}

/* Locale / Currency */
.footer-bottom__locale {
  display:     flex;
  align-items: center;
  gap:         var(--space-1-5);
  font-size:   var(--text-xs);
  color:       var(--footer-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-bottom__locale svg {
  flex-shrink: 0;
  opacity:     0.50;
}

.footer-bottom__currency {
  font-weight: var(--weight-semibold);
  color:       var(--color-brand-gold);
  opacity:     0.75;
  margin-left: var(--space-1);
}


/* =====================================================
   9. RESPONSIVE OVERRIDES
===================================================== */

/* ── LG: up to 1024px ── */
@media (max-width: 1024px) {

  .footer-newsletter-strip__inner {
    gap: var(--space-6);
  }

  .footer-newsletter-strip__content {
    flex-shrink: 0;
  }

  .footer-payments__inner {
    gap: var(--space-4);
  }

}

/* ── MD: up to 768px ── */
@media (max-width: 768px) {

  /* Newsletter strip: stack */
  .footer-newsletter-strip {
    padding: var(--space-6) 0;
  }

  .footer-newsletter-strip__inner {
    flex-direction: column;
    align-items:    flex-start;
    gap:            var(--space-4);
  }

  .footer-newsletter-strip__form {
    width:     100%;
    max-width: 100%;
  }

  /* Main grid padding */
  .footer-main .footer-main__grid {
    padding-top:    var(--space-10);
    padding-bottom: var(--space-10);
  }

  /* Brand tagline: full width */
  .footer-brand__tagline {
    max-width: 100%;
  }

  /* Payment strip: wrap neatly */
  .footer-payments__inner {
    justify-content: flex-start;
    gap:             var(--space-4) var(--space-6);
  }

  .footer-payments__label {
    width: 100%;
  }

  .footer-payments__secure {
    width: 100%;
  }

  /* Bottom bar: center everything */
  .footer-bottom__inner {
    flex-direction:  column;
    align-items:     center;
    text-align:      center;
    gap:             var(--space-3);
  }

  .footer-bottom__copyright {
    justify-content: center;
  }

  .footer-bottom__legal {
    justify-content: center;
  }

}

/* ── SM: up to 640px ── */
@media (max-width: 640px) {

  /* Nav col titles: tighten */
  .footer-col__title--spaced {
    margin-top: var(--space-6);
  }

  /* Trust items: 2 per row */
  .footer-trust {
    display:               grid;
    grid-template-columns: 1fr 1fr;
  }

  /* Payment icons: smaller */
  .footer-payments__icons {
    gap: var(--space-1-5);
  }

}

/* ── XS: up to 480px ── */
@media (max-width: 480px) {

  .footer-newsletter-strip__btn span {
    /* Keep "Subscribe" text visible; icon can be hidden if needed */
  }

  /* Social links: tighter */
  .footer-brand__social {
    gap: var(--space-1-5);
  }

  .footer-social-link {
    width:  34px;
    height: 34px;
  }

  /* Trust: single column */
  .footer-trust {
    grid-template-columns: 1fr;
    gap:                   var(--space-2-5);
  }

  /* Legal links wrap center */
  .footer-bottom__legal {
    gap: var(--space-1-5) var(--space-2);
  }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  .footer-social-link:hover,
  .footer-link:hover,
  .payment-icon:hover {
    transition: none;
    transform:  none;
  }

}