/* =========================================================
   Hero — açık zeminli, yuvarlak köşeli panel; içinde iki sütun:
   solda metin + bilgi şeridi, sağda yuvarlak fotoğraf kartı
   (slider, kısa yol kartları, kontroller). Metin fotoğrafın
   üstüne binmez; okunurluk fotoğrafa bağlı değildir.
   ========================================================= */
.hero {
  padding: 10px;
  background: var(--color-white);
}
.hero__panel {
  display: flex;
  min-height: min(calc(100svh - 20px), 860px);
  border-radius: var(--radius-xl);
  background: var(--color-cream);
}
.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    'copy media'
    'stats media';
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: 1.5rem;
  padding-top: calc(var(--header-h) + 0.75rem);
  padding-bottom: 1.75rem;
}

/* ---- Metin ---- */
.hero__copy {
  grid-area: copy;
  align-self: center;
  min-width: 0;
}
.hero__title {
  margin-top: 1.3rem;
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--color-blue-dark);
}
.hero__title-line {
  display: block;
}
.hero__title-line:last-child {
  color: var(--color-blue);
}
.hero__text {
  margin-top: 1.3rem;
  font-size: var(--fs-lead);
  color: var(--color-muted);
  max-width: 480px;
  line-height: 1.6;
}
.hero__cta {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ---- Bilgi şeridi ---- */
.hero__stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
.hero-stat {
  padding: 0.95rem 1rem;
  background: var(--color-white);
  border: 1px solid rgba(20, 48, 31, 0.07);
  border-radius: var(--radius);
}
.hero-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-blue-dark);
  white-space: nowrap;
}
.hero-stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--color-muted);
}
.hero-stat--accent {
  background: var(--color-lime);
  border-color: transparent;
}
.hero-stat--accent .hero-stat__label {
  color: var(--color-green-deep);
}

/* ---- Fotoğraf kartı ---- */
.hero__media {
  grid-area: media;
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-cream-deep);
}
.hero__swiper {
  position: absolute;
  inset: 0;
}
.hero .hero__swiper .swiper-wrapper,
.hero .hero__swiper .swiper-slide {
  width: 100%;
  height: 100%;
}
.hero__swiper .swiper-slide {
  overflow: hidden;
}
.hero-slide__bg {
  position: absolute;
  inset: 0;
}
.hero-slide__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide__media--zoom {
  animation: hero-zoom 9s ease-out forwards;
}
@keyframes hero-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

/* Kısa yol kartları (fotoğrafın sağında) */
.hero__cards {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 272px;
}
.hero-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(20, 48, 31, 0.18);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.hero-card:hover {
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 48, 31, 0.26);
}
.hero-card__img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 13px;
}
.hero-card__body {
  min-width: 0;
  flex: 1;
}
.hero-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-blue-dark);
}
.hero-card__text {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--color-muted);
}
.hero-card__arrow {
  flex-shrink: 0;
  color: var(--color-blue);
  transition: transform var(--t-fast);
}
.hero-card:hover .hero-card__arrow {
  transform: translateX(3px);
}

/* Slider kontrolleri (fotoğrafın sağ altında) */
.hero__controls {
  position: absolute;
  z-index: 2;
  right: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(20, 48, 31, 0.18);
}
.hero__dots {
  display: flex;
  gap: 0.4rem;
}
/* Buton 24px yüksek dokunma alanı; görünen çizgi içteki .hero__dot-fill */
.hero__dot {
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
}
.hero__dot-fill {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(20, 48, 31, 0.16);
  overflow: hidden;
}
.hero__dot-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-blue);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-active .hero__dot-fill::after {
  animation: hero-dot 6.5s linear forwards;
}
@keyframes hero-dot {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.hero__arrows {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hero__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-blue-dark);
  background: var(--color-green-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.hero__arrow:hover {
  background: var(--color-blue-dark);
  color: #fff;
}
.hero__count {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--color-muted);
}
.hero__count strong {
  color: var(--color-blue-dark);
}

/* ---- Responsive ---- */
@media (max-width: 1240px) {
  .hero__cards {
    display: none;
  }
  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet/mobil: tek sütun — metin, fotoğraf, bilgi şeridi */
@media (max-width: 860px) {
  .hero {
    padding: 6px;
  }
  .hero__panel {
    min-height: 0;
    border-radius: var(--radius-lg);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      'copy'
      'media'
      'stats';
    row-gap: 1.4rem;
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 1.4rem;
  }
  .hero__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .hero__controls {
    right: 50%;
    bottom: 0.8rem;
    transform: translateX(50%);
  }
}
@media (max-width: 480px) {
  /* Dar ekranda sayaç fotoğrafı kapatmasın; noktalar zaten konumu gösteriyor */
  .hero__count {
    display: none;
  }
  .hero__cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
