/* ==========================================================================
   DriveEstate — brand overrides (blue palette) on top of the base landing template
   (loaded AFTER style.css)
   ========================================================================== */

:root {
    --cm-tan: #1d6ff2;
    --cm-tan-dark: #0b53c4;
    --cm-tan-soft: #d8e8ff;
    --cm-dark: #10233d;
    --cm-darker: #0a1626;
    --cm-cream: #f2f7fd;
    --cm-ink: #1f2a3d;
    --cm-green: #1e8449;
    --cm-red: #d7262c;
}

/* ---------- Typography ------------------------------------------------- */

body,
p,
.card-title,
.rounded-pill,
.main-heading,
.sub-heading,
.navbar .nav-item a.nav-link,
.outer-window .nav-link {
    font-family: 'Tajawal', 'Roboto', 'Segoe UI', sans-serif;
}

body {
    background-color: #fff;
    color: var(--cm-ink);
    overflow-x: hidden;
}

.grey-color {
    color: var(--cm-ink);
}

/* ---------- Navbar ------------------------------------------------------ */

.navbar.fixed-menu {
    background-color: var(--cm-dark) !important;
}

.inner-window {
    background-color: var(--cm-dark) !important;
}

.navbar-light .navbar-nav .nav-link.active {
    border-color: var(--cm-tan);
    color: #fff;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--cm-tan-soft);
}

.outer-window .nav-link:hover {
    color: var(--cm-tan);
}

/* white badge so the multi-colour logo stays legible on the dark header */
.logo .cm-badge,
.logo-small .cm-badge {
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.logo .cm-badge img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.logo-small .cm-badge img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-small .cm-badge {
    margin-top: 22px;
    margin-inline-start: 25px;
}

.logo-small img {
    margin: 0;
}

/* ---------- Hero -------------------------------------------------------- */

.bg-header {
    background-color: var(--cm-darker) !important;
    background-image: linear-gradient(135deg, #12406f 0%, #0e2c52 55%, #0a1626 100%);
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 90px;
    margin-bottom: 90px;
    position: relative;
    overflow: hidden;
}

/* soft sand glow behind the phone mock */
.bg-header::after {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 111, 235, .22) 0%, rgba(37, 111, 235, 0) 70%);
    bottom: -220px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.bg-header .row,
.bg-header .header-text,
.bg-header .mobile-img {
    position: relative;
    z-index: 1;
}

.bg-header .header-text {
    margin-top: 9%;
}

.bg-header .main-heading {
    font-weight: 700;
    letter-spacing: .5px;
}

.bg-header .sub-heading {
    font-weight: 400;
    line-height: 1.9;
    opacity: .92;
}

.cm-hero-logo {
    background: #fff;
    border-radius: 26px;
    padding: 18px 22px;
    display: inline-block;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.cm-hero-logo img {
    width: 150px;
    height: auto;
    display: block;
}

.cm-hero-actions {
    margin-top: 34px;
}

.cm-hero-actions .cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 190px;
    padding: 13px 26px;
    margin: 6px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease;
}

.cm-hero-actions .cm-btn-solid {
    background: var(--cm-tan);
    color: #fff;
    border: 2px solid var(--cm-tan);
}

.cm-hero-actions .cm-btn-solid:hover {
    background: var(--cm-tan-dark);
    border-color: var(--cm-tan-dark);
    color: #fff;
}

.cm-hero-actions .cm-btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .55);
}

.cm-hero-actions .cm-btn-ghost:hover {
    background: #fff;
    color: var(--cm-dark);
    border-color: #fff;
}

.cm-hero-actions .cm-btn i {
    font-size: 21px;
}

/* ---------- Features ---------------------------------------------------- */

#services {
    padding-bottom: 90px;
}

.feature-icon {
    background-color: var(--cm-tan) !important;
    background-image: linear-gradient(135deg, var(--cm-tan) 0%, var(--cm-tan-dark) 100%) !important;
    box-shadow: 1px 4px 14px rgba(29, 111, 242, .35);
}

.media-element .line {
    background-color: var(--cm-tan) !important;
    background-image: linear-gradient(135deg, var(--cm-tan) 0%, var(--cm-tan-dark) 100%) !important;
}

.media-element .media:hover {
    border-color: var(--cm-tan-soft);
    box-shadow: 1px 4px 18px rgba(29, 111, 242, .25);
}

.media-element .media-body p {
    line-height: 1.9;
}

/* ---------- Screenshots ------------------------------------------------- */

.screenshots {
    background: var(--cm-cream);
    padding: 90px 0;
    margin-bottom: 0 !important;
}

.owl-carousel .item img {
    border-radius: 22px;
    border: 1px solid #dbe7f7;
    box-shadow: 0 14px 34px rgba(38, 40, 44, .14);
    width: 100%;
    height: auto;
    background: #fff;
}

.owl-carousel .item {
    padding: 12px 6px;
}

/* ---------- Store ------------------------------------------------------- */

.store {
    padding: 90px 0;
}

.get-btn {
    border: 2px solid var(--cm-tan) !important;
    color: var(--cm-ink) !important;
    padding: 15px 25px !important;
    font-weight: 700;
}

.get-btn:hover {
    background-image: linear-gradient(135deg, var(--cm-tan) 0%, var(--cm-tan-dark) 100%) !important;
    border-color: var(--cm-tan-dark) !important;
    color: #fff !important;
}

