/* =========================================================
   SECTIONS — sayfa bölümleri (yukarıdan aşağıya sırayla)
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(600px, 56.25vw, 100vh);
  overflow: hidden;
  background: var(--c-dark);
  color: var(--c-white);
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(120px, 15vh, 170px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  transition: opacity 1.2s var(--ease), transform 6s linear, visibility 1.2s;
}

/* Video slaytı: arka plan görseli poster olarak kalır, video üstüne oturur */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 60%, transparent 100%);
}

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

.hero__content { position: relative; z-index: 2; }

.hero__content > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__title { transition-delay: .15s; }
.hero__slide.is-active .hero__text { transition-delay: .3s; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: 66px;
  height: 1px;
  background: currentColor;
}

.hero__title {
  max-width: 520px;
  margin-top: 8px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.08;
}

.hero__title-light { display: block; font-weight: 300; }

.hero__text { margin-top: 12px; font-size: 19px; font-weight: 300; }

.hero__dots-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(56px, 8vh, 76px);
}

.hero__dots { display: flex; gap: 8px; }

.hero__dot {
  position: relative;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .35);
}

.hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-white);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__dot.is-active::after {
  animation: dot-progress var(--slide-duration, 6s) linear forwards;
}

@keyframes dot-progress { to { transform: scaleX(1); } }

/* ---------- Intro ---------- */
.intro {
  padding-block: 70px 30px;
  text-align: center;
}

.intro__title {
  max-width: 820px;
  margin: 14px auto 18px;
  font-size: clamp(30px, 3.5vw, 51px);
  font-weight: 600;
  line-height: 1.12;
}

.intro__text { font-size: 18px; line-height: 1.4; }

/* ---------- Anne eli lezzeti ---------- */
.story {
  position: relative;
  color: var(--c-beige);
}

.story .wave--top { margin-bottom: -1px; }
.story .wave--bottom { margin-top: -1px; }

.story__body {
  position: relative;
  background: var(--c-beige);
  color: var(--c-text);
}

.story__inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-block: 60px;
}

.story__content { max-width: 540px; padding-left: 44px; }

.story__text {
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.5;
}

/* Şeffaf el görseli alt dalganın dışına taşar */
.story__image {
  position: absolute;
  right: 0;
  bottom: -110px;
  z-index: 2;
  width: min(38vw, 620px);
  pointer-events: none;
}

/* Buğday taneleri: parallax.js ile aşağıdan yukarı kayarak yerine oturur */
.story__wheat {
  position: absolute;
  top: -40px;
  left: 44%;
  z-index: 1;
  width: clamp(300px, 38vw, 620px);
  scale: 1.2; /* merkezden %20 büyütür; parallax'ın transform'uyla çakışmaz */
  pointer-events: none;
  will-change: transform;
}

.features {
  display: flex;
  margin-top: 50px;
}

.features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-inline: 22px;
  font-size: 17px;
  line-height: 1.25;
  text-align: center;
}

.features__item:first-child { padding-left: 0; }

.features__item + .features__item { border-left: 1px solid rgba(0, 0, 0, .55); }

.features__item img { width: 60px; height: 58px; object-fit: contain; }

/* ---------- Hakkımızda / istatistik ---------- */
.about { padding-block: 70px 40px; }

.about__inner {
  display: grid;
  grid-template-columns: 440px 1fr;
  align-items: center;
  gap: 40px;
  padding-left: 60px;
}

/* Daire görseller kelimeyle birlikte değişir (rotator.js), rozet sabit */
.about__media { position: relative; }

.about__badge {
  position: absolute;
  top: -9%;
  left: -9%;
  z-index: 1;
  width: 46%;
}

.about__photos {
  display: grid;
  overflow: hidden;
  border-radius: 50%;
}

.about__photo {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}

.about__photo.is-active { opacity: 1; transform: none; }

.about__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.years {
  display: flex;
  align-items: flex-start;
  line-height: .78;
}

.years__num {
  font-size: clamp(130px, 14vw, 215px);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad-gold-v);
  -webkit-background-clip: text;
  background-clip: text;
}

