/* ========================================
   RESPONSIVE CSS - Mobile Uyumluluk
   ======================================== */

/* Tablet və kiçik ekranlar (992px və aşağı) */
@media (max-width: 992px) {
    /* Header */
    .header {
        padding: 10px 0 !important;
    }
    
    .header .center {
        padding: 0 15px;
    }
    
    .header .head_inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        position: relative;
        min-height: 70px;
    }
    
    .header .logo {
        max-width: 140px;
        max-height: 70px;
        flex-shrink: 0;
        order: 1;
        display: flex;
        align-items: center;
    }
    
    .header .logo img {
        max-width: 100%;
        max-height: 70px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    /* Desktop menyu gizlət */
    #topmenu {
        display: none !important;
    }
    
    /* Mobile menyu düyməsi göstər - ən sonda */
    .mobile_nav {
        display: flex !important;
        align-items: center;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        z-index: 9999;
        order: 3;
        flex-shrink: 0;
        margin-left: 6px;
        margin-top: 4px; /* yuxarıdan az boşluq */
    }
    
    .mobile_nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 70px;
        background: transparent !important;
        color: #CDB969 !important;
        text-align: center;
        border-radius: 0;
        font-size: 28px;
        box-shadow: none;
        transition: all 0.3s ease;
        line-height: 1;
        padding: 0;
        margin: 0;
    }

    #simple-menu {
        position: fixed;
        right: 15px;
        top: 13px;
    }
    
    .mobile_nav a:hover {
        color: #FFA500 !important;
        transform: none;
    }
    
    .mobile_nav a i {
        color: #CDB969 !important;
    }
    
    /* Header call - ortada, biraz sola */
    .header-extras {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex: 1;
        order: 2;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .header-call-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 8px 15px !important;
        background: linear-gradient(135deg, #CDB969 0%, #FFA500 100%) !important;
        border-radius: 25px;
        text-decoration: none;
        box-shadow: 0 3px 10px rgba(205, 185, 105, 0.3);
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .header-call-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(205, 185, 105, 0.5);
    }
    
    .header-call-icon {
        width: 28px !important;
        height: 28px !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .header-call-icon i {
        color: #000000 !important;
        font-size: 13px !important;
    }
    
    .header-call-text {
        text-align: left;
        line-height: 1.2;
    }
    
    .header-call-text span {
        font-size: 9px !important;
        color: #000000 !important;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 1px;
    }
    
    .header-call-text strong {
        font-size: 12px !important;
        color: #000000 !important;
        font-weight: 700;
        display: block;
    }
    
    /* Slider - mobil üçün daha alçaq hündürlük */
    .slider-section {
        height: auto;
        min-height: 320px;
    }
    
    .slide-caption h2 {
        font-size: 1.8rem !important;
    }
    
    .slide-caption p {
        font-size: 0.95rem !important;
    }
    
    .slide-btn {
        padding: 10px 25px !important;
        font-size: 0.9rem !important;
    }
    
    .hero-right-strip {
        display: none;
    }
    
    /* Grid sistemləri */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Services grid */
    .service-card,
    .project-card {
        margin-bottom: 20px;
    }
    
    /* Footer */
    .footer-infobox .row {
        display: block !important;
        gap: 0;
    }
    
    .footer-infobox .col-md-3 {
        width: 100% !important;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-about,
    .footer-menu-block,
    .footer-services,
    .footer-contact {
        text-align: center !important;
    }
    
    .footer-menu-block ul.footmenu,
    .footer-services ul.footmenu {
        text-align: center !important;
        padding-left: 0 !important;
    }
    
    .footer-menu-block ul.footmenu li,
    .footer-services ul.footmenu li {
        text-align: center !important;
    }
    
    .footer-partners-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-partner-logo {
        width: 120px;
        margin: 10px;
    }
    
    .footer-logo img {
        max-width: 180px;
        margin: 0 auto;
    }
}

/* Mobil telefonlar (768px və aşağı) */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 1.8rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
    }
    
    /* Container */
    .center,
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobildə header altındakı qızılı xətti gizlət */
    .header_wrap::before {
        content: none !important;
    }

    /* Header */
    .header {
        padding: 10px 0;
    }
    
    .header .logo {
        max-width: 120px;
        max-height: 65px;
    }
    
    .header .logo img {
        max-height: 65px;
        object-fit: contain;
    }
    
    /* Page title */
    .page-title {
        padding: 40px 15px !important;
    }
    
    .page-title h1 {
        font-size: 1.8rem !important;
    }
    
    /* Page head - header şəkilləri mobil ekrana en olaraq tam sığsın */
    .page_head {
        padding: 80px 15px 100px !important;
    }
    
    .page_head img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
    
    .page_head .skt-page-title h1 {
        font-size: 28px !important;
    }
    
    /* Slider */
    .slider-section {
        min-height: 400px;
    }
    
    .slide-caption {
        padding: 20px !important;
    }
    
    .slide-caption h2 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .slide-caption p {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }
    
    /* About section */
    .home-about-left,
    .home-about-right {
        margin-bottom: 30px;
    }
    
    .home-about-image img {
        max-height: 300px;
        object-fit: cover;
    }
    
    /* Services */
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 2.5rem !important;
    }
    
    .service-card h3 {
        font-size: 1.2rem !important;
    }
    
    /* Projects */
    .project-card {
        margin-bottom: 20px;
    }
    
    /* Statistics */
    .stat-box {
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    /* Contact form */
    .contact-form-section,
    .contact-info-section {
        padding: 20px 15px !important;
        margin: 20px 0 !important;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important; /* iOS zoom fix */
        padding: 12px !important;
    }
    
    .contact-form button,
    .contact-form .wpcf7-submit {
        width: 100%;
        padding: 14px !important;
        font-size: 16px !important;
    }
    
    .contact-row {
        flex-direction: column !important;
    }
    
    .contact-row .col-md-8,
    .contact-row .col-md-4 {
        width: 100% !important;
    }
    
    /* Footer */
    .footer-infobox {
        padding: 30px 15px !important;
    }
    
    .footer-about,
    .footer-menu-block,
    .footer-services,
    .footer-contact {
        margin-bottom: 30px;
        text-align: center !important;
    }
    
    .footer-about p {
        font-size: 14px !important;
        line-height: 1.6;
    }
    
    .footmenu {
        text-align: center !important;
        list-style: none !important;
        padding-left: 0 !important;
    }
    
    .footmenu li {
        display: block !important;
        text-align: center !important;
        margin-bottom: 8px;
    }
    
    .footmenu li::before {
        display: none !important;
    }
    
    .footer-logo img {
        max-width: 150px;
        margin: 0 auto 15px;
    }
    
    .footer-contact p {
        font-size: 14px !important;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 15px;
    }
    
    .social-icons a {
        margin: 0 8px;
    }
    
    /* Buttons */
    .btn,
    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 0.85rem;
    }
}

