/*=====================================================
MIDAL INNOVATIONS LTD.
Corporate Design System

Version : 2.0.0
Author  : MIDAL Innovations Ltd.
Website : www.midalinnovations.com

CONTENTS

1. Reset
2. Design Tokens
3. Typography
4. Layout
5. Utilities
6. Buttons
7. Header
8. Navigation
9. Hero
=====================================================*/
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

:root {

    /*=====================================================
COLORS
=====================================================*/

    --primary: #0D3B8E;
    --primary-dark: #082B68;

    --secondary: #00A7B5;

    --accent: #F4B400;

    --success: #198754;

    --danger: #DC3545;

    --warning: #FFC107;


    /*=====================================================
NEUTRAL
=====================================================*/

    --white: #FFFFFF;

    --background: #F8FAFC;

    --surface: #FFFFFF;

    --border: #E5E7EB;

    --text: #1F2937;

    --text-light: #6B7280;


    /*=====================================================
TYPOGRAPHY
=====================================================*/

    --font-heading: "Poppins", sans-serif;

    --font-body: "Inter", sans-serif;


    /*=====================================================
FONT SIZE
=====================================================*/

    --fs-xs: .75rem;

    --fs-sm: .875rem;

    --fs-base: 1rem;

    --fs-lg: 1.125rem;

    --fs-xl: 1.25rem;

    --fs-2xl: 1.5rem;

    --fs-3xl: 2rem;

    --fs-4xl: 2.75rem;

    --fs-5xl: clamp(2.8rem, 5vw, 4.5rem);


    /*=====================================================
SPACING
=====================================================*/

    --space-1: .25rem;

    --space-2: .5rem;

    --space-3: .75rem;

    --space-4: 1rem;

    --space-5: 1.5rem;

    --space-6: 2rem;

    --space-7: 3rem;

    --space-8: 4rem;


    /*=====================================================
RADIUS
=====================================================*/

    --radius-sm: 8px;

    --radius: 12px;

    --radius-lg: 20px;

    --radius-xl: 32px;


    /*=====================================================
SHADOW
=====================================================*/

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);

    --shadow: 0 10px 30px rgba(0, 0, 0, .08);

    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .12);


    /*=====================================================
TRANSITION
=====================================================*/

    --transition: .3s ease;

}

body {

    font-family: var(--font-body);

    color: var(--text);

    background: var(--background);

    line-height: 1.7;

}

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: var(--font-heading);

    line-height: 1.2;

    font-weight: 700;

    color: var(--primary-dark);

}

h1 {

    font-size: var(--fs-5xl);

}

h2 {

    font-size: var(--fs-4xl);

}

h3 {

    font-size: var(--fs-2xl);

}

p {

    color: var(--text-light);

    margin-top: 1rem;

}

.container {

    width: min(1200px, 92%);

    margin-inline: auto;

}

.section {

    padding: 6rem 0;

}

.bg-light {

    background: #fff;

}

.section-header {

    max-width: 700px;

    margin: 0 auto 4rem;

    text-align: center;

}

.section-tag {

    display: inline-flex;

    align-items: center;

    gap: .5rem;

    color: var(--secondary);

    font-weight: 600;

    margin-bottom: 1rem;

}

.grid {

    display: grid;

    gap: 2rem;

}

.grid-2 {

    grid-template-columns: repeat(2, 1fr);

}

.grid-3 {

    grid-template-columns: repeat(3, 1fr);

}

.grid-4 {

    grid-template-columns: repeat(4, 1fr);

}

/*==========================================================
BUTTONS
==========================================================*/

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: .75rem;

    padding: .95rem 1.75rem;

    border: 2px solid transparent;

    border-radius: var(--radius);

    font-weight: 600;

    font-size: 1rem;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition: var(--transition);

}

/*==========================================================
PRIMARY BUTTON
==========================================================*/

.btn-primary {

    background: var(--primary);

    border-color: var(--primary);

    color: #ffffff !important;

}

.btn-primary:hover {

    background: var(--primary-dark);

    border-color: var(--primary-dark);

    color: #ffffff !important;

}

/*==========================================================
PRIMARY BUTTON CONTENT
==========================================================*/

.btn-primary,
.btn-primary:link,
.btn-primary:visited {

    color: #ffffff !important;

}

.btn-primary * {

    color: inherit !important;

}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {

    color: #ffffff !important;

}

.btn-primary:hover * {

    color: inherit !important;

}

/*==========================================================
OUTLINE BUTTON
==========================================================*/

.btn-outline {

    background: transparent;

    border: 2px solid var(--primary);

    color: var(--primary);

}

.btn-outline,
.btn-outline:link,
.btn-outline:visited {

    color: var(--primary);

}

.btn-outline * {

    color: inherit;

}

