/*
 * Aftab Gallery — site-wide pieces (every page): the full-screen menu, the newsletter band and the footer.
 * Built by inc/aftab-home.php. Body text is justified with the last line left (house rule).
 */

:root {
  --ah-ground: #f2f2f2;
  --ah-surface: #fff;
  --ah-stone: #e9e6e1;
  --ah-ink: #1e1e1e;
  --ah-head: #2b2b2b;
  --ah-body: #4a4a4a;
  --ah-muted: #6b6b6b;
  --ah-line: #d6d3ce;
  --ah-bronze: #7a5a38;
  --ah-serif: cormorant, "Cormorant", "Cormorant Garamond", georgia, serif;
  --ah-sans: "Jost", "Helvetica Neue", arial, sans-serif;
  --ah-section: clamp(72px, 9vw, 140px);
  --ah-gap: clamp(16px, 2.4vw, 40px);
}

/* ---------- shared ---------- */
.ah-wrap {
  width: 90%;
  max-width: 1668px;
  margin-left: auto;
  margin-right: auto;
}

.ah-sr,
.ah-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

.ah-textlink {
  display: inline-block;
  font-family: var(--ah-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ah-ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.ah-textlink:hover,
.ah-textlink:focus-visible {
  color: var(--ah-bronze);
}

.ah-eyebrow {
  font-family: var(--ah-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ah-bronze);
  margin: 0 0 18px;
  text-align: left;
}

/* ---------- full-screen menu ---------- */
body.ah-menu-open {
  overflow: hidden;
}

.ah-menu {
  position: fixed;
  inset: 0;
  top: var(--mutu-admin-bar-height, 0px);
  z-index: 1000;
  overflow-y: auto;
  color: var(--ah-ink);
  /* Glass: the page shows through, clearest at the sides. */
  background: linear-gradient(90deg,
      rgba(242, 242, 242, 0.08) 0%,
      rgba(242, 242, 242, 0.5) 12%,
      rgba(242, 242, 242, 0.62) 50%,
      rgba(242, 242, 242, 0.5) 88%,
      rgba(242, 242, 242, 0.08) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  opacity: 0;
  transition: opacity 0.45s ease;
}

@media (max-width: 899px) {
  .ah-menu {
    /* One column on the left: a little more glass behind the words. */
    background: linear-gradient(90deg,
        rgba(242, 242, 242, 0.7) 0%,
        rgba(242, 242, 242, 0.62) 60%,
        rgba(242, 242, 242, 0.2) 100%);
  }
}

.ah-menu[hidden] {
  display: none;
}

.ah-menu.is-open {
  opacity: 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ah-menu {
    background: rgba(242, 242, 242, 0.97);
  }
}

.ah-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1668px;
  margin: 0 auto;
  height: 64px;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.ah-menu__logo img,
.ah-menu__logo svg {
  width: auto;
  height: 18px;
}

.ah-menu__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ah-ink);
  padding: 0;
}

.ah-menu__close svg {
  width: 26px;
  height: 26px;
}

.ah-menu__body {
  width: 90%;
  max-width: 1668px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 100px) 0 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--ah-gap);
}

