/* ============================================================
   Remco Homepage — remco-home.css
   Phase 5B — Categories + Contractors + Paths + Trust
   RTL-first, Mobile-first, Performance-optimized
   ============================================================ */

/* ── Design Tokens ── */
:root {
    --rc-green-dark: #1a3c2a;
    --rc-green: #2d6a4f;
    --rc-green-light: #40916c;
    --rc-gold: #d4a843;
    --rc-gold-light: #e8c96a;
    --rc-gold-dark: #b8922f;
    --rc-white: #ffffff;
    --rc-off-white: #f8f7f4;
    --rc-gray-100: #f3f3f3;
    --rc-gray-200: #e5e5e5;
    --rc-gray-600: #6b6b6b;
    --rc-gray-800: #2d2d2d;
    --rc-text: #1a1a1a;
    --rc-radius: 12px;
    --rc-radius-sm: 8px;
    --rc-radius-lg: 16px;
    --rc-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --rc-shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --rc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --rc-font: 'Cairo', 'Tajawal', -apple-system, sans-serif;
    --rc-max-width: 1340px;
}

/* ── Global Reset for RC sections ── */
.rc-utility-bar *, .rc-header-main *, .rc-nav-bar *,
.rc-hero *, .rc-ai-tools *, .rc-categories *,
.rc-contractors *, .rc-paths *, .rc-trust * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Hide default Astra header ── */
body.remco-home .ast-above-header,
body.remco-home .ast-primary-header,
body.remco-home .ast-below-header,
body.remco-home .site-header,
body.remco-home #ast-desktop-header,
body.remco-home #ast-mobile-header {
    display: none !important;
}

/* ── Shared Section Styles ── */
.rc-section-inner {
    max-width: var(--rc-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.rc-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.rc-section-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    color: var(--rc-green-dark);
    font-family: var(--rc-font);
    margin-bottom: 12px;
}

.rc-section-desc {
    font-size: 16px;
    color: var(--rc-gray-600);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.rc-section-footer {
    text-align: center;
    margin-top: 32px;
}

.rc-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--rc-green);
    color: var(--rc-green);
    border-radius: var(--rc-radius);
    font-family: var(--rc-font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--rc-transition);
}

.rc-btn-outline:hover {
    background: var(--rc-green);
    color: var(--rc-white);
    transform: translateY(-2px);
}

/* ════════════════════════════════════════
   UTILITY BAR
   ════════════════════════════════════════ */
.rc-utility-bar {
    background: var(--rc-green-dark);
    color: var(--rc-off-white);
    font-family: var(--rc-font);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rc-utility-inner {
    max-width: var(--rc-max-width);
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rc-utility-links {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rc-utility-links li { list-style: none; }

.rc-utility-links a {
    color: var(--rc-off-white);
    text-decoration: none;
    transition: color var(--rc-transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.rc-utility-links a:hover { color: var(--rc-gold-light); }

.rc-utility-links a svg,
.rc-utility-links li a svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   MAIN HEADER
   ════════════════════════════════════════ */
.rc-header-main {
    background: var(--rc-white);
    box-shadow: var(--rc-shadow);
    position: sticky;
    top: 0;
    z-index: 999;
    font-family: var(--rc-font);
}

.rc-header-inner {
    max-width: var(--rc-max-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.rc-logo { flex-shrink: 0; text-decoration: none; }

.rc-logo img {
    height: 52px;
    width: auto;
    display: block;
    max-width: 220px;
}

.rc-search-wrap { flex: 1; max-width: 600px; }

.rc-search-box {
    display: flex;
    align-items: center;
    background: var(--rc-gray-100);
    border: 2px solid var(--rc-gray-200);
    border-radius: var(--rc-radius);
    overflow: hidden;
    transition: border-color var(--rc-transition);
}

.rc-search-box:focus-within {
    border-color: var(--rc-green);
    background: var(--rc-white);
}

.rc-search-box input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--rc-font);
    color: var(--rc-text);
    outline: none;
    min-width: 0;
}

.rc-search-box input[type="search"]::placeholder {
    color: var(--rc-gray-600);
    font-size: 13px;
}

.rc-search-btn {
    background: var(--rc-green);
    color: var(--rc-white);
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    transition: background var(--rc-transition);
    display: flex;
    align-items: center;
    line-height: 1;
}

.rc-search-btn:hover { background: var(--rc-green-light); }
.rc-search-btn svg { width: 20px; height: 20px; }

.rc-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rc-header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--rc-gray-800);
    padding: 6px 10px;
    border-radius: var(--rc-radius-sm);
    transition: all var(--rc-transition);
    position: relative;
    font-size: 11px;
    min-width: 56px;
}

.rc-header-action:hover {
    background: var(--rc-gray-100);
    color: var(--rc-green);
}

.rc-header-action svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.rc-action-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: var(--rc-gold);
    color: var(--rc-green-dark);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-ai-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--rc-gold), var(--rc-gold-dark));
    color: var(--rc-green-dark);
    border: none;
    padding: 10px 18px;
    border-radius: var(--rc-radius);
    font-family: var(--rc-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--rc-transition);
    white-space: nowrap;
    text-decoration: none;
}

