:root {
    /* مطابقة AppColors في التطبيق */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-deep: #1E40AF;
    --accent-purple: #6347D9;
    --secondary: #FFB84D;
    --bg: #F9FAFB;
    --surface: #FFFFFF;
    --surface-muted: #F3F4F6;
    --overlay: #EEF2FF;
    --text: #1F2937;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --footer-bg: #0F172A;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
    --shadow-lg: 0 12px 40px rgba(30, 64, 175, 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Tajawal', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container {
    max-width: 1140px; margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}
.text-hl { color: var(--primary); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 200;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding-top: env(safe-area-inset-top);
}
.header-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 0; min-height: 56px;
}
.header-bar-actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.header-panel { display: none; }
.header-cta-compact { display: none; }
.header-cta-full { display: none; }
.nav-toggle {
    display: none;
    width: 44px; height: 44px; border: 1px solid var(--border);
    border-radius: 12px; background: var(--surface);
    cursor: pointer; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block; width: 20px; height: 2px;
    background: var(--text); border-radius: 2px;
    position: relative; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: ''; position: absolute; left: 0;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle.is-active .nav-toggle-icon { background: transparent; }
.nav-toggle.is-active .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-active .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

/* Desktop header — صف واحد */
@media (min-width: 901px) {
    .header-bar { padding: 14px 0; flex-wrap: nowrap; }
    .nav-toggle, .header-cta-compact { display: none !important; }
    .header-panel {
        display: flex !important;
        flex: 1; align-items: center; justify-content: flex-end;
        gap: 12px; padding: 0; border: none; margin-inline-start: 24px;
        max-height: none; overflow: visible;
    }
    .header-cta-full { display: inline-flex !important; flex-shrink: 0; }
    .nav { flex-wrap: wrap; justify-content: flex-end; }
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.2rem; color: var(--text);
    text-decoration: none;
}
.brand-logo {
    width: 40px; height: 40px; border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.brand-name { font-weight: 800; }
.footer-brand {
    display: flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none;
}
.footer-brand .brand-name { color: #fff; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
    padding: 8px 14px; border-radius: 10px;
    color: var(--text-muted); font-weight: 500; font-size: 0.92rem;
}
.nav a:hover { background: var(--overlay); color: var(--primary); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 12px; font-weight: 700;
    font-size: 0.92rem; border: none; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: inherit; text-decoration: none;
}
.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; min-height: 44px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; min-height: 48px; }
@media (hover: none) {
    .btn-primary:hover { transform: none; }
    .feature-card:hover { transform: none; }
}
.btn-outline {
    background: var(--surface); color: var(--primary);
    border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: var(--overlay); }

/* Hero */
.hero-section { padding: 56px 0 72px; background: var(--surface); }
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-title {
    font-size: clamp(1.85rem, 4vw, 2.65rem); font-weight: 800;
    line-height: 1.35; margin-bottom: 18px; color: var(--text);
}
.hero-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-img {
    border-radius: 20px; width: 100%; aspect-ratio: 4/3; object-fit: cover;
    box-shadow: var(--shadow-lg);
}
.hero-float {
    position: absolute; background: var(--surface); border-radius: 14px;
    padding: 12px 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    font-size: 0.85rem;
}
.hero-float.budget { top: 12px; left: -12px; min-width: 140px; }
.hero-float.trip { bottom: 48px; left: -16px; }
.hero-float.avatars { bottom: 12px; right: 12px; display: flex; gap: -8px; }

/* Features */
.features-section { padding: 24px 0 64px; margin-top: -32px; position: relative; z-index: 2; }
.features-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 18px;
    box-shadow: var(--shadow); text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 48px; height: 48px; margin: 0 auto 12px;
    background: var(--overlay); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.feature-more { font-size: 0.8rem; font-weight: 600; color: var(--primary); }
.feature-badge {
    display: inline-block; background: #DCFCE7; color: #166534;
    font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
    margin-bottom: 6px;
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-muted); }
.section-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--text-muted); margin-bottom: 32px; max-width: 560px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.about-img { border-radius: 20px; width: 100%; aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--shadow-lg); }
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px;
}
.stat-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px; text-align: center;
}
.stat-box .val { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.stat-box .lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stat-box .ico { font-size: 1.2rem; margin-bottom: 4px; }

/* Privacy cards */
.cards-grid-4 {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.info-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
}
.info-card .ico { font-size: 1.5rem; margin-bottom: 10px; }
.info-card h4 { font-weight: 700; margin-bottom: 8px; font-size: 0.95rem; }
.info-card p { font-size: 0.88rem; color: var(--text-muted); }
.privacy-banner {
    margin-top: 24px; background: var(--overlay); border: 1px solid #C7D2FE;
    border-radius: 12px; padding: 14px 20px; text-align: center;
    color: var(--primary-deep); font-weight: 500; font-size: 0.92rem;
}

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
}
.accordion-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 18px 20px; background: none; border: none;
    cursor: pointer; font-family: inherit; text-align: right;
}
.accordion-trigger .left { display: flex; align-items: center; gap: 12px; flex: 1; }
.accordion-trigger .ico-box {
    width: 40px; height: 40px; border-radius: 10px; background: var(--overlay);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.accordion-trigger h4 { font-size: 1rem; font-weight: 700; color: var(--text); }
.accordion-trigger .chevron {
    transition: transform 0.2s; color: var(--text-light); font-size: 1.2rem;
}
.accordion-item.is-open .chevron { transform: rotate(180deg); }
.accordion-body {
    display: none; padding: 0 20px 18px 72px;
    color: var(--text-muted); font-size: 0.92rem;
}
.accordion-item.is-open .accordion-body { display: block; }

/* Support */
.support-section { background: linear-gradient(180deg, var(--overlay) 0%, var(--bg) 100%); }
.support-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.support-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.88rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border); font-family: inherit; font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.contact-line {
    display: flex; align-items: center; gap: 12px; margin-top: 14px;
    font-size: 0.92rem; color: var(--text-muted);
}
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-error { background: #FEE2E2; color: #991B1B; }

/* Footer */
.site-footer {
    background: var(--footer-bg); color: #CBD5E1;
    padding: 48px 0 max(28px, env(safe-area-inset-bottom));
}
.footer-top {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px; margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.social-row { display: flex; gap: 10px; }
.social-row a {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.08); display: flex;
    align-items: center; justify-content: center; color: #fff;
}
.social-row a:hover { background: var(--primary); }
.footer-columns {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
    margin-bottom: 32px;
}
.footer-col h5 { color: #fff; font-weight: 700; margin-bottom: 12px; font-size: 0.95rem; }
.footer-col a {
    display: block; color: #94A3B8; font-size: 0.88rem; margin-bottom: 8px;
}
.footer-col a:hover { color: #93C5FD; }
.footer-bottom {
    border-top: 1px solid #334155; padding-top: 20px;
    text-align: center; font-size: 0.88rem; color: #64748B;
}

/* Tablet (iPad) */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { gap: 32px; }
    .section { padding: 56px 0; }
    .footer-columns { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile + small tablet */
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .header-cta-compact { display: inline-flex; }
    .header-panel {
        display: none; flex-direction: column; gap: 8px;
        width: 100%; order: 3;
        padding: 12px 0 16px; border-top: 1px solid var(--border);
        max-height: calc(100dvh - 70px); overflow-y: auto;
    }
    .header-panel.is-open { display: flex; }
    .header-bar { flex-wrap: wrap; }
    .header-cta-full {
        display: inline-flex !important; width: 100%;
        justify-content: center; margin-top: 8px;
    }
    .nav {
        flex-direction: column; width: 100%; gap: 4px;
    }
    .nav a {
        width: 100%; padding: 14px 16px; font-size: 1rem;
        min-height: 48px; display: flex; align-items: center;
    }
    .hero-grid, .about-grid, .support-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 32px 0 48px; }
    .hero-visual { order: -1; }
    .hero-sub { max-width: none; font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
    .features-grid, .features-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .features-section { margin-top: 0; padding-top: 32px; }
    .section { padding: 48px 0; }
    .section-title { font-size: 1.45rem; }
    .page-title { font-size: 1.55rem; }
    .support-grid { gap: 20px; }
    .support-box { padding: 20px; }
    .cta-banner-inner { flex-direction: column; text-align: center; }
    .cta-banner .btn-secondary-lg { width: 100%; text-align: center; }
    .teasers-row { flex-direction: column; align-items: stretch; }
    .teaser-card { text-align: center; }
    .accordion-body { padding: 0 16px 16px 16px; }
    .accordion-trigger { padding: 16px; min-height: 48px; }
    .reply-staff { margin-left: 0; }
    .reply-customer { margin-right: 0; }
}

@media (max-width: 600px) {
    .features-grid, .features-grid-4 { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-box { padding: 12px 8px; }
    .stat-box .val { font-size: 1.15rem; }
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .cards-grid-4 { grid-template-columns: 1fr; }
    .form-group input, .form-group select, .form-group textarea {
        font-size: 16px; /* يمنع تكبير iOS تلقائياً */
    }
}

@media (max-width: 380px) {
    .brand-name { font-size: 1rem; }
    .brand-logo { width: 36px; height: 36px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .footer-columns { grid-template-columns: 1fr; }
}

/* Multi-page layout */
.page-hero { padding: 48px 0 32px; }
.page-title { font-size: 2rem; font-weight: 800; }
.section-head-row {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.link-more { font-weight: 600; color: var(--primary); }
.features-grid-4 { grid-template-columns: repeat(4, 1fr); }
.steps-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.step-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; text-align: center;
}
.step-icon { font-size: 1.8rem; margin-bottom: 10px; }
.testimonials-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.testimonial-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
}
.testimonial-card footer { margin-top: 12px; font-weight: 600; color: var(--text-muted); font-size: 0.9rem; }
.cta-banner {
    background: linear-gradient(135deg, var(--accent-purple), var(--primary-deep), var(--primary));
    color: #fff; padding: 48px 0;
}
.cta-banner-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 1.5rem; font-weight: 800; }
.btn-secondary-lg {
    background: var(--secondary); color: var(--text);
    padding: 14px 28px; border-radius: 12px; font-weight: 700;
}
.legal-teasers { padding: 40px 0 64px; }
.teasers-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.teaser-card {
    padding: 14px 22px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; font-weight: 600; color: var(--primary);
}
.features-detail-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.feature-detail-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}
.feature-icon.lg { width: 56px; height: 56px; font-size: 1.6rem; margin-bottom: 14px; }
.download-box { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; max-width: 400px; margin: 0 auto; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.muted-note { color: var(--text-muted); font-size: 0.9rem; }
.legal-document { max-width: 760px; }
.legal-section { margin-bottom: 32px; }
.legal-section h2 { font-size: 1.2rem; font-weight: 700; color: var(--primary-deep); margin-bottom: 10px; }
.legal-body { color: var(--text-muted); line-height: 1.8; }
.legal-back { margin-top: 40px; }
.prose { color: var(--text-muted); line-height: 1.8; }
.vision-box {
    margin-top: 20px; padding: 16px; background: var(--overlay);
    border-radius: 12px; font-weight: 600; color: var(--primary-deep);
}
@media (max-width: 900px) {
    .steps-row { grid-template-columns: 1fr; }
    .features-detail-grid { grid-template-columns: 1fr; }
    .testimonials-row { grid-template-columns: 1fr; }
    .about-grid .about-img { aspect-ratio: 16/10; max-height: 280px; }
}
