footer {
  background: var(--brand-blue);
  color: #fff;
  padding: 5.6rem 0 2.1rem;
}

.footer-grid {
  width: min(100% - 56px, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.45fr) repeat(3, minmax(160px, 0.7fr));
  gap: clamp(1.5rem, 3vw, 4rem);
  align-items: start;
}

.footer-brand-col {
  display: grid;
  gap: 1.8rem;
}

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

.footer-logo {
  width: var(--brand-logo-width, clamp(150px, 13vw, 185px));
  height: auto;
  max-width: 100%;
}

.footer-grid h4 {
  margin: 0 0 1.15rem;
  color: var(--brand-gold);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  line-height: 1.75;
  text-decoration: none;
}

.footer-links-col,
.footer-contact-col,
.footer-social-col {
  display: grid;
  gap: 0.2rem;
}

.footer-links-col a:hover,
.footer-social-col a:hover {
  color: #fff;
}

.footer-newsletter {
  max-width: 420px;
  padding: 1.05rem 1.15rem 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  box-shadow: none;
}

.footer-newsletter h4 {
  margin: 0 0 0.2rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
}

.footer-newsletter p {
  margin-bottom: 0.85rem;
  max-width: 38ch;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.footer-newsletter .newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.8rem;
  row-gap: 0.55rem;
  align-items: end;
}

.footer-newsletter input[type="email"] {
  min-width: 0;
  height: 34px;
  padding: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
  font: inherit;
}

.footer-newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.footer-newsletter button[type="submit"] {
  min-width: 104px;
  height: 28px;
  padding: 0 0.85rem;
  border: 1px solid #fff;
  border-radius: 5px !important;
  background: #fff;
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-newsletter button[type="submit"]:hover {
  background: transparent;
  color: #fff;
}

.footer-newsletter .newsletter-terms {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.45;
}

.footer-newsletter .newsletter-terms span,
.footer-newsletter .newsletter-terms a {
  font-size: inherit;
}

.footer-newsletter .newsletter-terms input {
  margin-top: 0.16rem;
}

.footer-newsletter .newsletter-terms a {
  text-decoration: underline;
}

.newsletter-alert {
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-blue);
}

.newsletter-alert.error {
  color: #9f1b1b;
  background: #ffe7e7;
}

.newsletter-alert.hidden {
  display: none;
}

.newsletter-alert .alert-close {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.56);
}

.footer-pdf-download {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--brand-gold);
  border-radius: 5px;
  background: var(--brand-gold);
  color: #fff !important;
  font-size: 0.82rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-pdf-btn:hover {
  background: #8f6425;
  border-color: #8f6425;
  color: #fff !important;
}

.footer-bottom {
  width: min(100% - 56px, 1280px);
  margin: 4rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
}

@media (max-width: 1023px) {
  footer {
    padding-top: 4rem;
  }

  .footer-grid {
    width: min(100% - 32px, 860px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-newsletter .newsletter-form {
    grid-template-columns: 1fr;
  }

  .footer-newsletter button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 767px) {
  footer {
    padding-top: 3.2rem;
  }

  .footer-grid,
  .footer-bottom {
    width: calc(100% - 24px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-newsletter {
    padding: 1.1rem;
  }

  .footer-social {
    flex-wrap: wrap;
  }
}
