﻿/* =============================================================
   SHEEN MARKETING — BRAND DESIGN TOKENS
   Single source of truth. All other CSS files use var(--sheen-*)
   ============================================================= */

/* ── Custom Fonts (defined locally, fallbacks in Google Fonts) ── */
/* @font-face Ruma removed — using Poppins instead */

/* @font-face Foda Naskh removed — using Tajawal instead */

/* ── Google Fonts are loaded in header.php ────────────────── */

:root {
    /* ── Palette ──────────────────────────────────────── */
    --sheen-black:      #000000;
    --sheen-white:      #ffffff;
    --sheen-off-white:  #f5f5f5;
    --sheen-red:        #dc3e08;
    --sheen-red-dark:   #b33106;
    --sheen-red-light:  rgba(220, 62, 8, 0.12);
    --sheen-gray:       #373737;
    --sheen-gray-mid:   #555555;
    --sheen-gray-light: #888888;
    --sheen-border:     #e0e0e0;

    /* ── Bootstrap / TemplateMo variable overrides ────── */
    --primary-color:    var(--sheen-red);
    --primary-light:    var(--sheen-red-light);
    --primary-dark:     var(--sheen-red-dark);
    --secondary-color:  var(--sheen-gray);
    --secondary-light:  #4a4a4a;
    --secondary-dark:   #222222;
    --text-light:       var(--sheen-white);
    --text-dark:        var(--sheen-gray);

    /* Bootstrap native CSS custom properties */
    --bs-primary:           var(--sheen-red);
    --bs-primary-rgb:       220, 62, 8;
    --bs-secondary:         var(--sheen-gray);
    --bs-secondary-rgb:     55, 55, 55;
    --bs-body-color:        var(--sheen-gray);
    --bs-body-bg:           var(--sheen-off-white);
    --bs-link-color:        var(--sheen-red);
    --bs-link-hover-color:  var(--sheen-red-dark);

    /* ── Typography — unified: Poppins (EN) + Tajawal (AR) ────────── */
    --font-en-body:     'Poppins', 'Segoe UI', system-ui, sans-serif;
    --font-en-heading:  'Poppins', 'Segoe UI', system-ui, sans-serif;
    --font-ar-body:     'Tajawal', 'Segoe UI', system-ui, sans-serif;
    --font-ar-heading:  'Tajawal', 'Segoe UI', system-ui, sans-serif;

    /* ── Spacing ──────────────────────────────────────── */
    --section-py:       80px;
    --section-py-sm:    48px;
    --card-radius:      12px;
    --btn-radius:       6px;

    /* ── Shadows ──────────────────────────────────────── */
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 24px rgba(0,0,0,0.12);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.18);
    --shadow-red:  0 4px 20px rgba(220,62,8,0.25);

    /* ── Transitions ──────────────────────────────────── */
    --transition: all 0.3s ease;

    /* ── Navbar ───────────────────────────────────────── */
    --navbar-bg-scrolled: rgba(0, 0, 0, 0.97);
    --navbar-link-hover:  var(--sheen-red);
}

/* =============================================================
   LANGUAGE-AWARE TYPOGRAPHY
   ============================================================= */
html[lang="en"],
html[lang="en"] * {
    font-family: var(--font-en-body);
}
html[lang="ar"],
html[lang="ar"] * {
    font-family: var(--font-ar-body);
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6 {
    font-family: var(--font-en-heading);
    font-weight: 700;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: var(--font-ar-heading);
    font-weight: 700;
}

/* =============================================================
   GLOBAL RESETS & BASE
   ============================================================= */
body {
    background-color: var(--sheen-off-white);
    color: var(--sheen-gray);
    line-height: 1.75;
}

a {
    color: var(--sheen-red);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--sheen-red-dark); }

h1, h2, h3, h4, h5, h6 {
    color: var(--sheen-black);
    font-weight: 700;
    line-height: 1.25;
}

img { transition: transform 0.3s ease; }

/* =============================================================
   BOOTSTRAP CLASS OVERRIDES
   ============================================================= */

/* Background helpers */
.bg-primary  { background-color: var(--sheen-red)       !important; }
.bg-dark     { background-color: var(--sheen-black)      !important; }
.bg-light    { background-color: var(--sheen-off-white)  !important; }
.bg-secondary{ background-color: var(--sheen-gray)       !important; }

/* Text helpers */
.text-primary   { color: var(--sheen-red)     !important; }
.text-dark      { color: var(--sheen-black)   !important; }
.text-secondary { color: var(--sheen-gray)    !important; }

/* Borders */
.border-primary { border-color: var(--sheen-red)  !important; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
    border-radius: var(--btn-radius);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.55rem 1.5rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--sheen-red);
    border-color: var(--sheen-red);
    color: var(--sheen-white);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--sheen-red-dark);
    border-color: var(--sheen-red-dark);
    color: var(--sheen-white);
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--sheen-red);
    border-color: var(--sheen-red);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--sheen-red);
    border-color: var(--sheen-red);
    color: var(--sheen-white);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--sheen-black);
    border-color: var(--sheen-black);
    color: var(--sheen-white);
}
.btn-dark:hover {
    background-color: var(--sheen-gray);
    border-color: var(--sheen-gray);
    color: var(--sheen-white);
}

