/*
 * Site footer (.ccx-footer). Reusable on any page that loads type-system.css and this file
 * and uses the footer markup from index.html. Currently used on the homepage only.
 * On other pages, point "Get a Free Quote" at office-cleaning-quote-chicago.html instead of #instant-quote.
 */
.ccx-footer {
  --footer-bg: #0A1F3B;
  --footer-text: #B8C7DA;   /* muted light blue-gray for links and secondary text */
  --footer-muted: #8FA2BB;  /* bottom bar */
  --footer-line: rgba(255, 255, 255, .12);
  --footer-yellow: #FFC72C;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.ccx-footer ul { margin: 0; padding: 0; list-style: none; }
.ccx.ccx-footer a { color: var(--footer-text); text-decoration: none; transition: color .15s; }
.ccx.ccx-footer a:hover { color: #fff; }
.ccx.ccx-footer a:focus-visible { outline: 3px solid var(--footer-yellow); outline-offset: 3px; border-radius: 2px; }

.ccx-footer__inner { padding-top: 56px; padding-bottom: 24px; }
.ccx-footer__grid { display: grid; grid-template-columns: minmax(270px, 1.35fr) repeat(4, minmax(0, 1fr)); gap: var(--space-xl); padding-bottom: 40px; }

/* Brand + contact */
.ccx-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.ccx-footer__logo { align-self: flex-start; }
.ccx-footer__logo img { display: block; width: auto; height: 42px; padding: 6px 10px; border-radius: 8px; background: #fff; }
.ccx-footer__brand p { margin: 0; max-width: 300px; color: var(--footer-text); }
.ccx-footer__contact { display: flex; flex-direction: column; gap: 4px; }
.ccx.ccx-footer a.ccx-footer__strong { color: #fff; font-weight: var(--fw-semibold); }
.ccx-footer__email { white-space: nowrap; }
.ccx-footer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.ccx.ccx-footer a.ccx-footer__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 20px; border-radius: 10px; background: var(--footer-yellow); color: #0A1F3B; font-size: var(--fs-btn); font-weight: var(--fw-semibold); }
.ccx.ccx-footer a.ccx-footer__cta:hover { background: #f2b800; color: #0A1F3B; }
.ccx-footer__social { display: flex; gap: 16px; }
.ccx.ccx-footer .ccx-footer__social a { font-weight: var(--fw-medium); }

/* Link columns */
.ccx .ccx-footer__heading { margin: 0 0 14px; font-family: var(--font-display); font-size: var(--fs-small); font-weight: var(--fw-display); letter-spacing: 0; line-height: 1.3; color: #fff; }
.ccx-footer__col ul { display: flex; flex-direction: column; gap: 8px; }

/* Bottom bar */
.ccx-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px var(--space-lg); padding-top: 16px; border-top: 1px solid var(--footer-line); font-size: var(--fs-xs); color: var(--footer-muted); }
.ccx-footer__legal { display: flex; flex-wrap: wrap; align-items: center; }
.ccx-footer__legal li + li::before { content: "·"; margin: 0 10px; color: var(--footer-muted); }
.ccx.ccx-footer .ccx-footer__legal a { color: var(--footer-muted); }
.ccx.ccx-footer .ccx-footer__legal a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1199.98px) {
  .ccx-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px var(--space-xl); }
  .ccx-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; }
  .ccx-footer__brand p { max-width: 340px; }
  .ccx-footer__actions { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .ccx-footer__inner { padding-top: 44px; }
  .ccx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-bottom: 32px; }
  .ccx-footer__brand { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .ccx-footer__logo { align-self: flex-start; }
}
@media (max-width: 575.98px) {
  .ccx-footer__actions { flex-direction: column; align-items: stretch; }
  .ccx.ccx-footer a.ccx-footer__cta { width: 100%; }
  .ccx-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 359.98px) {
  .ccx-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .ccx-footer__email { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .ccx.ccx-footer a { transition: none; } }
