/**
 * Çağlayan Yemek - Mobil ve Tablet Uyumluluk Kuralları (Responsive CSS)
 */

/* ==========================================================================
   1. GENEL MOBİL YARDIMCI SINIFLARI
   ========================================================================== */
.d-none-mobile {
    display: inline-block;
}

.d-none-tablet {
    display: inline-block;
}


/* ==========================================================================
   2. ORTA EKRANLAR (Tablet & Küçük Masaüstü - Max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    :root {
        --border-radius-md: 12px;
        --border-radius-lg: 16px;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .d-none-tablet {
        display: none !important;
    }

    /* Üst Bilgi Barı */
    .top-bar-container {
        justify-content: center;
        gap: 1rem;
    }
    
    .top-social {
        display: none;
    }

    /* Navigasyon / Hamburger Menü */
    .header {
        padding: 1rem 0;
    }

    .header.sticky {
        padding: 0.7rem 0;
    }

    .nav-toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        background: transparent;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--secondary);
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    .nav-toggle span:nth-child(1) {
        top: 0px;
    }

    .nav-toggle span:nth-child(2) {
        top: 8px;
    }

    .nav-toggle span:nth-child(3) {
        top: 16px;
    }

    /* Hamburger Aktif Hali (X işareti) */
    .nav-toggle.active span:nth-child(1) {
        top: 8px;
        transform: rotate(135deg);
        background: var(--primary);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .nav-toggle.active span:nth-child(3) {
        top: 8px;
        transform: rotate(-135deg);
        background: var(--primary);
    }

    /* Mobil Menü Konumu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -10px 0 35px rgba(27, 46, 36, 0.15);
        padding: 6rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-left: 2px solid var(--primary-light);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.15rem;
        display: block;
    }

    .nav-mobile-btn {
        display: block;
        margin-top: 1rem;
    }

    .nav-mobile-btn .btn {
        width: 100%;
    }

    body.no-scroll {
        overflow: hidden;
    }

    /* Kahraman Bölümü */
    .hero {
        height: 70vh;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    /* Hakkımızda Görsel & Metin Grid */
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image img {
        height: 350px;
    }

    /* Hizmet Detayları Grid */
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .service-detail-section:nth-child(even) .service-detail-grid {
        direction: ltr;
    }

    .service-detail-image img {
        height: 300px;
    }

    /* İletişim & Form Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Footer Marka Grid Kolon Desteği */
    .brand-col {
        grid-column: span 1;
    }
}


/* ==========================================================================
   3. KÜÇÜK EKRANLAR (Mobil - Max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Kahraman Bölümü */
    .hero {
        height: auto;
        padding: 6rem 0;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Sayfalar İçin Başlık Alanı */
    .page-banner {
        padding: 4rem 0;
    }

    .page-banner h1 {
        font-size: 2.2rem;
    }

    /* İletişim Form Yapısı */
    .form-container {
        padding: 2rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: span 1;
    }

    /* Menü Kartı Listesi */
    .menu-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Detayları */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* WhatsApp Sabit Buton Boyutu Küçültme */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}


/* ==========================================================================
   4. ÇOK KÜÇÜK MOBİL EKRANLAR (Max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}
