/* ============================================
   Zedan World - Main Stylesheet
   Modern, Clean, Responsive Business Website
   ============================================ */

/* ===== Tajawal Font Face (Google Fonts CDN - Local fonts will be used when available) ===== */
/* Note: To use local fonts, download them to the fonts/ directory and uncomment the @font-face rules below */
/* For now, using Google Fonts CDN which is already linked in HTML files */

/* Uncomment below when local font files are available:
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Tajawal-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Tajawal-Medium.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/Tajawal-Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Tajawal-ExtraBold.ttf') format('truetype');
    font-display: swap;
}
*/

/* ===== CSS Variables ===== */
:root {
    --primary-red: #8B0000;
    --dark-red: #6B0000;
    --light-red: #A52A2A;
    --gold: #D4AF37;
    --light-gold: #F4D03F;
    --dark-gold: #B8860B;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #666666;
    --dark-gray: #333333;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== Header & Navigation ===== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links a.active {
    color: var(--primary-red);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-red);
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--gold);
    color: var(--dark-gray);
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s both;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* ===== Container & Sections ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--gold));
}

/* ===== Introduction Section ===== */
.intro {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.8;
}

/* ===== Highlight Cards ===== */
.highlights {
    background-color: var(--white);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.15);
    border-color: var(--gold);
}

.highlight-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--gold);
}

.highlight-card-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.highlight-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.highlight-card p {
    color: var(--gray);
    font-size: 1rem;
}

/* ===== About Page Styles ===== */
.about-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
    font-size: 3rem;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.vision-card, .mission-card {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--gold);
}

.vision-card h3, .mission-card h3 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
}

.value-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--gold);
}

.value-card-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ===== Services Page Styles ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.2);
}

.service-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service-card-image svg {
    width: 80px;
    height: 80px;
    fill: currentColor;
}

.service-card-content {
    padding: 2rem;
}

.service-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* ===== E-Commerce Page Styles ===== */
.shop-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.shop-hero h1 {
    color: var(--white);
    font-size: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.product-image svg {
    width: 80px;
    height: 80px;
    fill: currentColor;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.add-to-cart:hover {
    background-color: var(--dark-red);
    transform: scale(1.02);
}

/* ===== Contact Page Styles ===== */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.contact-hero h1 {
    color: var(--white);
    font-size: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    margin-top: 3rem;
    border: 2px dashed var(--gray);
}

.map-placeholder svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease both;
}

/* ===== RTL (Right-to-Left) Support for Arabic ===== */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    font-family: 'Tajawal', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: 'Tajawal', 'Georgia', 'Times New Roman', serif;
}

html[dir="rtl"] nav {
    flex-direction: row-reverse;
    direction: rtl;
}

html[dir="rtl"] .nav-links {
    direction: rtl;
    flex-direction: row;
}

html[dir="rtl"] .nav-links li {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .nav-links a {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .contact-content {
    direction: rtl;
}

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .service-features li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir="rtl"] .service-features li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .vision-mission ul li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir="rtl"] .vision-mission ul li span {
    left: auto;
    right: 0;
}

html[dir="rtl"] .footer-content {
    direction: rtl;
}

html[dir="rtl"] .section-title h2::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

html[dir="rtl"] .nav-links a.active::after {
    left: auto;
    right: 1rem;
}

html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
    order: 1;
}

html[dir="rtl"] .mobile-menu-toggle {
    order: 2;
    margin-left: 1rem;
    margin-right: 0;
}

html[dir="rtl"] .nav-links {
    order: 3;
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .logo-container {
    order: 4;
    margin-right: 0;
    margin-left: auto;
    flex-direction: row-reverse;
}

html[dir="rtl"] .intro-content {
    text-align: right;
}

html[dir="rtl"] .intro-content p {
    text-align: right;
}

html[dir="rtl"] .section-title {
    text-align: center;
}

html[dir="rtl"] .section-title h2 {
    text-align: center;
}

html[dir="rtl"] .hero-content {
    text-align: center;
}

html[dir="rtl"] .about-hero,
html[dir="rtl"] .contact-hero,
html[dir="rtl"] .shop-hero {
    text-align: center;
}

html[dir="rtl"] .highlight-card,
html[dir="rtl"] .service-card,
html[dir="rtl"] .product-card,
html[dir="rtl"] .value-card {
    text-align: right;
}

html[dir="rtl"] .contact-form {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .form-group {
    text-align: right;
}

html[dir="rtl"] .form-group label {
    text-align: right;
    display: block;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .contact-info {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .contact-item-icon {
    margin-right: 0;
    margin-left: 1rem;
}

html[dir="rtl"] .contact-item > div:last-child {
    text-align: right;
}

html[dir="rtl"] .contact-item > div:last-child h4,
html[dir="rtl"] .contact-item > div:last-child p {
    text-align: right;
}

html[dir="rtl"] .footer-section {
    text-align: right;
}

html[dir="rtl"] .footer-bottom {
    text-align: center;
}

html[dir="rtl"] .vision-card,
html[dir="rtl"] .mission-card {
    text-align: right;
    border-left: none;
    border-right: 5px solid var(--gold);
}

html[dir="rtl"] .info-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .info-label {
    text-align: right;
}

html[dir="rtl"] .info-value {
    text-align: right;
}

html[dir="rtl"] .map-placeholder {
    text-align: center;
}

html[dir="rtl"] .map-placeholder > div {
    text-align: center;
}

@media (max-width: 768px) {
    html[dir="rtl"] .nav-links {
        left: auto;
        right: -100%;
        flex-direction: column !important;
        align-items: flex-start;
        direction: rtl;
        text-align: right;
    }
    
    html[dir="rtl"] .nav-links.active {
        left: auto;
        right: 0;
    }
    
    html[dir="rtl"] .nav-links li {
        width: 100%;
        text-align: right;
        direction: rtl;
    }
    
    html[dir="rtl"] .nav-links a {
        width: 100%;
        display: block;
        text-align: right;
        direction: rtl;
        padding-right: 1rem;
        padding-left: 0;
    }
    
    html[dir="rtl"] .nav-links a.active::after {
        display: none;
    }
    
    html[dir="rtl"] .language-switcher {
        margin-right: 0;
        margin-left: 1rem;
    }
    
    html[dir="rtl"] .mobile-menu-toggle {
        margin-left: 0;
        margin-right: 1rem;
    }
}

html[dir="rtl"] .footer-section {
    text-align: right;
}

html[dir="rtl"] .footer-bottom {
    text-align: center;
}

/* ===== Language Switcher ===== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.language-switcher a {
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--dark-gray);
    border: 1px solid transparent;
}

.language-switcher a:hover {
    color: var(--primary-red);
    border-color: var(--gold);
}

.language-switcher a.active {
    color: var(--primary-red);
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        flex-direction: column !important;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 1rem;
        align-items: flex-start;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        width: 100%;
        display: block;
        padding: 1rem;
    }
    
    .nav-links a.active::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .section {
        padding: 3rem 0;
    }

    .highlight-grid,
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .vision-mission,
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    nav {
        padding: 0 1rem;
    }
}

