/* ============================================================
   «مائدة» — القالب الأساسي لشركات الكاترينج (AE Catering أول شركة).
   عاجي #F7F2EA · ورق #FFFCF7 · إسبريسو #171310 · حبر #231E1A · نحاسي #A5802C (نص صغير #8A6A22) · رمادي دافي #6B6157 · زيتوني #4F5D3A.
   Amiri للعناوين، IBM Plex Sans Arabic للنص (17px / 1.8)، Cormorant Garamond للإنجليزي، Aref Ruqaa لمسة.
   كل سطر هنا تحت .sk-theme-maida (اختبار 37). مكونات الصفحات نفسها في css/ct-site.css.
   ============================================================ */
.sk-theme-maida {
    --navy: #171310; --navy-2: #0f0c0a; --gold: #A5802C; --gold-2: #D8BC7C; --cream: #F7F2EA; --ink: #231E1A; --muted: #6B6157; --line: #E6DCCD;
    --primary-rgb: 23, 19, 16; --accent-rgb: 165, 128, 44; --accent2-rgb: 216, 188, 124; --shade-rgb: 23, 19, 16; --overlay-rgb: 23, 19, 16; --bg-rgb: 247, 242, 234;
    --surface: #FFFCF7; --surface-2: #F1E9DC; --surface-3: #E8DDCC; --on-dark: #F7F2EA; --on-dark-2: #CFC5B8; --footer-bg: #171310; --stars-off: #E6DCCD;
    --grad-navy: linear-gradient(160deg, #2a221c 0%, #171310 100%); --grad-gold: linear-gradient(120deg, #8A6A22, #D8BC7C 55%, #A5802C);
    --radius: 4px; --radius-sm: 4px; --btn-radius: 999px;
    --shadow: 0 24px 60px rgba(23, 19, 16, .16); --shadow-sm: 0 6px 18px rgba(23, 19, 16, .07);
    --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; --font-display: 'Amiri', 'IBM Plex Sans Arabic', serif;
    --md-bg: #F7F2EA; --md-paper: #FFFCF7; --md-ink: #231E1A; --md-muted: #6B6157; --md-dark: #171310; --md-dark-2: #221c17; --md-accent: #A5802C; --md-accent-ink: #8A6A22;
    --md-display: 'Amiri', serif; --md-body: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
    background: #F7F2EA; color: #231E1A; font-family: var(--font); font-size: 17px; line-height: 1.8;
}
[dir="ltr"] .sk-theme-maida { --md-display: 'Cormorant Garamond', 'Amiri', serif; }
.sk-theme-maida .fx { --fx-accent: #171310; --fx-accent-ink: #F7F2EA; --fx-gold: #A5802C; --fx-display: 'Amiri', serif; --fx-text: 'IBM Plex Sans Arabic', sans-serif; --fx-paper: #F7F2EA; --fx-line: #E6DCCD; --fx-ink: #231E1A; }
.sk-theme-maida h1, .sk-theme-maida h2, .sk-theme-maida h3, .sk-theme-maida .sk-sec-title { font-family: var(--font-display); letter-spacing: 0; }
.sk-theme-maida :focus-visible { outline: 2px solid #A5802C; outline-offset: 3px; }
.sk-theme-maida .sk-main { min-height: 50vh; }

/* ── الهيدر (templates/maida/header.php) ── */
.sk-theme-maida .md-hdr { position: sticky; top: 0; z-index: 70; height: var(--md-hdr); color: #231E1A; background: rgba(247, 242, 234, .94); border-bottom: 1px solid rgba(35, 30, 26, .08);
    backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); transition: background .35s ease, color .35s ease, border-color .35s ease; }
.sk-theme-maida .md-hdr.is-over { background: transparent; color: #F7F2EA; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sk-theme-maida .md-hdr.is-over.is-solid { background: rgba(23, 19, 16, .9); border-color: rgba(247, 242, 234, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sk-theme-maida .md-hdr-in { height: 100%; display: flex; align-items: center; gap: 22px; }
.sk-theme-maida .md-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.sk-theme-maida .md-brand img { height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.sk-theme-maida .md-hdr.is-over:not(.is-solid) .md-brand img, .sk-theme-maida .md-hdr.is-over.is-solid .md-brand img, .sk-theme-maida .md-ftr .md-brand img { filter: brightness(0) invert(.95) sepia(.15); }
.sk-theme-maida .md-brand b { font-family: var(--md-display); font-size: 1.25rem; line-height: 1.2; white-space: nowrap; }
.sk-theme-maida .md-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.sk-theme-maida .md-nav a { position: relative; padding: 8px 12px; text-decoration: none; color: inherit; font-size: .97rem; font-weight: 500; opacity: .86; }
.sk-theme-maida .md-nav a:hover, .sk-theme-maida .md-nav a[aria-current="page"] { opacity: 1; }
.sk-theme-maida .md-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 1px; background: #A5802C; }
.sk-theme-maida .md-hdr-act { display: flex; align-items: center; gap: 8px; }
.sk-theme-maida .md-ic { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; color: inherit; text-decoration: none; opacity: .8; background: transparent; cursor: pointer; padding: 0; }
.sk-theme-maida .md-ic:hover { opacity: 1; }
.sk-theme-maida .md-ic svg { width: 19px; height: 19px; }
.sk-theme-maida .md-lang { font: 600 .85rem var(--md-latin); letter-spacing: .06em; }
.sk-theme-maida .md-burger { display: none; }
.sk-theme-maida .md-sheet { position: fixed; inset: 0; z-index: 90; background: #171310; color: #F7F2EA; padding: 22px 24px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.sk-theme-maida .md-sheet[hidden] { display: none; }
.sk-theme-maida .md-sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sk-theme-maida .md-sheet nav { display: grid; gap: 2px; }
.sk-theme-maida .md-sheet nav a { font-family: var(--md-display); font-size: 1.7rem; text-decoration: none; color: inherit; padding: 8px 0; border-bottom: 1px solid rgba(247, 242, 234, .1); }
.sk-theme-maida .md-sheet .md-btns { margin-top: 22px; }
@media (max-width: 1080px) {
    .sk-theme-maida .md-nav, .sk-theme-maida .md-hdr-act .md-btn { display: none; }
    .sk-theme-maida .md-burger { display: inline-grid; }
    .sk-theme-maida .md-hdr-act { margin-inline-start: auto; }
}
@media (max-width: 420px) { .sk-theme-maida .md-brand b { font-size: 1.05rem; } .sk-theme-maida .md-brand img { height: 36px; } .sk-theme-maida .md-hdr-in { gap: 10px; } }

/* ── الفوتر ── */
.sk-theme-maida .md-ftr { background: #171310; color: #CFC5B8; padding: clamp(56px, 7vw, 88px) 0 0; font-size: .95rem; }
.sk-theme-maida .md-ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.sk-theme-maida .md-ftr h4 { font-family: var(--md-display); color: #F7F2EA; font-size: 1.2rem; margin: 0 0 14px; }
.sk-theme-maida .md-ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sk-theme-maida .md-ftr a { color: inherit; text-decoration: none; }
.sk-theme-maida .md-ftr a:hover { color: #D8BC7C; }
.sk-theme-maida .md-ftr .md-brand { color: #F7F2EA; margin-bottom: 14px; }
.sk-theme-maida .md-ftr-tag { font-family: var(--md-script); color: #D8BC7C; font-size: 1.25rem; margin: 0 0 8px; }
.sk-theme-maida .md-ftr-bottom { border-top: 1px solid rgba(247, 242, 234, .1); padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; }
.sk-theme-maida .md-socials { display: flex; gap: 8px; margin-top: 16px; }
.sk-theme-maida .md-socials a { width: 40px; height: 40px; border: 1px solid rgba(247, 242, 234, .2); border-radius: 50%; display: inline-grid; place-items: center; }
.sk-theme-maida .md-socials svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
    .sk-theme-maida .md-ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
    .sk-theme-maida .md-ftr-grid > :first-child, .sk-theme-maida .md-ftr-grid > :last-child { grid-column: 1 / -1; }
    .sk-theme-maida .md-ftr { padding-bottom: 72px; }
}

/* ── شريط الموبايل الثابت + واتساب الديسكتوب ── */
.sk-theme-maida .md-mbar { display: none; }
.sk-theme-maida .md-wa { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #1f6f43; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(23, 19, 16, .3); }
.sk-theme-maida .md-wa svg { width: 28px; height: 28px; }
@media (max-width: 860px) {
    .sk-theme-maida .md-wa { display: none; }
    .sk-theme-maida .md-mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 65; background: rgba(23, 19, 16, .97);
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; border-top: 1px solid rgba(247, 242, 234, .1); }
    .sk-theme-maida .md-mbar a, .sk-theme-maida .md-mbar button { min-height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .92rem var(--font);
        color: #F7F2EA; text-decoration: none; border: 1px solid rgba(247, 242, 234, .22); background: transparent; cursor: pointer; }
    .sk-theme-maida .md-mbar .is-main { background: #A5802C; color: #171310; border-color: #A5802C; }
    .sk-theme-maida .md-mbar svg { width: 18px; height: 18px; }
    .sk-theme-maida .rqc-launch { display: none; }
    .sk-theme-maida .rqc-panel { bottom: 12px; }
    .sk-theme-maida .sk-main { padding-bottom: 0; }
}

/* ── الشات بألوان القالب ── */
.sk-theme-maida #rqChat { --rqc-navy: #171310; --rqc-gold: #A5802C; --rqc-ink: #231E1A; --rqc-muted: #6B6157; --rqc-line: #E6DCCD; }
.sk-theme-maida .rqc-launch { background: #171310; color: #F7F2EA; box-shadow: 0 12px 28px rgba(23, 19, 16, .35); }

/* ── صفحات النواة (من نحن، تواصل، العميل…) تحت نفس الهوية ── */
.sk-theme-maida .sk-page-head { background: #F1E9DC; color: #231E1A; padding: 56px 0 48px; }
.sk-theme-maida .sk-page-head::before, .sk-theme-maida .sk-page-head::after { display: none; }
.sk-theme-maida .sk-page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.sk-theme-maida .sk-page-sub { color: #6B6157; }
.sk-theme-maida .sk-section--alt { background: #FFFCF7; }
.sk-theme-maida .sk-sec-title { color: #231E1A; }
.sk-theme-maida .sk-btn { border-radius: 999px; font-weight: 600; }
.sk-theme-maida .sk-btn-gold { background: #A5802C; color: #171310; box-shadow: none; }
.sk-theme-maida .sk-btn-gold:hover { background: #B8923A; color: #171310; }
.sk-theme-maida .sk-btn-outline-navy { border-color: #231E1A; color: #231E1A; }
.sk-theme-maida .sk-card, .sk-theme-maida .sk-form-card, .sk-theme-maida .sk-info-card { border-radius: 4px; box-shadow: none; border: 1px solid #E6DCCD; background: #FFFCF7; }
.sk-theme-maida .sk-cta-band { background: #171310; }
.sk-theme-maida input, .sk-theme-maida select, .sk-theme-maida textarea { border-radius: 4px; }
.sk-theme-maida .sk-section a:not(.sk-btn) { color: #8A6A22; }
.sk-theme-maida:has(#rqChat.is-open) .md-mbar { display: none; }
