/**
 * Gebze Anaokulu - Responsive Stiller
 * Mobile First Approach
 */

/* ===== LARGE MOBILE (576px+) ===== */
@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-text {
        column-count: 2;
    }

    .blog-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 3rem;
    }
}

/* ===== SMALL DESKTOP (992px+) ===== */
@media (min-width: 992px) {
    /* Premium Header - Desktop */
    .header-nav {
        display: flex;
    }

    .header-phone {
        display: flex;
    }

    .header-cta {
        display: inline-flex;
    }

    .mobile-toggle {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero-content {
        max-width: 1000px;
    }
}

/* ===== LARGE DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
    :root {
        --header-height: 90px;
    }
}

/* ===== TABLET AND BELOW (< 992px) ===== */
@media (max-width: 991.98px) {
    /* Premium Header - Mobile */
    .header-nav {
        display: none;
    }

    .header-phone {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .header-wrapper {
        padding: 0 1rem;
        height: 70px;
    }

    .header-logo img {
        height: 55px;
    }

    .age-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
    }

    .blog-layout {
        display: block;
    }

    .blog-sidebar {
        margin-top: 3rem;
        position: static;
    }
}

/* ===== MOBILE (< 768px) ===== */
@media (max-width: 767.98px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }

    .trust-badge {
        width: 100%;
        justify-content: center;
    }

    .hero-decoration {
        display: none;
    }

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

    .feature-card {
        padding: 2rem;
    }

    .age-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .age-tab {
        flex-shrink: 0;
        padding: 0.75rem 1.5rem;
    }

    .age-card {
        padding: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1.125rem;
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .counter-number {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .floating-buttons {
        display: none;
    }

    .mobile-floating-bar {
        display: block;
    }

    body {
        padding-bottom: 60px;
    }

    .seo-text {
        column-count: 1;
    }

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

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

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

    .map-section {
        height: 300px;
        border-radius: var(--radius-lg);
    }

    .form-row {
        flex-direction: column;
    }
}

/* ===== SMALL MOBILE (< 400px) ===== */
@media (max-width: 399.98px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
    }

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

    .age-image {
        aspect-ratio: 16/9;
    }
}

/* ===== HOVER STATES - TOUCH DEVICES ===== */
@media (hover: none) {
    .feature-card:hover,
    .team-card:hover,
    .card:hover,
    .contact-card:hover,
    .faq-item:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }

    .gallery-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.3);
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero::before,
    .cloud,
    .balloon,
    .floating-btn.whatsapp {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .footer,
    .floating-buttons,
    .mobile-floating-bar,
    .hero-decoration,
    .testimonials-nav,
    .gallery-overlay,
    .seo-text-toggle,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: none;
    }

    .section {
        padding: 1.5rem 0;
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
        color: black;
    }

    .contact-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0 3rem;
    }

    .hero-trust {
        display: none;
    }
}

/* ===== HIGH DPI SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===== DARK MODE SUPPORT (Optional) ===== */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}
