/* ============================================================
   Artist Portfolio — stylesheet
   Fonts:  Noto Naskh Arabic (display) / Vazirmatn (body + UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@500;600;700&family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
  --void: #0b0908;
  --panel: #161210;
  --panel-2: #1d1815;
  --gold: #c9a96e;
  --gold-bright: #e6c98c;
  --gold-deep: #7d6339;
  --line: rgba(201, 169, 110, 0.22);
  --ink: #f3ead9;
  --ink-muted: rgba(243, 234, 217, 0.62);
  --ink-faint: rgba(243, 234, 217, 0.38);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: 'Vazirmatn', sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle canvas-grain texture over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: 'Noto Naskh Arabic', serif;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

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

img { display: block; max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold-deep);
}

/* brush-stroke underline used beneath section headings */
.stroke {
  display: block;
  width: 130px;
  height: 14px;
  margin-top: .9rem;
}
.center .stroke { margin-inline: auto; }

/* ============ NAV ============ */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(11, 9, 8, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
}
.logo {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .02em;
}
.nav-links {
  display: flex;
  gap: 2.3rem;
  font-size: .95rem;
  color: var(--ink-muted);
}
.nav-links a { position: relative; transition: color .3s var(--ease); padding-block: .3rem; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .5rem .6rem;
  color: var(--gold);
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0 6vw 1.5rem;
  font-size: .95rem;
  color: var(--ink-muted);
}
.mobile-menu.open { display: flex; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
  filter: saturate(.85) contrast(1.05);
  animation: hero-in 2.2s var(--ease) both;
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.08); } to { opacity: .38; transform: scale(1); } }

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--void) 2%, transparent 42%),
    linear-gradient(to bottom, rgba(11,9,8,.7) 0%, transparent 30%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 6vw;
  animation: rise 1.1s .3s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

.hero-frame {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--gold);
  font-size: .82rem;
  letter-spacing: .18em;
  margin-bottom: 1.6rem;
}
.hero-frame span { width: 40px; height: 1px; background: var(--gold-deep); }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: var(--gold-bright);
  line-height: 1.15;
}
.hero p {
  margin-top: 1.3rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 640px;
  margin-inline: auto;
}
.scroll-cue {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

/* ============ SECTIONS ============ */
section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.alt { background: var(--panel); }

.section-head { margin-bottom: 3.2rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p.sub { color: var(--ink-muted); margin-top: 1rem; max-width: 560px; }
.center { text-align: center; }
.center .section-head p.sub { margin-inline: auto; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.portrait-frame {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
}
.portrait-frame img { width: 100%; height: 480px; object-fit: cover; }
.portrait-tag {
  position: absolute;
  bottom: -18px; inset-inline-start: 28px;
  background: var(--void);
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .1em;
  padding: .5rem 1rem;
}
.about-copy blockquote {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.4rem;
  color: var(--gold-bright);
  line-height: 1.7;
  margin: 0 0 1.6rem;
  padding-inline-start: 1.2rem;
  border-inline-start: 2px solid var(--gold);
}
.about-copy p { color: var(--ink-muted); font-size: 1.02rem; }

/* ============ GALLERY GRIDS (exhibitions / interviews) ============ */
.gallery-grid { display: grid; gap: 1.6rem; }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.frame-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.frame-card img {
  width: 100%; height: 320px; object-fit: cover;
  transition: transform .8s var(--ease), filter .8s var(--ease);
  filter: grayscale(.25) brightness(.92);
}
.frame-card:hover img { transform: scale(1.06); filter: grayscale(0) brightness(1); }
.frame-card .plate {
  position: absolute; bottom: 0; inset-inline: 0;
  padding: .9rem 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  font-size: .85rem;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.frame-card:hover .plate { opacity: 1; transform: translateY(0); }

.gallery-grid.cols-2 .frame-card img { height: 380px; }

/* ============ PROCESS (numbered — genuine sequence) ============ */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.process-step { position: relative; }
.process-step .num {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 3.4rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-deep);
  line-height: 1;
  margin-bottom: .6rem;
  display: block;
}
.process-step img {
  width: 100%; height: 260px; object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
  filter: grayscale(.2);
}
.process-step h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: .5rem; }
.process-step p { color: var(--ink-muted); font-size: .95rem; }

/* ============ ARTWORKS FOR SALE ============ */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.art-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.art-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold-deep);
}
.art-card .thumb { position: relative; overflow: hidden; }
.art-card .thumb img { width: 100%; height: 300px; object-fit: cover; transition: transform .6s var(--ease); }
.art-card:hover .thumb img { transform: scale(1.05); }
.price-tag {
  position: absolute; top: 14px; inset-inline-end: 14px;
  background: var(--void);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: .78rem;
  padding: .35rem .8rem;
  letter-spacing: .04em;
}
.art-body { padding: 1.3rem 1.4rem 1.5rem; }
.art-body h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: .35rem; }
.art-body .meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-faint); }

.cta-row { text-align: center; margin-top: 3.6rem; }
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--gold);
  color: var(--void);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.btn-gold:hover { transform: translateY(-3px); background: var(--gold-bright); }

/* ============ LINKS ============ */
.links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.pill-link {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid var(--line);
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-size: .92rem;
  color: var(--ink-muted);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.pill-link:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(201,169,110,.06); }

/* ============ CONTACT ============ */
.contact-block { text-align: center; }
.contact-block .line { font-size: 1.1rem; margin-bottom: .6rem; color: var(--ink); }
.contact-block .muted { color: var(--ink-faint); }
.contact-frame {
  margin: 0 auto 2.2rem;
  width: 64px; height: 64px;
  border: 1px solid var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transform: rotate(45deg);
}
.contact-frame svg { transform: rotate(-45deg); width: 22px; height: 22px; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: .85rem;
}

/* ============ LANGUAGE TOGGLE ============ */
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-family: 'Vazirmatn', sans-serif;
  font-size: .82rem;
  padding: .4rem .85rem;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--void);
  font-weight: 600;
}
.lang-toggle button:not(.active):hover { color: var(--gold-bright); }

/* پنهان‌کردن نوار و رابط پیش‌فرض گوگل — فقط از دکمه‌ی خودمان استفاده می‌شود */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body { top: 0 !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-frame img { height: 380px; }
  .gallery-grid.cols-3,
  .gallery-grid.cols-2,
  .process-grid,
  .art-grid { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .art-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