.btn-secondary {
    background-color: var(--sheen-gray);
    border-color: var(--sheen-gray);
    color: var(--sheen-white);
}
.btn-secondary:hover {
    background-color: var(--sheen-black);
    border-color: var(--sheen-black);
    color: var(--sheen-white);
}

.btn-outline-light:hover { color: var(--sheen-red); }

/* CTA / custom button */
.custom-btn {
    background-color: var(--sheen-red);
    color: var(--sheen-white);
    border: none;
    border-radius: var(--btn-radius);
    transition: var(--transition);
}
.custom-btn:hover {
    background-color: var(--sheen-red-dark);
    color: var(--sheen-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* =============================================================
   BADGES
   ============================================================= */
.badge {
    padding: 6px 14px;
    font-weight: 600;
    border-radius: 4px;
}
.badge.bg-primary   { background-color: var(--sheen-red)   !important; }
.badge.bg-secondary { background-color: var(--sheen-gray)  !important; color: #fff; }
.badge.bg-dark      { background-color: var(--sheen-black) !important; }

/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
    transition: var(--transition);
    background-color: transparent;
    padding: 1rem 0;
}
.navbar.scrolled {
    background-color: var(--navbar-bg-scrolled) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: 0.6rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(1);
}
.navbar-brand-text {
    font-family: var(--font-en-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sheen-white) !important;
    line-height: 1.2;
}
.navbar-brand-text small {
    display: block;
    font-family: var(--font-ar-body);
    font-size: 0.72rem;
    opacity: 0.85;
    font-weight: 400;
}

.navbar-brand, .nav-link {
    color: var(--sheen-white) !important;
    transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
    color: var(--navbar-link-hover) !important;
}
.navbar-toggler  { border-color: rgba(255,255,255,0.5); }
.navbar-toggler-icon { filter: brightness(0) invert(1); }

@media (max-width: 991px) {
    .navbar {
        background-color: var(--sheen-black) !important;
    }
    .navbar-collapse {
        background-color: var(--sheen-black);
        padding: 1rem;
        border-radius: 0 0 10px 10px;
    }
}

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero-section {
    position: relative;
    min-height: 60vh;
    background: var(--sheen-black);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
}
.hero-section .text-light { color: var(--sheen-white) !important; }
.hero-section h1,
.hero-section h2,
.hero-section h3 {
    color: var(--sheen-white);
}
.hero-section .lead {
    color: rgba(255,255,255,0.82);
}
.hero-section strong { color: var(--sheen-red); }
.hero-section .breadcrumb-item a   { color: var(--sheen-red); }
.hero-section .breadcrumb-item.active { color: rgba(255,255,255,0.7); }

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}
.hero-section .container { position: relative; z-index: 2; }

/* Shape divider */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; overflow: hidden; line-height: 0;
}
.custom-shape-divider-bottom svg {
    position: relative; display: block;
    width: calc(100% + 1.3px); height: 50px;
}
.custom-shape-divider-bottom .shape-fill { fill: var(--sheen-off-white); }

/* =============================================================
   SECTION UTILITIES
   ============================================================= */
.section-padding      { padding: var(--section-py) 0; }
.section-padding-sm   { padding: var(--section-py-sm) 0; }
.section-bg           { background-color: var(--sheen-off-white) !important; }
.section-dark         { background-color: var(--sheen-black); color: var(--sheen-white); }
.section-gray         { background-color: var(--sheen-gray); color: var(--sheen-white); }
.section-red          { background-color: var(--sheen-red); color: var(--sheen-white); }
.dark-section         { background-color: var(--sheen-black); color: var(--sheen-white); }

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6,
.dark-section h1, .dark-section h2, .dark-section h3 {
    color: var(--sheen-white);
}
.section-red h1, .section-red h2, .section-red h3 { color: var(--sheen-white); }

/* bg-primary dark sections */
[class*="bg-primary"] { color: var(--sheen-white); }
[class*="bg-primary"] h1,
[class*="bg-primary"] h2,
[class*="bg-primary"] h3 { color: var(--sheen-white); }
[class*="bg-primary"] .lead { color: rgba(255,255,255,0.85); }

/* Section accent line */
.section-title-line {
    width: 56px; height: 4px;
    background: var(--sheen-red);
    border-radius: 2px;
    margin: 0.75rem auto 1.5rem;
}
.text-start .section-title-line { margin-left: 0; }

/* =============================================================
   CARDS & BLOCKS
   ============================================================= */
.custom-block {
    border-radius: var(--card-radius);
    padding: 28px;
    background: var(--sheen-white);
    border: 1px solid var(--sheen-border);
    transition: var(--transition);
    height: 100%;
}
.custom-block:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--sheen-red);
}
.transform-hover { transition: var(--transition); }
.transform-hover:hover { transform: translateY(-5px); }

/* =============================================================
   ICON WRAPPER
   ============================================================= */
