/* ==========================================================================
   HERO V4 - Akyuz Insaat: centered cinematic hero + stats strip
   Always dark: fixed colors, independent of theme.
   Stacking is explicit (img 0 / shade 1 / content 2) so the shade always shows.
   ========================================================================== */

.hero.hero-v4 {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 92vh;
  padding: 0;
  overflow: hidden;
  background: #07090d;
}

.hero-v4-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.62);
  animation: heroZoom 28s infinite alternate ease-in-out;
}

/* Shade: even dark layer + stronger center/bottom so text always reads */
.hero-v4-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.85) 100%);
}

.hero-v4-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 5rem;
}

.hero-v4-kicker {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: #ecd093;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-v4-kicker::before,
.hero-v4-kicker::after {
  content: "";
  width: 46px;
  height: 1px;
  background: #ecd093;
}

.hero-v4-title {
  max-width: 920px;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.8vw, 5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.75);
}

.hero-v4-title .accent {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-light);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85)) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7));
  text-decoration: none;
}

.hero-v4-lead {
  max-width: 640px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #f0f3f8;
  margin-bottom: 2.25rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.hero-v4-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
}

.btn-pill i {
  transition: transform 0.3s ease;
}

.btn-pill:hover i {
  transform: translateX(5px);
}

.btn-pill-gold {
  background: linear-gradient(135deg, #c59b53 0%, #ecd093 55%, #b78a3f 100%);
  color: #0b0d11;
  box-shadow: 0 8px 28px rgba(197, 155, 83, 0.4);
}

.btn-pill-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(197, 155, 83, 0.6);
}

.btn-pill-glass {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-pill-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ecd093;
  transform: translateY(-3px);
}

/* ---------- Stats strip ---------- */
.hero-v4-stats {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #171c26 0%, #0d1016 100%);
  border-top: 1px solid rgba(236, 208, 147, 0.35);
  border-bottom: 1px solid rgba(236, 208, 147, 0.2);
}

.hero-v4-stats .hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 0;
}

.hero-v4-stats .stat-item {
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-v4-stats .stat-item:last-child {
  border-right: 0;
}

.hero-v4-stats .stat-number {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.3rem;
  color: #ffffff !important;
  text-shadow: none;
}

.hero-v4-stats .stat-number .stat-suffix {
  font-size: 1.05rem;
  margin-left: 0.2rem;
  color: #ecd093 !important;
}

.hero-v4-stats .stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c3ccd9 !important;
  text-shadow: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero.hero-v4 {
    min-height: auto;
  }
  .hero-v4-body {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .hero-v4-kicker::before,
  .hero-v4-kicker::after {
    display: none;
  }
  .hero-v4-stats .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-v4-stats .stat-item:nth-child(2) {
    border-right: 0;
  }
  .hero-v4-stats .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }
}

