/*
 * YAPAY TAŞ — home.css
 * Ana Sayfa özelleştirmeleri
 */

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 14s ease;
  will-change: transform;
}

.hero__bg.is-loaded { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(9,8,10,0.92) 0%, rgba(9,8,10,0.55) 50%, rgba(9,8,10,0.15) 100%),
    linear-gradient(to bottom, transparent 30%, rgba(9,8,10,0.75) 70%, rgba(9,8,10,1) 100%);
}

/* İçerik alanı */
.hero__content {
  flex: 1;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(40px, 10vh, 100px)) var(--gutter) var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Headline — satır klip efekti */
.hero__title {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-6xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-block: var(--space-xl) var(--space-xl);
}

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

.hero__line-inner {
  display: block;
  animation: line-reveal 1.1s var(--ease-out-expo) both;
}

.hero__title .hero__line:nth-child(1) .hero__line-inner { animation-delay: 0.20s; }
.hero__title .hero__line:nth-child(2) .hero__line-inner { animation-delay: 0.35s; }
.hero__title .hero__line:nth-child(3) .hero__line-inner { animation-delay: 0.50s; }
.hero__title .hero__line:nth-child(4) .hero__line-inner { animation-delay: 0.65s; }

@keyframes line-reveal {
  from { transform: translateY(108%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero__line--accent .hero__line-inner { color: var(--clr-accent); }

.hero__line--outline .hero__line-inner {
  color: transparent;
  -webkit-text-stroke: 2px rgba(240,236,232,0.5);
}

/* Alt metin + CTA */
.hero__sub {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-2xl);
  animation: hero-fade-up var(--dur-slowest) var(--ease-out-expo) 0.75s both;
}

.hero__sub p {
  font-size: var(--text-md);
  color: var(--clr-text-2);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  max-width: 46ch;
}

.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Kaydırma göstergesi */
.hero__scroll {
  position: absolute;
  bottom: clamp(120px, 20vh, 170px);
  right: var(--gutter);
  z-index: 3;
  animation: hero-fade-up 1s var(--ease-out-expo) 1.0s both;
}

/* Stats bar */
.hero__statsbar {
  position: relative;
  z-index: 2;
  background: rgba(9,8,10,0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--clr-border);
  animation: hero-fade-in 0.8s var(--ease-out-expo) 1.1s both;
}

.hero__statsbar-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--space-xl) var(--gutter);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 4px;
  min-width: 90px;
}

.hero__stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--clr-accent);
  line-height: 1;
  letter-spacing: var(--ls-tight);
}

.hero__stat-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-text-3);
}

.hero__stat-sep {
  width: 1px;
  height: 36px;
  background: var(--clr-border);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   MARQUEE STRIP
   ═══════════════════════════════════════════════════════════════════ */
.marquee-strip {
  border-block: 1px solid var(--clr-border);
  padding-block: var(--space-md);
  overflow: hidden;
  background: var(--clr-surface);
}

/* ═══════════════════════════════════════════════════════════════════
   KATEGORİLER BENTO
   ═══════════════════════════════════════════════════════════════════ */
.cats__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2xl);
  margin-bottom: clamp(32px, 5vw, 52px);
}

.cats__header-left h2 { margin-top: var(--space-md); }

.cats__header-right {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xl);
}

.cats__header-right p {
  font-size: var(--text-base);
  color: var(--clr-text-2);
  line-height: var(--lh-relaxed);
}

/* Bento grid — 2fr sol (büyük), 1fr sağ (iki küçük) */
.cats__bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-md);
  height: clamp(520px, 65vw, 720px);
}

/* Kart — ortak */
.cat-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: var(--clr-text-1);
  border: 1px solid var(--clr-border);
  transition: border-color var(--dur-base);
}

.cat-card:hover { border-color: var(--clr-border-accent); }

.cat-card--main { grid-row: 1 / 3; }

/* Görüntü */
.cat-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slowest) var(--ease-spring);
}

.cat-card:hover .cat-card__img { transform: scale(1.06); }

/* Gradyan örtüsü */
.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9,8,10,0.95) 0%,
    rgba(9,8,10,0.45) 45%,
    rgba(9,8,10,0.10) 100%
  );
  transition: background var(--dur-base);
}

.cat-card:hover .cat-card__overlay {
  background: linear-gradient(
    to top,
    rgba(9,8,10,0.97) 0%,
    rgba(9,8,10,0.55) 45%,
    rgba(9,8,10,0.20) 100%
  );
}

