/* =========================================================
   THEME — change your colors here in one place
   ========================================================= */
:root {
    --ink:        #0b1b33;   /* darkest navy (headings, dark sections) */
    --primary:    #6366f1;   /* main brand blue */
    --primary-l:  #b2a2f9;
    --primary-d:  #6142e8;   /* darker blue for hover */
    --accent:     #00c2a8;   /* teal accent */
    --bg:         #ffffff;   /* page background */
    --bg-soft:    #f4f7fc;   /* soft section background */
    --text:       #344256;   /* body text */
    --muted:      #6b7891;   /* muted text */
    --line:       #e3e9f2;   /* borders */
    --white:      #ffffff;

    --radius:     16px;
    --radius-sm:  10px;
    --shadow:     0 10px 30px rgba(11, 27, 51, .08);
    --shadow-lg:  0 24px 60px rgba(11, 27, 51, .14);
    --maxw:       1560px;
    --font-body:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-head:  'Plus Jakarta Sans', var(--font-body);
    --grid: rgba(14, 124, 138, 0.06);
    --border:rgba(20, 40, 70, 0.12);
}

/* =========================================================
   BASE
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 56px 56px;
    background-attachment: fixed;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 800; }

h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { color: var(--text); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .6rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    padding: .75rem 1.4rem !important;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1rem; }

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

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { box-shadow: var(--shadow-lg); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
}
.brand-name { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.15rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
/* Direct child only — the mega-menu's nested <ul>s must stay vertical lists. */
.nav > ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: .98rem;
    position: relative;
    padding: .3rem 0;
}
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); }
.nav a.active::after {
    content: ""; position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 2px; background: var(--primary); border-radius: 2px;
}
.nav-cta { color: #fff !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: .6rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    padding: clamp(48px, 8vw, 30px) 0;
    background:
       radial-gradient(900px 400px at 85% -10%, rgb(93 66 231 / 17%), transparent 60%), 
       radial-gradient(700px 360px at 0% 110%, rgb(122 100 217 / 16%), transparent 55%)
}
.hero-inner {
    display: flex;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
}
section.hero {
    height: 70vh;
    background-size: cover;
    background-repeat: no-repeat;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
    height: 100%;
}

.hero.main-hero-section.dark h1 , .hero.main-hero-section.dark p , .hero.main-hero-section.dark a {
    /* color: #fff ; */
}



.hero-copy .lead { font-size: 1.12rem; color: var(--muted); margin: 1.2rem 0 1.8rem; max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); }

/* Hero visual (pure CSS mock dashboard) */
.hero-visual { position: relative; }
.hero-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.hero-card--main { padding: 22px; }
.hero-card-row { display: flex; gap: 7px; margin-bottom: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dot:first-child { background: #ff6058; }
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #28c93f; }
.bar { height: 14px; border-radius: 7px; background: var(--bg-soft); margin-bottom: 12px; }
.bar--1 { width: 80%; background: linear-gradient(90deg, var(--primary), #6f9bff); }
.bar--2 { width: 60%; }
.bar--3 { width: 70%; }
.hero-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.hero-card-grid div { height: 54px; border-radius: 10px; background: var(--bg-soft); }
.hero-card-grid div:nth-child(2) { background: rgba(0,194,168,.18); }
.hero-card-grid div:nth-child(3) { background: rgba(30,94,255,.14); }

.hero-card--float {
    position: absolute;
    right: -10px; bottom: -22px;
    padding: 16px 20px;
    display: flex; flex-direction: column;
    animation: float 4s ease-in-out infinite;
}
.hero-card--float strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--accent); }
.hero-card--float span { font-size: .82rem; color: var(--muted); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =========================================================
   CARDS (services / testimonials)
   ========================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 14px;
    border: 1px solid var(--primary-l);
    /* background: linear-gradient(135deg, rgba(30,94,255,.12), rgba(0,194,168,.12)); */
    color: var(--primary);
    margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card--lg { padding: 2.2rem; }
.card-link {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-top: 1.1rem; font-weight: 700; font-family: var(--font-head); font-size: .92rem;
}
.card-link:hover { gap: .6rem; }

/* =========================================================
   STATS
   ========================================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #fff;
    line-height: 1;
}
.stat-label { color: rgba(255,255,255,.7); font-size: .92rem; margin-top: .4rem; display: block; }

/* =========================================================
   WHY US
   ========================================================= */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}
.why-copy .section-sub { margin-bottom: 1.6rem; }
.why-list { display: grid; gap: 1.2rem; }
.why-item { display: flex; gap: 1rem; }
.why-check {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(0,194,168,.14);
    color: var(--accent);
}
.why-check svg { width: 20px; height: 20px; }
.why-item h3 { margin-bottom: .2rem; }
.why-item p { color: var(--muted); font-size: .95rem; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.quote-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
}
.quote-card blockquote { font-size: 1.02rem; color: var(--text); margin-bottom: 1.2rem; }
.quote-card figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); }
.quote-card figcaption span { color: var(--muted); font-size: .88rem; }

