/* ==========================================================================
   MCG Digital — Unified Color System, Spacing & Layout Overrides
   Single Monochromatic Accent Tonality: Royal/Cobalt Blue (#2563eb / #1d4ed8 / #38bdf8)
   ========================================================================== */

:root {
    --mcg-primary: #2563eb;
    --mcg-primary-dark: #1d4ed8;
    --mcg-primary-darker: #1e40af;
    --mcg-primary-light: #38bdf8;
    --mcg-primary-soft: rgba(37, 99, 235, 0.08);
    --mcg-dark: #0f172a;
    --mcg-slate: #1e293b;
}

/* 1. UNIFIED COLOR PALETTE — Replace POLO's default #e02b20 red & mixed Bootstrap accents */
.text-primary,
a.text-primary:focus,
a.text-primary:hover {
    color: var(--mcg-primary) !important;
}

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

.border-primary {
    border-color: var(--mcg-primary) !important;
}

/* Unify all buttons into the single primary blue tonality */
button.btn,
.btn:not(.close):not(.mfp-close),
.btn.btn-primary,
button.btn-primary,
a.btn-primary {
    background-color: var(--mcg-primary);
    border-color: var(--mcg-primary);
    color: #ffffff;
}

button.btn:hover,
button.btn:focus,
button.btn:active,
.btn:not(.close):not(.mfp-close):hover,
.btn:not(.close):not(.mfp-close):focus,
.btn:not(.close):not(.mfp-close):active,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
    background-color: var(--mcg-primary-dark) !important;
    border-color: var(--mcg-primary-dark) !important;
    color: #ffffff !important;
}

/* Outline buttons in the same blue tonality */
.btn.btn-outline {
    background-color: transparent !important;
    border: 2px solid var(--mcg-primary) !important;
    color: var(--mcg-primary) !important;
}

.btn.btn-outline:hover,
.btn.btn-outline:focus,
.btn.btn-outline:active {
    background-color: var(--mcg-primary) !important;
    border-color: var(--mcg-primary) !important;
    color: #ffffff !important;
}

/* Light outline buttons on dark backgrounds */
.btn.btn-outline.btn-light {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

.btn.btn-outline.btn-light:hover,
.btn.btn-outline.btn-light:focus {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--mcg-dark) !important;
}

/* Inverted buttons in footer */
.btn.btn-inverted {
    background-color: var(--mcg-primary) !important;
    border-color: var(--mcg-primary) !important;
    color: #ffffff !important;
}

.btn.btn-inverted:hover {
    background-color: var(--mcg-primary-dark) !important;
    border-color: var(--mcg-primary-dark) !important;
    color: #ffffff !important;
}

/* Replace all POLO #e02b20 red accents across links, lists, timelines, icon boxes, scrollTop */
a:hover,
a:focus,
.list-icon.list-icon-colored li:before,
.list-icon.list-icon-colored i,
.icon-box.effect.medium .icon i:hover,
.accordion .ac-item .ac-title:hover,
#footer .widget .list li a:hover,
.breadcrumb ul li a:hover {
    color: var(--mcg-primary) !important;
}

.timeline .timeline-item:hover .timeline-icon,
.icon-boxx:hover,
#scrollTop:after,
#scrollTop:hover,
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background-color: var(--mcg-primary) !important;
    border-color: var(--mcg-primary) !important;
}

.icon-boxx:hover,
.icon-boxx:hover h3,
.icon-boxx:hover p,
.icon-boxx:hover i {
    color: #ffffff !important;
}

mark,
.highlight {
    background-color: rgba(37, 99, 235, 0.12) !important;
    color: var(--mcg-primary-dark) !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mcg-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* 2. SECTION HEADINGS — True 55-60px bottom spacing without pseudo-element chewing */
.heading-text.heading-section {
    margin-bottom: 60px !important;
}

.heading-text.heading-section .section-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mcg-primary);
    margin-bottom: 12px;
}

.heading-text.heading-section h2,
.heading-text.heading-section h3,
.heading-text.heading-section h4 {
    position: relative;
    padding-bottom: 22px !important;
    margin-bottom: 0 !important;
}

.heading-text.heading-section h2:before,
.heading-text.heading-section h3:before,
.heading-text.heading-section h4:before {
    content: "" !important;
    display: block !important;
    position: absolute;
    height: 3px;
    width: 80px;
    background-color: var(--mcg-primary) !important;
    bottom: 0 !important;
    left: 0;
    right: auto;
}

