/* Bghit OLgit — public marketing site. Single self-hosted stylesheet
   (CSP script-src 'self'; no external fonts/CDN). System font stack →
   zero webfont, instant first paint. */

:root {
    --brand: #2563EB;
    --brand-dark: #1E40AF;
    --accent: #F59E0B;
    --ink: #1f2933;
    --muted: #52606d;
    --bg: #ffffff;
    --bg-alt: #f6f7f9;
    --border: #e4e7eb;
    --radius: 12px;
    --maxw: 1120px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}
[dir="rtl"] body { text-align: right; }

img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 3rem; }
.section:nth-of-type(even) { background: var(--bg-alt); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.empty { color: var(--muted); }

.visually-hidden, .skip-link {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed; top: .5rem; inset-inline-start: .5rem; width: auto; height: auto;
    clip: auto; background: var(--brand); color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 200;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn {
    display: inline-block; padding: .7rem 1.3rem; border-radius: 8px; font-weight: 600;
    border: 2px solid transparent; cursor: pointer; text-align: center; font: inherit;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 1rem; padding-block: .75rem; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; color: var(--brand); font-size: 1.15rem; }
.brand-tagline { font-size: .8rem; color: var(--muted); }
.primary-nav ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a { color: var(--ink); font-weight: 500; }
.primary-nav a[aria-current="page"] { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .75rem; margin-inline-start: auto; }
.lang-switcher { display: inline-flex; gap: .35rem; font-weight: 600; }
.lang-switcher a[aria-current="true"] { color: var(--brand); text-decoration: underline; }
.nav-toggle { display: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; padding-block: 4rem; }
.hero-title { color: #fff; }
.hero-subtitle { font-size: 1.2rem; max-width: 60ch; margin-block: 1rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.5rem 0; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: #fff; }

.badge { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; }
.badge-featured { background: var(--accent); color: #fff; border: 0; }

/* How-it-works */
.how-steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.how-step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.how-step-num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.trust-list { padding-inline-start: 1.2rem; }

/* Cards + grid */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 1.5rem; }
.card-grid--categories { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card-grid--plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; position: relative; }

.category-card { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; color: var(--ink); border-top: 3px solid var(--cat-color, var(--brand)); }
.category-icon { font-size: 1.8rem; }
.category-name { font-weight: 600; }

.need-title, .product-name { font-size: 1.05rem; margin: 0 0 .4rem; }
.need-meta, .product-meta { color: var(--muted); font-size: .85rem; display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.need-budget, .product-price { margin: .6rem 0 0; }
.product-original { color: var(--muted); text-decoration: line-through; margin-inline-start: .4rem; font-size: .85rem; }
.product-delivery { color: var(--brand); font-weight: 600; font-size: .85rem; margin: .4rem 0 0; }
.product-thumb { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: 8px; margin-bottom: .7rem; }
.product-thumb-icon { font-size: 2.5rem; }

/* Plans */
.plan-card { display: flex; flex-direction: column; gap: .75rem; }
.plan-card--featured { border-color: var(--brand); box-shadow: 0 8px 24px rgba(37,99,235,.15); }
.plan-badge { position: absolute; top: -.7rem; inset-inline-end: 1rem; background: var(--brand); color: #fff; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; }
.plan-price { font-size: 1.5rem; font-weight: 800; }
.plan-period { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan-features { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; flex: 1; }
.plan-features li { padding-inline-start: 1.4rem; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 700; }
.payment-note { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq-list { max-width: 70ch; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: .75rem; background: var(--bg); }
.faq-item summary { font-weight: 600; cursor: pointer; }

/* Contact form */
.contact-form { max-width: 40rem; display: grid; gap: 1rem; }
.form-row { display: grid; gap: .35rem; }
.form-row input, .form-row textarea { width: 100%; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .8rem 1rem; border-radius: 8px; }
.alert-success { background: #e6f7ee; color: #05603a; }
.alert-error { background: #fdecea; color: #8c1d18; }

/* CTA */
.cta-section { background: var(--brand-dark); color: #fff; text-align: center; padding-block: 3rem; }
.cta-section h2 { color: #fff; }
.cta-buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.cta-section .btn-ghost { color: #fff; border-color: #fff; }

/* Footer */
.site-footer { background: #111827; color: #cbd2d9; padding-block: 2.5rem 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer .brand-name { color: #fff; }
.site-footer h2 { font-size: 1rem; color: #fff; }
.footer-nav ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; }
.footer-nav a { color: #cbd2d9; }
.footer-bottom { border-top: 1px solid #1f2933; margin-top: 1.5rem; padding-top: 1rem; color: #9aa5b1; }

/* Cookie banner */
.cookie-banner { position: fixed; inset-inline: 1rem; bottom: 1rem; background: #111827; color: #fff; padding: 1rem 1.25rem; border-radius: var(--radius); display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; z-index: 150; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.cookie-banner p { margin: 0; flex: 1 1 300px; }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-banner .btn-ghost { color: #fff; border-color: #fff; }

/* Error pages */
.error-page { text-align: center; padding-block: 5rem; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--brand); margin: 0; }

/* Mobile nav */
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; order: 3; background: none; border: 0; cursor: pointer; padding: .5rem; }
    .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
    .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bar::before { top: -6px; }
    .nav-toggle-bar::after { top: 6px; }
    .primary-nav { flex-basis: 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; }
    .header-actions { order: 2; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