.rc-ai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
    color: var(--rc-green-dark);
}

.rc-ai-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.rc-mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--rc-green-dark);
}

.rc-mobile-toggle svg { width: 28px; height: 28px; }

/* ════════════════════════════════════════
   NAVIGATION BAR
   ════════════════════════════════════════ */
.rc-nav-bar {
    background: var(--rc-green);
    font-family: var(--rc-font);
}

.rc-nav-inner {
    max-width: var(--rc-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.rc-nav-inner::-webkit-scrollbar { display: none; }

.rc-nav-link {
    color: var(--rc-white);
    text-decoration: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--rc-transition);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-nav-link:hover,
.rc-nav-link:focus {
    background: rgba(255,255,255,0.18);
    border-bottom-color: var(--rc-gold);
    color: var(--rc-gold-light);
}

.rc-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.rc-nav-link--all {
    background: var(--rc-green-dark);
    border-radius: var(--rc-radius-sm) var(--rc-radius-sm) 0 0;
}

/* ════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════ */
.rc-hero {
    background: linear-gradient(135deg, var(--rc-green-dark) 0%, #0d2818 40%, #1a3c2a 100%);
    position: relative;
    overflow: hidden;
    font-family: var(--rc-font);
}

.rc-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(212,168,67,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(45,106,79,0.15) 0%, transparent 50%);
    animation: rc-glow 20s ease-in-out infinite alternate;
}

@keyframes rc-glow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, -5%); }
}

.rc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(212,168,67,0.03) 12%, transparent 12.5%, transparent 87%, rgba(212,168,67,0.03) 87.5%),
        linear-gradient(150deg, rgba(212,168,67,0.03) 12%, transparent 12.5%, transparent 87%, rgba(212,168,67,0.03) 87.5%);
    background-size: 80px 140px;
    pointer-events: none;
}

.rc-hero-inner {
    max-width: var(--rc-max-width);
    margin: 0 auto;
    padding: 60px 20px 50px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rc-hero-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--rc-gold), var(--rc-gold-light));
    border-radius: 2px;
    margin-bottom: 24px;
}

.rc-hero-title {
    color: var(--rc-white);
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 800px;
    font-family: var(--rc-font);
}

.rc-hero-title span { color: var(--rc-gold); }

.rc-hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: clamp(14px, 2.5vw, 17px);
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 32px;
}

.rc-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.rc-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--rc-radius);
    font-family: var(--rc-font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--rc-transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.rc-cta svg { width: 18px; height: 18px; flex-shrink: 0; }

.rc-cta--primary {
    background: linear-gradient(135deg, var(--rc-gold), var(--rc-gold-dark));
    color: var(--rc-green-dark);
}

.rc-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,168,67,0.4);
    color: var(--rc-green-dark);
}

.rc-cta--secondary {
    background: transparent;
    color: var(--rc-white);
    border-color: rgba(255,255,255,0.3);
}

.rc-cta--secondary:hover {
    border-color: var(--rc-gold);
    color: var(--rc-gold-light);
    background: rgba(255,255,255,0.05);
}

