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

*, *::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.modal-open {
  overflow: hidden;
}

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

button, input {
  font: inherit;
}

button {
  color: 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: 390px;
  overflow: hidden;
  background: url("assets/national-hero.jpg") center / cover no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient( 90deg, rgba(5, 13, 19, 0.25), 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, .collection-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 */
.collection-intro {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 55px;
  align-items: center;
  padding: 72px 0;
}

.intro-content h2 {
  margin: 9px 0 18px;
  font-size: 35px;
  font-weight: 500;
}

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

.intro-image {
  position: relative;
}

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

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

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

.stats-grid article {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 108px;
  padding: 18px 14px;
  text-align: center;
  border-inline-end: 1px solid rgba(217, 173, 114, 0.25);
}

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

.stats-grid strong {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stats-grid strong span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.stats-grid article > span,
.stats-grid article > span > span {
  color: #ccc;
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 620px) {
  .stats-grid {
    grid-template-columns: 1fr;
    width: min(310px, calc(100% - 32px));
  }

  .stats-grid article {
    min-height: 92px;
    padding: 15px 12px;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(217, 173, 114, 0.25);
  }

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

/* Headings */
.works-section, .protection-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;
}

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

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: 0.3s ease;
}

.filter-tabs button:hover, .filter-tabs button.active {
  color: var(--gold-2);
  background: var(--deep);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 44px;
}

.search-form input {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  outline: 0;
}

.search-form input:focus {
  border-color: var(--gold);
}

.search-form button {
  border: 0;
  background: var(--deep);
  color: var(--gold-2);
  cursor: pointer;
}

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  min-width: 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 36px rgba(7, 16, 24, 0.12);
}

.work-card.is-hidden {
  display: none;
}

.work-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: right;
  cursor: pointer;
}

.work-image {
  position: relative;
  display: block;
  height: 285px;
  overflow: hidden;
}

.work-image img {
  height: 100%;
  transition: transform 0.6s ease;
}

.work-card:hover .work-image img {
  transform: scale(1.06);
}

.work-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(7, 16, 24, 0);
  transition: background-color 0.35s ease;
}

.work-card:hover .work-image::after {
  background: rgba(7, 16, 24, 0.3);
}

.work-image i {
  position: absolute;
  right: 50%;
  bottom: 50%;
  z-index: 2;
  padding: 8px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-style: normal;
  opacity: 0;
  transform: translate(50%, 60%);
  transition: 0.35s ease;
}

.work-card:hover .work-image i {
  opacity: 1;
  transform: translate(50%, 50%);
}

.work-content {
  display: block;
  padding: 20px;
}

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

.work-content strong {
  display: block;
  margin: 7px 0;
  font-size: 19px;
  font-weight: 500;
}

.work-content > span {
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  margin: 30px 0 0;
  padding: 25px;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Registration */
.registration-section {
  padding: 72px 0;
  background: var(--deep);
}

.registration-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-top: 44px;
}

.registration-steps::before {
  position: absolute;
  top: 25px;
  right: 7%;
  left: 7%;
  height: 1px;
  content: "";
  background: rgba(217, 173, 114, 0.35);
}

.registration-steps article {
  position: relative;
  padding: 58px 17px 20px;
  text-align: center;
}

.registration-steps article::before {
  position: absolute;
  top: 17px;
  right: 50%;
  width: 17px;
  height: 17px;
  content: "";
  background: var(--deep);
  border: 2px solid var(--gold);
  border-radius: 50%;
  transform: translateX(50%);
}

.registration-steps span {
  color: var(--gold-2);
  font: 13px Georgia, serif;
}

.registration-steps h3 {
  margin: 8px 0;
  color: #eee;
  font-size: 16px;
  font-weight: 500;
}

.registration-steps p {
  margin: 0;
  color: #aaa;
  font-size: 11px;
}

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

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

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

.protection-grid article > span {
  font-size: 31px;
}

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

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

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

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

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

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

.collection-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;
  overflow: hidden;
  color: #ddd;
  background: #071018;
  border-top: 3px solid var(--gold);
}

footer#contact .footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  padding-top: 42px;
  padding-bottom: 32px;
}

footer#contact .footer-grid > div {
  min-width: 0;
  margin: 0;
  padding-inline: 20px;
}

footer#contact .footer-grid > div:not(:last-child) {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

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

footer#contact .footer-logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
}

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

footer#contact a {
  display: block;
  width: fit-content;
  margin: 3px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.8;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

footer#contact a:hover,
footer#contact a:focus-visible {
  color: var(--gold-2);
}

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

footer#contact a[href^="tel:"],
footer#contact a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
}

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

footer#contact .copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.7;
}

footer#contact .copyright > span {
  display: block;
  margin: 0;
}

footer#contact .copyright > span:first-child {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

footer#contact .copyright > span:last-child {
  direction: rtl;
  text-align: right;
}

@media (max-width: 1100px) {
  footer#contact .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

  footer#contact .footer-brand {
    grid-column: 1 / -1;
    justify-content: flex-start;
    border-inline-end: 0 !important;
  }
}

@media (max-width: 700px) {
  footer#contact .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 30px;
    padding-bottom: 20px;
  }

  footer#contact .footer-grid > div {
    padding: 18px 0;
    border-inline-end: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  footer#contact .footer-grid > div:first-child {
    padding-top: 0;
  }

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

  footer#contact .footer-brand {
    grid-column: auto;
    justify-content: flex-start;
  }

  footer#contact .copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  footer#contact .copyright > span:first-child,
  footer#contact .copyright > span:last-child {
    width: 100%;
    text-align: start;
  }

  footer#contact .footer-logo {
    width: min(220px, 100%);
  }
}
