/* ===========================================================
   NURLOG RESPONSIVE.CSS (OPTIMIZED & FIXES APPLIED)
=========================================================== */

/* --- CİHAZLAR ARASI FONT BÜYÜTME FARKINI ENGELLEME --- */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/*----------------------------------------------------------
  LARGE TABLETS (1200px ve Altı)
----------------------------------------------------------*/
@media (max-width: 1200px) {
    .site-navbar {
        padding: 15px 0;
    }

    .site-blocks-cover {
        min-height: 620px;
    }

    .site-blocks-cover h1 {
        font-size: 2.8rem;
    }

    .container {
        max-width: 95%;
    }

    .site-section {
        padding: 80px 0;
    }
}

/*----------------------------------------------------------
  TABLET (991px ve Altı)
----------------------------------------------------------*/
@media (max-width: 991px) {
    .site-navbar {
        padding: 12px 0;
    }

    .site-navbar img {
        height: 60px !important;
    }

    .site-blocks-cover {
        min-height: 560px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .site-blocks-cover h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .site-blocks-cover .lead {
        font-size: 1.15rem;
        line-height: 1.7;
    }

    .site-section {
        padding: 70px 0;
    }

    .site-section h2 {
        font-size: 2rem;
    }

    .site-section h3 {
        font-size: 1.4rem;
    }

    .service-1 {
        margin-bottom: 30px;
    }

    .footer-links {
        row-gap: 40px;
    }
}

/*----------------------------------------------------------
  MOBILE & OFF-CANVAS SIDEBAR (768px ve Altı)
----------------------------------------------------------*/
@media (max-width: 768px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* --- 1. ARKA PLAN KARARTMA (DRAWER OVERLAY) --- */
    .drawer-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(2px);
        z-index: 99998 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .drawer-overlay.open {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* --- 2. MOBİL ÇEKMECE KAPSAYICI (.seo-mobile-drawer) --- */
    .seo-mobile-drawer,
    .site-mobile-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: 80vw !important;
        max-width: 320px !important;
        height: 100vh !important;
        background-color: #0c192c !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: -8px 0 25px rgba(0, 0, 0, 0.5) !important;
        overflow-y: auto !important;
        padding: 0 !important;
        transform: translateX(100%) !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        visibility: hidden;
    }

    .seo-mobile-drawer.open,
    .site-mobile-menu.open,
    .site-mobile-menu.active {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* --- 3. MENÜ BAŞLIK ALANI --- */
    .seo-mobile-drawer .drawer-header {
        padding: 18px 20px !important;
        background-color: #081220 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .seo-mobile-drawer .drawer-title {
        color: #ffffff !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .seo-mobile-drawer .drawer-close {
        background: transparent !important;
        border: none !important;
        color: #00b4d8 !important;
        font-size: 1.8rem !important;
        line-height: 1 !important;
        cursor: pointer;
        padding: 0 5px !important;
    }

    /* --- 4. NAVİGASYON VE LİSTE ELEMANLARI --- */
    .seo-mobile-drawer .mobile-navigation {
        padding: 0 0 30px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        flex-grow: 1;
    }

    .seo-mobile-drawer .mobile-menu-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .seo-mobile-drawer .mobile-menu-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .seo-mobile-drawer .mobile-menu-list li a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 16px 20px !important;
        color: #ffffff !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        letter-spacing: 0.3px;
        transition: background-color 0.2s ease;
    }

    .seo-mobile-drawer .mobile-menu-list li a:hover {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }

    /* --- 5. ALT MENÜLER (DROPDOWN) --- */
    .seo-mobile-drawer .mobile-submenu {
        display: none;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background-color: rgba(0, 0, 0, 0.3) !important;
    }

    .seo-mobile-drawer .mobile-dropdown.active .mobile-submenu {
        display: block !important;
    }

    .seo-mobile-drawer .mobile-submenu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    }

    .seo-mobile-drawer .mobile-submenu li a {
        padding: 13px 20px 13px 32px !important;
        font-size: 0.88rem !important;
        font-weight: 500 !important;
        color: #d0d7de !important;
        text-transform: none !important;
    }

    .seo-mobile-drawer .dropdown-icon {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .seo-mobile-drawer .mobile-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    /* --- 6. MENÜ İÇİ AKSİYON BUTONLARI --- */
    .seo-mobile-drawer .mobile-drawer-cta {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 20px !important;
        margin-top: auto !important;
    }

    .seo-mobile-drawer .mobile-cta-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 12px 10px !important;
        border-radius: 6px !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        text-transform: none !important;
        text-decoration: none !important;
    }

    .seo-mobile-drawer .mobile-cta-btn.phone-btn {
        background-color: #00b4d8 !important;
        color: #ffffff !important;
    }

    .seo-mobile-drawer .mobile-cta-btn.whatsapp-btn {
        background-color: #25d366 !important;
        color: #ffffff !important;
    }

    /* --- HEADER & SAYFA ELEMANLARI --- */
    .site-navbar {
        padding: 12px 0;
    }

    .site-navbar img {
        height: 48px !important;
    }

    .site-navbar h3 {
        font-size: 1.5rem !important;
    }

    /* --- HERO BÖLÜMÜ --- */
    .site-blocks-cover {
        min-height: 480px;
        padding: 100px 18px 40px;
        text-align: center;
    }

    .site-blocks-cover .sub-text {
        font-size: 0.8rem;
        letter-spacing: 1.2px;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .site-blocks-cover h1 {
        font-size: 1.85rem !important;
        line-height: 1.3;
        margin-bottom: 20px;
        font-weight: 800;
    }

    .site-blocks-cover .lead {
        font-size: 1rem !important;
        line-height: 1.65;
        max-width: 100%;
        padding: 0 5px;
        opacity: 0.95;
    }

    .site-blocks-cover .btn {
        display: block;
        width: 100%;
        margin: 12px 0;
        padding: 14px 18px !important;
        font-size: 1rem !important;
        font-weight: 700;
        white-space: normal;
        border-radius: 8px;
    }

    .site-blocks-cover .mr-2 {
        margin-right: 0 !important;
    }

    /* --- GENEL SEKSİYON VE BAŞLIKLAR (ORANTILI DÜZENLEME) --- */
    .site-section {
        padding: 45px 0;
    }

    .site-section h2 {
        font-size: 1.55rem !important;
        line-height: 1.3;
        margin-bottom: 18px;
        font-weight: 800;
    }

    .site-section h3 {
        font-size: 1.3rem !important;
        line-height: 1.35;
    }

    .site-section h4 {
        font-size: 1.1rem !important;
    }

    p {
        font-size: 0.95rem !important;
        line-height: 1.65;
    }

    .text-muted,
    small,
    .small-text {
        font-size: 0.85rem !important;
        opacity: 0.85;
    }

    .service-1 {
        padding: 24px 18px;
        margin-bottom: 20px;
        text-align: center;
        border-radius: 10px;
    }

    .service-1-icon {
        margin-bottom: 16px;
    }

    .btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 18px !important;
        font-size: 0.95rem !important;
        font-weight: 700;
        white-space: normal;
        border-radius: 8px;
    }

    .card-header button {
        display: block;
        width: 100%;
        padding: 15px;
        text-align: left;
        white-space: normal;
        line-height: 1.4;
        font-size: 1rem !important;
        font-weight: 700;
    }

    .card-body {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .site-footer {
        padding: 40px 15px;
        text-align: center;
    }

    .footer-brand-text h3 {
        font-size: 1.5rem;
    }

    .footer-title {
        font-size: 1.5rem;
        line-height: 1.35;
    }

    .footer-desc {
        font-size: 0.95rem;
    }

    .footer-stat h3 {
        font-size: 1.8rem;
    }

    .footer-col h5 {
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 8px;
    }

    .footer-col ul li a {
        font-size: 0.9rem;
        padding: 6px 0;
        display: block;
    }

    .footer-main-col {
        text-align: left !important;
    }

    .footer-tag-carousel {
        justify-content: flex-start;
        gap: 8px;
    }

    .footer-tag-carousel a {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/*----------------------------------------------------------
  KÜÇÜK MOBİL EKRANLAR (480px ve Altı)
----------------------------------------------------------*/
@media (max-width: 480px) {
    .site-blocks-cover {
        padding-top: 90px;
        min-height: 440px;
    }

    .site-blocks-cover h1 {
        font-size: 1.6rem !important;
    }

    .site-blocks-cover .lead {
        font-size: 0.9rem !important;
    }

    .site-section h2 {
        font-size: 1.4rem !important;
    }

    .site-section h3 {
        font-size: 1.15rem !important;
    }

    .btn {
        font-size: 0.9rem !important;
        padding: 12px 14px !important;
    }

    .sticky-btn {
        font-size: 0.88rem !important;
        padding: 11px !important;
    }
}

/*----------------------------------------------------------
  SABİT ALT İLETİŞİM BARI (MOBILE STICKY BAR - iOS SAFE FIX)
----------------------------------------------------------*/
@media (max-width: 991.98px) {
    .mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        display: flex;
        gap: 10px;
        padding: 10px 14px;
        /* iOS Çentik boşluğu ayarı */
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(8px);
        transition: transform 0.3s ease;
    }

    /* Mobil Menü Açıldığında Alt Sabit Barı Gizle */
    body:has(.seo-mobile-drawer.open) .mobile-sticky-bar,
    body:has(.drawer-overlay.open) .mobile-sticky-bar {
        transform: translateY(100%);
    }

    .sticky-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.92rem;
        text-decoration: none !important;
        color: #fff !important;
        text-align: center;
    }

    .sticky-btn.phone-btn {
        background-color: #ff9800;
    }

    .sticky-btn.wa-btn {
        background-color: #25d366;
    }
}