:root {
    --salem-navy: #1a4d8c;
    --salem-blue: #2d7bb8;
    --salem-cyan: #4ec5e8;
    --salem-cyan-soft: #b8e8f5;
    --salem-ink: #2c3e50;
    --salem-muted: #6b7c8f;
    --salem-bg: #f4f9fc;
    --salem-card: #ffffff;
    --salem-radius: 20px;
    --salem-shadow: 0 12px 40px rgba(26, 77, 140, 0.08);
    --font: 'Tajawal', 'Cairo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--salem-ink);
    background: var(--salem-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.salem-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.salem-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 77, 140, 0.06);
}

.salem-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.salem-logo--text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.salem-logo__ar {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--salem-navy), var(--salem-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.salem-logo__ar::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 2px;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8'%3E%3Cpath d='M0 4 H20 L26 1 L32 7 L38 2 L44 4 H80' fill='none' stroke='%234ec5e8' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.85;
}

.salem-logo__en {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.38em;
    color: var(--salem-muted);
    margin-top: 2px;
    margin-right: -0.38em;
}

.salem-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.salem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.salem-btn:active { transform: scale(0.98); }

.salem-btn--ghost {
    background: transparent;
    color: var(--salem-muted);
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 12px;
}

.salem-btn--ghost:hover { color: var(--salem-navy); background: rgba(26, 77, 140, 0.06); }

.salem-btn--primary {
    background: linear-gradient(135deg, var(--salem-navy), var(--salem-blue));
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(26, 77, 140, 0.25);
}

.salem-btn--primary:hover {
    box-shadow: 0 12px 28px rgba(26, 77, 140, 0.32);
}

.salem-btn--circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 0;
    flex-shrink: 0;
}

.salem-main {
    flex: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    width: 100%;
}

.salem-hero {
    display: grid;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.salem-hero__side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

@media (min-width: 900px) {
    .salem-hero {
        grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.05fr);
        gap: 32px 40px;
        align-items: start;
        margin-bottom: 24px;
    }

    .salem-hero__visual {
        position: sticky;
        top: 88px;
    }
}

.salem-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.salem-hero__blob {
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(78, 197, 232, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.salem-hero__slide {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    width: 100%;
    max-width: 320px;
}

.salem-hero__slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.salem-hero__card .salem-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.salem-hero__card .salem-hero__slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.salem-hero__slides-text {
    position: relative;
    min-height: 5.5rem;
    margin-bottom: 20px;
}

.salem-hero__card {
    background: var(--salem-card);
    border-radius: 28px 28px 8px 8px;
    padding: 28px 24px 32px;
    box-shadow: var(--salem-shadow);
    margin-top: -12px;
}

.salem-services-panel {
    scroll-margin-top: 88px;
}

.salem-services-panel .salem-section-head {
    text-align: right;
    margin-bottom: 14px;
}

.salem-services-panel .salem-section-head h2 {
    font-size: 1.25rem;
}

.salem-services-panel .salem-section-head p {
    font-size: 0.88rem;
    line-height: 1.5;
}

.salem-hero__title {
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 800;
    line-height: 1.55;
    margin: 0 0 20px;
    color: var(--salem-ink);
}

.salem-hero__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.salem-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.salem-dots button {
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--salem-cyan-soft);
    width: 8px;
    height: 8px;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.salem-dots button.is-active {
    width: 28px;
    background: var(--salem-navy);
}

.salem-section-head {
    text-align: center;
    margin-bottom: 28px;
}

.salem-section-head h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--salem-navy);
}

.salem-section-head p {
    margin: 0;
    color: var(--salem-muted);
    font-size: 0.95rem;
}

.salem-services {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 900px) {
    .salem-services { gap: 12px; }
}

.salem-service {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: right;
    width: 100%;
    padding: 18px 18px 18px 16px;
    border: 1px solid transparent;
    border-radius: var(--salem-radius);
    box-shadow: 0 8px 22px rgba(26, 77, 140, 0.07);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, filter 0.25s;
    position: relative;
    overflow: hidden;
}

.salem-service::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.55;
    pointer-events: none;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.65), transparent 55%);
}

