/* =====================================================
   SSUK Footer Styles
   Separate file so future page redesigns can reuse this footer.
   Currently loaded via ssuk/homepage library (front page only).
   ===================================================== */

.ssuk-footer {
  background-color: #442d72 !important;
  color: #fff !important;
  font-family: var(--font-sans);
  clear: both;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Ensure W3CSS link rules don't bleed into footer */
.ssuk-footer a,
.ssuk-footer a:hover,
.ssuk-footer a:visited {
  background-color: transparent !important;
}



/* Container utility — used by footer on all pages; also defined in homepage.css for front page */
.ssuk-container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 var(--container-pad, clamp(1rem, 4vw, 2rem));
}

/* ---- Newsletter strip ---- */
.ssuk-footer__newsletter {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 3rem 0;
}
.ssuk-footer__newsletter-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .ssuk-footer__newsletter-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
/* Mobile: form wrap full width, fields stacked edge-to-edge */
@media (max-width: 767px) {
  .ssuk-footer__newsletter-form-wrap {
    width: 100%;
  }
  .ssuk-footer__newsletter .ssuk-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .ssuk-newsletter-form__input,
  .ssuk-newsletter-form__btn {
    width: 100% !important;
    box-sizing: border-box;
  }
}
.ssuk-footer__newsletter-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.375rem;
}
.ssuk-footer__newsletter-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  max-width: 28rem;
  margin: 0;
}
.ssuk-footer__newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.ssuk-footer__newsletter-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  min-width: 230px;
  transition: background-color 0.2s, border-color 0.2s;
}
.ssuk-footer__newsletter-input::placeholder {
  color: rgba(255,255,255,0.45);
}
.ssuk-footer__newsletter-input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}
.ssuk-footer__newsletter-btn {
  background: #fff;
  color: #442d72;
  border: none;
  border-radius: 9999px;
  padding: 0.625rem 1.375rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.ssuk-footer__newsletter-btn:hover {
  background-color: rgba(255,255,255,0.9);
}

/* ---- Newsletter form ---- */
.ssuk-newsletter-form {
  width: 100%;
}
/* Hide Mailchimp's auto-rendered mergefields + actions — we inject our own row */
.ssuk-mc-hidden,
.ssuk-newsletter-form [id$="-mergefields"] {
  display: none !important;
}
.ssuk-newsletter-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .ssuk-newsletter-form__row {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}
.ssuk-newsletter-form__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.ssuk-newsletter-form__input::placeholder {
  color: rgba(255,255,255,0.5);
}
.ssuk-newsletter-form__input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.45);
  box-shadow: none;
  outline: none;
}
.ssuk-newsletter-form__btn {
  flex-shrink: 0 !important;
  width: 100% !important;
  justify-content: center !important;
  background: #fff !important;
  color: #442d72 !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.75rem 1.375rem !important;
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: background-color 0.2s;
}
@media (min-width: 768px) {
  .ssuk-newsletter-form__btn {
    width: auto !important;
    padding: 0.625rem 1.375rem !important;
  }
  .ssuk-newsletter-form__input {
    min-width: 280px;
  }
}
.ssuk-newsletter-form__btn:hover {
  background: rgba(255,255,255,0.9) !important;
  color: #442d72 !important;
}
.ssuk-newsletter-form__result {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* ---- Main footer grid ---- */
.ssuk-footer__main {
  padding: 4rem 0;
}
.ssuk-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .ssuk-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .ssuk-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Column: Brand ---- */
.ssuk-footer__brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: opacity 0.2s;
}
.ssuk-footer__brand-link:hover { opacity: 1; }
.ssuk-footer__brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}
.ssuk-footer__brand-link:hover .ssuk-footer__brand-logo {
  transform: scale(1.05);
}
.ssuk-footer__brand-logo svg {
  height: 40px;
  width: auto;
  display: block;
  /* No filter — white box lets the natural purple logo show through */
}
.ssuk-footer__brand-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.ssuk-footer__brand-country {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}
.ssuk-footer__brand-desc {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.ssuk-footer__social {
  display: flex;
  gap: 0.5rem;
}
.ssuk-footer__social-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s;
  border: none;
  flex-shrink: 0;
  box-sizing: border-box;
}
.ssuk-footer__social-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ---- Column: Links (Quick Links, Resources) ---- */
.ssuk-footer__col-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.25rem;
}
.ssuk-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ssuk-footer__link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
  display: inline-block;
}
.ssuk-footer__link:hover {
  color: #fff;
}

/* ---- Column: Contact ---- */
.ssuk-footer__contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ssuk-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.ssuk-footer__contact-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-sizing: border-box;
}
.ssuk-footer__contact-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 0.125rem;
}
.ssuk-footer__contact-value {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  display: block;
  line-height: 1.45;
}
a.ssuk-footer__contact-value:hover { color: #fff; }

/* ---- Bottom bar ---- */
.ssuk-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}
.ssuk-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
@media (min-width: 768px) {
  .ssuk-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.ssuk-footer__copyright {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.ssuk-footer__bottom-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ssuk-footer__bottom-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.ssuk-footer__bottom-link:hover { color: #fff; }
