/* ============================================================================
* FILE NAME     : footer.css
* FILE PATH     : /public/css/footer.css
* PART          : 6 of 11
* DATE CREATED  : 2025-10-05
* LAST EDITED   : 2025-10-24
* AUTHOR        : Oluwasegun Dayo Ogunsola
* VERSION       : 2.0.0
* DESCRIPTION   : Complete footer layout styles for Mama’s Shop.
*                 Implements full-width 12-column grid with responsive modules.
*                 Distinct styling for footer-footer row and adaptive typography.
*
* MODULES COVERED:
* - About block
* - Office address block
* - Quick links block
* - Newsletter subscription block
* - Vendor highlights block
* - Social media block
* - Language toggle block
* - Footer bottom bar (copyright + developer)
*
* STRUCTURE:
* - Root variables
* - Layout grid
* - Module-specific styles
* - Responsive typography
* - Footer-footer separation
* - Mobile breakpoints
*
* BRAND ALIGNMENT:
* - Uses brand palette, spacing, and typography scale
* - Honors layout discipline and semantic roles
* - Designed for maintainability and future extension
============================================================================ */

:root {
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  --brand-primary: #0B6E60;
  --brand-accent: #F29E4C;
  --surface: #ffffff;
  --bg: #FAFBFB;
  --text: #2E2E2E;
  --muted: #6C757D;
  --footer-bg: #081018;
  --footer-text: #BFC9D2;
  --footer-footer-bg: #0F1A24;

  --container-width: 100%;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-soft: 0 8px 20px rgba(11,110,96,0.06);
  --easing: cubic-bezier(.2,.9,.3,1);

  --icon-size: 20px;
}

/* ---------------- FOOTER WRAPPER ---------------- */
.footer-row {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-xl) var(--space-lg);
  font-size: clamp(0.85rem, 1vw, 1rem);
  width: 100%;
}

/* ---------------- GRID LAYOUT ---------------- */
.footer-container {
  display: grid;
  grid-template-columns:
    25%  /* About + Address */
    15%  /* Quick Links */
    20%  /* Newsletter */
    20%  /* Vendors */
    10%  /* Social Media */
    10%; /* Language Toggle */
  gap: var(--space-lg);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  align-items: start;
}

/* ---------------- MODULE BLOCKS ---------------- */
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h4 {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--brand-accent);
}

.footer-col p,
.footer-col li {
  margin-bottom: var(--space-xs);
  line-height: 1.5;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.footer-links,
.footer-social-list,
.vendor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a,
.footer-social-list a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.footer-links a:hover,
.footer-social-list a:hover {
  text-decoration: underline;
}

/* ---------------- SOCIAL ICONS ---------------- */
.social-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  margin-right: var(--space-sm);
  vertical-align: middle;
}

/* ---------------- NEWSLETTER ---------------- */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

.newsletter-form input[type="email"] {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  border: none;
  background: var(--surface);
  color: var(--text);
  width: 100%;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.newsletter-form .btn.primary {
  background: var(--brand-accent);
  color: var(--footer-bg);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.3s var(--easing);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.newsletter-form .btn.primary:hover {
  background: #f89c3f;
}

.newsletter-confirm {
  margin-top: var(--space-sm);
  color: var(--brand-accent);
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
}

/* ---------------- LANGUAGE TOGGLE ---------------- */
.language-form select {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  border: none;
  width: 100%;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
}

/* ---------------- FOOTER BOTTOM ---------------- */
.footer-footer {
  background-color: var(--footer-footer-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  margin-top: var(--space-xl);
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  color: var(--muted);
}

.footer-inner.copyright,
.footer-inner.techcompany {
  flex: 1;
  text-align: center;
  font-size: inherit;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-footer {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .footer-inner.copyright,
  .footer-inner.techcompany {
    width: 100%;
    text-align: center;
  }
}