.btn-outline:hover,
.btn-outline:focus {

    background: var(--primary);

    color: #ffffff;

}

.btn-outline:hover *,

.btn-outline:focus * {

    color: inherit;

}

/*==========================================================
BUTTON ICONS
==========================================================*/

.btn i {

    font-size: 1rem;

    line-height: 1;

    flex-shrink: 0;

}

.btn span {

    display: inline-block;

    line-height: 1;

}

.text-center {

    text-align: center;

}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.hidden {

    display: none;

}

.rounded {

    border-radius: var(--radius-lg);

}

.shadow {

    box-shadow: var(--shadow);

}

/*=====================================================
7. TOP BAR
=====================================================*/

.top-bar {

    background: var(--primary-dark);

    color: #fff;

    font-size: .85rem;

}

.top-bar-inner {

    display: flex;

    justify-content: space-between;

    align-items: center;

    min-height: 42px;

    gap: 1rem;

}

.top-contact,
.top-social {

    display: flex;

    align-items: center;

    gap: 1rem;

}

.top-contact a,
.top-social a {

    color: #fff;

    transition: var(--transition);

}

.top-contact a:hover,
.top-social a:hover {

    color: var(--accent);

}

.separator {

    opacity: .5;

}

/*=====================================================
8. HEADER
=====================================================*/

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: #fff;

    box-shadow: var(--shadow-sm);

}

.main-header {

    background: #fff;

}

.header-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 82px;

    gap: 2rem;

}

.site-logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

}

.site-logo img {

    height: 54px;

    width: auto;

}

/*=====================================================
9. PRIMARY NAVIGATION
======================================================*/

.site-nav {

    flex: 1;

    display: flex;

    justify-content: center;

    align-items: center;

}

.nav-list {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 2rem;

    list-style: none;

    margin: 0;

    padding: 0;

}

.nav-list a {

    position: relative;

    display: inline-flex;

    align-items: center;

    padding: .35rem 0;

    color: var(--text);

    font-weight: 600;

    font-size: .95rem;

    text-decoration: none;

    white-space: nowrap;

    transition: color .25s ease;

}

.nav-list a:hover,

.nav-list a.active {

    color: var(--primary);

}

/* Active Indicator */

.nav-list a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0;

    height: 2px;

    border-radius: 2px;

    background: var(--secondary);

    transition: width .25s ease;

}

.nav-list a:hover::after,

.nav-list a.active::after {

    width: 100%;

}

/*=====================================================
HEADER ACTIONS
======================================================*/

.header-actions {

    display: flex;

    align-items: center;

    gap: .75rem;

    flex-shrink: 0;

}

.menu-toggle {

    display: none;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    border: none;

    border-radius: 12px;

    background: var(--primary);

    color: #fff;

    font-size: 1.2rem;

    cursor: pointer;

    transition: all .25s ease;

}

.menu-toggle:hover {

    background: var(--primary-dark);

    transform: translateY(-2px);

}

.menu-toggle:focus-visible {

    outline: 3px solid rgba(9, 237, 255, .35);

    outline-offset: 2px;

}

/*=====================================================
OVERLAY
======================================================*/

.nav-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .55);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition: opacity .3s ease,
        visibility .3s ease;

    z-index: 999;

}

.nav-overlay.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}

/*=====================================================
MOBILE SIDEBAR
======================================================*/

.mobile-sidebar {

    position: fixed;

    top: 0;

    right: -100%;

    width: min(320px, 85vw);

    height: 100vh;

    background: #fff;

    display: flex;

    flex-direction: column;

    transition: right .35s ease;

    box-shadow: -8px 0 30px rgba(0, 0, 0, .12);

    z-index: 1000;

    overflow-y: auto;

}

.mobile-sidebar.active {

    right: 0;

}

.sidebar-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 1.25rem;

    border-bottom: 1px solid var(--border);

}

.sidebar-header img {

    width: 150px;

    height: auto;

}

.sidebar-close {

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 10px;

    background: #f5f7fa;

    cursor: pointer;

    font-size: 1.15rem;

}

.sidebar-nav {

    display: flex;

    flex-direction: column;

    padding: 1rem 0;

}

.sidebar-nav a {

    padding: 1rem 1.5rem;

    color: var(--text);

    font-weight: 600;

    text-decoration: none;

    border-left: 4px solid transparent;

    transition: all .25s ease;

}

.sidebar-nav a:hover,

.sidebar-nav a.active {

    color: var(--primary);

    background: #f8fbff;

    border-left-color: var(--secondary);

}

.sidebar-actions {

    margin-top: auto;

    display: grid;

    gap: .75rem;

    padding: 1.5rem;

}

/*=====================================================
RESPONSIVE
======================================================*/