@media (max-width: 520px) {
  .btn-pill {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   HERO SLIDER (v4.1): full-bleed slides, centered title, thumbnail selector
   ========================================================================== */
.hero.hero-v4 { min-height: max(640px, 90vh); }

.hero-slides { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s;
}
.hero-slide.active { opacity: 1; visibility: visible; }

.hero-slide .hero-v4-img { z-index: 0; }
.hero-slide .hero-v4-shade { z-index: 1; }

.hero-slide .hero-v4-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  flex: none;
  padding: 5rem 1.5rem 14rem;
}

.hero-slide .hero-v4-title { font-size: clamp(2.2rem, 4.6vw, 4rem); max-width: 860px; }

.hero-slide.active .hero-v4-title,
.hero-slide.active .hero-v4-lead,
.hero-slide.active .btn-pill-white { animation: heroRise 0.9s ease both; }
.hero-slide.active .hero-v4-lead { animation-delay: 0.15s; }
.hero-slide.active .btn-pill-white { animation-delay: 0.3s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.btn-pill-white {
  background: #ffffff;
  color: #0b0d11;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.btn-pill-white i { font-size: 1.1rem; }
.btn-pill-white:hover { background: #ecd093; transform: translateY(-3px); }

/* Thumbnail selector row */
.hero-v4-thumbs {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem 1.75rem;
  margin-top: auto;
}

.hero-thumbs-row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.hero-thumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem 0.9rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0) 100%);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.55);
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px 8px 0 0;
  text-align: left;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.hero-thumb img {
  width: 56px;
  height: 40px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.hero-thumb .no { position: absolute; top: -0.2rem; left: 88px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: #ecd093; opacity: 0; }
.hero-thumb .lbl { font-family: var(--font-accent); font-size: 0.82rem; font-weight: 700; line-height: 1.3; color: #ffffff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6); }
.hero-thumb:hover, .hero-thumb.active { color: #ffffff; }
.hero-thumb:hover img, .hero-thumb.active img { opacity: 1; }
.hero-thumb.active { border-bottom-color: #ecd093; }
.hero-thumb.active .no { opacity: 1; }

.hero-arrows { display: flex; gap: 0.75rem; }
.hero-arrows button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.hero-arrows button:hover { background: #ecd093; border-color: #ecd093; color: #0b0d11; }

@media (max-width: 991px) {
  .hero-v4-thumbs { flex-direction: column; gap: 1rem; }
  .hero-thumbs-row { grid-template-columns: repeat(2, 1fr); width: 100%; }
}
@media (max-width: 520px) {
  .hero-thumb img { width: 56px; height: 40px; }
  .hero-thumb .no { display: none; }
  .hero-slide .hero-v4-body { padding-bottom: 20rem; }
}
/* Gölge kaldırıldı: resimler doğal renkleriyle görünür */
.hero-v4-img { filter: none !important; }
.hero-v4-shade { background: none !important; }
/* Hafif karartma */
.hero-v4-shade { background: rgba(0, 0, 0, 0.22) !important; }
/* ==========================================================================
   TRANSPARENT NAVBAR OVER HERO (index only; turns solid after scrolling)
   ========================================================================== */
.navbar.navbar-over-hero {
  margin-bottom: -105px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.30) 60%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.navbar.navbar-over-hero.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-gold);
}

.navbar-over-hero:not(.scrolled) .brand-name { color: #ffffff !important; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.navbar-over-hero:not(.scrolled) .brand-name .text-gold {
  color: #f6d98a !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.navbar-over-hero:not(.scrolled) .brand-tagline {
  color: #ecd093;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.navbar-over-hero:not(.scrolled) .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

@media (min-width: 992px) {
  .navbar-over-hero:not(.scrolled) .nav-link {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  }
  .navbar-over-hero:not(.scrolled) .nav-link:hover,
  .navbar-over-hero:not(.scrolled) .nav-link.active { color: #ecd093; }
}

.hero-slide .hero-v4-body { padding-top: 8.5rem; }
/* ===== Malzeme Markaları Kayan Şerit ===== */
.brand-marquee {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(197, 155, 83, 0.25);
  border-bottom: 1px solid rgba(197, 155, 83, 0.25);
  padding: 1.6rem 0 1.8rem;
  overflow: hidden;
}
.brand-marquee-head { text-align: center; margin-bottom: 1.2rem; }
.brand-marquee-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
}
.brand-marquee-tag i { margin-right: 0.5rem; }
.brand-marquee-viewport {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brand-marquee-track {
  display: flex;
  width: max-content;
  animation: brandScroll 38s linear infinite;
}
.brand-marquee-viewport:hover .brand-marquee-track { animation-play-state: paused; }
.brand-marquee-list {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 0 1.75rem;
  margin: 0;
  list-style: none;
}
.brand-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-muted, #8a93a3);
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  cursor: default;
}
.brand-item i { font-size: 1.4rem; }
.brand-item:hover { opacity: 1; filter: none; transform: scale(1.08); }
.brand-item.b-cimsa:hover { color: #e30613; }
.brand-item.b-akcansa:hover { color: #0a7d3b; }
.brand-item.b-kardemir:hover { color: #d9232d; }
.brand-item.b-knauf:hover { color: #0072bc; }
.brand-item.b-filli:hover { color: #e4002b; }
.brand-item.b-schuco:hover { color: #00a0e3; }
.brand-item.b-vitra:hover { color: #1a8fcf; }
.brand-item.b-hilti:hover { color: #d2051e; }
.brand-item.b-baymak:hover { color: #e2001a; }
.brand-item.b-kale:hover { color: #f39200; }
@keyframes brandScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .brand-item { font-size: 1.15rem; }
  .brand-marquee-list { gap: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track { animation: none; }
}

/* ===== Okuma ilerleme çizgisi ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--gold-gradient); z-index: 10000; pointer-events: none;
  box-shadow: 0 0 10px rgba(236, 208, 147, 0.7);
}

/* ===== Kaydırma ile beliren öğeler ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Önce / Sonra Slider ===== */
.ba-slider {
  --pos: 50%;
  position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; user-select: none;
  border: 1px solid rgba(197, 155, 83, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(197, 155, 83, 0.08);
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before { filter: grayscale(0.85) contrast(1.05) brightness(0.9); }
.ba-label {
  position: absolute; top: 1rem; padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; color: #fff;
  background: rgba(8, 12, 20, 0.7); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.2);
}
.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; color: #ecd093; border-color: rgba(236, 208, 147, 0.5); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--gold-gradient); box-shadow: 0 0 14px rgba(236, 208, 147, 0.8); pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; color: #1a1408; font-size: 1.1rem;
  background: var(--gold-gradient); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(236, 208, 147, 0.25);
  animation: baPulse 2.2s ease-in-out infinite;
}
@keyframes baPulse { 50% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 14px rgba(236, 208, 147, 0); } }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ===== Proje Haritası ===== */
.map-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.75rem; align-items: stretch; }
.map-canvas {
  position: relative; min-height: 420px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1b2332 0%, #0c1119 100%);
  border: 1px solid rgba(197, 155, 83, 0.35); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-note { position: absolute; left: 1rem; bottom: 0.8rem; font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); }
.map-pin {
  position: absolute; transform: translate(-50%, -50%); width: 42px; height: 42px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #1a1408; font-size: 1rem;
  background: var(--gold-gradient); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease; z-index: 2;
}
.map-pin .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ecd093; animation: pinPulse 2.4s ease-out infinite; }
@keyframes pinPulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
.map-pin em {
  position: absolute; bottom: 125%; left: 50%; transform: translate(-50%, 6px); white-space: nowrap;
  padding: 0.35rem 0.7rem; border-radius: 8px; font-style: normal; font-size: 0.78rem; font-weight: 700;
  color: #fff; background: rgba(8, 12, 20, 0.92); border: 1px solid rgba(236, 208, 147, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.map-pin:hover, .map-pin.active { transform: translate(-50%, -50%) scale(1.2); z-index: 3; }
.map-pin:hover em, .map-pin.active em { opacity: 1; transform: translate(-50%, 0); }
.map-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.map-list li {
  display: flex; align-items: center; gap: 1rem; flex: 1; padding: 0.9rem 1.1rem; border-radius: 12px; cursor: pointer;
  background: var(--bg-secondary); border: 1px solid rgba(197, 155, 83, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.map-list li i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #1a1408; background: var(--gold-gradient); flex-shrink: 0; }
.map-list li strong { display: block; font-size: 0.98rem; }
.map-list li small { opacity: 0.7; }
.map-list li:hover, .map-list li.active { transform: translateX(6px); border-color: #ecd093; box-shadow: 0 8px 24px rgba(197, 155, 83, 0.25); }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } .map-canvas { min-height: 340px; } }

/* akyuz1 / akyuz2 slaytları: görsel kırpılmadan ve zoom yapmadan, geri çekilmiş görünür */
.hero-v4-img.hero-v4-img-back {
  object-fit: cover;
  object-position: center 30%;
  animation: none;
  background: transparent;
}
/* Yan boşlukları aynı görselin bulanık kopyası doldurur */
.hero-v4-img.hero-v4-img-blur {
  object-fit: cover;
  animation: none;
  transform: scale(1.15);
  filter: blur(28px) brightness(0.7) !important;
}
