/* ============================================================
   سايتوتك في الامارات — هوية «حبر دبي»
   ------------------------------------------------------------
   حبر داكن + أحمر اماراتي على رمادي بارد.
   مختلفة عن: ورد الطائف، بترولي المنافس، تيل emiratescytotec.
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
}

:root {
    --mist:       #F3F5F7;
    --mist-2:     #E6EAEF;
    --paper:      #FFFFFF;
    --line:       #7D8794;

    --ink:        #0E1621;
    --ink-soft:   #4A5563;

    --night:      #0E1621;
    --night-deep: #070B12;
    --night-tint: #E8EEF4;

    --gold:       #C41E3A;
    --gold-tint:  #FDE8EC;

    --amber:      #7A5420;
    --amber-bg:   #F7EFE0;
    --alert:      #9B1B2E;
    --alert-bg:   #FBEBEC;
    --wa:         #0F7A46;

    --radius:     6px;
    --radius-s:   4px;
    --shadow:     0 4px 18px rgba(7, 11, 18, 0.08);
    --shadow-lg:  0 12px 32px rgba(7, 11, 18, 0.14);
    --transition: all 0.2s ease;

    --primary-color:   #0E1621;
    --secondary-color: #4A5563;
    --accent-color:    #C41E3A;
    --dark-color:      #0E1621;
    --text-color:      #0E1621;
    --light-bg:        #F3F5F7;
    --dark-bg:         #070B12;
    --border-radius:   6px;
    --box-shadow:      0 4px 18px rgba(7, 11, 18, 0.08);
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    background-color: var(--mist);
    color: var(--ink);
    line-height: 1.9;
    overflow-x: hidden;
    background-image: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.1rem;
    width: 100%;
}

img { max-width: 100%; height: auto; }
::selection { background: var(--night); color: var(--paper); }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============ رابط التخطي ============ */
.skip-link {
    position: absolute;
    top: -48px;
    right: 12px;
    z-index: 2000;
    background: var(--night);
    color: var(--paper);
    padding: 0.7rem 1.4rem;
    border-radius: 0 0 var(--radius-s) var(--radius-s);
    text-decoration: none;
    font-weight: 700;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ============ الهيدر والتنقل ============ */
.header {
    background: var(--paper);
    border-top: 3px solid var(--gold);
    border-bottom: 1px solid var(--mist-2);
    padding: 0.65rem 0;
}

.header .container, .logo { display: flex; align-items: center; }
.logo img {
    height: 42px;
    width: 42px;
    margin-left: 0.75rem;
    border-radius: 6px;
}

.logo .site-title, .logo-text {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.navbar {
    background: var(--paper);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--mist-2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 0;
    flex-wrap: wrap;
}

.navbar li a {
    text-decoration: none;
    color: var(--ink);
    padding: 0.85rem 0.72rem;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.navbar li a:hover { color: var(--gold); border-bottom-color: var(--gold-tint); }
.navbar li a.active { color: var(--gold); border-bottom-color: var(--gold); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    color: var(--ink);
    min-width: 44px;
    min-height: 44px;
}

/* ============ الهيرو ============ */
.hero {
    text-align: right;
    padding: 3.6rem 0 3.2rem;
    background: linear-gradient(165deg, var(--night-deep) 0%, #132033 100%);
    color: var(--paper);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--gold);
}

.hero::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 6px;
    height: 100%;
    border-radius: 0;
    background: var(--gold);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset-inline-end: -90px;
    bottom: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.18);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 2; max-width: 800px; }

.hero h1 {
    font-size: clamp(1.7rem, 5.4vw, 2.85rem);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--paper);
}

.hero p {
    font-size: clamp(1rem, 3.4vw, 1.16rem);
    margin-bottom: 1.7rem;
    color: rgba(243, 245, 247, 0.88);
    max-width: 620px;
}

