/* ============================================================
   CALL US — HERO
   hero.css
   ============================================================ */

/* ============================================================
   01 — SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: #F5F0E8;
  color: #0A0A0A;
  overflow: hidden;
  padding: 7rem var(--pad) 3rem;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* ============================================================
   02 — CONTENT (چپ)
   ============================================================ */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 36rem;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'General Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6B6B6B;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  animation: heroFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.hero__title {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: #0A0A0A;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.hero__word {
  display: inline-block;
  white-space: nowrap;
  animation: heroWord 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__line:nth-child(1) .hero__word { animation-delay: 0.2s; }
.hero__line:nth-child(2) .hero__word { animation-delay: 0.4s; }

@keyframes heroWord {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__word--italic {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
  color: #2D5A3D;
  padding-left: 0.05em;
}

.hero__lede {
  max-width: 30rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: #3D3D3D;
  animation: heroFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  animation: heroFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   03 — VISUAL (راست)
   ============================================================ */
.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  margin: 0 auto;
  animation: heroVisualIn 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: translateX(30px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* قاب طلایی */
.hero__frame {
  position: absolute;
  inset: -16px;
  pointer-events: none;
  z-index: 5;
}

.hero__frame-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #D4B48C;
  border-style: solid;
  border-width: 0;
}

.hero__frame-corner--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.hero__frame-corner--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.hero__frame-corner--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hero__frame-corner--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ============================================================
   04 — SLIDES
   ============================================================ */
.hero__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
  z-index: 1;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 40px 80px rgba(10, 10, 10, 0.18));
}

/* ============================================================
   05 — PATIENT CARD
   ============================================================ */
.hero__card {
  position: absolute;
  bottom: 2.5rem;
  right: -1.5rem;
  z-index: 6;
  width: 260px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(212, 180, 140, 0.4);
  padding: 1.25rem;
  display: none !important;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow:
    0 30px 70px rgba(10, 10, 10, 0.12),
    0 8px 20px rgba(10, 10, 10, 0.06);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}

.hero__card.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.hero__card-header { display: flex; align-items: center; }

.hero__card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  background: rgba(45, 90, 61, 0.08);
  border: 1px solid rgba(45, 90, 61, 0.25);
  border-radius: 100px;
  color: #2D5A3D;
  font-family: 'General Sans', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__card-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 500;
  color: #0A0A0A;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero__card-meta {
  font-family: 'General Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6B6B6B;
}

.hero__card-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 180, 140, 0.5), rgba(212, 180, 140, 0.1));
}

.hero__card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero__card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
}

.hero__card-label {
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8B6F47;
}

.hero__card-value {
  font-weight: 400;
  color: #0A0A0A;
  text-align: right;
}

.hero__card {
  position: absolute;
  bottom: -1rem;                     
  left: -2rem;                       
  right: auto;                       
  z-index: 6;
  width: 260px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(212, 180, 140, 0.4);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow:
    0 30px 70px rgba(10, 10, 10, 0.12),
    0 8px 20px rgba(10, 10, 10, 0.06);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}


.hero__card.is-changing {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}
/* ============================================================
   06 — PROGRESS
   ============================================================ */
.hero__progress {
  position: absolute;
  bottom: -2.5rem;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem;
  animation: heroFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s both;
}

.hero__progress-segment {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(10, 10, 10, 0.12);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s ease;
}

.hero__progress-segment span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #2D5A3D, #D4B48C);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__progress-segment.is-active span {
  transform: scaleX(1);
}

.hero__progress-segment:hover {
  background: rgba(212, 180, 140, 0.3);
}

/* ============================================================
   07 — COUNTER
   ============================================================ */
