/* ===== Design tokens ===== */
:root{
    --brand:#0f1b2d;
    --accent:#1f6fe5; --accent-2:#00b083;
    --text:#0b1220; --muted:#667085;
    --soft:#f6f8fb; --card:#fff; --border:#e5eaf2;

    --radius:18px; --radius-lg:22px;
    --shadow-sm:0 10px 24px rgba(15,27,45,.10);
    --shadow-md:0 12px 28px rgba(15,27,45,.12);
    --shadow-lg:0 24px 64px rgba(15,27,45,.16);

    --container:1200px;
    --space-6:72px; --space-5:48px; --space-4:32px; --space-3:24px; --space-2:16px;

    --page-bg:#f8f9fc; --section-bg:#ffffff;
    --easing: cubic-bezier(.2,.7,.2,1);
}

/* ===== Base ===== */
body{ 
    font-family:Manrope,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial; color:var(--text); background:var(--page-bg); 
    max-width: 2250px;
    margin: 0 auto;
}
.container{ max-width:var(--container) }

/* Sections */
.section{
    padding-block: var(--space-6);
    background: var(--section-bg);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(15,27,45,0.04);
    margin-block: var(--space-5);
}
.section-head{ margin-top:var(--space-5); margin-bottom:var(--space-3) }
.section-highlight{ background: linear-gradient(180deg, #ffffff, #f3f6fb); border: 1px solid var(--border) }
h1{ font-weight:800; font-size:clamp(1.9rem, 3.6vw, 2.6rem) }

/* ===== Page Heroes (shared) ===== */
.page-hero{ padding:56px 0 }
.page-hero .img-frame{ border-radius: 18px; overflow: hidden; border: 1px solid var(--border) }

/* Patterned slab variant */
.page-hero--pro .hero-slab{
    position: relative; padding: 24px 24px 28px;
    border-radius: 18px; border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(31,111,229,.05), rgba(31,111,229,.02)), #ffffff;
    box-shadow: 0 18px 55px rgba(15,27,45,.08); overflow: hidden;
}
.page-hero--pro .hero-slab::before{
    content:""; position:absolute; inset:0; opacity:.18;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1' cy='1' r='1' fill='%231f6fe5'/%3E%3C/pattern%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%' stop-color='%2300b083' stop-opacity='0.25'/%3E%3Cstop offset='100%' stop-color='%231f6fe5' stop-opacity='0.25'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='160' fill='url(%23p)'/%3E%3Crect width='160' height='160' fill='url(%23g)'/%3E%3C/svg%3E");
    background-size: 260px 260px; background-repeat: repeat;
    mask-image: radial-gradient(120% 120% at 0% 0%, #000 60%, transparent 100%);
    pointer-events: none;
}
.page-hero--pro .hero-slab::after{
    content:""; position:absolute; left:0; top:0; height:6px; width:120px;
    border-radius: 6px 6px 0 0; background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Full-width image hero with glass content */
.page-hero--image{
    position:relative; padding: 96px 0; color:#0b1220; overflow:hidden;
    max-height: 100vh;
    height: 600px;
    background-size: cover; background-position: center center; background-repeat: no-repeat;
}
.page-hero--image::before{
    content:""; position:absolute; inset:-10%;
    /* background: radial-gradient(120% 120% at 0% 50%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.72) 45%, rgba(255,255,255,.35) 70%, transparent 100%); */
    pointer-events:none;
}
.page-hero--image::after{
    content:""; position:absolute; inset:0; opacity:.16;
    background-image:url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1' cy='1' r='1' fill='%231f6fe5'/%3E%3C/pattern%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%' stop-color='%2300b083' stop-opacity='0.25'/%3E%3Cstop offset='100%' stop-color='%231f6fe5' stop-opacity='0.25'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='160' fill='url(%23p)'/%3E%3Crect width='160' height='160' fill='url(%23g)'/%3E%3C/svg%3E");
    background-size:260px 260px; background-repeat:repeat;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.95), rgba(0,0,0,.85) 20%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.25) 100%);
    pointer-events:none;
}
.page-hero--image .hero-pane{
    position:relative; background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98));
    backdrop-filter: blur(8px) saturate(130%);
    border:1px solid var(--border); border-radius:22px; padding:28px; box-shadow: 0 24px 64px rgba(15,27,45,.12);
    overflow:hidden;
}
/* Accent stripe: inset & curved to match border */
.page-hero--image .hero-pane::before{
    content:""; position:absolute; height:6px; width:120px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    top:1px; left:1px; border-top-left-radius:21px; border-top-right-radius:6px;
}

