/* ============================================================
   FOOTER — dark version (preferred over Figma 69:7418, which is
   saved in _archive/footer-figma/). Continues the dark section
   above it (Film / Contact), in the same language as the lists:
   1px lines everywhere, 16px bold uppercase labels, 18px links with ↗.

     ─────────────────────────────────────────────────────────────
     CSUKI                    MENU        CONTACT        ELSEWHERE
                              Music       email ↗        Instagram ↗ …
     ─────────────────────────────────────────────────────────────
     © 2026 Márton Csukás                 [SOUND ENGINEER][MUSIC PRODUCER]

   One row on a 5-part grid: CSUKI takes 2 parts, each column 1 part,
   so the three columns have the same width and the same gaps, and
   ELSEWHERE keeps breathing room on the right.
   ============================================================ */

.footer {
  padding: 6rem var(--gutter) var(--space-page);   /* more air after Film / Contact */
  font-size: var(--fs-text);
  line-height: var(--lh-body);
}

.footer__cols {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  column-gap: var(--section-gap);
  align-items: start;
  padding: var(--section-gap) 0 var(--section-pad);
  border-top: var(--line);
}
.footer__right { display: contents; }

/* CSUKI, top-aligned with the labels (pulled up by the font's own
   space above capitals, so the cap tops line up) */
.footer__name {
  margin: -0.17em 0 0;
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  text-transform: uppercase;
}
.footer__name a { text-decoration: none; color: inherit; }

.footer__group { margin: 0; min-width: 0; }
.footer__label {
  margin: 0 0 0.75rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Links: no underline at rest, line grows from the left on hover (like
   the nav and the ↗ links in the lists) */
.footer a { text-decoration: none; }
.footer__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
}
.footer__list a span:first-child {
  overflow-wrap: anywhere;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.footer__list a:hover span:first-child,
.footer__list a:focus-visible span:first-child { background-size: 100% 1px; }
.footer__menu a { text-transform: uppercase; }
/* ↗ nudges toward where it points, like the other ↗ links */
.footer__list .glyph { display: inline-block; transition: transform 0.35s var(--ease-out); }
.footer__list a:hover .glyph { transform: translate(2px, -2px); }

/* Bottom line: copyright left, role tags right */
.footer__bottom {
  display: flex;
  align-items: flex-start;              /* © level with the tags */
  justify-content: space-between;
  gap: var(--space-stack);
  padding-top: var(--space-stack);
  border-top: var(--line);
  font-size: var(--fs-small);
}
.footer__bottom p { margin: 0; }
/* Role tags, as in the hero: blue boxes, side by side */
.footer__roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 4px;
}
.footer__roles .tag { font-size: var(--fs-small); }

/* ---------- Tablet: CSUKI on its own row, the three columns under it ---------- */
@media (max-width: 1023px) {
  .footer { padding-top: 5rem; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--section-gap); }
  .footer__name { grid-column: 1 / -1; }
}

/* ---------- Phone: CSUKI, then MENU | ELSEWHERE, then CONTACT ---------- */
@media (max-width: 767px) {
  .footer { padding-top: 4rem; }
  .footer__cols {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-stack);
    padding: var(--section-gap) 0;
  }
  .footer__name { grid-column: 1 / -1; grid-row: 1; }
  .footer__cols > nav { grid-column: 1; grid-row: 2; }
  .footer__right > .footer__group:last-child { grid-column: 2; grid-row: 2; }
  .footer__right > .footer__group:first-child { grid-column: 1 / -1; grid-row: 3; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 0.75rem; }
  .footer__roles { flex-wrap: wrap; }
}

/* Home page: white footer, continuing the white Services section above
   (the About page keeps the dark one, after the dark Contact section) */
.footer--light { padding-top: 4rem; background: var(--color-bg); color: var(--color-text); }

/* About page: the Contact section above already ends with 8rem of space */
.page-about .footer { padding-top: 0; }