.icon-wrapper {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--sheen-red-light);
    color: var(--sheen-red);
    font-size: 1.6rem;
    transition: var(--transition);
    margin-bottom: 1rem;
}
.icon-wrapper:hover,
.custom-block:hover .icon-wrapper {
    background: var(--sheen-red);
    color: var(--sheen-white);
}

/* =============================================================
   FORMS
   ============================================================= */
.form-control,
.form-select {
    border-color: var(--sheen-border);
    border-radius: var(--btn-radius);
    color: var(--sheen-gray);
    transition: var(--transition);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--sheen-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 62, 8, 0.2);
}
.form-label { font-weight: 600; color: var(--sheen-black); }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
    background-color: var(--sheen-black);
    color: rgba(255,255,255,0.78);
    padding: 5rem 0 2rem;
}
.site-footer h4,
.site-footer h5,
.site-footer .footer-heading {
    color: var(--sheen-white);
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.site-footer-link {
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
    display: block;
    margin-bottom: 0.4rem;
}
.site-footer-link:hover {
    color: var(--sheen-red);
    padding-left: 4px;
}
html[dir="rtl"] .site-footer-link:hover {
    padding-left: 0;
    padding-right: 4px;
}
.site-footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--sheen-white);
    font-size: 1rem;
    transition: var(--transition);
    margin-right: 8px;
}
.site-footer .social-link:hover {
    background: var(--sheen-red);
    color: var(--sheen-white);
    transform: translateY(-3px);
}
.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1.5rem;
}
.footer-slogan {
    font-size: 0.95rem;
    color: var(--sheen-red);
    font-weight: 600;
}
.footer-logo img { height: 50px; width: auto; }

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonial-block {
    border-left: 4px solid var(--sheen-red);
    background: var(--sheen-white);
    border-radius: var(--card-radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
html[dir="rtl"] .testimonial-block {
    border-left: none;
    border-right: 4px solid var(--sheen-red);
}
.testimonial-text {
    font-style: italic;
    color: var(--sheen-gray);
    line-height: 1.75;
}
.testimonial-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sheen-red-light);
}

/* Rating stars */
.bi-star-fill { color: #f5a623; }
.bi-star      { color: #ddd; }

/* =============================================================
   BREADCRUMB
   ============================================================= */
.breadcrumb-item a       { color: inherit; opacity: 0.75; }
.breadcrumb-item a:hover { color: var(--sheen-red); opacity: 1; }
.breadcrumb-item.active  { opacity: 0.6; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* =============================================================
   STATS / COUNTER
   ============================================================= */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--sheen-red);
    line-height: 1;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--sheen-gray-light);
    font-weight: 500;
    margin-top: 0.4rem;
}
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

/* =============================================================
   PORTFOLIO
   ============================================================= */
.portfolio-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--sheen-white);
    border: 1px solid var(--sheen-border);
    height: 100%;
    transition: var(--transition);
}
.portfolio-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.portfolio-card .badge {
    position: absolute;
    top: 14px; right: 14px;
}

/* =============================================================
   TOPICS / BLOG CARDS
   ============================================================= */
.topic-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--sheen-white);
    border: 1px solid var(--sheen-border);
    height: 100%;
    transition: var(--transition);
}
.topic-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.topic-meta {
    font-size: 0.82rem;
    color: var(--sheen-gray-light);
}
.topic-meta i { color: var(--sheen-red); }

/* =============================================================
   RESULTS & METRICS
   ============================================================= */
.results-highlight {
    background-color: var(--sheen-red-light) !important;
    border-left: 4px solid var(--sheen-red);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}
html[dir="rtl"] .results-highlight {
    border-left: none;
    border-right: 4px solid var(--sheen-red);
}

/* =============================================================
   CTA BAND
   ============================================================= */
.cta-band {
    background: var(--sheen-black);
    color: var(--sheen-white);
    padding: 4rem 0;
    text-align: center;
}
.cta-band h2 { color: var(--sheen-white); }
.cta-band p  { color: rgba(255,255,255,0.78); }

/* =============================================================
   ANIMATIONS
   ============================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-red {
    0%   { box-shadow: 0 0 0 0 rgba(220,62,8,0.45); }
    70%  { box-shadow: 0 0 0 12px rgba(220,62,8,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,62,8,0); }
}
.pulse-primary { animation: pulse-red 2s infinite; }

@keyframes float-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-float { animation: float-up 0.7s ease forwards; }

/* =============================================================
   UTILITY
   ============================================================= */
.hover-primary:hover  { color: var(--sheen-red)   !important; }
.text-red             { color: var(--sheen-red)   !important; }
.bg-red-light         { background-color: var(--sheen-red-light); }
.border-red           { border-color: var(--sheen-red) !important; }

/* Subscribe form */
.subscribe-form {
    background: var(--sheen-white);
    border-radius: var(--card-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* Newsletter image */
.newsletter-image {
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
    :root {
        --section-py:    52px;
        --section-py-sm: 32px;
    }
    .hero-section { padding: 4rem 0; min-height: auto; }
    .stat-number  { font-size: 2.2rem; }
}
