/**
 * @file public-pages.css
 * @brief ستايلات الصفحات الثابتة (من نحن / اتصل بنا).
 * @namespace pg-*
 */

/* ============ About ============ */
.pg-about {
    position: relative;
}
.pg-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 400px 300px at 0% 40%, rgba(203,181,119,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 300px 400px at 100% 60%, rgba(45,58,30,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.pg-about__intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
}
.pg-about__intro h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: 0;
    position: relative;
}
.pg-about__intro h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--pub-primary), transparent);
    margin-top: 14px;
}
.pg-about__intro p {
    color: var(--pub-ink-soft);
    line-height: 1.9;
    margin: 0 0 14px;
}
.pg-about__stats {
    display: flex;
    gap: 32px;
    margin: 24px 0 20px;
    padding: 20px 0;
    border-top: 1px solid var(--pub-border);
    border-bottom: 1px solid var(--pub-border);
}
.pg-about__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pg-about__stat-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--pub-primary-dark);
    line-height: 1.2;
    letter-spacing: 0;
}
.pg-about__stat-label {
    font-size: 12px;
    color: var(--pub-ink-soft);
    font-weight: 600;
}
.pg-about__visual {
    border-radius: var(--pub-r-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--pub-bg-soft);
    border: 1px solid var(--pub-border);
    position: relative;
}
.pg-about__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.pg-about__visual:hover img { transform: scale(1.04); }
.pg-about__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13,27,47,0.15));
    pointer-events: none;
}
.pg-about__visual-shape {
    display: none;
}

.pg-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.pg-value {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-r-lg);
    padding: 28px;
    transition: transform .2s, box-shadow .2s;
}
.pg-value:hover { transform: translateY(-4px); box-shadow: var(--pub-shadow-md); }
.pg-value__icon {
    width: 56px; height: 56px;
    border-radius: var(--pub-r-md);
    background: var(--pub-primary-soft);
    color: var(--pub-primary-dark);
    display: grid; place-items: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.pg-value h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.pg-value p { color: var(--pub-ink-soft); margin: 0; line-height: 1.8; }

/* ============================================================
 * Contact — Premium redesign (هوية زيت الزيتون: أوليف + ذهبي + عاجي)
 * ============================================================ */
.pg-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

/* ---- Info side (لوحة داكنة فاخرة بتدرّج أوليف + لمسة ذهبية + زجاج) ---- */
.pg-contact__info {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    border-radius: var(--pub-r-lg);
    padding: 40px 36px;
    background:
        radial-gradient(120% 80% at 85% 0%, rgba(203, 181, 119, .22) 0%, transparent 55%),
        linear-gradient(155deg, #3a4b29 0%, #2c3820 52%, #1f2818 100%);
    box-shadow: 0 18px 48px rgba(31, 40, 24, .22);
}
.pg-contact__deco {
    position: absolute;
    width: 150px; height: 150px;
    color: var(--pub-primary);
    opacity: .14;
    z-index: -1;
    pointer-events: none;
}
.pg-contact__deco svg { width: 100%; height: 100%; }
.pg-contact__deco--tl { top: -26px; inset-inline-end: -26px; transform: scaleX(-1); }
.pg-contact__deco--br { bottom: -34px; inset-inline-start: -30px; transform: rotate(180deg); }

.pg-contact__intro { margin-bottom: 26px; }
.pg-contact__kicker {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
    color: var(--pub-primary);
    background: rgba(203, 181, 119, .14);
    border: 1px solid rgba(203, 181, 119, .28);
    padding: 5px 13px; border-radius: var(--pub-r-full);
    margin-bottom: 14px;
}
.pg-contact__info h3 { margin: 0 0 10px; font-size: 26px; font-weight: 800; color: #fff; }
.pg-contact__info p { color: rgba(255, 255, 255, .78); margin: 0; line-height: 1.85; }

.pg-contact__list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.pg-contact__card {
    display: flex; gap: 14px; align-items: flex-start;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.pg-contact__card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(203, 181, 119, .35);
}
.pg-contact__card > a { display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none; flex: 1; }
.pg-contact__ic {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--pub-primary);
    background: rgba(203, 181, 119, .14);
    border: 1px solid rgba(203, 181, 119, .3);
    font-size: 16px;
}
.pg-contact__ic--wa { color: #25d366; background: rgba(37, 211, 102, .14); border-color: rgba(37, 211, 102, .32); }
.pg-contact__card strong { display: block; color: #fff; margin-bottom: 4px; font-size: 14.5px; }
.pg-contact__card span { color: rgba(255, 255, 255, .72); font-size: 13.5px; line-height: 1.7; }

.pg-contact__social { display: flex; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.pg-contact__social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: grid; place-items: center;
    transition: background .2s, transform .2s;
}
.pg-contact__social a:hover { background: var(--pub-primary); color: var(--pub-ink); transform: translateY(-2px); }

/* ---- Form side (بطاقة بيضاء فاخرة) ---- */
.pg-form {
    position: relative;
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-r-lg);
    padding: 40px 36px;
    box-shadow: 0 14px 40px rgba(43, 45, 41, .07);
}
.pg-form__head {
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 14px;
}
.pg-form__leaf {
    display: inline-grid; place-items: center;
    width: 46px; height: 46px;
    flex: 0 0 auto;
    color: var(--pub-primary-dark);
    background: var(--pub-primary-soft);
    border-radius: 14px;
}
.pg-form__leaf svg { width: 26px; height: 26px; }
.pg-form__head h3 { margin: 0; font-size: 26px; font-weight: 800; color: var(--pub-ink); }
.pg-form__sub { flex-basis: 100%; margin: 12px 0 0; color: var(--pub-ink-soft); font-size: 14.5px; line-height: 1.8; }

.pg-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.pg-form__group { margin-bottom: 18px; }
.pg-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pub-ink);
    margin-bottom: 8px;
}

/* الحقول مع أيقونة داخلية */
.pg-field { position: relative; }
.pg-field__icon {
    position: absolute;
    inset-inline-start: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pub-ink-mute);
    font-size: 15px;
    pointer-events: none;
    transition: color .15s;
}
.pg-field--area .pg-field__icon { top: 18px; transform: none; }

