/* ===========================
   پژمان نوروزی — سیستم طراحی
   =========================== */

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

/* --- توکن‌های رنگی --- */
:root {
  --black:   #1a1a1a;
  --white:   #ffffff;
  --bg:      #fafaf8;
  --muted:   #888888;
  --border:  #ebebeb;
  --accent:  #B5502A;
  --accent-light: #fdf3f0;
  --text:    #1a1a1a;
}

/* --- ریست --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scrollbar-gutter: stable; overflow-y: scroll; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- تایپوگرافی --- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 500; line-height: 1.35; }
h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 500; line-height: 1.4; }
h3 { font-size: 16px; font-weight: 500; }

p { font-size: 14px; color: var(--muted); line-height: 1.9; }

/* --- ناوبری --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nav-logo .name {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}

.nav-logo .tagline {
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--black); }
.nav-links a.nav-active { color: var(--black); }

.nav-links .nav-cta {
  font-size: 12px;
  color: var(--black);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* --- هدر / هیرو --- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text { flex: 1; }

.hero h1 { margin-bottom: 18px; }
.hero h1 .dot { color: var(--accent); }

.hero-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 440px;
  margin-bottom: 28px;
}

.hero-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.link-primary {
  font-size: 13px;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.link-primary:hover { border-color: var(--accent); color: var(--accent); }

.link-secondary {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* --- نماد سه دایره --- */
.hero-symbol { flex-shrink: 0; }

/* --- جداکننده --- */
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

/* --- بخش‌های محتوا --- */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.section-header h2 { font-size: 14px; font-weight: 500; color: var(--black); }

.section-more {
  font-size: 11px;
  color: var(--accent);
  transition: opacity 0.2s;
}

.section-more:hover { opacity: 0.7; }

/* --- لیست مقالات --- */
.post-list { display: flex; flex-direction: column; }

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}

.post-item:last-child { border-bottom: none; }
.post-item:hover .post-title { color: var(--accent); }

.post-left { display: flex; align-items: baseline; gap: 10px; flex: 1; }

.post-title {
  font-size: 14px;
  color: var(--black);
  transition: color 0.2s;
  line-height: 1.5;
}

