/* ===================================================================
   Nilüfer Yazılım - site.css
   Orijinal site (The7 + Elementor) tasarım değişkenlerine göre.
   Font: Poppins  |  Lacivert #153851  |  Yeşil #159544  |  Mavi #1091EF  |  Kırmızı #B01515
   =================================================================== */

:root {
    --ny-navy-dark: #0A2540;   /* hero, header (scroll), footer: sitedeki koyu lacivert (dalgalarla #0d3053 / #0f3862 tonları oluşur) */
    --ny-navy: #153851;        /* kurumsal lacivert (yedek; buton metni). CTA bölümleri de koyu laciverti kullanır. */
    --ny-navy-2: var(--ny-navy-dark); /* CTA bölümleri: hero ile aynı koyu lacivert */
    --ny-blue: #1091EF;        /* vurgu, linkler, butonlar */
    --ny-blue-dark: #0363AA;   /* buton hover */
    --ny-orange: #FF7F22;
    --ny-red: #B01515;         /* ikonlar, aktif menü çizgisi, Gönder */
    --ny-green: #159544;       /* kurumsal yeşil: "veya yazın" butonu */
    --ny-title: #222222;
    --ny-text: #545559;
    --ny-muted: #b4b5bb;
    --ny-gray: #f4f4f4;        /* açık bölüm zemini */
    --ny-divider: #00000012;
    --ny-header-h: 90px;
}

html { scroll-behavior: smooth; }
body {
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ny-text);
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6 { font-family: "Poppins", sans-serif; font-weight: 700; line-height: 1.2; color: var(--ny-title); }
a { color: var(--ny-blue); text-decoration: none; }
a:hover { color: var(--ny-orange); }
p:last-child { margin-bottom: 0; }

