/*
Theme Name: AlRajhi Transport
Theme URI: https://alrajhi-transport.com
Author: Your Name
Author URI: https://your-site.com
Description: Custom WordPress theme for AlRajhi Transport - Gulf logistics company
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alrajhi
*/

/* ============================================
   VARIABLES & BASE
   ============================================ */
:root {
    --primary-green: #1a5f4a;
    --primary-green-dark: #134a3a;
    --accent-gold: #c9a227;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    overflow-x: hidden;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    height: 50px;
    width: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 5px 0;
    transition: var(--transition);
}

/* Primary Navigation */
.primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.primary-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
    color: var(--primary-green);
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.primary-menu a:hover::after {
    width: 100%;
}

/* CTA Button in Menu */
.menu-cta {
    background: var(--primary-green);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.menu-cta:hover {
    background: var(--primary-green-dark);
}

.menu-cta::after {
    display: none !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(26, 95, 74, 0.85), rgba(26, 95, 74, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    color: var(--white);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.hero-feature svg {
    width: 24px;
    height: 24px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.hero-feature span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: var(--white);
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
    margin-top: -4rem;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}

.stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    display: block;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
}

.services-section {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.services-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: attr(data-number);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(26, 95, 74, 0.06);
    line-height: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    background: var(--bg-light);
    color: var(--primary-green);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   FLEET SECTION
   ============================================ */
.fleet-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.fleet-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.fleet-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.fleet-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fleet-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fleet-badge strong {
    display: block;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.fleet-badge span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.fleet-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.fleet-info > p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.fleet-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.spec-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================
   COVERAGE SECTION
   ============================================ */
.coverage-section {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.coverage-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.country-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.country-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.country-flag {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.country-name {
    font-weight: 700;
    font-size: 1rem;
}

.country-status {
    font-size: 0.8rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.clients-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.client-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    text-align: center;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo img {
    max-width: 120px;
    height: auto;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 5rem 2rem;
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-green);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .fleet-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    
    .primary-menu.active {
        right: 0;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .fleet-specs {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Admin Bar Fix */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}