@media (max-width:992px) {

    .site-nav {

        display: none;

    }

    .menu-toggle {

        display: flex;

    }

}

@media (min-width:993px) {

    .mobile-sidebar,

    .nav-overlay {

        display: none;

    }

}

/*=====================================================
10. HERO
=====================================================*/

.hero {

    position: relative;

    overflow: hidden;

    padding: 7rem 0;

    isolation: isolate;

    background: #ffffff;

}

/*------------------------------------
Background Image
------------------------------------*/
.hero::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .45) 0%,
            rgba(255, 255, 255, .35) 40%,
            rgba(13, 52, 120, .15) 100%),
        url("../images/africa-world-bg.png");

    background-repeat: no-repeat;

    background-position: center center;

    background-size: cover;

    opacity: 1;

    z-index: -2;

}

.hero::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(circle at top right,
            rgba(0, 173, 239, .18),
            transparent 40%),
        radial-gradient(circle at bottom left,
            rgba(0, 83, 155, .10),
            transparent 25%);

    z-index: -1;

}

/*==========================================================
  LAYOUT
==========================================================*/

:root {

    --sidebar-width: 280px;
    --layout-gap: 2rem;

}

/*------------------------------------
  Page Layout
------------------------------------*/

.page-layout {

    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: var(--layout-gap);
    align-items: start;

}

/*------------------------------------
  Left Sidebar
------------------------------------*/

.page-sidebar {

    position: sticky;
    top: 140px;
    align-self: start;

    height: calc(100vh - 160px);

    overflow-y: auto;
    overflow-x: hidden;

}

/*------------------------------------
  Main Content
------------------------------------*/

.page-content {

    min-width: 0;

}

/*==========================================================
  HERO LAYOUT
==========================================================*/

.hero-grid {

    display: grid;

    grid-template-columns:
        minmax(320px, 1.1fr) minmax(420px, 0.9fr);

    gap: 4rem;

    align-items: center;

}

/* Left Column */

.hero-content {

    min-width: 0;

}

/* Right Column */

.hero-media {

    width: 100%;
    min-width: 0;

}

.hero-media img,
.hero-media video {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 1.25rem;

}

/*------------------------------------
Content
------------------------------------*/

.hero-content {

    max-width: 620px;

}

.hero h1 {

    margin: .75rem 0 1.5rem;

    font-size: clamp(2.8rem, 5vw, 4.8rem);

    line-height: 1.05;

    font-weight: 800;

    color: var(--primary);

}

.hero p {

    margin-bottom: 2rem;

    max-width: 560px;

    font-size: 1.15rem;

    line-height: 1.8;

    color: var(--text-light);

}

.hero-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

}

/*------------------------------------
Media
------------------------------------*/

.hero-media {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

}

.hero-media img,
.hero-media video {

    width: 100%;

    max-width: 700px;

    display: block;

    border-radius: 24px;

    object-fit: cover;

    box-shadow:
        0 30px 60px rgba(0, 0, 0, .15);

}

/*------------------------------------
Floating Card
------------------------------------*/

.hero-card {

    position: absolute;

    bottom: 24px;

    left: 24px;

    background: rgba(255, 255, 255, .96);

    backdrop-filter: blur(12px);

    border-radius: 18px;

    padding: 1rem 1.3rem;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);

}

.hero-card h4 {

    margin-bottom: .25rem;

    color: var(--primary);

}

.hero-card p {

    margin: 0;

    font-size: .9rem;

}

/*==========================================================
  RESPONSIVE
==========================================================*/

@media (max-width: 992px) {

    /*------------------------------------
      Page Layout
    ------------------------------------*/

    .page-layout {
        display: block;
    }

    .page-sidebar {
        display: none;
    }

    .page-content {
        width: 100%;
    }

    /*------------------------------------
      Hero Section
    ------------------------------------*/

    .hero,
    .hero-home {
        padding: 5rem 0;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-media {
        order: -1;
    }

    .hero-media img,
    .hero-media video {
        width: 100%;
        height: auto;
        display: block;
    }

    .hero-card {
        position: static;
        margin-top: 1rem;
    }

}

/*=====================================================
HERO MEDIA
=====================================================*/

.hero-media {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1rem;

    align-items: stretch;

}

.hero-video,
.hero-image {

    overflow: hidden;

    border-radius: 24px;

    background: #fff;

    box-shadow: var(--shadow-lg);

}

.hero-video video {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

.hero-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

/*=====================================================
HERO STATS
=====================================================*/

.hero-stats {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1rem;

    margin-top: 3rem;

}

.stat-card {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 1.25rem;

    text-align: center;

    transition: var(--transition);

}

.stat-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow);

}

.stat-card h3 {

    color: var(--primary);

    font-size: 2rem;

}

