/* ============================================
   FOOTER COMPONENT — SINGLE SOURCE OF TRUTH
   Organic Urban — Footer Styles
   ============================================
   
   IMPORTANT: This is the ONLY file that should contain footer styles.
   All footer spacing and layout rules live here.
   
   Do NOT add footer rules to:
   - mobile-ux-fixes.css
   - mobile-clean.css
   - style.css (footer section should be removed)
   - Any other files
   ============================================ */

/* ============================================
   DESKTOP FOOTER
   ============================================ */
.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding: var(--footer-padding-desktop);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Desktop: Quick Links and Policies share column 3 so layout stays 4-column */
.footer-section.footer-brand {
  grid-column: 1;
}

.footer-section:nth-child(2) {
  grid-column: 2;
}

/* Shop */
.footer-section:nth-child(3) {
  grid-column: 3;
}

/* Quick Links */
.footer-section:nth-child(4) {
  grid-column: 3;
}

/* Policies */
.footer-section:nth-child(5) {
  grid-column: 4;
}

/* Contact */

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--spacing-md);
}

.logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #7b9a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-organic {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo-urban {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

/* Collapsible sections: desktop always open, toggle hidden */
.footer-section-heading {
  display: block;
  cursor: default;
}

.footer-section-toggle {
  display: none;
}

.footer-section-content {
  display: block;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
  opacity: 1;
  letter-spacing: 0.02em;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-section a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 6px;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  line-height: 1.4;
}

.footer-section a:hover {
  color: var(--white);
}

.category-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 2px 0;
}

.category-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.coming-soon-badge {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: auto;
}

.contact-info {
  margin-bottom: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item svg {
  flex-shrink: 0;
  opacity: 0.8;
  margin-top: 2px;
}

.newsletter-section {
  margin-top: 8px;
}

.newsletter-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.newsletter-form-inline {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 280px;
}

.newsletter-input-inline {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.newsletter-input-inline::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-inline:focus {
  outline: none;
  border-color: #7b9a7a;
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn-inline {
  padding: 10px 16px;
  background: #7b9a7a;
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.newsletter-btn-inline:hover {
  background: #6b8b6a;
}

.newsletter-message-inline {
  font-size: 0.85rem;
  min-height: 18px;
  margin-top: 0.5rem;
}

.newsletter-message-inline.success {
  color: #90EE90;
}

.newsletter-message-inline.error {
  color: #ff6b6b;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--spacing-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
  margin-bottom: 0;
  padding: 0;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-divider {
  display: none;
  /* used on mobile only */
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ============================================
   MOBILE FOOTER (≤768px) — Accordion, compact, no scroll waste
   ============================================ */
@media screen and (max-width: 768px) {
  .site-footer {
    padding: 24px 16px;
    /* Reduced from 32px */
    padding-bottom: 80px;
    /* Reduced space */
    background: #1a1a1a;
    color: #e5e5e5;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Reduced from 32px */
    margin-bottom: 24px;
  }

  /* Brand Section */
  .footer-brand {
    max-width: 100%;
    text-align: left;
    order: 0;
  }

  .footer-logo {
    margin-bottom: 16px;
    gap: 12px;
  }

  .logo-circle {
    width: 40px;
    height: 40px;
    background: #7b9a7a;
    /* Muted sage */
  }

  .logo-organic {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }

  .logo-urban {
    font-size: 0.8rem;
    opacity: 0.8;
  }

  /* Hide description on mobile for cleaner look */
  .footer-brand-description {
    display: none;
  }

  /* Accordion Styles */
  .footer-section-collapsible {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-section-collapsible:last-of-type {
    border-bottom: none;
  }

  .footer-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    /* Reduced from 18px */
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    color: #fff;
    transition: color 0.3s ease;
  }

  .footer-section-heading h4 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
  }

  .footer-section-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .footer-section-toggle svg {
    width: 18px;
    height: 18px;
  }

  .footer-section-collapsible.active .footer-section-toggle {
    transform: rotate(180deg);
    color: #fff;
  }

  .footer-section-content {
    display: none;
    /* JS toggles this */
    padding-bottom: 8px;
    /* Reduced from 16px */
  }

  .footer-section-collapsible.active .footer-section-content {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .footer-section a {
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .footer-section a:hover {
    color: #fff;
    padding-left: 4px;
  }

  /* Contact Section */
  .footer-section-content#footer-contact {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
  }

  .contact-item svg {
    color: #7b9a7a;
  }

  /* Newsletter Reformatted - Ultra Compact */
  .newsletter-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-top: 12px;
    /* Reduced from 16px */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    /* Reduced from 24px */
  }

  .newsletter-label {
    display: block;
    /* Restore label */
    font-size: 0.65rem;
    /* Tiny premium label */
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
  }

  .newsletter-form-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    /* Force inline */
    gap: 8px;
    align-items: center;
    width: 100%;
  }

  /* High Specificity to override mobile-ux-fixes */
  .site-footer .newsletter-section .newsletter-input-inline,
  .newsletter-form-inline .newsletter-input-inline {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    height: 38px;
    /* Reduced from 42px */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0 14px;
    border-radius: 6px;
    /* Slightly rounded, not pill */
    font-size: 13px;
    transition: all 0.2s ease;
    margin: 0;
  }

  .newsletter-input-inline:focus {
    border-color: #7b9a7a;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
  }

  .newsletter-input-inline::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  .newsletter-btn-inline {
    width: auto !important;
    flex: 0 0 auto;
    height: 38px;
    /* Match input */
    background: #7b9a7a;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    /* Match input */
    padding: 0 16px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    margin: 0;
    text-transform: uppercase;
  }

  /* Social Links Re-styled - Ultra Compact */
  .social-links {
    margin-top: 20px;
    /* Reduced from 32px */
    justify-content: flex-start;
    gap: 12px;
  }

  .social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .social-links a svg {
    width: 16px;
    height: 16px;
  }

  .footer-divider {
    display: none;
  }

  .footer-bottom {
    margin-top: 20px;
    /* Reduced from 32px */
    padding-top: 16px;
    /* Reduced from 24px */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}