/* İçerik katmanı */
.cat-card__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-lg);
}

.cat-card__label {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-xs);
  letter-spacing: var(--ls-widest);
  color: var(--clr-text-3);
  margin-bottom: var(--space-xs);
}

.cat-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-tight);
  line-height: 1.0;
  margin-bottom: var(--space-sm);
  transition: color var(--dur-base);
}

.cat-card:hover .cat-card__title { color: var(--clr-accent); }

.cat-card__desc {
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
  max-width: 34ch;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-base) 0.05s, transform var(--dur-base) 0.05s;
}

.cat-card:hover .cat-card__desc { opacity: 1; transform: translateY(0); }

.cat-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-accent);
  transition: gap var(--dur-base);
}

.cat-card:hover .cat-card__cta { gap: var(--space-md); }

/* ═══════════════════════════════════════════════════════════════════
   ÖNCÜ ÜRÜNLER
   ═══════════════════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.products-cta { display: flex; justify-content: center; }

/* Ürün Kartı */
.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    border-color var(--dur-base),
    transform    var(--dur-slow) var(--ease-spring),
    box-shadow   var(--dur-slow);
}

.prod-card:hover {
  border-color: var(--clr-border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.prod-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  background: var(--clr-surface-2);
}

.prod-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-spring);
}

.prod-card:hover .prod-card__img-wrap img { transform: scale(1.08); }

.prod-card__img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,8,10,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-base);
}

.prod-card:hover .prod-card__img-overlay { opacity: 1; }

.prod-card__zoom-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(9,8,10,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-1);
  transform: scale(0.75);
  transition: transform var(--dur-base) var(--ease-bounce);
}

.prod-card:hover .prod-card__zoom-btn { transform: scale(1); }

.prod-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.prod-card__meta { margin-bottom: var(--space-xs); }

.prod-card__series {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-text-3);
}

.prod-card__name {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-xl);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-snug);
  color: var(--clr-text-1);
  transition: color var(--dur-base);
  line-height: 1.1;
}

.prod-card:hover .prod-card__name { color: var(--clr-accent); }

.prod-card__desc {
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  line-height: var(--lh-relaxed);
  flex: 1;
}

.prod-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-accent);
  text-decoration: none;
  margin-top: var(--space-md);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-md);
  transition: gap var(--dur-base), color var(--dur-base);
}

.prod-card__link:hover { gap: var(--space-md); color: var(--clr-accent-2); }

/* ═══════════════════════════════════════════════════════════════════
   HİKAYEMİZ (HAKKIMIZDA ÖZETİ)
   ═══════════════════════════════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: center;
}

.about__text .label { margin-bottom: var(--space-lg); }
.about__text h2 { margin-bottom: var(--space-xl); }

.about__lead {
  font-size: var(--text-md);
  color: var(--clr-text-1);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
}

.about__body {
  font-size: var(--text-base);
  color: var(--clr-text-2);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-2xl);
}

.about__stats {
  display: flex;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--clr-border);
}

/* Galeri */
.about__gallery { position: relative; }

.about__gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.about__gallery-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--clr-card);
  aspect-ratio: 4/3;
}

.about__gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-spring);
}

.about__gallery-item:hover img { transform: scale(1.06); }

.about__gallery-badge {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
}

.about__gallery-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--r-xl);
  text-align: center;
  gap: 4px;
}

.about__gallery-badge-num {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--clr-accent);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}

.about__gallery-badge-text {
  font-size: var(--text-xs);
  color: var(--clr-text-2);
  line-height: var(--lh-relaxed);
}

/* ═══════════════════════════════════════════════════════════════════
   NEDEN YAPAY TAŞ — ÖZELLİKLER
   ═══════════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.feature-card {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  background: var(--clr-card);
  border-right: 1px solid var(--clr-border);
  position: relative;
  transition: background var(--dur-base);
}

.feature-card:last-child { border-right: none; }
.feature-card:hover { background: var(--clr-card-hover); }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--clr-accent-dim);
  border: 1px solid var(--clr-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  transition: background var(--dur-base);
}

.feature-card:hover .feature-card__icon { background: rgba(200,169,110,0.18); }

.feature-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-snug);
  margin-bottom: var(--space-md);
  color: var(--clr-text-1);
}

.feature-card__body {
  font-size: var(--text-sm);
  color: var(--clr-text-2);
  line-height: var(--lh-relaxed);
}

/* ═══════════════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════════════ */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 14vw, 160px);
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.cta-banner__tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 50%, rgba(200,169,110,0.07) 0%, transparent 65%),
    linear-gradient(135deg, var(--clr-bg) 0%, rgba(22,20,28,0.96) 100%);
}

