/* ========================================
   BEKAEL GROUP - Corporate Design
   Clean, professional, Entrust-inspired
   ======================================== */

:root {
    --primary: #0e7490;
    --primary-hover: #0c5e73;
    --primary-light: #e0f2fe;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --text: #333;
    --text-secondary: #5f6368;
    --text-light: #888;
    --border: #e0e0e0;
    --bg: #fff;
    --bg-alt: #f7f8fa;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--bg);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark) !important;
    letter-spacing: 0.5px;
}

.brand-highlight {
    color: var(--primary);
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
}

.dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    border-radius: 6px;
    padding: 0.4rem;
    margin-top: 0.25rem;
}

.dropdown-item {
    border-radius: 4px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.navbar-toggler {
    border: 1px solid var(--border);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 140px 0 80px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.hero-section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.2rem;
}

.hero-section .lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== Hero Grid ===== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--dark);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hero-grid-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-grid-item i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-grid-item span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== Page Headers ===== */
.page-header {
    background: var(--dark);
    padding: 130px 0 60px;
}

.page-header h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
}

.page-header .lead {
    color: rgba(255,255,255,0.7);
}

/* ===== Section Headers ===== */
.section-header {
    margin-bottom: 3rem;
}

.section-overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    padding: 0.6rem 1.4rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}

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

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

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

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-dark-custom {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.btn-dark-custom:hover {
    background: var(--dark-light);
    border-color: var(--dark-light);
    color: #fff;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
}

.btn-white {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}

.btn-white:hover {
    background: #f0f0f0;
    color: var(--dark);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

/* ===== Service Cards ===== */
.service-card {
    background: var(--bg);
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
}

.service-card .service-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* ===== Value Cards ===== */
.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    transition: box-shadow 0.2s;
}

.value-card:hover {
    box-shadow: var(--shadow-hover);
}

.value-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.value-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Team Members ===== */
.team-member {
    text-align: center;
    padding: 1.5rem 1rem;
}

.team-member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid var(--border);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h5 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--bg);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: box-shadow 0.2s;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-hover);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.testimonial-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Contact ===== */
.contact-form-wrapper {
    border: 1px solid var(--border);
    border-radius: 6px;
}

.form-control {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    background: var(--bg);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(14, 116, 144, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

/* ===== Service Detail ===== */
.service-detail-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.feature-box {
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s;
}

.feature-box:hover {
    border-color: var(--primary);
}

.service-icon-large {
    font-size: 3rem;
    padding: 0.5rem;
}

.service-icon-hero {
    font-size: 3.5rem;
}

.service-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-quick-link:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    color: var(--primary);
}

.service-quick-link .icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.service-quick-link .text {
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--dark);
}

/* ===== Stats ===== */
.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.counter {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

.counter-suffix {
    font-size: 1.3rem;
    color: var(--primary);
}

/* ===== Image Placeholders ===== */
.image-placeholder,
.about-image-placeholder {
    background: var(--bg-alt);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.image-placeholder i {
    color: var(--text-light);
}

.map-placeholder {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.business-hours {
    border: 1px solid var(--border);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark) !important;
}

.footer h5 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer ul li a:hover {
    color: #fff;
}

.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.footer-contact li {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
}

.footer-contact li i {
    color: rgba(255,255,255,0.4);
    width: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s;
}

.social-links a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.social-links i {
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
}

/* ===== Utility ===== */
.text-primary {
    color: var(--primary) !important;
}

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

.bg-alt {
    background: var(--bg-alt);
}

section.py-5 {
    position: relative;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 0.75rem;
        margin-top: 0.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-stats-row {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 110px 0 60px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .counter {
        font-size: 1.8rem;
    }

    .hero-stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    .page-header {
        padding: 110px 0 40px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}