.hero .cta-btn { background: var(--gold); }
.hero .cta-btn:hover { background: #9B1830; }

/* ============ الأزرار ============ */
.cta-btn, .product-btn, .submit-btn, .contact-btn, .read-more-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--paper);
    padding: 0.85rem 1.7rem;
    border: none;
    border-radius: var(--radius-s);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.02rem;
    font-weight: 800;
    text-decoration: none;
    min-height: 44px;
    box-shadow: none;
}

.cta-btn:hover, .product-btn:hover, .submit-btn:hover,
.contact-btn:hover, .read-more-btn:hover {
    background: #9B1830;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.cta-btn:active { transform: none; box-shadow: none; }

/* ============ العناوين والأقسام ============ */
.features, .testimonials, .about, .contact,
.products, .products-section, .about-section, .benefits-section,
.contact-section, .faq-section, .testimonials-section { padding: 3rem 0; }

.about, .contact { background: var(--mist-2); }

.section-title { text-align: right; margin-bottom: 2rem; }

.section-title h1, .section-title h2 {
    font-size: clamp(1.45rem, 4.6vw, 2.15rem);
    color: var(--night);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.55rem;
}

.section-title h1::after, .section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto;
    width: 72px;
    height: 3px;
    border-radius: 0;
    background: linear-gradient(to left, var(--gold), transparent);
}

.section-title p { color: var(--ink-soft); }

/* بانر افتتاحي موحّد للصفحات الداخلية */
.section-title.page-head {
    display: block;
    background: var(--night-deep);
    border-radius: var(--radius);
    padding: 2.1rem 1.4rem 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--gold);
}

.section-title.page-head::before {
    content: '';
    position: absolute;
    inset-inline-end: -40px;
    bottom: -50px;
    width: 160px;
    height: 160px;
    border-radius: 46% 54% 48% 52%;
    background: rgba(196, 30, 58, 0.2);
    border: none;
    pointer-events: none;
}

.section-title.page-head h1,
.section-title.page-head h2 { color: var(--paper); position: relative; z-index: 1; }
.section-title.page-head h1::after,
.section-title.page-head h2::after { background: var(--gold); }
.section-title.page-head p { color: rgba(243, 246, 247, 0.9); position: relative; z-index: 1; }

/* ============ البطاقات ============ */
.features-grid, .transparency-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.feature-card, .transparency-card, .product-card, .post-card,
.benefit-card, .featured-post, .team-info, .contact-item,
.coverage-box, .contact-form-container {
    background: var(--paper);
    border: 1px solid var(--mist-2);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: none;
    transition: var(--transition);
}

.feature-card:hover, .transparency-card:hover,
.product-card:hover, .post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--mist-2);
    border-top-color: var(--night);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--paper);
    background: var(--night);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-s);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card h3, .transparency-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
    color: var(--ink);
}

.feature-card p, .transparency-card p { color: var(--ink-soft); font-size: 0.96rem; }

.transparency-card h2 {
    color: var(--night);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--night-tint);
}

.transparency-card ul, .transparency-card ol { padding-right: 1.15rem; }
.transparency-card li { margin-bottom: 0.55rem; color: var(--ink); }

.transparency-intro {
    background: var(--night-tint);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.8rem;
    border-inline-start: 5px solid var(--night);
}

.transparency-intro p { color: var(--ink); margin-bottom: 0.7rem; }
.transparency-intro p:last-child { margin-bottom: 0; }

/* ============ about / team ============ */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-items: center;
}

.about-image { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h2, .about-text h3 { font-size: 1.35rem; margin-bottom: 0.9rem; color: var(--night); }
.about-text p { margin-bottom: 1rem; color: var(--ink); }
.about-text ul { padding-right: 1.1rem; }
.about-text li { margin-bottom: 0.45rem; }

.team-info { margin-top: 2rem; }
.team-info h3 { color: var(--night); margin-bottom: 0.9rem; }
.team-info p { margin-bottom: 0.9rem; color: var(--ink); }

/* ============ contact ============ */
.contact-content { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem; }
.contact-icon { font-size: 1.25rem; color: var(--night); }
.phone i, .email i, .address i { color: var(--night); }

.contact-methods, .working-hours, .map-container { margin-top: 2.4rem; }

.contact-method-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--paper);
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-s);
    text-decoration: none;
    font-weight: 700;
    min-height: 44px;
    transition: var(--transition);
}

