/* =========================== */
/*           FOOTER           */
/* =========================== */

.footer {
    background: #000;
    color: var(--white);
    padding: 90px 0 50px;
    font-family: var(--font-serif);
    min-height: 260px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 120px;
    align-items: start;
    margin-bottom: 60px;
}

/* BRAND COLUMN */
.footer__logo-image {
    width: 220px;
    height: 40px;
    object-fit: contain;
    max-width: 100%;
    margin-bottom: 22px;
}

.footer__manifest {
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
    opacity: 0.85;
    max-width: 420px;
}

/* MENU COLUMNS */
.footer__menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer__link {
    text-transform: uppercase;
    font-family: var(--font-sans);
    letter-spacing: 0.12em;
    font-size: 13px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer__link:hover {
    opacity: 1;
}

/* COPYRIGHT */
.footer__bottom {
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
    margin-top: 20px;
    letter-spacing: 0.04em;
}

.footer {
    position: relative;
}

/* biała linia nad footerem */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: rgba(255,255,255,0.18);
}

/* spacing between menu and copyright */
.footer__bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .footer__menu--right {
        justify-self: end;
    }
}

/* -------------------------------------------- */
/*  TABLET / iPad  (768–1024px)                 */
/* -------------------------------------------- */

@media (max-width: 1024px) {
  .footer__inner {
      grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: center;
}

  .footer__logo-image {
    margin: 0 auto 22px;
  }

  .footer__manifest {
    max-width: 420px;
    margin: 0 auto 40px;
  }

   .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__menu--left,
  .footer__menu--right {
    justify-self: center;
  }
}

  .footer__copy {
    margin-top: 40px;
  }



/* -------------------------------------------- */
/*  MOBILE (≤767px)                             */
/* -------------------------------------------- */

@media (max-width: 767px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer__logo-image {
    margin: 0 auto 22px;
  }

  .footer__manifest {
    margin: 0 auto 40px;
  }

  .footer__menu {
    align-items: center;
  }
}
