/* QR Tekstil – hareket katmanı (site.css'ten sonra yüklenir) */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---- Okuma ilerleme çizgisi (yalnızca destekleyen tarayıcılarda) */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none;
    background: rgb(var(--sun-rgb)); transform-origin: left; transform: scaleX(0);
    animation: progress-grow linear both; animation-timeline: scroll(root);
  }
  @keyframes progress-grow { to { transform: scaleX(1); } }
}

/* ---- Üst menü: aşağı kaydırınca gizlen, yukarı kaydırınca gel */
.site-header { transition: transform 350ms var(--ease-out), box-shadow 300ms ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.25); }
.site-header.is-hidden { transform: translateY(-100%); }

.nav-link { position: relative; white-space: nowrap; }
/* 6 menü öğesi sığsın diye aralıklar ekran genişliğine göre */
@media (min-width: 768px) { .site-header nav { gap: clamp(1rem, 2.2vw, 2.5rem) !important; } }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: rgb(var(--sun-rgb)); transform: scaleX(0); transform-origin: right;
  transition: transform 300ms var(--ease-out);
}
.nav-link.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* Mobil menü açılışı */
[data-menu] { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style { [data-menu] { opacity: 0; transform: translateY(-8px); } }

/* ---- Hero girişi */
.hero-media { overflow: hidden; animation: hero-clip 1200ms var(--ease-in-out) both; }
.hero-media img { animation: hero-zoom 1800ms var(--ease-out) both; }
@keyframes hero-clip { from { clip-path: inset(6% 6% 6% 6%); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-copy > * { animation: rise 900ms var(--ease-out) both; }
.hero-copy > *:nth-child(1) { animation-delay: 500ms; }
.hero-copy > *:nth-child(2) { animation-delay: 620ms; }
.hero-copy > *:nth-child(3) { animation-delay: 740ms; }
.hero-copy > *:nth-child(4) { animation-delay: 860ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }


/* ---- Kaydırınca belirme (site.css'teki .reveal'ı yumuşatır) */
.reveal { transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal.is-in { transform: none; }

/* Görseller perde gibi açılır */
.reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1000ms var(--ease-in-out); }
.reveal-img img { transform: scale(1.12); transition: transform 1400ms var(--ease-out); }
.reveal-img.is-in { clip-path: inset(0 0 0 0); }
.reveal-img.is-in img { transform: scale(1); }

/* Sarı çizgiler belirince uzar */
.bar-in { transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-out) 250ms; }
.is-in .bar-in, .bar-in.is-in { transform: scaleX(1); }

/* ---- Butonlar */
.btn-solid {
  position: relative; isolation: isolate; overflow: hidden;
  transition: color 300ms ease, transform 160ms var(--ease-out);
}
.btn-solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(var(--sun-rgb));
  transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease-out);
}
.btn-solid:active { transform: scale(0.97); }
.btn-arrow { display: inline-block; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { color: #2e2e2e; }
  .btn-solid:hover::before { transform: scaleX(1); transform-origin: left; }
  .btn-solid:hover .btn-arrow, .btn-line:hover .btn-arrow { transform: translateX(4px); }
}

/* ---- Kategori kutuları */
.qtile { transition: transform 300ms var(--ease-out); }
.qtile:hover { transform: none; }
.qtile::after { transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.qtile svg { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .qtile:hover { transform: translateY(-4px); }
  .qtile:hover svg { transform: translateY(-2px) scale(1.06); }
}

/* Ürün kartlarındaki sarı çizgi */
.bar-grow { width: 3.5rem; transform: scaleX(0.5715); transform-origin: left; transition: transform 300ms var(--ease-out); }
.card-lift img { transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .group:hover .bar-grow { transform: scaleX(1); }
  .card-lift:hover img { transform: scale(1.04); }
}

/* ---- Galeri slider'ı */
.carousel {
  --gutter: max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem));
  display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
@media (min-width: 768px) { .carousel { --gutter: max(2.5rem, calc((100vw - 1280px) / 2 + 2.5rem)); gap: 1rem; } }
.carousel::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 78%; scroll-snap-align: start; aspect-ratio: 4 / 3; overflow: hidden; background: #f4f4f2; }
@media (min-width: 640px) { .car-slide { flex-basis: 46%; } }
@media (min-width: 1024px) { .car-slide { flex-basis: calc((min(100vw, 1280px) - 5rem - 2rem) / 3); } }
.car-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .car-slide:hover img { transform: scale(1.04); } }
.car-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
  border: 1px solid #d9d9d6; color: #2e2e2e; background: #fff;
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.car-btn:active { transform: scale(0.94); }
.car-btn:disabled { opacity: 0.35; }
@media (hover: hover) and (pointer: fine) { .car-btn:not(:disabled):hover { background: rgb(var(--sun-rgb)); border-color: rgb(var(--sun-rgb)); } }
.car-progress { height: 2px; background: #e6e6e3; overflow: hidden; }
.car-progress span { display: block; height: 100%; background: #2e2e2e; transform-origin: left; transform: scaleX(0); transition: transform 400ms var(--ease-out); }

/* ---- Azaltılmış hareket: konum değişimlerini kaldır, okunurluk kalsın */
@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero-media img, .hero-copy > *, .scroll-progress { animation: none !important; }
  .reveal, .reveal-img img { transform: none; }
  .reveal-img { clip-path: none; }
  .bar-in { transform: none; }
  .site-header.is-hidden { transform: none; }
}

/* ---- Hero görseli: yanlardan asla kırpılmaz; geniş ekranda en fazla ekran yüksekliği kadar */
.hero-img { display: block; width: 100%; height: auto; max-height: calc(100vh - 9rem); object-fit: cover; }
.hero-overlay { background: #2e2e2e; padding: 1.75rem 0 2rem; }
@media (min-width: 768px) {
  .hero-overlay { position: absolute; inset: auto 0 0 0; padding: 6rem 0 2.5rem; background: linear-gradient(to top, rgb(0 0 0 / 0.45), transparent); }
}

/* ---- Konfeksiyon */
.konf-dark { background: #141414; color: #fff; }
.konf-hero { position: relative; overflow: hidden; padding: 5rem 0 0; }
.konf-hero::before { /* broşürdeki dikey çizgili doku */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(to right, #000, transparent 70%);
}
.konf-hero > .shell { position: relative; }
.konf-hero-grid { display: grid; gap: 3rem; align-items: center; }
.konf-kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.32em; color: rgb(var(--sun-rgb)); }
.konf-title { margin-top: 1.25rem; font-size: clamp(44px, 7vw, 88px); line-height: 1; }
.konf-lead { margin-top: 1.75rem; max-width: 36rem; font-size: 18px; line-height: 1.7; color: rgb(255 255 255 / 0.72); }
.konf-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; }
.btn-sun { background: rgb(var(--sun-rgb)); color: #2e2e2e; }
.btn-sun::before { background: #fff; }
.btn-sun:hover { background: rgb(var(--sun-rgb)); }
.konf-link { display: inline-flex; gap: 0.75rem; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.28em; color: #fff; border-bottom: 1px solid rgb(255 255 255 / 0.4); padding-bottom: 0.25rem; transition: border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .konf-link:hover { border-color: rgb(var(--sun-rgb)); } .konf-link:hover .btn-arrow { transform: translateY(3px); } }
.konf-frame { position: relative; }
.konf-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.konf-frame::after { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: 1px solid rgb(var(--sun-rgb) / 0.6); z-index: -1; }
.konf-frame { isolation: isolate; }
@media (min-width: 1024px) { .konf-hero-grid.has-img { grid-template-columns: 1.15fr 0.85fr; gap: 5rem; } }

.konf-stats { margin-top: 5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgb(var(--sun-rgb) / 0.45); }
.konf-stat { padding: 2rem 1.25rem 2.5rem 0; }
.konf-stat-num { font-size: clamp(34px, 4vw, 46px); line-height: 1; color: rgb(var(--sun-rgb)); }
.konf-stat-label { margin-top: 0.9rem; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; }
.konf-stat-desc { margin-top: 0.6rem; font-size: 14px; line-height: 1.6; color: rgb(255 255 255 / 0.6); }
@media (min-width: 768px) { .konf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .konf-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .konf-stat { padding: 2.25rem 1.75rem 3rem; border-left: 1px solid rgb(255 255 255 / 0.1); }
  .konf-stat:first-child { border-left: 0; padding-left: 0; }
}

.konf-intro { display: grid; gap: 3rem; align-items: center; }
.konf-intro:not(.has-img) { max-width: 48rem; }
@media (min-width: 768px) { .konf-intro.has-img { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.konf-phase { margin-top: 4rem; }
.konf-phase-head { display: flex; align-items: flex-end; gap: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid #d9d9d6; }
.konf-phase-no { font-family: "Cormorant Garamond", Georgia, serif; font-size: 56px; line-height: 0.8; color: rgb(var(--sun-deep-rgb)); }
.konf-steps { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .konf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .konf-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.konf-step { background: #fff; display: flex; flex-direction: column; }
.konf-step-icon { display: flex; align-items: center; justify-content: center; width: 4.5rem; height: 4.5rem; margin: 1.75rem 1.75rem 0; background: #1b1b1b; color: rgb(var(--sun-rgb)); }
.konf-step-icon svg { width: 2.6rem; height: 2.6rem; }
.konf-step-body { position: relative; padding: 1.75rem 1.75rem 2rem; }
.konf-step-num { display: block; margin-bottom: 0.75rem; font-size: 12px; font-weight: 600; letter-spacing: 0.28em; color: rgb(var(--sun-deep-rgb)); }
.konf-step-icon svg { transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .konf-step:hover .konf-step-icon svg { transform: scale(1.08); } }

.konf-motto { padding: 5rem 0; text-align: center; }
.konf-motto-line { font-size: clamp(18px, 2.6vw, 28px); font-weight: 600; text-transform: uppercase; letter-spacing: 0.32em; color: rgb(var(--sun-rgb)); }
.konf-motto-sub { margin-top: 1rem; font-size: 13px; text-transform: uppercase; letter-spacing: 0.32em; color: rgb(255 255 255 / 0.7); }
.konf-count { white-space: nowrap; }

/* ---- Tablet (768–1023px): 6 menü öğesi sığmadığı için mobil menü kullanılır */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header > .shell.md\:grid { display: none !important; }
  .site-header > .shell.md\:hidden { display: flex !important; }
  .site-header > [data-menu]:not(.hidden) { display: block !important; }
}
.konf-hero.no-stats { padding-bottom: 5rem; }

/* ---- 3D katmanlı banner (ana sayfa) */
.hero3d { position: relative; overflow: hidden; perspective: 1400px; background: linear-gradient(90deg, rgb(239 238 234), #fff 70%); }
.hero3d-intro { animation: hero3d-in 1400ms var(--ease-out) both; transform-style: preserve-3d; }
@keyframes hero3d-in { from { opacity: 0; transform: rotateX(14deg) translateY(4%) scale(0.96); } to { opacity: 1; transform: none; } }
.hero3d-stage {
  position: relative; margin: 0 auto; width: min(100%, calc((100vh - 9rem) * 1.9208)); aspect-ratio: 1600 / 833;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; will-change: transform;
}
.hero3d-base { display: block; width: 100%; height: 100%; }
.hero3d-layer { position: absolute; transform: translate3d(var(--x, 0px), var(--y, 0px), 0); will-change: transform; }
.hero3d-layer img { display: block; width: 100%; height: auto; }
.hero3d-tag img { transform-origin: 49.79% 7.44%; transform: rotate(var(--swing, 0deg)); filter: drop-shadow(var(--tsx, 4px) var(--tsy, 12px) 16px rgb(0 0 0 / 0.2)); }
.hero3d-label img { filter: drop-shadow(var(--lsx, 6px) var(--lsy, 16px) 20px rgb(0 0 0 / 0.32)); }
/* Kart iple yukarıdan iner, etiket öne kayarak yerine oturur */
.hero3d-tag-in { animation: hero3d-drop 1100ms cubic-bezier(0.34, 1.32, 0.64, 1) 350ms both; }
@keyframes hero3d-drop { from { opacity: 0; transform: translateY(-55%); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
.hero3d-label-in { animation: hero3d-slide 900ms var(--ease-out) 1050ms both; }
@keyframes hero3d-slide { from { opacity: 0; transform: translate(-14%, 22%) rotate(-5deg) scale(0.94); } to { opacity: 1; transform: none; } }
/* Fareyi izleyen ışık yansıması */
.hero3d-glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: var(--go, 0); transition: opacity 400ms ease;
  background: radial-gradient(circle at var(--gx, 70%) var(--gy, 35%), rgb(255 255 255 / 0.9), rgb(255 255 255 / 0) 42%);
}
.hero-media[data-tilt] { position: relative; perspective: 1400px; }
.hero-media[data-tilt] picture { display: block; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
/* Telefon: etiket görseli yavaşça süzülür */
.hero3d-mobile { display: none; perspective: 900px; padding: 1.5rem 1.25rem 0.5rem; background: #fff; }
.hero3d-mobile img { display: block; width: 100%; height: auto; border-radius: 10px; filter: drop-shadow(0 18px 22px rgb(0 0 0 / 0.25));
  animation: hero3d-in 1100ms var(--ease-out) both, hero3d-float 7s ease-in-out 1100ms infinite alternate; }
@keyframes hero3d-float { from { transform: rotateX(6deg) rotateY(-9deg) translateY(0); } to { transform: rotateX(-4deg) rotateY(9deg) translateY(-6px); } }
@media (max-width: 767px) { .hero3d { display: none; } .hero3d-mobile { display: block; } }
@media (prefers-reduced-motion: reduce) {
  .hero3d-intro, .hero3d-tag-in, .hero3d-label-in, .hero3d-mobile img { animation: none !important; }
  .hero3d-stage, .hero-media[data-tilt] picture { transform: none !important; }
}

/* ---- WhatsApp butonu */
.wa-float {
  position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.35);
  animation: wa-in 500ms var(--ease-out) 1200ms both; transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.wa-float svg { width: 1.9rem; height: 1.9rem; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; opacity: 0; animation: wa-ring 2200ms ease-out 2000ms 3; pointer-events: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes wa-ring { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.wa-label {
  position: absolute; right: calc(100% + 0.75rem); white-space: nowrap; padding: 0.55rem 0.9rem; border-radius: 9999px;
  background: #fff; color: #2e2e2e; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.35);
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
.wa-float:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgb(0 0 0 / 0.4); }
  .wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float::after { animation: none !important; } }

/* ---- Galeri: görsel büyütme (lightbox) */
.lb-thumb { display: block; position: relative; cursor: zoom-in; }
.lb-zoom-hint { position: absolute; top: 0.75rem; right: 0.75rem; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: rgb(255 255 255 / 0.9); color: #2e2e2e; opacity: 0; transform: scale(0.9); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.lb-zoom-hint svg { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) and (pointer: fine) { .lb-thumb:hover .lb-zoom-hint, .lb-thumb:focus-visible .lb-zoom-hint { opacity: 1; transform: none; } }
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lb::backdrop { background: rgb(12 12 12 / 0.92); opacity: 0; transition: opacity 250ms ease; }
.lb.is-open::backdrop { opacity: 1; }
.lb-stage { position: absolute; inset: 4.5rem 1rem 5rem; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
@media (min-width: 768px) { .lb-stage { inset: 4rem 6rem 5rem; } }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; cursor: zoom-in; transform-origin: center; will-change: transform; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6); }
.lb-img.is-zoomed { cursor: zoom-out; }
.lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 9999px; color: #fff; background: rgb(255 255 255 / 0.1); transition: background-color 200ms ease, transform 160ms var(--ease-out), opacity 200ms ease; }
.lb-btn svg { width: 1.4rem; height: 1.4rem; }
.lb-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgb(var(--sun-rgb)); color: #2e2e2e; } }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev, .lb-next { top: 50%; margin-top: -1.5rem; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
@media (max-width: 767px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; margin-top: 0; } .lb-prev { left: calc(50% - 4rem); } .lb-next { right: calc(50% - 4rem); } }
.lb-meta { position: absolute; left: 1.25rem; top: 1.6rem; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: rgb(255 255 255 / 0.7); }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 1.6rem; text-align: center; padding: 0 5rem; font-size: 14px; color: rgb(255 255 255 / 0.85); }
@media (max-width: 767px) { .lb-caption { bottom: 5rem; padding: 0 1rem; } }
.lb-chrome { opacity: 0; transition: opacity 250ms ease 120ms; }
.lb.is-open .lb-chrome { opacity: 1; }
.lb.is-single .lb-prev, .lb.is-single .lb-next { display: none; }