/* ===== Home hero (legacy static background) ===== */
.hero{
    position:relative; min-height:72vh; color:#fff;
    background: linear-gradient(188deg, rgba(9, 13, 24, .1) 0%, rgba(9, 13, 24, .55) 45%, rgba(9, 13, 24, .85) 100%) fixed;
    box-shadow: inset 0 -32px 64px rgba(10,16,26,.35);
}
@media (max-width: 991.98px){ .hero{ background-attachment: scroll; } }
.hero-card{
    background:rgba(255,255,255,.98); color:var(--text);
    backdrop-filter:saturate(140%) blur(8px);
    border-radius:26px; padding:28px; box-shadow:var(--shadow-lg);
    transform:translateY(48px);
}
.eyebrow{
    display:inline-flex; gap:.5rem; align-items:center; padding:.35rem .7rem;
    border-radius:999px; color:#0d3b66; background:#eaf2fd; border:1px solid #d7e6fb;
    font-weight:700; font-size:.85rem;
}

/* ===== Home hero ===== */
.home-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;                /* full height on desktop */
    background-size: cover;           /* scale to cover */
    background-position: center;      /* center the image */
    background-repeat: no-repeat;     /* prevent tiling */
    display: flex;                    /* allows centering of any content inside */
    align-items: center;              /* vertically center content */
    justify-content: center;          /* horizontally center content */
    color: #fff;                      /* default text color on hero */
    overflow: hidden;
}

/* On smaller screens, shrink height so it doesn’t overwhelm */
@media (max-width: 991.98px) {
    .home-hero {
        min-height: 56vh;
    }
    .page-hero {
        max-height: 39.2vh;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        min-height: 45vh;
    }
    .page-hero {
        max-height: 31.5vh;
    }
}

/* Card sizing + thin typography */
.hero-thin .eyebrow{ font-weight:600 }
.hero-thin .hero-headline{ font-weight:300; letter-spacing:.1px }
.hero-thin .hero-lead{ font-weight:300 }

/* Desktop/tablet tweaks */
@media (max-width: 991.98px){
    .page-hero{ padding:44px 0 }
    .page-hero--image{ padding:72px 0; background-position:center center; }
    .page-hero--image .hero-pane{ padding:22px }
    .hero.hero-slider, .hero-slider .hero-bg{ min-height:64vh }
    .hero-thin .hero-headline{ font-size: clamp(1.6rem, 4.6vw, 2.2rem) }
}

/* Mobile: bottom align, centred, near-full-width; keep arrow space */
@media (max-width: 767.98px){
    .hero-slider .hero-content{ align-items:flex-end; padding:0 1.5rem 1.5rem }
    .hero.hero-slider .hero-card{
        margin-left:auto; margin-right:auto; max-width:95%; padding:16px 18px; border-radius:14px;
    }
    .hero.hero-slider .hero-card h1.hero-headline{ font-size: clamp(1.3rem, 5vw, 1.8rem) }
    .hero.hero-slider .hero-card .lead{ font-size:.95rem }
}

