/**
 * Ana sayfa CLS önleme — main.css yüklenmeden önce layout rezervasyonu
 */
html[dir="rtl"],
html[dir="rtl"] body {
  overflow-x: clip;
  max-width: 100%;
}

.page-home {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1a2a24;
  /* main.css async/geç gelse bile hero yüksekliği çökmesin (CLS) */
  min-height: 600px;
  height: 600px;
}

.hero__lcp-poster {
  display: block;
  width: 100%;
  height: 600px;
  min-height: 600px;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero {
    min-height: clamp(600px, 85vh, 900px);
    height: clamp(600px, 85vh, 900px);
  }

  .hero__lcp-poster {
    height: clamp(600px, 85vh, 900px);
    min-height: clamp(600px, 85vh, 900px);
  }
}

.hero__slides {
  display: none;
}

.hero__chrome {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero__chrome > * {
  pointer-events: auto;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: var(--nav-offset) 1.5rem 1.5rem;
  box-sizing: border-box;
}

.hero h1 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1.25rem;
}

.hero__desc {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #e5e7eb;
  line-height: 1.7;
  margin: 0 0 2.25rem;
  max-width: 34rem;
}

:root {
  --nav-offset: 72px;
}

@media (min-width: 768px) {
  :root {
    --nav-offset: 108px;
  }
}

#header-root {
  min-height: 72px;
}

@media (min-width: 768px) {
  #header-root {
    min-height: 108px;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: #fff;
}

/* main.css gelmeden header-top mobil kaymasını önle */
.header-top {
  display: none;
}

@media (min-width: 768px) {
  .header-top {
    display: block;
    background: #3d5e50;
    color: #a8c4b8;
    font-size: 12px;
    padding: 0.5rem 0;
  }
}

.site-nav__row {
  height: 72px;
}

.logo--image .logo__img {
  display: block;
  width: auto;
  height: clamp(2.6rem, 5.2vw, 3.45rem);
  max-width: min(234px, 54.6vw);
  aspect-ratio: 233 / 83;
}

.section--home-about {
  padding: 4rem 0;
  background: #fff;
}

/* main.css gelmeden grid/stat rezervi — viewport altındaki about kaymasını kes */
.home-about {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.home-about__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 280px;
  aspect-ratio: 1 / 1;
  max-height: min(92vw, 520px);
}

.home-about__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  min-height: 0;
}

@media (min-width: 640px) {
  .home-about__mosaic {
    min-height: 320px;
    max-height: min(88vw, 560px);
  }
}

.home-about__cell--img {
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.home-about__cell--img img,
.home-about__layer {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.catalog-card__cover {
  aspect-ratio: 320 / 240;
  overflow: hidden;
}

.catalog-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 320 / 240;
}

.section {
  padding: 5rem 0;
}

/* Blog bölümü — JS kartları gelmeden önce alan rezervi (CLS) */
.section--home-blog {
  padding: 5rem 0;
  background: #e8efec;
}

.section--home-blog .section__title {
  margin-bottom: 0;
}

.home-blog__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.4rem;
}

.home-blog__all-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #755f3a;
  text-decoration: none;
  white-space: nowrap;
}

.home-blog__lead {
  max-width: 40rem;
  margin: 0 0 1.25rem;
  color: #4b5563;
}

.home-blog__inner {
  min-height: 18.5rem;
}

.home-blog__skeleton {
  display: flex;
  gap: 1rem;
  overflow: hidden;
}

.home-blog__skeleton-card {
  flex: 0 0 auto;
  width: min(240px, 78vw);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-blog__skeleton-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #d4e2dc;
}

.home-blog__skeleton-body {
  min-height: 5.75rem;
  padding: 0.85rem 0.95rem 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-blog__skeleton-card {
    width: min(220px, 42vw);
  }
}

@media (min-width: 1200px) {
  .home-blog__inner {
    min-height: 17.5rem;
  }

  .home-blog__skeleton {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    overflow: visible;
  }

  .home-blog__skeleton-card {
    width: auto;
  }
}
