/* ==========================================================================
   TrulyCertify — Footer
   ========================================================================== */

.site-footer {
  background: var(--primary-dark);
  color: rgba(248, 246, 240, 0.78);
  padding: 4rem 0 0;
  margin-top: 4rem;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 3rem;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: rgba(248, 246, 240, 0.7);
  font-size: 0.92rem;
  transition: color var(--t-fast), transform var(--t-fast);
  display: inline-block;
}
.footer-col a:hover {
  color: var(--accent-light);
  transform: translateX(2px);
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
}
.footer-brand .brand-name {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.footer-brand .brand-tagline {
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.footer-brand .footer-desc {
  font-size: 0.9rem;
  color: rgba(248, 246, 240, 0.7);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.newsletter-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.newsletter-form input::placeholder { color: rgba(248, 246, 240, 0.5); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}
.newsletter-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background var(--t-fast);
}
.newsletter-form button:hover { background: var(--accent-dark); }

/* Contact details */
.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  color: rgba(248, 246, 240, 0.7);
  font-size: 0.9rem;
}
.footer-contact-item .icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Global / country grid */
.country-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
  list-style: none;
  padding: 0;
}
.country-grid li { margin: 0; }
.country-grid a {
  font-size: 0.82rem;
  color: rgba(248, 246, 240, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.country-grid a:hover { color: var(--accent-light); transform: translateX(2px); }
.country-grid .cc {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(30, 168, 137, 0.15);
  color: var(--accent-light);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* Footer bottom */
.footer-bottom {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 1.5rem;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 0.85rem;
  color: rgba(248, 246, 240, 0.55);
  line-height: 1.55;
}
.footer-copyright strong { color: rgba(248, 246, 240, 0.85); font-weight: 600; }
.brand-attribution {
  font-size: 0.78rem;
  color: rgba(248, 246, 240, 0.45);
  margin-top: 0.25rem;
  display: block;
}
.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(248, 246, 240, 0.6);
}

/* Responsive footer */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .country-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-bottom-links { justify-content: center; }
}