/* =========================================================
   PROCESS (services page)
   ========================================================= */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    list-style: none;
    counter-reset: step;
}
.process li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
}
.process-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent);
    display: block;
    margin-bottom: .6rem;
}
.process h3 { margin-bottom: .4rem; }
.process p { color: var(--muted); font-size: .92rem; }

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
    padding: clamp(56px, 8vw, 90px) 0 clamp(36px, 5vw, 56px);
    background:
        radial-gradient(700px 320px at 90% -20%, rgba(30,94,255,.10), transparent 60%);
    text-align: center;
}
.page-hero .lead { color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin: 1rem auto 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.two-col h2 { margin-bottom: .8rem; }
.two-col p { color: var(--muted); margin-bottom: 1rem; }
.check-list { list-style: none; display: grid; gap: .7rem; margin-top: 1rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text); }
.check-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
    background: linear-gradient(120deg, var(--primary), var(--primary-d));
    color: #fff;
    padding: clamp(44px, 6vw, 70px) 0;
}
.cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255,255,255,.85); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1.3rem; margin-top: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-ic {
    width: 46px; height: 46px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(30,94,255,.1);
    color: var(--primary);
}
.contact-ic svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .95rem; }
.contact-list a, .contact-list span { color: var(--muted); }

.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.contact-form { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .98rem;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30,94,255,.12);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }

