/* ══════════════════════════════════════════════════════════════
   SAFI BUSINESS — Premium Virtual Ejari Service Page
   ══════════════════════════════════════════════════════════════ */

/* ── Page & Nav ────────────────────────────────────────────── */
.ejari-page .nav-logo { height: 60px; }
.ejari-page .navbar.scrolled .nav-logo { height: 50px; }
.ejari-page .navbar { padding: 0.55rem 1.4rem; }
.ejari-page .nav-links a.active {
    background: rgba(200,164,93,0.14);
    border: 1px solid rgba(200,164,93,0.28);
    box-shadow: 0 2px 12px rgba(200,164,93,0.15);
}
.ejari-page footer { padding-bottom: 5.5rem; }
.ejari-page .whatsapp-float { bottom: 5.5rem; }

/* ── Split Hero ────────────────────────────────────────────── */
.ejari-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: auto;
    padding: 6rem 0 0;
    overflow: hidden;
    background: var(--navy);
}
.ejari-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../VE/of.jpeg') center 40% / cover no-repeat;
    z-index: 0;
    will-change: transform;
}
.ejari-hero-pattern {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='72' height='72' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 4 L40 16 L36 28 L32 16 Z M4 36 L16 32 L28 36 L16 40 Z M36 44 L40 56 L36 68 L32 56 Z M44 36 L56 32 L68 36 L56 40 Z M36 36 L40 40 L36 44 L32 40 Z' fill='rgba(200,164,93,0.03)'/%3E%3C/svg%3E") repeat;
    z-index: 1;
    pointer-events: none;
}
.ejari-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(10, 22, 40, 0.8) 0%,
        rgba(10, 22, 40, 0.5) 42%,
        rgba(15, 31, 58, 0.58) 100%
    );
    z-index: 2;
}
.ejari-hero-glow {
    position: absolute;
    bottom: -8%;
    right: -4%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 93, 0.2) 0%, transparent 68%);
    z-index: 2;
    pointer-events: none;
    animation: ejariGlowPulse 8s ease-in-out infinite;
}
@keyframes ejariGlowPulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
.ejari-hero .particles-container,
.ejari-hero .doc-floats {
    z-index: 3;
    pointer-events: none;
}
.ejari-hero > .container {
    position: relative;
    z-index: 4;
    width: 100%;
    padding-top: clamp(1rem, 3vh, 2rem);
    padding-bottom: clamp(1rem, 2vh, 1.5rem);
}
.ejari-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}
.ejari-hero-content { max-width: 620px; }
.ejari-hero-content .hero-badge { margin-bottom: 1rem; }
.ejari-hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.ejari-hero-content .hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 560px;
}
.ejari-hero-content .hero-btns { margin-bottom: 0; }

/* Floating document icons */
.doc-floats { position: absolute; inset: 0; overflow: hidden; }
.doc-float {
    position: absolute;
    color: rgba(200, 164, 93, 0.2);
    font-size: 1.1rem;
    animation: docFloat linear infinite;
}
@keyframes docFloat {
    0% { transform: translateY(105vh) rotate(0deg); opacity: 0; }
    8% { opacity: 0.6; }
    92% { opacity: 0.6; }
    100% { transform: translateY(-8vh) rotate(180deg); opacity: 0; }
}

