/* ============================================================
   MECH YAPI - Responsive Stil Dosyası
   Breakpoints: 1200px, 992px, 768px, 576px, 480px
   ============================================================ */

/* ============================================================
   LARGE DESKTOP (max-width: 1400px)
   ============================================================ */
@media (max-width: 1400px) {
    :root {
        --container-max: 1200px;
    }
}

/* ============================================================
   DESKTOP / LARGE TABLET (max-width: 1200px)
   ============================================================ */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }

    .footer-grid .footer-col:nth-child(4) {
        grid-column: span 3;
    }

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

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

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ============================================================
   TABLET (max-width: 992px)
   ============================================================ */
@media (max-width: 992px) {

    /* Tipografi */
    :root {
        --section-padding: 70px 0;
    }

    /* Topbar */
    .topbar-left {
        gap: 14px;
    }

    .topbar-item:not(:first-child) {
        display: none;
    }

    /* Navbar */
    .hamburger {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 24px 40px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        z-index: 1000;
        transition: right var(--transition-normal);
        overflow-y: auto;
        gap: 4px;
    }

    .navbar-menu.open {
        right: 0;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
        background: var(--color-off-white);
        border-radius: var(--radius-sm);
        margin-top: 4px;
    }

    .nav-item.open .nav-dropdown {
        max-height: 300px;
    }

    .nav-item:hover .nav-dropdown {
        max-height: 300px;
    }

    /* Hero */
    .hero-section {
        height: 85vh;
        min-height: 560px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-nav-btn {
        display: none;
    }

    /* Products */
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 360px;
    }

    /* About Preview */
    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-badge {
        bottom: -20px;
        right: 20px;
    }

    .about-content {
        padding-right: 0;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card-lg {
        flex-direction: column;
    }

    .category-card-image {
        width: 100%;
        height: 200px;
    }

    /* Product Detail */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Service Detail */
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail-grid.reverse {
        direction: ltr;
    }

    /* Mission */
    .mission-grid {
        grid-template-columns: 1fr;
    }

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

    /* Newsletter */
    .newsletter-inner {
        flex-direction: column;
        gap: 36px;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-grid .footer-col:first-child {
        grid-column: span 2;
    }

    .footer-grid .footer-col:nth-child(4) {
        grid-column: span 2;
    }

    /* Projects masonry */
    .project-gallery-card.tall img {
        height: 280px;
    }

    .project-gallery-card.tall {
        grid-row: auto;
    }
}

/* ============================================================
   MOBILE LARGE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

    :root {
        --section-padding: 60px 0;
    }

    /* Slider Card Heights for Mobile */
    .project-card-image {
        height: 200px !important;
    }
    .product-card-image,
    .product-item-image {
        height: 180px !important;
    }
    .service-card {
        min-height: 280px !important;
    }

    .container {
        padding: 0 20px;
    }

    /* Topbar */
    .topbar {
        display: none;
    }

    /* Navbar */
    .navbar-inner {
        padding: 0 20px;
        height: 70px;
    }

    .logo-text .brand-tagline {
        display: none;
    }

    .navbar-right .btn {
        display: none;
    }

    /* Hero */
    .hero-section {
        height: 75vh;
        min-height: 400px;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero-buttons .btn {
        padding: 12px 22px;
        font-size: 0.85rem;
    }

    .hero-scroll {
        display: none;
    }

    /* Section Headers */
    .section-title {
        font-size: 1.8rem;
    }

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

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

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Slider Wrapper Fixes for Mobile */
    .projects-slider-wrapper,
    .products-slider-wrapper,
    .services-slider-wrapper {
        padding: 0 !important;
    }
    
    .no-swiper-grid .swiper-slide {
        width: 100% !important;
    }
    
    .projects-slider-wrapper .swiper-button-prev,
    .projects-slider-wrapper .swiper-button-next,
    .products-slider-wrapper .swiper-button-prev,
    .products-slider-wrapper .swiper-button-next,
    .services-slider-wrapper .swiper-button-prev,
    .services-slider-wrapper .swiper-button-next {
        display: none !important;
    }
    
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* About Preview */
    .about-main-image {
        height: 380px;
    }

    .about-badge {
        width: 100px;
        height: 100px;
        bottom: -15px;
        right: 10px;
    }

    .about-badge .badge-number {
        font-size: 1.8rem;
    }

    .about-badge .badge-text {
        font-size: 0.6rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid .footer-col:first-child,
    .footer-grid .footer-col:nth-child(4) {
        grid-column: auto;
    }

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

    /* Contact Form Wrapper */
    .contact-form-wrapper {
        padding: 24px;
    }

    /* Product Detail */
    .product-gallery-thumbs {
        flex-wrap: wrap;
    }

    .tabs-nav {
        overflow-x: auto;
        gap: 0;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 12px 18px;
    }

    /* Projects */
    .projects-masonry {
        grid-template-columns: 1fr;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    /* Product Items */
    .product-items-grid {
        grid-template-columns: 1fr;
    }

    /* Page Hero */
    .page-hero {
        padding: 60px 0;
    }

    .page-hero-title {
        font-size: 1.8rem;
    }

    /* Filter Bar */
    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    /* Scroll Top */
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ============================================================
   MOBILE SMALL (max-width: 576px)
   ============================================================ */
@media (max-width: 576px) {
    :root {
        --section-padding: 50px 0;
    }

    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-eyebrow {
        font-size: 0.72rem;
    }

    .hero-pagination {
        bottom: 24px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.85rem;
    }

    .about-preview-grid {
        gap: 50px;
    }

    .about-main-image {
        height: 300px;
    }

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

    .service-card {
        min-height: 300px;
    }

    .service-card-content {
        padding: 24px;
    }

    .mission-card {
        padding: 28px;
    }

    .footer {
        padding-top: 50px;
    }

    .category-card-body {
        padding: 20px;
    }

    .product-item-body {
        padding: 18px;
    }

    .product-gallery-thumb {
        width: 70px;
        height: 56px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-info-card {
        padding: 18px;
    }

    .newsletter-title {
        font-size: 1.7rem;
    }

    .map-wrapper {
        height: 300px;
    }

    /* Process steps */
    .process-step {
        gap: 14px;
    }
}

/* ============================================================
   EXTRA SMALL (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

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

    .product-detail-grid {
        gap: 24px;
    }

    .contact-form-wrapper {
        padding: 18px;
    }

    .page-hero {
        padding: 50px 0;
    }
}

/* ============================================================
   PRINT STİLLERİ
   ============================================================ */
@media print {
    .topbar,
    .navbar,
    .hero-nav-btn,
    .hero-scroll,
    .newsletter-section,
    .scroll-top-btn,
    .footer {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