.heading-text.heading-section.text-center h2:before,
.heading-text.heading-section.text-center h3:before,
.heading-text.heading-section.text-center h4:before {
    left: 0;
    right: 0;
    margin: 0 auto;
}

.heading-text.heading-section p,
.heading-text.heading-section span.lead {
    display: block;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
}

/* 3. HEADER & NAVIGATION — Crisp white text over dark hero, dark text when sticky-active */
#topbar.dark {
    background-color: #0b1120 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Unscrolled transparent header on index.html AND dark header on inner pages */
#header.dark:not(.sticky-active) #mainMenu nav > ul > li > a,
#header[data-transparent="true"]:not(.sticky-active) #mainMenu nav > ul > li > a,
#header.dark:not(.sticky-active) #logo a,
#header[data-transparent="true"]:not(.sticky-active) #logo a,
#header.dark:not(.sticky-active) #logo a span,
#header[data-transparent="true"]:not(.sticky-active) #logo a span {
    color: #ffffff !important;
}

#header.dark:not(.sticky-active) #mainMenu nav > ul > li:hover > a,
#header.dark:not(.sticky-active) #mainMenu nav > ul > li.current > a,
#header[data-transparent="true"]:not(.sticky-active) #mainMenu nav > ul > li:hover > a,
#header[data-transparent="true"]:not(.sticky-active) #mainMenu nav > ul > li.current > a {
    color: var(--mcg-primary-light) !important;
}

#header.dark:not(.sticky-active) .lines,
#header.dark:not(.sticky-active) .lines:before,
#header.dark:not(.sticky-active) .lines:after,
#header[data-transparent="true"]:not(.sticky-active) .lines,
#header[data-transparent="true"]:not(.sticky-active) .lines:before,
#header[data-transparent="true"]:not(.sticky-active) .lines:after {
    background-color: #ffffff !important;
}

/* Inner pages dark header background matches our deep slate palette */
#header.dark:not([data-transparent="true"]):not(.sticky-active) .header-inner,
#header.dark:not([data-transparent="true"]):not(.sticky-active) #header-wrap {
    background-color: var(--mcg-dark) !important;
}

/* Sticky scrolled header (white background -> dark readable text + primary blue hover) */
#header.sticky-active .header-inner,
#header.sticky-active #header-wrap {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

#header.sticky-active #mainMenu nav > ul > li > a,
#header.sticky-active #logo a,
#header.sticky-active #logo a .logo-default,
#header.sticky-active #logo a .logo-dark {
    color: var(--mcg-dark) !important;
}

#header.sticky-active #mainMenu nav > ul > li:hover > a,
#header.sticky-active #mainMenu nav > ul > li.current > a {
    color: var(--mcg-primary) !important;
}

#header #logo a .brand-sub {
    color: var(--mcg-primary-light) !important;
    font-size: 14px;
    font-weight: 600;
    margin-left: 4px;
}

#header.sticky-active #logo a .brand-sub {
    color: var(--mcg-primary) !important;
}