/* Gold CTA (Contractors) */
.rc-cta--gold {
    background: linear-gradient(135deg, var(--rc-gold), var(--rc-gold-dark));
    color: var(--rc-green-dark);
}

.rc-cta--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,168,67,0.4);
    color: var(--rc-green-dark);
}

/* Outline Light (Contractors dark bg) */
.rc-cta--outline-light {
    background: transparent;
    color: var(--rc-white);
    border-color: rgba(255,255,255,0.3);
}

.rc-cta--outline-light:hover {
    border-color: var(--rc-gold);
    color: var(--rc-gold-light);
    background: rgba(255,255,255,0.05);
}

/* Hero Stats */
.rc-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.rc-stat-num {
    color: var(--rc-gold);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-stat-num svg {
    width: 28px;
    height: 28px;
    stroke: var(--rc-gold);
}

.rc-stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-top: 4px;
}

/* ════════════════════════════════════════
   AI TOOLS SECTION
   ════════════════════════════════════════ */
.rc-ai-tools {
    background: var(--rc-off-white);
    font-family: var(--rc-font);
    padding: 50px 20px;
    position: relative;
}

.rc-ai-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rc-green), var(--rc-gold), var(--rc-green));
}

.rc-ai-tools-inner { max-width: var(--rc-max-width); margin: 0 auto; }

.rc-ai-tools-header { text-align: center; margin-bottom: 36px; }

.rc-ai-tools-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--rc-green-dark), var(--rc-green));
    color: var(--rc-gold-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.rc-ai-tools-tag svg { width: 16px; height: 16px; flex-shrink: 0; }

.rc-ai-tools-title {
    font-size: clamp(20px, 4vw, 28px);
    color: var(--rc-green-dark);
    font-weight: 700;
    font-family: var(--rc-font);
}

.rc-ai-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.rc-ai-card {
    background: var(--rc-white);
    border-radius: var(--rc-radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--rc-gray-200);
    transition: all var(--rc-transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.rc-ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, rgba(212,168,67,0.08), transparent 70%);
    border-radius: 0 var(--rc-radius-lg) 0 0;
}

.rc-ai-card:hover {
    border-color: var(--rc-gold);
    box-shadow: var(--rc-shadow-md);
    transform: translateY(-4px);
    color: inherit;
}

.rc-ai-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--rc-green), var(--rc-green-light));
    border-radius: var(--rc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--rc-white);
}

.rc-ai-card-icon svg { width: 24px; height: 24px; }

.rc-ai-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--rc-green-dark);
    margin-bottom: 8px;
    font-family: var(--rc-font);
}

.rc-ai-card-desc {
    font-size: 14px;
    color: var(--rc-gray-600);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.rc-ai-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rc-green);
    font-size: 14px;
    font-weight: 700;
    transition: gap var(--rc-transition), color var(--rc-transition);
}

.rc-ai-card-action svg { width: 16px; height: 16px; flex-shrink: 0; }

.rc-ai-card:hover .rc-ai-card-action {
    gap: 10px;
    color: var(--rc-gold-dark);
}

/* ════════════════════════════════════════
   CATEGORIES GRID (Phase 5B)
   ════════════════════════════════════════ */
.rc-categories {
    background: var(--rc-white);
    font-family: var(--rc-font);
    padding: 60px 0;
}

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

.rc-cat-card {
    background: var(--rc-off-white);
    border-radius: var(--rc-radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all var(--rc-transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.rc-cat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rc-green), var(--rc-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--rc-transition);
}

.rc-cat-card:hover {
    border-color: var(--rc-green-light);
    box-shadow: var(--rc-shadow-md);
    transform: translateY(-4px);
    color: inherit;
}

.rc-cat-card:hover::after { transform: scaleX(1); }

.rc-cat-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--rc-green-dark), var(--rc-green));
    border-radius: var(--rc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--rc-gold-light);
    flex-shrink: 0;
}

.rc-cat-icon svg { width: 26px; height: 26px; }

.rc-cat-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--rc-green-dark);
    margin-bottom: 8px;
    font-family: var(--rc-font);
}

