@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&family=Cairo:wght@400;600;700&display=swap');

:root {
    --primary-green: #1a4314;
    --secondary-green: #2d5a27;
    --accent-gold: #c5a059;
    --gold-hover: #b08d4a;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-green);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--secondary-green);
}

.nav-overlay {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
    z-index: 1001;
}




/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 67, 20, 0.2);
}

.btn-gold {
    background: var(--accent-gold);
    color: white;
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
}

/* Sections */
section {
    padding: clamp(2rem, 8vw, 5rem) 0;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

margin-bottom: 0.5rem;
}

.hero-content .section-subtitle {
    display: inline-block;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 6px 14px;
    border-radius: 4px;
    text-shadow: none;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}


/* Hero */
.hero {
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 80px;
    /* Offset for header/visual centering */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: white;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}


.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns,
.cta-btns {
    display: flex;
    gap: 1rem;
}

@media (max-width: 576px) {

    .hero-btns,
    .cta-btns {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-btns .btn,
    .cta-btns .btn {
        width: 100%;
        max-width: 300px;
    }
}

.hero-btns {
    justify-content: center;
}

/* Feature Cards */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.product-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    list-style: none;
    padding: 5px 0;
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
}

/* Logo & Navigation */
.nav-container {
    display: flex;
    align-items: center;
}

/* About Section */
.about-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .experience-badge {
        position: relative !important;
        bottom: 0 !important;
        right: 0 !important;
        margin-top: -30px;
        margin-left: 20px;
        width: fit-content;
    }
}

/* Category Cards */
.category-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    z-index: 1;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card h3 {
    color: white;
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-card span {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Stats */
.stats-bar {
    background: var(--primary-green);
    color: white;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact CTA */
.cta-box {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 4rem;
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Products */
.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.product-img {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #f1f1f1;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-info {
    padding: 1.5rem;
}

.product-cat {
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-title {
    font-size: 1.2rem;
    margin: 0.5rem 0 1rem;
}

/* Footer */
footer {
    background: #111;
    color: #999;
    padding: var(--space-xl) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: var(--space-lg);
}

.footer-logo {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--accent-gold);
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--accent-gold);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Language Specific */
[lang="ar"] {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

[lang="ar"] .hero {
    text-align: right;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3 {
    font-family: 'Cairo', sans-serif;
}

@media (max-width: 992px) {
    .about-split {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* .nav-links { display: none; } OMITTED! */

    .hero {
        height: auto;
        padding: var(--space-xl) 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .cta-box {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile Navigation Overlay - RESTORED */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block !important;
    }

    .nav-overlay {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 300px !important;
        height: 100vh !important;
        background: white !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        flex-direction: column;
        padding: 6rem 2rem 2rem !important;
        transform: translateX(100%) !important;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        z-index: 10000 !important;
        visibility: hidden !important;
        left: auto !important;
    }

    .nav-overlay.active {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .nav-links li {
        display: block !important;
    }

    .nav-links li a {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: var(--text-dark) !important;
        padding: 0 !important;
    }

    .nav-overlay>div {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 1rem !important;
        display: flex !important;
        padding: 0 !important;
    }

    .get-quote-btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 0.8rem !important;
    }
}

/* Adjustments for arabic RTL in mobile menu */
[lang="ar"] .nav-overlay {
    right: auto !important;
    left: 0 !important;
    transform: translateX(-100%) !important;
}

[lang="ar"] .nav-overlay.active {
    transform: translateX(0) !important;
}

/* RTL Header Fixes */
[lang="ar"] .lang-dropdown {
    right: auto;
    left: 0;
}

[lang="ar"] .nav-links {
    margin: 0;
    padding: 0;
}

[lang="ar"] .menu-toggle {
    margin-right: auto;
    margin-left: 0;
}