/* ============================================
   ABOUT PAGE STYLES
   - Strict adherence to non-black architectural palette
   ============================================ */

:root {
  --about-text-primary: #1C1C1C;
  --about-text-secondary: #666663;
  --about-border: rgba(0, 0, 0, 0.08);
}

body {
  background-color: #FBFBFA;
  color: var(--about-text-primary);
}

/* --- Hero & Manifesto --- */
.about-hero-gradient {
  min-height: 100vh;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    linear-gradient(rgba(245, 245, 245, 0.7), rgba(245, 245, 245, 0.9)),
    url('../assets/about/in2.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #FBFBFA; /* Warm off-white base */
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--about-border);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.hero-manifesto {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--about-text-primary);
  margin: 0 0 2rem 0;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--about-text-secondary);
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

.hero-manifesto.lang-fa,
.hero-subtitle.lang-fa {
  font-family: var(--font-persian);
  line-height: 1.5;
  letter-spacing: normal;
}

/* --- Narrative Section --- */
.narrative-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .narrative-body {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.narrative-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--about-text-primary);
  margin: 0;
  text-align: justify;
}

.narrative-text.lang-fa {
  font-family: var(--font-persian);
  font-size: 1.15rem;
}

/* --- Team Collective --- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem 1.5rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem 2rem;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-portrait-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #EFEFEA;
  overflow: hidden;
}

.team-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-portrait {
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.03);
}

.team-social-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(251,251,250,0.9), transparent);
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.team-card:hover .team-social-overlay {
  opacity: 1;
  transform: translateY(0);
}

.team-social-overlay a {
  color: var(--about-text-primary);
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.team-social-overlay a:hover {
  opacity: 0.6;
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--about-text-primary);
  margin: 0;
}

.team-role {
  font-size: 0.9rem;
  color: var(--about-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
}

.team-creds {
  font-size: 0.8rem;
  color: var(--about-text-secondary);
  margin: 0;
}

/* RTL Typography Overrides */
body.lang-fa .team-role,
body.lang-fa .team-creds,
body.lang-fa .gallery-caption,
body.lang-fa .phil-text {
  font-family: var(--font-persian);
  letter-spacing: normal;
  text-transform: none;
}

/* --- Strict 3-Column Gallery --- */
.strict-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 1.5rem;
}

@media (min-width: 640px) {
  .strict-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .strict-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
}

.gallery-img-wrapper {
  overflow: hidden;
  background: #EFEFEA;
  aspect-ratio: 3/2;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-figure:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  font-size: 0.8rem;
  color: var(--about-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Philosophy --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.philosophy-block {
  border-top: 1px solid var(--about-border);
  padding-top: 1.5rem;
}

.phil-header {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 1rem 0;
  color: var(--about-text-primary);
}

.phil-index {
  color: var(--about-text-secondary);
  margin-right: 0.5rem;
}

.phil-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--about-text-secondary);
  margin: 0;
  text-align: justify;
}

/* --- Contact Module --- */
.contact-module {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-module {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-module {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--about-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 1.1rem;
  color: var(--about-text-primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
  line-height: 1.5;
}

a.contact-value {
  border-bottom: 1px solid var(--about-border);
  padding-bottom: 0.25rem;
  display: inline-table;
}

a.contact-value:hover {
  opacity: 0.6;
}

.contact-value.lang-fa, .contact-label.lang-fa {
  font-family: var(--font-persian);
  text-transform: none;
  letter-spacing: normal;
}

/* Force palette overrides on global elements for About page */
body {
  --color-black: var(--about-text-primary);
  --text-color-primary: var(--about-text-primary);
  --text-color-secondary: var(--about-text-secondary);
  --color-border: var(--about-border);
}

.idx-num, .idx-title {
  color: var(--about-text-secondary);
}

.footer {
  background-color: #F5F4F0; /* Chalk stone */
  border-top: 1px solid var(--about-border);
}

/* Entrance Choreography */
@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Force section index to be row always */
.section-index {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 0.5rem !important;
}
