/* =============================================================================
   SAKARYA FİDAN A.Ş. — ZİYARETÇİ SAYFALARI ORTAK GÖRÜNÜM VE ETKİLEŞİM KATMANI
   Sayfaların kendi stillerinden SONRA yüklenir; yalnızca cilalar ve
   fidan-etkilesim.js'in eklediği öğelerin görünümünü tanımlar.
============================================================================= */

:root {
    --fx-yesil: #0b6b5f;
    --fx-koyu: #052f2a;
    --fx-vurgu: #4f9f43;
    --fx-acik: #e9f5f1;
    --fx-oya: #e86a9a;
    --fx-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------------------------------------------------------------------------
   Genel cilalar
--------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
::selection { color: #ffffff; background: rgba(11, 107, 95, .92); }

@media (pointer: fine) {
    html { scrollbar-color: rgba(11, 107, 95, .55) #eef4f1; scrollbar-width: thin; }
    ::-webkit-scrollbar { width: 11px; height: 11px; }
    ::-webkit-scrollbar-track { background: #eef4f1; }
    ::-webkit-scrollbar-thumb { background: linear-gradient(#0b6b5f, #4f9f43); border: 3px solid #eef4f1; border-radius: 99px; }
    ::-webkit-scrollbar-thumb:hover { background: #073c35; }
}

:focus-visible { outline: 3px solid rgba(79, 159, 67, .6); outline-offset: 3px; }

.fx-rel { position: relative; }
.fx-clip { overflow: hidden; isolation: isolate; }

/* ---------------------------------------------------------------------------
   Üst ilerleme çubuğu
--------------------------------------------------------------------------- */
.fx-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0b6b5f, #4f9f43 55%, #e86a9a);
    box-shadow: 0 0 12px rgba(79, 159, 67, .55);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Menü: kaydırınca incelir, aşağı inerken gizlenir
--------------------------------------------------------------------------- */
.home-header,
.site-header {
    transition: transform .45s var(--fx-ease), box-shadow .3s ease, background .3s ease;
}
.home-header.fx-scrolled,
.site-header.fx-scrolled {
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: 0 10px 34px rgba(5, 47, 42, .14) !important;
}
.home-header.fx-hidden,
.site-header.fx-hidden { transform: translateY(calc(-100% - 6px)); }

.home-brand img { transition: height .35s var(--fx-ease), transform .35s var(--fx-ease); }
@media (min-width: 1200px) {
    .home-header.fx-scrolled .home-brand img { height: 64px; }
    .home-header.fx-scrolled .home-navbar { min-height: 70px; }
}
.home-brand:hover img { transform: scale(1.04) rotate(-1deg); }

/* Kayan menü göstergesi */
.home-nav-links { position: relative; }
.fx-nav-pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    background: var(--fx-acik);
    border-radius: 9px;
    opacity: 0;
    pointer-events: none;
    transition: transform .38s var(--fx-ease), width .38s var(--fx-ease), height .38s var(--fx-ease), opacity .25s ease;
}
.fx-nav-pill.is-on { opacity: 1; }
.fx-fine .home-nav-links > .nav-item { position: relative; z-index: 1; }
@media (min-width: 1200px) {
    .fx-fine .home-nav-links .nav-link:hover { background: transparent !important; }
    .home-nav-links .nav-link { position: relative; }
    .home-nav-links .nav-link::after {
        position: absolute;
        right: 12px;
        bottom: 4px;
        left: 12px;
        height: 2px;
        background: linear-gradient(90deg, var(--fx-yesil), var(--fx-vurgu));
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: 0 50%;
        transition: transform .35s var(--fx-ease);
        content: "";
    }
    .home-nav-links .nav-link:hover::after,
    .home-nav-links .nav-link.active::after { transform: scaleX(1); }
}

/* ---------------------------------------------------------------------------
   Yukarı çık düğmesi (ilerleme halkalı)
--------------------------------------------------------------------------- */
.fx-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 960;
    display: grid;
    width: 50px;
    height: 50px;
    padding: 0;
    color: var(--fx-yesil);
    background: rgba(255, 255, 255, .94);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(5, 47, 42, .18);
    opacity: 0;
    pointer-events: none;
    place-items: center;
    transform: translateY(16px) scale(.9);
    transition: opacity .3s ease, transform .4s var(--fx-ease), color .2s ease, background .2s ease;
    backdrop-filter: blur(8px);
}
.fx-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.fx-to-top:hover { color: #ffffff; background: var(--fx-yesil); }
.fx-to-top svg { width: 50px; height: 50px; transform: rotate(-90deg); }
.fx-to-top svg path { transform: rotate(90deg); transform-origin: 24px 24px; }
.fx-to-top__track { fill: none; stroke: rgba(11, 107, 95, .12); stroke-width: 2.5; }
.fx-to-top__bar { fill: none; stroke: var(--fx-vurgu); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.fx-to-top:hover .fx-to-top__bar { stroke: #b7e8b2; }
@media (max-width: 576px) { .fx-to-top { bottom: 14px; left: 14px; width: 46px; height: 46px; } }

/* ---------------------------------------------------------------------------
   Parçacık tuvali ve imleç halesi
--------------------------------------------------------------------------- */
.fx-particles {
    position: fixed;
    inset: 0;
    z-index: 9998;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.fx-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.fx-cursor.is-visible { opacity: 1; }
.fx-cursor__ring {
    position: absolute;
    top: -19px;
    left: -19px;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(11, 107, 95, .45);
    border-radius: 50%;
    transition: transform .35s var(--fx-ease), background .3s ease, border-color .3s ease, opacity .3s ease;
}
.fx-cursor.is-link .fx-cursor__ring { background: rgba(79, 159, 67, .12); border-color: rgba(79, 159, 67, .7); transform: scale(1.45); }
.fx-cursor.is-field .fx-cursor__ring { opacity: 0; transform: scale(.4); }
.fx-cursor.is-stage .fx-cursor__ring { opacity: 0; }
.fx-cursor.is-down .fx-cursor__ring { transform: scale(.78); }
.fx-cursor.is-card .fx-cursor__ring {
    background: rgba(11, 107, 95, .9);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(5, 47, 42, .3);
    transform: scale(2.3);
}
.fx-cursor__label {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.6);
    transition: opacity .25s ease, transform .35s var(--fx-ease);
}
.fx-cursor.is-card .fx-cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------------------------------------------------------------------------
   Tıklama dalgası
--------------------------------------------------------------------------- */
.fx-ripple-wave {
    position: absolute;
    z-index: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, .18) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0);
    animation: fx-ripple .7s var(--fx-ease) forwards;
}
@keyframes fx-ripple { to { opacity: 0; transform: scale(1); } }

/* ---------------------------------------------------------------------------
   Mıknatıslı düğmeler
--------------------------------------------------------------------------- */
.fx-magnet { transition-property: transform, translate, background, color, box-shadow, border-color !important; transition-duration: .35s !important; transition-timing-function: var(--fx-ease) !important; }
.fx-magnet > * { pointer-events: none; }
.fx-magnet i { transition: transform .35s var(--fx-ease); }
.fx-magnet:hover .fa-arrow-right { transform: translateX(4px); }

/* ---------------------------------------------------------------------------
   3B kartlar ve ışık lekesi
--------------------------------------------------------------------------- */
/* isolation: ışık lekesi (z-index:-1) kartın zemininin üstünde, içeriğin altında kalır. */
.fx-card-host { isolation: isolate; }
.fx-card-host.fx-tilting { transition: transform .14s ease-out, box-shadow .3s ease, border-color .3s ease !important; box-shadow: 0 26px 50px rgba(5, 47, 42, .16) !important; }
.fx-spot {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(79, 159, 67, .16), rgba(232, 106, 154, .06) 35%, transparent 62%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.fx-card-host.fx-tilting > .fx-spot { opacity: 1; }
/* Koyu zeminli kartlarda daha parlak leke */
.contact-shell .fx-spot,
.priorities-shell .fx-spot,
.contact-copy .fx-spot { background: radial-gradient(300px circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(183, 232, 178, .2), transparent 65%); }

/* ---------------------------------------------------------------------------
   Görsellerde kayma ve kaydırma derinliği
--------------------------------------------------------------------------- */
.fx-zoom-host { overflow: hidden; }
.fx-zoom-host img { transition: transform .8s var(--fx-ease), translate .5s var(--fx-ease), filter .5s ease; }
.fx-zoom-host:hover img { filter: saturate(1.08) contrast(1.03); }
.fx-zoom-host img,
img.fx-parallax { translate: var(--zx, 0px) calc(var(--fx-shift, 0px) + var(--zy, 0px)); }
img.fx-parallax { scale: 1.08; }

/* ---------------------------------------------------------------------------
   Kahraman alanı parıltısı ve katman derinliği
--------------------------------------------------------------------------- */
.fx-hero-host { isolation: isolate; }
.fx-hero-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(183, 232, 178, .22), transparent 60%),
        radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(232, 106, 154, .12), transparent 70%);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    transition: opacity .6s ease;
}
.fx-hero-glow.is-on { opacity: 1; }
[data-depth] { transition: translate .2s linear; will-change: translate; }

/* Ana sayfa slaytında yavaş yakınlaşma (Ken Burns) */
.a-slideshow > img.active { animation: fx-kenburns 9s ease-out both; }
@keyframes fx-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.a-text { z-index: 3; }
.hero-slider-controls { z-index: 4; }

/* ---------------------------------------------------------------------------
   Kelime kelime başlık girişi
--------------------------------------------------------------------------- */
.fx-word { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: bottom; }
.fx-word > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .8s var(--fx-ease), opacity .6s ease; }
.fx-words-in .fx-word > span { transform: none; opacity: 1; }

/* ---------------------------------------------------------------------------
   Bölüm etiketlerinde canlı nokta
--------------------------------------------------------------------------- */
.section-eyebrow { position: relative; }

/* ---------------------------------------------------------------------------
   Sabit iletişim düğmelerinde nabız
--------------------------------------------------------------------------- */
.whatsapp-float,
.float-button.whatsapp { position: relative; }
.whatsapp-float::after,
.float-button.whatsapp::after {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(37, 211, 102, .55);
    border-radius: 50%;
    animation: fx-pulse 2.6s ease-out infinite;
    pointer-events: none;
    content: "";
}
@keyframes fx-pulse { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.7); } }

/* ---------------------------------------------------------------------------
   Altlık bağlantıları
--------------------------------------------------------------------------- */
.footer-links a,
.footer-contact a,
.footer-contact-item a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--fx-ease), color .2s ease, transform .2s ease !important; }
.footer-links a:hover,
.footer-contact a:hover,
.footer-contact-item a:hover { background-size: 100% 1px; }