.cta-banner__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.cta-banner__text .label { margin-bottom: var(--space-xl); }
.cta-banner__text h2 { line-height: var(--lh-tight); margin-bottom: var(--space-xl); }

.cta-banner__sub {
  font-size: var(--text-md);
  color: var(--clr-text-2);
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-light);
  max-width: 50ch;
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 260px;
}

.cta-banner__actions .btn { width: 100%; justify-content: center; }

.cta-banner__divider {
  width: 100%;
  height: 1px;
  background: var(--clr-border);
  margin-block: var(--space-sm);
}

.cta-banner__phone-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--clr-text-3);
}

.cta-banner__phone {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text-1);
  text-decoration: none;
  letter-spacing: var(--ls-snug);
  transition: color var(--dur-base);
}

.cta-banner__phone:hover { color: var(--clr-accent); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — home.css
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(2) { border-right: none; }
  .feature-card:nth-child(1),
  .feature-card:nth-child(2) { border-bottom: 1px solid var(--clr-border); }
  .feature-card:nth-child(3) { border-right: none; }
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) { border-right: 1px solid var(--clr-border); }
  .feature-card:nth-child(4) { border-right: none; }
}

@media (max-width: 960px) {
  .cats__header { flex-direction: column; align-items: flex-start; gap: var(--space-xl); }
  .cats__header-right { max-width: 100%; }

  .cats__bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }
  .cat-card--main { grid-row: auto; height: 480px; }
  .cat-card--secondary,
  .cat-card--tertiary { height: 300px; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .about__grid { grid-template-columns: 1fr; }
  .about__gallery { margin-top: var(--space-2xl); }

  .cta-banner__inner { grid-template-columns: 1fr; }
  .cta-banner__actions { flex-direction: row; flex-wrap: wrap; min-width: unset; }
  .cta-banner__actions .btn { width: auto; flex: 1; }
}

@media (max-width: 768px) {
  .hero__sub { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero__stat-sep { display: none; }
  .hero__statsbar-inner { justify-content: center; gap: var(--space-xl); flex-wrap: wrap; }

  .products-grid { grid-template-columns: 1fr; }

  .about__stats { flex-wrap: wrap; gap: var(--space-xl); }
  .about__gallery-badge { position: static; margin-top: var(--space-md); display: flex; justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none !important; border-bottom: 1px solid var(--clr-border) !important; }
  .feature-card:last-child { border-bottom: none !important; }

  .cta-banner__actions { flex-direction: column; }
  .cta-banner__actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .hero__line--outline .hero__line-inner { -webkit-text-stroke: 1px rgba(240,236,232,0.45); }
  .cat-card--main { height: 360px; }
}

/* ── Light Mode Overrides ────────────────────────────────────────── */
[data-theme="light"] .hero__overlay {
  background:
    linear-gradient(108deg, rgba(247,244,239,0.88) 0%, rgba(247,244,239,0.50) 50%, rgba(247,244,239,0.10) 100%),
    linear-gradient(to bottom, transparent 30%, rgba(247,244,239,0.72) 70%, rgba(247,244,239,1) 100%);
}

[data-theme="light"] .cat-card__overlay {
  background: linear-gradient(to top,
    rgba(247,244,239,0.96) 0%,
    rgba(247,244,239,0.50) 45%,
    rgba(247,244,239,0.12) 100%
  );
}

[data-theme="light"] .cat-card:hover .cat-card__overlay {
  background: linear-gradient(to top,
    rgba(247,244,239,0.98) 0%,
    rgba(247,244,239,0.60) 45%,
    rgba(247,244,239,0.22) 100%
  );
}

[data-theme="light"] .hero__statsbar {
  background: rgba(247,244,239,0.80);
}

[data-theme="light"] .prod-card__img-overlay {
  background: rgba(247,244,239,0.50);
}

[data-theme="light"] .prod-card__zoom-btn {
  background: rgba(247,244,239,0.82);
  border-color: rgba(0,0,0,0.15);
}