.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: .95rem; }
.alert--ok { background: rgba(0,194,168,.12); color: #0a7c6c; border: 1px solid rgba(0,194,168,.4); }
.alert--err { background: rgba(255,96,88,.1); color: #c0392b; border: 1px solid rgba(255,96,88,.4); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: 3.5rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.brand--footer .brand-name { color: #fff; }
.footer-about p { color: rgba(255,255,255,.6); font-size: .94rem; margin: 1rem 0 1.2rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { color: rgba(255,255,255,.7); font-size: .93rem; }

.social { display: flex; gap: .6rem; }
.social a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
}
.social a:hover { background: var(--primary); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; }
.footer-bottom p { color: rgba(255,255,255,.55); font-size: .88rem; text-align: center; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 90;
    font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 460px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .why-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    /* Mobile nav */
    .nav {
        position: fixed;
        inset: 72px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 1rem 24px 1.6rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform .3s ease;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .nav.open { transform: translateY(0); }
    .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .nav > ul > li { border-bottom: 1px solid var(--line); }
    .nav > ul > li > a { display: block; padding: .9rem 0; }
    .nav a.active::after { display: none; }
    .nav-cta { margin-top: 1rem; }
    .nav-toggle { display: flex; }

    .cards { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .process { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-card--float { right: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   CMS blocks (banner, slider, rich text, image)
   ========================================================= */
.cms-banner {
    padding: 5rem 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}
.cms-banner::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.65));
}
.cms-banner .container { position: relative; z-index: 1; }
.cms-banner-inner { max-width: 640px; }
.cms-banner--center .cms-banner-inner { margin: 0 auto; text-align: center; }
.cms-banner--right .cms-banner-inner { margin-left: auto; text-align: right; }
.cms-banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .75rem; }
.cms-banner p { font-size: 1.1rem; opacity: .92; margin: 0 0 1.5rem; }

.cms-slider { position: relative; border-radius: 18px; overflow: hidden; }
.cms-slides { position: relative; min-height: 340px; }
.cms-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    padding: 3rem;
    background-size: cover; background-position: center;
    background-color: #1e293b;
    color: #fff;
    opacity: 0; visibility: hidden;
    transition: opacity .5s ease;
}
.cms-slide::before { content: ""; position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.cms-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.cms-slide-copy { position: relative; z-index: 1; max-width: 560px; }
.cms-slide-copy h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 .6rem; }
.cms-slide-copy p { opacity: .92; margin: 0 0 1.2rem; }
.cms-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 2; width: 44px; height: 44px; border-radius: 50%;
    border: 0; cursor: pointer; font-size: 1.2rem;
    background: rgba(255,255,255,.9); color: #0f172a;
}
.cms-slider-nav:hover { background: #fff; }
.cms-prev { left: 1rem; }
.cms-next { right: 1rem; }
.cms-dots { position: absolute; bottom: 1rem; left: 0; right: 0; z-index: 2; display: flex; gap: .5rem; justify-content: center; }
.cms-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.5); }
.cms-dot.is-active { background: #fff; }

.cms-richtext { max-width: 760px; margin: 0 auto; line-height: 1.7; }
.cms-richtext h2 { margin-bottom: 1rem; }
.cms-richtext img { max-width: 100%; border-radius: 10px; }

.cms-figure { margin: 0; text-align: center; }
.cms-figure img { max-width: 100%; border-radius: 14px; }
.cms-figure figcaption { margin-top: .6rem; color: #64748b; font-size: .95rem; }


/* BRANDS SLIDER CSS HOMEPAGE */
section.section.section--brands {
    padding: clamp(36px, 20vw, 30px) 60px;
}
.brands-slider {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
    position: relative;
}

/* The moving row */
.brands-track {
    display: flex;
    width: max-content;
    gap: 4rem; /* Spacing between logos */
    animation: scrollBrands 25s linear infinite;
}

/* CRITICAL: Stops the entire animation loop on hover */
.brands-slider:hover .brands-track {
    animation-play-state: paused;
}

.brand-item {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* filter: grayscale(100%); */
    /* opacity: 0.6; */
    transition: opacity 0.3s, filter 0.3s;
}

/* Brightens individual logos when hovered */
.brand-item:hover img {
    /* filter: grayscale(0%); */
    /* opacity: 1; */
}

/* Infinite loop animation movement */
@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Hero Services Section CSS */
.hero-services-box .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hero-services-box .service-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(238, 242, 248, 0.6));
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    /* FIX: Changed #eee to border-color */
    transition: transform .2s, border-color .2s; 

    &:hover {
        transform: translateY(-2px);
        border-color: var(--primary-l)
    }
}

.hero-services-box .service-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-l);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hero-services-box .diamond-icon {
    width: 10px;
    height: 10px;
    background-color: var(--primary); /* Teal accent color */
    transform: rotate(45deg);
}

.hero-services-box .service-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.hero-services-box .service-card p {
    font-size: 0.95rem;
    color: #64748b !important;
    margin: 0;
    line-height: 1.5;
}


/* mega menu and header css */
/* --- Mega Menu & Navigation Layout --- */
.site-header {
    position: relative;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.main-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
    padding: 20px 15px;
}

.menu-item > a {
    color: #333333;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.menu-item > a:hover {
    color: #008ecc;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    vertical-align: middle;
    border-top: 4px solid #555;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.2s;
}

.menu-item:hover .arrow-down {
    transform: rotate(180deg);
}

/* Mega Dropdown Panel styling (similar to screenshot layout) */
.menu-item.has-dropdown {
    position: static; /* Allows mega-menu container to span wide */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 5%;
    right: 5%;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid #eef2f5;
    padding: 30px;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.menu-item:hover .mega-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.column-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111111;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #008ecc;
    padding-bottom: 8px;
}

.column-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.column-links li {
    margin-bottom: 15px;
}

.submenu-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.submenu-link:hover {
    background: #f5f9fc;
}

.submenu-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.default-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #008ecc;
    margin-top: 8px;
    flex-shrink: 0;
}

.link-meta {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-weight: 600;
    color: #222222;
    font-size: 14px;
}

.link-desc {
    font-size: 12px;
    color: #777777;
    line-height: 1.4;
    margin-top: 4px;
}

/* The dropdown lists sit inside .nav, so these need enough specificity to beat
   the top-bar rules (.nav > ul, .nav a) that style the main menu row. */