.contact-method-btn:hover { transform: translateY(-2px); filter: brightness(0.92); }

.coverage-box { margin-top: 1.6rem; }
.coverage-box p { color: var(--ink); margin-bottom: 0.7rem; }

/* ============ النماذج (توافق) ============ */
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-weight: 600; color: var(--ink); }

.form-control {
    padding: 0.85rem 0.95rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    font-size: 1rem;
    background: var(--paper);
    color: var(--ink);
}

.form-control:focus { border-color: var(--night); outline: 3px solid var(--gold); outline-offset: 1px; }

/* ============ تنبيه السلامة الطبية ============ */
.medical-safety-notice {
    padding: 2.8rem 0;
    background: var(--mist-2);
    border-top: 4px solid var(--night);
}

.medical-safety-notice h2 {
    color: var(--night);
    font-size: clamp(1.35rem, 4.4vw, 1.9rem);
    margin-bottom: 0.4rem;
}

.safety-lead { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1.6rem; }

.safety-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.safety-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem;
}

.safety-card h3 {
    font-size: 1.06rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--mist-2);
}

.safety-card p, .safety-card li { color: var(--ink); font-size: 0.95rem; margin-bottom: 0.45rem; }
.safety-card ul { padding-right: 1.15rem; }

.safety-card--critical { background: var(--amber-bg); border-color: var(--amber); }
.safety-card--critical h3 { color: var(--amber); border-bottom-color: rgba(124, 83, 16, 0.25); }

.safety-card--emergency { background: var(--alert-bg); border-color: var(--alert); border-width: 2px; }
.safety-card--emergency h3 { color: var(--alert); border-bottom-color: rgba(163, 31, 39, 0.25); }

.safety-emergency-line { font-weight: 700; color: var(--alert); margin-top: 0.7rem; }
.safety-emergency-line a { color: var(--alert); }

.safety-disclaimer {
    margin-top: 1.7rem;
    padding: 1rem 1.2rem;
    background: var(--paper);
    border-inline-start: 5px solid var(--night);
    border-radius: var(--radius-s);
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.inline-warning, .alert-box {
    background: var(--alert-bg);
    border: 2px solid var(--alert);
    border-radius: var(--radius);
    padding: 1.15rem 1.3rem;
    margin: 1.4rem 0;
}
.inline-warning h3, .alert-box h3 { color: var(--alert); margin-bottom: 0.45rem; font-size: 1.02rem; }
.inline-warning p, .alert-box p { color: var(--ink); margin: 0; }
.inline-warning a, .alert-box a { color: var(--alert); font-weight: 700; }

.highlight-box, .cta-box {
    background: var(--night-tint);
    border-inline-start: 5px solid var(--night);
    border-radius: var(--radius-s);
    padding: 1.3rem 1.4rem;
    margin: 1.6rem 0;
}
.highlight-box h3, .cta-box h3, .cta-box h4 { color: var(--night); margin-bottom: 0.5rem; }
.highlight-box p, .cta-box p { color: var(--ink); }

/* ============ التذييل ============ */
.footer { background: var(--night-deep); color: var(--mist); padding: 2.8rem 0 1.3rem; }

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-bottom: 1.8rem;
}

.footer-logo img { height: 44px; margin-bottom: 0.9rem; }
.footer-logo p { color: var(--mist-2); }

.footer-links h4, .footer-contact h4, .footer-col h4 {
    font-size: 1rem;
    color: var(--paper);
    margin-bottom: 0.95rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
}

