/* ==========================================================================
   EMF PİSTON — ana sayfa
   ========================================================================== */

/* ---------- Hero slider ----------
   Slayt gorselleri hazir afis (beyaz zemin + kendi tipografisi). Afis tam
   gosterilir, uzerine hicbir sey bindirilmez; metin altindaki koyu seritte. */
.hero { background: var(--white); }

.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 700;
  max-height: 468px;
  background: var(--white);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity .55s ease, visibility .55s;
}
.hero__img.is-active { opacity: 1; visibility: visible; }

/* Afisin altindaki koyu bilgi seridi — makine etiketi gibi düz kenarlı */
.hero__bar { background: var(--ink); color: #fff; border-top: 4px solid var(--orange); }
.hero__bar-inner {
  display: flex; align-items: center; gap: 2rem;
  min-height: 132px; padding: 1.35rem 0 1.5rem;
}

.hero__captions { position: relative; flex: 1 1 auto; min-width: 0; }
.hero__caption {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: .35rem 2rem;
}
.hero__caption:not(.is-active) {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
}
.hero__title {
  grid-column: 1; margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.1;
  text-wrap: balance;
}
.hero__sub {
  grid-column: 1; grid-row: 2; margin: 0;
  color: #B6BBC1; font-size: clamp(.9rem, 1.1vw, 1.02rem); max-width: 62ch;
}
.hero__cta { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }

/* Geçiş kontrolleri */
.hero__nav { flex: 0 0 auto; display: flex; align-items: center; gap: .7rem; }
.hero__arrow {
  width: 38px; height: 38px; background: transparent;
  border: 1px solid rgba(255,255,255,.4); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, border-color .15s, color .15s;
}
.hero__arrow svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.hero__arrow:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero__arrow:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.hero__dots { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; width: 130px; }
.hero__dots li { flex: 1 1 0; }
.hero__dots button { display: block; width: 100%; padding: 10px 0; background: none; border: 0; cursor: pointer; }
.hero__dots button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.hero__bar-fill { display: block; height: 3px; background: rgba(255,255,255,.32); position: relative; overflow: hidden; }
.hero__bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
}
.hero__dots button[aria-selected="true"] .hero__bar-fill::after { transform: scaleX(1); }
.hero.is-playing .hero__dots button[aria-selected="true"] .hero__bar-fill::after {
  animation: hero-progress 6s linear forwards;
}
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Ürün grupları ---------- */
.groups .group-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.group-list li { border-bottom: 1px solid var(--line); }
.group-list a {
  display: grid;
  grid-template-columns: 76px 1fr auto auto;
  align-items: center; gap: 1.5rem;
  padding: 1.5rem .25rem;
  transition: background .15s, padding-left .15s;
}
.group-list a:hover { background: var(--steel-050); padding-left: 1rem; }
.group-list .card__glyph { width: 60px; height: 60px; color: var(--ink-600); }
.group-list a:hover .card__glyph { color: var(--orange); }
.group-list__name {
  font-family: var(--display); font-variation-settings: 'wdth' 112;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800;
  letter-spacing: -.015em; text-transform: uppercase;
}
.group-list__count {
  font-family: var(--display); font-variation-settings: 'wdth' 100;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; color: var(--orange);
}
.group-list__unit { color: var(--muted); font-size: .9rem; }

/* ---------- Rakamlar: ölçü çizgisiyle ---------- */
.stats { background: var(--ink); color: #fff; padding: 3.25rem 0; }
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem; margin: 0;
}
.stats__item { display: grid; gap: .55rem; }
.stats__item dt {
  font-family: var(--display); font-variation-settings: 'wdth' 108;
  font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1;
}
.stats__item dd { margin: 0; font-size: .88rem; color: #AFB5BB; }

/* Teknik resimdeki ölçü çizgisi: uçları çentikli ince çizgi */
.stats__rule { display: block; height: 7px; position: relative; }
.stats__rule::before {
  content: ''; position: absolute; left: 0; right: 0; top: 3px;
  height: 1px; background: var(--orange);
}
.stats__rule::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0;
  height: 7px;
  border-left: 1px solid var(--orange);
  border-right: 1px solid var(--orange);
}

/* ---------- Firma özeti + video ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.video-embed { position: relative; overflow: hidden; background: #000; cursor: pointer; border: 1px solid var(--line); }
.video-embed img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-embed:hover img { opacity: 1; }
.video-embed:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.video-embed__play {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px;
  background: var(--orange); color: #fff; display: grid; place-items: center;
  transition: transform .2s;
}
.video-embed__play svg { width: 32px; height: 32px; margin-left: 3px; }
.video-embed:hover .video-embed__play { transform: scale(1.07); }
.video-embed iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }

/* Ana sayfa galerisi: 6 fotoğraf, 3 sütun — artık tek kalan olmuyor */
.gallery-grid--home { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .gallery-grid--home { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Bölüm başlığı + bağlantı ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; }
.section-head__link {
  font-weight: 600; color: var(--orange); border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.section-head__link:hover { border-bottom-color: var(--orange); }

/* ---------- Duyarlı ---------- */
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__bar-inner { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .hero__caption { grid-template-columns: 1fr; }
  .hero__cta { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .5rem; }
  .hero__nav { justify-content: space-between; }
  .hero__dots { width: auto; flex: 1 1 auto; max-width: 220px; margin-inline: .75rem; }
  .group-list a { grid-template-columns: 52px 1fr auto; row-gap: .25rem; gap: 1rem; }
  .group-list .card__glyph { width: 44px; height: 44px; }
  .group-list__unit { grid-column: 2 / -1; }
}
@media (max-width: 560px) {
  .hero__stage { aspect-ratio: 16 / 9; }
  .hero__arrow { width: 34px; height: 34px; }
  .hero__cta { width: 100%; justify-self: stretch; }
}

/* Ana sayfa duyurulari: gorsel varsa ustte 16:9, metin iki satirda kesilir */
.news-card { display: flex; flex-direction: column; }
.news-card__media {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--steel-050);
  border-bottom: 1px solid var(--line);
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card h3 { margin: .25rem 0 .35rem; font-size: 1.05rem; line-height: 1.3; }
.news-card__text {
  margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-news .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .home-news .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-news .grid { grid-template-columns: 1fr; } }