/* ---------- Butonlar (pill) ---------- */
.btn { font-family: "Poppins", sans-serif; font-weight: 500; border-radius: 100px; padding: .55rem 1.5rem; transition: all .25s; }
.btn-lg { font-size: 16px; min-height: 48px; padding: .6rem 1.75rem; }
.btn-primary { background: var(--ny-blue); border-color: var(--ny-blue); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--ny-blue-dark); border-color: var(--ny-blue-dark); color: #fff; }
.btn-outline-primary { border-color: var(--ny-blue); color: var(--ny-blue); }
.btn-outline-primary:hover { background: var(--ny-blue); border-color: var(--ny-blue); color: #fff; }
.btn-success { background: var(--ny-green); border-color: var(--ny-green); }
.btn-success:hover { background: #117a37; border-color: #117a37; }
.btn-danger { background: var(--ny-red); border-color: var(--ny-red); }
.btn-danger:hover { background: #8e1010; border-color: #8e1010; }
.btn-light { background: #fff; color: var(--ny-navy); border-color: #fff; }
.btn-light:hover { background: var(--ny-blue); color: #fff; border-color: var(--ny-blue); }

/* ---------- Header (hero üstünde şeffaf, kaydırınca lacivert) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; transition: background .3s, box-shadow .3s; }
.site-header .navbar { padding: .9rem 0; min-height: var(--ny-header-h); }
.site-header.scrolled, .site-header.solid { background: var(--ny-navy-dark); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.site-header.scrolled .navbar { padding: .4rem 0; min-height: 64px; }
.site-logo { height: 62px; width: auto; transition: height .3s; }
.site-header.scrolled .site-logo { height: 46px; }
.site-header .nav-link { color: #fff; font-weight: 500; font-size: 14px; padding: .5rem 0 !important; margin: 0 1rem; position: relative; }
.site-header .nav-link::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ny-red); transform: scaleX(0); transition: transform .25s; } /* ::before: Bootstrap açılır menü oku ::after kullandığı için çakışmasın */
.site-header .nav-link:hover::before, .site-header .nav-link.active::before { transform: scaleX(1); }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff; }
.site-header .dropdown-toggle::after { border-top-color: #fff; opacity: .8; margin-left: .35em; vertical-align: .15em; }
.site-header .dropdown-menu { border: 0; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: .5rem 0; margin-top: 0; min-width: 190px; }
.site-header .dropdown-item { font-size: 14px; font-weight: 500; color: var(--ny-title); padding: .5rem 1.25rem; }
.site-header .dropdown-item:hover, .site-header .dropdown-item.active { background: transparent; color: var(--ny-blue); }
.navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.flag-icon { height: 16px; width: auto; border-radius: 2px; }
@media (min-width: 992px) {
    /* Hover ile açılan alt menü: bağlantı ile menü arasında boşluk bırakma, yoksa fare geçerken kapanır. */
    .nav-hover { padding-bottom: 0; }
    .nav-hover:hover > .dropdown-menu, .nav-hover:focus-within > .dropdown-menu, .nav-hover.show-hover > .dropdown-menu { display: block; top: 100%; margin-top: 12px; }
    /* Bağlantı ile menü arasındaki 12px'lik boşluğu görünmez bir köprüyle doldur. */
    .nav-hover > .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
}
@media (max-width: 991.98px) {
    .site-header { background: var(--ny-navy-dark); }
    .site-header .navbar-collapse { padding: .5rem 0 1rem; }
    .site-header .nav-link { margin: 0; padding: .6rem 0 !important; }
    .site-header .dropdown-menu { background: transparent; box-shadow: none; margin: 0; padding: 0 0 0 1rem; }
    .site-header .dropdown-item { color: #cfd8e3; }
}

/* ---------- Genel bölümler ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-gray { background: var(--ny-gray); }
.section-title { font-size: 30px; font-weight: 700; color: var(--ny-title); margin-bottom: 1rem; }
.section-title.red { color: var(--ny-red); }
.section-subtitle, p.section-subtitle:last-child { color: var(--ny-blue); font-size: 16px; margin-bottom: 3rem; } /* p:last-child kuralı alt boşluğu ezmesin */
/* Büyük bölüm başlığı (ör. "Neden biz?") */
.section-head-lg .section-title { font-size: 36px; }
.section-head-lg .section-subtitle { font-size: 18px; margin-bottom: 3.5rem; }
.text-blue { color: var(--ny-blue) !important; }
.text-red { color: var(--ny-red) !important; }
.lead { font-size: 16px; }

/* Zigzag ayraç (orijinaldeki dalgalı çizgi) */
.zigzag { display: block; width: 240px; height: 10px; margin: 1.5rem auto; background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3e%3cpolyline points='0,8 5,2 10,8 15,2 20,8' fill='none' stroke='%23b4b5bb' stroke-width='1.2'/%3e%3c/svg%3e") repeat-x; background-size: 20px 10px; }

/* ---------- Dalga arka planlı lacivert bölümler ---------- */
.wave-navy { position: relative; background: var(--ny-navy-dark); color: #fff; overflow: hidden; isolation: isolate; }
/* Dalga deseni: orijinaldeki gibi "overlay" karışımı, böylece lacivert grileşmez, tonu koyulaşıp doygunlaşır. */
.wave-navy::before { content: ""; position: absolute; inset: 0; background: url("../images/dekor/wave-art-bg-white-down.svg") bottom center / 100% auto no-repeat; opacity: .6; mix-blend-mode: overlay; z-index: -1; pointer-events: none; }
.wave-navy h1, .wave-navy h2, .wave-navy h3, .wave-navy h4 { color: #fff; }
.wave-navy p { color: rgba(255,255,255,.9); }
.wave-navy a:not(.btn) { color: var(--ny-blue); }

/* Hero (ana sayfa slider) */
.hero { padding: calc(var(--ny-header-h) + 3rem) 0 6rem; min-height: 700px; display: flex; align-items: center; }
.hero > .container, .page-hero > .container { min-width: 0; width: 100%; }
.hero h1 { font-size: 46px; font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--ny-blue); }
.hero .hero-text { font-size: 16px; line-height: 1.7; margin-bottom: 2rem; }
.hero .hero-img { max-height: 420px; width: auto; }
.hero ul { padding-left: 1.2rem; margin-bottom: .75rem; }
.hero ul li { font-weight: 500; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 60px; opacity: 1; }
.hero-carousel .carousel-control-prev-icon, .hero-carousel .carousel-control-next-icon { width: 34px; height: 34px; background-image: none; position: relative; }
.hero-carousel .carousel-control-prev-icon::before, .hero-carousel .carousel-control-next-icon::before { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; border-top: 3px solid var(--ny-blue); border-right: 3px solid var(--ny-blue); transform: translate(-50%, -50%) rotate(45deg); }
.hero-carousel .carousel-control-prev-icon::before { transform: translate(-30%, -50%) rotate(-135deg); }
.hero-carousel .carousel-indicators { bottom: 1.5rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .4; border: 0; }
.hero-carousel .carousel-indicators .active { opacity: 1; background: var(--ny-blue); }

/* İç sayfa başlık bölümü */
.page-hero { padding: calc(var(--ny-header-h) + 2.5rem) 0 3.5rem; min-height: 0; display: flex; align-items: center; } /* kısa tutuldu: ilk ekranda içerik (sekmeler) görünsün */
.page-hero h2 { font-size: 40px; font-weight: 700; margin-bottom: .75rem; }
.page-hero .subtitle { color: var(--ny-blue); font-size: 15px; }
.page-hero .lead { margin-bottom: 1.75rem; }
.page-hero-img { max-height: 280px; width: auto; }

/* ---------- Kartlar / ikon kutuları ---------- */
.feature-card { height: 100%; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 6px 28px rgba(0,0,0,.09); } /* beyaz zeminde de ayrışsın */
.feature-card .card-body { padding: 2rem; }
.feature-card h4, .feature-card h3 { font-size: 18px; font-weight: 500; color: var(--ny-title); margin-bottom: .75rem; }
.feature-card p { font-size: 14px; line-height: 1.7; }
.feature-card .card-img-top { padding: 1.5rem 1.5rem 0; }
/* Hizmet kartları: görsel alanı sabit yükseklikte → başlıklar aynı hizada. */
.service-card .card-img-top { height: var(--kart-gorsel-h, 280px); object-fit: contain; object-position: center; }
.icon-box .ib-icon { font-size: 30px; color: var(--ny-red); line-height: 1; margin-bottom: 1rem; }
.icon-box.horizontal { display: flex; gap: 1rem; }
.icon-box.horizontal .ib-icon { font-size: 26px; margin: .1rem 0 0; }
.icon-box.horizontal h4 { font-size: 17px; font-weight: 500; margin-bottom: .5rem; }
.icon-box.horizontal p { font-size: 14px; }
.service-card { color: inherit; display: block; height: 100%; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.1); color: inherit; }
.service-card h3 { font-size: 21px; font-weight: 500; }

/* Değerler (GÜVENİLİR, ANLAŞILIR...) */
.values-title { font-size: 28px; line-height: 1.35; }
.values .icon-box { text-align: center; }
.values .icon-box .ib-icon { font-size: 34px; }
.values .icon-box h4 { font-size: 18px; font-weight: 500; }
.values .icon-box p { font-size: 14px; }

/* Referanslar */
/* Logo görselleri 540x540 ve kenarlarda bol boşluk var; kutu büyütülüp hafif yakınlaştırılarak logolar belirgin gösterilir. */
.section-referanslar { padding: 3rem 0 3.5rem; background: var(--ny-gray); }
.section-referanslar .section-title { font-size: 16px; font-weight: 500; margin-bottom: 1.5rem; }
.ref-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.25rem; }
.ref-item { flex: 0 0 165px; width: 165px; height: 165px; overflow: hidden; border-radius: 8px; }
.ref-item img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.08); transition: transform .25s; }
.ref-item:hover img { transform: scale(1.15); }
@media (max-width: 575.98px) {
    .ref-item { flex-basis: 140px; width: 140px; height: 140px; }
}

/* Banner */
.section-banner { padding: 0 0 5rem; }
.section-banner img { border-radius: 16px; }

/* ---------- CTA (lacivert, dalga) ---------- */
.section-cta { position: relative; background: var(--ny-navy-2); color: #fff; padding: 5rem 0; overflow: hidden; isolation: isolate; }
.section-cta::before { content: ""; position: absolute; inset: 0; background: url("../images/dekor/wave-art-bg-white-down.svg") bottom center / 100% auto no-repeat; opacity: .6; mix-blend-mode: overlay; z-index: -1; } /* hero ile aynı beyaz dalga ve tonlar */
.cta-title { color: #fff; font-size: 26px; font-weight: 700; max-width: 860px; margin: 0 auto 1.75rem; line-height: 1.4; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; }
.cta-label { color: var(--ny-blue); font-size: 14px; margin: 0; }
.cta-phone { color: #fff; font-size: 24px; font-weight: 500; margin: 0; }
.cta-phone a { color: #fff; }

/* ---------- Biz Kimiz sekmeleri ve sayaçlar ---------- */
.about-tabs { border-bottom: 1px solid var(--ny-divider); margin-bottom: 3rem; }
.about-tabs .nav-link { border: 0; border-radius: 0; color: var(--ny-title); font-weight: 500; font-size: 18px; padding: 1rem 2.5rem; background: transparent; }
.about-tabs .nav-link.active { color: var(--ny-blue); background: transparent; border-bottom: 2px solid var(--ny-blue); }
.about-tabs .nav-link.active::before { content: "✓ "; }
.tab-kicker { font-size: 14px; font-weight: 500; color: var(--ny-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1rem; }
.about-quote { font-size: 28px; font-weight: 500; line-height: 1.4; color: var(--ny-title); margin-bottom: 1.5rem; }
.about-text p { font-size: 14px; }
.counter-box { text-align: center; padding: 1.5rem 1rem; }
.counter-number { font-size: 40px; font-weight: 700; color: var(--ny-blue); line-height: 1; margin-bottom: .5rem; }
.counter-title { font-size: 15px; color: var(--ny-text); }
.vision-card h4 { font-size: 18px; font-weight: 500; }

/* ---------- Hizmetlerimiz listesi ---------- */
.work-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.work-list li { display: flex; align-items: flex-start; gap: .9rem; padding: .75rem 0; font-size: 15px; }
.work-list li i { color: var(--ny-red); font-size: 22px; line-height: 1.2; }
.divider { border-top: 1px solid var(--ny-divider); }

/* ---------- İletişim ---------- */
.contact-card { text-align: center; padding: 2.25rem 1.5rem; height: 100%; border-radius: 8px; }
.contact-card .ib-icon { font-size: 30px; color: var(--ny-red); margin-bottom: .75rem; }
.contact-card h4 { font-size: 15px; font-weight: 500; color: var(--ny-title); margin-bottom: .5rem; }
.contact-card p, .contact-card a { font-size: 15px; color: var(--ny-text); }
.contact-card a:hover { color: var(--ny-blue); }
.contact-card .contact-big { font-size: 25px; font-weight: 500; color: var(--ny-title); line-height: 1.3; word-break: break-word; } /* e-posta ve telefon: büyük */
@media (max-width: 575.98px) { .contact-card .contact-big { font-size: 20px; } }
.form-card { background: #fff; border-radius: 8px; box-shadow: 0 6px 30px rgba(0,0,0,.08); padding: 2.5rem; }
.form-label { font-size: 13px; color: var(--ny-text); margin-bottom: .35rem; }
.form-label::after { content: " *"; color: var(--ny-red); }
.form-control { border: 2px solid var(--ny-divider); border-radius: 2px; min-height: 48px; font-size: 15px; background: #00000003; }
.form-control:focus { border-color: var(--ny-blue); box-shadow: 0 0 10px rgba(16,145,239,.14) inset; }
.social-big a { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--ny-red); font-size: 24px; margin: 0 .75rem; box-shadow: 0 4px 16px rgba(0,0,0,.08); transition: all .25s; }
.social-big a:hover { background: var(--ny-red); color: #fff; transform: translateY(-3px); }

/* ---------- Gizlilik ---------- */
.legal h3 { font-size: 20px; font-weight: 500; margin-top: 2rem; }
.legal p, .legal li { font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ny-navy-dark); color: #fff; padding: 4rem 0 0; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--ny-blue); }
.footer-logo { max-width: 190px; height: auto; }
.footer-title { color: var(--ny-blue); font-size: 15px; font-weight: 500; margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-social li a { display: flex; align-items: center; gap: .6rem; }
.footer-social i { font-size: 18px; }
.footer-phone { color: #fff; font-size: 18px; font-weight: 500; margin-bottom: .75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding: 1.25rem 0; font-size: 12px; color: rgba(255,255,255,.7); }

/* Go to top */
.go-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ny-blue); display: none; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(0,0,0,.1); z-index: 1030; font-size: 20px; }
.go-top:hover { color: var(--ny-blue-dark); box-shadow: 0 0 15px rgba(0,0,0,.15); }
.go-top.show { display: flex; }

/* Çerez barı */
.cookie-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(640px, calc(100% - 2rem)); background: #fff; color: var(--ny-text); border-radius: 6px; box-shadow: 0 8px 32px rgba(0,0,0,.25); padding: 1.25rem 1.5rem; z-index: 1040; font-size: 13px; line-height: 1.6; }
.cookie-bar a { color: var(--ny-blue); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero { min-height: 0; padding-top: calc(var(--ny-header-h) + 2rem); text-align: center; }
    .hero h1 { font-size: 32px; }
    .hero .hero-img { max-height: 300px; margin-top: 2rem; }
    .hero ul { display: inline-block; text-align: left; }
    .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { display: none; }
    .page-hero { min-height: 0; padding-top: calc(var(--ny-header-h) + 2rem); text-align: center; }
    .page-hero h2 { font-size: 30px; }
    .page-hero-img { max-height: 220px; margin-top: 1.5rem; }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 26px; }
    .cta-title { font-size: 22px; }
    .about-tabs .nav-link { padding: .75rem 1.25rem; }
}

/* ---------- Dil seçici ---------- */
.lang-switch { display: flex; align-items: center; gap: .5rem; margin-left: 1rem; }
.lang-link { display: inline-flex; padding: .35rem; border-radius: 4px; opacity: .55; transition: opacity .2s, background .2s; line-height: 0; }
.lang-link:hover, .lang-link.current { opacity: 1; }
.lang-link.current { background: rgba(255,255,255,.12); }
.lang-switch .flag-icon { height: 16px; width: auto; }
@media (max-width: 991.98px) {
    .lang-switch { margin: .5rem 0 0; }
}

/* ---------- WORKBOX ürün logoları (Yazılım sayfası) ----------
   Kaynak görseller karışık: 4 kare (1080x1080), 2 geniş (1920x1080). Hepsi 16:9 kutuya alınır;
   kare olanların boş üst/alt kısmı kırpılır, böylece görünen logo boyutları eşitlenir. */
.product-logos img, .section img[src*="/images/workbox/"] { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; transition: transform .25s; }
.product-logos img:hover, .section img[src*="/images/workbox/"]:hover { transform: scale(1.06); }

/* Spam tuzağı alanı: ekran dışında, kullanıcı görmez (display:none kullanılmaz; bazı botlar onu atlar). */
.hp-alan { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Doğrulama özeti: hata yokken boş kutu görünmesin. */
.validation-summary-valid { display: none; }

/* ---------- Logo İş Ortağı rozetleri (Kurumsal + Çözüm Geliştirme) ----------
   Kaynak 1080x1080, rozet ortada ~%57 genişlikte. Kutu 1:1, görsel 1.5x büyütülüp taşan boşluk kırpılır. */
.logo-rozetler { display: flex; justify-content: center; align-items: center; gap: 1.25rem; }
.logo-rozet { flex: 0 1 260px; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; }
.logo-rozet img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); }
.logo-rozetler-kart { height: var(--kart-gorsel-h, 280px); padding: 1.5rem 1.5rem 0; gap: 1rem; align-items: center; }
.logo-rozetler-kart .logo-rozet { flex-basis: 200px; }
@media (max-width: 575.98px) { .service-card .card-img-top, .logo-rozetler-kart { height: 200px; } .logo-rozetler-kart .logo-rozet { flex-basis: 140px; } }
@media (max-width: 575.98px) {
    .logo-rozetler { gap: .75rem; }
    .logo-rozet { flex-basis: 150px; }
}