.footer-links h4::after, .footer-contact h4::after, .footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 38px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
}

.footer-links ul, .footer-col ul { list-style: none; }
.footer-links li, .footer-col li { margin-bottom: 0.5rem; }

.footer-links a, .footer-col a, .social-links a {
    color: var(--mist-2);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover, .footer-col a:hover, .social-links a:hover { color: var(--paper); }

.footer-contact p { margin-bottom: 0.6rem; display: flex; align-items: center; color: var(--mist-2); }
.footer-contact i { margin-left: 0.6rem; color: var(--gold); }
.footer-contact a { color: var(--mist); }

.external-links a { color: var(--mist-2); text-decoration: none; }
.external-links a:hover { color: var(--paper); }

.social-links { display: flex; gap: 0.8rem; margin-top: 0.8rem; }

.footer-bottom {
    text-align: center;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(243, 246, 247, 0.14);
    color: var(--mist-2);
    font-size: 0.88rem;
}

/* ============ زر واتساب العائم ============ */
.whatsapp-icon, .whatsapp-float {
    position: fixed;
    bottom: 16px;
    left: 16px;
    min-height: 56px;
    width: 56px;
    background: var(--wa);
    color: var(--paper);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.6rem;
    box-shadow: 0 6px 18px rgba(15, 122, 70, 0.4);
    cursor: pointer;
    z-index: 99;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.85);
    text-decoration: none;
}

.whatsapp-icon .whatsapp-label { display: none; font-size: 1rem; font-weight: 700; }
.whatsapp-icon.show, .whatsapp-float.show { opacity: 1; transform: scale(1); }
.whatsapp-icon:hover { transform: scale(1.06); background: #0C6739; }

/* ============ المنتجات ============ */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; margin: 1.6rem 0; }

.product-card { overflow: hidden; padding: 0; position: relative; }

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--night-tint);
}

.product-content { padding: 1.3rem; }
.product-title { font-size: 1.12rem; margin-bottom: 0.7rem; color: var(--night); }
.product-features p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.product-features i { color: var(--night); margin-left: 0.35rem; }
.product-price { margin: 1rem 0 0.35rem; color: var(--ink); }

.price, .price-on-request {
    display: inline-block;
    background: var(--night-tint);
    color: var(--night);
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.93rem;
}

.old-price { color: var(--ink-soft); font-size: 0.9rem; }

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: var(--paper);
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 2;
}

.product-btn { margin-top: 0.9rem; padding: 0.68rem 1.5rem; font-size: 0.96rem; }

/* ============ الأسئلة الشائعة ============ */
.faq-item {
    background: var(--paper);
    border: 1px solid var(--mist-2);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
    box-shadow: none;
}

.faq-question {
    padding: 1.1rem 1.3rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    transition: var(--transition);
    min-height: 44px;
}

.faq-question:hover { background: var(--night-tint); color: var(--night); }
.faq-question i { transition: transform 0.3s ease; color: var(--night); flex-shrink: 0; }
.faq-item.active .faq-question { color: var(--night); }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    padding: 0 1.3rem;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease, visibility 0s linear 0.35s;
    color: var(--ink);
}

.faq-item.active .faq-answer {
    padding: 0 1.3rem 1.2rem;
    max-height: 2000px;
    visibility: visible;
    transition: max-height 0.35s ease, padding 0.35s ease, visibility 0s;
}

/* ============ المدونة ============ */
.blog-section, .blog-post-section, .blog-post-full, .main-article-content { padding: 2.4rem 0; }

.posts-grid, .featured-posts, .all-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.3rem;
}

.featured-post { border-inline-start: 5px solid var(--night); }
.featured-post h3, .featured-post h4 { color: var(--night); margin-bottom: 0.6rem; }

.post-card { overflow: hidden; padding: 0; height: 100%; display: flex; flex-direction: column; }
.post-image { height: 180px; overflow: hidden; }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card:hover .post-image img { transform: scale(1.04); }

