/*
Theme Name: Al-Aloush Cargo
Theme URI: https://al-aloush.com
Description: Modern WordPress theme for Al-Aloush cargo and shipping company with Arabic RTL support
Version: 1.0
Author: Al-Aloush
Text Domain: al-aloush
*/

/* ==========================================================================
   CSS Variables - Color Scheme
   ========================================================================== */
:root {
    --color-gold: #D4AF37;
    --color-gold-light: #F4D03F;
    --color-gold-dark: #B8941F;
    --color-navy: #0A1929;
    --color-dark-blue: #1A2332;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #CCCCCC;
    --color-gray-dark: #333333;

    --font-primary: 'Cairo', 'Arial', sans-serif;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    direction: rtl;
    text-align: right;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    background-color: var(--color-navy);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.company-tagline {
    display: block;
    font-size: 11px;
    color: var(--color-gold);
    margin-top: 5px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.site-logo img:hover {
    transform: scale(1.05);
}

/* Navigation Menu */
.navbar ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar a {
    color: var(--color-white);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.navbar a:hover,
.navbar a.active {
    background-color: var(--color-gold);
    color: var(--color-navy);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--color-gold);
    border: none;
    color: var(--color-navy);
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

/* ==========================================================================
   Hero Section & Slideshow
   ========================================================================== */
.hero-slideshow {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--color-navy);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.8), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 20px;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--color-white);
}

.slide-content .btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-navy);
    font-weight: 700;
    border-radius: 50px;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.slide-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
}

/* Slideshow Navigation */
.slideshow-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slideshow-nav button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.slideshow-nav button.active,
.slideshow-nav button:hover {
    background: var(--color-gold);
}

/* Slideshow Arrows */
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.3);
    border: none;
    color: var(--color-white);
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slideshow-arrow:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}

.slideshow-arrow.prev {
    right: 20px;
}

.slideshow-arrow.next {
    left: 20px;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-section {
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-navy);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--color-gold);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.service-icon {
    font-size: 50px;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--color-navy);
}

.service-card p {
    color: var(--color-gray-dark);
    line-height: 1.8;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    background: linear-gradient(135deg, var(--color-navy), var(--color-dark-blue));
    color: var(--color-white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--color-gold);
    font-weight: 700;
}

.footer-widget p,
.footer-widget li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-widget a {
    color: var(--color-white);
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--color-gold);
}

.contact-info i {
    color: var(--color-gold);
    margin-left: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray-medium);
}

/* ==========================================================================
   Page Content Styles
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--color-navy), var(--color-dark-blue));
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 48px;
    color: var(--color-gold);
    font-weight: 700;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.page-content h2 {
    font-size: 32px;
    color: var(--color-navy);
    margin: 40px 0 20px;
}

.page-content p {
    line-height: 2;
    margin-bottom: 20px;
    font-size: 18px;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-gray-medium);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
    direction: rtl;
    text-align: right;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-navy);
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        display: none;
        width: 100%;
        margin-top: 20px;
    }

    .navbar.active {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .page-title {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   News Archive & Cards
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--color-gold);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.news-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 30px;
}

.news-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--color-navy);
}

.news-title a {
    color: var(--color-navy);
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--color-gold);
}

.news-meta {
    color: var(--color-gray-dark);
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-gray-light);
}

.news-excerpt {
    color: var(--color-gray-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--color-gold);
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--color-gold-dark);
    transform: translateX(-5px);
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-white);
    border: 2px solid var(--color-gold);
    color: var(--color-navy);
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 600;
}

.pagination a:hover,
.pagination .current {
    background: var(--color-gold);
    color: var(--color-navy);
}

/* Entry Content Styling */
.entry-content {
    line-height: 2;
    font-size: 18px;
}

.entry-content h2 {
    font-size: 32px;
    color: var(--color-navy);
    margin: 40px 0 20px;
}

.entry-content h3 {
    font-size: 26px;
    color: var(--color-navy);
    margin: 30px 0 15px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center {
    text-align: center;
}

.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}