/* ══════════════════════════════════════════════════════════════════════════
   KalkulatorTempa — Site Footer
   ══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: auto;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

/* ── Top row: brand + nav columns ─────────────────────────────────────────── */
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

/* ── Brand ─────────────────────────────────────────────────────────────────── */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__logo {
  height: 36px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.site-footer__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.site-footer__tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 200px;
}

/* ── Nav columns ───────────────────────────────────────────────────────────── */
.site-footer__col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
}

.site-footer__nav a:hover {
  color: var(--accent-bright);
}

/* ── Contact ───────────────────────────────────────────────────────────────── */
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer__contact-row a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}

.site-footer__contact-row a:hover { opacity: 0.8; }

/* ── Bottom bar ────────────────────────────────────────────────────────────── */
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
}

.site-footer__copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__legal a {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__legal a:hover { color: var(--text-muted); }

/* ── Mobile ≤ 600px ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-footer__inner {
    padding: 28px 16px 20px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 20px;
  }

  .site-footer__tagline { max-width: none; }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ── Tablet ≥ 601px and < 768px ────────────────────────────────────────────── */
@media (min-width: 601px) and (max-width: 767px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