.post-content { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.post-date { color: var(--ink-soft); font-size: 0.86rem; margin-bottom: 0.45rem; }
.post-content h4 { font-size: 1.08rem; margin-bottom: 0.7rem; color: var(--night); line-height: 1.55; }
.post-content p { color: var(--ink-soft); font-size: 0.94rem; }

.read-more {
    margin-top: auto;
    padding-top: 0.7rem;
    color: var(--night);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}
.read-more i { margin-right: 0.45rem; transition: transform 0.3s ease; }
.read-more:hover { color: var(--night-deep); }
.read-more:hover i { transform: translateX(-5px); }

/* مقالة مفردة */
.blog-post-content, .article-content, .page-content {
    background: var(--paper);
    border: 1px solid var(--mist-2);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.blog-post-header, .post-header {
    background: var(--night-deep);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1.5rem 1.5rem 1.2rem;
    margin: -1.5rem -1.5rem 1.5rem;
}

.blog-post-header h1, .post-header h1 {
    font-size: clamp(1.3rem, 4.6vw, 1.85rem);
    color: var(--paper);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--ink-soft);
    font-size: 0.86rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.post-category {
    background: var(--night-tint);
    color: var(--night);
    padding: 0.12rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

/* داخل البانر — تأتي بعد القواعد العامة فتتغلب عليها */
.blog-post-header .post-meta,
.blog-post-header .post-date,
.post-header .post-meta,
.post-header .post-date { color: rgba(243, 246, 247, 0.88); }

.blog-post-header .post-category,
.post-header .post-category { background: rgba(243, 246, 247, 0.18); color: var(--paper); }

.blog-post-header .post-meta, .post-header .post-meta { margin-bottom: 0; }

.blog-post-image, .post-main-image { border-radius: var(--radius-s); margin-bottom: 1rem; }

.blog-post-body h2, .post-body h2, .post-content-body h2, .article-content h2 {
    color: var(--night);
    font-size: 1.3rem;
    margin: 1.7rem 0 0.8rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--night-tint);
}

.blog-post-body h3, .post-body h3, .post-content-body h3, .article-content h3 {
    color: var(--ink);
    font-size: 1.1rem;
    margin: 1.3rem 0 0.6rem;
}

.blog-post-body p, .post-body p, .post-content-body p, .article-content p {
    margin-bottom: 1rem;
    color: var(--ink);
}

.blog-post-body ul, .blog-post-body ol,
.post-body ul, .post-content-body ul, .article-content ul, .article-content ol {
    padding-right: 1.3rem;
    margin-bottom: 1rem;
}

.blog-post-body li, .post-body li, .post-content-body li, .article-content li {
    margin-bottom: 0.45rem;
    color: var(--ink);
}

.blog-post-body a:not(.cta-btn):not(.product-btn):not(.contact-btn),
.post-content-body a:not(.cta-btn):not(.product-btn):not(.contact-btn),
.article-content a:not(.cta-btn):not(.product-btn):not(.contact-btn) {
    color: var(--night);
    font-weight: 600;
}

.blog-post-body a.cta-btn, .post-content-body a.cta-btn, .article-content a.cta-btn { color: var(--paper); }

.post-footer { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--mist-2); }

.popular-topics { margin-top: 2.2rem; }
.popular-topics h3 { color: var(--night); margin-bottom: 0.9rem; }

.topics-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.topic-tag {
    background: var(--paper);
    border: 1.5px solid var(--night-tint);
    color: var(--night);
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    min-height: 34px;
    display: inline-flex;
    align-items: center;
}

.topic-tag:hover { background: var(--night); color: var(--paper); border-color: var(--night); }



/* ============ الجداول ============ */
.comparison-table, table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.3rem 0;
    background: var(--paper);
    border-radius: var(--radius-s);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 0.93rem;
}

.comparison-table th, table th {
    background: var(--night);
    color: var(--paper);
    padding: 0.8rem 0.9rem;
    text-align: right;
}

