/*
Theme Name: Wissal App RTL
Description: Main stylesheet for Wissal App (RTL Native)
Version: 1.2.0
*/

:root {
    /* Colors */
    --color-primary: #EE9209;
    --color-secondary: #E26922;
    --color-tertiary: #401300;
    --color-text: #401300;
    --color-text-light: #665c58;
    --color-bg: #FFFFFF;
    --color-bg-alt: #FFF8F0;
    --color-white: #FFFFFF;
    --color-blob-1: #FFF0E0;
    --color-blob-2: #FFE4D6;

    /* Typography */
    --font-arabic: 'Noto Sans Arabic', sans-serif;
    --font-english: 'Inter', sans-serif;
    --font-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 20px;
    --shadow-sm: 0 4px 6px rgba(238, 146, 9, 0.1);
    --shadow-md: 0 10px 30px rgba(238, 146, 9, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-arabic);
    font-size: var(--font-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-blob-1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

body::after {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--color-blob-2) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

/* LTR Override */
html[dir="ltr"] body {
    font-family: var(--font-english);
}

img {
    width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-tertiary);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.75rem;
    }
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--spacing-md);
}

.section {
    padding-block: var(--spacing-xl);
    position: relative;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

/* Header */
.site-header {
    padding-block: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title a {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--color-primary);
    letter-spacing: -0.03em;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .main-navigation ul {
        display: flex;
        gap: 2.5rem;
        align-items: center;
    }

    .main-navigation a {
        color: var(--color-text);
        font-weight: 600;
        font-size: 1rem;
        position: relative;
    }

    .main-navigation a:hover {
        color: var(--color-primary);
    }

    .main-navigation a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-primary);
        transition: width 0.3s ease;
    }

    .main-navigation a:hover::after {
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    padding-top: 4rem;
    padding-bottom: 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-visual img {

    transform: perspective(1000px) rotateY(-2deg);
    transition: transform 0.5s ease;
    max-width: 80%;
    margin: 0 auto;
}

.hero-visual:hover img {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

@media (min-width: 992px) {
    .hero-section .container {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
        align-items: center;
        text-align: start;
    }

    html[dir="ltr"] .hero-section .container {
        text-align: left;
    }

    .hero-visual img {
        max-width: 100%;
        margin: 0;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

@media (min-width: 992px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

/* Store Badges */
.store-badge img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.store-badge:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(238, 146, 9, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(226, 105, 34, 0.4);
}

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Features Grid */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 100%;
    height: 230px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* Stats */
.stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
}

/* Testimonials */
.testimonials-slider {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    min-width: 300px;
    background: var(--color-bg-alt);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    scroll-snap-align: center;
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: var(--spacing-sm);
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--color-primary);
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-alt);
    padding-block: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Utilities */
.text-center {
    text-align: center;
}

.rtl-flip {
    transform: scaleX(1);
}

html[dir="ltr"] .rtl-flip {
    transform: scaleX(-1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* How It Works Section */
.how-it-works-section {
    padding: var(--spacing-xl) 0;
    background-color: transparent;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.step-card {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--border-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Specific Card Backgrounds */
.step-card.step-left {
    background-image: url('assets/images/bg-how-it-works-left.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.step-card.step-middle {
    background-color: #FBF0DE;
}

.step-card.step-right {
    background-image: url('assets/images/bg-how-it-works-right.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.step-image {
    margin-bottom: var(--spacing-md);
    width: 100%;
}

.step-image img {
    margin: 0 auto;
    max-width: 200px;
    height: auto;
}

.step-card h3 {
    color: var(--color-text-dark);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.step-card p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
}