/**
 * Intro landing enhancements — works with existing style.css and CSS variables from settings.
 */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

html {
    scroll-padding-top: 96px;
}

body {
    font-family: 'Tajawal', 'myFont', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #2d2a26;
    background:
        radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--main) 12%, transparent), transparent 55%),
        radial-gradient(900px 500px at 95% 20%, color-mix(in srgb, var(--hover) 10%, transparent), transparent 50%),
        linear-gradient(180deg, #fdfcfa 0%, #ffffff 35%, #faf8f4 100%);
    text-shadow: none;
}

/* ---------- Header ---------- */
header {
    padding: 0.65rem 0;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--main) 12%, transparent);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

header .container {
    max-width: 1140px;
}

.the-logo {
    max-height: 56px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
    transition: transform 0.35s ease;
}

.the-logo:hover {
    transform: scale(1.03);
}

.nav_bar li {
    margin: 0 0.15rem;
}

.nav_bar a {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 500;
    color: #4a463f !important;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav_bar a:hover,
.nav_bar a.active {
    color: var(--main) !important;
    background: color-mix(in srgb, var(--main) 10%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--main) 18%, transparent);
}

header .dropdown-toggle {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    border: 1px solid color-mix(in srgb, var(--main) 22%, transparent);
    background: #fff;
    color: var(--main);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dropdown-menu {
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 8px !important;
}

.dropdown-menu .dropdown-item {
    border-radius: 10px;
    font-weight: 500;
}

.body-content {
    margin-top: 88px;
}

/* ---------- Hero / slider ---------- */
.info_owl {
    min-height: 500px;
    border-radius: 0 0 32px 32px;
    background: linear-gradient(
        125deg,
        color-mix(in srgb, var(--main) 18%, #fff) 0%,
        #fff 45%,
        color-mix(in srgb, var(--hover) 12%, #fff) 100%
    );
}

.ads_wol h3 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.ads_wol p {
    font-size: 1.02rem;
    max-width: 36ch;
}

.img_owl_index {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
}

.img_owl_index:after,
.video_info_:after {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--main) 35%, transparent),
        color-mix(in srgb, var(--hover) 25%, transparent)
    );
}

.owl-carousel .owl-dot.active {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.owl-nav > div {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ---------- Section rhythm ---------- */
.sec-padd {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.the_title h3 {
    font-weight: 800;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}

.the_title p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.bacg_section .the_title p {
    opacity: 0.95;
}

/* ---------- About ---------- */
#who_we .info_JM h4 {
    font-size: 1.15rem;
    font-weight: 800;
}

#who_we .img_info_JM img {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border-radius: 24px;
}

/* ---------- Services ---------- */
.box-servess {
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-servess:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.box-servess h6 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* ---------- How it works ---------- */
#how_work .the_title .grey-color {
    color: #5c574f !important;
}

.how_work li div {
    font-weight: 600;
    margin-top: 0.5rem;
    color: #3d3933;
}

/* ---------- FAQ ---------- */
.bacg_section2 {
    background: linear-gradient(180deg, #fffefb 0%, #f7f4ee 100%);
}

.nav-link {
    border-radius: 999px !important;
    font-weight: 600;
    border: 1px solid transparent;
}

.accordion .card {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.accordion .card-header button {
    font-weight: 600;
    padding: 1rem 1.15rem;
}

/* ---------- Partners carousel ---------- */
.owl-brands .item img {
    filter: grayscale(0.15);
    opacity: 0.92;
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.owl-brands .item img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

/* ---------- Contact ---------- */
.form-content {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 2.25rem;
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control {
    border-radius: 14px !important;
    border: 1px solid #ece8e0 !important;
    background: #faf8f5 !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
}

.form-control:focus {
    background: #fff !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--main) 22%, transparent) !important;
}

.btn-main {
    border-radius: 999px !important;
    width: auto !important;
    min-width: 200px;
    padding: 0 2rem !important;
    margin-inline: auto;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--main) 35%, transparent);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--main) 45%, transparent);
}

/* ---------- Footer ---------- */
footer {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.logo_footer {
    max-width: 120px;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.15));
}

