/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    /* Red from Logo */
    color: #fff;
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background: var(--primary-color);
    /* Black from Logo */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-accent {
    background: var(--accent-color, #388E3C);
    /* Green from Logo */
    color: #fff;
}

.btn-accent:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Header & Top Bar */
.top-bar {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 25px;
    direction: ltr;
    unicode-bidi: isolate;
}

.contact-info a {
    color: #ccc;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.contact-info a i {
    flex-shrink: 0;
}

.contact-info a span {
    direction: ltr;
    unicode-bidi: embed;
}

.contact-info a:hover {
    color: #fff;
}

.social-links a {
    color: #ccc;
    margin-right: 15px;
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.logo h1 span {
    color: var(--secondary-color);
}

.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-weight: 600;
    color: #555;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--primary-color, #1a1a1a);
    color: #ffffff;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: #ffffff;
    border-bottom: 2px solid var(--secondary-color, #D32F2F);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-col p {
    color: #e0e0e0;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #f1f1f1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--accent-color, #388E3C);
    padding-right: 5px;
}

.footer-bottom {
    background: #111;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.legal-links {
    margin-top: 10px;
}

.legal-links a {
    color: #888;
    margin: 0 10px;
}

.legal-links a:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar-row {
        position: relative;
        overflow: visible;
    }

    .navbar .container {
        overflow: visible;
    }

    .nav-links,
    .nav-buttons {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        padding: 15px 0;
        margin: 0;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .navbar-row.nav-open .nav-links,
    .navbar-row.nav-open .nav-buttons {
        display: flex;
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-row.nav-open .nav-links li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .navbar-row.nav-open .nav-links li:last-child {
        border-bottom: none;
    }

    .navbar-row.nav-open .nav-links a {
        display: block;
        padding: 12px 20px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    .mobile-toggle {
        display: block;
        padding: 12px 20px;
        min-width: 48px;
        min-height: 48px;
        z-index: 1001;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .mobile-toggle.active i {
        transform: rotate(90deg);
    }

    .mobile-toggle i {
        transition: transform 0.3s ease;
    }

    body.menu-open {
        overflow: hidden;
    }
}