.comparison-table td, table td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--mist-2);
    color: var(--ink);
}

.comparison-table tr:nth-child(even) td, table tr:nth-child(even) td { background: var(--mist); }

/* ============ CTA ============ */
.cta-section {
    background: var(--night);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 2rem 1.4rem;
    text-align: center;
    margin-top: 2.4rem;
}

.cta-section h2, .cta-section h3 { color: var(--paper); margin-bottom: 0.6rem; }
.cta-section p { color: rgba(243, 246, 247, 0.9); margin-bottom: 1.2rem; }
.cta-section .cta-btn { background: var(--gold); color: var(--paper); box-shadow: none; }
.cta-section .cta-btn:hover { background: #9B1830; box-shadow: var(--shadow); }

/* ============ الحركة ============ */
.scroll-animation { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.scrolled { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .scroll-animation { opacity: 1; transform: none; }
}

/* ============ تحميل الصور ============ */
.lazy-load { opacity: 0; transition: opacity 0.3s ease; }
.lazy-load.loaded { opacity: 1; }

/* ============================================================
   من الجوال إلى الأكبر — الأساس أعلاه للجوال
   ============================================================ */
@media (min-width: 577px) {
    .container { padding: 0 1.4rem; }
    .whatsapp-icon, .whatsapp-float { width: auto; padding: 0 1.35rem; bottom: 24px; left: 24px; }
    .whatsapp-icon .whatsapp-label { display: inline; }
    .safety-card, .feature-card, .transparency-card { padding: 1.6rem; }
    .blog-post-content, .article-content, .page-content { padding: 2.2rem; }
    .blog-post-header, .post-header { margin: -2.2rem -2.2rem 1.7rem; padding: 1.9rem 2.2rem 1.5rem; }
    .section-title.page-head { padding: 2.3rem 2rem 2rem; }
    .cta-section { padding: 2.4rem 2rem; }
}

@media (min-width: 769px) {
    .features, .testimonials, .about, .contact,
    .products, .products-section, .about-section, .benefits-section,
    .contact-section, .faq-section, .testimonials-section { padding: 4.2rem 0; }
    .hero { padding: 4.4rem 0 4rem; }
    .medical-safety-notice { padding: 3.8rem 0; }

    .features-grid, .transparency-grid, .safety-grid, .posts-grid, .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
        gap: 1.5rem;
    }

    .about-content, .contact-content { grid-template-columns: 1fr 1fr; gap: 2.6rem; }
    .footer-content { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.4rem; }
    .logo img { height: 44px; }
    .logo .site-title, .logo-text { font-size: 1.25rem; }
}

@media (min-width: 1400px) {
    .container { max-width: 1240px; }
}

/* قائمة الجوال */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }

    .navbar ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80%, 320px);
        height: 100vh;
        height: 100dvh;
        background: var(--paper);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 4.2rem 1rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -8px 0 24px rgba(28, 20, 22, 0.22);
        z-index: 1000;
        overflow-y: auto;
    }

    .navbar ul.show { right: 0; }

    .navbar li a {
        display: block;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--mist-2);
        border-radius: 0;
        color: var(--ink);
    }
    .navbar li a:hover,
    .navbar li a.active {
        color: var(--night);
        background: var(--night-tint);
        border-bottom-color: var(--mist-2);
    }
}

