/* ============================================
   Özok Savunma - Responsive Styles
   ============================================ */

@media (max-width: 1200px) {
    .hero-title { font-size: clamp(1.5rem, 2.8vw, 2.5rem); }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .solutions-inner {
        padding: 0 20px;
    }

    .news-inner {
        padding: 0 20px;
    }

    .partners-inner,
    .newsletter-inner {
        padding: 0 20px;
    }

    .solutions-section {
        padding: 48px 0 56px;
    }

    .hero > .container.hero-content {
        padding: 16px 20px 20px 32px;
    }

    .hero-left-body {
        padding: 16px 0 12px;
    }

    .hero-pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 520px;
        gap: 18px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-item {
        border-right: 1px solid rgba(167, 176, 166, 0.35);
        border-bottom: 1px solid rgba(167, 176, 166, 0.35);
        padding: 12px 18px;
    }

    .service-item:nth-child(3n) {
        border-right: none;
    }

    .service-item:nth-last-child(-n+3) {
        border-bottom: none;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 16px;
    }

    .stat-item {
        padding: 8px 12px;
        border-right: none;
    }

    .stat-item:first-child,
    .stat-item:last-child {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    :root {
        --hero-height: 580px;
    }

    .main-header {
        z-index: 900;
    }

    .main-header .container {
        position: relative;
        flex-wrap: nowrap;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex: none;
        justify-content: center;
        padding: 8px 0 12px;
        background: var(--color-white);
        border-top: 1px solid rgba(167, 176, 166, 0.25);
        box-shadow: 0 12px 28px rgba(55, 65, 64, 0.12);
        z-index: 850;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
        overflow-y: auto;
        max-height: min(72vh, 520px);
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    body.mobile-nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(55, 65, 64, 0.35);
        z-index: 840;
        animation: mobileNavBackdropIn 0.28s ease forwards;
    }

    @keyframes mobileNavBackdropIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 100%;
        padding: 15px 20px;
        font-size: 0.875rem;
        text-align: center;
    }

    .nav-list a::after {
        left: 50%;
        bottom: 8px;
        max-width: 96px;
        transform: translateX(-50%);
    }

    .nav-list a:hover::after,
    .nav-list a.active::after {
        width: 56px;
    }

    .mobile-toggle { display: flex; }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) { opacity: 0; }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-left {
        max-width: 100%;
        width: 100%;
    }

    .hero-title { font-size: clamp(1.35rem, 3.2vw, 2rem); }

    .hero > .container.hero-content {
        padding: 12px 16px 16px;
    }

    .hero-left-body {
        padding: 12px 0 8px;
        justify-content: center;
    }

    .hero-pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 0;
    }

    .hero-brand {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-brand-sep {
        display: none;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --hero-height: 400px;
    }

    .top-bar-left { display: none; }

    .top-bar-right { gap: 12px; }

    .top-contact span,
    .top-contact { font-size: 0; }
    .top-contact svg { width: 16px; height: 16px; }

    .btn-quote { display: none; }

    .hero-title { font-size: clamp(1.15rem, 4.5vw, 1.65rem); }

    .hero-description {
        font-size: 0.8125rem;
        margin-bottom: 0;
    }

    .hero-desc-rule,
    .hero-pillars,
    .hero-brand {
        display: none !important;
    }

    .hero-pillars {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hero-pillar {
        border-left: none;
        padding: 0 0 14px 0;
        border-bottom: 1px solid rgba(167, 176, 166, 0.2);
    }

    .hero-pillar:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-brand-name {
        font-size: 0.9375rem;
    }

    .hero-features { gap: 16px; }

    .hero-feature span { font-size: 0.6875rem; }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item {
        border-right: 1px solid rgba(167, 176, 166, 0.35);
        border-bottom: 1px solid rgba(167, 176, 166, 0.35);
        padding: 14px 16px;
    }

    .service-item:nth-child(2n) {
        border-right: none;
    }

    .service-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .solutions-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .solutions-inner {
        padding: 0 16px;
    }

    .news-inner {
        padding: 0 16px;
    }

    .partners-inner,
    .newsletter-inner {
        padding: 0 16px;
    }

    .newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .newsletter-text p {
        max-width: none;
    }

    .newsletter-form-wrap {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }

    .newsletter-form {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }

    .stat-item {
        padding: 8px 8px;
        border-right: none;
        border-bottom: none;
    }

    .stat-value { font-size: 1.5rem; }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-title { font-size: 1.375rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .solutions-section,
    .news-section,
    .partners-section {
        padding: 56px 0;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn { width: 100%; }

    .hero-features {
        flex-direction: column;
        gap: 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        border-right: none;
        border-bottom: 1px solid rgba(167, 176, 166, 0.35);
        padding: 14px 20px;
    }

    .service-item:last-child {
        border-bottom: none;
    }

    .services-bar-card {
        padding: 16px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 8px 0;
        border-right: none;
    }

    .newsletter-form {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }

    .newsletter-submit {
        width: 100%;
        padding: 12px 16px;
    }

    .system-status-card { padding: 20px; }
}
