/* ==========================================================================
   Walloon PPF — site stilleri
   Tasarım tokenları design_handoff_walloon_ppf/README.md ile birebir aynıdır.
   Değer değiştirmeden önce o dosyaya bakın.
   ========================================================================== */

:root {
  --bg:        #0a0a0b;
  --bg-2:      #0e0e0f;
  --bg-hover:  #161613;
  --bg-hover-2:#111112;
  --gold:      #cda45e;
  --gold-lt:   #f0d9a0;
  --text:      #f5f1e8;
  --text-2:    #c9c2b4;
  --text-3:    #b9b2a2;
  --muted:     #8f8879;
  --muted-2:   #6f6858;
  --copper:    #c98a5e;
  --line:      rgba(205, 164, 94, 0.18);
  --line-str:  rgba(205, 164, 94, 0.35);
  --grad-gold: linear-gradient(120deg, #f0d9a0, #cda45e);
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

* { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }
::selection { background: var(--gold); color: var(--bg); }

img { max-width: 100%; }

/* Sayfa geçişi ------------------------------------------------------------
   GEÇİŞ ANİMASYONU YOK — tıklanınca sayfa anında değişir.

   Neden: sayfalar aynı koyu zemini ve aynı sabit üst barı paylaşıyor, bu
   yüzden animasyonsuz geçiş "kesme" gibi değil "anında" gibi okunuyor.
   inc/layout.php'deki ön-indirme (speculationrules) sayesinde belge tıklama
   anında hazır olduğundan bekleme de görünmüyor. Sitenin hareket karakteri
   sayfa geçişinden değil, scroll reveal ve araç sekansından geliyor.

   Geçmişte iki şey denendi:
     1) JS "perde" (sağdan sola kapanıp soldan sağa açılan panel) — tıklamayı
        520 ms geciktiriyordu, yükleme o sürede başlamıyordu. Kaldırıldı.
     2) Yerel @view-transition çapraz geçiş (220 ms) — navigasyonu
        geciktirmiyordu ama sayfa değişimini yine de yavaşlatmış gibi
        gösteriyordu. Kaldırıldı.

   Yumuşak geçiş yeniden istenirse aşağıdaki bloğun yorumunu kaldırmak
   yeterli (Chrome, Edge ve Safari 18+ destekler; diğerlerinde anında geçer):

   @view-transition { navigation: auto; }
   ::view-transition-old(root),
   ::view-transition-new(root) {
     animation-duration: 150ms;
     animation-timing-function: cubic-bezier(.22, .61, .36, 1);
   }
   .wl-header { view-transition-name: wl-header; }
   ::view-transition-old(wl-header),
   ::view-transition-new(wl-header) { animation: none; }
   @media (prefers-reduced-motion: reduce) {
     @view-transition { navigation: none; }
   }
                                                                            */

/* Animasyonlar ------------------------------------------------------------ */

@keyframes walloonSweep { from { stroke-dashoffset: 0; }      to { stroke-dashoffset: -1000; } }
@keyframes walloonShine  { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Altın parlama başlığı — gradyanın iki ucu da altın olduğu için döngüde sıçrama yok */
.wl-shine {
  background: linear-gradient(100deg, #cda45e 0%, #f0d9a0 20%, #ffffff 40%, #f5f1e8 56%, #f0d9a0 78%, #cda45e 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: walloonShine 4.5s ease-in-out infinite alternate;
}
.wl-shine--slow { animation-duration: 5.5s; }

/* Yalnızca ekran okuyucu / arama motoru için metin.
   display:none veya visibility:hidden KULLANILMAZ — o ikisi metni yardımcı
   teknolojiden de gizler. Bu yöntem metni 1px'lik bir alana kırpar: gözle
   görünmez ama okunur kalır. */
.wl-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Araç sekansı metinlerinde kullanılan sıcak beyaz gradyan */
.wl-warm {
  background: linear-gradient(118deg, #faf7f0 18%, #f5e6bf 62%, #e8c98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .wl-shine { animation: none; }
  .wl-header-svg path { animation: none !important; }
}

/* Header ----------------------------------------------------------------- */

.wl-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  box-sizing: border-box;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 130px 1fr;
  align-items: center;
  padding: 0 56px;
  background: rgba(10, 10, 11, 0.94);
  backdrop-filter: blur(12px);
}

.wl-header nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 28px;
}
.wl-header nav:first-of-type { grid-column: 1; }
.wl-header nav:last-of-type  { grid-column: 3; }

.wl-nav {
  font-family: 'Archivo Black', 'Manrope', sans-serif;
  font-size: 15px;          /* 13px'ten büyütüldü — üst barda küçük kalıyordu */
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 6px;
  color: var(--text-3);
  white-space: nowrap;
  transition: color .25s ease, text-shadow .25s ease;
}
.wl-nav:hover { color: var(--gold-lt); text-shadow: 0 0 14px rgba(240, 217, 160, 0.45); }

.wl-nav.is-active {
  color: var(--gold-lt);
  border-bottom: 1px solid var(--gold);
  text-shadow: 0 0 14px rgba(240, 217, 160, 0.35);
}
.wl-nav.is-active:hover { color: #ffffff; }

.wl-logo {
  grid-column: 2;
  justify-self: center;
  align-self: start;
  position: relative;
  display: block;
  width: 110px;
  height: 30px;
  transition: filter .3s ease;
}
.wl-logo:hover { filter: brightness(1.12); }

.wl-logo__word {
  position: absolute;
  left: 50%; top: 27px;
  transform: translate(-50%, -100%);
  height: 15px; width: auto;
  display: block;
}
.wl-logo__mark {
  position: absolute;
  left: 50%; top: 38.48px;
  transform: translateX(-50%);
  width: 93px; height: auto;
  display: block;
}

/* Logonun stroke'u ile birleşen header çizgisi — path'ler header-line.js ile hesaplanır */
.wl-header-svg {
  position: absolute;
  left: 0; top: 0;
  overflow: visible;
  pointer-events: none;
}
.wl-header-svg .wl-line-static { stroke: var(--gold);    stroke-width: 1;   stroke-opacity: .75; filter: drop-shadow(0 0 8px rgba(240,217,160,.35)); }
.wl-header-svg .wl-line-outline{ stroke: var(--gold-lt); stroke-width: 1.1; stroke-opacity: .85; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(240,217,160,.55)); }
.wl-header-svg .wl-line-sweep  {
  stroke: #ffffff; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 46 954;
  animation: walloonSweep 5.4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 16px rgba(240,217,160,.65));
}

/* Mobil menü ------------------------------------------------------------- */

.wl-burger {
  display: none;
  grid-column: 3;
  justify-self: end;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid rgba(205, 164, 94, .35);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.wl-burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1px;
  background: var(--gold-lt);
  transition: transform .3s var(--ease), opacity .2s ease;
}
.wl-burger span:nth-child(1) { top: 14px; }
.wl-burger span:nth-child(2) { top: 20px; }
.wl-burger span:nth-child(3) { top: 26px; }
.wl-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.wl-burger.is-open span:nth-child(2) { opacity: 0; }
.wl-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.wl-mobile-nav {
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 99;
  background: rgba(10, 10, 11, .98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  padding: 8px 0 18px;
}
.wl-mobile-nav.is-open { display: flex; }
.wl-mobile-nav a {
  font-family: 'Archivo Black', 'Manrope', sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 16px 32px;
  border-bottom: 1px solid rgba(205, 164, 94, .1);
  transition: color .25s ease, background .25s ease;
}
.wl-mobile-nav a:hover,
.wl-mobile-nav a.is-active { color: var(--gold-lt); background: rgba(205, 164, 94, .05); }

/* Butonlar --------------------------------------------------------------- */

.wl-btn {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
}

/* Dolgulu altın buton */
.wl-btn--gold {
  background: var(--grad-gold);
  color: var(--bg);
  border: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wl-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(205, 164, 94, 0.35);
  color: var(--bg);
}

/* Çerçeveli buton — hover'da altın dolgu */
.wl-btn--outline {
  border: 1px solid var(--gold);
  background: rgba(10, 10, 11, 0.55);
  color: var(--gold-lt);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.wl-btn--outline:hover {
  background: var(--grad-gold);
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(205, 164, 94, 0.3);
}

/* İnce çerçeveli ikincil buton */
.wl-btn--ghost {
  border: 1px solid rgba(205, 164, 94, 0.4);
  color: var(--gold-lt);
  background: none;
  transition: background .2s ease, color .2s ease, border-color .25s ease;
}
.wl-btn--ghost:hover { background: var(--gold); color: var(--bg); }

/* Sadece kenar rengi değişen buton (Garanti sayfası "Belge Sorgula") */
.wl-btn--edge {
  border: 1px solid rgba(205, 164, 94, 0.4);
  color: var(--gold-lt);
  background: none;
  transition: border-color .25s ease, color .25s ease;
}
.wl-btn--edge:hover { border-color: var(--gold); color: #ffffff; }

/* Kartlar ---------------------------------------------------------------- */

/* Hizmet / prensip kartı */
.wl-card {
  background: var(--bg-2);
  transition: background .25s ease, transform .25s ease;
}
.wl-card:hover { background: var(--bg-hover); transform: translateY(-4px); }

/* Ürün kartı — gölge ile yükselir */
.wl-card--lift {
  background: var(--bg-2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wl-card--lift:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }

/* "Neden Biz?" satırı */
.wl-row-hover { background: var(--bg); transition: background .25s ease; }
.wl-row-hover:hover { background: var(--bg-hover-2); }

/* Galeri karesi */
.wl-shot { transition: transform .3s ease; }
.wl-shot:hover      { transform: scale(1.02); }
.wl-shot--wide:hover{ transform: scale(1.01); }

/* Yer tutucu dokusu — gerçek fotoğraf gelene kadar */
.wl-placeholder {
  background: repeating-linear-gradient(135deg, #131315, #131315 14px, #0e0e0f 14px, #0e0e0f 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wl-placeholder__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(10, 10, 11, 0.75);
  padding: 8px 14px;
  border: 1px solid rgba(205, 164, 94, 0.4);
  text-align: center;
}

/* Bağlantılar ------------------------------------------------------------ */

.wl-link-under {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(205, 164, 94, 0.4);
  padding-bottom: 4px;
  transition: color .25s ease, border-color .25s ease;
}
.wl-link-under:hover { color: var(--gold-lt); border-color: var(--gold-lt); }

.wl-link-arrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color .2s ease;
}
.wl-link-arrow:hover { color: var(--gold-lt); }

/* Form alanları ---------------------------------------------------------- */

.w-input {
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid rgba(205, 164, 94, 0.3);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  padding: 13px 14px;
  transition: border-color .2s ease;
}
.w-input::placeholder { color: #6b6455; }
.w-input:focus { outline: none; border-color: var(--gold); }
textarea.w-input { resize: vertical; }

/* Garanti sorgulama kutusu */
.wl-warranty-input {
  width: 280px;
  height: 52px;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--line-str);
  color: var(--gold-lt);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0 16px;
  transition: border-color .2s ease;
}
.wl-warranty-input::placeholder { color: #6b6455; letter-spacing: .04em; font-weight: 400; }
.wl-warranty-input:focus { outline: none; border-color: var(--gold); }

/* WhatsApp sabit butonu -------------------------------------------------- */

.wl-wa {
  position: fixed;
  right: 32px; bottom: 32px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0d9a0, #cda45e);
  box-shadow: 0 8px 26px rgba(205, 164, 94, 0.28), 0 0 0 1px rgba(240, 217, 160, 0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wl-wa:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 36px rgba(205, 164, 94, 0.45), 0 0 0 1px rgba(240, 217, 160, 0.6);
}

/* Footer ----------------------------------------------------------------- */

.wl-footer {
  border-top: 1px solid rgba(205, 164, 94, 0.22);
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.wl-footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.wl-foot {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s ease;
}
.wl-foot:hover { color: var(--gold-lt); }

/* SSS akordeonu ---------------------------------------------------------- */

.wl-faq { border-bottom: 1px solid var(--line); transition: background .25s ease; }
.wl-faq:hover { background: var(--bg-2); }

.wl-faq__btn {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 28px 24px;
  font-family: 'Manrope', sans-serif;
}
.wl-faq__q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  transition: color .25s ease;
}
.wl-faq.is-open .wl-faq__q { color: var(--gold-lt); }

.wl-faq__sign {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1px solid rgba(205, 164, 94, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-lt);
  font-size: 15px;
  line-height: 1;
  transition: transform .3s ease;
}
.wl-faq.is-open .wl-faq__sign { transform: rotate(45deg); }

.wl-faq__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s var(--ease), opacity .3s ease;
}
.wl-faq.is-open .wl-faq__panel { opacity: 1; }

/* Galeri filtre düğmeleri ------------------------------------------------ */

.wl-filter {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
  background: none;
  color: var(--muted);
  border: 1px solid rgba(205, 164, 94, 0.18);
  transition: color .25s ease, border-color .25s ease;
}
.wl-filter:hover { color: var(--gold-lt); }
.wl-filter.is-active { color: var(--gold-lt); border-color: rgba(205, 164, 94, 0.5); }

/* Duyarlı düzen ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .wl-header { padding: 0 28px; grid-template-columns: 1fr 130px 1fr; }
  .wl-header nav:first-of-type,
  .wl-header nav:last-of-type { display: none; }
  .wl-burger { display: block; }
  .wl-logo { grid-column: 2; }
  .wl-footer { padding: 44px 28px; }
}

@media (max-width: 860px) {
  .wl-two-col,
  .wl-three-col,
  .wl-four-col { grid-template-columns: 1fr !important; }
  .wl-pad { padding-left: 24px !important; padding-right: 24px !important; }
  .wl-footer { justify-content: center; text-align: center; }
  .wl-footer__links { justify-content: center; gap: 18px; }
  .wl-wa { right: 18px; bottom: 18px; }

  /* ── Araç sekansı metinleri ──────────────────────────────────────────
     Bu metinler masaüstü için satır içi (inline) stille konumlanmıştır;
     satır içi stili yalnızca !important geçebilir. Blok sadece dar
     ekranlarda devreye girer — masaüstü görünümü değişmez.
     Sorun: `max-width:44vw` telefonda ~170px kalıyor ve "Milimetrik"
     gibi kelimeler taşıyor; 56px yan boşluk da fazla yer yiyor.        */
  [data-car-phase] {
    left: 24px !important;
    right: 24px !important;
    max-width: none !important;
  }
  [data-car-phase][data-car-side="bottom"] {
    left: 0 !important;
    right: 0 !important;
  }
  /* Aşama başlıkları telefonda aracı fazla kapatıyordu; %25 küçültüldü.
     Masaüstü boyutları satır içi clamp() ile gelir ve değişmez.
       wl-car-h1     "Görünmez / Zırh"                    46px → 34px
       wl-car-h2     "Milimetrik Kesim", "360° Araç
                     Koruması"                            36px → 27px
       wl-car-h3     "Yeni Nesil Kendini Onarma
                     Teknolojisi" — uzun ibare, üç satır  26px → 22px
       wl-car-brand  final "WALLOON"                      48px → 36px         */
  .wl-car-h1    { font-size: 34px !important; }
  .wl-car-h2    { font-size: 27px !important; }
  .wl-car-h3    { font-size: 22px !important; }
  .wl-car-brand { font-size: 36px !important; }

  /* ── Metin perdeleri ─────────────────────────────────────────────────
     Perdeler önce tam genişliğe çıkarılmıştı; okunabilirlik iyiydi ama
     aracı da karartıyordu ve araç zaten siyah olduğu için karartmanın
     faydası yoktu — sadece vurgusu gidiyordu.

     Yeni yaklaşım: perde metnin bulunduğu yana yakın, dar ve zayıf kalır;
     okunabilirliği metnin KENDİ gölgesi sağlar (aşağıdaki kural). Böylece
     karartma harflerin birkaç piksel çevresinde kalıyor, araca yayılmıyor. */
  [data-car-scrim="left"],
  [data-car-scrim="right"] { width: 60% !important; }

  [data-car-scrim="left"] {
    background: linear-gradient(90deg, rgba(10,10,11,0.58) 0%, rgba(10,10,11,0.26) 46%, rgba(10,10,11,0) 100%) !important;
  }
  [data-car-scrim="right"] {
    background: linear-gradient(270deg, rgba(10,10,11,0.58) 0%, rgba(10,10,11,0.26) 46%, rgba(10,10,11,0) 100%) !important;
  }
  [data-car-scrim="bottom"] {
    height: 32% !important;
    background: linear-gradient(0deg, rgba(10,10,11,0.78) 0%, rgba(10,10,11,0.42) 45%, rgba(10,10,11,0) 100%) !important;
  }

  /* Küçük etiketler ("01 — UYGULAMA", "WALLOON PPF") normal metin */
  [data-car-phase] { text-shadow: 0 1px 8px rgba(10,10,11,0.92); }

  /* Büyük başlıklar background-clip:text ile boyandığı için text-shadow
     onlarda çalışmaz; filter: drop-shadow doğru araçtır — gölge harflerin
     dış hattını takip eder, dikdörtgen bir karartma bırakmaz. */
  [data-car-phase] .wl-warm {
    text-shadow: none;
    filter: drop-shadow(0 2px 9px rgba(10,10,11,0.95))
            drop-shadow(0 0 20px rgba(10,10,11,0.7));
  }

  /* İlerleme çizgisi de aynı yan boşluğa hizalanır */
  [data-car-rail] {
    left: 24px !important;
    right: 24px !important;
  }
}

@media (max-width: 560px) {
  .wl-warranty-input { width: 100%; }
}