.stat-card span {

    display: block;

    margin-top: .4rem;

    color: var(--text-light);

    font-size: .9rem;

}

/*=====================================================
11. SECTION CARDS
=====================================================*/

.cards-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;

}

.card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 2rem;

    transition: var(--transition);

    display: flex;

    flex-direction: column;

    height: 100%;

}

.card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow);

    border-color: var(--secondary);

}

.card-icon {

    width: 64px;

    height: 64px;

    border-radius: 16px;

    background: rgba(13, 59, 142, .08);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.5rem;

    margin-bottom: 1.5rem;

}

.card h3 {

    margin-bottom: 1rem;

}

.card p {

    flex: 1;

}

/*=====================================================
12. BUSINESS DIVISIONS
=====================================================*/

.division-card {

    position: relative;

    overflow: hidden;

    background: #fff;

    border-radius: 24px;

    border: 1px solid var(--border);

    transition: var(--transition);

}

.division-card:hover {

    transform: translateY(-10px);

    box-shadow: var(--shadow-lg);

}

.division-image {

    aspect-ratio: 16/9;

    overflow: hidden;

}

.division-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: .6s;

}

.division-card:hover img {

    transform: scale(1.05);

}

.division-content {

    padding: 2rem;

}

/*=====================================================
13. SERVICES
=====================================================*/

.service-card {

    padding: 2rem;

    border-radius: 20px;

    border: 1px solid var(--border);

    background: #fff;

    transition: var(--transition);

}

.service-card:hover {

    border-color: var(--primary);

    box-shadow: var(--shadow);

}

.service-card ul {

    margin-top: 1rem;

}

.service-card li {

    display: flex;

    align-items: flex-start;

    gap: .75rem;

    margin-bottom: .75rem;

}

.service-card li::before {

    content: "✓";

    color: var(--secondary);

    font-weight: 700;

}

/*=====================================================
14. PRODUCTS
=====================================================*/

.product-card {

    display: flex;

    flex-direction: column;

    background: #fff;

    border-radius: 20px;

    border: 1px solid var(--border);

    overflow: hidden;

    transition: var(--transition);

}

.product-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow);

}

.product-image {

    aspect-ratio: 16/10;

}

.product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.product-body {

    padding: 1.75rem;

    display: flex;

    flex-direction: column;

    flex: 1;

}

.product-category {

    color: var(--secondary);

    font-size: .85rem;

    font-weight: 600;

    margin-bottom: .75rem;

}

.price {

    margin-top: auto;

    padding-top: 1rem;

    font-weight: 700;

    color: var(--primary);

}

/*=====================================================
15. EHUB
=====================================================*/

.ehub-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

}

.ehub-card {

    text-align: center;

    background: #fff;

    border-radius: 24px;

    border: 1px solid var(--border);

    padding: 2.5rem 2rem;

    transition: var(--transition);

}

.ehub-card:hover {

    transform: translateY(-8px);

    border-color: var(--secondary);

    box-shadow: var(--shadow);

}

.ehub-card i {

    font-size: 2.5rem;

    color: var(--primary);

    margin-bottom: 1.5rem;

}

/*=====================================================
16. CTA
=====================================================*/

.cta {

    background: linear-gradient(135deg,
            var(--primary),
            var(--primary-dark));

    color: #fff;

    border-radius: 32px;

    padding: 5rem;

    text-align: center;

}

.cta h2 {

    color: #fff;

}

.cta p {

    color: rgba(255, 255, 255, .85);

    max-width: 720px;

    margin: 1.5rem auto 2rem;

}

.cta-actions {

    display: flex;

    justify-content: center;

    gap: 1rem;

    flex-wrap: wrap;

}

/*=====================================================
17. FOOTER
=====================================================*/

.site-footer {

    background: #081B3A;

    color: #fff;

    margin-top: 6rem;

}

.footer-grid {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 3rem;

    padding: 5rem 0;

}

.footer-logo img {

    width: 180px;

    margin-bottom: 1.5rem;

}

.footer-column h4 {

    color: #fff;

    margin-bottom: 1.5rem;

}

.footer-column ul {

    display: grid;

    gap: .9rem;

}

.footer-column a {

    color: rgba(255, 255, 255, .75);

    transition: var(--transition);

}

.footer-column a:hover {

    color: #fff;

}

.social-links {

    display: flex;

    gap: 1rem;

    margin-top: 2rem;

}

.social-links a {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .08);

    display: flex;

    align-items: center;

    justify-content: center;

    transition: var(--transition);

}

.social-links a:hover {

    background: var(--secondary);

    color: #fff;

}

.footer-bottom {

    border-top: 1px solid rgba(255, 255, 255, .1);

    padding: 1.5rem 0;

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 1rem;

}

.footer-links {

    display: flex;

    gap: 1.5rem;

}