:root {
    /* Colors inspired by your logo */
    --primary-color: #e30613;   /* Al-Inshirah red */
    --secondary-color: #008bd2; /* Al-Inshirah blue */
    --dark-color: #111827;
    --light-bg: #f7f7f7;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* keep anchored sections clear of the fixed navbar */
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    padding-top: 72px; /* offset for fixed navbar */
}

/* Icons: SVG sprite inlined at the top of each page; sized and coloured like text */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Skip link: hidden until focused with the keyboard */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background: var(--dark-color);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    top: 1rem;
    color: #ffffff;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--secondary-color) !important;
}
.navbar-brand img {
    height: 44px;
    width: auto;
    margin-right: 10px;
}
.navbar-brand span {
    font-size: 1.05rem;
}
.nav-link {
    color: #374151 !important;
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color) !important;
}
.btn-nav {
    border-radius: 999px;
    padding-inline: 18px;
    padding-block: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Solutions dropdown */
.navbar .dropdown-menu {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 0.5rem;
}
.navbar .dropdown-item {
    border-radius: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.navbar .dropdown-item .icon {
    width: 1.1rem;
    text-align: center;
    color: var(--primary-color);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #fef2f2;
    color: var(--primary-color);
}
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background-color: var(--primary-color);
    color: #ffffff;
}
.navbar .dropdown-item.active .icon,
.navbar .dropdown-item:active .icon {
    color: #ffffff;
}
.nav-link.active {
    color: var(--primary-color) !important;
}
@media (min-width: 992px) {
    /* Open on hover for mouse users; click still works for touch and keyboard */
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Hero Section */
#hero {
    min-height: 80vh;
    padding: 60px 0;
    background: linear-gradient(
            120deg,
            rgba(227, 6, 19, 0.88),
            rgba(0, 139, 210, 0.9)
        ),
        url("image6.webp")
        center/cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
}
#hero .badge-brand {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
#hero .display-4 {
    font-weight: 700;
}
#hero .lead {
    max-width: 600px;
    font-size: 1.02rem;
}
.btn-primary-brand {
    background-color: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
    font-weight: 600;
}
.btn-primary-brand:hover {
    background-color: #fef2f2;
    color: var(--primary-color);
    border-color: #fee2e2;
}
.btn-outline-brand {
    border-color: #ffffff;
    color: #ffffff;
    font-weight: 600;
}
.btn-outline-brand:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Hero solution tiles */
.hero-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 540px;
    margin-inline: auto;
}
.hero-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.9rem;
    min-height: 108px;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.hero-tile .icon {
    font-size: 1.6rem;
}
.hero-tile:hover,
.hero-tile:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-3px);
}
/* An odd tile out spans the full row */
.hero-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
@media (max-width: 575.98px) {
    .hero-tile {
        min-height: 92px;
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* Sections */
section {
    padding: 60px 0;
}
section.bg-light {
    background-color: var(--light-bg) !important;
}

/* Headings */
.section-title {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
}
.section-heading {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Icon circles & cards */
.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}
.icon-circle.blue {
    background: #e0f2ff;
    color: var(--secondary-color);
}

.feature-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
    border-top: 3px solid transparent;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
    border-top-color: var(--primary-color);
}

/* Fade-up animation (only when JS runs and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
    .js .fade-up {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .js .fade-up.show {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* About section highlight cards */
.about-highlight {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.about-highlight .icon-circle {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Regional presence country card */
.presence-card {
    padding: 1.5rem 1.75rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.presence-card li {
    padding: 0.35rem 0;
    font-weight: 500;
}

/* Contact box */
.contact-box {
    background: radial-gradient(circle at top left, var(--secondary-color), var(--primary-color));
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
}
.contact-box .icon-circle {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    margin-bottom: 0;
}
.contact-box a {
    color: #ffffff;
    text-decoration: none;
}
.contact-box a:hover,
.contact-box a:focus {
    text-decoration: underline;
}

/* Contact form spam trap: kept off-screen rather than display:none so bots still see it */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
#cf-status.is-success {
    color: #15803d !important;
    font-weight: 600;
}
#cf-status.is-error {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Images */
.img-rounded-shadow {
    border-radius: 1rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.35);
}
.img-soft {
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

/* Solution cards link to their pages */
a.feature-card {
    color: inherit;
    text-decoration: none;
}
.feature-card .card-link-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}
.feature-card .card-link-text .icon {
    transition: transform 0.2s ease;
}
.feature-card:hover .card-link-text .icon {
    transform: translateX(4px);
}

/* Solution detail pages */
.page-hero {
    background: linear-gradient(120deg, rgba(227, 6, 19, 0.92), rgba(0, 139, 210, 0.92));
    color: #ffffff;
    padding: 36px 0 34px;
}
.page-hero .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.7);
    --bs-breadcrumb-item-active-color: #ffffff;
    font-size: 0.85rem;
}
.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.page-hero .breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.page-hero h1 {
    font-weight: 700;
}
.page-hero .lead {
    max-width: 680px;
}
.page-hero-icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.check-list li {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.check-list li .icon {
    color: var(--primary-color);
    margin-top: 0.25rem;
}
.process-step {
    position: relative;
    padding-left: 3.25rem;
    margin-bottom: 1.5rem;
}
.process-step .step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta-band {
    background: radial-gradient(circle at top left, var(--secondary-color), var(--primary-color));
    color: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
}
.cta-contact {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}
.cta-contact a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cta-contact a:hover,
.cta-contact a:focus {
    color: #ffffff;
    text-decoration-thickness: 2px;
}
.other-solutions a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.other-solutions a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
    color: var(--primary-color);
}
.other-solutions .icon-circle {
    margin-bottom: 0;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
}

/* Privacy policy and other text-heavy pages */
.legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}
.legal p,
.legal li {
    line-height: 1.7;
}
.legal li {
    margin-bottom: 0.4rem;
}
.legal a {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: #0b1120;
    color: #9ca3af;
    padding: 56px 0 0;
    font-size: 0.9rem;
}
.site-footer a {
    color: #d1d5db;
    text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
}
.footer-brand img {
    height: 40px;
    width: auto;
}
.footer-heading {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.55rem;
}
.footer-contact li {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
    overflow-wrap: anywhere;
}
.footer-contact .icon {
    color: var(--primary-color);
    margin-top: 0.2rem;
}
.footer-bottom {
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    text-align: center;
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.whatsapp-float .icon {
    font-size: 1.6rem;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    background: #1ebe5b;
    color: #ffffff;
    transform: translateY(-2px);
}
.whatsapp-float:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px #1ebe5b;
}
/* Phones: icon-only round button so it doesn't cover content */
@media (max-width: 575.98px) {
    .whatsapp-float {
        padding: 0;
        width: 56px;
        height: 56px;
        justify-content: center;
    }
    .whatsapp-label {
        display: none;
    }
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    #hero {
        text-align: center;
    }
    #hero .hero-actions {
        flex-direction: column;
    }
    .cta-band {
        padding: 1.75rem;
        text-align: center;
    }
}