.get-btn.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.get-btn .get-icon,
.get-btn .get-icon-2 {
    font-size: 22px;
}

/* ---------- Footer ------------------------------------------------------ */

#footer {
    background-color: var(--cm-dark);
    background-image: linear-gradient(135deg, #123056 0%, #0a1626 100%);
    padding: 60px 0 40px;
    color: #fff;
}

#footer .footer_text,
#footer .footer_text a {
    color: rgba(255, 255, 255, .85) !important;
}

#footer .footer-icon {
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

#footer .footer_list a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 20px;
    transition: .3s ease;
}

#footer .footer_list a:hover {
    background: var(--cm-tan);
    border-color: var(--cm-tan);
    color: #fff;
}

.cm-footer-logo {
    width: 74px;
    height: auto;
    background: #fff;
    border-radius: 18px;
    padding: 8px;
    margin-bottom: 22px;
}

/* ---------- Privacy policy page ----------------------------------------- */

.cm-page-head {
    background-color: var(--cm-darker);
    background-image: linear-gradient(135deg, #123056 0%, #0a1626 100%);
    padding: 150px 0 70px;
    text-align: center;
    color: #fff;
}

.cm-page-head .main-heading,
.cm-page-head .sub-heading {
    color: #fff;
}

.cm-policy {
    padding: 70px 0 90px;
}

.cm-policy .cm-updated {
    display: inline-block;
    background: var(--cm-tan-soft);
    color: var(--cm-tan-dark);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 34px;
}

.cm-policy h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--cm-ink);
    margin-bottom: 12px;
}

.cm-policy section {
    margin-bottom: 34px;
    padding-inline-start: 18px;
    border-inline-start: 3px solid var(--cm-tan-soft);
}

.cm-policy p {
    line-height: 2;
    color: #5a5f66;
    margin: 0;
}

/* ---------- RTL --------------------------------------------------------- */

[dir="rtl"] .navbar-nav {
    padding-inline-start: 0;
}

[dir="rtl"] .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .mr-2,
[dir="rtl"] .mr-3 {
    margin-right: 0 !important;
}

[dir="rtl"] .mr-2 {
    margin-left: .5rem !important;
}

[dir="rtl"] .mr-3 {
    margin-left: 1rem !important;
}

[dir="rtl"] .outer-window .nav-item a {
    text-align: right;
}

[dir="rtl"] .offset-lg-2 {
    margin-left: 0;
    margin-right: 16.666667%;
}

@media (max-width: 991px) {
    [dir="rtl"] .offset-lg-2 {
        margin-right: 0;
    }
}

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 767px) {
    .bg-header .header-text {
        margin-top: 100px;
    }

    .bg-header .main-heading {
        font-size: 34px;
    }

    .bg-header .sub-heading {
        font-size: 15px;
    }

    .main-heading {
        font-size: 28px;
    }

    .cm-hero-actions .cm-btn {
        min-width: 84%;
    }

    .cm-hero-logo img {
        width: 110px;
    }
}

/* ---------- Mumayaz logo treatment (square artwork) ---------------------- */

.logo .cm-badge,
.logo-small .cm-badge {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.logo .cm-badge img,
.logo-small .cm-badge img {
    border-radius: 12px;
}

.cm-hero-logo {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.cm-hero-logo img {
    border-radius: 34px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

.cm-footer-logo {
    background: transparent;
    padding: 0;
    border-radius: 18px;
}

.store img.cm-store-logo {
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(38, 40, 44, .18);
}

/* ---------- Policy / terms rich content --------------------------------- */

.cm-policy .cm-rich > p,
.cm-policy .policy-intro {
    line-height: 2;
    color: #5a5f66;
    margin: 0 0 22px;
}

.cm-policy .policy-sections {
    list-style: none;
    counter-reset: cm-section;
    padding: 0;
    margin: 0;
}

.cm-policy .policy-section {
    counter-increment: cm-section;
    position: relative;
    margin-bottom: 26px;
    padding: 18px 22px;
    background: var(--cm-cream);
    border: 1px solid #dbe7f7;
    border-inline-start: 3px solid var(--cm-tan);
    border-radius: 14px;
}

.cm-policy .policy-section::before {
    content: counter(cm-section);
    position: absolute;
    top: 18px;
    inset-inline-start: -17px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-image: linear-gradient(135deg, var(--cm-tan) 0%, var(--cm-tan-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(29, 111, 242, .3);
}

.cm-policy .policy-section > p {
    margin: 0;
    line-height: 2;
    color: var(--cm-ink);
    font-weight: 500;
}

.cm-policy .policy-section ul {
    margin: 12px 0 0;
    padding-inline-start: 20px;
}

.cm-policy .policy-section ul li {
    line-height: 1.9;
    color: #5a5f66;
    margin-bottom: 6px;
}

.cm-policy .policy-section ul li::marker {
    color: var(--cm-tan);
}

.cm-policy-contact {
    color: #5a5f66;
    line-height: 2;
    margin-top: 34px;
}

@media (max-width: 767px) {
    .cm-policy .policy-section {
        padding: 16px 16px 16px 16px;
    }

    .cm-policy .policy-section::before {
        position: static;
        margin-bottom: 10px;
    }
}

/* ---------- Contact buttons (email + phone) ----------------------------- */
.cm-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}
.cm-contact-buttons .get-btn { margin: 0; }