.social-m li a {
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-m li a:hover {
    transform: translateY(-3px);
    background: #fff !important;
    color: var(--main) !important;
}

.under_footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- Loader ---------- */
.loader {
    background: linear-gradient(135deg, #1a1814 0%, #2d2820 100%);
}

.loader img {
    width: 88px;
    height: auto;
}

/* ---------- Mobile nav polish ---------- */
@media (max-width: 991.98px) {
    .nav_bar {
        background: linear-gradient(160deg, color-mix(in srgb, var(--main) 92%, #000), color-mix(in srgb, var(--hover) 85%, #1a1510)) !important;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
    }

    .nav_bar a {
        color: rgba(255, 255, 255, 0.92) !important;
    }

    .nav_bar a:hover,
    .nav_bar a.active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.12) !important;
        box-shadow: none;
    }

    .info_owl {
        border-radius: 0 0 24px 24px;
    }
}

/* ---------- Privacy policy (Grabit-style content block) ---------- */
.privacy-policy-page {
    --privacy-bg: #f4f7f6;
    --privacy-card: #ffffff;
    --privacy-title: #10163a;
    --privacy-text: #4a5568;
    --privacy-heading: #1a202c;
    --privacy-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    --privacy-radius: 16px;

    background: var(--privacy-bg);
    margin-top: 88px;
    width: 100%;
    box-sizing: border-box;
    padding: 2.75rem 1.25rem 4.5rem;
    min-height: calc(100vh - 88px - 120px);
}

.privacy-policy-page__wrap {
    max-width: 920px;
    margin: 0 auto;
}

.privacy-policy-page__title {
    text-align: center;
    font-weight: 800;
    font-size: clamp(1.55rem, 3.2vw, 2.05rem);
    letter-spacing: -0.02em;
    color: var(--privacy-title);
    margin: 0 auto 1.85rem;
    line-height: 1.35;
}

.privacy-policy-card {
    background: var(--privacy-card);
    border-radius: var(--privacy-radius);
    box-shadow: var(--privacy-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.privacy-policy-card__body {
    padding: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 3.25rem);
}

/* Legal / CMS HTML inside the card */
.legal-content {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--privacy-text);
}

.legal-content > *:first-child {
    margin-top: 0;
}

.legal-content > *:last-child {
    margin-bottom: 0;
}

.legal-content p {
    margin: 0 0 1.2rem;
    text-align: start;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

/* Intro lead paragraph (first block) */
.legal-content > p:first-of-type {
    font-size: 1.05rem;
    line-height: 1.92;
    color: #3d4a5c;
    margin-bottom: 1.5rem;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
    font-weight: 800;
    color: var(--privacy-heading);
    margin: 2rem 0 0.85rem;
    font-size: 1.08rem;
    line-height: 1.45;
    text-align: start;
}

.legal-content h2:first-child,
.legal-content h3:first-child,
.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content strong,
.legal-content b {
    font-weight: 800;
    color: var(--privacy-heading);
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 1.25rem;
    padding-inline-start: 1.35rem;
    text-align: start;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.85;
}

.legal-content li:last-child {
    margin-bottom: 0;
}

.legal-content a {
    color: var(--main);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: var(--hover);
}

.legal-content blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid color-mix(in srgb, var(--main) 55%, #c5cae0);
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    color: #475569;
}

[dir='rtl'] .legal-content blockquote {
    border-radius: 12px 0 0 12px;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.85rem;
    text-align: start;
}

.legal-content th {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--privacy-heading);
}

.legal-content__empty {
    text-align: center;
    font-size: 1rem;
    padding: 1rem 0;
}

@media (max-width: 575.98px) {
    .privacy-policy-page {
        padding: 2.25rem 0.85rem 3.25rem;
    }

    .privacy-policy-card__body {
        padding: 1.5rem 1.1rem;
    }

    .legal-content {
        font-size: 0.98rem;
    }
}
