/* 
========================================
Design System - Mega Standard
========================================
*/

:root {
    /* Color Palette - Windows Classic / Web 1.0 */
    --bg-primary: #ECE9D8;
    /* Classic Win XP background */
    --bg-secondary: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #000000;
    --link-color: #0000EE;
    --link-visited: #551A8B;

    /* Windows UI Colors */
    --win-blue-light: #0055EA;
    /* XP Title bar */
    --win-blue-dark: #003399;
    --win-border-light: #FFFFFF;
    --win-border-dark: #ACA899;

    /* Using Logo Colors as accents */
    --brand-blue: #5B8A9F;
    --brand-yellow: #E3D580;

    /* Classic Web Typography */
    --font-heading: 'Tahoma', 'Verdana', sans-serif;
    --font-main: 'Tahoma', 'Arial', sans-serif;

    /* Structural */
    --border-outset: 2px outset #ECE9D8;
    --border-inset: 2px inset #ECE9D8;
    --border-solid: 1px solid #ACA899;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .hero-title {
    letter-spacing: normal;
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-right: 1rem;
    padding-right: 1rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

html[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

html[dir="rtl"] .feature-list li {
    flex-direction: row-reverse;
}

/* End RTL */

/* End RTL */

a {
    text-decoration: underline;
    color: var(--link-color);
}

a:hover {
    color: red;
    /* Classic web hover */
}

ul {
    list-style: square;
    margin-left: 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: bold;
    line-height: 1.2;
    color: var(--win-blue-dark);
}

.text-center {
    text-align: center;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 960px;
    /* narrowed boxed layout */
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

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

/* Buttons (Windows 98/XP Style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-family: var(--font-main);
    font-size: 13px;
    background-color: #ECE9D8;
    color: #000000;
    border: 1px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    cursor: pointer;
    text-decoration: none;
}

.btn:active {
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    background-color: #D4D0C8;
    padding: 5px 11px 3px 13px;
    /* Simulate push */
}

.btn-primary {
    /* Windows XP Default Button Style */
    background: linear-gradient(180deg, #FDFDFD 0%, #D4D4D4 100%);
    border: 1px solid #003C74;
    border-radius: 3px !important;
    color: #000000;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #FFFFFF 0%, #E6E6E6 100%);
    box-shadow: inset 0 0 0 1px #FFD700;
    color: #000000;
}

.btn-outline {
    background-color: #ECE9D8;
}

/* 
========================================
Navigation
========================================
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Darker Blue Gradient with Opacity and Blur */
    background: linear-gradient(to bottom, rgba(16, 59, 158, 0.6) 0%, rgba(28, 82, 214, 0.6) 9%, rgba(16, 59, 158, 0.6) 18%, rgba(16, 59, 158, 0.6) 94%, rgba(10, 37, 105, 0.6) 100%);
    border-bottom: 2px solid rgba(8, 29, 82, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 5px 0;
}

.navbar .container {
    max-width: 1280px;
    /* Force navbar wide to prevent link clamping */
}

.navbar.scrolled {
    padding: 5px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo:hover .logo-text {
    color: #FFFFFF;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    background-color: transparent;
    margin-top: -10px;
    margin-bottom: -10px;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Tahoma', sans-serif;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px #000;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Tahoma', sans-serif;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    font-weight: normal;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 8px;
}

.nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px !important;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px inset #FFFFFF;
}

.lang-btn {
    background: #ECE9D8;
    border: 1px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    font-size: 11px;
    padding: 2px 5px;
    color: #000000;
    cursor: pointer;
}

.lang-btn:hover,
.lang-btn.active {
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    background: #D4D0C8;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ECE9D8;
    min-width: 150px;
    border: 2px outset #ECE9D8;
    padding: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #000000;
    text-decoration: none;
    padding: 4px 8px;
    display: block;
    font-size: 12px;
}

.dropdown-content a:hover {
    background-color: #316AC5;
    color: #FFFFFF;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* 
========================================
Hero Section
========================================
*/
.hero {
    position: relative;
    padding: 80px 20px 40px 20px;
    background: url('https://www.transparenttextures.com/patterns/cream-pixels.png'), var(--bg-primary);
    /* Classic web texture */
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero-content {
    background: #FFFFFF;
    padding: 20px;
    border: var(--border-inset);
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    /* Title bar style for badge */
    display: block;
    padding: 2px 4px;
    background: linear-gradient(to right, #0055EA 0%, #3A8DFB 100%);
    color: #FFFFFF;
    font-family: 'Tahoma', sans-serif;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    border-radius: 3px 3px 0 0 !important;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.gradient-text {
    background: none;
    color: #CC0000;
    padding: 0;
}

.hero-subtitle {
    font-size: 14px;
    color: #000000;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 10px;
}

/* 
========================================
About Section
========================================
*/
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--win-blue-dark);
    border-bottom: 1px solid #ACA899;
    padding-bottom: 5px;
}

.about-text p {
    margin-bottom: 15px;
    color: #000000;
    font-size: 14px;
}

.stats-grid {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.stat-card {
    padding: 10px;
    background: #FFFFFF;
    border: var(--border-inset);
    text-align: center;
    flex: 1;
}

.stat-card i {
    font-size: 24px;
    color: var(--win-blue-light);
    margin-bottom: 5px;
}

.stat-card h3 {
    font-family: var(--font-main);
    font-size: 18px;
    margin-bottom: 2px;
}

.stat-card p {
    font-size: 12px !important;
    text-transform: none;
    font-weight: normal;
}

.about-image-wrapper {
    display: none;
    /* Hide abstract shape */
}

/* 
========================================
Divisions / Cards
========================================
*/
.section-subtitle {
    color: #000000;
    font-size: 14px;
    margin-bottom: 20px;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.card {
    background: #FFFFFF;
    padding: 15px;
    border: var(--border-outset);
    /* Windows 3D panel */
    flex: 1;
    min-width: 250px;
}

.card:hover {
    outline: 1px dotted #808080;
    /* Add a simple focus outline instead of empty */
}

.card-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--win-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
    border: none;
}

.card h3 {
    font-size: 18px;
    border-bottom: 1px dotted #808080;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--accent-green);
    font-size: 0.875rem;
}

/* 
========================================
Responsive
========================================
*/
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        height: 400px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #103b9e;
        border-bottom: 2px solid #081d52;
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        padding-left: 15px;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        justify-content: flex-start;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 
========================================
Contact Section & Footer (Web 1.0)
========================================
*/
.contact-section {
    background: #ECE9D8;
    border-top: var(--border-outset);
}

.contact-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-form-box,
.contact-info-box {
    background: #ECE9D8;
    flex: 1;
    min-width: 300px;
}

fieldset {
    border: 2px groove #FFFFFF;
    padding: 15px;
    margin-bottom: 10px;
    height: 100%;
}

legend {
    font-weight: bold;
    color: var(--win-blue-dark);
    padding: 0 5px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.form-control {
    width: 100%;
    padding: 4px;
    font-family: var(--font-main);
    font-size: 13px;
    border: 2px inset #ECE9D8;
    background: #FFFFFF;
}

textarea.form-control {
    resize: none;
    height: 100px;
}

.footer {
    background: #C0C0C0;
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    border-top: var(--border-outset);
    color: #000000;
}

/* 
========================================
Brands Page Elements
========================================
*/
.brands-section {
    min-height: calc(100vh - 120px);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.brand-item {
    background: #FFFFFF;
    border: var(--border-outset);
    padding: 15px 10px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: bold;
    color: var(--win-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    word-break: break-word;
    text-decoration: none;
}

.brand-item:hover {
    background: #E8F0FF;
    border: var(--border-inset);
    cursor: pointer;
}

.brand-search-container {
    background: #ECE9D8;
    padding: 10px;
    border: var(--border-outset);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-search-input {
    flex: 1;
    padding: 6px;
    border: var(--border-inset);
    font-family: var(--font-main);
}

/* =========================================
   Products Page Specific
   ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-item {
    background: #FFFFFF;
    border: var(--border-outset);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.1s;
}

.product-item:hover {
    background: #F5F5F5;
}

.product-image-placeholder {
    width: 100%;
    height: 180px;
    background: #ECE9D8;
    border: var(--border-inset);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--win-blue);
    font-size: 40px;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border: var(--border-inset);
    margin-bottom: 15px;
    background: #FFF;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--win-blue-dark);
    margin-bottom: 15px;
    min-height: 40px;
}

.product-brand {
    font-size: 11px;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-whatsapp {
    background: linear-gradient(180deg, #25D366 0%, #128C7E 100%);
    border: 1px outset #128C7E;
    color: #FFF;
    font-weight: bold;
    padding: 8px;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-main);
}

.btn-whatsapp:active {
    border: 1px inset #128C7E;
    background: #128C7E;
}

.btn-whatsapp i {
    margin-right: 5px;
}