.years__meta {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.years__plus {
  font-size: clamp(60px, 6vw, 90px);
  font-weight: 700;
  line-height: .7;
}

.years__label {
  margin-top: 6px;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 700;
  color: #5a5652;
}

.about__tagline {
  margin-top: 28px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 300;
  color: var(--c-ink);
}

.about__tagline strong { font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 18px 40px;
  margin-block: 26px 44px;
}

.stats__item { display: flex; flex-direction: column; align-items: center; }

.stats__num {
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 600;
  line-height: 1;
  color: var(--c-ink);
}

.stats__num sup { font-size: .5em; vertical-align: .9em; margin-left: 1px; }

.stats__label {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Neden Alaçatı ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ---------- Lezzet dünyası ---------- */
.products { padding-top: 40px; }

.product-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* ---------- Yeni lezzetler ---------- */
.new { position: relative; isolation: isolate; padding-top: 20px; }

.banners {
  position: relative;
  display: grid;
  grid-template-columns: 1023fr 197fr;
  gap: 15px;
  margin-inline: -24px;
}

/* Bannerların ortasından başlayan krem dalgalı zemin */
.banners::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background:
    url("../img/wave-peach.svg") top / 100% 90px no-repeat,
    linear-gradient(var(--c-peach), var(--c-peach)) 0 89px / 100% 100% no-repeat;
}

.banner {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 40px -24px rgba(90, 55, 20, .35);
}

.banner img,
.banner video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.banner:hover img,
.banner:hover video { transform: scale(1.03); }

/* Yan promosyon bannerı: görsel zemin + HTML metin ve buton */
.promo {
  position: relative;
  container-type: inline-size;
  color: var(--c-white);
}

.promo__text {
  position: absolute;
  top: 11%;
  left: 12%;
  right: 10%;
  padding-bottom: 6cqw;
  font-size: max(6cqw, 7px);
  line-height: 1.2;
  letter-spacing: .03em;
}

.promo__text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 2px;
  background: currentColor;
}

.promo__text strong { font-weight: 600; }

.promo__btn {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3.5cqw 9cqw;
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-ink);
  font-size: max(5cqw, 6px);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s, color .25s;
}

.promo__btn::after { content: "→"; }

.promo:hover .promo__btn { background: var(--c-ink); color: var(--c-white); }

/* ---------- Öne çıkan + yorumlar ---------- */
.featured {
  position: relative;
  background: var(--c-peach);
  color: var(--c-peach);
}

.featured .wave--bottom {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: -1px;
}

.featured__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-block: 100px 70px;
  color: var(--c-text);
}

.featured__product {
  position: relative;
  padding-left: 60px;
}

.featured__title {
  font-size: clamp(64px, 6.4vw, 100px);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -0.01em;
}

.featured__title small {
  display: block;
  margin-top: 14px;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 600;
  line-height: 1;
  color: #b4856a;
}

.featured__lead { margin-top: 14px; font-size: 19px; }
.featured__text { font-size: 14px; line-height: 1.1; }

.featured__img {
  position: absolute;
  left: 52%;
  top: 70px;
  width: 300px;
  mix-blend-mode: multiply;
}

.featured__arrow {
  position: absolute;
  left: 75%;
  top: -20px;
  width: 130px;
  color: #d3a46c;
}

.reviews { padding-top: 10px; }

.reviews__title {
  margin-bottom: 18px;
  padding-left: 14px;
  font-size: 22px;
  font-weight: 400;
}

.reviews__track {
  position: relative;
  display: grid;
  max-width: 465px;
  background: var(--c-white);
  border-radius: 20px;
  box-shadow: 0 18px 40px -28px rgba(120, 80, 30, .35);
}

/* Konuşma balonu kuyruğu */
.reviews__track::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: -14px;
  width: 30px;
  height: 30px;
  background: var(--c-white);
  border-radius: 0 0 6px 0;
  transform: rotate(45deg);
}

.review {
  grid-area: 1 / 1;
  padding: 32px 44px 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
}

.review.is-active { opacity: 1; visibility: visible; transform: none; }