.rc-cat-desc {
    font-size: 13px;
    color: var(--rc-gray-600);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 14px;
}

.rc-cat-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rc-green);
    font-size: 13px;
    font-weight: 700;
    transition: gap var(--rc-transition), color var(--rc-transition);
}

.rc-cat-action svg { flex-shrink: 0; }

.rc-cat-card:hover .rc-cat-action {
    gap: 10px;
    color: var(--rc-gold-dark);
}

/* ════════════════════════════════════════
   CONTRACTORS / RFQ (Phase 5B)
   ════════════════════════════════════════ */
.rc-contractors {
    background: linear-gradient(135deg, var(--rc-green-dark) 0%, #0d2818 50%, var(--rc-green-dark) 100%);
    font-family: var(--rc-font);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.rc-contractors-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(212,168,67,0.04) 12%, transparent 12.5%, transparent 87%, rgba(212,168,67,0.04) 87.5%),
        linear-gradient(150deg, rgba(212,168,67,0.04) 12%, transparent 12.5%, transparent 87%, rgba(212,168,67,0.04) 87.5%);
    background-size: 60px 100px;
}

.rc-contractors > .rc-section-inner {
    position: relative;
    z-index: 1;
}

.rc-contractors-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.rc-contractors-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,168,67,0.15);
    color: var(--rc-gold-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid rgba(212,168,67,0.25);
}

.rc-contractors-tag svg { flex-shrink: 0; }

.rc-contractors-title {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    color: var(--rc-white);
    margin-bottom: 16px;
    font-family: var(--rc-font);
}

.rc-contractors-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 28px;
}

.rc-contractors-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Contractor features */
.rc-contractors-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rc-cf-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--rc-radius);
    padding: 20px;
    transition: all var(--rc-transition);
}

.rc-cf-item:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(212,168,67,0.3);
    transform: translateY(-2px);
}

.rc-cf-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--rc-gold), var(--rc-gold-dark));
    border-radius: var(--rc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-green-dark);
    flex-shrink: 0;
}

.rc-cf-icon svg { width: 22px; height: 22px; }

.rc-cf-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--rc-white);
    margin-bottom: 4px;
    font-family: var(--rc-font);
}

.rc-cf-item p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ════════════════════════════════════════
   SMART SHOPPING PATHS (Phase 5B)
   ════════════════════════════════════════ */
.rc-paths {
    background: var(--rc-off-white);
    font-family: var(--rc-font);
    padding: 60px 0;
}

.rc-paths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rc-path-card {
    background: var(--rc-white);
    border-radius: var(--rc-radius-lg);
    padding: 36px 28px;
    border: 2px solid var(--rc-gray-200);
    transition: all var(--rc-transition);
    text-align: center;
    position: relative;
}

.rc-path-card:hover {
    border-color: var(--rc-green-light);
    box-shadow: var(--rc-shadow-md);
    transform: translateY(-4px);
}

.rc-path-card--featured {
    border-color: var(--rc-gold);
    background: linear-gradient(180deg, rgba(212,168,67,0.04) 0%, var(--rc-white) 40%);
}

.rc-path-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rc-gold), var(--rc-gold-light), var(--rc-gold));
    border-radius: var(--rc-radius-lg) var(--rc-radius-lg) 0 0;
}

.rc-path-num {
    width: 32px;
    height: 32px;
    background: var(--rc-green);
    color: var(--rc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.rc-path-card--featured .rc-path-num {
    background: linear-gradient(135deg, var(--rc-gold), var(--rc-gold-dark));
    color: var(--rc-green-dark);
}

.rc-path-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--rc-green-dark), var(--rc-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--rc-gold-light);
}

.rc-path-icon svg { width: 28px; height: 28px; }

.rc-path-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--rc-green-dark);
    margin-bottom: 12px;
    font-family: var(--rc-font);
}

.rc-path-desc {
    font-size: 14px;
    color: var(--rc-gray-600);
    line-height: 1.8;
    margin-bottom: 24px;
}

