/*
Theme Name: Forward SA - قالب فورورد
Description: قالب مخصص لموقع Forward SA - استيراد من الصين للسعودية
Version: 1.0.1
Author: Forward SA
Text Domain: forward-sa
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-green: #0F7A3D;
    --dark-green: #0A5A2D;
    --light-green: #E8F5EC;
    --accent-green: #27AE60;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #F5F5F5;
    --dark-text: #1A1A1A;
    --medium-text: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text);
    background: var(--white);
    direction: rtl;
    text-align: right;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--dark-text); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--medium-text); }

/* ============================================
   Container & Layout
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 15px; font-size: 2rem; }
.section-subtitle { text-align: center; margin-bottom: 50px; color: var(--medium-text); font-size: 1.1rem; }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--border-radius);
    font-weight: 700; font-size: 1rem; font-family: var(--font-family);
    cursor: pointer; border: 2px solid transparent;
    transition: var(--transition); text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--primary-green); color: var(--white); border-color: var(--primary-green); }
.btn-primary:hover { background: var(--dark-green); border-color: var(--dark-green); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--primary-green); border-color: var(--primary-green); }
.btn-outline:hover { background: var(--primary-green); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* ============================================
   Top Bar
   ============================================ */
.top-bar { background: var(--dark-green); color: var(--white); padding: 10px 0; font-size: 0.9rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar-phone { display: flex; align-items: center; gap: 8px; direction: ltr; }
.top-bar-phone a { color: var(--white); direction: ltr; unicode-bidi: bidi-override; }
.top-bar-phone a:hover { color: var(--light-green); }
.top-bar-left { display: flex; align-items: center; gap: 15px; }
.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: var(--white); transition: var(--transition);
}
.social-icon:hover { background: var(--primary-green); transform: translateY(-2px); }
.top-bar-cta { color: var(--white); opacity: 0.9; font-size: 0.85rem; }

/* ============================================
   Main Header
   ============================================ */
.main-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 20px; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo-img { height: 46px; width: auto; display: block; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--primary-green); line-height: 1.2; }
.logo-text span { display: block; font-size: 0.7rem; font-weight: 400; color: var(--medium-text); }
.main-nav ul { display: flex; align-items: center; gap: 5px; }
.main-nav a { padding: 10px 16px; border-radius: var(--border-radius); font-weight: 600; font-size: 0.95rem; color: var(--dark-text); transition: var(--transition); }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary-green); background: var(--light-green); }
.header-cta { flex-shrink: 0; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; background: none; border: none; }
.menu-toggle span { display: block; width: 25px; height: 3px; background: var(--primary-green); border-radius: 2px; transition: var(--transition); }

/* ============================================
   Hero Section - Full-width background style
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    display: flex;
    align-items: center;
}

/* Full-width background image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10, 27, 45, 0.82) 0%,
        rgba(10, 27, 45, 0.55) 50%,
        rgba(10, 27, 45, 0.30) 100%
    );
}

/* Wave ribbon */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* Content sits above overlay */
.hero .container {
    position: relative;
    z-index: 3;
    padding-top: 80px;
    padding-bottom: 100px;
}

.hero-content {
    max-width: 680px;
    color: var(--white);
}

/* Experience Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 20px 10px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(15,122,61,0.35);
}
.badge-icon {
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.badge-icon svg { width: 16px; height: 16px; }

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 22px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero h1 .highlight { color: #4ade80; }

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 34px;
    line-height: 1.85;
    max-width: 560px;
}

/* Trust indicators row */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.hero-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}
.hero-trust .trust-icon {
    width: 34px; height: 34px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hero-trust .trust-icon svg { color: var(--white); width: 16px; height: 16px; }
.hero-trust .trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.hero-trust .trust-text strong {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 700;
}
.hero-trust .trust-text small {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary {
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(15,122,61,0.4);
    background: var(--primary-green);
    border-color: var(--primary-green);
}
.hero .btn-primary:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-2px);
}
.hero .btn-outline {
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    background: transparent;
    backdrop-filter: blur(4px);
}
.hero .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Trust Bar */
.trust-bar { background: var(--light-green); padding: 30px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-bar .trust-item { display: flex; align-items: center; gap: 12px; background: var(--white); padding: 15px 20px; border-radius: var(--border-radius); box-shadow: 0 2px 8px rgba(0,0,0,0.05); font-weight: 600; color: var(--dark-text); justify-content: center; }
.trust-bar .trust-icon { width: 45px; height: 45px; background: var(--light-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-bar .trust-icon svg { color: var(--primary-green); }

/* ============================================
   Services Section
   ============================================ */
.services { background: var(--light-gray); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--white); border-radius: 12px; padding: 35px 30px; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid transparent; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary-green); }
.service-icon { width: 60px; height: 60px; background: var(--light-green); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--dark-text); }
.service-card p { font-size: 0.95rem; margin-bottom: 20px; line-height: 1.7; }
.service-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-green); font-weight: 600; font-size: 0.95rem; }
.service-link:hover { gap: 10px; color: var(--dark-green); }

