/* ==========================================================================
   General
   ========================================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: "Cairo", sans-serif;
    direction: rtl;
    background:#f8f9fa;
    color:#333;
    line-height:1.8;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

.top-bar{
    background:#0d3b66;
    color:#fff;
    text-align:center;
    padding:10px;
    font-size:14px;
}

/* ==========================================================================
   Header
   ========================================================================== */

header{
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:999;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 0;
}

.logo h2{
    color:#0d3b66;
    font-weight:700;
}

.nav-links{
    display:flex;
    gap:25px;
}

.nav-links a{
    color:#333;
    font-weight:600;
    transition:.3s;
}

.nav-links a:hover{
    color:#0d3b66;
}

.nav-links a.active{
    color:#f39c12;
    font-weight:700;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
    display:inline-block;
    padding:12px 24px;
    border-radius:8px;
    transition:.3s;
    font-weight:600;
    cursor:pointer;
}

.btn-primary{
    background:#0d3b66;
    color:#fff;
}

.btn-primary:hover{
    background:#082844;
}

.btn-login{
    background:#f39c12;
    color:#fff;
}

.btn-login:hover{
    background:#d68910;
}

.btn-success{
    background:#25d366;
    color:#fff;
}

.btn-secondary{
    background:#6c757d;
    color:#fff;
}

.btn-submit{
    width:100%;
    border:none;
    background:#0d3b66;
    color:#fff;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-section{
    background:linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.55)
    ),
    url('../images/hero.jpg');

    background-size:cover;
    background-position:center;
    min-height:80vh;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;
}

.hero-content{
    color:#fff;
}

.hero-content h1{
    font-size:50px;
    margin-bottom:20px;
}

.hero-content p{
    font-size:20px;
    max-width:700px;
    margin:auto auto 30px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

section{
    padding:80px 0;
}

.section-title{
    text-align:center;
    margin-bottom:40px;
    font-size:34px;
    color:#0d3b66;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.stat-card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.stat-card h3{
    color:#0d3b66;
    font-size:35px;
    margin-bottom:10px;
}

/* ==========================================================================
   Advantages
   ========================================================================== */

.advantages-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.adv-card{
    background:#fff;
    text-align:center;
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.adv-card i{
    font-size:40px;
    color:#f39c12;
    margin-bottom:15px;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card i{
    font-size:45px;
    color:#0d3b66;
    margin-bottom:15px;
}

/* ==========================================================================
   Partners (المصانع المعتمدة)
   ========================================================================== */

.partners-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.partner-card{
    background:#fff;
    text-align:center;
    padding:25px;
    border-radius:12px;
    border-right:5px solid #f39c12;
    font-weight:700;
}

.partner-brand-img {
    max-height: 55px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-brand-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ==========================================================================
   Coverage (نطاق التغطية التفاعلي)
   ========================================================================== */

.coverage-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap:20px;
    margin-top: 25px;
}

.coverage-card{
    background:#fff;
    padding:15px 20px;
    border-radius:12px;
    border: 1px solid #eef2f5;
    box-shadow:0 4px 6px rgba(0,0,0,.02);
    text-align: right;
    transition: all 0.3s ease;
    user-select: none;
    cursor: pointer;
}

.coverage-card:hover {
    border-color: #0d3b66;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.coverage-card strong i {
    transition: transform 0.3s ease;
    color: #0d3b66;
}

/* حركة السهم عند فتح صندوق المحافظة */
.coverage-card.active strong i {
    transform: rotate(180deg);
}

.coverage-details {
    display: none;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.coverage-card.active .coverage-details {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* ==========================================================================
   Contact & Grid Action Buttons
   ========================================================================== */

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.contact-form-container,
.contact-info{
    background:#fff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.form-group{
    margin-bottom:15px;
}

input,
textarea{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:8px;
    margin-bottom:15px;
    font-family:inherit;
}

textarea{
    resize:vertical;
}

/* شبكة أزرار التواصل التفاعلية الجديدة */
.contact-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.btn-contact-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.btn-contact-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-whatsapp-action { background-color: #25D366; }
.btn-facebook-action { background-color: #1877F2; }
.btn-phone1-action { background-color: #0076fe; }
.btn-phone2-action { background-color: #34495E; }

.success-message{
    background:#d4edda;
    color:#155724;
    padding:15px;
    margin-top:15px;
    border-radius:8px;
    text-align:center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer{
    background:#0d3b66;
    color:#fff;
    text-align:center;
    padding:20px;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.75);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal-content{
    background:#fff;
    width:90%;
    max-width:500px;
    padding:35px;
    border-radius:15px;
    text-align:center;
    position:relative;
}

.modal-icon{
    font-size:50px;
    color:#f39c12;
    margin-bottom:15px;
}

.close-btn{
    position:absolute;
    top:10px;
    left:15px;
    font-size:28px;
    cursor:pointer;
}

.portal-actions{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:20px;
}

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */

.whatsapp-float{
    position:fixed;
    bottom:25px;
    right:25px;
    width:60px;
    height:60px;
    background:#25d366;
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:30px;
    z-index:999;
    box-shadow:0 5px 15px rgba(0,0,0,.25);
}

/* ==========================================================================
   Animations & Scroll Reveal Effects
   ========================================================================== */

.card,
.adv-card,
.partner-card,
.coverage-card,
.stat-card{
    opacity:0;
    transform:translateY(30px);
    transition:.6s;
}

.card.show,
.adv-card.show,
.partner-card.show,
.coverage-card.show,
.stat-card.show{
    opacity:1;
    transform:translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media(max-width:991px){

    .navbar{
        flex-direction:column;
        gap:15px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
    }

    .contact-grid{
        grid-template-columns:1fr;
    }

    .hero-content h1{
        font-size:35px;
    }

    .hero-content p{
        font-size:18px;
    }
}

@media(max-width:576px){

    .hero-content h1{
        font-size:28px;
    }

    .section-title{
        font-size:28px;
    }

    .nav-links{
        gap:10px;
    }

    .btn{
        padding:10px 18px;
    }
}