/* ============================================================
   KLEAN KOSMETICS — FOOTER  (footer.css)
   Mobile-first. Link LAST, after style.css and the section stylesheets:
     <link rel="stylesheet" href="assets/css/footer.css">

   Restyles the existing .footer classes, so any page that already uses the
   footer markup picks up the new look once it links this file.

   Markup contract (index.html):
   <footer class="footer">
     <div class="container">
       <div class="footer__grid">
         <div class="footer__brand">logo, tagline, socials</div>
         <div>  <div class="footer__heading">Shop</div>  <ul class="footer__links">...</ul> </div>
         <div>  <div class="footer__heading">Info</div>  ...</div>
         <div class="footer__contact"> <div class="footer__heading">Contact us</div> ...</div>
       </div>
       <div class="footer__bottom"><span>© <span id="footer-year">2026</span> ...</span><span>...</span></div>
     </div>
   </footer>

   Colours: only var(--clr-purple) / var(--clr-ink). Never hardcode the brand colour.
   ============================================================ */

.footer {
  background: var(--clr-ink);
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}

/* ── GRID ────────────────────────────────────────────────────── */
/* Phones: brand full width, Shop and Info side by side, Contact full width. */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 20px;
  margin-bottom: 40px;
}
.footer__brand,
.footer__contact { grid-column: 1 / -1; }

/* ── BRAND ───────────────────────────────────────────────────── */
.footer__logo {
  margin-bottom: 14px;
  font-family: var(--ff-display);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: .02em;
  color: #fff;
}
.footer__logo span { color: var(--clr-purple); }
.footer__tagline {
  max-width: 34ch;
  font-size: .95rem;
  line-height: 1.7;
}

.footer__socials { display: flex; gap: 12px; margin-top: 22px; }
.footer__social {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.footer__social:active { transform: scale(.94); }
.footer__social[hidden] { display: none; }
.footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.footer__social:focus-visible,
.footer__links a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) {
  .footer__social:hover { background: var(--clr-purple); border-color: var(--clr-purple); }
}

/* ── LINK COLUMNS ────────────────────────────────────────────── */
.footer__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--ff-condensed);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
}
.footer__heading::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--clr-purple);
}

.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin: 0; }
/* 44px tap height without looking spaced out. */
.footer__links a,
.footer__links li > span {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  transition: color .15s ease;
}
@media (hover: hover) {
  .footer__links a:hover { color: #fff; }
}

/* ── BOTTOM BAR ──────────────────────────────────────────────── */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 0 96px;      /* extra room so the floating WhatsApp button never covers the text */
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .8rem;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
}

/* ── LARGER SCREENS ──────────────────────────────────────────── */
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: auto; }
}

@media (min-width: 900px) {
  .footer { padding-top: 80px; }
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 48px;
    margin-bottom: 56px;
  }
  .footer__brand { grid-column: auto; }
  .footer__logo { font-size: 2.8rem; }
  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
  }
}

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .footer__social, .footer__links a { transition: none; }
}