.hero__counter {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 6;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  background: rgba(245, 240, 232, 0.9);
  border: 1px solid rgba(212, 180, 140, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'General Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  animation: heroFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1s both;
}

.hero__counter-current { color: #2D5A3D; font-size: 1rem; }
.hero__counter-sep { color: #D4B48C; font-size: 0.7rem; }
.hero__counter-total { color: #6B6B6B; font-size: 0.75rem; }

/* ============================================================
   08 — RESPONSIVE
   ============================================================ */

/* تبلت کوچیک و موبایل بزرگ */
@media (max-width: 1100px) {
  .hero {
    padding: 6rem var(--pad) 4rem;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: stretch;
  }

  .hero__content {
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
    order: 1;
  }

  .hero__lede {
    text-align: left;
    max-width: 100%;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__visual {
    order: 2;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 65vh;
  }
}

/* موبایل */
@media (max-width: 768px) {
  .hero {
    padding: 5rem var(--pad) 3rem;
    min-height: auto;
  }

  .hero__inner {
    gap: 2.5rem;
  }

  .hero__content {
    gap: 1.25rem;
  }

  .hero__top {
    font-size: 0.6rem;
    padding-bottom: 0.75rem;
    letter-spacing: 0.22em;
  }

  .hero__title {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
    line-height: 1;
  }

  .hero__lede {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* دکمه‌ها */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 1.25rem;
  }

  .hero__actions .link-cta {
    align-self: flex-start;
    margin-top: 0.25rem;
  }

  /* ⚡ Visual — مرتب و تمیز */
  .hero__visual {
    max-width: 100%;
    aspect-ratio: 1 / 1;
    max-height: none;
    margin: 0;
  }

  /* قاب طلایی */
  .hero__frame {
    inset: -8px;
  }

  .hero__frame-corner {
    width: 20px;
    height: 20px;
  }

  /* ⚡ کارت اطلاعات — زیر عکس، نه روی اون */
  .hero__card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    border-color: rgba(212, 180, 140, 0.5);
  }

  .hero__card-name {
    font-size: 1.4rem;
  }

  .hero__card-meta {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .hero__card-row {
    font-size: 0.68rem;
  }

  /* Counter — بالا-راست عکس */
  .hero__counter {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.68rem;
  }

  .hero__counter-current {
    font-size: 0.9rem;
  }

  /* Progress — زیر عکس */
  .hero__progress {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 0;
    margin-top: 1rem;
    width: 100%;
  }

  .hero__progress-segment {
    height: 2px;
  }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 5rem var(--pad) 3rem;
    min-height: auto;
  }

  .hero__inner {
    gap: 2.5rem;
  }

  .hero__content {
    gap: 1.25rem;
  }

  .hero__top {
    font-size: 0.6rem;
    padding-bottom: 0.75rem;
    letter-spacing: 0.22em;
  }

  .hero__title {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
    line-height: 1;
  }

  .hero__lede {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* دکمه‌ها */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 1.25rem;
  }

  .hero__actions .link-cta {
    align-self: flex-start;
    margin-top: 0.25rem;
  }

  /* ⚡ Visual */
  .hero__visual {
    max-width: 100%;
    aspect-ratio: auto;
    max-height: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Slides — ارتفاع مشخص */
  .hero__slides {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    border-radius: 0;
  }

  /* Slide — absolute داخل slides */
  .hero__slide {
    position: absolute;
    inset: 0;
  }

  /* قاب طلایی */
  .hero__frame {
    inset: -8px;
    aspect-ratio: auto;
    height: auto;
    bottom: auto;
  }

  .hero__frame-corner {
    width: 20px;
    height: 20px;
  }

  /* Counter — روی slides */
  .hero__counter {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.68rem;
    z-index: 7;
  }

  .hero__counter-current {
    font-size: 0.9rem;
  }

  /* ⚡ کارت اطلاعات — زیر عکس، داخل flow */
  .hero__card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: 1.25rem;
    padding: 1.1rem 1.25rem;
    gap: 0.75rem;
    border-color: rgba(212, 180, 140, 0.5);
    box-shadow: 0 12px 30px rgba(10, 10, 10, 0.08);
  }

  .hero__card-name {
    font-size: 1.4rem;
  }

  .hero__card-meta {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .hero__card-row {
    font-size: 0.68rem;
  }

  /* ⚡ Progress — زیر کارت، داخل flow */
  .hero__progress {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
    padding: 0;
    margin-top: 1.25rem;
    width: 100%;
  }

  .hero__progress-segment {
    height: 2px;
  }
}

/* ============================================================
   MOBILE SMALL
   ============================================================ */
@media (max-width: 480px) {
  .hero {
    padding: 4.5rem var(--pad) 2.5rem;
  }

  .hero__inner {
    gap: 2rem;
  }

  .hero__content {
    gap: 1rem;
  }

  .hero__top {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .hero__lede {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .hero__actions .btn {
    padding: 0.9rem 1.1rem;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
  }

  .hero__actions .link-cta {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
  }

  /* Visual */
  .hero__slides {
    aspect-ratio: 4 / 5;
  }

  /* کارت */
  .hero__card {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    gap: 0.6rem;
  }

  .hero__card-badge {
    font-size: 0.5rem;
    padding: 0.25rem 0.5rem;
  }

  .hero__card-name {
    font-size: 1.25rem;
  }

  .hero__card-meta {
    font-size: 0.55rem;
  }

  .hero__card-row {
    font-size: 0.65rem;
  }

  .hero__counter {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__word,
  .hero__top,
  .hero__lede,
  .hero__actions,
  .hero__visual,
  .hero__counter,
  .hero__progress {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__slide {
    transition: opacity 0.3s ease;
    transform: none !important;
  }

  .hero__slide.is-active {
    transform: none !important;
  }

  .hero__card {
    transition: none;
  }
}

/* ============================================================
   09 — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__word,
  .hero__top,
  .hero__lede,
  .hero__actions,
  .hero__visual,
  .hero__counter,
  .hero__progress {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__slide {
    transition: opacity 0.3s ease;
    transform: none !important;
  }

  .hero__slide.is-active { transform: none !important; }
  .hero__card { transition: none; }
}