@media (max-width: 899px) {
  .ah-menu__body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.ah-menu__col,
.ah-menu__foot {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ah-menu.is-open .ah-menu__col,
.ah-menu.is-open .ah-menu__foot {
  opacity: 1;
  transform: none;
}

.ah-menu.is-open .ah-menu__col:nth-child(2) {
  transition-delay: 0.08s;
}

.ah-menu.is-open .ah-menu__col:nth-child(3) {
  transition-delay: 0.16s;
}

.ah-menu.is-open .ah-menu__foot {
  transition-delay: 0.24s;
}

.ah-menu__label {
  font-family: var(--ah-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ah-bronze);
  margin: 0 0 18px;
}

.ah-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ah-menu a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ah-menu a:hover,
.ah-menu a:focus-visible,
.ah-menu a[aria-current="page"] {
  color: var(--ah-bronze);
}

.ah-menu a.ah-menu__big {
  font-family: var(--ah-serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  color: var(--ah-head);
}

.ah-menu a.ah-menu__sub {
  font-family: var(--ah-sans);
  font-size: 15px;
  color: var(--ah-body);
}

.ah-menu__col:first-child li:first-child {
  margin-bottom: 8px;
}

.ah-menu a.ah-menu__small {
  font-family: var(--ah-sans);
  font-size: 16px;
  color: var(--ah-ink);
}

/* Hover and the current page, after the colours above so it wins. */
.ah-menu a.ah-menu__big:hover,
.ah-menu a.ah-menu__sub:hover,
.ah-menu a.ah-menu__small:hover,
.ah-menu a.ah-menu__big:focus-visible,
.ah-menu a.ah-menu__sub:focus-visible,
.ah-menu a.ah-menu__small:focus-visible,
.ah-menu a[aria-current="page"] {
  color: var(--ah-bronze);
}

.ah-menu__foot {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(30, 30, 30, 0.1);
  padding-top: 22px;
  font-family: var(--ah-sans);
  font-size: 13px;
  color: var(--ah-body);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

@media (prefers-reduced-motion: reduce) {

  .ah-menu,
  .ah-menu__col,
  .ah-menu__foot {
    transition: none;
    transform: none;
  }
}

/* ---------- newsletter ---------- */
.ah-news {
  background: var(--ah-surface);
  padding: clamp(56px, 6vw, 88px) 0;
  margin-top: 40px;
  font-family: var(--ah-sans);
}

.ah-news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ah-gap);
  align-items: end;
}

@media (max-width: 899px) {
  .ah-news__grid {
    grid-template-columns: 1fr;
  }
}

.ah-news__title {
  font-family: var(--ah-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.2;
  color: var(--ah-head);
  margin: 0;
}

.ah-news__text {
  margin: 10px 0 0;
  color: var(--ah-body);
  font-size: 16px;
}

.ah-news__row {
  display: flex;
  border-bottom: 1px solid var(--ah-ink);
}

.ah-news__row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
  color: var(--ah-ink);
}

.ah-news__row button {
  border: 0;
  background: transparent;
  font-family: var(--ah-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ah-ink);
  cursor: pointer;
  padding: 0 0 0 16px;
}

.ah-news__row button:hover,
.ah-news__row button:focus-visible {
  color: var(--ah-bronze);
}

.ah-news__form.is-busy button {
  opacity: 0.5;
  pointer-events: none;
}

.ah-news__msg {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ah-muted);
}

.ah-news__msg.is-error {
  color: #9b2c22;
}

/* ---------- footer ---------- */
.ah-foot {
  padding: 56px 0 0;
  font-family: var(--ah-sans);
  font-size: 14px;
}

.ah-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--ah-gap);
}

@media (max-width: 899px) {
  .ah-foot__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }

  .ah-foot__brand {
    grid-column: 1 / -1;
  }
}

.ah-foot__brand img,
.ah-foot__brand svg {
  width: auto;
  height: 18px;
}

.ah-foot__line {
  color: var(--ah-muted);
  font-size: 13px;
  margin: 14px 0 0;
}

.ah-foot__h {
  margin: 0 0 14px;
  font-family: var(--ah-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ah-muted);
}

.ah-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ah-ink);
}

.ah-foot a,
.ah-copy-line a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ah-foot a:hover,
.ah-foot a:focus-visible,
.ah-copy-line a:hover,
.ah-copy-line a:focus-visible {
  color: var(--ah-bronze);
}

.ah-copy-line {
  font-family: var(--ah-sans);
  font-size: 12px;
  color: var(--ah-muted);
  padding: 48px 0 28px;
}

.ah-copy-line__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #ebe9e5;
}

.ah-copy-line p {
  margin: 0;
}

.ah-copy-line__legal {
  display: flex;
  gap: 18px;
}
