/* Custom Styles for Burooq.net */

/* 1. Global & Typography */
body {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --corporate-blue: #003366;
    --accent-green: #009933;
    --light-gray: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--corporate-blue);
}

/* 2. Header & Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--corporate-blue) !important;
}

.navbar-brand span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-green);
}

.navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--corporate-blue);
    transition: color 0.2s;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
    color: var(--accent-green);
}

.nav-link {
    color: var(--corporate-blue);
    font-weight: 700;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-green);
}

#lang-toggle {
    border-color: var(--corporate-blue);
    color: var(--corporate-blue);
    font-weight: 700;
}

#lang-toggle:hover {
    background-color: var(--corporate-blue);
    color: #fff;
}

/* 3. Hero Section */
#hero {
    background: linear-gradient(90deg, #f8f9fa 60%, #e6f0fa 100%);
    padding-top: 4rem;
    padding-bottom: 4rem;
    color: white;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.7); /* Corporate Blue overlay */
}

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

#hero h1 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 900;
    color: var(--corporate-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#hero p.lead {
    color: #444;
    font-size: 1.25rem;
}

#hero .btn-primary {
    font-size: 1.1rem;
    padding: 0.75rem 2.5rem;
    border-radius: 2rem;
}

#hero img {
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,51,102,0.08);
}

/* Accessibility: visually hidden labels for form fields */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    border: 0 !important;
}

.btn-primary, .btn-primary:focus {
    color: #fff;
    background-color: var(--corporate-blue);
    border-color: var(--corporate-blue);
}

.btn-primary:hover {
    background-color: #002244; /* Darker blue */
    border-color: #002244;
}

.btn-secondary, .btn-secondary:focus {
    color: #fff;
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.btn-secondary:hover {
    background-color: #007722; /* Darker green */
    border-color: #007722;
}

/* 4. Sections */
.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* 5. Cards & Accordion */
.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.accordion-button:not(.collapsed) {
    background-color: var(--corporate-blue);
    color: white;
}
.accordion-button:focus {
    box-shadow: none;
}

/* Products Section */
#products h2, #solutions h2, #it-services h2, #technology h2, #projects h2 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--corporate-blue);
    letter-spacing: 1px;
}
#products .card-title {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--corporate-blue);
}
#products .card-text {
    color: #444;
}
#products .card {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
#products .card:hover {
    box-shadow: 0 6px 24px rgba(0,51,102,0.10);
}

/* Solutions Section */
#solutions .card-title {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--corporate-blue);
}
#solutions .card-text {
    color: #444;
}
#solutions .card {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
#solutions .card:hover {
    box-shadow: 0 6px 24px rgba(0,51,102,0.10);
}

/* 6. RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

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

[dir="rtl"] .navbar-brand {
    text-align: right;
}

[dir="rtl"] .text-md-start {
    text-align: right !important;
}

[dir="rtl"] .text-md-end {
    text-align: left !important;
}

[dir="rtl"] .me-2, [dir="rtl"] .me-3, [dir="rtl"] .ms-2, [dir="rtl"] .ms-3 {
    margin-left: var(--bs-gutter-x, 0.5rem) !important;
    margin-right: 0 !important;
}

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

[dir="rtl"] .card-title, [dir="rtl"] .card-text, [dir="rtl"] .lead, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    text-align: right;
}

[dir="rtl"] .form-control {
    text-align: right;
}

/* 7. Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    #hero h1 {
        font-size: 2rem;
    }
    #hero .btn-primary {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
    }
    #products h2, #solutions h2, #it-services h2, #technology h2, #projects h2 {
        font-size: 1.3rem;
    }
}
@media (max-width: 767.98px) {
    #hero .row {
        flex-direction: column-reverse;
    }
    #hero h1 {
        font-size: 1.5rem;
    }
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
    .row-cols-md-2 > .col, .row-cols-md-3 > .col, .row-cols-md-4 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    #hero h1 {
        font-size: 1.1rem;
    }
    .display-6 {
        font-size: 1.1rem;
    }
    .lead {
        font-size: 0.95rem;
    }
}