/* Fonts: Axiforma (Local) */
@font-face {
    font-family: 'Axiforma';
    src: url('assest/font/Axiforma/Axiforma-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Axiforma';
    src: url('assest/font/Axiforma/Axiforma-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Axiforma';
    src: url('assest/font/Axiforma/Axiforma-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-blue: #0078ff; /* من التدرج اللوني في الشعار */
    --brand-cyan: #00d1e1; /* من التدرج اللوني في الشعار */
    --brand-navy: #00003f; /* من نص الشعار */
    --bg: #f7f9fc;
    --text: #1a1d29;
    --muted: #5b6070;
    --card: #ffffff;
    --shadow: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 14px;
    --grad: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
}

html, body { height: 100%; }
body {
    font-family: 'Axiforma', 'Segoe UI', Tahoma, Arial, sans-serif;
    margin: 0;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(0,209,225,0.08), transparent),
                         radial-gradient(1000px 500px at 110% 0%, rgba(0,120,255,0.08), transparent),
                         var(--bg);
    color: var(--text);
    line-height: 1.7;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,0.8);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(0,0,63,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--brand-navy);
    text-decoration: none;
}
.brand-logo { display: block; }
.brand-name { font-weight: 700; font-size: 1.1rem; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-links { display: none; gap: 0.75rem; margin-inline-end: 0.5rem; }
.nav-links a { color: var(--brand-navy); opacity: 0.85; font-weight: 700; }
.nav-links a:hover { opacity: 1; }
.lang-switch { display: inline-flex; background: #fff; border: 1px solid rgba(0,0,63,0.1); border-radius: 999px; padding: 2px; }
.lang-btn { border: 0; background: transparent; padding: 0.45rem 0.85rem; border-radius: 999px; cursor: pointer; color: var(--brand-navy); font-weight: 700; }
.lang-btn.active, .lang-btn[aria-pressed="true"] { background: var(--grad); color: #fff; }

main { max-width: 1100px; margin: 2rem auto; padding: 0 1rem 4rem; }
.hero {
    text-align: center;
    padding: 2.5rem 1rem 0.5rem;
}
.hero h1 { font-size: clamp(1.75rem, 2.5vw, 2.4rem); margin: 0 0 0.5rem; color: var(--brand-navy); }
.lead { color: var(--muted); margin: 0 auto 1.25rem; max-width: 720px; }
.hero-cta { display: flex; justify-content: center; gap: 0.75rem; }

.btn-primary { background: var(--grad); color: #fff; text-decoration: none; padding: 0.75rem 1.1rem; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.05); }

.card { background: var(--card); border: 1px solid rgba(0,0,63,0.06); border-radius: var(--radius); padding: 1.25rem; margin: 1.25rem auto; box-shadow: var(--shadow); }
.card h2 { margin-top: 0; color: var(--brand-navy); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.service { background: #fff; border: 1px solid rgba(0,0,63,0.06); border-radius: 12px; padding: 1rem; }
.service h3 { margin-top: 0; color: var(--brand-navy); }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.feature { background: #fff; border: 1px solid rgba(0,0,63,0.06); border-radius: 12px; padding: 1rem; }
.feature h3 { margin-top: 0; color: var(--brand-navy); }

/* Bullets */
.bullets { margin: 0.5rem 0 0; padding-inline-start: 1.25rem; }
.bullets li { margin: 0.35rem 0; }

/* Contact form */
.contact-form { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.75rem; border-radius: 10px; border: 1px solid rgba(0,0,63,0.15); font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(0,120,255,0.25); border-color: var(--brand-blue); }

/* Toast */
.toast { position: fixed; inset-inline: 0; bottom: 16px; margin: auto; max-width: 420px; background: #111827; color: #fff; padding: 0.75rem 1rem; border-radius: 10px; box-shadow: var(--shadow); text-align: center; }

footer {
    background: var(--brand-navy);
    color: #fff;
    text-align: center;
    padding: 1rem;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* RTL/LTR spacing helpers */
html[lang="ar"] body { direction: rtl; }
html[lang="en"] body { direction: ltr; }
html[lang="ar"] .lang-switch { direction: ltr; }

@media (max-width: 600px) {
    .brand-name { display: none; }
    .form-row { grid-template-columns: 1fr; }
}

/* Large screen nav */
@media (min-width: 900px) {
    .nav-links { display: inline-flex; }
}