/* Kiçik mobil telefonlar (576px və aşağı) */
@media (max-width: 576px) {
    /* Typography */
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    /* Container */
    .center,
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Header */
    .header .logo {
        max-width: 100px;
        max-height: 60px;
    }
    
    .header .logo img {
        max-height: 60px;
        object-fit: contain;
    }
    
    .header-call-btn {
        padding: 6px 12px !important;
        gap: 5px;
    }
    
    .header-call-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .header-call-icon i {
        font-size: 11px !important;
    }
    
    .header-call-text span {
        font-size: 8px !important;
    }
    
    .header-call-text strong {
        font-size: 11px !important;
    }
    
    /* Mobile menu button kiçik ekranda */
    .mobile_nav a {
        width: 35px !important;
        height: 35px !important;
        font-size: 24px !important;
        top: 15px;
        right: 15px;
    }
    
    /* Slider */
    .slider-section {
        min-height: 300px;
    }
    
    .slide-caption {
        padding: 15px !important;
    }
    
    .slide-caption h2 {
        font-size: 1.2rem !important;
    }
    
    .slide-caption p {
        font-size: 0.75rem !important;
        display: none; /* Çox kiçik ekranlarda açıqlamanı gizlət */
    }
    
    .slide-btn {
        padding: 8px 20px !important;
        font-size: 0.85rem !important;
    }
    
    /* Grid */
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Cards */
    .service-card,
    .project-card {
        padding: 15px;
    }
    
    /* Footer */
    .footer-partners-section {
        padding-top: 20px;
    }
    
    .footer-partners-title {
        font-size: 1rem !important;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    
    .footer-partners-logos {
        padding: 20px 15px !important;
    }
    
    .footer-partner-logo {
        width: 80px !important;
        height: 80px !important;
        margin: 8px;
    }
    
    .footer-infobox {
        padding: 20px 10px !important;
    }
    
    .footer-infobox h4 {
        font-size: 1rem !important;
        margin-bottom: 12px;
    }
    
    .footer-about,
    .footer-menu-block,
    .footer-services,
    .footer-contact {
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .footmenu li {
        font-size: 0.85rem !important;
        margin-bottom: 6px;
    }
    
    .footmenu li a {
        font-size: 0.85rem !important;
        padding: 6px 0;
    }
    
    .copyright {
        padding: 15px 10px !important;
        font-size: 0.75rem;
        text-align: center;
    }
    
    .copyright p {
        margin: 0;
        line-height: 1.5;
    }
    
    /* Footer bottom section */
    .footer-bottom {
        padding: 12px 10px !important;
    }
    
    .footer-bottom p {
        font-size: 0.75rem !important;
    }
    
    .footer-contact p {
        font-size: 0.85rem !important;
        margin-bottom: 8px;
    }
    
    .footer-contact i {
        font-size: 16px !important;
    }
    
    /* Contact info items in footer */
    .contact-item {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .contact-icon {
        margin-right: 0 !important;
        margin-bottom: 8px;
    }
    
    .contact-text {
        text-align: center;
    }
    
    .contact-text h4 {
        font-size: 0.9rem !important;
    }
    
    .contact-text p {
        font-size: 0.85rem !important;
    }
    
    /* Page title */
    .page-title {
        padding: 30px 10px !important;
    }
    
    .page-title h1 {
        font-size: 1.5rem !important;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        padding: 8px 15px;
    }
    
    /* Page head - kiçik ekranlarda daha kompakt */
    .page_head {
        padding: 20px 10px 20px !important;
    }
    
    .page_head .skt-page-title h1 {
        font-size: 22px !important;
    }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .slider-section {
        min-height: 250px;
    }
    
    .slide-caption {
        padding: 10px !important;
    }
    
    .slide-caption h2 {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }
    
    .slide-caption p {
        display: none;
    }
}

/* Mobile menyu üçün əlavə stillər */
#sidr {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #1a1a1a;
    box-shadow: 2px 0 20px rgba(0,0,0,0.5);
    overflow-y: auto;
    z-index: 100002;
    transition: left 0.3s ease;
}

#sidr.active {
    left: 0;
}

#sidr .pad_menutitle {
    padding: 5px 0px;
    background: linear-gradient(135deg, #282828 0%, #000000 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #222222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#sidr .sidr-logo img {
    max-height: 96px;
    width: auto;
    display: block;
}

#sidr .sidr-close {
    color: #CDB969 !important;
    font-size: 28px;
    transition: transform 0.3s ease;
}

