/**
 * Footer-specific styles.
 *
 * Sticky footer achieved via body flex + .zt-main flex-grow.
 */

/* ── Sticky Footer ── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.zt-main {
  flex-grow: 1;
}

/* ── Footer Base ── */
.zt-footer {
  background: var(--zb-bg-alt);
  color: var(--zb-text);
  margin-top: auto;
}

.zt-footer a {
  color: var(--zb-text-light);
  text-decoration: none;
  transition: color 200ms ease;
}

.zt-footer a:hover {
  color: var(--zb-primary);
}

/* ── Footer Logo ── */
.zt-footer__logo {
  margin-bottom: var(--zb-space-xl);
  text-align: center;
}

.zt-footer-logo-img {
  max-height: 60px;
  width: auto;
}

.zt-footer-site-title {
  font-family: var(--zb-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--zb-heading);
}

/* ── Footer Widget Columns ── */
.zt-footer__widgets {
  padding: 60px 0;
}

.zt-footer__columns {
  display: grid;
  grid-template-columns: repeat(var(--zt-footer-cols, 4), 1fr);
  gap: 40px;
}

.zt-footer__col .widget-title {
  font-family: var(--zb-font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--zb-heading);
  padding-bottom: var(--zb-space-sm);
  border-bottom: 2px solid var(--zb-primary);
  display: inline-block;
}

.zt-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zt-footer__col li {
  padding: 6px 0;
}

.zt-footer__col a {
  color: var(--zb-text-light);
}

.zt-footer__col a:hover {
  color: var(--zb-primary);
}

/* ── Footer Bottom Bar ── */
.zt-footer__bottom {
  border-top: 1px solid var(--zb-border);
  padding: 20px 0;
}

.zt-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--zb-space-md);
}

.zt-footer__bottom-inner--centered {
  justify-content: center;
  text-align: center;
}

.zt-footer__copyright {
  font-size: 0.875rem;
  color: var(--zb-text-light);
}

/* ── Footer Navigation ── */
.zt-footer__nav .zt-footer__menu {
  display: flex;
  gap: var(--zb-space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.zt-footer__menu a {
  font-size: 0.875rem;
}

/* ── Footer Social ── */
.zt-footer__social .zt-social-icons {
  gap: var(--zb-space-sm);
}

.zt-footer__social .zt-social-icon {
  color: var(--zb-text-light);
}

.zt-footer__social .zt-social-icon:hover {
  color: var(--zb-primary);
}

/* ── Minimal Footer ── */
.zt-footer--minimal {
  padding: 0;
}

.zt-footer--minimal .zt-footer__bottom {
  border-top: none;
  padding: var(--zb-space-lg) 0;
}

.zt-footer--minimal .zt-footer__bottom-inner {
  flex-direction: column;
  gap: var(--zb-space-sm);
}

/* ── CTA Section (widget footer variant) ── */
.zt-footer__cta {
  background: var(--zb-primary);
  color: #fff;
  text-align: center;
  padding: 50px 0;
}

.zt-footer__cta-heading {
  font-family: var(--zb-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--zb-space-sm);
  color: #fff;
}

.zt-footer__cta-text {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin-bottom: var(--zb-space-lg);
  max-width: 520px;
  margin-inline: auto;
}

.zt-footer__cta-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.zt-footer__cta-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--zb-transition-fast);
}

.zt-footer__cta-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.zt-footer__cta-input:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.2);
}

.zt-footer__cta-btn {
  padding: 12px 24px;
  background: #fff;
  color: var(--zb-primary);
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--zb-transition-fast), color var(--zb-transition-fast);
}

.zt-footer__cta-btn:hover {
  background: var(--zb-accent);
  color: #fff;
}

/* ── Responsive: 768px ── */
@media (max-width: 767px) {
  .zt-footer__columns {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--zb-space-lg);
  }

  .zt-footer__widgets {
    padding: 40px 0;
  }

  .zt-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .zt-footer__nav .zt-footer__menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--zb-space-md);
  }

  .zt-footer__social .zt-social-icons {
    justify-content: center;
  }

  .zt-footer__cta-form {
    flex-direction: column;
  }

  .zt-footer__cta-input {
    border-right: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    margin-bottom: var(--zb-space-sm);
  }

  .zt-footer__cta-btn {
    border-radius: 4px;
  }
}

/* ── Responsive: 480px ── */
@media (max-width: 479px) {
  .zt-footer__columns {
    grid-template-columns: 1fr;
  }
}
