/* ==========================================================
   iCircling — Shared footer styles
   Used by every page together with footer.js.
   ========================================================== */

.site-footer {
  background: var(--bg-dark, #0f172a);
  color: #94a3b8;
  padding: 48px 24px 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

/* Some pages style bare p/ul/li/h4/strong for their article text;
   reset them here so the footer looks the same on every page.
   :where() keeps this at class-level specificity, so the footer
   rules below still win. */
.site-footer :where(p, ul, li, h4) {
  margin: 0;
  padding: 0;
  font-size: inherit;
}

.site-footer :where(strong) {
  color: inherit;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  display: block;
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-company {
  list-style: none;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-company .company-name {
  color: white;
  font-weight: 600;
}

.footer-company a,
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-company a:hover,
.footer-links a:hover {
  color: white;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.store-badge {
  display: block;
  line-height: 0;
  color: inherit;
}

/* Official badges: equal 40px height (Apple's minimum on screen) */
.store-badge img {
  height: 40px;
  width: auto;
}

html[lang="en"] .badge-vi,
html:not([lang="en"]) .badge-en {
  display: none;
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 13px;
}

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

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

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