
/* IMZA-20260125-TEST */

/*
 * MATBAA KURUMSAL - Responsive Stiller
 */

/* ============================================
   GLOBAL OVERFLOW FIX
   ============================================ */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}



/* ============================================
   TABLET (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    /* Typography */
    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }

    /* Grid */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Header */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + var(--spacing-8)) var(--spacing-6) var(--spacing-8);
        box-shadow: var(--shadow-2xl);
        transition: all var(--transition-normal);
        gap: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: var(--z-fixed);
    }

    .header-nav.active {
        right: 0;
        visibility: visible;
        pointer-events: auto;
    }

    .header-nav .nav-link {
        color: var(--gray-800);
        padding: var(--spacing-4) 0;
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }

    .header-cta {
        margin-left: 0;
        margin-top: var(--spacing-4);
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Menu Overlay */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: calc(var(--z-fixed) - 1);
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .section-lg {
        padding: var(--spacing-16) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-8);
    }

    /* Stats */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: var(--text-3xl);
    }

    /* Hero Slider Mobile */
    .hero-slider {
        height: 80vh !important;
        min-height: 450px !important;
    }

    .hero-title {
        font-size: var(--text-3xl) !important;
    }

    .hero-subtitle {
        font-size: var(--text-base) !important;
    }

    /* Hero Content Mobile Centering */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 0 15px;
    }

    .hero-title {
        text-align: center !important;
        width: 100%;
    }

    .hero-subtitle {
        text-align: center !important;
        width: 100%;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-8);
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
        text-align: center;
    }

    /* Grid Adjustments */
    .grid {
        gap: var(--spacing-4);
    }

    .section {
        padding: var(--spacing-12) 0;
    }
}

/* ============================================
   MOBILE (max-width: 576px)
   ============================================ */
@media (max-width: 576px) {
    :root {
        --container-padding: 1rem;
        --header-height: 60px;
    }

    /* Typography */
    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }

    h4 {
        font-size: var(--text-lg);
    }

    .lead {
        font-size: var(--text-base);
    }

    /* Grid */
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row {
        margin-left: calc(var(--spacing-2) * -1);
        margin-right: calc(var(--spacing-2) * -1);
    }

    [class*="col-"] {
        padding-left: var(--spacing-2);
        padding-right: var(--spacing-2);
    }

    /* Buttons */
    .btn {
        padding: var(--spacing-3) var(--spacing-5);
        font-size: var(--text-sm);
    }

    .btn-lg {
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--text-base);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Header */
    .header-logo img {
        height: 35px;
    }

    .header-nav {
        width: 100%;
        right: -100%;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--spacing-12)) 0 var(--spacing-12);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-scroll {
        display: none;
    }

    /* Section */
    .section {
        padding: var(--spacing-10) 0;
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .section-subtitle {
        font-size: var(--text-base);
    }

    /* Cards */
    .card-body {
        padding: var(--spacing-4);
    }

    /* Cards */
    .card {
        padding: var(--spacing-5);
    }

    .service-card {
        padding: var(--spacing-8) var(--spacing-5);
    }

    .service-card .icon {
        width: 70px;
        height: 70px;
        font-size: var(--text-2xl);
        margin-bottom: var(--spacing-4);
    }

    .project-card {
        aspect-ratio: 1/1;
    }

    .project-card .project-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(30, 58, 95, 0.9) 0%, rgba(30, 58, 95, 0.2) 100%);
        justify-content: flex-end;
        padding-bottom: var(--spacing-4);
    }

    .project-card .project-title,
    .project-card .project-category {
        transform: translateY(0);
    }

    .project-card::after {
        display: none;
    }

    /* Stats */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-4);
    }

    .stat-item {
        padding: var(--spacing-4);
    }

    .stat-number {
        font-size: var(--text-3xl);
    }

    .stat-label {
        font-size: var(--text-sm);
    }

    /* Footer */
    .footer {
        padding-top: var(--spacing-10);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-logo {
        height: 40px;
        margin: 0 auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        text-align: center;
    }

    /* Page Header */
    .page-header {
        padding: calc(var(--header-height) + var(--spacing-10)) 0 var(--spacing-10);
    }

    .page-header .page-title {
        font-size: var(--text-2xl);
    }

    /* CTA */
    .cta-section {
        padding: var(--spacing-10) 0;
    }

    .cta-section .cta-title {
        font-size: var(--text-2xl);
    }

    /* WhatsApp Button */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Forms */
    .form-control {
        padding: var(--spacing-3);
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: var(--text-xs);
        flex-wrap: wrap;
    }

    /* Utility overrides */
    .d-sm-none {
        display: none !important;
    }

    .d-sm-block {
        display: block !important;
    }

    .text-sm-center {
        text-align: center !important;
    }
}

/* ============================================
   LARGE DESKTOP (min-width: 1400px)
   ============================================ */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }

    .hero-title {
        font-size: 4rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .header,
    .footer,
    .whatsapp-float,
    .menu-toggle,
    .preloader {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 1.5rem 0;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ============================================
   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;
    }
}