/* ==========================================================================
   FOOTER — 4-column layout matching the existing redesigned footer
   Depends on: variables.css, base.css, components.css
   ========================================================================== */


/* ══════════════════════════════════════════════════════════════════════════
   FOOTER WRAPPER
   ══════════════════════════════════════════════════════════════════════════ */

.ez-footer {
  background: var(--ezee-navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--ezee-text-sm);
}

.ez-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--ezee-duration-fast) var(--ezee-ease);
}

.ez-footer a:hover {
  color: var(--ezee-white);
  text-decoration: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   MAIN FOOTER BODY
   ══════════════════════════════════════════════════════════════════════════ */

.ez-footer__main {
  padding: var(--ezee-space-16) 0 var(--ezee-space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── 4-column grid ── */
.ez-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 1.2fr;
  gap: var(--ezee-space-10);
}

/* ── Column heading ── */
.ez-footer__heading {
  font-size: var(--ezee-text-xs);
  font-weight: var(--ezee-weight-semibold);
  letter-spacing: var(--ezee-tracking-widest);
  text-transform: uppercase;
  color: var(--ezee-white);
  margin-bottom: var(--ezee-space-5);
  line-height: 1;
}

/* ── Nav link lists ── */
.ez-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ezee-space-3);
}

.ez-footer__links li a {
  font-size: var(--ezee-text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  transition: color var(--ezee-duration-fast) var(--ezee-ease),
              padding-left var(--ezee-duration-fast) var(--ezee-ease);
}

.ez-footer__links li a:hover {
  color: var(--ezee-white);
  padding-left: 4px;
}


/* ══════════════════════════════════════════════════════════════════════════
   CONTACT COLUMN
   ══════════════════════════════════════════════════════════════════════════ */

.ez-footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--ezee-space-5);
}

/* Address with map icon */
.ez-footer__map-link {
  display: flex;
  align-items: flex-start;
  gap: var(--ezee-space-2);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65) !important;
}

.ez-footer__map-link svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--ezee-primary-light);
}

.ez-footer__map-link:hover {
  color: var(--ezee-white) !important;
}

/* Phone numbers */
.ez-footer__phones {
  display: flex;
  flex-direction: column;
  gap: var(--ezee-space-2);
}

.ez-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--ezee-space-2);
  font-weight: var(--ezee-weight-medium);
  font-size: var(--ezee-text-sm);
}

.ez-footer__phone svg {
  color: var(--ezee-primary-light);
  flex-shrink: 0;
}

.ez-footer__phone--tollfree {
  font-size: var(--ezee-text-xs);
  opacity: 0.7;
}

/* Business hours */
.ez-footer__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--ezee-space-1) var(--ezee-space-4);
  font-size: var(--ezee-text-xs);
  line-height: 1.6;
}

.ez-footer__hours strong {
  color: rgba(255, 255, 255, 0.55);
  font-weight: var(--ezee-weight-medium);
  white-space: nowrap;
}

.ez-footer__hours span {
  color: rgba(255, 255, 255, 0.72);
}


/* ══════════════════════════════════════════════════════════════════════════
   SOCIAL / CREDENTIALS COLUMN
   ══════════════════════════════════════════════════════════════════════════ */

/* Social icons row */
.ez-footer__social {
  display: flex;
  align-items: center;
  gap: var(--ezee-space-3);
  margin-bottom: var(--ezee-space-6);
}

.ez-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ezee-radius-md);
  color: rgba(255, 255, 255, 0.65) !important;
  transition:
    background var(--ezee-duration-fast) var(--ezee-ease),
    border-color var(--ezee-duration-fast) var(--ezee-ease),
    color var(--ezee-duration-fast) var(--ezee-ease),
    transform var(--ezee-duration-fast) var(--ezee-ease-spring);
}

.ez-footer__social-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--ezee-white) !important;
  transform: translateY(-2px);
}

/* Credential badges */
.ez-footer__badges {
  display: flex;
  align-items: center;
  gap: var(--ezee-space-4);
  margin-bottom: var(--ezee-space-6);
}

.ez-footer__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--ezee-space-2) var(--ezee-space-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ezee-radius-sm);
  text-align: center;
}

.ez-footer__badge-text {
  font-size: var(--ezee-text-sm);
  font-weight: var(--ezee-weight-extrabold);
  color: var(--ezee-white);
  letter-spacing: 0.08em;
  line-height: 1;
}

.ez-footer__badge-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* Apply CTA in footer */
.ez-footer__apply-cta {
  display: flex;
  flex-direction: column;
  gap: var(--ezee-space-2);
}

.ez-footer__apply-note {
  font-size: var(--ezee-text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  line-height: 1.4;
}


/* ══════════════════════════════════════════════════════════════════════════
   FOOTER BOTTOM BAR
   ══════════════════════════════════════════════════════════════════════════ */

.ez-footer__bottom {
  padding: var(--ezee-space-5) 0;
}

.ez-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ezee-space-4);
}

.ez-footer__copyright {
  font-size: var(--ezee-text-xs);
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.ez-footer__legal-links {
  display: flex;
  align-items: center;
  gap: var(--ezee-space-5);
}

.ez-footer__legal-links a {
  font-size: var(--ezee-text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.ez-footer__legal-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .ez-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--ezee-space-8) var(--ezee-space-10);
  }
}

@media (max-width: 640px) {
  .ez-footer__main {
    padding: var(--ezee-space-10) 0 var(--ezee-space-8);
  }

  .ez-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--ezee-space-8);
  }

  .ez-footer__col--contact {
    order: -1;
  }

  .ez-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ezee-space-3);
  }

  .ez-footer__legal-links {
    gap: var(--ezee-space-4);
  }
}