.rc-path-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rc-green);
    color: var(--rc-white);
    padding: 10px 24px;
    border-radius: var(--rc-radius);
    font-family: var(--rc-font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--rc-transition);
}

.rc-path-cta:hover {
    background: var(--rc-green-dark);
    transform: translateY(-2px);
    color: var(--rc-white);
}

.rc-path-card--featured .rc-path-cta {
    background: linear-gradient(135deg, var(--rc-gold), var(--rc-gold-dark));
    color: var(--rc-green-dark);
}

.rc-path-card--featured .rc-path-cta:hover {
    box-shadow: 0 4px 16px rgba(212,168,67,0.4);
}

/* ════════════════════════════════════════
   TRUST FEATURES STRIP (Phase 5B)
   ════════════════════════════════════════ */
.rc-trust {
    background: var(--rc-green-dark);
    font-family: var(--rc-font);
    padding: 36px 0;
    border-top: 3px solid var(--rc-gold);
}

.rc-trust-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.rc-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.rc-trust-icon {
    width: 36px;
    height: 36px;
    background: rgba(212,168,67,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-gold-light);
    flex-shrink: 0;
}

.rc-trust-icon svg { width: 18px; height: 18px; }

.rc-trust-label {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .rc-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .rc-contractors-content { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .rc-utility-inner {
        flex-direction: column;
        padding: 6px 16px;
        gap: 4px;
    }

    .rc-utility-links { gap: 12px; font-size: 12px; }

    .rc-header-inner {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 10px;
    }

    .rc-logo img { height: 40px; }

    .rc-search-wrap {
        order: 10;
        max-width: none;
        width: 100%;
    }

    .rc-mobile-toggle { display: flex; margin-right: auto; }
    .rc-ai-btn span { display: none; }
    .rc-ai-btn { padding: 10px 12px; }
    .rc-header-action span { display: none; }
    .rc-header-action { min-width: 40px; padding: 6px; }

    .rc-hero-inner { padding: 40px 16px 36px; }

    .rc-hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .rc-cta { justify-content: center; width: 100%; }

    .rc-hero-stats {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .rc-ai-cards { grid-template-columns: 1fr; }
    .rc-ai-tools { padding: 36px 16px; }

    /* Phase 5B responsive */
    .rc-cat-grid { grid-template-columns: 1fr; }

    .rc-categories,
    .rc-paths { padding: 40px 0; }

    .rc-contractors { padding: 50px 0; }
    .rc-contractors-features { grid-template-columns: 1fr; }

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

    .rc-trust-grid {
        justify-content: center;
        gap: 12px;
    }

    .rc-trust-item { flex: 0 1 45%; justify-content: center; }
}

@media (max-width: 480px) {
    .rc-utility-links {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .rc-stat-num { font-size: 22px; }
    .rc-trust-item { flex: 0 1 100%; }
}

/* Admin bar fix */
body.admin-bar .rc-header-main { top: 32px; }

@media (max-width: 782px) {
    body.admin-bar .rc-header-main { top: 46px; }
}


/* ================================================
   Phase 5C — Container for Footer sections
   ================================================ */
.rc-footer-cta .rc-container,
.rc-footer .rc-container,
.rc-copyright .rc-container {
    max-width: var(--rc-max-width, 1340px);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ================================================
   Phase 5C — Footer CTA Strip
   ================================================ */
.rc-footer-cta {
    background: linear-gradient(135deg, #1a3c2a 0%, #2d6a4f 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.rc-footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rc-footer-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.rc-footer-cta-title {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.rc-footer-cta-desc {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.7;
}

.rc-footer-cta-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}


.rc-footer-cta .rc-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #d4a843;
    color: #1a3c2a;
    border: 2px solid #d4a843;
    border-radius: 10px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.rc-footer-cta .rc-btn-gold:hover {
    background: #e0b84d;
    border-color: #e0b84d;
    color: #1a3c2a;
    box-shadow: 0 4px 14px rgba(212,168,67,0.35);
}

.rc-footer-cta a:visited {
    color: inherit;
}

.rc-btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid #fff;
    background: #fff;
    border-radius: 10px;
    color: #1a3c2a !important;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.rc-btn-outline-light:hover {
    background: rgba(255,255,255,0.88);
    border-color: #fff;
    color: #1a3c2a !important;
    box-shadow: 0 4px 14px rgba(255,255,255,0.25);
}

/* ================================================
   Phase 5C — Main Footer
   ================================================ */
.rc-footer {
    background: #0f261a;
    padding: 60px 0 0;
    direction: rtl;
}

.rc-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

/* Column: About */
.rc-footer-logo-img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 18px;
}

.rc-footer-about-text {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.9;
    margin: 0 0 14px 0;
}

.rc-footer-company {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 12px;
    color: #d4a843;
    font-weight: 600;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Column Headings */
.rc-footer-heading {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    position: relative;
}

.rc-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 3px;
    background: #d4a843;
    border-radius: 2px;
}

/* Links */
.rc-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rc-footer-links li {
    margin-bottom: 10px;
}

.rc-footer-links a {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.25s ease, padding-right 0.25s ease;
    display: inline-block;
}

.rc-footer-links a:hover {
    color: #d4a843;
    padding-right: 6px;
}

/* ================================================
   Phase 5C — Copyright Bar
   ================================================ */
.rc-copyright {
    background: #0a1c12;
    margin-top: 50px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.rc-copyright-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.rc-copyright-text {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.rc-copyright-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rc-copyright-links a {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.25s ease;
}

.rc-copyright-links a:hover {
    color: #d4a843;
}

.rc-sep {
    color: rgba(255,255,255,0.15);
    font-size: 13px;
}

/* ================================================
   Phase 5C — Floating Contact Buttons
   ================================================ */
.rc-floating-btns {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.rc-float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rc-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.rc-float-whatsapp {
    background: #25d366;
    color: #fff;
}

.rc-float-whatsapp:hover {
    color: #fff;
}

.rc-float-phone {
    background: #1a3c2a;
    color: #d4a843;
    border: 2px solid rgba(212,168,67,0.3);
}

.rc-float-phone:hover {
    color: #d4a843;
    border-color: #d4a843;
}

/* ================================================
   Phase 5C — Hide default Astra footer on homepage
   ================================================ */
body.remco-home .site-footer,
body.remco-home .ast-footer-overlay,
body.remco-home .ast-small-footer,
body.remco-home footer.site-footer,
body.remco-home .site-below-footer-wrap,
body.remco-home .ast-footer-copyright,
body.remco-home .ast-builder-footer-grid-columns {
    display: none !important;
}

/* ================================================
   Phase 5C — Footer Responsive
   ================================================ */
@media (max-width: 1024px) {
    .rc-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .rc-footer-cta { padding: 36px 0; }
    
    .rc-footer-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .rc-footer-cta-title { font-size: 22px; }
    
    .rc-footer-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .rc-footer-cta-actions .rc-btn,
    .rc-footer-cta-actions .rc-btn-gold,
    .rc-footer-cta-actions .rc-btn-outline-light {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .rc-footer { padding: 40px 0 0; }
    
    .rc-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .rc-footer-about { text-align: center; }
    .rc-footer-logo-img { margin: 0 auto 18px; display: block; }
    
    .rc-footer-heading::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .rc-copyright { margin-top: 30px; }
    
    .rc-copyright-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .rc-copyright-links {
        justify-content: center;
    }
    
    .rc-floating-btns {
        bottom: 16px;
        left: 16px;
    }
    
    .rc-float-btn {
        width: 46px;
        height: 46px;
    }
    
    .rc-float-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .rc-footer-cta-title { font-size: 20px; }
    .rc-footer-cta-desc { font-size: 14px; }
    
    .rc-floating-btns {
        bottom: 12px;
        left: 12px;
        gap: 8px;
    }
    
    .rc-float-btn {
        width: 42px;
        height: 42px;
    }
}

    color: #e0b84d !important;
}

/* Phase 6A Review — Nav active state */
.rc-nav-active {
    color: #d4a843 !important;
    border-bottom-color: #d4a843 !important;
    background: rgba(212,168,67,0.12) !important;
    font-weight: 700 !important;
}
