/**
 * Remco Contractor & Project Solutions Page Style Sheet
 * Slug: /contractor-solutions/
 * Version: 1.0.0
 * RTL Orientation
 */

/* ==========================================================================
   Design Tokens & Root Definitions (Scoped to .remco-contractor-page)
   ========================================================================== */
.remco-contractor-page {
    --rc-primary: #1a3c2a;
    --rc-primary-dark: #0f251a;
    --rc-primary-light: #2d6a4f;
    --rc-primary-glow: rgba(45, 106, 79, 0.15);
    --rc-accent: #d4a843;
    --rc-accent-light: #ffe094;
    --rc-accent-glow: rgba(212, 168, 67, 0.3);
    --rc-bg-light: #f4f7f5;
    --rc-white: #ffffff;
    --rc-text-dark: #1f2937;
    --rc-text-gray: #4b5563;
    --rc-text-light: #f3f4f6;
    --rc-border: #e5e7eb;
    --rc-radius-lg: 20px;
    --rc-radius-md: 12px;
    --rc-radius-sm: 8px;
    --rc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--rc-white);
    color: var(--rc-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ensure focus visibility for accessibility */
.remco-contractor-page [tabindex="0"]:focus-visible,
.remco-contractor-page a:focus-visible,
.remco-contractor-page button:focus-visible {
    outline: 3px solid var(--rc-accent);
    outline-offset: 4px;
}

/* Container Wrapper */
.rc-con-wrap {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Common Section Headers */
.rc-con-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.rc-con-section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--rc-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.rc-con-section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--rc-accent);
    border-radius: 2px;
}

.rc-con-section-header p {
    font-size: 1.1rem;
    color: var(--rc-text-gray);
    line-height: 1.8;
}

/* Common Buttons */
.rc-con-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--rc-radius-md);
    text-decoration: none !important;
    transition: var(--rc-transition);
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

.rc-con-btn svg {
    transition: transform 0.3s ease;
}

.rc-con-btn:hover svg {
    transform: translateY(-2px);
}

.rc-con-btn--gold {
    background-color: var(--rc-accent);
    color: var(--rc-primary-dark) !important;
    box-shadow: 0 4px 14px var(--rc-accent-glow);
    border: 1px solid var(--rc-accent);
}

.rc-con-btn--gold:hover {
    background-color: var(--rc-accent-light);
    border-color: var(--rc-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.5);
}

.rc-con-btn--outline {
    background-color: transparent;
    color: var(--rc-white) !important;
    border: 2px solid var(--rc-white);
}

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

.rc-con-btn--white {
    background-color: var(--rc-white);
    color: var(--rc-primary) !important;
    border: 1px solid var(--rc-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rc-con-btn--white:hover {
    background-color: var(--rc-bg-light);
    transform: translateY(-2px);
}

.rc-con-btn--wa {
    background-color: #25d366;
    color: var(--rc-white) !important;
    border: 1px solid #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.rc-con-btn--wa:hover {
    background-color: #20ba59;
    border-color: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   1. Hero Section (.rc-con-hero)
   ========================================================================== */
.rc-con-hero {
    background: linear-gradient(135deg, var(--rc-primary-dark) 0%, var(--rc-primary) 100%);
    position: relative;
    padding: 100px 0 120px 0;
    overflow: hidden;
    color: var(--rc-white);
    box-sizing: border-box;
}

/* Glowing gold orb decoration */
.rc-con-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 168, 67, 0.12) 0%, rgba(214, 168, 67, 0) 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
    z-index: 1;
}

.rc-con-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.rc-con-hero-text {
    text-align: right;
}

.rc-con-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--rc-accent-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.rc-con-hero-badge svg {
    color: var(--rc-accent);
}

.rc-con-hero-text h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--rc-white);
}

.rc-con-hero-text h1 span {
    color: var(--rc-accent-light);
    background: linear-gradient(90deg, var(--rc-accent-light), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rc-con-hero-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 620px;
}

.rc-con-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero Visual Graphics */
.rc-con-hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-con-grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image: 
        linear-gradient(var(--rc-accent) 1.5px, transparent 1.5px),
        linear-gradient(90deg, var(--rc-accent) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: center;
    pointer-events: none;
}

/* Floating Cards Styling */
.rc-con-floating-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--rc-radius-lg);
    padding: 24px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 260px;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