.pg-form input, .pg-form textarea, .pg-form select {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 16px;
    padding-inline-start: 44px;
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    font: inherit;
    background: var(--pub-bg);
    color: var(--pub-ink);
    transition: border-color .15s, box-shadow .15s, background .15s;
    appearance: none;
    -webkit-appearance: none;
}
.pg-form textarea {
    height: auto;
    min-height: 150px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
    line-height: 1.8;
}
.pg-field--select::after {
    content: "";
    position: absolute;
    inset-inline-end: 16px; top: 50%;
    width: 9px; height: 9px;
    border-right: 2px solid var(--pub-ink-soft);
    border-bottom: 2px solid var(--pub-ink-soft);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.pg-form select { padding-inline-end: 38px; cursor: pointer; }

.pg-form input:focus, .pg-form textarea:focus, .pg-form select:focus {
    outline: none;
    background: #fff;
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 3px rgba(var(--pub-primary-rgb), .22);
}
.pg-field:focus-within .pg-field__icon { color: var(--pub-primary-dark); }

.pg-form__counter {
    margin-top: 7px;
    text-align: start;
    font-size: 12.5px;
    color: var(--pub-ink-mute);
}

.pg-form__submit {
    margin-top: 6px;
    height: 54px;
    font-size: 16px; font-weight: 700;
    border: 0;
    background: linear-gradient(135deg, var(--pub-primary) 0%, #b89a55 45%, var(--pub-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(58, 75, 41, .24);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pg-form__submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 14px 32px rgba(58, 75, 41, .3);
}
.pg-form__submit:active { transform: translateY(0); }

.pg-form__trust {
    margin: 16px 0 0;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 12.5px;
    color: var(--pub-ink-mute);
}
.pg-form__trust i { color: var(--pub-primary-dark); }

/* ============ Map ============ */
.pg-map {
    margin-top: 48px;
    border-radius: var(--pub-r-lg);
    overflow: hidden;
    height: 380px;
    border: 1px solid var(--pub-border);
    box-shadow: 0 14px 40px rgba(43, 45, 41, .07);
}
.pg-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .pg-about__intro,
    .pg-contact { grid-template-columns: 1fr; gap: 32px; }
    .pg-about__stats { gap: 20px; }
    .pg-values { grid-template-columns: 1fr; }
    .pg-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .pg-about__stats { flex-direction: column; gap: 14px; }
    .pg-about__stat { flex-direction: row; align-items: baseline; gap: 8px; }
    .pg-about__stat-num { font-size: 20px; }
    .pg-contact__info, .pg-form { padding: 28px 20px; }
    .pg-contact__info h3, .pg-form__head h3 { font-size: 23px; }
    .pg-map { margin-top: 32px; height: 320px; }
}
.pg-section { padding: 36px 0 60px; }
.pg-article {
    max-width:860px; margin:0 auto;
    background:rgba(255,255,255,0.88); backdrop-filter:blur(10px);
    border:1px solid rgba(229,233,239,0.6);
    border-radius:var(--pub-r-lg); padding:36px;
    color:var(--pub-ink); font-size:16px;
}
.pg-empty { color:var(--pub-ink-soft); text-align:center; }
.pg-btn-top { margin-top:10px; }

/* ====== Honeypot anti-spam (مخفي بصرياً مع إبقاء وصول DOM لحماية النموذج) ====== */
.pg-form__honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ============================================================
 * Static Page Content — pg-article
 * محتوى الصفحات الثابتة (من نحن، سياسة الاسترجاع، إلخ)
 * ============================================================ */

/* ---- Headings ---- */
.pg-article h2 {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    margin: 36px 0 16px;
    padding: 0 0 0 16px;
    padding-inline: 0 16px;
    padding-inline-start: 16px;
    padding-inline-end: 0;
    border-inline-start: 4px solid var(--pub-primary);
    line-height: 1.4;
    color: var(--pub-primary-dark);
    letter-spacing: -.3px;
}
.pg-article h2:first-child { margin-top: 0; }

.pg-article h3 {
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--pub-ink);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pg-article h3::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pub-primary);
    flex-shrink: 0;
}

