/**
 * Footer styles for the Aksy portal.
 *
 * Self-contained (enqueued site-wide), so the CTA buttons do not depend on the
 * front-page stylesheet. Uses the brand green palette with a layered gradient
 * and a multi-colour accent line so the footer reads as a distinct block from
 * the dark QR section above it.
 *
 * @package aksy-portal
 * @since 1.0.0
 */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0F4034 0%, #0A3329 55%, #072A21 100%);
  color: rgba(255, 255, 255, 0.72);
  /* Branded gradient hairline that visually separates the footer from the
     dark QR section that precedes it. */
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--pine-soft), var(--apricot) 55%, var(--gold)) 1;
}

.site-footer a {
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

/* ===== CTA band ===== */
.footer-cta {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 30px 24px;
}

.footer-cta-text h3 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.footer-cta-text p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
}

.footer-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 14.5px;
  background: var(--apricot);
  color: #fff;
  border: 1.5px solid var(--apricot);
}

.footer-btn:hover {
  background: #D27424;
  border-color: #D27424;
  transform: translateY(-2px);
}

.footer-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.footer-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ===== Main grid ===== */
.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 52px 0 40px;
}

/* Brand column */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
}

.footer-logo-text small {
  display: block;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 0.03em;
  margin-top: 3px;
}

.footer-about {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 18px;
  max-width: 340px;
}

.footer-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contacts .fc-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: var(--apricot-soft);
}

.footer-contacts a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-contacts a:hover {
  color: #fff;
}

/* Navigation columns */
.footer-title {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--apricot);
}

.footer-col a {
  display: block;
  font-size: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 11px;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

/* Connect column */
.footer-connect-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 14px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-social a {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 14px;
}

.footer-social a:hover {
  background: var(--apricot);
  border-color: var(--apricot);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Government resources ===== */
.footer-gov {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 0;
}

.footer-gov-title {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
  margin-bottom: 16px;
}

.gov-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 28px;
}

.gov-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gov-links a::before {
  content: "»";
  color: var(--apricot-soft);
  font-weight: 800;
}

.gov-links a:hover {
  color: #fff;
}

/* ===== Bottom bar ===== */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 6px;
}

.footer-legal {
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  margin: 0 0 2px;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 9px 16px;
}

.footer-top:hover {
  background: var(--apricot);
  border-color: var(--apricot);
  color: #fff;
}

.footer-top-arrow {
  font-size: 15px;
  line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .footer-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .gov-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 32px;
  }

  .footer-cta-actions {
    width: 100%;
  }

  .footer-btn {
    flex: 1;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile: stack the footer CTA buttons full width. */
@media (max-width: 640px) {
  .footer-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .footer-btn {
    flex: none;
    width: 100%;
    text-align: center;
  }
}