/* ============================================
   CTA Banner + Stats
   ============================================ */
.cta-banner { background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%); padding: 80px 0; }
.cta-banner .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* Left: dark card with icon */
.cta-card-dark {
    background: rgba(0,0,0,0.25);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
}
.cta-card-icon {
    width: 64px; height: 64px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(15,122,61,0.4);
}
.cta-card-icon svg { color: var(--white); width: 30px; height: 30px; }
.cta-card-dark h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 12px; }
.cta-card-dark p { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 24px; }
.cta-card-dark .btn { border-radius: 50px; }

/* Right: stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-item {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* ============================================
   Partners Section
   ============================================ */
.partners { background: var(--white); padding: 60px 0; }
.partners-title { text-align: center; font-size: 1.3rem; color: var(--medium-text); margin-bottom: 40px; }
.partners-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; opacity: 0.6; }

/* ============================================
   Footer
   ============================================ */
.site-footer { background: var(--dark-green); color: var(--white); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-about .logo-text { color: var(--white); margin-bottom: 15px; }
.footer-logo-img { height: 44px; width: auto; display: block; margin-bottom: 16px; }
.footer-about p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 20px; }
.footer-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.footer-links a { display: block; color: rgba(255,255,255,0.7); padding: 6px 0; font-size: 0.95rem; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-right: 5px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 12px; direction: ltr; }
.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin: 0; }

/* ============================================
   Lead Form Section
   ============================================ */
.lead-section { background: var(--light-gray); padding: 80px 0; }
.lead-form-wrapper { max-width: 700px; margin: 0 auto; background: var(--white); border-radius: 16px; padding: 50px; box-shadow: var(--shadow-hover); }
.lead-form-wrapper h2 { text-align: center; margin-bottom: 10px; }
.lead-form-wrapper .section-subtitle { margin-bottom: 35px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 0; }
.form-group.full-width { grid-column: span 2; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--dark-text); font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 18px; border: 2px solid var(--border-color);
    border-radius: var(--border-radius); font-family: var(--font-family);
    font-size: 1rem; color: var(--dark-text); background: var(--white);
    transition: var(--transition); direction: rtl;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(15,122,61,0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { text-align: center; margin-top: 30px; }
.form-submit .btn { width: 100%; max-width: 300px; justify-content: center; }

/* ============================================
   Page Header
   ============================================ */
.page-header { background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%); padding: 60px 0; text-align: center; color: var(--white); }
.page-header h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin: 0; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-image { order: -1; }
    .hero h1 { font-size: 2.2rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-banner .container { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-inner { flex-wrap: wrap; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: 20px; max-height: 400px; overflow-y: auto; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; }
    .main-nav a { display: block; padding: 12px 16px; }
    .menu-toggle { display: flex; }
    .header-cta { display: none; }
    .hero { min-height: auto; }
    .hero .container { padding-top: 40px; padding-bottom: 60px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-description { font-size: 1rem; max-width: 100%; }
    .hero h1 { font-size: 2.1rem; }
    .hero-trust { gap: 14px; }
    .hero-trust .trust-item {
        border-left: none;
        padding: 0;
        width: 100%;
    }
    .hero::before { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .lead-form-wrapper { padding: 30px 20px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .btn { padding: 12px 20px; font-size: 0.95rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .stat-item { padding: 15px; }
    .stat-number { font-size: 1.6rem; }
}