.pg-article h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 22px 0 10px;
    color: var(--pub-ink);
}

/* ---- Paragraphs ---- */
.pg-article p {
    margin: 0 0 16px;
    line-height: 1.9;
    color: var(--pub-ink);
}
.pg-article p:last-child { margin-bottom: 0; }

/* ---- Links ---- */
.pg-article a {
    color: var(--pub-primary-dark);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color .15s, color .15s;
}
.pg-article a:hover {
    color: var(--pub-primary);
    border-bottom-color: currentColor;
}

/* ---- Strong / Bold ---- */
.pg-article strong {
    color: var(--pub-primary-dark);
    font-weight: 800;
}

/* ---- Emphasis ---- */
.pg-article em {
    color: var(--pub-ink-soft);
    font-style: italic;
}

/* ============================================================
 * Lists — قوائم منسقة مع أيقونات
 * ============================================================ */

/* ---- Unordered Lists ---- */
.pg-article ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.pg-article ul:last-child { margin-bottom: 0; }
.pg-article ul li {
    position: relative;
    padding: 8px 0 8px 32px;
    padding-inline: 32px 0;
    padding-inline-start: 32px;
    padding-inline-end: 0;
    line-height: 1.8;
    font-size: 15px;
}
.pg-article ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    position: absolute;
    right: auto;
    left: auto;
    inset-inline-start: 0;
    top: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pub-primary-soft);
    color: var(--pub-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}
.pg-article ul li + li {
    border-top: 1px solid var(--pub-border);
}

/* ---- Nested Unordered Lists ---- */
.pg-article ul ul {
    margin: 8px 0 4px 16px;
    margin-inline: 16px 0;
    margin-inline-start: 16px;
    margin-inline-end: 0;
}
.pg-article ul ul li {
    font-size: 14px;
    padding: 6px 0 6px 28px;
    padding-inline: 28px 0;
    padding-inline-start: 28px;
    padding-inline-end: 0;
}
.pg-article ul ul li::before {
    content: '\f111';
    font-size: 6px;
    width: 16px;
    height: 16px;
    top: 11px;
    background: transparent;
    color: var(--pub-primary);
}
.pg-article ul ul li + li { border-top: 0; }

