/* ===== Footer Component ===== */
.site-footer {
  background-color: var(--color-deep-navy);
  color: var(--color-on-dark-text);
  padding-block: var(--space-7) var(--space-4);
  margin-top: auto;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-on-dark-text);
  margin-bottom: var(--space-3);
}

.site-footer__brand-link:hover,
.site-footer__brand-link:focus-visible {
  color: var(--color-burnt-orange);
}

.site-footer__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer__brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.site-footer__tagline {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-muted-text);
  max-width: 32ch;
  margin-bottom: 0;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  color: var(--color-on-dark-text);
  margin-bottom: var(--space-3);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__list li {
  margin: 0;
  padding: 0;
}

.site-footer__link {
  color: var(--color-on-dark-text);
  text-decoration: none;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  transition: color 0.2s ease;
  display: inline-block;
  padding-block: 2px;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--color-burnt-orange);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__address p {
  margin: 0;
  line-height: var(--leading-body);
}

.site-footer__bottom {
  border-top: 1px solid rgba(253, 245, 230, 0.2);
  padding-top: var(--space-4);
  text-align: center;
}

.site-footer__copyright {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-muted-text);
  margin: 0;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-top: 2px solid var(--color-burnt-orange);
  box-shadow: 0 -4px 12px rgba(27, 42, 74, 0.1);
  padding: var(--space-4) var(--container-gutter);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cookie-consent__text {
  flex: 1 1 300px;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
  margin: 0;
}

.cookie-consent__text a {
  color: var(--color-basil-green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cookie-consent__text a:hover,
.cookie-consent__text a:focus-visible {
  color: var(--color-burnt-orange);
}

.cookie-consent__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cookie-consent__button {
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-small);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: var(--leading-body);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.cookie-consent__button:focus-visible {
  outline: 2px solid var(--color-burnt-orange);
  outline-offset: 2px;
}

.cookie-consent__button--accept {
  background-color: var(--color-basil-green);
  color: var(--color-on-dark-text);
}

.cookie-consent__button--accept:hover,
.cookie-consent__button--accept:focus-visible {
  background-color: #1F4A2B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-interactive);
}

.cookie-consent__button--reject {
  background-color: transparent;
  color: var(--color-basil-green);
  border-color: var(--color-border-basil);
}

.cookie-consent__button--reject:hover,
.cookie-consent__button--reject:focus-visible {
  background-color: var(--color-basil-green);
  color: var(--color-on-dark-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-interactive);
}

/* Responsive */
@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__actions {
    flex-direction: column;
    gap: var(--space-2);
  }

  .cookie-consent__button {
    width: 100%;
  }
}
