/* ============================================================
   رؤية العقار — Brand Theme matched to the mobile app
   Palette: white + muted forest green (#4F7268)
   ============================================================ */

:root {
    --accent-rgb: 79, 114, 104;
    --main-rgb: 79, 114, 104;
    --surface: #FFFFFF;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
}

/* ── HEADER ── */
header#site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

header#site-header.scrolled {
    padding: 8px 0;
    background: rgba(var(--main-rgb), 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 24px rgba(var(--main-rgb), 0.28);
}

.header-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
    white-space: nowrap;
}

.nav_bar li a::after {
    background: #fff;
    height: 2px;
    border-radius: 999px;
}

.nav_bar li a:hover,
.nav_bar li a.active {
    color: #fff;
}

.lang-btn {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
}

.lang-btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.dropdown-menu {
    background: var(--main);
    border-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
}

.dropdown-menu::after {
    border-color: var(--main) transparent transparent var(--main);
}

.dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-menu .dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.close-open-nav > div span {
    background: #fff;
}

/* ── HERO SLIDER ── */
.hero-slide {
    position: relative;
    background-color: #2A3F38;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow: hidden;
}

.hero-overlay {
    background:
        radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
        linear-gradient(155deg, rgba(36, 56, 50, 0.78) 0%, rgba(47, 70, 63, 0.58) 40%, rgba(30, 47, 42, 0.74) 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(255,255,255,0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.45) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%);
}

.hero-glow,
.hero-particles,
.field-lines-bg,
.hero-visual-core,
.hero-visual-ring,
.stat-badge {
    display: none !important;
}

.hero-image-frame {
    display: block;
    position: absolute;
    inset: 10%;
    width: auto;
    height: auto;
    z-index: 1;
}

.hero-image-ring {
    display: block;
    border-color: rgba(255, 255, 255, 0.38);
}

