/* ══════════════════════════════════════════════
   REEMCO — Building Materials Saudi Arabia
   SEO Authority Page Styles
   Design: Premium RTL, Cairo font, brand colors
   ══════════════════════════════════════════════ */

/* ─── Base ─── */
.rc-bm {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: #1a1a2e;
    line-height: 1.8;
    overflow-x: hidden;
}

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

.rc-bm__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.rc-bm__hero {
    position: relative;
    padding: 80px 24px 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    overflow: hidden;
}

.rc-bm__hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(232, 180, 76, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(27, 94, 59, 0.10) 0%, transparent 50%);
    animation: rc-bm-bg-pulse 12s ease-in-out infinite;
}

@keyframes rc-bm-bg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.rc-bm__hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #fff 0%, transparent 100%);
    z-index: 1;
}

.rc-bm__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.rc-bm__hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(232, 180, 76, 0.25);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 28px;
    color: #e8b44c;
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rc-bm__hero-badge i {
    font-size: 0.9rem;
}

.rc-bm__hero-title {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.rc-bm__highlight {
    background: linear-gradient(135deg, #e8b44c 0%, #d4a03c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rc-bm__hero-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
    line-height: 1.85;
    margin: 0 0 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rc-bm__hero-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* ─── Buttons ─── */
.rc-bm__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.rc-bm__btn--primary {
    background: linear-gradient(135deg, #e8b44c, #d4a03c);
    color: #1a1a2e;
    box-shadow: 0 4px 16px rgba(232, 180, 76, 0.35);
}

.rc-bm__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232, 180, 76, 0.45);
    color: #1a1a2e;
}

.rc-bm__btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.rc-bm__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-2px);
}

.rc-bm__btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.rc-bm__btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #e8b44c;
    color: #e8b44c;
    transform: translateY(-2px);
}

.rc-bm__btn--lg {
    padding: 16px 36px;
    font-size: 1.02rem;
}

/* ─── Hero Stats ─── */
.rc-bm__hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.rc-bm__stat {
    text-align: center;
}

.rc-bm__stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #e8b44c;
    line-height: 1.2;
}

.rc-bm__stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.rc-bm__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
}


/* ══════════════════════════════════════
   SECTIONS — Shared
   ══════════════════════════════════════ */
.rc-bm__section {
    padding: 70px 0;
}

.rc-bm__section:nth-child(even) {
    background: #fafbfc;
}

.rc-bm__section-header {
    text-align: center;
    margin-bottom: 50px;
}

.rc-bm__section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(27, 94, 59, 0.08), rgba(27, 94, 59, 0.04));
    color: #1B5E3B;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
    border: 1px solid rgba(27, 94, 59, 0.1);
}

.rc-bm__section-tag i {
    font-size: 0.78rem;
}

.rc-bm__section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 14px;
    line-height: 1.4;
}

.rc-bm__section-desc {
    color: #666;
    font-size: 1rem;
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ══════════════════════════════════════
   MARKET CONTEXT
   ══════════════════════════════════════ */
.rc-bm__market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rc-bm__market-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid #eef0f2;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
    position: relative;
    overflow: hidden;
}

.rc-bm__market-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #1B5E3B, #e8b44c);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 4px 4px;
}

.rc-bm__market-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.rc-bm__market-card:hover::before {
    height: 100%;
}

.rc-bm__market-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(27, 94, 59, 0.1), rgba(27, 94, 59, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #1B5E3B;
    font-size: 1.2rem;
}

.rc-bm__market-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.rc-bm__market-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
}


/* ══════════════════════════════════════
   SAUDI COVERAGE
   ══════════════════════════════════════ */
.rc-bm__coverage-text {
    max-width: 860px;
    margin: 0 auto 40px;
}

.rc-bm__coverage-text p {
    color: #555;
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 16px;
}

.rc-bm__coverage-text p:last-child {
    margin-bottom: 0;
}

.rc-bm__coverage-text strong {
    color: #1a1a2e;
    font-weight: 700;
}

.rc-bm__cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.rc-bm__city-card {
    background: #fff;
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    border: 1px solid #eef0f2;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rc-bm__city-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 3px;
    background: linear-gradient(90deg, #1B5E3B, #e8b44c);
    transition: left 0.35s, right 0.35s;
    border-radius: 3px 3px 0 0;
}

.rc-bm__city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.rc-bm__city-card:hover::after {
    left: 20%;
    right: 20%;
}

.rc-bm__city-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7f0f3, #efe8ec);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #1B5E3B;
    font-size: 1rem;
}

.rc-bm__city-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.rc-bm__city-card p {
    font-size: 0.78rem;
    color: #999;
    margin: 0;
}


/* ══════════════════════════════════════
   BUYING GUIDE
   ══════════════════════════════════════ */
.rc-bm__guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.rc-bm__guide-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid #eef0f2;
    transition: transform 0.35s, box-shadow 0.35s;
    position: relative;
}

.rc-bm__guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.rc-bm__guide-num {
    font-size: 2.6rem;
    font-weight: 900;
    color: rgba(27, 94, 59, 0.08);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Inter', 'Cairo', sans-serif;
}

.rc-bm__guide-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.rc-bm__guide-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.85;
    margin: 0 0 16px;
}

.rc-bm__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rc-bm__guide-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.rc-bm__guide-list li i {
    color: #1B5E3B;
    font-size: 0.78rem;
    flex-shrink: 0;
}


/* ══════════════════════════════════════
   WHY REEMCO
   ══════════════════════════════════════ */
.rc-bm__why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.rc-bm__why-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 26px;
    border: 1px solid #eef0f2;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rc-bm__why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(27, 94, 59, 0.15);
}