.post-tag {
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.post-tag.dark {
  color: var(--muted);
  background: #f5f5f5;
}

.post-date {
  font-size: 11px;
  color: #ccc;
  white-space: nowrap;
  margin-right: 16px;
}

/* --- گرید موزه --- */
.museum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.museum-card {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
}

.museum-card:hover { border-color: var(--accent); }

.museum-img {
  width: 100%;
  height: 120px;
  background: #f0f0ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.museum-img span { font-size: 24px; opacity: 0.3; }

.museum-info { padding: 14px 16px; }

.museum-info h3 {
  font-size: 13px;
  color: var(--black);
  margin-bottom: 4px;
}

.museum-info p {
  font-size: 11px;
  color: var(--muted);
}

/* --- لایف دیزاین تیزر --- */
.lifedesign-teaser {
  background: var(--black);
  border-radius: 12px;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.lifedesign-teaser h2 { color: var(--white); font-size: 20px; }
.lifedesign-teaser p { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 8px; }

.lifedesign-btn {
  font-size: 13px;
  color: var(--black);
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 6px;
  white-space: nowrap;
  color: white;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.lifedesign-btn:hover { opacity: 0.85; }

/* --- فوتر --- */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 24px 40px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy { font-size: 11px; color: #ccc; }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 11px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

/* --- ریسپانسیو --- */
@media (max-width: 720px) {
  .nav { padding: 0 20px; }
  .nav-logo .tagline { display: none; }

  .hero { flex-direction: column; padding: 48px 20px; }
  .hero-symbol { display: none; }

  .section { padding: 36px 20px; }
  .museum-grid { grid-template-columns: 1fr 1fr; }
  .post-cards { grid-template-columns: 1fr; gap: 32px; }

  .lifedesign-teaser { flex-direction: column; text-align: center; }

  .footer { flex-direction: column; gap: 12px; text-align: center; padding: 20px; }
}

@media (max-width: 480px) {
  .museum-grid { grid-template-columns: 1fr; }
  .post-date { display: none; }
}

/* --- tagline dot --- */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #1a1a1a; border-radius: 1px; }

.tagline-dot {
  color: #B5502A;
  font-size: 1.2em;
  line-height: 0;
  position: relative;
  top: 2px;
}

/* --- ویترین / تازه‌ها --- */
.vitrine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.vitrine-card {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}

.vitrine-card:hover { border-color: var(--accent); }

.vitrine-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
  width: fit-content;
}

.vitrine-type--book {
  background: #f0f4ff;
  color: #4A6FA5;
}

.vitrine-type--event {
  background: var(--accent-light);
  color: var(--accent);
}

.vitrine-type--tour {
  background: #f0faf4;
  color: #2D6A4F;
}

.vitrine-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.5;
}

.vitrine-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.vitrine-btn {
  font-size: 12px;
  margin-top: 6px;
  width: fit-content;
  padding-bottom: 1px;
}

.vitrine-btn--internal {
  color: var(--black);
  border-bottom: 1px solid var(--black);
}

.vitrine-btn--external {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.vitrine-btn:hover { opacity: 0.7; }

@media (max-width: 720px) {
  .vitrine-grid { grid-template-columns: 1fr; }
}

/* --- نوار اعلان --- */
.announcement-bar {
  background: var(--black);
  padding: 0;
  direction: rtl;
}

.announcement-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  height: 100%;
  transition: background 0.2s;
  cursor: pointer;
}

.announcement-item:hover { background: rgba(255,255,255,0.06); }

.ann-dot { font-size: 13px; }

.ann-text {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

.ann-arrow {
  font-size: 11px;
  color: var(--accent);
}

.ann-divider {
  color: rgba(255,255,255,0.1);
  font-size: 14px;
  padding: 0 2px;
}

/* --- ویترین با تامبنیل --- */
.vitrine-card {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.15s;
}

.vitrine-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.vitrine-thumb {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 36px;
}

.vitrine-thumb--book { background: #e8eef8; }
.vitrine-thumb--event { background: #fdf3f0; }
.vitrine-thumb--tour { background: #e8f4ee; }

.vitrine-thumb-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 10px;
  color: rgba(0,0,0,0.3);
  font-family: 'Vazirmatn', sans-serif;
}

.vitrine-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

@media (max-width: 720px) {
  .announcement-inner { gap: 0; padding: 0 12px; }
  .ann-text { font-size: 11px; }
  .announcement-item { padding: 0 8px; }
}

/* --- تیکر اسکرول --- */
.ticker-wrap {
  width: 100%;
  background: var(--black);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
  direction: ltr;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  cursor: pointer;
  transition: background 0.2s;
  height: 32px;
}

.ticker-item:hover { background: rgba(255,255,255,0.05); }

.ticker-icon { font-size: 13px; }

.ticker-text {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-family: 'Vazirmatn', sans-serif;
}

.ticker-type {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Vazirmatn', sans-serif;
}

.ticker-type--book  { background: #1e2d4a; color: #7a9fd4; }
.ticker-type--event { background: #3d1a10; color: #d4845a; }
.ticker-type--tour  { background: #0f2d1a; color: #5aad7a; }

.ticker-sep {
  color: rgba(255,255,255,0.15);
  font-size: 16px;
  padding: 0 4px;
  font-family: 'Vazirmatn', sans-serif;
}

/* --- کارت‌های آخرین نوشته‌ها (صفحه اول) --- */
.post-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 14px;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.03);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.post-card-title {
  font-size: 14px;
  color: var(--black);
  line-height: 1.6;
  transition: color 0.2s;
}

.post-card:hover .post-card-title {
  color: var(--accent);
}

.post-card-date {
  font-size: 11px;
  color: #ccc;
  margin-top: 6px;
}

/* =============================================
   MOBILE RESPONSIVE — تکمیل
   ============================================= */

@media (max-width: 720px) {

  /* --- About --- */
  .about-grid {
    grid-template-columns: 1fr;
    padding: 36px 20px;
    gap: 32px;
  }
  .about-photo {
    width: 140px;
    height: 140px;
  }

  /* --- Portfolio --- */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px 40px;
  }
  .portfolio-cta { padding: 32px 20px; }
  .portfolio-cta-inner { flex-direction: column; gap: 16px; text-align: center; }

  /* --- Project page --- */
  .project-header {
    flex-direction: column;
    padding: 36px 20px;
    gap: 32px;
  }
  .project-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
  }
  .project-intro h1 { font-size: 24px; }
  .project-nav { padding: 24px 20px 40px; }
  .project-nav-title { font-size: 12px; }

  /* --- Blog --- */
  .blog-header { padding: 40px 20px 32px; }
  .post-cards { padding: 0 20px 40px; }

  /* --- Archive --- */
  .archive-content { padding: 36px 20px; }

  /* --- Books --- */
  .books-grid { grid-template-columns: 1fr; padding: 0 20px 40px; }

  /* --- Newsletter --- */
  .nl-hero { padding: 40px 20px 36px; }
  .nl-hero-inner { flex-direction: column; }
  .nl-logo-box { display: none; }
  .nl-sections { padding: 36px 20px; }
  .nl-input { width: 100%; }
  .nl-signup { flex-direction: column; }

  /* --- Life Design --- */
  .ld-section { padding: 36px 20px; }
  .ld-hero { padding: 40px 20px 36px; }
  .ld-downloads { grid-template-columns: 1fr; }
  .ld-cta-row { flex-direction: column; gap: 16px; }

  /* --- Contact --- */
  .contact-grid { grid-template-columns: 1fr; padding: 36px 20px; gap: 32px; }

  /* --- Page hero --- */
  .page-hero { padding: 40px 20px 32px; }
  .page-hero-inner h1 { font-size: 28px; }

  /* --- Vitrine --- */
  .vitrine-grid { grid-template-columns: 1fr; }

  /* --- nav موبایل --- */
  .nav-links { display: none !important; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0; left: 0;
    background: rgba(250,250,248,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
    z-index: 99;
    list-style: none;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { font-size: 15px; color: var(--black); }
  .hamburger { display: flex !important; }
  .hamburger span { display: block; width: 22px; height: 1.5px; background: var(--black); }
}

@media (max-width: 480px) {
  .nav-logo .name { font-size: 13px; }
  .project-meta { grid-template-columns: 1fr; }
  .about-photo { width: 120px; height: 120px; }
}