.nav .column-links { display: block; }
.nav .column-links li { display: block; margin-bottom: 6px; border: 0; }
.nav .column-links li:last-child { margin-bottom: 0; }
.nav .submenu-link { display: flex; padding: 8px; font-size: 14px; }
.nav .mega-column { min-width: 0; }

/* Keyboard / tap support: JS adds .is-open, matching the hover state. */
.menu-item.is-open > .mega-menu { display: block; opacity: 1; transform: translateY(0); }
.menu-item.has-dropdown > a { cursor: pointer; }

/* ---- Mega menu on small screens: an inline accordion inside the mobile nav.
   Without this the dropdowns are hover-only and unreachable on touch. ---- */
@media (max-width: 720px) {
    .menu-item.has-dropdown { position: relative; }
    .nav .mega-menu {
        position: static;
        left: auto; right: auto; width: auto; max-width: none;
        margin: 0 0 .6rem;
        padding: .2rem 0 .6rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        transition: none;
    }
    .nav .menu-item:hover .mega-menu { display: none; }          /* hover is meaningless here */
    .nav .menu-item.is-open > .mega-menu { display: block; opacity: 1; }
    .nav .mega-menu-inner { grid-template-columns: 1fr; gap: 1rem; }
    .nav .column-title { margin-bottom: .6rem; font-size: 12px; }
    .nav .submenu-link { padding: .5rem 0; }
    .nav .link-desc { display: none; }                            /* keep the list scannable */
    .menu-item.has-dropdown > a .arrow-down { margin-left: auto; }
    .menu-item.is-open > a .arrow-down { transform: rotate(180deg); }
}

/* =========================================================
   PROJECT SCOPER  (ported from proecomtech-live scoping section)
   ========================================================= */
.cms-scoping .scoper {
    display: grid;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    margin-top: 1.5rem;
}
.cms-scoping .scoper-row { display: grid; gap: 1rem; }
@media (min-width: 768px) { .cms-scoping .scoper-row { grid-template-columns: 1fr 1fr; } }
.cms-scoping .scoper label { display: grid; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.cms-scoping .scoper .full { grid-column: 1 / -1; }
.cms-scoping .scoper select,
.cms-scoping .scoper input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    color: var(--text);
    background: var(--bg);
}
.cms-scoping .scoper select:focus,
.cms-scoping .scoper input:focus { outline: 2px solid rgba(99,102,241,0.35); outline-offset: 0; }
.cms-scoping .slider-head { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); }
.cms-scoping .scoper input[type="range"] { width: 100%; accent-color: var(--primary); }
.cms-scoping .slider-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.78rem; }
.cms-scoping .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.cms-scoping .bold { font-weight: 600; color: var(--ink); }
.cms-scoping .small { font-size: 0.875rem; }
.cms-scoping .tiny { font-size: 0.72rem; letter-spacing: 0.06em; }
.cms-scoping .muted { color: var(--muted); }
.cms-scoping fieldset { border: 0; padding: 0; margin: 0; }
.cms-scoping legend { font-weight: 600; margin-bottom: 0.6rem; color: var(--ink); }
.cms-scoping .gateway-grid { display: grid; gap: 0.65rem; }
@media (min-width: 640px) { .cms-scoping .gateway-grid { grid-template-columns: 1fr 1fr; } }
.cms-scoping .scoper .gateway-chip {
    display: flex; gap: 0.7rem; align-items: flex-start;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.cms-scoping .scoper .gateway-chip:hover { background: var(--bg-soft); border-color: var(--primary); }
.cms-scoping .scoper .gateway-chip input { margin-top: 0.2rem; accent-color: var(--primary); }
.cms-scoping .scoper .toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.cms-scoping .toggle {
    width: 38px; height: 22px; flex: none; appearance: none; -webkit-appearance: none;
    background: var(--line); border-radius: 999px; position: relative; cursor: pointer; transition: background .2s;
}
.cms-scoping .toggle::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: transform .2s;
}
.cms-scoping .toggle:checked { background: var(--primary); }
.cms-scoping .toggle:checked::after { transform: translateX(16px); }
.cms-scoping .scoper-actions { display: flex; justify-content: flex-end; }
.cms-scoping .scope-result {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}
.cms-scoping .scope-result-grid { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.cms-scoping .scope-result-grid > div { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.cms-scoping .scope-result-grid > div:last-child { border-bottom: 0; }