.hero-image-frame img {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hero-content-wrapper { position: relative; z-index: 2; }

.hero-badge {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.hero-badge i { font-size: 12px; color: #fff; }

.hero-title {
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.hero-title span { color: #fff; }
.hero-desc { color: rgba(255, 255, 255, 0.86); max-width: 520px; }

.btn-gold,
.hero-cta .btn-gold {
    background: #fff !important;
    color: #2A3F38 !important;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.btn-gold:hover,
.hero-cta .btn-gold:hover {
    background: #F4F7F6 !important;
    color: #1E2F2A !important;
    transform: translateY(-2px);
}

.btn-outline-white {
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-weight: 700;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.app-badge {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-badge i,
.app-badge strong,
.app-badge small { color: #fff; }

.owl-index .owl-dots { z-index: 3; }
.owl-index .owl-dot { background: rgba(255,255,255,0.35) !important; }
.owl-index .owl-dot.active {
    background: #fff !important;
    width: 28px !important;
    border-radius: 999px !important;
}

/* Hero visual — property trust composition */
.hero-image-col {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 460px;
}

.hero-visual {
    position: relative;
    width: min(460px, 92%);
    aspect-ratio: 1;
    margin: 0 auto;
}

.hero-visual-glow {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 68%);
    filter: blur(6px);
}

.hero-visual-ring {
    position: absolute;
    inset: 6%;
    border: 1.5px dashed rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    animation: heroRingSpin 28s linear infinite;
}

.hero-visual-ring--inner {
    inset: 20%;
    border-color: rgba(255, 255, 255, 0.2);
    animation-direction: reverse;
    animation-duration: 36s;
}

.hero-visual-core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 92px;
    height: 92px;
    margin: -46px 0 0 -46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
}

.hero-visual-core i {
    font-size: 34px;
    color: #fff;
}

.hero-pill {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px 11px 12px;
    background: #fff;
    color: #2A3F38;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    animation: heroPillFloat 5.5s ease-in-out infinite;
}

.hero-pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #EEF3F1;
    flex-shrink: 0;
}

.hero-pill-icon i {
    color: #2A3F38;
    font-size: 14px;
}

.hero-pill-text {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    letter-spacing: 0.2px;
}

.hero-pill-1 {
    top: 11%;
    right: -2%;
    animation-delay: 0s;
}

.hero-pill-2 {
    top: 44%;
    left: -6%;
    animation-delay: 0.7s;
}

.hero-pill-3 {
    bottom: 12%;
    right: 4%;
    animation-delay: 1.3s;
}

@keyframes heroRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heroPillFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 991.98px) {
    .hero-image-col {
        min-height: 280px;
        margin-top: 10px;
        order: -1;
    }

    .hero-visual {
        width: min(300px, 78%);
    }

    .hero-visual-core {
        width: 70px;
        height: 70px;
        margin: -35px 0 0 -35px;
    }

    .hero-visual-core i { font-size: 26px; }

    .hero-pill {
        font-size: 12px;
        padding: 8px 12px 8px 8px;
        gap: 8px;
    }

    .hero-pill-icon {
        width: 28px;
        height: 28px;
    }

    .hero-pill-icon i { font-size: 12px; }

    .hero-text-col { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-cta,
    .app-badges { justify-content: center; }
}

/* ── FOOTER ── */
footer {
    background: linear-gradient(180deg, var(--hover) 0%, var(--main) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-name {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.footer-brand-link { text-decoration: none; }

footer::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    top: -60px;
    right: -60px;
    left: auto;
    bottom: auto;
    width: 280px;
    height: 280px;
}

.footer-about { border-right-color: rgba(255, 255, 255, 0.2); }
.footer-about__text + .footer-about__text { border-top-color: rgba(255, 255, 255, 0.15); }
.footer-about__badge { border-top-color: rgba(255, 255, 255, 0.15); }

.footer-about__badge span {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
    border-radius: 999px;
    color: #fff;
}

.footer-about__badge i { color: #fff; }

.social-m li a {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
}

.social-m li a:hover {
    background: #fff;
    border-color: #fff;
    color: var(--main);
}

.Tfooter { color: #fff; }
.Tfooter::after { background: #fff; }
.link-footer li a { color: rgba(255, 255, 255, 0.85); }
.link-footer li a:hover { color: #fff; }
.link-footer li i { color: rgba(255, 255, 255, 0.85); }

.under_footer {
    background: rgba(0, 0, 0, 0.15);
    border-top-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.under_footer a { color: #fff; }

/* ── MOBILE BOTTOM NAV ── */
.mobile-footer-nav {
    background: #fff !important;
    border-top: 1px solid rgba(var(--main-rgb), 0.1) !important;
    box-shadow: 0 -6px 24px rgba(var(--main-rgb), 0.1) !important;
    backdrop-filter: none !important;
}

.mobile-footer-nav .footer-nav-item {
    color: #9AA5A1;
}

.mobile-footer-nav .footer-nav-item::before {
    background: var(--main) !important;
    height: 3px;
}

.mobile-footer-nav .footer-nav-item:hover,
.mobile-footer-nav .footer-nav-item.active {
    color: var(--main) !important;
}

.mobile-footer-nav .footer-nav-item.active span,
.mobile-footer-nav .footer-nav-item.active i {
    color: var(--main) !important;
    font-weight: 800;
}

/* ── SCROLL TOP ── */
.scroll-top-btn {
    background: var(--main);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(var(--main-rgb), 0.35);
}

.scroll-top-btn:hover {
    background: var(--hover);
    color: #fff;
}

/* ── LOADER ── */
.loader { background: var(--main); }

.loader-bar {
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
}

.body-content.inner-page {
    background: #fff;
    color: var(--main);
}

/* ── STATS BAR ── */
.stats-bar {
    background: #fff;
    border-top: none;
    border-bottom: 1px solid rgba(var(--main-rgb), 0.08);
    box-shadow: 0 8px 24px rgba(var(--main-rgb), 0.06);
}

.stats-bar::before { display: none; }

.stat-item {
    border-radius: var(--radius-md);
}

.stat-number { color: var(--main); }
.stat-icon { color: var(--main); }
.stat-label { color: #6B7873; }

/* ── WHITE SECTIONS + GREEN ACCENTS ── */
.about-section,
.how-works-section,
.contact-section {
    background: #fff;
}

.about-info .section-title,
.section-title-dark {
    color: var(--main) !important;
}

.section-label-green,
.section-label {
    color: var(--main) !important;
    background: rgba(var(--main-rgb), 0.1) !important;
    border-color: rgba(var(--main-rgb), 0.18) !important;
    border-radius: 999px;
}

.section-divider,
.section-divider-right {
    background: var(--main) !important;
    border-radius: 999px;
}

.about-feature-item,
.service-card,
.contact-form-card,
.contact-card,
.faq-item,
.how-step {
    border-radius: var(--radius-md) !important;
    background: #fff;
    border: 1px solid rgba(var(--main-rgb), 0.1);
    box-shadow: 0 8px 24px rgba(var(--main-rgb), 0.06);
}

.about-feature-icon,
.service-icon-wrap,
.contact-card-icon,
.how-step-num {
    background: var(--main) !important;
    color: #fff !important;
    border-radius: 50% !important;
}

.service-card h6,
.how-step-title,
.about-feature-text h6 {
    color: var(--main);
}

.services-section,
.faq-section,
.partners-section {
    background: linear-gradient(180deg, var(--main) 0%, var(--hover) 100%) !important;
}

.section-title-white,
.services-section .section-title,
.faq-section .section-title,
.partners-section .section-title {
    color: #fff !important;
}

.section-label-gold-dark {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    border-radius: 999px;
}

/* FAQ tabs — active must stay readable on dark green section */
.faq-tab-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
    background: transparent !important;
}

.faq-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-color: #fff !important;
}

.faq-tab-btn.active {
    background: #fff !important;
    border-color: #fff !important;
    color: #2A3F38 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
}

.about-img-main,
.about-img-secondary {
    border-radius: var(--radius-lg) !important;
}

.about-download-badge {
    border-radius: 999px !important;
    background: var(--main) !important;
    color: #fff !important;
}

.faq-question:hover,
.faq-item.open .faq-question,
.faq-chevron {
    color: var(--main) !important;
}

.faq-item.open {
    border-color: var(--main) !important;
}

.contact-form-card .btn,
.contact-form-card button[type="submit"],
.send-message button[type="submit"] {
    background: var(--main) !important;
    color: #fff !important;
    border-radius: 999px !important;
    border: none !important;
}

.form-floating-group .form-control:focus {
    border-color: var(--main) !important;
    box-shadow: 0 0 0 3px rgba(var(--main-rgb), 0.15) !important;
}

@media (max-width: 991.98px) {
    body { background-color: #fff; }

    .hero-content-wrapper { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .app-badges { justify-content: center; }
}
