/* =============================================================
   File: assets/frontend/css/footer-frontend.css
   Last Update: 2026-07-27
   อ้อมกอด Nursing Home — SHARED site footer (depends on token.css)

   Single source of truth for the footer, extracted out of style.css when
   incFooterHome.php was merged into incFooter.php (2026-07-27): both frontend
   shells now render the SAME markup, so both load this file —
     · layoutFrontendHome  (token.css + style.css + this)
     · layoutFrontend      (its own theme + token.css + this)

   `.container` is scoped to `.site-footer` here on purpose: the legacy shell
   has no global .container, and scoping keeps this file from touching any
   other layout.
   ============================================================= */

/* footer-local container (mirrors the global one in style.css) */
.site-footer .container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-footer { background: var(--color-forest-deep); color: var(--color-on-dark); padding-top: clamp(3rem, 5vw, 4.5rem); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr; gap: clamp(2rem, 4vw, 3rem); }

.footer__brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer__brand .brand__mark { background: transparent; }
.footer__brand .brand__name { color: var(--color-on-dark); }
.footer__about { font-size: var(--fs-sm); color: rgba(243,235,221,0.72); max-width: 38ch; margin-bottom: 1.4rem; }

/* social channels */
.footer__social { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(243,235,221,0.08);
  border: 1px solid var(--border-on-dark);
  color: var(--color-on-dark);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__social a:hover { background: var(--color-gold); color: var(--color-forest); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

/* link columns */
.footer-col h4 { font-weight: var(--fw-bold); color: var(--color-on-dark); margin-bottom: 1.1rem; font-size: 1rem; }
.footer-col ul { display: grid; gap: 0.8rem; list-style: none; margin: 0; padding: 0; }
.footer-col a, .footer-col li { font-size: var(--fs-sm); color: rgba(243,235,221,0.74); transition: color var(--dur) var(--ease); }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--color-gold); }

/* contact column (icon + text rows) */
.footer-contact { display: grid; gap: 0.9rem; list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: var(--color-gold); }
.footer-contact svg { width: 18px; height: 18px; color: var(--color-gold); flex: none; margin-top: 2px; }

/* bottom bar (copyright + legal) */
.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border-on-dark);
  padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  align-items: center; justify-content: space-between;
}
.footer__copy { font-size: var(--fs-xs); color: rgba(243,235,221,0.6); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer__legal a { font-size: var(--fs-xs); color: rgba(243,235,221,0.6); transition: color var(--dur) var(--ease); text-decoration: none; }
.footer__legal a:hover { color: var(--color-gold); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
