﻿/**
 * Al Qema - Global Professional Design System
 * -------------------------------------------
 * Primary Colors: Crimson (#BD202F), Charcoal (#4A4A4A)
 * Typography: Cairo (Headings & Body)
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

:root {
    --primary-accent: #BD202F;
    --primary-text: #4A4A4A;
    --secondary-text: #6c757d;
    --neutral-bg: #F8F9FA;
    --dark-footer: #2D2D2D;
    --white: #FFFFFF;
    --spacing-section: 80px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--primary-text);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-text);
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: var(--spacing-section) 0;
}

.bg-light {
    background-color: var(--neutral-bg);
}

.bg-white {
    background-color: var(--white);
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-accent);
    color: var(--white);
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid var(--primary-accent);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-accent);
}

.btn-outline:hover {
    background-color: var(--primary-accent);
    color: var(--white);
}

/* Header & Nav */
#site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: relative;
    /* Anchors mobile menu */
}

.main-logo img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--primary-text);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-accent);
}

/* Mobile Menu Button - simplified */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-color: #333;
    /* Fallback */
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Darken bg for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Feature/Services Grid 12-col */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-3 {
    width: 25%;
    padding: 0 15px;
}

.col-4 {
    width: 33.333%;
    padding: 0 15px;
}

.col-6 {
    width: 50%;
    padding: 0 15px;
}

.col-12 {
    width: 100%;
    padding: 0 15px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid #eee;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-icon {
    font-size: 40px;
    color: var(--primary-accent);
    margin-bottom: 20px;
}

/* Counters */
.counter-box {
    text-align: center;
    padding: 40px 20px;
}

.counter-number {
    font-family: 'Cairo', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-accent);
    display: block;
    margin-bottom: 10px;
}

.counter-label {
    font-size: 1.1rem;
    color: var(--primary-text);
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--dark-footer);
    color: #bbb;
    padding: 80px 0 30px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.footer-links li {
    list-style: none;
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* Forms */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
}

/* Responsive */
@media (max-width: 991px) {
    .main-nav {
        display: none;
        position: absolute !important;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
        border-top: 1px solid #f1f1f1;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    /* Use JS for toggle */
    .mobile-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
        font-size: 28px;
        line-height: 1;
        user-select: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .col-3,
    .col-4 {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {

    .col-3,
    .col-4,
    .col-6 {
        width: 100%;
        margin-bottom: 30px;
    }

    .header-inner {
        height: 70px;
    }
}

/* Page Header */
.page-header {
    background-color: #333;
    /* Fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white);
    padding: 100px 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header p {
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

@media (max-width: 767px) {
    .page-header {
        padding: 80px 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}