/* ===== Header / Nav ===== */
.site-header{ position:sticky; top:0; z-index:1030 }
.nav-shell{ backdrop-filter:saturate(160%) blur(8px); background:rgba(255,255,255,.88); border-bottom:1px solid var(--border) }
.brand-mark{ display:flex; align-items:center; gap:.6rem; text-decoration:none; color:var(--text); font-weight:700 }
.brand-mark .logo{ width:30px; height:30px; border-radius:8px; background:var(--brand); position:relative }
.brand-mark .logo::after{ content:""; position:absolute; inset:auto 6px 6px 6px; height:10px; border-radius:6px; background:linear-gradient(90deg,var(--accent),var(--accent-2)) }
.hamburger{ width:44px; height:44px; border:1px solid var(--border); border-radius:12px; background:#fff; display:grid; place-items:center; cursor:pointer }
.hamburger .bar{ width:20px; height:2px; background:var(--text); border-radius:2px; position:relative }
.hamburger .bar::before,.hamburger .bar::after{ content:""; position:absolute; left:0; width:20px; height:2px; background:var(--text); border-radius:2px; transition:.25s var(--easing) }
.hamburger .bar::before{ top:-6px } .hamburger .bar::after{ top:6px }
.menu-open .hamburger .bar{ background:transparent }
.menu-open .hamburger .bar::before{ top:0; transform:rotate(45deg) }
.menu-open .hamburger .bar::after{ top:0; transform:rotate(-45deg) }
.overlay{ position:fixed; inset:0; background:rgba(10,16,26,.45); opacity:0; pointer-events:none; transition:opacity .25s var(--easing) }
.menu-drawer{ position:fixed; top:0; right:-100%; height:100vh; width:min(420px,92vw); background:#fff; border-left:1px solid var(--border); box-shadow:var(--shadow-lg); transition:right .35s var(--easing); z-index:1050; display:flex; flex-direction:column; overflow-y: auto }
.menu-open .overlay{ opacity:1; pointer-events:auto }
.menu-open .menu-drawer{ right:0 }
.menu-list{ list-style:none; margin:0; padding:24px }
.menu-list a{ display:flex; justify-content:space-between; align-items:center; padding:16px 12px; border-radius:12px; text-decoration:none; color:var(--text); font-weight:700; border:1px solid transparent }
.menu-list a:hover{ background:#f5f8fd; border-color:#e6edf7 }
.drawer-footer{ margin-top:auto; padding:16px; border-top:1px solid var(--border) }
.socials a{ display:inline-flex; width:40px; height:40px; border-radius:10px; align-items:center; justify-content:center; border:1px solid var(--border); color:var(--text); text-decoration:none; margin-right:8px }

/* === Desktop dropdown === */
.nav-item.dropdown { position: relative; }
.nav-item .nav-toggle{
    background: transparent; border: 0; padding: 0;
    font-weight: 600; color: #0b1220; display: inline-flex; align-items: center;
}
.dropdown-menu{
    position: absolute; top: 100%; right: 0; left: auto; min-width: 260px;
    margin-top: 10px; padding: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: 4px;
    box-shadow: 0 18px 40px rgba(15,27,45,.12);
    opacity: 0; transform: translateY(6px); pointer-events: none; visibility: hidden;
    transition: opacity .18s var(--easing), transform .18s var(--easing), visibility 0s .18s;
    z-index: 1100;
}
.dropdown-item{
    display:block; padding: 10px 12px; border-radius: 10px; text-decoration: none;
    color: #0b1220; font-weight: 300;
    font-size: .9rem; border: 1px solid transparent;
}
.dropdown-item:hover{ background: #f5f8fd; }

/* open state */
.nav-item.dropdown.open .dropdown-menu{
    opacity: 1; transform: translateY(0);
    pointer-events: auto; visibility: visible; transition-delay: 0s;
}
.nav-item.dropdown .nav-toggle i{ transition: transform .2s var(--easing); }
.nav-item.dropdown.open .nav-toggle i{ transform: rotate(180deg); }

/* Enable open-on-hover for large screens (click still works) */
@media (min-width: 992px){
    .nav-item.dropdown:hover .dropdown-menu{
        opacity: 1; transform: translateY(0);
        pointer-events: auto; visibility: visible; transition-delay: 0s;
    }
    .nav-item.dropdown:hover .nav-toggle i{ transform: rotate(180deg); }
}

/* Enable custom dropdown without Bootstrap JS */
.nav-item.dropdown .dropdown-menu{
    display: block;                    /* override BS default display:none */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s var(--easing), transform .18s var(--easing), visibility 0s .18s;
}
.nav-item.dropdown.open .dropdown-menu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Keep dropdown open while hovering button OR menu, remove hover gap */
.nav-item.dropdown{ position: relative; }

.nav-item.dropdown .dropdown-menu{
    display:block;                 /* override Bootstrap's display:none */
    position:absolute;
    top:100%;
    right:0;
    left: auto;
    margin-top:8px;                /* visual offset */
    opacity:0;
    visibility:hidden;
    transform:translateY(6px);
    pointer-events:none;
    transition:
        opacity .18s var(--easing, ease),
        transform .18s var(--easing, ease),
        visibility 0s .18s;
    z-index: 1000;
}

/* invisible shim fills the 8px gap so pointer can pass from button to menu */
.nav-item.dropdown .dropdown-menu::before{
    content:"";
    position:absolute;
    left:0; right:0; top:-8px; height:8px;
}

/* open state applied by JS */
.nav-item.dropdown.open .dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    pointer-events:auto;
    transition:
        opacity .18s var(--easing, ease),
        transform .18s var(--easing, ease);
}

/* Optional: keep it open on pure hover too (nice for desktop) */
@media (hover:hover){
    .nav-item.dropdown:hover .dropdown-menu{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
        pointer-events:auto;
        transition:
            opacity .18s var(--easing, ease),
            transform .18s var(--easing, ease);
    }
}

/* === Mobile drawer submenu === */
.menu-list .has-sub { margin-bottom: 6px; }
.menu-list .submenu-toggle{
    width: 100%; text-align: left; background: #fff; color: var(--text);
    border: 1px solid var(--border); border-radius: 12px;
    font-weight: 700; display: flex; align-items: center; justify-content: space-between;
    padding: 14px 12px;
}
.menu-list .submenu{
    list-style: none; margin: 8px 0 0; padding: 0 0 0 8px; display: none;
}
.menu-list .submenu a{
    display: block; padding: 6px 12px; border-radius: 10px; text-decoration: none;
    color: var(--text); border: 1px solid transparent; font-weight: 500; font-size: .9rem;
}
.menu-list .submenu a:hover{ background: #f5f8fd; border-color: #e6edf7; }

/* open state */
.menu-list .has-sub.open .submenu{ display: block; }
.menu-list .has-sub.open .submenu-toggle i{ transform: rotate(180deg); transition: transform .2s var(--easing); }


/* ===== Buttons ===== */
.btn{ font-weight:700 }
.btn-primary{
    --bs-btn-color:#fff; --bs-btn-bg:#1f6fe5; --bs-btn-border-color:#1b5fc7;
    --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#195cc1; --bs-btn-hover-border-color:#184fa9;
    --bs-btn-active-color:#fff; --bs-btn-active-bg:#184fa9; --bs-btn-active-border-color:#164a9f;
    --bs-btn-disabled-color:#fff; --bs-btn-disabled-bg:#9bb8ef; --bs-btn-disabled-border-color:#9bb8ef;
    background-image:none; color:#fff!important;
}
.btn-primary:hover{ color:#fff!important }
.btn-outline-dark{ border-color:#cfd7e3; color:var(--text)!important; background:#fff }
.btn-outline-dark:hover, .btn-outline-dark:focus{ background:#1b2a41; border-color:#1b2a41; color:#fff!important }
.btn-outline-dark:active{ background:#152132; border-color:#152132; color:#fff!important }
@keyframes sheen{ from{left:-120%} to{left:120%} }

/* ===== Cards / elements ===== */
.feature-card{ border:1px solid var(--border); border-radius:var(--radius); background:var(--card); box-shadow:var(--shadow-sm); transition:transform .2s var(--easing), box-shadow .2s var(--easing); height:100% }
.feature-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg) }
.icon-pill{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(180deg,#eaf2fd,#eef6ff); color:var(--accent); border:1px solid #d8e6fb }
.img-frame{ border-radius:22px; overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow-lg) }
.ticks{ list-style:none; padding:0; margin:0 }
.ticks li{ position:relative; padding-left:1.6rem; margin:.5rem 0 }
.ticks li::before{ content:""; position:absolute; left:0; top:.35rem; width:1rem; height:1rem; border-radius:50%; background:radial-gradient(circle at 60% 40%,#33d1a0,#00b083); box-shadow:0 0 0 3px rgba(0,176,131,.15) }
.badge-soft{ background:#eef6ff; color:#0e55a5; border:1px solid #d7e9ff; font-weight:700; border-radius: 999px; padding:.35rem .6rem }

/* Footer */
footer{ border-top:1px solid var(--border) }

/* Cookie */
.cookie-card{ position:fixed; right:16px; bottom:16px; z-index:2000; width:min(420px,92vw); background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-lg); padding:16px }
.cookie-card .btn{ min-width:120px }

/* ===== Responsive spacing ===== */
@media (max-width: 991.98px){
    .section{ padding-block:56px }
    .hero-card{ transform:translateY(36px); padding:22px }
}
@media (max-width: 575.98px){
    .section{ padding-block:48px }
    .section-head{ margin-top:32px; margin-bottom:18px }
}

/* ===== Team ===== */
.team-card .card-body{ padding:14px 16px }
.team-card .card-img-top{ border-bottom:1px solid var(--border) }

/* ===== Services / Sectors ===== */
.service-card, .sector-card{
    border:1px solid var(--border); border-radius:18px; background:#fff;
    box-shadow:0 10px 24px rgba(15,27,45,.08);
    transition:transform .2s var(--easing), box-shadow .2s var(--easing), border-color .2s var(--easing);
}
.service-card:hover, .sector-card:hover{ transform:translateY(-3px); box-shadow:0 24px 64px rgba(15,27,45,.14); border-color:#dae3f1 }
.icon-circle{
    width:48px; height:48px; border-radius:14px; display:grid; place-items:center;
    color:var(--accent); background:linear-gradient(180deg,#eaf2fd,#eef6ff); border:1px solid #d8e6fb; box-shadow:0 8px 18px rgba(31,111,229,.16);
}

/* ===== Contact ===== */
.form-card .form-floating > label{ color:#6b7280 }
.form-card .form-control, .form-card .form-select{ border-radius:12px; border-color: var(--border) }
.form-card .form-control:focus, .form-card .form-select:focus{ border-color:#b9d0f9; box-shadow: 0 0 0 .2rem rgba(31,111,229,.15) }

/* ===== Loading screen ===== */
#loader{ position:fixed; inset:0; background:#fff; display:flex; align-items:center; justify-content:center; z-index:9999; transition: opacity .6s var(--easing), visibility .6s var(--easing) }
#loader.hidden{ opacity:0; visibility:hidden }
.loader-icon{ width:56px; height:56px; border-radius:14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); position:relative; animation: pulse 1.6s infinite ease-in-out }
.loader-icon::after{ content:""; position:absolute; inset:6px; border-radius:10px; background:#fff }
@keyframes pulse{ 0%,100%{ transform:scale(1); opacity:1 } 50%{ transform:scale(1.15); opacity:.85 } }

/* ===== Reveal on scroll ===== */
.reveal-base{ opacity:0; transform: translateY(14px); transition: opacity .6s var(--easing), transform .6s var(--easing); will-change: opacity, transform }
.reveal-in{ opacity:1; transform:none }
.reveal-up{ transform: translateY(16px) }
.reveal-right{ transform: translateX(-16px) }
.reveal-left{ transform: translateX(16px) }
@media (prefers-reduced-motion: reduce){ .reveal-base{ opacity:1; transform:none; transition:none } }