.rc-bm__why-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1B5E3B, #164E31);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(27, 94, 59, 0.2);
}

.rc-bm__why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.rc-bm__why-card p {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.8;
    margin: 0;
}

/* ─── Internal Links Bar ─── */
.rc-bm__links-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    background: linear-gradient(135deg, #fafbfc, #f5f6f8);
    border-radius: 16px;
    border: 1px solid #eef0f2;
}

.rc-bm__link-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s;
}

.rc-bm__link-item:hover {
    border-color: #1B5E3B;
    color: #1B5E3B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 59, 0.1);
}

.rc-bm__link-item i {
    font-size: 0.8rem;
    color: #1B5E3B;
}


/* ══════════════════════════════════════
   FAQ SECTION
   ══════════════════════════════════════ */
.rc-bm__faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rc-bm__faq-item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef0f2;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.rc-bm__faq-item[open] {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    border-color: rgba(27, 94, 59, 0.15);
}

.rc-bm__faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a1a2e;
    list-style: none;
    transition: background 0.2s;
    gap: 12px;
}

.rc-bm__faq-q::-webkit-details-marker {
    display: none;
}

.rc-bm__faq-q::marker {
    display: none;
    content: '';
}

.rc-bm__faq-q:hover {
    background: #fafbfc;
}

.rc-bm__faq-arrow {
    transition: transform 0.3s;
    color: #999;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.rc-bm__faq-item[open] .rc-bm__faq-arrow {
    transform: rotate(180deg);
    color: #1B5E3B;
}

.rc-bm__faq-a {
    padding: 0 24px 20px;
}

.rc-bm__faq-a p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.9;
    margin: 0;
}

.rc-bm__faq-a a {
    color: #1B5E3B;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(27, 94, 59, 0.2);
    transition: border-color 0.2s, color 0.2s;
}

.rc-bm__faq-a a:hover {
    color: #e8b44c;
    border-color: #e8b44c;
}


/* ══════════════════════════════════════
   FINAL CTA
   ══════════════════════════════════════ */
.rc-bm__final-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%) !important;
    position: relative;
    overflow: hidden;
}

.rc-bm__final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 70%, rgba(232, 180, 76, 0.08) 0%, transparent 60%);
}

.rc-bm__final-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.rc-bm__final-cta-content h2 {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.4;
}

.rc-bm__final-cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 0 0 30px;
}

.rc-bm__final-cta-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}


/* ══════════════════════════════════════
   RESPONSIVE — Tablet
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
    .rc-bm__hero-title {
        font-size: 2rem;
    }

    .rc-bm__market-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rc-bm__cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rc-bm__guide-grid {
        grid-template-columns: 1fr;
    }

    .rc-bm__why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rc-bm__section-title {
        font-size: 1.5rem;
    }
}


/* ══════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════ */
@media (max-width: 640px) {
    .rc-bm__hero {
        padding: 50px 16px 40px;
    }

    .rc-bm__hero-title {
        font-size: 1.55rem;
        line-height: 1.45;
    }

    .rc-bm__hero-sub {
        font-size: 0.92rem;
    }

    .rc-bm__hero-badge {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    .rc-bm__hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .rc-bm__btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .rc-bm__hero-stats {
        gap: 16px;
    }

    .rc-bm__stat-num {
        font-size: 1.4rem;
    }

    .rc-bm__stat-label {
        font-size: 0.72rem;
    }

    .rc-bm__stat-divider {
        height: 28px;
    }

    .rc-bm__section {
        padding: 45px 0;
    }

    .rc-bm__section-header {
        margin-bottom: 30px;
    }

    .rc-bm__section-title {
        font-size: 1.3rem;
    }

    .rc-bm__section-desc {
        font-size: 0.88rem;
    }

    .rc-bm__container {
        padding: 0 16px;
    }

    .rc-bm__cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .rc-bm__city-card {
        padding: 18px 14px;
    }

    .rc-bm__city-card h4 {
        font-size: 0.88rem;
    }

    .rc-bm__city-card p {
        font-size: 0.7rem;
    }

    .rc-bm__guide-card {
        padding: 24px 20px;
    }

    .rc-bm__why-grid {
        grid-template-columns: 1fr;
    }

    .rc-bm__why-card {
        padding: 24px 20px;
    }

    .rc-bm__links-bar {
        padding: 18px 14px;
        gap: 8px;
    }

    .rc-bm__link-item {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .rc-bm__faq-q {
        padding: 16px 18px;
        font-size: 0.9rem;
    }

    .rc-bm__faq-a {
        padding: 0 18px 16px;
    }

    .rc-bm__final-cta-content h2 {
        font-size: 1.35rem;
    }

    .rc-bm__final-cta-content p {
        font-size: 0.88rem;
    }

    .rc-bm__final-cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .rc-bm__coverage-text p {
        font-size: 0.88rem;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — Very small screens
   ══════════════════════════════════════ */
@media (max-width: 380px) {
    .rc-bm__hero-title {
        font-size: 1.35rem;
    }

    .rc-bm__hero-badge span {
        font-size: 0.68rem;
    }

    .rc-bm__cities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .rc-bm__section-title {
        font-size: 1.15rem;
    }
}


/* ══════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════ */
@media print {
    .rc-bm__hero {
        background: #f5f5f5 !important;
        color: #000 !important;
    }

    .rc-bm__hero-title,
    .rc-bm__hero-sub {
        color: #000 !important;
    }

    .rc-bm__btn {
        display: none !important;
    }

    .rc-bm__final-cta {
        background: #f5f5f5 !important;
    }
}