/* ---- Ordered Lists ---- */
.pg-article ol {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    counter-reset: pg-counter;
}
.pg-article ol:last-child { margin-bottom: 0; }
.pg-article ol li {
    position: relative;
    padding: 10px 0 10px 44px;
    padding-inline: 44px 0;
    padding-inline-start: 44px;
    padding-inline-end: 0;
    line-height: 1.8;
    font-size: 15px;
    counter-increment: pg-counter;
}
.pg-article ol li::before {
    content: counter(pg-counter);
    font-family: var(--pub-font-heading);
    font-weight: 800;
    font-size: 13px;
    position: absolute;
    right: auto;
    left: auto;
    inset-inline-start: 0;
    top: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pub-primary-soft);
    color: var(--pub-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.pg-article ol li + li {
    border-top: 1px solid var(--pub-border);
}

/* ============================================================
 * FAQ — الأسئلة الشائعة
 * ============================================================ */
.pg-faq {
    display: grid;
    gap: 12px;
}
.pg-faq__item {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-r-lg);
    padding: 20px 24px;
    transition: box-shadow .2s;
}
.pg-faq__item:hover {
    box-shadow: var(--pub-shadow-sm);
}
.pg-faq__item h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--pub-primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pg-faq__item h3::before {
    content: '\f059';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 400;
    color: var(--pub-primary);
    font-size: 18px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    flex-shrink: 0;
}
.pg-faq__item p {
    margin: 0;
    color: var(--pub-ink-soft);
    line-height: 1.8;
    font-size: 15px;
}
.pg-faq__item ul {
    margin: 8px 0 0;
}
.pg-faq__item ul li {
    font-size: 14px;
    padding: 5px 0 5px 26px;
    padding-inline: 26px 0;
    padding-inline-start: 26px;
    padding-inline-end: 0;
}
.pg-faq__item ul li::before {
    width: 18px;
    height: 18px;
    font-size: 9px;
    top: 8px;
}
.pg-faq__item ul li + li { border-top: 0; }

/* ============================================================
 * About Block — قالب من نحن
 * ============================================================ */
.pg-about-block {
    margin-bottom: 28px;
}
.pg-about-block:last-child { margin-bottom: 0; }
.pg-about-block h2 {
    margin-top: 0;
}
.pg-about-block h3 {
    margin-top: 0;
}
.pg-about-block p:last-child {
    margin-bottom: 0;
}

/* ============================================================
 * Stats — إحصائيات
 * ============================================================ */
.pg-stats {
    background: linear-gradient(135deg, var(--pub-primary-dark), #2D3A1E);
    border-radius: var(--pub-r-lg);
    padding: 32px;
    margin-top: 8px;
}
.pg-stats h3 {
    color: #fff;
    margin: 0 0 24px;
    font-size: 20px;
    text-align: center;
    display: block;
}
.pg-stats h3::before { display: none; }
.pg-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.pg-stat {
    text-align: center;
    padding: 20px 12px;
    border-radius: var(--pub-r-md);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.08);
}
.pg-stat__num {
    display: block;
    font-family: var(--pub-font-heading);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    color: var(--pub-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}
.pg-stat__label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
}

/* ============================================================
 * pg-meta — آخر تحديث
 * ============================================================ */
.pg-meta {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--pub-border);
    font-size: 13px;
    color: var(--pub-ink-mute);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 768px) {
    .pg-article {
        padding: 24px 20px;
        font-size: 15px;
    }
    .pg-article h2 {
        margin: 28px 0 14px;
        padding-inline-start: 12px;
    }
    .pg-article h3 {
        margin: 22px 0 10px;
    }
    .pg-article ul li,
    .pg-article ol li {
        font-size: 14px;
        padding: 7px 0 7px 28px;
        padding-inline: 28px 0;
        padding-inline-start: 28px;
        padding-inline-end: 0;
    }
    .pg-article ol li {
        padding-inline-start: 40px;
        padding-inline-end: 0;
    }
    .pg-faq__item {
        padding: 16px 18px;
    }
    .pg-stats {
        padding: 24px 16px;
    }
    .pg-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .pg-article {
        padding: 20px 16px;
        font-size: 14px;
    }
    .pg-article h2 {
        font-size: 18px;
        margin: 22px 0 12px;
    }
    .pg-article h3 {
        font-size: 16px;
    }
    .pg-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