/* 4. LIST-GROUP / BUTTON BLOCKS — Clean borders without overlapping shadows */
.me-3 { margin-right: 1rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fw-semibold { font-weight: 600 !important; }

.list-group {
    box-shadow: none !important;
}

.list-group-item-action {
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 10px;
    border-radius: 8px !important;
    box-shadow: none !important;
    background-color: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.list-group-item-action:last-child {
    margin-bottom: 0;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: #f8fafc !important;
    border-color: var(--mcg-primary) !important;
    box-shadow: none !important;
    transform: translateX(4px);
}

/* Clean image containers without border+shadow mud */
.svg-card-showcase {
    border-radius: 12px;
    overflow: hidden;
    background: var(--mcg-dark);
}

/* Clean Static Hero Section (Replaces multi-slide Flickity slider) */
.hero-banner {
    position: relative;
    background-color: var(--mcg-dark) !important;
    background-image: url('../img/slide1.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-captions {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.it-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    background: rgba(37, 99, 235, 0.18);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.hero-badge {
    opacity: 0.65;
}

.hero-captions h1 {
    font-size: 46px;
    line-height: 1.18;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-captions .hero-lead {
    font-size: 17px;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .hero-captions {
        max-width: 100%;
    }
    .hero-captions h1 {
        font-size: 32px;
        line-height: 1.22;
    }
    .hero-captions .hero-lead {
        font-size: 15px;
        line-height: 1.5 !important;
    }
}

/* Right-side GPU-Composited Hexagonal Flowchart (Desktop Only, Zero Filter, Zero Repaint) */
.hero-code-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 490px;
    height: 430px;
    opacity: 0.65;
    z-index: 2;
    pointer-events: none;
    contain: layout paint style;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hero-captions {
        max-width: 480px;
    }
    .hero-code-visual {
        width: 410px;
        height: 360px;
    }
}

.hex-flow-svg text {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.flow-node .node-step {
    fill: #38bdf8;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.flow-node .node-cmd {
    fill: #cbd5e1;
    font-size: 9.5px;
}

.flow-node .node-active {
    fill: rgba(37, 99, 235, 0.22);
    stroke: #38bdf8;
    stroke-width: 1.6;
    opacity: 0;
    will-change: opacity;
}

.flow-node .node-bar {
    fill: #38bdf8;
    transform-box: fill-box;
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
}

.hex-runner {
    transform: translate(260px, 120px);
    will-change: transform;
}

/* Run animations ONLY on desktop viewports (>= 992px) */
@media (min-width: 992px) {
    .hex-runner {
        animation: hexRunnerLoop 12s infinite ease-in-out;
    }
    .flow-node .node-active {
        animation: nodeActiveOpacity 12s infinite linear;
    }
    .flow-node .node-bar {
        animation: nodeBarScale 12s infinite linear;
    }
    .node-1 .node-active, .node-1 .node-bar { animation-delay: 0s; }
    .node-2 .node-active, .node-2 .node-bar { animation-delay: 2s; }
    .node-3 .node-active, .node-3 .node-bar { animation-delay: 4s; }
    .node-4 .node-active, .node-4 .node-bar { animation-delay: 6s; }
    .node-5 .node-active, .node-5 .node-bar { animation-delay: 8s; }
    .node-6 .node-active, .node-6 .node-bar { animation-delay: 10s; }
}

@keyframes hexRunnerLoop {
    0%, 9.5%        { transform: translate(260px, 120px); }
    16.67%, 26.17%  { transform: translate(355px, 175px); }
    33.33%, 42.83%  { transform: translate(355px, 285px); }
    50.00%, 59.50%  { transform: translate(260px, 340px); }
    66.67%, 76.17%  { transform: translate(165px, 285px); }
    83.33%, 92.83%  { transform: translate(165px, 175px); }
    100%            { transform: translate(260px, 120px); }
}

@keyframes nodeActiveOpacity {
    0%, 9.5%   { opacity: 1; }
    11%, 100%  { opacity: 0; }
}

@keyframes nodeBarScale {
    0%         { transform: scaleX(0); }
    8.5%, 9.5% { transform: scaleX(1); }
    10%, 100%  { transform: scaleX(0); }
}

.tech-badge {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--mcg-primary);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.icon-box.medium.fancy .icon i {
    color: var(--mcg-primary) !important;
}

.counter span {
    font-weight: 700;
    color: var(--mcg-dark);
}

.form-select {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

/* 5. MODERN ROLE SPECIFICATIONS & PERK CARDS (Replacing plain ul/li & bold tags) */
.role-intro {
    color: #475569;
    line-height: 1.65;
    margin-bottom: 24px;
}

.role-highlight {
    color: var(--mcg-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.role-section {
    margin-bottom: 28px;
}

.role-block-title {
    display: flex;
    align-items: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--mcg-primary);
    font-weight: 500;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.role-block-title i {
    margin-right: 8px;
    font-size: 13px;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--mcg-primary);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.spec-item:hover {
    background: #f1f5f9;
}

.spec-item-text b {
    color: var(--mcg-primary);
    font-weight: 600;
}

.spec-item-tag {
    color: var(--mcg-primary);
    font-weight: 500;
    margin-right: 6px;
}

/* Pure technology icon carousel sizing */
.client-logos .polo-carousel-item img,
.client-logos img {
    height: 64px !important;
    width: auto !important;
    margin: 0 auto;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.client-logos a:hover img {
    opacity: 1;
    transform: translateY(-3px);
}

/* Dark card perks list (replaces ul/li + bold in Why Work With MCG Digital) */
.perk-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 20px;
}

.perk-item {
    display: flex;
    align-items: flex-start;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 8px;
    padding: 12px 14px;
}

.perk-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.25);
    color: var(--mcg-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 14px;
}

.perk-title {
    display: block;
    color: var(--mcg-primary-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.perk-desc {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}