/* ── Ejari Dashboard (hero right) ──────────────────────────── */
.ejari-dashboard {
    position: relative;
    animation: fadeUp 1s ease-out 0.25s both;
}
.ejari-dash-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 93, 0.1) 0%, transparent 65%);
    z-index: 0;
    animation: hubPulse 5s ease-in-out infinite;
}
.ejari-dash-cluster {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ejari-dash-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.15rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    animation: cardFloat 7s ease-in-out infinite;
}
.ejari-dash-card:nth-child(1) { animation-delay: 0s; margin-left: 0; }
.ejari-dash-card:nth-child(2) { animation-delay: 0.6s; margin-left: 1.25rem; }
.ejari-dash-card:nth-child(3) { animation-delay: 1.2s; margin-left: 0.25rem; }
.ejari-dash-card:nth-child(4) { animation-delay: 1.8s; margin-left: 1.75rem; }
.ejari-dash-card:nth-child(5) { animation-delay: 2.4s; margin-left: 0.75rem; }
.ejari-dash-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(200, 164, 93, 0.35);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}
.ejari-dash-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(200, 164, 93, 0.14);
    color: var(--gold);
}
.ejari-dash-icon.wa { background: rgba(37, 211, 102, 0.15); color: var(--whatsapp); }
.ejari-dash-body { flex: 1; min-width: 0; }
.ejari-dash-body strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.ejari-dash-body span {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Certificate preview mini card */
.cert-preview {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    margin-top: 0.35rem;
    border: 1px dashed rgba(200, 164, 93, 0.4);
}
.cert-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.cert-preview-header span {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.cert-preview-header i { color: var(--gold); font-size: 0.75rem; }
.cert-preview-lines {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.cert-preview-lines div {
    height: 4px;
    border-radius: 2px;
    background: rgba(10, 22, 40, 0.08);
}
.cert-preview-lines div:first-child { width: 85%; }
.cert-preview-lines div:nth-child(2) { width: 65%; }
.cert-preview-lines div:nth-child(3) { width: 45%; background: rgba(200, 164, 93, 0.25); }

.ejari-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.3rem;
}
.ejari-type-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 20px;
    background: rgba(200, 164, 93, 0.15);
    color: var(--gold);
    border: 1px solid rgba(200, 164, 93, 0.25);
}
.ejari-process-mini {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
}
.ejari-process-mini i { color: var(--gold); font-size: 0.55rem; }

/* ── Ejari Type Picker (right after hero) ──────────────────── */
.ejari-type-section {
    position: relative;
    z-index: 10;
    margin-top: -0.5rem;
    padding-bottom: 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.35) 25%, var(--navy-mid) 100%);
}
.ejari-type-section .container { padding-top: 0.5rem; }
.ejari-type-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* ── Premium Pricing Cards ─────────────────────────────────── */
.ejari-pricing-section {
    background: linear-gradient(180deg, var(--navy-mid) 0%, var(--sand) 5%, var(--sand) 100%);
    padding: 0 0 clamp(3rem, 6vw, 5rem);
}
.ejari-pricing-section .section-header {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}
.ejari-pricing-section .section-header h2 { color: var(--navy); }
.ejari-pricing-section .section-header p { color: #6b5f4e; }

.ejari-price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}
.ejari-price-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(200, 164, 93, 0.15);
    box-shadow: 0 4px 24px rgba(10, 22, 40, 0.07);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.ejari-price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}
.ejari-price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.12);
    border-color: rgba(200, 164, 93, 0.35);
}
.ejari-price-card-head {
    padding: 1.5rem 1.35rem 1rem;
}
.ejari-price-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(200, 164, 93, 0.12);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}
.ejari-price-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.35rem;
}
.ejari-price-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}
.ejari-price-amount small {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-light);
}
.ejari-price-card > p,
.ejari-price-desc {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.55;
    padding: 0 1.35rem;
    margin-bottom: 0.75rem;
}
.ejari-price-includes {
    list-style: none;
    padding: 0 1.35rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.ejari-price-includes li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text);
    padding: 0.3rem 0;
    line-height: 1.4;
}
.ejari-price-includes li i {
    color: var(--gold);
    font-size: 0.7rem;
    margin-top: 0.3rem;
}
.ejari-price-card-footer {
    padding: 0 1.35rem 1.5rem;
    margin-top: auto;
}
.ejari-price-card-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
}