/* ---------------------------------------------------------------------------
   Form alanları: odakta yumuşak parıltı
--------------------------------------------------------------------------- */
.form-control:focus,
.form-select:focus,
.modal input:focus,
.modal textarea:focus {
    border-color: rgba(11, 107, 95, .55) !important;
    box-shadow: 0 0 0 4px rgba(79, 159, 67, .16) !important;
}
.modal-content { border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(5, 47, 42, .3); }
.modal.fade .modal-dialog { transform: translateY(24px) scale(.97); transition: transform .45s var(--fx-ease); }
.modal.show .modal-dialog { transform: none; }

/* ---------------------------------------------------------------------------
   Hareket azaltma tercihi
--------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .fx-progress, .fx-to-top, .home-header, .site-header { transition: none !important; }
    .a-slideshow > img.active { animation: none; }
    .whatsapp-float::after, .float-button.whatsapp::after { animation: none; display: none; }
    .fx-word > span { transform: none; opacity: 1; }
    img.fx-parallax { scale: 1; translate: none; }
}

/* ---------------------------------------------------------------------------
   Yaprak imleci — ana sayfadaki yaprak tüm ziyaretçi sayfalarında kullanılır
--------------------------------------------------------------------------- */
:root {
    --cursor-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg%3E%3Cpath d='M14.2 28.5c-3.9-6.8-3.2-13.9 2-19.4C19.6 5.4 24.6 3.2 29 3c-.1 4.6-1.9 9.8-5.9 14.1-4.4 4.8-9.5 6.6-8.9 11.4Z' fill='%23448d12'/%3E%3Cpath d='M6.6 25.8c.6-5.2 3.4-9.5 8-12.1 3.2-1.8 6.6-2.3 9.4-1.9-1 3.1-3.2 6.2-6.5 8.2-3.9 2.4-8 2.5-10.9 5.8Z' fill='%2366b51c'/%3E%3Cpath d='M8 25.5C13.6 20 18.7 14.7 24.2 8.4' fill='none' stroke='%23e9ffd0' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M15.5 26.9c-.5-2.7-.2-5.6.9-8.6' fill='none' stroke='%23c8f28e' stroke-width='1.3' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") 6 26;
}
@media (pointer: fine) {
    html, body, body * { cursor: var(--cursor-leaf), auto; }
    a, button, [role="button"], .nav-link, .dropdown-item, .navbar-toggler, .btn-close,
    select, summary, label[for], input[type="submit"], input[type="button"], input[type="reset"],
    input[type="file"], input[type="checkbox"], input[type="radio"], .fx-to-top {
        cursor: var(--cursor-leaf), pointer !important;
    }
    input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    textarea { cursor: text !important; }
    button:disabled { cursor: var(--cursor-leaf), auto !important; }
}
