/* ==================== VARIABLES CSS ==================== */
:root {
    --primary-color: #1B2A41;
    --secondary-color: #FFC107;
    --accent-color: #3282B8;
    --dark-color: #111827;
    --light-color: #F9FAFB;
    --white-color: #ffffff;
    --font-family: 'Cairo', sans-serif;
    --header-height: 5rem;
}

/* ==================== BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
}

h1, h2, h3 {
    color: var(--primary-color);
    font-weight: 900;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

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

.section-light {
    background-color: var(--white-color);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    text-transform: uppercase;
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* ==================== HEADER & NAV ==================== */
.header {
    width: 100%;
    background-color: var(--white-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header .container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 40px;
}

.logo-text span {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.logo-text small {
    font-size: 0.75rem;
    color: #777;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    /* المسار: ../images/hero-background.jpg */
    background: url('../images/hero-background.jpg') center center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 42, 65, 0.9), rgba(44, 62, 80, 0.92));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    height: 120px;
    margin-bottom: 2rem;
    filter: invert(1) brightness(1.5) drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.hero-content h1 {
    color: var(--white-color);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

#dynamic-text {
    color: var(--secondary-color);
    transition: opacity 0.5s ease-in-out;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: rgba(255, 255, 255, 0.85);
}

/* ==================== SERVICES ==================== */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(27, 42, 65, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* ==================== STORE ==================== */
.product-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(27, 42, 65, 0.1);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-content h3 {
    margin-bottom: 1rem;
}

/* ==================== FOOTER & CONTACT FORM ==================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5rem 0 2rem;
    text-align: center;
}
.footer .section-title { color: var(--white-color); }
.footer .section-title::after { background-color: var(--secondary-color); }
.contact-form-container { max-width: 600px; margin: 0 auto 3rem auto; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    background-color: rgba(0,0,0,0.2);
    color: var(--white-color);
    font-family: var(--font-family);
    font-size: 1rem;
}
.contact-form button { align-self: center; }
#form-status { margin-top: 1rem; text-align: center; font-weight: 700; min-height: 1.2rem; }
.footer p { margin-bottom: 1rem; color: #ccc; }
.copyrights { margin-top: 3rem; font-size: 0.9rem; color: #888; }

/* ==================== MEDIA QUERIES (RESPONSIVENESS) ==================== */
@media screen and (max-width: 768px) {
    .nav-toggle { display: block; }
    .cta-button { display: none; }
    .main-nav {
        position: fixed; top: var(--header-height); right: -100%;
        width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem; transition: right 0.4s ease;
    }
    .main-nav.show-menu { right: 0; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 2.5rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-logo { height: 80px; }
}