@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --gold-primary: #C5A028;
    --gold-light: #E6C86E;
    --gold-dark: #8A6E16;
    --black: #0A0A0A;
    --white: #FFFFFF;
    --off-white: #F9F9FB;
    --text-primary: #1F1F1F;
    --text-secondary: #555555;
    --border-color: #E0E0E0;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--white);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    direction: rtl;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('luxury_hero_light_1765658094383.png') no-repeat center center/cover;
    padding-top: 100px;
    padding-bottom: 50px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    /* Slightly brighter overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid rgba(197, 160, 40, 0.25);
    box-shadow: 0 30px 60px rgba(197, 160, 40, 0.1);
}

.hero-content img.hero-logo {
    width: 220px;
    /* Increased Dimension */
    max-width: 90%;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.2));
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.3;
}

.hero h1 span {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 45px;
    background: var(--black);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    border: 1px solid var(--black);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: transparent;
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn.btn-gold {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #fff;
}

.btn.btn-gold:hover {
    background: transparent;
    color: var(--gold-primary);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Partners / Factories */
.partners-section {
    background: var(--white);
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    background: var(--white);
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.partner-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.partner-card .img-wrapper {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.partner-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s;
}

.partner-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: auto;
}

/* Timeline - Optimized for RTL & Responsive */
.timeline-section {
    background: var(--off-white);
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-primary), var(--gold-light));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    width: 50%;
    padding: 20px 40px;
    position: relative;
    box-sizing: border-box;
}

/* RTL Layout: 
   Odd items (1,3) -> Right side (physically) relative to center line??
   No, traditionally:
   Odd -> Left (physically left of center)
   Even -> Right (physically right of center)
   
   In RTL:
   left: 50% => starts at center.
   left: 0 => starts at left edge.
*/

:lang(ar) .timeline-item:nth-child(odd) {
    left: 50%;
    text-align: right;
    padding-left: 40px;
    padding-right: 0;
}

:lang(ar) .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
    padding-right: 40px;
    padding-left: 0;
}

/* Dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 5px solid var(--gold-primary);
    border-radius: 50%;
    top: 30px;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

:lang(ar) .timeline-item:nth-child(odd)::after {
    left: -11.5px;
    /* Half of 20px + half of 3px line ~ center */
    right: auto;
}

:lang(ar) .timeline-item:nth-child(even)::after {
    right: -11.5px;
    left: auto;
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* very subtle border */
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Lead Gen Form */
.lead-gen {
    background: var(--white);
}

.form-container {
    background: var(--off-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.form-control {
    background: var(--white);
    border: 1px solid #ddd;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
footer {
    background: var(--black);
    color: #fff;
    padding: 60px 0 30px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .about-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Timeline - Stacked */
    :lang(ar) .timeline::after {
        right: 30px;
        left: auto;
    }

    .timeline {
        padding-left: 0;
        padding-right: 0;
    }

    :lang(ar) .timeline-item:nth-child(odd),
    :lang(ar) .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: right;
        padding-right: 70px;
        /* Space for the line */
        padding-left: 20px;
        margin-bottom: 30px;
    }

    :lang(ar) .timeline-item:nth-child(odd)::after,
    :lang(ar) .timeline-item:nth-child(even)::after {
        right: 19px;
        /* Align with the new line position */
        left: auto;
    }

    .form-row {
        display: block !important;
    }
}
