/* ============================================
   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: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 40px;
  align-items: start;
}

/* Each section gets its own column — no stacking, no empty rows */
.footer-section.footer-brand {
  grid-column: 1;
}

/* Shop */
.footer-section:nth-child(2) {
  grid-column: 2;
}

/* Quick Links */
.footer-section:nth-child(3) {
  grid-column: 3;
}

/* Policies */
.footer-section:nth-child(4) {
  grid-column: 4;
}

/* Contact + Newsletter */
.footer-section:nth-child(5) {
  grid-column: 5;
}

.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;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  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;
}

.footer-bottom p:first-child {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

/* ============================================
   MOBILE FOOTER (≤768px) — Premium Ayurvedic brand
   Warm earthy palette, serif accents, refined spacing
   ============================================ */
@media screen and (max-width: 768px) {

  .site-footer {
    padding: 40px 28px calc(var(--mobile-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px) + 16px) !important;
    background: linear-gradient(175deg, #1a1714 0%, #0f0e0c 100%) !important;
    color: #e8e2d8 !important;
  }

  @supports (padding: max(0px)) {
    .site-footer {
      padding-left: max(28px, env(safe-area-inset-left)) !important;
      padding-right: max(28px, env(safe-area-inset-right)) !important;
    }
  }

  .footer-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
  }

  /* ── Brand block ─────────────────────────────── */
  .footer-brand {
    max-width: 100% !important;
    padding-bottom: 24px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(200, 180, 150, 0.12) !important;
  }

  .footer-logo {
    margin-bottom: 14px !important;
    gap: 12px !important;
  }

  .logo-circle {
    display: none !important;
  }

  .footer-logo-img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 10px rgba(200, 180, 150, 0.15) !important;
  }

  .logo-organic {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    color: #f5f0e8 !important;
  }

  .logo-urban {
    font-family: var(--font-sans, Inter, sans-serif) !important;
    font-size: 0.6rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: rgba(200, 180, 150, 0.5) !important;
    opacity: 1 !important;
  }

  .footer-brand-description,
  .footer-description {
    display: block !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 0.95rem !important;
    font-style: italic !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: rgba(232, 220, 200, 0.45) !important;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
  }

  /* ── Social icons ────────────────────────────── */
  .social-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    flex-wrap: nowrap !important;
  }

  .social-links a {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(200, 180, 150, 0.15) !important;
    background: rgba(200, 180, 150, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(232, 220, 200, 0.5) !important;
    transition: all 0.25s ease !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  .social-links a:hover {
    border-color: rgba(123, 154, 110, 0.5) !important;
    color: #c8b896 !important;
    background: rgba(123, 154, 110, 0.1) !important;
    transform: none !important;
  }

  .social-links a svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* ── Accordion sections ──────────────────────── */
  .footer-section-collapsible {
    border-bottom: 1px solid rgba(200, 180, 150, 0.08) !important;
  }

  .footer-section-collapsible:last-of-type {
    border-bottom: none !important;
  }

  .footer-section-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 0 !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
    color: #fff !important;
    transition: opacity 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .footer-section-heading:active {
    opacity: 0.7 !important;
  }

  .footer-section-heading h4 {
    margin: 0 !important;
    font-family: var(--font-sans, Inter, sans-serif) !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.16em !important;
    color: rgba(200, 180, 150, 0.6) !important;
    transition: color 0.2s ease !important;
  }

  .footer-section-collapsible.active .footer-section-heading h4 {
    color: #c8b896 !important;
  }

  /* Chevron */
  .footer-section-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    color: rgba(200, 180, 150, 0.3) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease !important;
    flex-shrink: 0 !important;
  }

  .footer-section-toggle svg {
    width: 14px !important;
    height: 14px !important;
  }

  .footer-section-collapsible.active .footer-section-toggle {
    transform: rotate(180deg) !important;
    color: rgba(200, 180, 150, 0.6) !important;
  }

  /* Collapsed / expanded */
  .footer-section-content {
    display: none !important;
    padding: 0 0 14px 0 !important;
  }

  .footer-section-collapsible.active .footer-section-content {
    display: block !important;
    animation: footerFadeIn 0.25s ease !important;
  }

  .footer-section-collapsible.active .footer-section-content#footer-contact {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  @keyframes footerFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Links inside accordion */
  .footer-section a {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 8px 0 !important;
    font-family: var(--font-sans, Inter, sans-serif) !important;
    font-size: 0.84rem !important;
    color: rgba(232, 220, 200, 0.5) !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.01em !important;
  }

  .footer-section a:hover,
  .footer-section a:focus {
    color: rgba(232, 220, 200, 0.9) !important;
    padding-left: 4px !important;
  }

  /* ── Contact items ───────────────────────────── */
  .contact-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  .contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    color: rgba(232, 220, 200, 0.5) !important;
    font-size: 0.84rem !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    transition: color 0.2s ease !important;
  }

  .contact-item:hover {
    color: rgba(232, 220, 200, 0.85) !important;
  }

  .contact-item svg {
    color: #8aad7a !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    width: 14px !important;
    height: 14px !important;
    opacity: 0.7 !important;
  }

  /* ── Newsletter ──────────────────────────────── */
  .newsletter-section {
    margin-top: 12px !important;
    padding: 16px 0 4px 0 !important;
    border-top: 1px solid rgba(200, 180, 150, 0.08) !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .newsletter-label {
    display: block !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 0.85rem !important;
    font-style: italic !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 12px !important;
    color: rgba(200, 180, 150, 0.5) !important;
    font-weight: 500 !important;
  }

  .newsletter-form-inline {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .site-footer .newsletter-section .newsletter-input-inline,
  .newsletter-form-inline .newsletter-input-inline {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    background: rgba(200, 180, 150, 0.06) !important;
    border: 1px solid rgba(200, 180, 150, 0.15) !important;
    color: #e8e2d8 !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-family: var(--font-sans, Inter, sans-serif) !important;
    transition: border-color 0.25s ease, background 0.25s ease !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .newsletter-input-inline:focus {
    border-color: rgba(123, 154, 110, 0.5) !important;
    background: rgba(200, 180, 150, 0.1) !important;
    outline: none !important;
  }

  .newsletter-input-inline::placeholder {
    color: rgba(200, 180, 150, 0.3) !important;
    font-size: 0.8rem !important;
  }

  .newsletter-btn-inline {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 42px !important;
    background: linear-gradient(135deg, #7b9a6e 0%, #6a8a5e 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    border-radius: 10px !important;
    padding: 0 20px !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    border: none !important;
    transition: background 0.25s ease, box-shadow 0.25s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(90, 125, 82, 0.2) !important;
  }

  .newsletter-btn-inline:hover {
    background: linear-gradient(135deg, #6a8a5e 0%, #5a7d52 100%) !important;
    box-shadow: 0 3px 12px rgba(90, 125, 82, 0.3) !important;
  }

  .newsletter-message-inline {
    font-size: 0.78rem !important;
    margin-top: 8px !important;
    min-height: 0 !important;
  }

  /* ── Footer bottom bar ───────────────────────── */
  .footer-divider {
    display: none !important;
  }

  .footer-bottom {
    margin-top: 20px !important;
    padding-top: 18px !important;
    padding-bottom: 8px !important;
    border-top: 1px solid rgba(200, 180, 150, 0.08) !important;
    text-align: center !important;
    line-height: 1.6 !important;
  }

  .footer-bottom p:first-child {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 0.85rem !important;
    font-style: italic !important;
    color: rgba(200, 180, 150, 0.35) !important;
    letter-spacing: 0.03em !important;
    margin-bottom: 6px !important;
  }

  .footer-bottom .footer-copyright {
    font-family: var(--font-sans, Inter, sans-serif) !important;
    font-size: 0.55rem !important;
    color: rgba(200, 180, 150, 0.18) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.14em !important;
    margin-bottom: 0 !important;
  }
}