@font-face {
  font-family: Vazirmatn;
  src: url("./fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
  font-display: swap;
}

:root {
  --red: #d71920;
  --red-dark: #a90f15;
  --red-soft: #fff1f2;
  --text: #202124;
  --muted: #6b7280;
  --border: #ececec;
  --shadow: 0 16px 42px rgba(20, 20, 20, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Vazirmatn;
  background:
    radial-gradient(circle at 10% 8%, rgba(215, 25, 32, 0.07), transparent 25%),
    #fff;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.glass-nav {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: 50%;
  transform: translateX(50%);
  width: min(1080px, calc(100% - 32px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.nav-logo img { width: 86px; max-height: 50px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-links a {
  padding: 9px 13px;
  border-radius: 11px;
  color: #343434;
  font-size: 14px;
  transition: 0.25s ease;
}
.nav-links a:hover { color: var(--red); background: var(--red-soft); }
.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--red-soft);
  cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 9px; background: var(--red); }

main { max-width: 1200px; margin: 0 auto; padding: 138px 28px 85px; }
.text { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.text span { color: var(--red); font-size: 14px; font-weight: 800; }
.text h1 { margin: 4px 0 5px; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.3; }
.text h1::after { content: ""; display: block; width: 68px; height: 4px; margin: 14px auto; border-radius: 99px; background: var(--red); }
.text p { margin: 0; color: var(--muted); font-size: 14px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fafafa;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.gallery img:hover { transform: translateY(-6px); border-color: rgba(215, 25, 32, 0.28); box-shadow: var(--shadow); }

.page-footer {
  padding: 24px;
  border-top: 1px solid #eee;
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-size: 13px;
}
.page-footer strong { color: var(--red); }

.lightBox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(7px);
}
.lightBox.show { display: flex; }
.lightBox img { max-width: min(1000px, 86vw); max-height: 84vh; border-radius: 18px; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35); }
.close, .prev, .next { position: absolute; border: 0; color: #fff; background: rgba(255, 255, 255, 0.13); cursor: pointer; transition: 0.22s ease; }
.close { top: 28px; right: 34px; width: 48px; height: 48px; border-radius: 14px; font-size: 32px; }
.prev, .next { top: 50%; transform: translateY(-50%); width: 50px; height: 64px; border-radius: 14px; font-size: 28px; }
.prev { right: 26px; }
.next { left: 26px; }
.close:hover, .prev:hover, .next:hover { background: var(--red); }

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .glass-nav { top: 10px; width: calc(100% - 20px); min-height: 64px; padding: 7px 11px; flex-wrap: wrap; }
  .nav-logo img { width: 68px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 4px; border-top: 1px solid #eee; }
  .glass-nav.open .nav-links { display: flex; }
  .nav-links a { text-align: center; }
  main { padding: 112px 15px 55px; }
  .gallery { grid-template-columns: 1fr; gap: 18px; }
  .gallery img { height: 390px; border-radius: 20px; }
  .prev, .next { width: 42px; height: 54px; }
  .prev { right: 10px; }
  .next { left: 10px; }
}
