: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;
}

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: 1000;
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 78px;
  padding: 0 clamp(20px, 3vw, 48px);
  background: rgba(5, 13, 20, 0.94);
  border-bottom: 1px solid rgba(217, 173, 114, 0.22);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding-block: 8px;
}

.brand-logo {
  width: clamp(150px, 14vw, 186px);
  height: 58px;
  object-fit: contain;
  object-position: right center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 28px);
  color: #eee;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  padding: 28px 0 25px;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  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: 12px;
  direction: ltr;
}

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

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

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(217, 173, 114, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--gold-2);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 78px;
  right: 0;
  left: 0;
  z-index: 45;
  display: grid;
  gap: 0;
  padding: 12px clamp(22px, 5vw, 48px) 20px;
  color: #fff;
  background: rgba(5, 13, 20, 0.985);
  border-bottom: 1px solid rgba(217, 173, 114, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  pointer-events: none;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.28);
  transition: 0.28s ease;
}

.mobile-menu a {
  padding: 12px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

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

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

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(155px, 190px) minmax(0, 1fr) auto;
    padding-inline: 20px;
  }

  .desktop-nav {
    gap: 14px;
    font-size: 11.5px;
  }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 78px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 70px;
    padding-inline: 14px;
  }

  .brand-logo {
    width: 142px;
    height: 50px;
  }

  .mobile-menu {
    top: 70px;
  }
}

/* Hero */
.page-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: url("assets/about-hero.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.86) ), linear-gradient( 0deg, rgba(5, 13, 19, 0.42), transparent );
}

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

.page-hero-content p, .section-heading small, .intro-content small, .history-copy small, .director-copy small, .visit-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 */
.museum-intro {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 55px;
  align-items: center;
  padding: 72px 0;
}

.intro-image {
  position: relative;
}

.intro-image img {
  min-height: 500px;
}

.image-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(7, 16, 24, 0.86);
  font-size: 11px;
}

.intro-content h2, .history-copy h2, .director-copy h2 {
  margin: 9px 0 18px;
  font-size: 35px;
  font-weight: 500;
  line-height: 1.55;
}

.intro-content p, .history-copy p, .director-copy p {
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 13px;
  color: #805d32;
  font-size: 13px;
}

/* Stats */
.museum-stats {
  background: var(--deep);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid article {
  padding: 35px 20px;
  text-align: center;
  border-left: 1px solid rgba(217, 173, 114, 0.25);
}

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

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

.stats-grid span {
  color: #ccc;
  font-size: 12px;
}

/* Headings */
.mission-section, .values-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 32px;
  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;
}

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

.mission-grid article {
  min-height: 245px;
  padding: 28px;
  border-left: 1px solid var(--line);
}

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

.mission-grid article > span {
  color: var(--gold);
  font-size: 34px;
}

.mission-grid h3 {
  margin: 18px 0 9px;
  font-size: 18px;
  font-weight: 500;
}

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

/* History */
.history-section {
  padding: 72px 0;
  background: var(--deep);
  color: #fff;
}

.history-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 65px;
}

.history-copy p {
  color: #bbb;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 10px;
  right: 56px;
  bottom: 10px;
  width: 1px;
  content: "";
  background: rgba(217, 173, 114, 0.35);
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding-bottom: 29px;
}

.timeline article:last-child {
  padding-bottom: 0;
}

.timeline article::before {
  position: absolute;
  top: 9px;
  right: 50px;
  width: 13px;
  height: 13px;
  content: "";
  background: var(--deep);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.timeline time {
  color: var(--gold-2);
  font-size: 16px;
}

.timeline h3 {
  margin: 0 0 5px;
  color: #eee;
  font-size: 16px;
  font-weight: 500;
}

.timeline p {
  margin: 0;
  color: #aaa;
  font-size: 12px;
}

/* Director */
.director-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 55px;
  padding: 72px 0;
}

.director-image img {
  min-height: 490px;
}

.director-copy blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  color: #7c592f;
  border-right: 2px solid var(--gold);
  background: rgba(184, 138, 76, 0.07);
  font-size: 18px;
  line-height: 2;
}

.director-copy strong {
  display: block;
  margin-top: 22px;
  color: #72532e;
  font-size: 13px;
}

/* Values */
.values-section {
  padding-top: 10px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
}

.values-grid article {
  padding: 25px 15px;
  text-align: center;
  border-left: 1px solid var(--line);
}

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

.values-grid span {
  color: var(--gold);
  font: 12px Georgia, serif;
}

.values-grid h3 {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
}

/* Gallery */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 72px;
}

.about-gallery figure {
  position: relative;
  height: 330px;
  margin: 0;
  overflow: hidden;
}

.about-gallery img {
  height: 100%;
  transition: transform 0.6s ease;
}

.about-gallery figure:hover img {
  transform: scale(1.06);
}

.about-gallery figcaption {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
}

.about-gallery figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(5, 11, 15, 0.8), transparent 55%);
}

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

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

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

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

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

.cta-actions {
  display: flex;
  gap: 10px;
}

.primary-button, .outline-button {
  display: inline-flex;
  justify-content: center;
  padding: 10px 19px;
}

.primary-button {
  color: var(--gold-2);
  background: var(--deep);
}

.outline-button {
  color: var(--deep);
  border: 1px solid 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
  }

}
