/* =====================================================================
   Ekim 2026 — görsel iyileştirme katmanı
   Mevcut tasarım sistemini (lacivert + bakır) değiştirmez; üstüne
   ince ayar, okuma deneyimi ve mobil dönüşüm öğeleri ekler.
   ===================================================================== */

::selection { background: var(--amber-soft); color: var(--navy); }

/* ---- Okuma ilerleme çubuğu (blog/rehber detayı) -------------------- */
.read-progress {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    height: 3px; transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--amber-dark), var(--amber), #f0b784);
    pointer-events: none;
}

/* ---- Makale okunabilirliği ----------------------------------------- */
.guide-section > p,
.guide-answer p { line-height: 1.78; }
.guide-section > p { max-width: 70ch; }
.guide-answer {
    border-left: 3px solid var(--amber);
    box-shadow: 0 18px 44px rgba(7, 17, 31, .06);
}
.guide-checklist li { transition: transform .2s ease; }
.guide-checklist li:hover { transform: translateX(3px); }
.guide-faq details { transition: box-shadow .25s ease, border-color .25s ease; }
.guide-faq details[open] { box-shadow: 0 14px 34px rgba(7, 17, 31, .07); }

/* İçindekiler: aktif bölüm vurgusu */
.guide-toc a { position: relative; transition: color .2s ease; }
.guide-toc a.is-active { color: var(--navy); font-weight: 700; }
.guide-toc a.is-active::before {
    content: ""; position: absolute; left: -1.25rem; top: .55em;
    width: .6rem; height: 2px; background: var(--amber);
}

/* ---- Blog kartları: gerçek <img> (lazy + thumb) -------------------- */
.blog-card { transition: transform .3s ease, box-shadow .3s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(7, 17, 31, .12); }
.blog-card__cover { isolation: isolate; }
.blog-card__cover .blog-card__pic { position: absolute; inset: 0; z-index: -1; display: block; }
.blog-card__cover .blog-card__pic img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.blog-card:hover .blog-card__pic img { transform: scale(1.05); }
.blog-card__cover::before { z-index: 0; }
.blog-card__badge {
    align-self: flex-start;
    padding: .32rem .7rem; border-radius: 999px;
    background: var(--amber); color: #fff;
    font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(169, 80, 24, .35);
}
.blog-card .guide-card__meta time { font-variant-numeric: tabular-nums; }

/* ---- Genel kart ve buton incelikleri ------------------------------- */
.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ---- Sayfa başlığı (iç sayfalar) ------------------------------------ */
.page-hero::before {
    background:
        radial-gradient(ellipse at 85% 0%, rgba(216, 121, 43, .22), transparent 55%),
        linear-gradient(180deg, rgba(7, 17, 31, .82), rgba(11, 25, 48, .92));
}
.page-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    opacity: .7;
}
.page-hero__eyebrow {
    display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .9rem;
    color: #f0b784; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}

/* ---- Güven şeridi (hizmet sayfası) --------------------------------- */
.trust-strip {
    list-style: none; margin: 46px auto 0; padding: 0; max-width: 1040px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.trust-strip li {
    display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: #fff;
    color: var(--navy); font-size: .88rem; font-weight: 600; line-height: 1.35;
}
.trust-strip i {
    flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
    background: var(--amber-soft); color: var(--amber-dark); font-size: .95rem;
}

/* ---- Hizmet içerik blokları: metin duvarı yerine kartlar ------------ */
.service-blocks { gap: 26px; }
.service-block {
    position: relative; padding: 34px 34px 28px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(7, 17, 31, .04);
    transition: box-shadow .3s ease, border-color .3s ease;
}
.service-block:hover { border-color: rgba(216, 121, 43, .45); box-shadow: 0 22px 50px rgba(7, 17, 31, .09); }
.service-block__index {
    display: block; margin-bottom: .55rem;
    font-family: var(--ff-head); font-size: 2.1rem; line-height: 1; color: var(--amber);
}
.service-block h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.12; margin-bottom: .8rem; }
.service-block p { color: #3d4858; line-height: 1.75; }
.service-block__list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 9px; }
.service-block__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .95rem; }
.service-block__list i {
    flex: 0 0 22px; height: 22px; margin-top: 2px; display: grid; place-items: center; border-radius: 50%;
    background: var(--navy); color: #f0b784; font-size: .62rem;
}

/* ---- SSS (hizmet/proje) -------------------------------------------- */
.faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 0; margin-bottom: 12px; transition: box-shadow .25s ease, border-color .25s ease;
}
.faq-item[open] { border-color: rgba(216, 121, 43, .5); box-shadow: 0 14px 34px rgba(7, 17, 31, .07); }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 22px; font-weight: 700; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--amber); transition: transform .25s ease; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: #3d4858; line-height: 1.75; }

/* ---- Bağlantılı kartlar -------------------------------------------- */
.hizmet-kart__more {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem;
    color: var(--amber-dark); font-size: .82rem; font-weight: 700; letter-spacing: .04em;
    transition: gap .2s ease;
}
.hizmet-kart--link:hover .hizmet-kart__more { gap: 10px; }

@media (max-width: 992px) {
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .trust-strip { grid-template-columns: 1fr; }
    .service-block { padding: 26px 22px 22px; }
}

/* ---- Ana sayfa LCP: başlık animasyon beklemeden görünür ------------- */
/* PageSpeed (25.10.2026): LCP öğesi bu H1; "reveal" animasyonu ~2,3 sn gecikme ekliyordu. */
.home-redesign #home-hero-title.reveal-pending,
.home-redesign #home-hero-title[data-reveal] { opacity: 1; transform: none; transition: none; }

/* ---- Başa dön ------------------------------------------------------ */
.to-top {
    position: fixed; right: 30px; bottom: 98px; z-index: 199;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
    background: rgba(255, 255, 255, .94); color: var(--navy);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: #fff; }

/* ---- Mobil alt iletişim çubuğu ------------------------------------- */
.mobile-cta { display: none; }

@media (max-width: 760px) {
    .mobile-cta {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
        display: grid; grid-template-columns: 1fr 1fr 1.3fr;
        background: rgba(11, 25, 48, .97);
        backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid rgba(255, 255, 255, .08);
        padding-bottom: env(safe-area-inset-bottom, 0);
        box-shadow: 0 -10px 30px rgba(7, 17, 31, .25);
    }
    .mobile-cta__item {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-height: 58px; color: #e2e8f0; font-size: .72rem; font-weight: 600; letter-spacing: .02em;
    }
    .mobile-cta__item i { font-size: 1.15rem; }
    .mobile-cta__item:hover, .mobile-cta__item:focus-visible { color: #fff; }
    .mobile-cta__item--wa i { color: #25d366; }
    .mobile-cta__item--accent { background: var(--amber); color: #fff; }
    .mobile-cta__item--accent:hover { background: var(--amber-dark); }

    /* Alt çubuk varken yüzen WhatsApp düğmesi tekrar etmesin; içerik çubuğun altında kalmasın. */
    .whatsapp-float { display: none; }
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0)); }
    .to-top { right: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0)); }

    /* Ana sayfanın kendi mobil aksiyon çubuğu var; ikisi üst üste binmesin. */
    .page-home .mobile-cta { display: none; }
    .page-home { padding-bottom: 0; }
    .page-home .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0)); }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card, .blog-card__pic img, .btn, .to-top, .guide-checklist li { transition: none; }
    .blog-card:hover, .btn:hover { transform: none; }
    .blog-card:hover .blog-card__pic img { transform: none; }
}

@media print {
    .mobile-cta, .to-top, .read-progress, .whatsapp-float { display: none !important; }
}
