* { margin:0; padding:0; box-sizing:border-box; font-family:'Cairo',sans-serif; }
body { background:#f5f7fb; color:#222; scroll-behavior: smooth; }

header {
    background: linear-gradient(rgba(10,22,40,.70), rgba(10,22,40,.70)), url('images/8.jpg');
    background-size:cover; background-position:center;
}

.hero h1 { font-size:55px; font-weight:800; margin-bottom:20px; color:#fff; padding-right:80px; }
.hero p { font-size:24px; margin-bottom:30px; color:#fff; padding-right:80px; }

.btn {
    display:inline-block; padding:14px 35px; background:#c89b3c; color:#fff;
    text-decoration:none; border-radius:10px; font-weight:700; margin:5px;
}

.section { padding:80px 8%; }
.section-title { text-align:center; font-size:36px; color:#173a70; margin-bottom:50px; font-weight:800; }

.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:25px; }
.card { background:#fff; padding:25px; border-radius:15px; box-shadow:0 5px 20px rgba(0,0,0,.08); text-align:center; }
.card h3 { color:#173a70; margin-bottom:15px; }

.gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:20px; }
.gallery img { width:100%; height:260px; object-fit:cover; border-radius:15px; transition: transform 0.3s ease; }
.gallery img:hover { transform: scale(1.03); }

.offer { background:#173a70; color:#fff; padding:50px; border-radius:20px; text-align:center; }
.offer h2 { font-size:40px; margin-bottom:15px; }
.offer-price { font-size:50px; font-weight:800; color:#ffd369; }

/* قسم التواصل */
.contact { background:#fff; padding:40px; border-radius:20px; box-shadow:0 5px 20px rgba(0,0,0,.08); max-width:700px; margin:auto; }

/* هنا التعديل الجذري لمربعات التواصل ليكون الخط كحلي غامق وواضح */
.contact input, .contact textarea { 
    width:100%; 
    padding:15px; 
    margin-top:10px; 
    margin-bottom:20px; 
    border:1px solid #ddd; 
    border-radius:10px; 
    font-size:16px; 
    color: #173a70 !important; 
    font-weight: bold !important;
    background-color: #fff;
}

button { width:100%; padding:15px; background:#173a70; color:#fff; border:none; border-radius:10px; font-size:18px; font-weight:700; cursor:pointer; }

footer { background:#173a70; color:#fff; text-align:center; padding:25px; margin-top:60px; }
.company-info { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; margin:25px 0; }
.company-info div { background:rgba(255,255,255,.15); padding:15px 25px; border-radius:15px; font-weight:700; color:#fff; border:1px solid rgba(255,255,255,.25); }

.hero-bg { background: linear-gradient( rgba(0,0,0,.75), rgba(0,0,0,.75) ), url('images/1.jpg'); background-size:cover; background-position:center; }
.gold-text { color:#d4af37; }
.btn2 { background:transparent; border:2px solid #fff; }
.btn2:hover { background:#fff; color:#173a70; }

/* ========================================== */
/* الحاسبة  */
/* ========================================== */
/* Premium Calculator V2 */
/* ========================================== */

.premium-calc-section {
    background:linear-gradient(135deg,#eef2f8,#f8fafc);
    padding:80px 5%;
}

.premium-calc-card {
    max-width:950px;
    margin:auto;
    background:#fff;
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 25px 60px rgba(0,0,0,.08);
    border:1px solid rgba(200,155,60,.15);
}

.premium-calc-header {
    background:#0b1830;
    padding:40px;
    text-align:center;
    border-bottom:5px solid #c89b3c;
}

.premium-calc-header h2 {
    color:#d4af37;
    font-size:38px;
    font-weight:800;
    margin-bottom:12px;
}

.premium-calc-header p {
    color:#cbd5e1;
    font-size:18px;
}

.premium-calc-body {
    padding:45px;
}

.premium-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
}

.premium-input-group {
    display:flex;
    flex-direction:column;
}

.premium-input-group label {
    margin-bottom:10px;
    color:#c89b3c;
    font-size:16px;
    font-weight:800;
}

/* تأكيد أن مربعات الحاسبة تبقى بخلفية كحلية وخط أبيض */
.premium-input-group input,
.premium-input-group select {
    height:64px;
    background:#111a2f !important;
    color:#fff !important;
    border:2px solid #1f3158;
    border-radius:14px;
    padding:0 18px;
    font-size:18px;
    font-weight:700;
    transition:.3s;
}

.premium-input-group input::placeholder {
    color:#8ea0bf;
}

.premium-input-group input:focus,
.premium-input-group select:focus {
    border-color:#d4af37;
    box-shadow:0 0 0 4px rgba(212,175,55,.15);
    outline:none;
}

.premium-btn-main {
    width:100%;
    margin-top:35px;
    height:72px;
    border:none;
    border-radius:18px;
    background:linear-gradient(90deg,#c89b3c,#e0b63c);
    color:#fff;
    font-size:28px;
    font-weight:800;
    cursor:pointer;
    transition:.3s;
}

.premium-btn-main:hover {
    transform:translateY(-3px);
    box-shadow:0 18px 35px rgba(200,155,60,.35);
}

.premium-result-box {
    display:none;
    margin-top:40px;
    background:#0b1830;
    border-radius:22px;
    padding:35px;
}

.result-item {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
    border-bottom:1px dashed rgba(255,255,255,.12);
    color:#dbe5f1;
    font-size:18px;
}

.result-value {
    color:#d4af37;
    font-weight:800;
    font-size:20px;
}

.result-item.total {
    margin-top:15px;
    padding-top:22px;
    border-top:2px solid rgba(212,175,55,.3);
    border-bottom:none;
    font-size:24px;
    font-weight:800;
    color:#fff;
}

.premium-btn-wa {
    margin-top:30px;
    width:100%;
    height:65px;
    border:none;
    border-radius:16px;
    background:#25D366;
    color:#fff;
    font-size:22px;
    font-weight:800;
    cursor:pointer;
    transition:.3s;
}

.premium-btn-wa:hover {
    background:#1ebc59;
    transform:translateY(-2px);
}

/* ============================= */
/* تحسينات الجوال */
/* ============================= */

@media (max-width:768px) {
    .hero { text-align:center; padding:40px 20px; }
    .hero h1 { font-size:34px; padding:0; line-height:1.5; }
    .hero p { font-size:17px; padding:0; line-height:1.9; }
    .btn { display:block; width:100%; margin:12px 0; text-align:center; }
    .section { padding:55px 18px; }
    .section-title { font-size:28px; margin-bottom:35px; }
    .cards { grid-template-columns:1fr; }
    .gallery { grid-template-columns:1fr; }
    .gallery img { height:220px; }
    .offer { padding:30px 20px; }
    .offer h2 { font-size:28px; }
    .offer-price { font-size:38px; }
    .contact { padding:25px 18px; }
    .company-info { flex-direction:column; gap:15px; }
    .company-info div { width:100%; }
    footer h3 { font-size:20px; }
    .premium-calc-card { border-radius:18px; }
    .premium-calc-header { padding:25px 15px; }
    .premium-calc-header h2 { font-size:26px; }
    .premium-calc-header p { font-size:15px; }
    .premium-calc-body { padding:25px 15px; }
    .premium-grid { grid-template-columns:1fr; }
    .premium-input-group input { font-size:17px; }
    .premium-btn-main { font-size:20px; padding:18px; }
    .result-item { flex-direction:column; gap:8px; text-align:right; }
    .result-item.total { font-size:22px; }
    .result-value { font-size:22px; }
    .premium-btn-wa { font-size:18px; padding:18px; }
}

/* =============================================
   🖨️ ستايل الطباعة الذكي (أضفه في ملف الـ CSS أو وسم <style>)
   ============================================= */
@media print {
    /* 1. إخفاء الشاشة بالكامل برمجياً */
    body {
        visibility: hidden;
        background: #fff !important;
        margin: 0;
        padding: 0;
    }
    
    /* 2. إظهار صندوق التقرير ومحتوياته فقط */
    #calcResult, #calcResult * {
        visibility: visible;
    }
    
    /* 3. سحب التقرير ليكون في أعلى صفحة الطباعة تماماً */
    #calcResult {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        box-sizing: border-box;
        padding: 5mm !important;
    }
    
    /* 4. إخفاء أزرار الطباعة والرفع تماماً لكي لا تظهر في الورقة */
    #actionButtons, #actionButtons * {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* 5. إجبار رابط الموقع على الظهور أسفل الورقة المطبوعة */
    .print-only-footer {
        display: block !important;
        visibility: visible !important;
        text-align: center;
        margin-top: 30px;
        font-size: 13px;
    }

    /* 6. إعدادات مقاس الورقة A4 وتناسق أسطر الأسعار */
    @page {
        size: A4 portrait;
        margin: 10mm;
    }
    
    .result-item {
        display: flex !important;
        justify-content: space-between !important;
        border-bottom: 1px solid #ddd !important;
        padding: 8px 0 !important;
        font-size: 14px !important;
        page-break-inside: avoid;
    }

    .total {
        margin-top: 20px !important;
        background: #173a70 !important;
        color: #fff !important;
        padding: 14px !important;
        border-radius: 8px !important;
        font-size: 18px !important;
        font-weight: bold !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}