/* First Card: Stats */
.rc-con-floating-card:not(.rc-con-floating-card--2) {
    top: 15%;
    right: 10%;
    transform: rotate(-3deg);
}

/* Second Card: Specifications */
.rc-con-floating-card--2 {
    bottom: 15%;
    left: 10%;
    transform: rotate(3deg);
}

.rc-con-floating-card:hover {
    transform: translateY(-8px) scale(1.03) !important;
}

.rc-con-fl-num {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--rc-accent);
    line-height: 1;
    margin-bottom: 5px;
}

.rc-con-fl-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rc-white);
}

.rc-con-fl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--rc-accent);
    color: var(--rc-primary-dark);
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 12px;
}

.rc-con-fl-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rc-white);
    line-height: 1.5;
}

/* ==========================================================================
   2. Solutions Grid Section (.rc-con-solutions)
   ========================================================================== */
.rc-con-solutions {
    padding: 100px 0;
    background-color: var(--rc-bg-light);
    box-sizing: border-box;
}

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

.rc-con-solution-card {
    background-color: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius-lg);
    padding: 35px 30px;
    box-sizing: border-box;
    transition: var(--rc-transition);
    cursor: pointer;
}

.rc-con-solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--rc-accent);
}

.rc-con-sol-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--rc-primary-glow);
    color: var(--rc-primary-light);
    border-radius: var(--rc-radius-md);
    margin-bottom: 24px;
    transition: var(--rc-transition);
}

.rc-con-sol-icon svg {
    width: 32px;
    height: 32px;
}

.rc-con-solution-card:hover .rc-con-sol-icon {
    background-color: var(--rc-primary);
    color: var(--rc-white);
}

.rc-con-solution-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rc-primary);
    margin-bottom: 12px;
}

.rc-con-solution-card p {
    font-size: 0.95rem;
    color: var(--rc-text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.rc-con-sol-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px dashed var(--rc-border);
    padding-top: 18px;
}

.rc-con-sol-features li {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rc-text-dark);
    margin-bottom: 8px;
    position: relative;
    padding-right: 18px;
}

.rc-con-sol-features li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--rc-accent);
    font-size: 1.2rem;
    line-height: 1;
}

/* ==========================================================================
   3. Workflow Section (.rc-con-workflow)
   ========================================================================== */
.rc-con-workflow {
    padding: 100px 0;
    background-color: var(--rc-white);
    box-sizing: border-box;
}

.rc-con-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    margin-top: 60px;
}

/* Horizontal Line connecting steps */
.rc-con-flow-line {
    position: absolute;
    top: 32px;
    right: 10%;
    width: 80%;
    height: 4px;
    background-color: var(--rc-bg-light);
    z-index: 1;
}

.rc-con-flow-step {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 10px;
}

.rc-con-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--rc-primary);
    color: var(--rc-accent-light);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 24px;
    border: 4px solid var(--rc-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--rc-transition);
}

.rc-con-flow-step:hover .rc-con-step-num {
    background-color: var(--rc-accent);
    color: var(--rc-primary-dark);
    transform: scale(1.1);
}

.rc-con-flow-step h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rc-primary);
    margin-bottom: 12px;
}

.rc-con-flow-step p {
    font-size: 0.95rem;
    color: var(--rc-text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.rc-con-step-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rc-accent);
    text-decoration: none !important;
    transition: var(--rc-transition);
}

.rc-con-step-link:hover {
    color: var(--rc-primary-light);
}

/* ==========================================================================
   4. Features Section (.rc-con-features)
   ========================================================================== */
.rc-con-features {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--rc-primary-dark) 0%, var(--rc-primary) 100%);
    color: var(--rc-white);
    box-sizing: border-box;
}

.rc-con-features .rc-con-section-header h2 {
    color: var(--rc-white);
}

.rc-con-features .rc-con-section-header p {
    color: #cbd5e1;
}

.rc-con-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Make features grid look premium and high contrast */
.rc-con-feat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--rc-radius-lg);
    padding: 35px 30px;
    box-sizing: border-box;
    transition: var(--rc-transition);
}

.rc-con-feat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 168, 67, 0.4);
    transform: translateY(-5px);
}

