/* ============================================
   Bahamorshedi.ir - Main Stylesheet
   Minimal, Elegant, Bilingual (Persian/English)
   ============================================ */

/* Font Faces */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --color-bg: #FAF9F6;
  --color-text: #1E1E1E;
  --color-muted: #6F6F6F;
  --color-border: #E6E2DA;
  --color-accent: #B59B6B;
  --color-white: #ffffff;
  --color-dark-bg: #1E1E1E;
  --color-dark-text: #FAF9F6;

  --font-primary: 'Vazirmatn', 'Inter', sans-serif;
  --font-secondary: 'Inter', 'Vazirmatn', sans-serif;

  --container-max: 1200px;
  --header-height: 80px;
  --transition-speed: 0.2s;
  --border-radius: 4px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-speed) ease, color var(--transition-speed) ease;
}
a:hover {
  opacity: 0.7;
}
ul, ol {
  list-style: none;
}
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Direction-dependent defaults */
body.rtl {
  direction: rtl;
  text-align: right;
}
body.ltr {
  direction: ltr;
  text-align: left;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}
h3 {
  font-size: 1.5rem;
}
p {
  margin-bottom: 1rem;
}
.accent {
  color: var(--color-accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
  border-color: var(--color-dark-bg);
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--color-dark-bg);
}
.btn-outline {
  background-color: transparent;
  color: var(--color-dark-bg);
  border-color: var(--color-dark-bg);
}
.btn-outline:hover {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.site-logo {
  display: block;
  line-height: 0;
}
.signature-img {
  height: 50px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-speed), border-color var(--transition-speed);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}
.lang-switch {
  font-weight: 700;
  color: var(--color-accent);
  margin-inline-start: 1rem;
}
/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease;
}

/* Main Content */
.site-main {
  min-height: calc(100vh - var(--header-height) - 200px);
  padding: 0 0 60px;
}

/* -------------------- HERO HOME -------------------- */
.hero-home {
  padding: 40px 0 0;
  text-align: center;
  position: relative;
}
.hero-home-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-home-text {
  flex: 1 1 400px;
  text-align: start;
}
.hero-home-name-sm {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}
.hero-home-role {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-home-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-home-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-home-image {
  flex: 0 0 380px;
  max-width: 100%;
}
.hero-home-image img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* -------------------- FIELDS OF WORK -------------------- */
.focus-areas {
  padding: 80px 0;
  text-align: center;
}
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  text-align: center;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}
.focus-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  color: var(--color-text);
  opacity: 1;
}
.focus-icon {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}
.focus-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.focus-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* -------------------- CLOSING QUOTE -------------------- */
.closing-quote {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}
.closing-quote blockquote {
  font-size: 2rem;
  font-style: italic;
  color: var(--color-accent);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  border: none;
  padding: 0;
}

/* -------------------- WORK CARDS -------------------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.work-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.work-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.work-card-body {
  padding: 1.2rem;
}
.work-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.work-card-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.work-card-desc {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}
.page-hero--small {
  padding: 40px 0 20px;
}
.page-title {
  margin-bottom: 0.5rem;
}
.page-subtitle {
  color: var(--color-muted);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: none;
  border: 1px solid var(--color-border);
  padding: 6px 18px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-muted);
  transition: all 0.2s ease;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Biography Page */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about-text p {
  margin-bottom: 1.2rem;
}
.about-image {
  text-align: center;
}
.about-image img {
  max-width: 300px;
  border-radius: var(--border-radius);
}

/* Work Detail */
.work-detail {
  max-width: 800px;
  margin: 0 auto;
}
.work-detail-image {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.work-detail-meta {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.work-detail-text {
  font-size: 1rem;
  line-height: 1.9;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30,30,30,0.7);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Media List */
.media-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
}
.media-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.media-date {
  font-size: 0.8rem;
  color: var(--color-muted);
}
.media-title {
  font-weight: 700;
  font-size: 1.1rem;
}
.media-source {
  font-size: 0.9rem;
  color: var(--color-muted);
}
.media-summary {
  font-size: 0.9rem;
}

/* Contact Page */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}
.contact-info {
  margin-bottom: 2rem;
  text-align: center;
}
.contact-info p {
  margin-bottom: 0.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--color-text);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.download-section {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* -------------------- BLOG GRID -------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.blog-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-date {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.blog-card-title a {
  text-decoration: none;
  color: var(--color-text);
}
.blog-card-title a:hover {
  color: var(--color-accent);
  opacity: 1;
}
.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}
.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: auto;
}
.blog-card-link:hover {
  color: var(--color-text);
  opacity: 1;
}

/* -------------------- BLOG DETAIL -------------------- */
.blog-detail {
  max-width: 800px;
  margin: 0 auto;
}
.blog-detail-image {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.blog-detail-image img {
  width: 100%;
}
.blog-detail-body {
  font-size: 1.05rem;
  line-height: 1.9;
}
.blog-detail-body p {
  margin-bottom: 1.5rem;
}
.blog-detail-body img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
}
.blog-detail-footer {
  margin-top: 3rem;
  text-align: center;
}

/* -------------------- FOOTER -------------------- */
.site-footer {
  border-top: 1px solid var(--color-accent);
  background: var(--color-white);
  padding: 4rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}
.footer-col {
  flex: 1 1 150px;
}
.footer-brand-col {
  flex: 2 1 250px;
}
.footer-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--color-text);
}
.footer-site-role {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-nav-col a {
  display: block;
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-nav-col a:hover {
  color: var(--color-text);
  opacity: 1;
}
.footer-social-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: color 0.2s;
}
.footer-social-link svg {
  flex-shrink: 0;
}
.footer-social-link:hover {
  color: var(--color-accent);
  opacity: 1;
}
.footer-copyright {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}
.footer-copyright p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-list {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: none;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-list.open {
    display: flex;
  }

  .hero-home-grid {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
  }
  .hero-home-text {
    text-align: center;
  }
  .hero-home-links {
    justify-content: center;
  }
  .hero-home-image {
    flex: 0 0 auto;
    width: 70%;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  /* Minimal Footer on Mobile */
  .site-footer {
    padding: 2rem 0 1rem;
  }
  .footer-grid {
    flex-direction: column;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
    gap: 1rem;
  }
  .footer-brand-col,
  .footer-nav-col {
    display: none;          /* مخفی‌کردن نام و لینک‌های ناوبری */
  }
  .footer-social-col {
    flex-direction: row;    /* آیکون‌ها در یک ردیف */
    justify-content: center;
    gap: 1.5rem;
  }
  .footer-social-link span {
    display: none;          /* حذف متن کنار آیکون */
  }
  .footer-social-link svg {
    width: 24px;
    height: 24px;
  }
  .footer-copyright {
    margin-top: 0.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* RTL fine-tune */
body.rtl .nav-list {
  direction: rtl;
}
body.rtl .lightbox-close {
  right: auto;
  left: 30px;
}
body.ltr .lightbox-close {
  right: 30px;
  left: auto;
}