/* ==========================================================
   Footer — styles for includes/footer.php
   Self-contained: defines its own colours so it can be loaded
   on pages that do not pull in styles.css (e.g. editor profiles).
   ========================================================== */

.site-footer {
  --footer-bg: #222;
  --footer-fg: #fff;
  --footer-muted: #bdbdbd;
  --footer-accent: #ff6600;
  --footer-rule: #3a3a3a;

  background: var(--footer-bg);
  color: var(--footer-fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 40px 20px 20px;
  margin-top: 40px;
}

/* ---------- top: four columns ---------- */

/* Quick Links carries two sub-columns of long service names, so it gets
   the widest share; the other three only hold short lines. */
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr 0.85fr 1.1fr;
  gap: 30px 36px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--footer-fg);
}

.site-footer h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 6px;
  background: var(--footer-accent);
  border-radius: 2px;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--footer-accent);
  text-decoration: underline;
}

/* ---------- contact ---------- */

.site-footer .footer-contact span {
  color: var(--footer-fg);
  font-weight: 700;
  margin-right: 4px;
}

/* ---------- quick links ---------- */

.site-footer .footer-links-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.site-footer .footer-links-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-links-columns li {
  margin-bottom: 4px;
}

/* ---------- social ---------- */

.site-footer .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--footer-rule);
  border-radius: 50%;
  color: var(--footer-fg);
  font-size: 1rem;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.site-footer .social-icons a:hover,
.site-footer .social-icons a:focus-visible {
  background: var(--footer-accent);
  border-color: var(--footer-accent);
  color: #fff;
  text-decoration: none;
}

/* ---------- newsletter ---------- */

.site-footer .footer-newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer .footer-newsletter input[type="email"] {
  flex: 1 1 150px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--footer-rule);
  border-radius: 6px;
  background: #2e2e2e;
  color: var(--footer-fg);
  font: inherit;
}

.site-footer .footer-newsletter input[type="email"]::placeholder {
  color: #8f8f8f;
}

.site-footer .footer-newsletter input[type="email"]:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 1px;
}

.site-footer .footer-newsletter button {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--footer-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease;
}

.site-footer .footer-newsletter button:hover,
.site-footer .footer-newsletter button:focus-visible {
  background: #e65c00;
}

/* ---------- bottom bar ---------- */

.site-footer .footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--footer-rule);
  text-align: center;
  font-size: 0.85rem;
  color: var(--footer-muted);
}

.site-footer .footer-bottom p {
  margin: 0;
}

.site-footer .orange {
  color: var(--footer-accent);
}

.site-footer .arrow-right {
  font-style: normal;
  padding: 0 2px;
}

/* ---------- responsive ---------- */

@media screen and (max-width: 900px) {
  .site-footer .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 560px) {
  .site-footer {
    padding: 30px 16px 16px;
    text-align: center;
  }
  .site-footer .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .site-footer h3::after {
    margin-left: auto;
    margin-right: auto;
  }
  .site-footer .footer-links-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer .social-icons,
  .site-footer .footer-newsletter form {
    justify-content: center;
  }
}