#sidr .sidr-close:hover {
    transform: scale(1.1);
}

#sidr .pad_menutitle a:hover {
    transform: scale(1.1);
}

#sidr ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidr ul li {
    border-bottom: 1px solid #2a2a2a;
}

#sidr ul li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#sidr ul li a:hover,
#sidr ul li.sidr-class-current-menu-item a {
    background: linear-gradient(90deg, #CDB969 0%, transparent 100%);
    color: #000000 !important;
    font-weight: 600;
    padding-left: 30px;
}

#sidr ul.sub-menu {
    background: #0f0f0f;
}

#sidr ul.sub-menu li a {
    padding-left: 45px;
    font-size: 14px;
    color: #cccccc;
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

body.sidr-open {
    overflow: hidden;
}

/* Footer scroll to top button */
.scroll-to-top {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #CDB969 0%, #FFA500 100%) !important;
    color: #000 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(205, 185, 105, 0.5);
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}

/* Utility classes */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 992px) {
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* Touch-friendly spacing */
@media (max-width: 768px) {
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    input, textarea, select {
        min-height: 44px;
        font-size: 16px; /* iOS zoom fix */
    }
    
    /* Disable hover animations on mobile for better performance */
    .footer-section:hover,
    .services-box-content:hover,
    .project-box:hover {
        transform: none !important;
    }
    
    .footmenu li a:hover::before {
        display: none !important;
    }
}