.review__text { font-size: 14px; line-height: 1.45; }

.review__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
}

.review__author { font-size: 13px; }
.review__author em { margin-left: 16px; font-weight: 700; }

/* ---------- Aile görseli ---------- */
.family {
  position: relative;
  z-index: 1;
  margin-top: calc(clamp(50px, 7vw, 120px) * -.1);
}

.family__img {
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
}

/* ---------- İş ortakları ---------- */
.partners { padding-top: 50px; text-align: center; }

.partners__title {
  margin-top: 10px;
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 500;
  color: var(--c-ink);
}

.partners__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
}

.partners__list li { flex: 0 1 auto; }

/* --w: logonun doğal genişliği; logolar referans görseldeki oranlarını korur */
.partners__list img {
  width: calc(var(--w) * .6px);
  max-width: 100%;
  transition: transform .3s var(--ease);
}

.partners__list li:hover img { transform: translateY(-4px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
  .about__inner { grid-template-columns: 360px 1fr; padding-left: 0; }
  .stats { gap: 18px 28px; }
  .featured__img { width: 240px; }
}

@media (max-width: 1024px) {
  .product-list { grid-template-columns: repeat(3, 1fr); }
  .product-list .product:nth-child(n+4) { display: none; }
  .cards { gap: 20px; }
  .story__content { padding-left: 0; }
  .partners__list { flex-wrap: wrap; justify-content: center; gap: 30px 50px; }
}

@media (max-width: 900px) {
  .story__inner { min-height: 0; padding-bottom: 0; }

  .story__inner { padding-bottom: min(110vw, 600px); }

  .story__image { bottom: -40px; width: min(80vw, 440px); }

  .story__wheat { top: auto; bottom: 34%; left: 0; width: min(80vw, 440px); }

  .about__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about__media { width: min(360px, 80%); }
  .years { justify-content: center; }
  .stats { grid-template-columns: repeat(2, auto); justify-content: center; }

  .featured__inner { grid-template-columns: 1fr; gap: 60px; }
  .featured__product { padding-left: 0; }
  .featured__arrow { display: none; }
  .reviews__track { max-width: none; }
}

@media (max-width: 768px) {
  .hero__eyebrow { font-size: 14px; }
  .hero__eyebrow::before { width: 40px; }
  .hero__text { font-size: 16px; }

  .intro__text br { display: none; }

  .story__text { font-size: 16px; }
  .features { margin-top: 32px; }
  .features__item { padding-inline: 14px; font-size: 14px; }

  /* Kartlar alt alta */
  .cards { grid-template-columns: 1fr; gap: 16px; }

  /* Ürünler 2 sütunlu grid: ilk 4 ürün */
  .product-list { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; margin-bottom: 36px; }
  .product-list .product:nth-child(n+4) { display: block; }
  .product-list .product:nth-child(n+5) { display: none; }
  .product__name { font-size: 18px; }

  .banners { grid-template-columns: 1fr; margin-inline: 0; gap: 12px; }
  .banner { border-radius: 12px; }

  /* Promo mobilde yatay kart: metin solda, görsel sağda */
  .promo { height: 200px; background: var(--c-orange); }
  .promo img { width: 46%; margin-left: auto; object-fit: cover; object-position: center 62%; }
  .promo__text { top: 26px; left: 22px; right: 48%; padding-bottom: 14px; font-size: 14px; }
  .promo__btn { left: 22px; bottom: 26px; transform: none; padding: 9px 18px; font-size: 11px; }

  .featured__inner { padding-block: 64px 50px; }
  .featured__img { position: static; width: 220px; margin: 10px 0 0 auto; }

  .review { padding: 26px 24px 22px; }
  .review__author em { margin-left: 8px; }

  .partners__list { gap: 24px 36px; }
  .partners__list img { width: calc(var(--w) * .45px); }
}

@media (max-width: 480px) {
  .stats { gap: 24px 20px; }
  .features__item { padding-inline: 10px; }
  .review__foot { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 22px; }
  .partners__list li { flex: 0 0 40%; display: flex; justify-content: center; }
}
