/* ============ Arıca Peyzaj — mikro & makro animasyon katmanı ============ */

/* sayfalar arası yumuşak geçiş (View Transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .32s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vtIn .45s cubic-bezier(.22, 1, .36, 1) both; }
.nav { view-transition-name: site-header; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }

/* okuma ilerleme çubuğu */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--green-500), var(--terra)); pointer-events: none; }

/* header: aşağı kaydırınca gizlen, yukarı kaydırınca gel */
.nav { transition: background .35s, box-shadow .35s, backdrop-filter .35s, transform .45s var(--ease); }
.nav.is-hidden:not(.is-open) { transform: translateY(-105%); }

/* kelime kelime başlık açılışı */
.fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.fx-wi { display: inline-block; transform: translateY(105%); transition: transform .95s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); will-change: transform; }
.fx-split.is-in .fx-wi { transform: none; }

/* perde gibi açılan görseller */
.fx-img { clip-path: inset(0 0 100% 0); transform: scale(1.14); transition: clip-path 1.15s var(--ease), transform 1.6s var(--ease); }
.fx-img.is-in { clip-path: inset(0 0 0 0); transform: none; }

/* kartlarda imleci izleyen ışık */
.lcard, .region, .card:not(.card--cta) { position: relative; overflow: hidden; }
.fx-spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(77, 138, 85, .12), transparent 60%); }
.fx-spot:hover::after { opacity: 1; }
.cta .fx-spot::after, .card--cta.fx-spot::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .12), transparent 60%); }

/* manyetik butonlar + dalga efekti */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn.fx-mag { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.btn.fx-mag:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 2px)); }
.fx-ripple { position: absolute; z-index: -1; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: currentColor; opacity: .28; transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(18); opacity: 0; } }

/* hizmet ikonları kendini çizer */
.service:hover .service__icon *, .service:focus-visible .service__icon * { animation: iconDraw 1s var(--ease) both; }
@keyframes iconDraw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
.service__icon { transition: background .3s, stroke .3s, transform .5s var(--ease); }
.service:hover .service__icon { transform: rotate(-6deg) scale(1.06); }

/* süreç çizgisi kaydırdıkça dolar */
.steps::after { content: ""; position: absolute; left: 12%; right: 12%; top: 30px; height: 3px; border-radius: 3px; background: var(--green-500); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
.step__n { transition: background .4s, color .4s, transform .6s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s; z-index: 1; }
.step.is-on .step__n { background: var(--green-800); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 8px rgba(77, 138, 85, .14); }
@media (max-width: 900px) { .steps::after { display: none; } }

/* kayan hizmet şeridi */
.marquee { background: var(--cream); border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee a { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem); font-style: italic; color: var(--green-800); text-decoration: none; white-space: nowrap; transition: color .3s; }
.marquee a:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--green-700); font-style: normal; }
.marquee a:hover { color: var(--terra); -webkit-text-stroke-color: var(--terra); }
.marquee a::after { content: "✦"; font-style: normal; font-size: .55em; color: var(--terra); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* yukarı çık butonu (ilerleme halkalı) */
.fx-top { position: fixed; right: 26px; bottom: 92px; z-index: 39; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--green-800); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .35s, transform .45s var(--ease); }
.fx-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.fx-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-top circle { fill: none; stroke: var(--green-500); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.fx-top span { font-size: 18px; line-height: 1; }

/* SSS yumuşak açılış */
details.fx-acc > :not(summary) { overflow: hidden; }

/* odak ve dokunma geri bildirimi */
.chips a, .filter, .linklist a { transition: background .25s, color .25s, transform .25s var(--ease); }
.chips a:active, .filter:active { transform: scale(.95); }

@media (prefers-reduced-motion: reduce) {
  .fx-wi, .fx-img { transform: none !important; clip-path: none !important; transition: none !important; }
  .marquee__track { animation: none; }
  .nav.is-hidden { transform: none; }
  @view-transition { navigation: none; }
}

/* ============ Teklif listesi ============ */
.quote-pill { position: fixed; left: 20px; bottom: 20px; z-index: 41; display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1rem .75rem .9rem; border: 0; border-radius: 999px; background: var(--green-900); color: #fff; font: 600 .92rem var(--sans); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); cursor: pointer; transform: translateY(160%); visibility: hidden; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), background .25s, visibility 0s .55s; }
.quote-pill.is-shown { transform: none; visibility: visible; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), background .25s, visibility 0s; }
.quote-pill:hover { background: var(--green-700); }
.quote-pill svg { width: 20px; height: 20px; }
.quote-pill b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--terra); display: grid; place-items: center; font-size: .8rem; }
.quote-pill.is-bump b { animation: bump .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.quote-fly { position: fixed; z-index: 70; object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.quote-drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); border: 0; padding: 28px 24px; background: var(--paper); box-shadow: -20px 0 60px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 14px; }
.quote-drawer:not([open]) { display: none; }
.quote-drawer[open] { animation: drawerIn .5s var(--ease); }
.quote-drawer::backdrop { background: rgba(8, 18, 12, .5); backdrop-filter: blur(3px); }
@keyframes drawerIn { from { transform: translateX(100%); } }
.quote-drawer__head { display: flex; justify-content: space-between; align-items: center; }
.quote-drawer__head h2 { font-size: 1.7rem; margin: 0; }
.quote-drawer__x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef3e8; font-size: 24px; cursor: pointer; color: var(--green-900); }
.quote-drawer__lead { color: var(--muted); margin: 0; font-size: .95rem; }
.quote-drawer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; overflow: auto; flex: 1; align-content: start; }
.quote-drawer__list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; animation: itemIn .4s var(--ease); }
@keyframes itemIn { from { opacity: 0; transform: translateX(16px); } }
.quote-drawer__list b { display: block; font-weight: 600; }
.quote-drawer__list small { color: var(--muted); font-size: .8rem; }
.quote-drawer__list button { width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; background: #f5e4dc; color: var(--terra-dark); font-size: 18px; cursor: pointer; }
.quote-drawer__empty { display: none; color: var(--muted); }
.quote-drawer.is-empty .quote-drawer__empty { display: block; }
.quote-drawer.is-empty [data-quote-wa], .quote-drawer.is-empty [data-quote-wizard] { display: none; }
.quote-drawer__actions { display: grid; gap: 8px; }
.quote-drawer .btn--ghost { background: transparent; }
@media (max-width: 640px) { .quote-pill span { display: none; } .quote-pill { padding: .75rem .9rem; } }