.salem-service--tone-0 {
    background: linear-gradient(135deg, #e3f2fb 0%, #c8e4f6 48%, #b3d9f0 100%);
    color: #153e6e;
    --svc-hint: #3d5f7a;
    --svc-icon-bg: rgba(255, 255, 255, 0.72);
    --svc-icon-color: #1a4d8c;
}

.salem-service--tone-1 {
    background: linear-gradient(135deg, #e6f7f4 0%, #cceee8 50%, #b8e5dc 100%);
    color: #0f4d45;
    --svc-hint: #3a6660;
    --svc-icon-bg: rgba(255, 255, 255, 0.75);
    --svc-icon-color: #0f766e;
}

.salem-service--tone-2 {
    background: linear-gradient(135deg, #eef0ff 0%, #d9dcfa 50%, #c5caf5 100%);
    color: #2a3578;
    --svc-hint: #4a5288;
    --svc-icon-bg: rgba(255, 255, 255, 0.75);
    --svc-icon-color: #3d4db7;
}

.salem-service--tone-3 {
    background: linear-gradient(135deg, #fff4e8 0%, #ffe8cc 50%, #ffd9b0 100%);
    color: #6b3a12;
    --svc-hint: #8a5a32;
    --svc-icon-bg: rgba(255, 255, 255, 0.78);
    --svc-icon-color: #c05621;
}

.salem-service--tone-4 {
    background: linear-gradient(135deg, #fce8f3 0%, #f5d4e8 50%, #ecc0de 100%);
    color: #6b2454;
    --svc-hint: #884668;
    --svc-icon-bg: rgba(255, 255, 255, 0.78);
    --svc-icon-color: #a8327a;
}

.salem-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(26, 77, 140, 0.12);
    filter: saturate(1.05);
}

.salem-service.is-selected {
    border-color: rgba(26, 77, 140, 0.45);
    box-shadow: 0 0 0 3px rgba(45, 123, 184, 0.22), 0 14px 34px rgba(26, 77, 140, 0.14);
    filter: saturate(1.08);
}

.salem-service__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--svc-icon-bg, rgba(255, 255, 255, 0.72));
    color: var(--svc-icon-color, var(--salem-navy));
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(26, 77, 140, 0.08);
}

.salem-service__body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.salem-service__title {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.45;
    color: inherit;
}

.salem-service__hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--svc-hint, var(--salem-muted));
    font-weight: 500;
}

.salem-service__fee {
    margin: 6px 0 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--svc-icon-color, var(--salem-navy));
    letter-spacing: 0.01em;
}

.salem-service__arrow {
    flex-shrink: 0;
    color: var(--svc-icon-color, var(--salem-cyan));
    font-size: 1.1rem;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    opacity: 0.85;
}

.salem-cta-bar {
    position: sticky;
    bottom: 0;
    z-index: 40;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(244, 249, 252, 0.98) 70%, transparent);
}

.salem-cta-bar__inner {
    max-width: 480px;
    margin: 0 auto;
}

.salem-cta-bar .salem-btn--primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
}

.salem-btn--cta-bottom {
    --cta-dim: 0;
    transition:
        filter 0.45s ease,
        opacity 0.45s ease,
        box-shadow 0.45s ease,
        transform 0.2s ease,
        background 0.45s ease;
}

.salem-btn--cta-bottom:not(.is-lit) {
    filter: grayscale(calc(var(--cta-dim) * 0.9)) brightness(calc(1.08 - var(--cta-dim) * 0.18));
    opacity: calc(1 - var(--cta-dim) * 0.28);
    box-shadow: 0 8px 24px rgba(26, 77, 140, calc(0.25 * (1 - var(--cta-dim) * 0.85)));
}

.salem-btn--cta-bottom.is-lit {
    --cta-dim: 0 !important;
    filter: none;
    opacity: 1;
    box-shadow: 0 12px 28px rgba(26, 77, 140, 0.32);
}

.salem-footer {
    text-align: center;
    padding: 24px 20px 100px;
    font-size: 0.8rem;
    color: var(--salem-muted);
}

.salem-toast {
    position: fixed;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--salem-navy);
    color: #fff;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 60;
    max-width: min(92vw, 360px);
    text-align: center;
}

.salem-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.salem-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 35, 60, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.salem-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.salem-modal__sheet {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 24px 24px 16px 16px;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.salem-modal.is-open .salem-modal__sheet {
    transform: translateY(0);
}

.salem-modal__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--salem-navy);
}

.salem-modal__text {
    margin: 0 0 20px;
    color: var(--salem-muted);
    font-size: 0.92rem;
}

.salem-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.salem-modal__actions .salem-btn--ghost {
    border: 1px solid rgba(26, 77, 140, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
