/* ============================================
   META GRUP OSGB - RESPONSİVE STİLLER
   Mobil ve tablet uyumluluk
   ============================================ */

/* ============================================
   TABLET (max-width: 991px)
   ============================================ */
@media (max-width: 991px) {

    /* Nav Menu Mobil */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        z-index: 998;
        gap: 0;
    }

    .nav-menu.mobile-active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--light-bg);
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
        background: var(--light-bg);
        border-radius: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    /* Header CTA butonu mobilde gizle */
    .header .nav>.btn {
        display: none;
    }

    /* Grid düzeni */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Row düzeni */
    .row {
        flex-direction: column;
    }

    .col {
        flex: none !important;
        width: 100%;
    }
}

/* ============================================
   MOBİL LARGE (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {

    /* Section padding */
    .section {
        padding: 3rem 0;
    }

    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero {
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Move dots lower on mobile to avoid overlap */
    .hero-dots {
        bottom: 1rem;
    }

    /* Statistics */
    .stats .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .social-icons {
        justify-content: center;
    }

    .footer-links,
    .footer-contact {
        align-items: center;
    }

    .footer-contact li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Top bar gizle */
    .top-bar {
        display: none;
    }

    /* Section header */
    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* FAQ */
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .testimonial-track {
        min-height: 400px;
        /* Mobilde daha fazla yükseklik gerekebilir çünkü metin uzar */
    }

    /* Scroll Top & Sticky Icons */
    .sticky-icons {
        bottom: 15px;
        /* Mobilde biraz daha yukarı */
    }

    .scroll-to-top {
        bottom: 145px !important;
        /* JS'i ezmek gerekebilir veya JS bunu ayarlıyor already */
        right: 15px !important;
    }

    .chat-bubble {
        bottom: 70px;
        right: 70px;
    }
}

/* ============================================
   MOBİL SMALL (max-width: 575px)
   ============================================ */
@media (max-width: 575px) {

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        min-height: 400px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    /* Sticky Icons */
    .sticky-icons {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .sticky-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    /* Chat Bubble */
    .chat-bubble {
        right: 65px;
        bottom: 55px;
        max-width: 180px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Logo */
    .logo img {
        height: 40px;
    }

    /* Statistics */
    .stats .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem 0.5rem;
    }

    /* Page Header */
    .page-header,
    .page-header-bg,
    section[style*="background: linear-gradient"] {
        padding: 3rem 0 !important;
    }

    /* Typography */
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.35rem !important;
    }

    h3 {
        font-size: 1.15rem !important;
    }

    h4 {
        font-size: 1.05rem !important;
    }
}

/* ============================================
   VERY SMALL SCREENS (max-width: 375px)
   ============================================ */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.25rem;
    }

    .stats .grid-4 {
        grid-template-columns: 1fr;
    }

    .sticky-icons a {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   LANDSCAPE MOBİL
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding-top: 0;
    }
}

/* ============================================
   TOUCH DEVICE OPTİMİZASYONU
   ============================================ */
@media (hover: none) {

    /* Touch cihazlarda hover efektlerini kaldır */
    .service-card:hover,
    .image-zoom:hover img {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* Daha büyük touch hedefleri */
    .nav-link,
    .dropdown-item,
    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ============================================
   PRİNT STİLLERİ
   ============================================ */
@media print {

    .top-bar,
    .header,
    .sticky-icons,
    .chat-bubble,
    .hamburger,
    footer {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 1rem 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }
}

/* ============================================
   TESTIMONIAL GRID DÜZENİ (SLIDER iptali)
   ============================================ */
.testimonial-carousel {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    max-width: 100% !important;
}

.testimonial-track {
    display: contents !important;
    /* Track yapısını yok say */
}

.testimonial-slide {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: auto !important;
    animation: none !important;
    /* Giriş animasyonunu kaldır veya koru */
}

/* Kartları biraz küçült (kompakt) */
.testimonial-card {
    padding: 1.5rem !important;
    height: 100%;
    /* Kartları eşit boyda tut */
    box-shadow: var(--shadow-md) !important;
}

.testimonial-card:hover {
    transform: translateY(-5px) !important;
}

.testimonial-text {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
}

.quote-icon {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.avatar-circle {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.25rem !important;
}

.testimonial-dots {
    display: none !important;
    /* Noktaları gizle */
}

/* Tablet ve Mobil için grid ayarları */
@media (max-width: 991px) {
    .testimonial-carousel {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .testimonial-carousel {
        grid-template-columns: 1fr !important;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }
}

/* ============================================
   MOBİL FORM VE TOUCH İYİLEŞTİRMELERİ
   ============================================ */

/* iOS zoom önleme - input font-size minimum 16px */
@media (max-width: 767px) {

    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Touch-friendly minimum hedef boyutları (44px) */
@media (max-width: 575px) {
    .btn-sm {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    .btn {
        min-height: 44px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .social-icons a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* FAQ accordion touch-friendly */
    .faq-question {
        min-height: 44px;
        padding: 1rem;
    }
}

/* Sticky icons mobil düzenlemesi */
@media (max-width: 480px) {
    .sticky-icons {
        bottom: 15px;
        right: 15px;
    }

    .sticky-icons a {
        width: 50px;
        height: 50px;
    }
}

/* Chat bubble çakışma düzeltmesi */
@media (max-width: 575px) {
    .chat-bubble {
        bottom: 140px;
        right: 15px;
    }
}