/* ── Comparison Strip ──────────────────────────────────────── */
.ejari-compare {
    background: var(--white);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.ejari-compare .section-header h2 { color: var(--navy); }
.ejari-compare-table {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(200, 164, 93, 0.15);
    box-shadow: var(--shadow-md);
}
.ejari-compare-row {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.4fr 0.9fr;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
    transition: var(--transition);
}
.ejari-compare-row:last-child { border-bottom: none; }
.ejari-compare-row:not(.ejari-compare-head):hover {
    background: var(--sand-light);
}
.ejari-compare-head {
    background: var(--navy);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ejari-compare-head span { color: var(--gold); }
.ejari-compare-type {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.92rem;
}
.ejari-compare-type i {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(200, 164, 93, 0.12);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.ejari-compare-price {
    font-weight: 800;
    color: var(--gold-dark);
    font-size: 0.95rem;
}
.ejari-compare-suitable {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.45;
}
.ejari-compare-row .btn {
    justify-content: center;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    white-space: nowrap;
}

/* ── How It Works Timeline ───────────────────────────────────── */
.ejari-process {
    background: var(--navy);
    padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
    overflow: hidden;
}
.ejari-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}
.ejari-timeline-track {
    position: absolute;
    top: 38px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: rgba(200, 164, 93, 0.15);
    border-radius: 2px;
    z-index: 0;
    overflow: hidden;
}
.ejari-timeline-track-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    animation: timelineFill 2.5s ease-out 0.5s forwards;
}
@keyframes timelineFill {
    to { width: 100%; }
}
.ejari-timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.ejari-step-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(200, 164, 93, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--gold);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.ejari-timeline-step:hover .ejari-step-icon {
    background: rgba(200, 164, 93, 0.12);
    border-color: var(--gold);
    transform: scale(1.06);
}
.ejari-step-num {
    position: absolute;
    top: -4px;
    right: calc(50% - 48px);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ejari-timeline-step h4 {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--white);
}
.ejari-timeline-step p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 0 0.25rem;
}

/* ── Documents Required ────────────────────────────────────── */
.ejari-docs {
    background: var(--sand);
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.ejari-docs .section-header h2 { color: var(--navy); }
.ejari-docs .section-header p { color: #6b5f4e; }
.ejari-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}
.ejari-doc-card {
    text-align: center;
    padding: 1.65rem 1.25rem;
    background: var(--white);
    border: 1px solid rgba(200, 164, 93, 0.15);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}
.ejari-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 164, 93, 0.3);
}
.ejari-doc-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(200, 164, 93, 0.12);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.ejari-doc-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.3rem;
}
.ejari-doc-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── Why Choose ────────────────────────────────────────────── */
.ejari-trust {
    background: var(--navy-light);
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.ejari-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}
.ejari-trust-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}
.ejari-trust-card:hover {
    border-color: rgba(200, 164, 93, 0.25);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
}
.ejari-trust-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(200, 164, 93, 0.12);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.ejari-trust-card h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}
.ejari-trust-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── FAQ & Final CTA ───────────────────────────────────────── */
.ejari-faq { padding: clamp(3rem, 6vw, 5rem) 0; }
.ejari-final-cta { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.ejari-final-cta h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .ejari-price-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .ejari-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: center;
    }
    .ejari-hero-content { max-width: none; margin: 0 auto; }
    .ejari-hero-content .hero-subtitle { margin-left: auto; margin-right: auto; }
    .ejari-hero-content .hero-btns { justify-content: center; }
    .ejari-dashboard { max-width: 460px; margin: 0 auto; }
    .ejari-dash-card:nth-child(1),
    .ejari-dash-card:nth-child(2),
    .ejari-dash-card:nth-child(3),
    .ejari-dash-card:nth-child(4),
    .ejari-dash-card:nth-child(5) { margin-left: 0; }
    .ejari-timeline { grid-template-columns: repeat(3, 1fr); }
    .ejari-timeline-track { display: none; }
    .ejari-trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ejari-hero { padding: 5.5rem 0 0; }
    .ejari-type-section { margin-top: 0; background: var(--navy-mid); padding-top: 1rem; }
    .ejari-price-grid { grid-template-columns: 1fr; }
    .ejari-compare-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
        padding: 1.25rem 1rem;
    }
    .ejari-compare-head { display: none; }
    .ejari-compare-type { justify-content: center; }
    .ejari-compare-row .btn { width: 100%; }
    .ejari-timeline { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .ejari-docs-grid { grid-template-columns: 1fr 1fr; }
    .ejari-trust-grid { grid-template-columns: 1fr; }
    .ejari-page .whatsapp-float { bottom: 4.5rem; right: 1rem; }
}

@media (max-width: 480px) {
    .ejari-hero-content .hero-btns { flex-direction: column; }
    .ejari-hero-content .hero-btns .btn { width: 100%; }
    .ejari-timeline { grid-template-columns: 1fr; }
    .ejari-docs-grid { grid-template-columns: 1fr; }
}