/* ============================================================
   Footer — matches live Bricks layout
   Live site reference:
     - Section: padding 64px 0 0 (top only), bg --color-surface
     - Main row: 3 flex columns + visible 1px divider + bottom row
     - Headers: 12px aktiv-grotesk, weight 400, color --text-primary,
                no transform, no letter-spacing. ALL three identical.
   ============================================================ */

.site-footer {
  padding: var(--Space-2xl) 0 0; /* 64px top, no horizontal — inner container handles it */
  background: var(--color-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--body-s); /* 12px at 10px root */
  font-weight: 400;
}

/* ============================================================
   Main row — 3 flex columns
     Newsletter (wide) | Explore | Connect
   ============================================================ */

.site-footer__main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--Space-2xl); /* 90.5px between columns */
  padding: var(--Space-l); /* 45.2px inside container — matches live */
  align-items: flex-start;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--Space-2xs);
  min-width: 0;
}

/* Column proportions match live site widths exactly:
   Newsletter 569 : Explore 336 : Connect 336.
   Using flex: <grow> 0 0 so columns distribute purely by ratio,
   keeping the same proportions across viewport sizes. */
.site-footer__col--newsletter { flex: 569 0 0; }
.site-footer__col--explore    { flex: 336 0 0; }
.site-footer__col--connect    { flex: 336 0 0; }

/* All three headers use the same simple style — matches live */
.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--body-s);
  font-weight: 400;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
  padding: var(--Space-s) 0; /* live: 22.6px vertical padding, no horizontal */
}

/* ============================================================
   Newsletter form — email input + submit button
   ============================================================ */

.site-footer__newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--Space-s);
}

.site-footer__form-group {
  display: flex;
}

.site-footer__newsletter-input {
  width: 100%;
  max-width: 52.3rem; /* live input width 523px */
  padding: var(--Space-2xs) var(--Space-xs);
  font-family: var(--font-body);
  font-size: var(--body-s);
  color: var(--text-primary);
  background: var(--color-surface-l-5);
  border: 1px solid var(--text-primary-l-8);
  border-radius: var(--Radius-s);
  outline: none;
  transition: border-color var(--transition-base);
}

.site-footer__newsletter-input:focus {
  border-color: var(--text-primary);
}

.site-footer__newsletter-submit {
  padding: var(--Space-4xs) var(--Space-xs);
  font-family: var(--font-body);
  font-size: var(--body-s);
  font-weight: 400;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--text-primary-l-3);
  border-radius: var(--Radius-s);
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.site-footer__newsletter-submit:hover {
  background: var(--text-primary);
  color: var(--color-surface);
}

/* ============================================================
   Explore — vertical link list
   ============================================================ */

.site-footer__nav-links {
  list-style: none;
  margin: 0;
  padding: var(--Space-s) 0; /* matches live group padding */
  display: flex;
  flex-direction: column;
  gap: var(--Space-3xs);
}

.site-footer__nav-links a {
  font-size: var(--body-s);
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.site-footer__nav-links a:hover {
  color: var(--text-primary-d-10);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ============================================================
   Connect — Instagram + Email blocks, each with link + detail
   ============================================================ */

.site-footer__connect-list {
  display: flex;
  flex-direction: column;
  gap: var(--Space-xs);
  padding: var(--Space-s) 0;
}

.site-footer__connect-item {
  display: flex;
  flex-direction: column;
  gap: var(--Space-4xs);
}

.site-footer__connect-link {
  font-size: var(--body-s);
  color: var(--text-primary);
  text-decoration: underline; /* Always underlined — matches live */
  text-underline-offset: 0.2em;
  transition: color var(--transition-base);
}

.site-footer__connect-link:hover {
  color: var(--text-primary-d-10);
}

.site-footer__connect-detail {
  font-size: var(--body-s);
  color: var(--text-primary);
}

/* ============================================================
   Divider between main row and bottom row (1px, full width)
   ============================================================ */

.site-footer__divider {
  border: none;
  border-top: 1px solid var(--text-primary-l-8);
  margin: 0;
  width: 100%;
}

/* ============================================================
   Bottom row — © · Design · Terms · Privacy
   Live structure: 4 items distributed evenly across the full width
   with NO separators. Each item is centered in its own slot.
   ============================================================ */

.site-footer__bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding: var(--Space-s);
  font-size: var(--body-s);
  color: var(--text-primary);
}

.site-footer__bottom-item {
  flex: 1 1 0; /* distribute equally across the bar — matches live's even spread */
  text-align: center;
  font-size: var(--body-s);
  color: var(--text-primary);
  white-space: nowrap;
}

.site-footer__bottom a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

.site-footer__bottom a:hover {
  color: var(--text-primary-d-10);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Circular dot separator between items — matches live's fa-circle icon
   (5.3×5.3 px, rgb(97, 97, 95)). flex: 0 0 auto so the dot keeps its
   natural size while items take the remaining space equally. */
.site-footer__dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-primary-l-2); /* rgb(97,97,95) — exact match */
}

/* ============================================================
   Mobile ≤ 767px — stack columns, center everything
   ============================================================ */

@media (max-width: 767px) {
  .site-footer {
    padding: var(--Space-m) 0 0;
  }

  /* Newsletter spans the full width on top; Explore + Connect sit side by
     side in the row beneath (Explore left, Connect right) rather than
     stacking one-on-top-of-the-other. */
  .site-footer__main {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--Space-m);
    padding: var(--Space-m);
    align-items: flex-start;
  }

  .site-footer__col--newsletter { flex: 1 1 100%; }
  .site-footer__col--explore,
  .site-footer__col--connect    { flex: 1 1 0; min-width: 0; }

  /* Bottom row: the 4 items don't fit on a single line at phone widths, so
     lay them out two-and-two in a 2×2 grid (© | Design / Terms | Privacy).
     The dot separators only read as separators in one horizontal row, so
     hide them here. */
  .site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--Space-2xs) var(--Space-m);
    padding: var(--Space-s) var(--Space-m);
  }

  .site-footer__bottom-item {
    flex: 0 0 auto;
    white-space: normal; /* allow wrapping inside a half-width cell if needed */
  }

  .site-footer__dot {
    display: none;
  }
}

/* Visually hidden — accessible label utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
