/*
Theme Name: Ritaj Landing
Theme URI: https://example.com/ritaj-landing
Author: ELAOUTAR INFO
Author URI: https://example.com
Description: A premium Arabic landing page theme for RITAJ commercial stores.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ritaj-landing
*/

:root {
    /* Premium Color Palette */
    --color-primary: #D4AF37;
    /* Gold/Bronze */
    --color-primary-dark: #B4941F;
    --color-secondary: #0A192F;
    /* Deep Blue/Black */
    --color-secondary-light: #172A46;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FA;
    --color-border: #E5E5E5;
    --color-white: #FFFFFF;
    --color-error: #DC3545;
    --color-success: #28A745;

    /* Typography */
    --font-primary: 'Tajawal', sans-serif;
    --font-heading: 'Cairo', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    direction: rtl;
    /* Force RTL */
    text-align: right;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Common */
.section {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: var(--color-bg-alt);
}

.bg-dark {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.bg-white {
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: var(--spacing-xs) auto 0;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-secondary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.main-nav a {
    font-weight: 500;
    color: var(--color-secondary);
}

.main-nav a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    /* Header height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.6) 50%, rgba(10, 25, 47, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text {
    color: var(--color-white);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
}

/* Lead Form Box */
.lead-form-box {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.lead-form-box h3 {
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.lead-form-box p {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Contact Form 7 Styles */
.wpcf7 {
    width: 100%;
}

.wpcf7-form {
    width: 100%;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 1rem;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--color-white);
    color: var(--color-text);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.wpcf7-form .wpcf7-submit {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
    margin-top: 0.5rem;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.wpcf7-form .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.wpcf7-form .wpcf7-not-valid-tip {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.wpcf7-form .wpcf7-validation-errors {
    border: 1px solid var(--color-error);
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--color-error);
}

.wpcf7-form .wpcf7-mail-sent-ok {
    border: 1px solid var(--color-success);
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
}

/* Hide CF7 label text, keep only inputs */
.wpcf7-form label {
    font-size: 0;
    margin-bottom: 1rem;
}

.wpcf7-form label .wpcf7-form-control-wrap {
    font-size: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: 8px;
}

.about-map-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-smooth);
    cursor: pointer;
}

.about-map-img:hover {
    transform: scale(1.05);
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.about-content h3 {
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-size: 1.8rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-cta {
    margin-top: auto;
}

.about-cta .btn {
    display: inline-block;
}

.features-list {
    margin-top: var(--spacing-md);
}

.features-list li {
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Features Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* Business Types Section */
.business-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.business-type-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
}

.business-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.business-type-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-type-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-smooth);
    background: transparent;
}

.business-type-card:hover .business-type-image img {
    transform: scale(1.1);
}

.business-type-content {
    padding: var(--spacing-md);
}

.business-type-content h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.business-type-content p {
    color: var(--color-text);
    line-height: 1.6;
}

/* Gallery Section - Carousel */
.gallery-section .gallery-carousel-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 0 60px;
    margin: 0 auto;
}

.gallery-section .gallery-carousel {
    display: flex !important;
    flex-direction: row !important;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: stretch;
}

.gallery-section .gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-section .gallery-item {
    flex: 0 0 calc(50% - (var(--spacing-md) / 2)) !important;
    min-width: calc(50% - (var(--spacing-md) / 2)) !important;
    max-width: calc(50% - (var(--spacing-md) / 2)) !important;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: block;
}

.gallery-section .gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.gallery-section .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-section .gallery-item:hover img {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    color: var(--color-primary);
}

.carousel-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    cursor: default;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* WhatsApp Section */
.whatsapp-section {
    background: linear-gradient(135deg, #0A192F 0%, #172A46 100%);
    padding: var(--spacing-xl) 0;
}

.whatsapp-cta-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    color: #25D366;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.whatsapp-cta-title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.whatsapp-cta-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
    padding: 18px 48px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-smooth);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* Footer */
.site-footer {
    background-color: #050d1a;
    color: #8892b0;
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-logo h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    margin: 0 10px;
    color: #8892b0;
}

.footer-links a:hover {
    color: var(--color-success);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-fast);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-smooth);
        z-index: 1000;
        padding-top: 80px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md);
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav a {
        display: block;
        padding: var(--spacing-sm) 0;
    }

    .main-nav .btn {
        margin-top: var(--spacing-sm);
        width: 100%;
        text-align: center;
    }

    .hero-content,
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-form-wrapper {
        order: 1;
        margin-bottom: var(--spacing-md);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .features-list li {
        padding-right: 0;
        list-style-position: inside;
    }

    .features-list li::before {
        position: static;
        margin-left: 0.5rem;
    }

    .header-container {
        justify-content: space-between;
    }

    /* Mobile carousel - 1 image at a time */
    .gallery-section .gallery-carousel-wrapper {
        padding: 0 50px;
    }

    .gallery-section .gallery-item {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Hero section mobile spacing */
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: var(--spacing-md);
    }

    .hero-form-wrapper {
        margin-top: var(--spacing-md);
    }

    .hero-cta {
        padding: var(--spacing-sm) 0;
    }

    /* Features list mobile alignment */
    .about-content,
    .features-list {
        text-align: right;
    }

    .about-content p {
        margin-bottom: var(--spacing-sm);
    }

    .features-list {
        padding-right: 0;
        padding-left: 0;
        margin-right: 0;
        margin-left: 0;
        margin-top: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .features-list li {
        text-align: right;
        direction: rtl;
        padding-right: 1.5rem;
        padding-left: 0;
    }

    .features-list li::before {
        right: 0;
        left: auto;
    }

    .about-cta {
        margin-top: var(--spacing-sm);
    }

    /* Reduce space between sections on mobile */
    .about-section {
        padding-bottom: var(--spacing-md);
    }

    .features-section {
        padding-top: var(--spacing-md);
    }
}