/* ============================================================
   Font Face — YekanBakh
   This set of fonts are used in this project under the license: (9IMOLTSQ)
   For more information visit: https://fontiran.com/about-licenses
   ============================================================ */
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-Thin.woff2') format('woff2');
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'IranSans';
  src: url('../fonts/IRANSansWeb.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --bg:           #efefef;
  --bg-alt:       #efefef;
  --white:        #FFFFFF;
  --text:         #1A1A1A;
  --text-p2:      #363636;
  --text-muted:   #919191;
  --accent:       #7A4F2D;
  --accent-hover: #5E3B1F;
  --accent-light: #C9A07A;
  --accent-pale:  #FDF4EB;
  --border:       #E5DDD3;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.12);
  --radius:       10px;
  --ease:         all 0.28s ease;
  --max-w:        1100px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: 'YekanBakh', Tahoma, Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-align: right;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   Navbar
   ============================================================ */
#navbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 999;
  background: transparent;
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 110px;
  width: auto;
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-logo:hover img {
  opacity: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-menu a {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.22s ease;
  transform-origin: center;
}

.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  line-height: 1;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg);
  background-image: url('../images/hero-bg.jpg');
  background-position: -8vw 0px;
  background-repeat: no-repeat;
  background-size: contain;
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 50%;
  gap: 0;
  align-items: center;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 160px 2rem 80px;
}


.hero-text {
  padding-left: 3rem;
}

.hero-tag {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: #b69d78;
  margin-bottom: 1.2rem;
}

.hero-name {
  font-family: 'IranSans';
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 1.4rem;
}

.hero-bio {
  font-size: 0.97rem;
  font-weight: 300;
  color: var(--text);
  line-height: 2;
  max-width: 500px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #b69d78;
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 10px 8px 30px;
  border-radius: 5px;
  border: 1px solid #b69d78;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.btn-cta:hover {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.hero-social {
  display: flex;
  gap: 0.75rem;
}

.hero-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--ease);
}

.hero-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Hero image */
.hero-photo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 2rem;
}

.hero-photo img {
  width: 82%;
  border-radius: 10px;
  box-shadow: 24px 80px 144px -40px rgba(100, 71, 27, 0.69);
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* ============================================================
   White Strip — Featured quote section
   ============================================================ */
.white-strip {
  background: var(--white);
  padding: 60px 2rem;
}

.ws-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.ws-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.4rem;
}

.ws-quote {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.ws-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 2;
}

.ws-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 30px;
}

.ws-logos img {
  width: 100%;
  height: 85px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s ease;
}

.ws-logos img:hover {
  filter: sepia(100%) saturate(500%) hue-rotate(5deg) brightness(0.85);
}

/* ============================================================
   Section Commons
   ============================================================ */
.section {
  padding: 90px 2rem;
  background-color: white;
}

.bg-alt {
  background: var(--bg-alt);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-rule {
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto;
}

/* ============================================================
   Works Grid
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ============================================================
   Work Card
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-poster {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-alt);
  flex-shrink: 0;
}

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

.card:hover .card-poster img {
  transform: scale(1.05);
}

/* Card with no poster — decorative colored header */
.card-no-poster {
  border-top: 4px solid var(--accent-light);
}

.card-no-poster .card-body {
  padding-top: 1.8rem;
}

.card-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card-meta {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.55;
}

.card-venue {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.card-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.card-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.2rem;
}

.card-awards.collapsed .badge:nth-child(n+4) {
  display: none;
}

.badges-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 0.65rem;
  cursor: pointer;
  background: transparent;
  margin-top: 0.4rem;
  transition: var(--ease);
}

.badges-toggle:hover {
  background: var(--accent);
  color: var(--white);
}

.badge {
  font-size: 0.73rem;
  font-weight: 300;
  --background: var(--accent-pale);
  color: var(--text-p2);
  padding: 0.22rem 0.0rem;
  border-radius: 20px;
  --border: 1px solid #EDD9BF;
  white-space: normal;
  line-height: 1.4;
}

.badge::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f559';
  margin-left: 0.35rem;
  font-size: 0.68rem;
  opacity: 0.75;
  color: var(--accent)
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.pill {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.28rem 0.85rem;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  transition: var(--ease);
  display: inline-block;
}

.pill:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================================
   Hero Logos Strip (inside text column, like reference)
   ============================================================ */
.hero-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  min-height: 300px;
  width: 60%;
 
}

.hero-logos img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s ease;
}

.hero-logos img:hover {
  filter: sepia(100%) saturate(500%) hue-rotate(5deg) brightness(0.85);
}

/* ============================================================
   White Space 
   ============================================================ */
.white-strip {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 300px;
  background: var(--white);
  overflow: hidden;
  text-align: center;
  width: 100%;
}

/* ============================================================
   About Strip — image flush to 3 edges
   ============================================================ */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--white);
  overflow: hidden;
}

/* In RTL: first child (about-desc) goes RIGHT, second (about-photo) goes LEFT */
.about-desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 5rem 80px 3rem;
  color: var(--text);
}

.about-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.about-desc h1 {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1.4rem;
  color: var(--text);
}


.about-desc h2 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.about-desc p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 1rem;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
  padding: 2.5rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ribbon-title {
  font-size: 1rem;
  font-weight: 200;
  color: #fff;
  line-height: 1.4;
}

.ribbon-sub {
  font-size: 0.82rem;
  font-weight: 100;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ============================================================
   Footer — 3-column like reference
   ============================================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  justify-content: flex-end;
}

.footer-nav a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

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

.footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-wrap img {
  height: 240px;
  width: auto;
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity 0.2s;
}

.footer-logo-wrap:hover img {
  opacity: 1;
}

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--ease);
}

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

.footer-copy {
  text-align: center;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  padding: 3rem 4rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   Stories layout — 2fr + 1fr in one row
   Revert: remove "works-grid--editorial" class from HTML
   ============================================================ */
.works-grid--editorial {
  grid-template-columns: 2fr 1fr;
}

/* ============================================================
   Hatched placeholder card
   ============================================================ */
.card--hatched {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(0, 0, 0, 0.04) 6px,
    rgba(0, 0, 0, 0.04) 7px
  );
  box-shadow: none;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  min-height: 200px;
  cursor: default;
}

.card--hatched:hover {
  transform: none;
  box-shadow: none;
}

/* ============================================================
   Show More Button
   ============================================================ */
.show-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-show-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 24px;
  border: 1.5px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  transition: var(--ease);
}

.btn-show-more:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-photo {
    order: -1;
    justify-content: center;
    padding-right: 0;
  }

  .hero-photo img {
    width: 70%;
    max-width: 260px;
  }

  .hero-text {
    padding-left: 0;
  }

  .hero-photo::before {
    left: auto;
    right: 50%;
    transform: translateX(50%) translate(14px, 0);
    /* simplify for mobile */
    display: none;
  }

  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 120px;
    right: 0;
    left: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  }

  .nav-menu.open {
    display: flex;
  }
}

@media (max-width: 560px) {
  .works-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .section {
    padding: 60px 1.25rem;
  }

  .hero {
    padding: 90px 1.25rem 60px;
  }

  .about-strip {
    padding: 60px 1.25rem;
  }
}
