/* =================================================================== */
/* HRBALANCE.AZ - YEKUN VƏ MOBİL UYĞUNLAŞDIRILMIŞ STİL FAYLI         */
/* =================================================================== */

/* === YENİ DÜZƏLİŞ: Horizontal Overflow (Zoom) Probleminin Həlli === */
html {
    box-sizing: border-box;
    overflow-x: hidden; /* Bütün horizontal scroll-u ləğv edir */
}
*, *:before, *:after {
    box-sizing: inherit; /* Bütün elementlərin bu qaydaya tabe olmasını təmin edir */
}
body {
    overflow-x: hidden; /* Ehtiyat üçün body-də də tətbiq edirik */
}
/* === DÜZƏLİŞ SONU === */

/* --- Ümumi Stillər və Reset --- */
body { font-family: Arial, sans-serif; margin: 0; line-height: 1.6; color: #333; font-size: 16px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: #0d6efd; transition: color 0.3s ease; }
a:hover { color: #0b5ed7; }

/* --- Başlıq (Header) --- */
header { background-color: #0d2c4e; padding: 10px 0; position: relative; transition: all 0.3s ease; }
header .container { display: flex; justify-content: space-between; align-items: center; }
header .logo img { max-height: 50px; width: auto; }

/* Masaüstü Menyu Stilləri */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav ul li { margin: 0 15px; }
.main-nav ul li a { text-decoration: none; color: #ffffff; font-weight: bold; font-size: 15px; padding: 10px 15px; border-radius: 5px; transition: background-color 0.3s; display: block; }
.main-nav ul li.active a, .main-nav ul li a:hover { background-color: #1a4a8a; }

/* Masaüstü Əlaqə Düyməsi */
.header-contact .phone-button { color: #fff; border: 1px solid #ffffff; padding: 10px 20px; border-radius: 20px; text-decoration: none; font-weight: bold; white-space: nowrap; }

/* Mobil Menyu İkonu - CSS-də görünməsin */
.mobile-nav-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }


/* --- Hero Bölməsi (Ana Səhifə) --- */
.hero-section { background-size: cover; background-position: center center; text-align: center; position: relative; min-height: 80vh; display: flex; align-items: center; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); }
.hero-section .container { position: relative; z-index: 2; }
.hero-section h1 { font-size: 42px; color: #ffffff; font-weight: 700; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); }
.hero-section p { font-size: 18px; color: #ffffff; font-weight: 700; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); }
.hero-button { display: inline-block; background-color: #2a7aed; color: #fff; padding: 12px 25px; border-radius: 5px; font-weight: bold; margin-top: 20px; }

/* --- Ümumi Bölmə Stilləri --- */
.services-section, .why-us-section, .custom-solutions-section { padding: 80px 0; } 
.why-us-section, .custom-solutions-section, .services-section { background-color: #f9f9f9; }

.services-section h2, .why-us-section h2, .section-header h2 { text-align: center; font-size: 28px; margin-bottom: 50px; color: #0d2c4e; font-weight: bold; }
.section-header p { font-size: 16px; }

/* --- Kart Stilləri --- */
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card-link { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #ffffff; border-radius: 10px; padding: 25px 15px; text-decoration: none; color: #333; min-height: 140px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); transition: transform 0.3s, box-shadow 0.3s; }
.service-card-link:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); }
.service-card-link img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 20px; }
.service-card-link h4 { margin: 0; font-size: 15px; font-weight: bold; color: #0d2c4e; text-align: center; }
.feature-card { background: #ffffff; padding: 30px 25px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); }
.feature-card img { width: 50px; height: 50px; display: block; margin: 0 auto 20px auto; object-fit: contain; }
.feature-card h3 { font-size: 20px; color: #0d2c4e; margin-bottom: 15px; text-align: center; }
.feature-card p { color: #555; font-size: 15px; line-height: 1.7; text-align: left; }

/* --- Altlıq (Footer) --- */
footer { background-color: #0d2c4e; color: #ffffff; padding: 40px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 30px; align-items: start; }
.footer-logo { max-height: 40px; margin-bottom: 15px; }
.footer-column h4 { font-size: 16px; margin: 0 0 15px 0; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 8px; }
.footer-column ul li a, .footer-column p, .contact-info-list li { font-size: 14px; color: #ccc; }
.footer-column ul li a:hover { color: #ffffff; }
.contact-info-list i { margin-right: 15px; margin-top: 5px; font-size: 16px; width: 20px; }
.social-media-icons { display: flex; gap: 15px; }
.social-media-icons a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.1); border-radius: 50%; font-size: 18px; transition: background-color 0.3s; color: #ffffff; }
.social-media-icons a:hover { background-color: #1a4a8a; }
.footer-bottom { margin-top: 25px; padding-top: 25px; border-top: 1px solid #1a4a8a; text-align: center; font-size: 14px; color: #ccc; }
.footer-bottom p { margin: 0; }

/* --- WhatsApp Düyməsi --- */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 100; display: flex; justify-content: center; align-items: center; text-decoration: none; }

/* === DAXİLİ SƏHİFƏLƏR ÜÇÜN CTA (HƏRƏKƏTƏ ÇAĞIRIŞ) === */
.page-cta-container {
    text-align: center;
    padding: 50px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 40px;
}
.cta-button {
    display: inline-block;
    background-color: #2a7aed;
    color: #fff !important;
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px; 
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #1a5db3;
    color: #fff !important;
}

/* --- YALNIZ HAQQIMIZDA SƏHİFƏSİ ÜÇÜN XÜSUSİ QAYDA --- */
.breadcrumbs-transparent::before {
    background-color: transparent !important; /* Qaraltını şəffaf edirik */
}
/* === DÜZƏLİŞ SONU === */


/* =================================================================== */
/* MOBİL UYĞUNLUQ STILLƏRİ (RESPONSIVE)        */
/* =================================================================== */

/* --- 992px və ondan kiçik ekranlar (Tablet və Mobil) --- */
@media (max-width: 992px) {
    
    .container {
        padding: 0 15px; /* Kənar boşluqları bir az azaldırıq */
    }
    
    /* --- HEADER (Başlıq) --- */
    header .container {
        padding: 5px 0; /* Başlıq yığcamlaşdırılır */
    }

    /* Mobil düymə görünür */
    .mobile-nav-toggle { 
        display: block; 
        position: relative; 
        z-index: 1001; /* Menyudan üstə olsun */
        margin-left: 15px;
    }
    
    /* Masaüstü əlaqə düyməsi gizlənir */
    .header-contact { 
        display: none !important; /* MƏCBURİ GİZLƏDİRİK */
    }

    /* NAVİQASİYA (Menyu) */
    .main-nav { 
        position: fixed;
        top: 0;
        right: -100%; /* Menyu ilkin olaraq gizlənir */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #0d2c4e;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
        padding-top: 70px; /* Header-in altından başlasın */
    }

    /* JavaScript tərəfindən əlavə olunan aktiv sinif */
    .main-nav.active { 
        right: 0; 
    }
    
    /* Menyu elementləri alt-alta */
    .main-nav ul { 
        flex-direction: column; 
        width: 100%; 
        padding: 0; 
    }
    
    .main-nav ul li { 
        margin: 0; 
        text-align: left; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    }
    
    .main-nav ul li a {
        padding: 15px 20px;
        font-size: 16px;
    }

    /* Mobil menyu daxilindəki əlaqə düyməsi */
    .main-nav ul li.mobile-only-contact {
        display: block;
        border-bottom: none;
    }
    .main-nav ul li.mobile-only-contact a {
        background-color: #2a7aed !important;
        border-radius: 25px;
        margin: 15px 20px;
        text-align: center;
        padding: 10px;
    }

    /* --- GİRDİLƏRİN YENİDƏN DÜZÜLMƏSİ (CARDS) --- */

    /* Xidmətlər (5 sütun) 2 sütuna düşür */
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    /* Özəlliklər (3 sütun) 1 sütuna düşür */
    .features-grid { 
        grid-template-columns: 1fr; 
    }

    /* Altlıq (4 sütun) 1 sütuna düşür */
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    .footer-column { 
        margin-bottom: 30px; 
    }
    
    .footer-column ul { 
        text-align: center; 
    }
    
    .contact-info-list, .social-media-icons { 
        justify-content: center; 
    }
    
    .contact-info-list li { 
        display: flex; /* İkonun mərkəzlənməsi üçün */
        justify-content: center;
        align-items: center;
    }
}

/* --- 576px və ondan kiçik ekranlar (Kiçik Mobil Cihazlar) --- */
@media (max-width: 576px) {
    /* Başlıqlar kiçilir */
    .hero-section h1 { 
        font-size: 30px; 
    }
    .hero-section p { 
        font-size: 16px; 
    }
    .services-section h2, .why-us-section h2, .section-header h2 { 
        font-size: 24px; 
        margin-bottom: 30px;
    }
    
    /* Bütün bölmələrin paddingi azalır */
    .services-section, .why-us-section, .custom-solutions-section { 
        padding: 60px 0; 
    }

    /* Xidmətlər (2 sütun) 1 sütuna düşür */
    .services-grid { 
        grid-template-columns: 1fr; 
    }

    /* WhatsApp düyməsi kiçilir */
    .whatsapp-float { 
        width: 50px; 
        height: 50px; 
        font-size: 24px; 
        bottom: 20px; 
        right: 20px; 
    }
}


/* ================================================================= */
/* === YEKUN DÜZƏLİŞLƏR (YALNIZ MASAÜSTÜ ÜÇÜN) === */
/* ================================================================= */

/* Bu qaydalar yalnız 993px-dən böyük ekranlarda işləyəcək */
@media (min-width: 993px) {

    /* 1. LOQONU SOLA ÇƏKİR VƏ MƏSAFƏNİ AZALDIR */
    header .logo {
        margin-left: -15px !important; /* Loqonu lap sola çəkir */
        margin-right: 20px !important; /* Menyu ilə arasındakı məsafəni 20px-ə endirir */
    }

    /* 2. MENYU ELEMENTLƏRİ ARASINDAKİ ÜMUMİ BOŞLUĞU AZALDIR */
    .main-nav ul li {
        margin: 0 5px; /* 15px-dən 5px-ə endirdik ki, bütün elementlər sığışsın */
    }
    .main-nav ul li a {
        padding: 10px 8px; /* Daxili boşluqları azaldırıq */
        font-size: 17px; /* Şrifti 15px-dən 14px-ə endiririk */
    }


    /* 3. DİL BLOKUNU LAP SAĞA ÇƏKİR VƏ BİR SƏTRƏ YIĞIR */

    /* Əvvəlki "Zəng Et" və Nömrə məsafəsini tənzimləyirik */
    .header-contact {
        display: flex; 
        align-items: center; 
        /* Bu sinifdəki elementləri yan-yana yığırıq */
    }

    /* Nömrə Düyməsi ilə Dil Bloku arasındakı boşluğu tənzimləyir və Nömrəni sola itələyir */
    .header-contact .phone-button {
        margin-left: 20px; /* Menyu ilə Nömrə düyməsi arasına boşluq */
    }

    /* Dil Bloku üçün lap sağa çəkilmə və dizayn */
    .lang-switcher {
        margin-left: 10px; /* Nömrədən 10px aralayır */
        white-space: nowrap; 
    }

    .lang-switcher a {
        font-size: 13px !important; /* Şrifti 13px-dən 12px-ə endiririk (Daha kiçik olsun) */
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        padding: 0 3px;
    }

} /* @media (min-width: 993px) üçün bağlanış */


@media (max-width: 768px) {
    /* ... əvvəlki bütün kodlar ... */

    /* KONTAİNERİN MOBİLDƏ TAM 100% OLMASINI TƏMİN EDİRİK */
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 10px; /* Kontainerin kənar boşluğunu azaldırıq */
        padding-right: 10px;
    }
    
    /* Bu, mətnlərin kənardan çıxmasının qarşısını alır */
    .hero-section h1, 
    .hero-section p {
        word-break: break-word; 
    }
    
    /* ... qalan bütün mobil düzəliş kodları ... */
}