:root {
  --ink: #101417;
  --deep: #071018;
  --deep-2: #0b1821;
  --gold: #b88a4c;
  --gold-2: #d9ad72;
  --paper: #f4f0e9;
  --paper-2: #faf7f1;
  --line: #d9cfc1;
  --muted: #777169;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.9;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 145px;
  align-items: center;
  min-height: 82px;
  padding: 0 24px;
  background: rgba(7, 16, 24, 0.97);
  border-bottom: 1px solid rgba(217, 173, 114, 0.15);
  backdrop-filter: blur(14px);
}

.brand-logo {
  width: 175px;
  max-height: 62px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 1.4vw, 24px);
  color: #eee;
  font-size: 12px;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  padding: 31px 0 26px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  width: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transition: width 0.3s ease;
}

.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--gold-2);
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  direction: ltr;
}

.language {
  color: #fff;
  font-size: 11px;
  opacity: 0.6;
}

.language.active {
  color: var(--gold-2);
  opacity: 1;
}

.menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  padding: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--gold-2);
}

.mobile-menu {
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  z-index: 45;
  display: grid;
  gap: 14px;
  padding: 22px 28px;
  color: #fff;
  background: rgba(7, 16, 24, 0.99);
  border-bottom: 1px solid rgba(217, 173, 114, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  pointer-events: none;
  transition: 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hero */
.page-hero {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: url("assets/exhibition-abgineh.jpg") center / cover no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient( 90deg, rgba(5, 13, 19, 0.28), rgba(5, 13, 19, 0.88) ), linear-gradient( 0deg, rgba(5, 13, 19, 0.45), transparent );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 92px;
  color: #fff;
  text-align: center;
}

.page-hero-content p, .section-heading small, .featured-content .eyebrow, .exhibitions-cta small {
  margin: 0;
  color: var(--gold-2);
  font: 11px Georgia, serif;
  letter-spacing: 2px;
  direction: ltr;
}

.page-hero-content h1 {
  margin: 12px 0 8px;
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 500;
}

.page-hero-content span {
  color: #ddd;
  font-size: 14px;
}

.page-hero-content i {
  display: block;
  width: 96px;
  height: 1px;
  margin: 25px auto 0;
  background: var(--gold);
}

/* Intro */
.exhibitions-intro {
  padding: 68px 0 30px;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0;
  font-size: 33px;
  font-weight: 500;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-heading.light h2 {
  color: #fff;
}

.section-heading.light p {
  color: #aaa;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.summary-grid article {
  padding: 27px 18px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.summary-grid article:last-child {
  border-left: 0;
}

.summary-grid strong {
  display: block;
  color: var(--gold);
  font-size: 32px;
  font-weight: 500;
}

.summary-grid span {
  color: var(--muted);
  font-size: 11px;
}

/* Featured */
.featured-exhibition {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  margin-top: 38px;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

.featured-image, .featured-image button, .featured-image img {
  height: 100%;
}

.gallery-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.featured-image img {
  min-height: 490px;
  transition: transform 0.6s ease;
}

.gallery-open:hover img {
  transform: scale(1.05);
}

.featured-image .gallery-open > span {
  position: absolute;
  right: 22px;
  bottom: 20px;
  padding: 8px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(7, 16, 24, 0.6);
  font-size: 11px;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.featured-content h2 {
  margin: 10px 0 18px;
  color: var(--gold-2);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.7;
}

.featured-content > p {
  color: #bbb;
  font-size: 13px;
}

.exhibition-details {
  margin: 0;
}

.exhibition-details div {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(217, 173, 114, 0.18);
}

.exhibition-details dt {
  color: var(--gold-2);
  font-size: 12px;
}

.exhibition-details dd {
  margin: 0;
  color: #ddd;
  font-size: 12px;
}

/* Timeline */
.exhibitions-list {
  padding: 76px 0;
}

.exhibition-timeline {
  position: relative;
}

.exhibition-item {
  display: grid;
  grid-template-columns: 120px 28px 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.exhibition-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  padding-top: 25px;
  text-align: left;
}

.timeline-date strong {
  display: block;
  color: var(--gold);
  font-size: 23px;
  font-weight: 500;
}

.timeline-date span {
  color: var(--muted);
  font-size: 10px;
}

.timeline-line {
  position: relative;
}

.timeline-line::before {
  position: absolute;
  top: 0;
  bottom: -26px;
  right: 50%;
  width: 1px;
  content: "";
  background: var(--line);
}

.exhibition-item:last-child .timeline-line::before {
  bottom: 50%;
}

.timeline-line::after {
  position: absolute;
  top: 34px;
  right: 50%;
  width: 13px;
  height: 13px;
  content: "";
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 50%;
  transform: translateX(50%);
}

.exhibition-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 285px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.card-image, .card-image button, .card-image img {
  height: 100%;
}

.card-image img {
  min-height: 285px;
  transition: transform 0.6s ease;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.card-content small {
  color: var(--gold);
  font-size: 11px;
}

.card-content h3 {
  margin: 8px 0 12px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.8;
}

.card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.card-content > span {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #805d32;
  font-size: 11px;
}

.no-photo {
  grid-template-columns: 360px 1fr;
}

.card-placeholder {
  display: grid;
  place-content: center;
  min-height: 285px;
  background: linear-gradient( 135deg, rgba(217, 173, 114, 0.18), rgba(7, 16, 24, 0.9) ), repeating-linear-gradient( 45deg, transparent 0 18px, rgba(255, 255, 255, 0.025) 19px 20px );
  color: var(--gold-2);
  text-align: center;
}

.card-placeholder span {
  font: 58px Georgia, serif;
}

.card-placeholder small {
  font: 10px Georgia, serif;
  letter-spacing: 2px;
}

/* Archive gallery */
.archive-gallery {
  padding: 72px 0;
  background: var(--deep);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.825fr 0.825fr;
  gap: 14px;
}

.gallery-grid figure {
  height: 390px;
  margin: 0;
  overflow: hidden;
}

.gallery-grid figure:nth-child(2), .gallery-grid figure:nth-child(3) {
  height: 300px;
  align-self: end;
}

.gallery-grid button, .gallery-grid img {
  height: 100%;
}

.gallery-grid img {
  transition: transform 0.6s ease;
}

.gallery-grid button:hover img {
  transform: scale(1.06);
}

.gallery-grid button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(5, 11, 15, 0.6), transparent 50%);
}

.gallery-grid button span {
  position: absolute;
  right: 18px;
  bottom: 13px;
  z-index: 2;
  color: var(--gold-2);
  font: 17px Georgia, serif;
}

/* Presence */
.presence-section {
  padding: 74px 0;
}

.presence-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: 6px;
}

.presence-grid article {
  min-height: 150px;
  padding: 25px 18px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.presence-grid article span {
  color: var(--gold);
  font-size: 17px;
}

.presence-grid article p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.presence-grid > i {
  color: var(--gold);
  text-align: center;
  font-size: 22px;
  font-style: normal;
}

/* CTA */
.exhibitions-cta {
  padding: 45px 0;
  background: linear-gradient(135deg, #c79b61, #9d713e);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.exhibitions-cta small {
  color: #352719;
}

.exhibitions-cta h2 {
  margin: 6px 0;
  font-size: 29px;
  font-weight: 500;
}

.exhibitions-cta p {
  margin: 0;
  color: #493725;
  font-size: 13px;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  padding: 10px 19px;
  color: var(--gold-2);
  background: var(--deep);
}

/* =====================================================
   FOOTER
===================================================== */
footer#contact {
  margin:0;
  padding:0;
  background:#071018;
  color:#ddd;
  border-top:3px solid var(--gold)
}

footer#contact .footer-grid {
  display:grid;
  grid-template-columns:320px repeat(4,1fr);
  gap:0;
  padding:35px 0 25px;
  align-items:start
}

footer#contact .footer-grid>div {
  padding:0 16px;
  margin:0;
  min-height:auto
}

footer#contact .footer-grid>div:not(:last-child) {
  border-left:1px solid rgba(255,255,255,.08)
}

.footer-brand {
  display:flex;
  align-items:flex-start;
  justify-content:center
}

.footer-logo {
  width:280px;
  max-width:100%;
  height:auto
}

footer#contact h4 {
  margin:0 0 10px;
  padding:0;
  color:var(--gold-2);
  font-size:15px
}

footer#contact a {
  display:block;
  margin:2px 0;
  color:#d8d8d8;
  font-size:12px;
  line-height:1.7
}

footer#contact p {
  margin:2px 0;
  font-size:12px;
  line-height:1.7
}

footer#contact .social {
  margin-top:8px;
  color:var(--gold-2);
  font-size:20px;
  letter-spacing:6px
}

footer#contact .copyright {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
  margin:0;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:11px
}

@media(max-width:1100px) {
  footer#contact .footer-grid {
    grid-template-columns:repeat(3,1fr)
  }

  .footer-brand {
    grid-column:1/-1
  }

}

@media(max-width:768px) {
  footer#contact .footer-grid {
    grid-template-columns:repeat(2,1fr);
    padding:24px 0 16px
  }

  footer#contact .copyright {
    flex-direction:column;
    gap:4px;
    text-align:center
  }

}

@media(max-width:520px) {
  footer#contact .footer-grid {
    grid-template-columns:1fr
  }

  footer#contact .footer-grid>div {
    padding:12px 0;
    border-left:0;
    border-bottom:1px solid rgba(255,255,255,.08);
    text-align:center
  }

  footer#contact .footer-grid>div:last-child {
    border-bottom:0
  }

  .footer-brand {
    justify-content:center
  }

  .footer-logo {
    width:220px
  }

}
