/* ════════════════════════════════════════════════════════════════
   sections.css — أنماط أقسام المحتوى الجاهزة (المرحلة 10).

   لماذا ملف مستقل ولماذا ليس داخل المحتوى؟
   سياسة المرحلة 3: وسم <style> ممنوع داخل أى محتوى يُحفظ فى JSON
   (‎@import‎ يستدعى خادمًا خارجيًا، والمحدّدات تسرّب قيم الحقول).
   فالأقسام تُحفظ كـ HTML بأسماء أصناف فقط، وتنسيقها هنا.

   كل قسم يبدأ بـ <section class="sec sec-XXX" data-sec="XXX">
   حتى يتعرف عليه المحرّر المرئى ويعرف نوعه.

   الهوية: ذهبى #d4a017 — أسود #0a0a0a — كريمى #faf6ec — حد #e8dfc4
   ════════════════════════════════════════════════════════════════ */

.sec {
    margin: 0 0 46px;
}

.sec:last-child {
    margin-bottom: 0;
}

.sec p {
    line-height: 2;
    color: #5b5b5b;
    margin: 0 0 14px;
}

.sec p:last-child {
    margin-bottom: 0;
}

/* عنوان مشترك بين الأقسام */
.sec-head {
    text-align: center;
    margin: 0 0 30px;
}

.sec-head span {
    display: inline-block;
    color: #b98a0c;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sec-head h2 {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
}

.sec-head p {
    max-width: 720px;
    margin: 12px auto 0;
}

/* ── 1) عنوان وفقرة ── */
.sec-text h2 {
    font-size: clamp(1.4rem, 1.05rem + 1.4vw, 1.9rem);
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 14px;
}

/* ── 2) بطل داكن ── */
.sec-hero {
    background: linear-gradient(135deg, #050505 0%, #0f0f0f 55%, #1a1a1a 100%);
    color: #fff;
    border-radius: 24px;
    padding: clamp(32px, 5vw, 60px) clamp(20px, 4vw, 44px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sec-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(620px 420px at 22% 28%, rgba(212, 160, 23, .22), transparent 62%);
    pointer-events: none;
}

.sec-hero > * {
    position: relative;
    z-index: 1;
}

.sec-hero span.sec-kicker {
    display: inline-block;
    color: #f0c75e;
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.sec-hero h2 {
    font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem);
    font-weight: 900;
    margin: 0 0 14px;
    color: #fff;
}

.sec-hero p {
    color: rgba(255, 255, 255, .84);
    max-width: 760px;
    margin: 0 auto 22px;
    font-size: 1.05rem;
}

/* ── زر مشترك ── */
.sec-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d4a017, #f0c75e);
    color: #1a1a1a;
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(212, 160, 23, .28);
    transition: transform .22s ease, box-shadow .22s ease;
}

.sec-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(212, 160, 23, .38);
    color: #1a1a1a;
}

/* ── 3) إحصائيات ── */
.sec-stats .sec-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.sec-stats-grid > div {
    background: #faf6ec;
    border: 1px solid #e8dfc4;
    border-radius: 18px;
    padding: 26px 16px;
    text-align: center;
}

.sec-stats-grid strong {
    display: block;
    font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.3rem);
    font-weight: 900;
    color: #b98a0c;
    line-height: 1.2;
}

.sec-stats-grid span {
    display: block;
    margin-top: 6px;
    color: #6b6b6b;
    font-size: .93rem;
}

/* ── 4) بطاقات مميزات ── */
.sec-cards .sec-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.sec-card {
    background: #fff;
    border: 1px solid #e8dfc4;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 12px 34px rgba(26, 26, 26, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(26, 26, 26, .12);
    border-color: #d4a017;
}

.sec-card .sec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff5d1, #f6e2a6);
    color: #b98a0c;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.sec-card h3 {
    font-size: 1.22rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px;
}

/* ── 5) صورة ونص ── */
.sec-split .sec-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.sec-split img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid #e8dfc4;
}

.sec-split h2 {
    font-size: clamp(1.35rem, 1rem + 1.4vw, 1.85rem);
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 14px;
}

@media (max-width: 767px) {
    .sec-split .sec-split-grid {
        grid-template-columns: 1fr;
    }
}

/* ── 6) خطوات مرقّمة ── */
.sec-steps .sec-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.sec-step {
    position: relative;
    background: #faf6ec;
    border: 1px solid #e8dfc4;
    border-radius: 18px;
    padding: 30px 22px 24px;
}

.sec-step b {
    position: absolute;
    top: -15px;
    inset-inline-start: 24px;
    background: #d4a017;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: .95rem;
}

.sec-step h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 8px 0 10px;
}

/* ── 7) قائمة مزايا ── */
.sec-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.sec-list li {
    position: relative;
    padding: 14px 46px 14px 16px;
    background: #fff;
    border: 1px solid #e8dfc4;
    border-radius: 14px;
    color: #3c3c3c;
    line-height: 1.8;
}

.sec-list li::before {
    content: "✔";
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d4a017;
    color: #fff;
    font-size: .72rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 8) اقتباس ── */
.sec-quote blockquote {
    margin: 0;
    background: #faf6ec;
    border: 1px solid #e8dfc4;
    border-inline-start: 5px solid #d4a017;
    border-radius: 18px;
    padding: 30px 30px 24px;
}

.sec-quote blockquote p {
    font-size: 1.12rem;
    line-height: 2;
    color: #2b2b2b;
    font-weight: 600;
}

.sec-quote cite {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-weight: 800;
    color: #b98a0c;
}

/* ── 9) أسئلة شائعة ── */
.sec-faq details {
    background: #fff;
    border: 1px solid #e8dfc4;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}

.sec-faq summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 800;
    color: #1a1a1a;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sec-faq summary::-webkit-details-marker {
    display: none;
}

.sec-faq summary::after {
    content: "+";
    color: #d4a017;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    flex: 0 0 auto;
}

.sec-faq details[open] summary::after {
    content: "−";
}

.sec-faq details > p {
    padding: 0 20px 18px;
    margin: 0;
}

/* ── 10) شريط دعوة ── */
.sec-cta {
    background: linear-gradient(135deg, #0a0a0a, #1c1c1c);
    border-radius: 22px;
    padding: clamp(28px, 4vw, 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.sec-cta h2 {
    color: #fff;
    font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem);
    font-weight: 900;
    margin: 0 0 8px;
}

.sec-cta p {
    color: rgba(255, 255, 255, .78);
    margin: 0;
}

/* ── 11) جدول مواصفات ── */
.sec-table .sec-table-wrap {
    overflow-x: auto;
    border: 1px solid #e8dfc4;
    border-radius: 16px;
}

.sec-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px;
    background: #fff;
}

.sec-table th,
.sec-table td {
    padding: 14px 18px;
    text-align: start;
    border-bottom: 1px solid #f0eadb;
}

.sec-table thead th {
    background: #faf6ec;
    color: #1a1a1a;
    font-weight: 800;
}

.sec-table tbody tr:last-child td {
    border-bottom: 0;
}

/* ── 12) فيديو ── */
.sec-video .sec-video-frame {
    position: relative;
    padding-top: 56.25%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e8dfc4;
    background: #0a0a0a;
}

.sec-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── 13) شبكة صور ── */
.sec-gallery .sec-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.sec-gallery figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8dfc4;
    background: #fff;
}

.sec-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.sec-gallery figcaption {
    padding: 10px 14px;
    font-size: .88rem;
    color: #6b6b6b;
    text-align: center;
}
