/* Radhe Steel — site footer, the same on every page (markup: see README "Footer").
   Loaded after each page's own stylesheet. Every rule is scoped to footer.site-foot so page CSS cannot clash with it. */
.site-foot {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  padding: 72px 40px 32px;
  color: var(--ink-2);
  font-family: var(--font-body);
}
.site-foot .footer-inner { max-width: 1240px; margin: 0 auto; }
.site-foot .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 32px;
}

/* Brand column */
.site-foot .footer-brand { display: flex; flex-direction: column; gap: 18px; }
.site-foot .footer-logo { display: flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; color: var(--ink); }
.site-foot .footer-logo svg { display: block; width: 34px; height: 34px; flex: none; }
.site-foot .footer-logo .nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-foot .footer-logo .brand { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--ink); }
.site-foot .footer-logo .sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.site-foot .footer-desc { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 340px; margin: 0; }
.site-foot .footer-cert {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 4px 12px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 999px;
  color: var(--ink-2); font-size: 14px;
}
.site-foot .footer-cert span { color: var(--accent); font-weight: 600; }
.site-foot .footer-logo .brand, .site-foot .footer-cert { white-space: nowrap; }

/* Link columns */
.site-foot .footer-title {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--muted); margin: 0 0 18px; text-transform: uppercase;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-foot .footer-col ul li a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.site-foot .footer-col ul li a:hover { color: var(--accent); }

/* Contact column: one icon per line */
.site-foot .footer-address { font-style: normal; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.site-foot .footer-address a { color: var(--ink-2); text-decoration: none; }
.site-foot .footer-address a:hover { color: var(--accent); }
.site-foot ul.footer-contact { gap: 12px; }
.site-foot .footer-contact li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.site-foot .footer-contact svg { display: block; width: 16px; height: 16px; margin-top: 0.2em; color: var(--accent); }

/* Disclaimer and bottom row */
.site-foot .footer-disclaimer { margin: 18px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 900px; }
.site-foot .footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted);
}
.site-foot .footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot .footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-foot .footer-legal a:hover { color: var(--ink); }

/* Tablet */
@media (max-width: 960px) {
  .site-foot { padding: 48px 20px 88px; }
  .site-foot .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 28px; }
}

/* Phone: brand + certificate on one line, links in two even columns, contact as icon rows */
@media (max-width: 760px) {
  .site-foot { padding: 28px 20px 96px; }
  .site-foot .footer-top { grid-template-columns: 1fr; gap: 18px; padding-bottom: 18px; margin-bottom: 0; }
  .site-foot .footer-top > .footer-col-grades { display: none; }
  .site-foot .footer-brand { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .site-foot .footer-logo .sub, .site-foot .footer-desc { display: none; }
  .site-foot .footer-cert { padding: 6px 12px; font-size: 13px; }
  .site-foot .footer-title { margin-bottom: 8px; }
  .site-foot .footer-col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .site-foot .footer-col ul.footer-contact { grid-template-columns: 1fr; gap: 10px; }
  .site-foot .footer-address { font-size: 14px; line-height: 1.5; }
  .site-foot .footer-disclaimer { font-size: 11px; margin-top: 12px; }
  .site-foot .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; margin-top: 0; }
}