/* ============ طباعة ============ */
@media print {
    .navbar, .footer, .whatsapp-icon, .whatsapp-float, .cta-btn, .cta-section { display: none !important; }
    body { background: #fff; color: #000; }
    .hero { background: none; color: #000; padding: 1.4rem 0; }
    .medical-safety-notice { border: 2px solid #000; }
}

/* ============ وصولية ============ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============ أصناف كانت يتيمة — عُرِّفت (درس §9.2) ============ */
.blog-post {
    background: var(--paper);
    border: 1px solid var(--mist-2);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.3rem;
}
.blog-post h2, .blog-post h3 { color: var(--night); margin-bottom: 0.6rem; }

.preload-image {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ============ أهداف لمس التذييل ورقم الطوارئ (≥44px) ============ */
.footer-links li a, .footer-col li a, .external-links a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding-inline: 2px;
}

.safety-emergency-line a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding-inline: 8px;
    text-decoration: underline;
}

/* ============ أزرار طرق التواصل — ألوان من اللوحة (WCAG AA) ============ */
.contact-method-btn--wa   { background: var(--wa); }
.contact-method-btn--wa:hover   { background: #0C6739; }
.contact-method-btn--call { background: var(--night); }
.contact-method-btn--call:hover { background: var(--night-deep); }
.contact-method-btn--mail { background: var(--gold); }
.contact-method-btn--mail:hover { background: #9B1830; }

/* تنبيه نصّي داخل المتن — الأحمر للطوارئ بتباين صحيح */
.inline-warning-text {
    color: var(--alert);
    font-weight: 700;
    background: var(--alert-bg);
    border-inline-start: 4px solid var(--alert);
    border-radius: var(--radius-s);
    padding: 0.9rem 1.1rem;
    display: block;
}

/* هدف لمس وسوم المواضيع */
.topic-tag { min-height: 44px; }

/* روابط التواصل الاجتماعي — تُبقى للتوافق */
.social-links a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* عمود صفحات الدول في التذييل */
.country-links { margin-bottom: 0; }

/* ============ أيقونات SVG مضمّنة — بديل Font Awesome ============ */
.ico {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
    display: inline-block;
}

.ico-lg { width: 1.5em; height: 1.5em; }

/* الأيقونات داخل السياقات التي كانت تعتمد على حجم الخط */
.feature-icon .ico { width: 1.5rem; height: 1.5rem; }
.contact-icon .ico { width: 1.25rem; height: 1.25rem; }
.mobile-menu-btn .ico { width: 1.35rem; height: 1.35rem; }
.whatsapp-icon .ico { width: 1.6rem; height: 1.6rem; }
.faq-question .ico { width: 0.9rem; height: 0.9rem; }
.product-features .ico,
.about-text .ico,
.post-meta .ico { width: 0.95em; height: 0.95em; margin-left: 0.35rem; }
.footer-contact .ico { margin-left: 0.6rem; }
.read-more .ico { margin-right: 0.45rem; width: 0.85em; height: 0.85em; }

/* ============ كتلة «اقرئي أيضاً» — ربط داخلي دلالي ============ */
.related-reading {
    padding: 2.2rem 0 0.5rem;
    background: transparent;
}

.related-reading h2 {
    font-size: 1.2rem;
    color: var(--night);
    margin-bottom: 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--night-tint);
}

.related-reading ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.related-reading li a {
    display: block;
    background: var(--paper);
    border: 1px solid var(--mist-2);
    border-inline-start: 4px solid var(--gold);
    border-radius: var(--radius-s);
    padding: 0.85rem 1rem;
    color: var(--night);
    text-decoration: none;
    font-weight: 600;
    min-height: 44px;
    transition: var(--transition);
}

.related-reading li a:hover {
    background: var(--night-tint);
    border-inline-start-color: var(--night);
    transform: translateX(-3px);
}

@media (min-width: 769px) {
    .related-reading ul { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ============ سياق محلي لصفحات الدول ============ */
.local-context {
    background: var(--amber-bg);
    border: 1px solid var(--amber);
    border-inline-start: 5px solid var(--amber);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin: 1.8rem 0;
}

.local-context h3 {
    color: var(--amber);
    font-size: 1.08rem;
    margin-bottom: 0.6rem;
}

.local-context p { color: var(--ink); margin-bottom: 0.7rem; }
.local-context p:last-child { margin-bottom: 0; }
.local-context a { color: var(--alert); font-weight: 700; }
