/* Category pages (Interior, etc.) */

.page-category {
  min-height: 100vh;
}

/* —— Site header —— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  width: 100%;
  min-height: calc(80px + 56px);
  /* padding: clamp(28px, 4vw, 48px) var(--page-padding); */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.12); */
  box-sizing: content-box;
}

.site-header__brand {
  position: relative;
  display: inline-block;
  max-width: 15em;
  transition: opacity 0.2s;
}

.site-header__label {
  font-family: var(--font-newyork);
  font-size: 1.7em;
}

.site-header__logo {
  position: absolute;
  top: -0.5em;
  left: 80%;
  width: 1.7em;
  height: auto;
}

header .site-header__logo {
  left: 90%;
}
footer .site-header__logo {
  left: 90%;
}

.site-nav {
  position: static;
  padding: 0;
  min-height: 0;
  flex: 1;
  justify-content: flex-end;
}

.site-nav .nav-list a[aria-current="page"],
.nav .nav-list a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* —— Category main / gallery —— */
.category-main {
  width: 100%;
}

.gallery--category {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(72px, 10vw, 140px);
}

/* —— Site footer (4-column layout per design) —— */
.footer.footer--site {
  padding: clamp(28px, 3.5vw, 44px) var(--page-padding) clamp(20px, 2.5vw, 32px);
}

.footer--site .footer-site {
  display: grid;
  grid-template-columns: minmax(200px, 26%) minmax(0, 1.15fr) minmax(0, 1fr) auto;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 0 clamp(16px, 2vw, 24px);
}

.footer-site__brand {
  display: block;
  line-height: 0;
  justify-self: start;
}

.footer-site__logo {
  display: block;
  width: clamp(168px, 17vw, 260px);
  height: auto;
}

.footer-site__address {
  justify-self: start;
  min-width: 0;
}

.footer-site__address .footer-address {
  margin-bottom: 0;
  gap: 2px;
  line-height: 1.5;
}

.footer-site__contact {
  text-align: left;
  justify-self: start;
  min-width: 0;
}

.footer-site__contact .footer-phone {
  margin-bottom: 4px;
  line-height: 1.5;
}

.footer-site__contact .footer-email {
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-site__contact .footer-social {
  justify-content: flex-start;
  gap: 14px;
}

.footer--site .footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-site__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  padding: 0;
}

.footer--site .footer-contact-btn {
  padding: 10px 36px;
  white-space: nowrap;
}

.footer--site .footer-copy {
  padding: 0;
  margin: 0;
  line-height: 1.4;
}

/* —— Tablet —— */
@media (max-width: 1024px) {
  .footer--site .footer-site {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "address contact"
      "cta cta";
  }

  .footer-site__brand {
    grid-area: brand;
  }

  .footer-site__address {
    grid-area: address;
  }

  .footer-site__contact {
    grid-area: contact;
    text-align: right;
  }

  .footer-site__contact .footer-social {
    justify-content: flex-end;
  }

  .footer-site__cta {
    grid-area: cta;
    justify-content: flex-end;
    justify-self: stretch;
    padding-top: 0;
  }
}

/* —— Mobile —— */
@media (max-width: 992px) {
  .site-header {
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: calc(43px + 30px);
    /* padding: 20px var(--page-padding); */
  }

  /* .site-header__logo {
    width: min(240px, 70vw);
    height: auto;
  } */

  .site-nav {
    width: 100%;
    justify-content: flex-end;
  }

  .site-nav .nav-toggle {
    display: flex;
  }

  .site-nav .nav-list {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: rgba(0, 0, 0, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
  }

  .site-nav.is-open .nav-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-nav.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-nav.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .gallery--category {
    padding-top: 32px;
  }

  .footer.footer--site {
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .footer--site .footer-site {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .footer-site__brand,
  .footer-site__address,
  .footer-site__contact,
  .footer-site__cta {
    width: 100%;
    min-width: 0;
  }

  .footer-site__contact {
    text-align: left;
  }

  .footer-site__contact .footer-social {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-site__cta {
    justify-content: flex-start;
  }

  .footer-site__address .footer-address span {
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
