/* ==========================================================================
   SAFA BUILDERS — Footer
   ========================================================================== */

.site-footer {
  background-color: var(--clr-primary-dark);
  color: rgba(255,255,255,0.75);
  padding-top: clamp(var(--sp-12), 6vw, var(--sp-20));
}

/* ── Footer Top ── */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(var(--sp-8), 4vw, var(--sp-12));
  padding-bottom: clamp(var(--sp-10), 5vw, var(--sp-16));
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── Footer Brand ── */
.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  margin-bottom: var(--sp-5);
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius);
}

.footer-logo-text {}

.footer-logo-name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  display: block;
  letter-spacing: -0.01em;
}

.footer-logo-tagline {
  font-size: var(--fs-xs);
  color: var(--clr-secondary);
  letter-spacing: 0.04em;
  display: block;
}

.footer-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--sp-6);
  max-width: 320px;
}

/* ── Footer Social ── */
.footer-social {
  display: flex;
  gap: var(--sp-3);
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background-color: var(--clr-secondary);
  border-color: var(--clr-secondary);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.75);
  transition: fill 0.2s ease;
}

.footer-social-link:hover svg {
  fill: var(--clr-white);
}

/* ── Footer Column ── */
.footer-col {}

.footer-col-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  position: relative;
  padding-bottom: var(--sp-3);
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--clr-secondary);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-link:hover {
  color: var(--clr-secondary);
  padding-left: var(--sp-2);
}

.footer-link svg {
  width: 14px;
  height: 14px;
  fill: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

/* ── Footer Contact Info ── */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-item {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background-color: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--clr-secondary);
}

.footer-contact-text {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  line-height: var(--lh-relaxed);
}

.footer-contact-text a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
}

.footer-contact-text a:hover {
  color: var(--clr-secondary);
}

/* ── Footer Contact — Type B (list structure, raw SVG without icon wrapper) ── */
/* Services, projects, blog, blog-post footers place SVGs directly in the item  */
.footer-contact-item > svg {
  width: 16px;
  height: 16px;
  fill: var(--clr-secondary);
  flex-shrink: 0;
  margin-top: 3px; /* Optically align icon with first text line */
}

.footer-contact-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--clr-secondary);
}

/* ── Footer Bottom ── */
.footer-bottom {
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-copyright {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.45);
}

.footer-copyright a {
  color: var(--clr-secondary);
  transition: opacity 0.2s ease;
}

.footer-copyright a:hover {
  opacity: 0.8;
}

.footer-legal-links {
  display: flex;
  gap: var(--sp-5);
}

.footer-legal-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--clr-secondary);
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-legal-links {
    justify-content: center;
  }
}
