/* ============================================================
   FOOTER COMPONENT
   Source: docs/wireframes/footer.html — class names copied verbatim.
   Tokens come from base.css :root — no hardcoded colour values
   except rgba(255,255,255,X) for translucent overlays, which is the
   wireframe's chosen tinting on a green ground.
   ============================================================ */

.site-footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  margin-top: 0;
}

/* ---------- Newsletter band ---------- */
.footer-newsletter {
  background: var(--color-primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-8) var(--container-pad);
}
.footer-newsletter-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.footer-newsletter-text h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-1);
}
.footer-newsletter-text p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
}
.footer-newsletter-body {
  flex: 1;
  max-width: 440px;
}
.footer-newsletter-form {
  display: flex;
  gap: var(--space-2);
}
.footer-newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-inverse);
  transition: border-color 0.15s, background 0.15s;
}
.footer-newsletter-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}
.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.footer-newsletter-form button {
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.footer-newsletter-form button:hover {
  background: var(--color-accent-dark);
}
.footer-newsletter-error {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.85);
}
.footer-newsletter-success {
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
}
.footer-newsletter-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
}
.footer-newsletter-success p {
  margin-top: var(--space-1);
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Main footer columns ---------- */
.footer-main {
  padding: var(--space-10) var(--container-pad) var(--space-8);
}
.footer-main-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* Brand column */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  text-decoration: none;
  margin-bottom: var(--space-4);
}
.footer-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-logo-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-inverse);
  line-height: 1.2;
}
.footer-logo-sub {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.footer-brand-desc {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-text-inverse);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}

/* Column headings */
.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Nav link lists */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.5;
}
.footer-links a:hover {
  color: var(--color-text-inverse);
}

/* Contact info */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}
.footer-contact-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}
.footer-contact-item a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-contact-item a:hover {
  color: var(--color-text-inverse);
}

/* ---------- Footer bottom ---------- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-4) var(--container-pad);
}
.footer-bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}
.footer-legal-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}
.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Narrow screens ----------
   Same columns, fewer per row (design-handover.md "Responsive strategy"). */
@media (max-width: 1024px) {
  .footer-main-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .footer-main-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-newsletter-form { flex-basis: 100%; max-width: none; min-width: 0; }
  .footer-newsletter-form input { width: 100%; min-width: 0; }
  .footer-legal-links { flex-wrap: wrap; }
}
