/* ==========================================================================
   FirmaDijitasyon — Mobile App-like Stylesheet (v1.2)
   iOS / Android / PWA standalone optimizasyonları
   ========================================================================== */

/* ---------- 1. iOS / Android safe area + standalone mode ---------- */
@supports (padding: max(0px)) {
    :root {
        --fd-safe-top: env(safe-area-inset-top, 0px);
        --fd-safe-bottom: env(safe-area-inset-bottom, 0px);
        --fd-safe-left: env(safe-area-inset-left, 0px);
        --fd-safe-right: env(safe-area-inset-right, 0px);
    }
    body { padding-left: var(--fd-safe-left); padding-right: var(--fd-safe-right); }
}

/* PWA standalone (Android/iOS Add to Home Screen) — gerçek app kipi */
@media (display-mode: standalone), (display-mode: fullscreen) {
    .fd-topbar { display: none !important; }
    body.fd-body { padding-top: env(safe-area-inset-top); }
    .fd-header { top: 0; padding-top: env(safe-area-inset-top); background: var(--fd-secondary); border-bottom-color: rgba(255,255,255,.08); }
    .fd-header.fd-header-light .fd-logo-name, .fd-header .fd-logo-name { color: #fff; }
    .fd-header .fd-menu > li > a, .fd-header .fd-header-search { color: #fff; }
    .fd-header .fd-burger span { background: #fff; }
    .fd-skip-link { display: none; }
    .fd-page-hero { padding-top: 30px; }
}

/* iOS koyu status bar + theme-color uyumu */
html { -webkit-tap-highlight-color: transparent; }

/* ---------- 2. Splash / Loading overlay ---------- */
.fd-splash { position: fixed; inset: 0; background: var(--fd-secondary); z-index: 100000; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; transition: opacity .5s ease, visibility .5s; }
.fd-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.fd-splash-logo { width: 84px; height: 84px; border-radius: 22px; background: linear-gradient(135deg, var(--fd-primary), var(--fd-primary-hover)); display: inline-flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-size: 2.4rem; font-weight: 800; color: #fff; box-shadow: 0 18px 50px rgba(255,107,0,.35); animation: fd-splash-pulse 1.5s ease-in-out infinite; }
.fd-splash-name { color: #fff; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.fd-splash-bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; position: relative; }
.fd-splash-bar::after { content: ''; position: absolute; inset: 0; background: var(--fd-primary); transform: translateX(-100%); animation: fd-splash-progress 1.2s ease-in-out infinite; }
@keyframes fd-splash-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes fd-splash-progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (display-mode: standalone) {
    .fd-splash { display: flex; }
}
@media not all and (display-mode: standalone) {
    .fd-splash { display: none; }
}

/* ---------- 3. Touch feedback (ripple-light) ---------- */
@media (hover: none) and (pointer: coarse) {
    .fd-btn, .fd-link-arrow, .fd-tabbar-item, .fd-fab-trigger,
    .fd-svc-card, .fd-archive-svc, .fd-project-row, .fd-blog-post-row,
    .fd-contact-card, .fd-marquee-item, .fd-recent-posts a, .fd-categories li a,
    button, a.fd-btn { -webkit-tap-highlight-color: rgba(0,0,0,0); }
    .fd-btn:active, .fd-link-arrow:active, .fd-tabbar-item:active { transform: scale(.96); }
    .fd-svc-card:active, .fd-archive-svc:active, .fd-project-row:active,
    .fd-blog-post-row:active, .fd-contact-card:active { transform: scale(.98); transition: transform .12s ease-out; }
    /* Hover efektlerini touch'da pasifleştir (yapışkan hover sorununu engeller) */
    .fd-svc-card:hover, .fd-archive-svc:hover, .fd-project-row:hover,
    .fd-blog-post-row:hover, .fd-contact-card:hover { transform: none; }
}

/* ---------- 4. Mobile-only kapsamlı revizyon (768px ve altı) ---------- */
@media (max-width: 768px) {
    :root { --fd-section-pad: 50px; --fd-radius-xl: 22px; --fd-radius-lg: 18px; }

    /* HEADER */
    .fd-topbar { display: none; }
    .fd-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); transition: transform .3s ease, box-shadow .25s ease; }
    .fd-header.is-hidden { transform: translateY(-110%); }
    .fd-header-inner { min-height: 64px; gap: 10px; padding: 0 4px; }
    .fd-logo-mark { width: 38px; height: 38px; font-size: 1.15rem; border-radius: 11px; }
    .fd-logo-name { font-size: 1.05rem; }
    .fd-header-logo img { max-height: 38px !important; }
    .fd-nav { display: none; }
    .fd-header-search { width: 40px; height: 40px; }
    .fd-header-cta { padding: 0 16px !important; height: 40px !important; min-width: auto !important; }
    .fd-header-cta i { font-size: .95rem; }
    .fd-header-cta span { display: none; }
    .fd-burger { width: 40px; height: 40px; }

    /* SLIDER — yarı boy ekran, app hero gibi */
    .fd-slider { height: 78vh; min-height: 460px; max-height: 620px; border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; overflow: hidden; }
    .fd-slide-content { padding-right: 0; max-width: 100%; }
    .fd-slide-sub { font-size: .72rem; padding: 5px 12px; margin-bottom: 14px; }
    .fd-slide-title { font-size: 1.7rem; line-height: 1.2; margin-bottom: 14px; }
    .fd-slide-text { font-size: .95rem; margin-bottom: 22px; }
    .fd-slide-actions { flex-direction: column; align-items: stretch; max-width: none; gap: 10px; }
    .fd-slide-actions .fd-btn { padding: 14px 22px; }
    .fd-slider-prev, .fd-slider-next { width: 36px; height: 36px; }
    .fd-slider-prev { left: 10px; }
    .fd-slider-next { right: 10px; }
    .fd-slider-dots { bottom: 22px; }
    .fd-slider-dot { width: 8px; height: 8px; }
    .fd-slider-dot.is-active { width: 24px; }

    /* 3 KUTUCUK — dikey app card */
    .fd-boxes-section { transform: translateY(-26px); padding: 0 16px; }
    .fd-boxes-grid { grid-template-columns: 1fr; border-radius: 22px; box-shadow: 0 16px 40px rgba(15,15,16,.1); }
    .fd-box { padding: 22px 22px; gap: 14px; }
    .fd-box + .fd-box::before { left: 22px; right: 22px; top: 0; bottom: auto; width: auto; height: 1px; }
    .fd-box-icon { width: 50px; height: 50px; font-size: 1.25rem; border-radius: 12px; }
    .fd-box-title { font-size: 1.05rem; margin-bottom: 4px; }
    .fd-box-text { font-size: .9rem; margin-bottom: 8px; }

    /* SECTION HEAD */
    .fd-section-head { margin-bottom: 30px; }
    .fd-section-head-row { gap: 16px; flex-direction: column; align-items: flex-start; }
    .fd-section-head-row .fd-link-arrow { align-self: flex-start; padding: 9px 16px; font-size: .85rem; }
    .fd-section-title { font-size: 1.55rem; line-height: 1.2; }
    .fd-section-sub { font-size: .72rem; padding: 5px 12px; }
    .fd-section-desc { font-size: .95rem; }

    /* HAKKIMIZDA */
    .fd-about-grid { grid-template-columns: 1fr; gap: 36px; }
    .fd-about-img-placeholder { aspect-ratio: 4/3.4; font-size: 3rem; }
    .fd-about-badge { right: 16px; bottom: -18px; padding: 14px 18px; }
    .fd-about-badge strong { font-size: 1.7rem; }
    .fd-about-badge span { font-size: .75rem; }
    .fd-about-list { grid-template-columns: 1fr; gap: 8px; margin-bottom: 22px; }
    .fd-about-list li { font-size: .92rem; }
    .fd-counters { grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px 18px; margin-top: 36px; }
    .fd-counter strong { font-size: 1.7rem; }
    .fd-counter span { font-size: .82rem; }

    /* PROJELER mosaic */
    .fd-projects-mosaic { grid-template-columns: 1fr; gap: 18px; }
    .fd-project-feat { min-height: 380px; border-radius: 22px; }
    .fd-project-feat-body { padding: 24px 22px; }
    .fd-project-feat-title { font-size: 1.35rem; }
    .fd-project-feat-text { font-size: .92rem; margin-bottom: 18px; }
    .fd-project-feat-meta { gap: 14px; padding: 12px 0; margin-bottom: 18px; }
    .fd-project-feat-meta span { font-size: .68rem; }
    .fd-project-feat-meta strong { font-size: .88rem; }
    .fd-project-feat-tag { font-size: .66rem; padding: 4px 10px; margin-bottom: 14px; }

    .fd-project-list { gap: 10px; }
    .fd-project-row { grid-template-columns: 76px 1fr 32px; gap: 12px; padding: 10px; min-height: auto; border-radius: 16px; }
    .fd-project-row-thumb { width: 76px; height: 70px; border-radius: 12px; }
    .fd-project-row-meta { font-size: .76rem; gap: 5px; margin-bottom: 2px; }
    .fd-project-row-title { font-size: .95rem; line-height: 1.3; }
    .fd-project-row-arrow { width: 32px; height: 32px; font-size: .9rem; }

    /* NEDEN BİZ */
    .fd-why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fd-why-item { padding: 22px 16px; border-radius: 18px; }
    .fd-why-icon { width: 56px; height: 56px; font-size: 1.4rem; margin-bottom: 14px; border-radius: 16px; }
    .fd-why-title { font-size: .98rem; margin-bottom: 6px; }
    .fd-why-text { font-size: .82rem; line-height: 1.5; }

    /* YORUMLAR */
    .fd-testimonial-card { flex: 0 0 100%; padding: 24px 22px; border-radius: 22px; }
    .fd-testimonial-quote { font-size: 1.8rem; }
    .fd-testimonial-text { font-size: .94rem; margin-bottom: 18px; }
    .fd-testimonial-avatar { width: 44px; height: 44px; }
    .fd-testimonial-author strong { font-size: .92rem; }
    .fd-testimonial-author span { font-size: .78rem; }
    .fd-carousel-prev, .fd-carousel-next { width: 42px; height: 42px; }

    /* REFERANSLAR marquee */
    .fd-marquee { padding: 22px 0; }
    .fd-marquee-track { gap: 26px; animation-duration: 28s; }
    .fd-marquee-item { min-width: 140px; height: 70px; padding: 0 14px; border-radius: 14px; }
    .fd-marquee-logo { max-height: 38px; max-width: 100px; }
    .fd-marquee-text { font-size: .92rem; }
    .fd-refs-stats { grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px 16px; margin-top: 32px; border-radius: 22px; }
    .fd-refs-stat strong { font-size: 1.5rem; }
    .fd-refs-stat span { font-size: .76rem; }
    .fd-refs-stat:nth-child(2)::after { display: none; }
    .fd-refs-stat:not(:last-child)::after { right: -8px; }

    /* HİZMETLER mosaic */
    .fd-services-mosaic { grid-template-columns: 1fr; gap: 14px; }
    .fd-svc-card { padding: 22px 20px; border-radius: 20px; min-height: 200px; gap: 14px; }
    .fd-svc-big { grid-column: auto; padding: 28px 24px; min-height: 260px; }
    .fd-svc-big .fd-svc-title { font-size: 1.25rem; }
    .fd-svc-big .fd-svc-text { font-size: .92rem; }
    .fd-svc-big .fd-svc-num { font-size: 4rem; }
    .fd-svc-icon { width: 50px; height: 50px; font-size: 1.3rem; border-radius: 14px; }
    .fd-svc-title { font-size: 1.05rem; }
    .fd-svc-text { font-size: .88rem; }
    .fd-svc-num { font-size: 3.5rem; bottom: -8px; right: 14px; }
    .fd-svc-arrow { width: 36px; height: 36px; bottom: 16px; right: 16px; opacity: 1; transform: none; background: var(--svc-color); color: #fff; }

    /* BLOG */
    .fd-blog-grid { grid-template-columns: 1fr; gap: 14px; }
    .fd-blog-page-grid { grid-template-columns: 1fr; gap: 24px; }
    .fd-blog-post-row { grid-template-columns: 1fr; padding: 0; border-radius: 22px; overflow: hidden; }
    .fd-blog-post-row-thumb { aspect-ratio: 16/9; border-radius: 0; }
    .fd-blog-post-row-body { padding: 18px 20px 20px; }
    .fd-blog-post-row-title { font-size: 1.1rem; }
    .fd-blog-post-row-excerpt { font-size: .88rem; }
    .fd-blog-post-row-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
    .fd-blog-post-row-meta { font-size: .76rem; gap: 10px; flex-wrap: wrap; }
    .fd-post-card { border-radius: 22px; }
    .fd-post-body { padding: 18px 20px 22px; }
    .fd-post-title { font-size: 1.08rem; }
    .fd-post-excerpt { font-size: .88rem; }

    /* CTA bandı / İletişim sayfası */
    .fd-cta-band-inner { padding: 28px 22px; grid-template-columns: 1fr; text-align: center; gap: 18px; }
    .fd-cta-band-inner h3 { font-size: 1.25rem; }
    .fd-cta-band-inner p { font-size: .92rem; }
    .fd-cta-band-actions { justify-content: center; flex-direction: column; }
    .fd-cta-band-actions .fd-btn { width: 100%; }

    /* İletişim sayfası */
    .fd-contact-hero { padding: 50px 0 40px; }
    .fd-contact-cards { margin-top: -30px; }
    .fd-contact-cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fd-contact-card { padding: 20px 16px; border-radius: 18px; }
    .fd-contact-card-icon { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 10px; border-radius: 12px; }
    .fd-contact-card h3 { font-size: .72rem; }
    .fd-contact-card p, .fd-contact-card a { font-size: .88rem; }
    .fd-contact-main { padding: 50px 0; }
    .fd-contact-main-grid { grid-template-columns: 1fr; gap: 18px; }
    .fd-contact-form-wrap { padding: 24px 22px; border-radius: 22px; }
    .fd-contact-form-wrap h2 { font-size: 1.4rem; }
    .fd-contact-form-wrap > p { font-size: .9rem; margin-bottom: 22px; }
    .fd-contact-form-wrap .fd-form-row { grid-template-columns: 1fr; gap: 12px; }
    .fd-contact-map-wrap { min-height: 320px; }
    .fd-contact-map-wrap iframe { min-height: 320px; }
    .fd-contact-map-fallback { min-height: 320px; padding: 24px; }
    .fd-contact-social-band { padding: 24px; flex-direction: column; text-align: center; gap: 18px; }
    .fd-contact-social-icons { justify-content: center; }

    /* Page hero */
    .fd-page-hero { padding: 36px 0 30px; }
    .fd-page-hero[style*="background-image"] { padding: 60px 0 50px; }
    .fd-page-title { font-size: 1.55rem; }
    .fd-page-desc { font-size: .92rem; }

    /* NEWSLETTER + FOOTER */
    .fd-newsletter { padding: 36px 0; }
    .fd-newsletter-inner { grid-template-columns: 1fr; gap: 18px; text-align: center; }
    .fd-newsletter h3 { font-size: 1.3rem; }
    .fd-newsletter p { font-size: .9rem; }
    .fd-newsletter-form { flex-direction: column; }
    .fd-newsletter-form input { min-width: 100%; padding: 13px 18px; }
    .fd-newsletter-form .fd-btn { width: 100%; padding: 13px 22px; }
    .fd-footer-main { padding: 40px 0 24px; }
    .fd-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .fd-footer-brand p { font-size: .9rem; }
    .fd-footer-title { font-size: .98rem; margin-bottom: 16px; }
    .fd-footer-menu li { margin-bottom: 8px; }
    .fd-footer-menu li a { font-size: .9rem; }
    .fd-footer-bottom { padding: 16px 0; font-size: .78rem; }
    .fd-footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }

    /* SEARCH RESULTS */
    .fd-search-result { grid-template-columns: 1fr; padding: 16px; gap: 14px; border-radius: 18px; }
    .fd-search-thumb { aspect-ratio: 16/9; }
    .fd-search-body h3 { font-size: 1.05rem; }
    .fd-search-body p { font-size: .88rem; }

    /* 404 */
    .fd-404 { padding: 60px 0; }
    .fd-404 h1 { font-size: 1.6rem; }
    .fd-404 p { font-size: .92rem; }
    .fd-404-actions { flex-direction: column; }
    .fd-404-actions .fd-btn { width: 100%; }

    /* Comments */
    .fd-comments-title { font-size: 1.3rem; margin-bottom: 22px; }
    .fd-comment-list .comment-body { grid-template-columns: 48px 1fr; padding: 18px 16px; border-radius: 16px; }
    .fd-comment-list .comment-author .avatar { width: 48px; height: 48px; }
    .fd-comment-list .children { padding-left: 12px; }
    .comment-form { padding: 22px 18px; border-radius: 22px; }
    .comment-reply-title { font-size: 1.2rem; }

    /* Posts archive grid */
    .fd-services-grid, .fd-projects-grid, .fd-cards-grid, .fd-products-grid { grid-template-columns: 1fr; gap: 14px; }
    .fd-archive-grid { grid-template-columns: 1fr; gap: 16px; }
    .fd-archive-projects-grid { grid-template-columns: 1fr; gap: 14px; }
    .fd-archive-svc { padding: 24px 22px; border-radius: 22px; }
    .fd-archive-svc-icon { width: 56px; height: 56px; font-size: 1.4rem; margin-bottom: 14px; }
    .fd-archive-svc h3 { font-size: 1.1rem; }
    .fd-archive-svc p { font-size: .9rem; margin-bottom: 16px; }

    /* Filter bar — yatay scroll */
    .fd-filter-bar { padding: 6px; max-width: calc(100vw - 32px); overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .fd-filter-bar::-webkit-scrollbar { display: none; }
    .fd-filter-bar .fd-filter-tab { padding: 8px 16px; font-size: .85rem; flex-shrink: 0; }

    /* Project meta sidebar */
    .fd-project-layout { grid-template-columns: 1fr; gap: 26px; }
    .fd-project-meta { position: static; padding: 22px; border-radius: 18px; }

    /* Single post */
    .fd-prose { font-size: .98rem; }
    .fd-share { padding: 14px; flex-wrap: wrap; }
    .fd-share strong { width: 100%; margin-bottom: 6px; }
    .fd-post-nav { grid-template-columns: 1fr; gap: 10px; }
    .fd-post-nav-next { text-align: left; }
    .fd-post-nav a { padding: 14px 18px; border-radius: 14px; }
    .fd-related-grid { grid-template-columns: 1fr; }

    /* CONTAINER */
    .fd-container { padding: 0 18px; }
    body { padding-bottom: 84px !important; }
}

/* ---------- 5. Tabbar (mobile alt bar) — iOS/Android tarzı ---------- */
@media (max-width: 768px) {
    .fd-tabbar {
        display: flex;
        position: fixed; bottom: 0; left: 0; right: 0;
        z-index: 998;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.92);
        backdrop-filter: saturate(200%) blur(24px);
        -webkit-backdrop-filter: saturate(200%) blur(24px);
        border-top: 1px solid rgba(15,15,16,.08);
        box-shadow: 0 -2px 14px rgba(15,15,16,.04);
        justify-content: space-around;
        align-items: stretch;
    }
    .fd-tabbar-item {
        flex: 1; max-width: 80px;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 4px; padding: 7px 4px;
        color: var(--fd-muted);
        font-size: .65rem; font-weight: 500;
        position: relative;
        background: transparent; border: 0; min-height: 50px;
        text-decoration: none;
        transition: color .2s ease;
    }
    .fd-tabbar-item i { font-size: 1.3rem; transition: transform .2s ease; }
    .fd-tabbar-item span { letter-spacing: .01em; }
    .fd-tabbar-item.is-active { color: var(--fd-primary); }
    .fd-tabbar-item.is-active i { transform: translateY(-2px); }
    .fd-tabbar-item.is-active::before {
        content: ''; position: absolute; top: 0; left: 50%;
        transform: translateX(-50%);
        width: 28px; height: 3px;
        background: var(--fd-primary); border-radius: 0 0 3px 3px;
    }
    .fd-tabbar-item:active { background: rgba(15,15,16,.04); border-radius: 14px; }

    /* Tabbar koyu mod (PWA standalone'da) */
    @media (display-mode: standalone) {
        .fd-tabbar { background: rgba(15,15,16,.92); border-top-color: rgba(255,255,255,.08); }
        .fd-tabbar-item { color: rgba(255,255,255,.65); }
        .fd-tabbar-item:active { background: rgba(255,255,255,.08); }
    }
}

/* ---------- 6. Mobile menü iyileştirmeleri (slide-in) ---------- */
@media (max-width: 768px) {
    .fd-mobile-menu {
        width: 88%; max-width: 360px;
        background: #fff;
        box-shadow: -10px 0 40px rgba(15,15,16,.18);
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .fd-mobile-menu-inner { padding: 18px 20px; }
    .fd-mobile-menu-head { padding-bottom: 14px; margin-bottom: 18px; }
    .fd-mobile-close { width: 38px; height: 38px; }
    .fd-mobile-menu-list li a {
        padding: 14px 8px; font-size: .96rem; font-weight: 500;
        border-radius: 10px;
    }
    .fd-mobile-menu-list li a:active { background: var(--fd-bg-alt); }
    .fd-mobile-social a { width: 38px; height: 38px; }
}

/* ---------- 7. FAB (floating contact) — mobil konum ---------- */
@media (max-width: 768px) {
    .fd-fab { right: 14px; bottom: 80px; }
    .fd-fab-trigger { width: 52px; height: 52px; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
    .fd-fab-trigger i { font-size: 1.3rem; }
    .fd-fab-list { bottom: 64px; gap: 10px; }
    .fd-fab-item a { width: 46px; height: 46px; font-size: 1.15rem; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
    .fd-fab-tooltip { display: none; } /* Mobilde tooltip'e gerek yok, ikon yeterli */
    .fd-scroll-top { bottom: 142px; right: 14px; width: 40px; height: 40px; }
}

/* ---------- 8. Çok küçük cihazlar (≤ 375px iPhone SE) ---------- */
@media (max-width: 380px) {
    :root { --fd-section-pad: 44px; }
    .fd-container { padding: 0 14px; }
    .fd-header-cta { display: none; }
    .fd-logo-name { font-size: .98rem; }
    .fd-slide-title { font-size: 1.45rem; }
    .fd-slide-text { font-size: .88rem; }
    .fd-section-title { font-size: 1.4rem; }
    .fd-counters { padding: 18px 14px; }
    .fd-counter strong { font-size: 1.5rem; }
    .fd-why-grid, .fd-contact-cards-grid { grid-template-columns: 1fr; }
    .fd-tabbar-item { font-size: .6rem; }
    .fd-tabbar-item i { font-size: 1.2rem; }
}

/* ---------- 9. Yatay tablet/landscape iyileştirmeler ---------- */
@media (min-width: 769px) and (max-width: 1100px) {
    .fd-services-mosaic { grid-template-columns: repeat(2, 1fr); }
    .fd-svc-big { grid-column: span 2; min-height: 320px; }
    .fd-projects-mosaic { grid-template-columns: 1fr; }
    .fd-project-feat { min-height: 480px; }
    .fd-contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .fd-contact-main-grid { grid-template-columns: 1fr; gap: 24px; }
    .fd-blog-page-grid { grid-template-columns: 1fr; }
}

/* ---------- 10. Smooth scroll & overflow guards ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; max-width: 100vw; }
img, iframe, video, svg { max-width: 100%; }

/* iOS scroll bounce engelleme (özel input/textareada) */
input, textarea, select { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* iOS otomatik tap zoom engelleme */
@media (max-width: 768px) {
    input, textarea, select { font-size: 16px !important; }
}

/* ---------- 11. Print uyumu ---------- */
@media print {
    .fd-tabbar, .fd-fab, .fd-scroll-top, .fd-splash, .fd-mobile-menu, .fd-overlay, .fd-newsletter { display: none !important; }
    .fd-header { position: static; }
    body { padding-bottom: 0 !important; }
}

/* ---------- 12. Reduce motion accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .fd-marquee-track { animation: none; }
}