.rc-con-feat-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.rc-con-feat-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--rc-accent-light);
    margin-bottom: 12px;
}

.rc-con-feat-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.8;
}

/* ==========================================================================
   5. CTA Double Banner (.rc-con-cta-sec)
   ========================================================================== */
.rc-con-cta-sec {
    padding: 80px 0;
    background-color: var(--rc-bg-light);
    box-sizing: border-box;
}

.rc-con-cta-banner {
    background: linear-gradient(135deg, var(--rc-primary) 0%, var(--rc-primary-dark) 100%);
    border-radius: var(--rc-radius-lg);
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.rc-con-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(214, 168, 67, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.rc-con-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.rc-con-cta-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--rc-white);
    margin-bottom: 15px;
}

.rc-con-cta-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 40px;
}

.rc-con-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   6. Internal Tools Strip (.rc-con-tools-strip)
   ========================================================================== */
.rc-con-tools-strip {
    padding: 80px 0;
    background-color: var(--rc-white);
    box-sizing: border-box;
}

.rc-con-strip-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rc-primary);
    margin-bottom: 25px;
    text-align: right;
}

.rc-con-tools-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.rc-con-tool-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--rc-bg-light);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius-lg);
    padding: 24px;
    text-decoration: none !important;
    transition: var(--rc-transition);
    box-sizing: border-box;
}

.rc-con-tool-card:hover {
    background-color: var(--rc-white);
    border-color: var(--rc-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.rc-con-tool-icon {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rc-white);
    border-radius: var(--rc-radius-md);
    width: 64px;
    height: 64px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.rc-con-tool-info {
    text-align: right;
}

.rc-con-tool-info h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--rc-primary);
    margin-bottom: 4px;
}

.rc-con-tool-info span {
    font-size: 0.9rem;
    color: var(--rc-text-gray);
    line-height: 1.5;
}


/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */

/* Tablet (Large Viewports: Under 1024px) */
@media (max-width: 1024px) {
    .rc-con-hero-text h1 {
        font-size: 2.6rem;
    }
    
    .rc-con-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rc-con-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rc-con-flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .rc-con-flow-line {
        display: none; /* Hide linear workflow layout helper */
    }
}

/* Tablet (Medium Viewports: Under 768px) */
@media (max-width: 768px) {
    .rc-con-hero {
        padding: 60px 0 80px 0;
    }
    
    .rc-con-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .rc-con-hero-text {
        text-align: center;
    }
    
    .rc-con-hero-text h1 {
        font-size: 2.2rem;
    }
    
    .rc-con-hero-text p {
        margin: 0 auto 30px auto;
    }
    
    .rc-con-hero-ctas {
        justify-content: center;
    }
    
    .rc-con-hero-visual {
        height: 320px;
    }
    
    .rc-con-floating-card:not(.rc-con-floating-card--2) {
        right: 5%;
        top: 10%;
    }
    
    .rc-con-floating-card--2 {
        left: 5%;
        bottom: 10%;
    }
    
    .rc-con-tools-links {
        grid-template-columns: 1fr;
    }
    
    .rc-con-section-header h2 {
        font-size: 1.8rem;
    }
}

/* Mobile Devices (Under 480px) */
@media (max-width: 480px) {
    .rc-con-hero-text h1 {
        font-size: 1.85rem;
    }
    
    .rc-con-hero-text p {
        font-size: 1rem;
    }
    
    .rc-con-btn {
        width: 100%; /* Stack buttons on small screens */
    }
    
    .rc-con-hero-visual {
        height: 340px;
    }
    
    .rc-con-floating-card {
        width: 220px;
        padding: 16px 20px;
    }
    
    .rc-con-fl-num {
        font-size: 2.2rem;
    }
    
    .rc-con-fl-text {
        font-size: 0.95rem;
    }
    
    .rc-con-solutions-grid,
    .rc-con-features-grid,
    .rc-con-flow-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .rc-con-solution-card,
    .rc-con-feat-card {
        padding: 24px 20px;
    }
    
    .rc-con-cta-banner {
        padding: 40px 20px;
    }
    
    .rc-con-cta-content h2 {
        font-size: 1.7rem;
    }
    
    .rc-con-tool-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .rc-con-tool-info {
        text-align: center;
        margin-top: 10px;
    }
}
