.elementor-14 .elementor-element.elementor-element-65e3408{--display:flex;--flex-direction:row;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--justify-content:center;--align-items:center;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-14 .elementor-element.elementor-element-53590d1{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-53590d1 *//* =========================================
   CORE BIM SOLUTIONS - ENHANCED VISUALS & ANIMATIONS
   ========================================= */

/* Reset and Scope */

.cb-section {
    
    color: #212A31;
    box-sizing: border-box;
    position: relative;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Full width — override any Elementor widget padding */
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
.cb-section * { box-sizing: border-box; }
.cb-section img { max-width: 100%; height: auto; display: block; }
.cb-section a { text-decoration: none; color: inherit; }
/* Prevent Elementor's a{color:inherit} from breaking button text */
.cb-section a.cb-btn { color: inherit; }

.cb-container {
    width: 100%;
    padding: 100px max(40px, calc((100% - 1280px) / 2));
}
@media (max-width: 768px) {
    .cb-container { padding: 60px max(24px, calc((100% - 1280px) / 2)); }
}

/* Typography */
.cb-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #E8EEF1;
    color: #124E66;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 100px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.cb-h1 {
    font-size: clamp(48px, 5vw, 68px);
    font-weight: 300;
    line-height: 1.1;
    color: #212A31;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.cb-h1 strong { font-weight: 600; color: #124E66; }

.cb-h2 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 300;
    line-height: 1.2;
    color: #212A31;
    margin-bottom: 24px;
}
.cb-h2 strong { font-weight: 600; }
.cb-h2 em { font-style: italic; font-weight: 600; }

.cb-p-lead {
    font-size: 18px;
    color: #748D92;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 540px;
}

/* -------------------------------------
   UNIQUE BUTTON HOVER EFFECTS 
   ------------------------------------- */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
}

/* Sweep background — sits BEHIND the text via z-index */
.cb-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 0%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.cb-btn:hover::before { width: 100%; }

/* Bottom accent line */
.cb-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    z-index: 2;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.cb-btn:hover::after { width: 100%; }

/* Ensure all inner text/icons sit above pseudo-elements */
.cb-btn > * { position: relative; z-index: 1; }
.cb-btn span,
.cb-btn svg { position: relative; z-index: 1; }

/* Primary — dark teal fill, white text */
.cb-btn-primary,
a.cb-btn-primary,
a.cb-btn-primary:link,
a.cb-btn-primary:visited {
    background: #124E66;
    color: #FFFFFF;
    border: 2px solid #124E66;
}
.cb-btn-primary::before { background: #0e3d50; }
.cb-btn-primary::after  { background: rgba(255,255,255,0.6); }
.cb-btn-primary:hover,
a.cb-btn-primary:hover {
    color: #FFFFFF;
    background: #124E66;
    border-color: #0e3d50;
    box-shadow: 0 10px 24px rgba(18,78,102,0.25);
    transform: translateY(-2px);
}

/* Light — transparent with dark text */
.cb-btn-light,
a.cb-btn-light,
a.cb-btn-light:link,
a.cb-btn-light:visited {
    background: transparent;
    color: #212A31;
    border: 2px solid #D3D9D4;
}
.cb-btn-light::before { background: #E8EEF1; }
.cb-btn-light::after  { background: #124E66; }
.cb-btn-light:hover,
a.cb-btn-light:hover {
    color: #212A31;
    border-color: #748D92;
    transform: translateY(-2px);
}

/* Outline — for use on dark backgrounds */
.cb-btn-outline,
a.cb-btn-outline,
a.cb-btn-outline:link,
a.cb-btn-outline:visited {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255,255,255,0.5);
}
.cb-btn-outline::before { background: rgba(255,255,255,0.08); }
.cb-btn-outline::after  { background: rgba(255,255,255,0.7); }
.cb-btn-outline:hover,
a.cb-btn-outline:hover {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* -------------------------------------
   SCROLL ANIMATIONS (Intersection Observer)
   ------------------------------------- */
.cb-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.cb-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.cb-delay-100 { transition-delay: 100ms; }
.cb-delay-200 { transition-delay: 200ms; }
.cb-delay-300 { transition-delay: 300ms; }
.cb-delay-400 { transition-delay: 400ms; }

/* -------------------------------------
   KEYFRAMES & VISUAL EFFECTS
   ------------------------------------- */
@keyframes floatBob {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Grids */
.cb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 992px) { .cb-grid-2 { grid-template-columns: 1fr; gap: 40px; } }

/* Hero */
.cb-hero { background: #F8FAFB; padding-top: 40px; }
.cb-hero .cb-container { padding-bottom: 60px; }
.cb-trusted { margin-top: 48px; display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 600; color: #748D92; }
.cb-trusted span:first-child { color: #212A31; letter-spacing: 1px; }

/* Hero Image Slider */
.cb-image-wrap { position: relative; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.06); aspect-ratio: 16/11; }
.cb-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 24px; }
.cb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s cubic-bezier(0.4,0,0.2,1); border-radius: 24px; }
.cb-slide.active { opacity: 1; }
.cb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 24px; }

/* Dots */
.cb-slider-dots { position: absolute; bottom: 80px; left: 24px; display: flex; gap: 8px; z-index: 10; }
.cb-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s ease; border: none; padding: 0; }
.cb-dot.active { background: #FFFFFF; width: 20px; border-radius: 4px; }

/* Floating Badge */
.cb-float-br { position: absolute; bottom: 24px; right: 24px; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 16px 20px; border-radius: 12px; width: 270px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: space-between; animation: floatBob 5s ease-in-out infinite; z-index: 10; }
.cb-float-br-tag { font-size: 10px; color: #748D92; letter-spacing: 1px; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; }
.cb-float-br-title { font-size: 14px; font-weight: 600; color: #212A31; transition: opacity 0.4s ease; }

/* Bottleneck */
.cb-bottleneck { background: #F4F7F8; }
.cb-issue { background: #FFFFFF; border: 1px solid #E8EEF1; border-radius: 12px; padding: 24px; display: flex; align-items: flex-start; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.cb-issue:hover { transform: translateX(10px); box-shadow: 0 15px 30px rgba(18, 78, 102, 0.08); border-color: #124E66; }
.cb-issue-icon { width: 44px; height: 44px; background: #F8FAFB; border: 1px solid #E8EEF1; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 20px; flex-shrink: 0; color: #124E66; transition: all 0.4s ease; }
.cb-issue:hover .cb-issue-icon { background: #124E66; color: #FFFFFF; border-color: #124E66; }
.cb-issue h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: #212A31; }
.cb-issue p { font-size: 14px; color: #748D92; line-height: 1.5; }

.cb-float-tl { position: absolute; top: 32px; left: -32px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 24px; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); animation: floatBob 6s ease-in-out infinite reverse; }
.cb-float-tl-num { font-size: 32px; font-weight: 700; color: #124E66; line-height: 1; margin-bottom: 6px; }
.cb-float-tl-text { font-size: 10px; font-weight: 700; color: #748D92; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; }
@media(max-width: 992px) { .cb-float-tl { left: 24px; } }

/* Extended */
.cb-extended { background: #FFFFFF; }
.cb-quote { font-size: 22px; font-style: italic; color: #748D92; line-height: 1.6; margin-bottom: 48px; border-left: none; padding-left: 0; }
.cb-extended-features { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cb-extended-features h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #124E66; }
.cb-extended-features p { font-size: 14px; color: #748D92; line-height: 1.5; }

/* Specializations */
.cb-spec { background: #F4F7F8; text-align: center; }
.cb-spec-grid { display: grid; gap: 24px; margin-top: 60px; text-align: left; }
.cb-spec-row-1 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.cb-spec-row-2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
@media(max-width: 992px) { .cb-spec-row-1, .cb-spec-row-2 { grid-template-columns: 1fr; } }

.cb-spec-card { border-radius: 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.cb-spec-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(18,78,102,0.08); }
.cb-spec-light { background: #FFFFFF; border: 1px solid #E8EEF1; }
.cb-spec-dark { background: #124E66; color: #FFFFFF; padding: 40px; }
.cb-spec-dark p { color: #A0B2B6; }

.cb-spec-icon { margin-bottom: 24px; width: 32px; height: 32px; }
.cb-spec-h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.cb-spec-p { font-size: 15px; line-height: 1.5; color: #748D92; }
.cb-spec-tags { font-size: 10px; font-weight: 700; color: #748D92; letter-spacing: 1px; margin-top: auto; padding-top: 40px; text-transform: uppercase; }

/* Empower */
.cb-empower { background: #FFFFFF; }
.cb-empower-label { font-size: 10px; font-weight: 700; color: #124E66; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; display: block; }
.cb-empower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 32px; }
.cb-empower-item h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #124E66; }
.cb-empower-item p { font-size: 14px; color: #748D92; line-height: 1.5; }

/* Portfolio */
.cb-port { background: #212A31; color: #FFFFFF; border-radius: 64px 64px 0 0; padding-top: 100px; padding-bottom: 100px; margin-top: 40px; }
.cb-port-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.cb-port-link { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: #FFFFFF; text-transform: uppercase; display: flex; align-items: center; gap: 8px; transition: color 0.3s ease; }
.cb-port-link:hover { color: #D3D9D4; }

.cb-port-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cb-port-col { display: flex; flex-direction: column; gap: 24px; }

/* Portfolio Items Hover & Overlays */
.cb-port-item { position: relative; border-radius: 16px; overflow: hidden; }
.cb-port-img { width: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); display: block; }
.cb-port-item:hover .cb-port-img { transform: scale(1.05); }

.cb-port-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(33, 42, 49, 0.95), transparent); padding: 40px 32px 32px; transform: translateY(20px); opacity: 0; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.cb-port-item:hover .cb-port-overlay { opacity: 1; transform: translateY(0); }
.cb-port-overlay h4 { font-size: 20px; font-weight: 600; margin-bottom: 4px; color: #FFFFFF; }
.cb-port-overlay p { font-size: 14px; color: #A0B2B6; margin: 0; }

.cb-img-4-3 { aspect-ratio: 4/3; }
.cb-img-1-1 { aspect-ratio: 1/1; }
.cb-img-3-4 { aspect-ratio: 3/4; }
.cb-img-16-9 { aspect-ratio: 16/9; }
@media(max-width: 768px) { .cb-port-grid { grid-template-columns: 1fr; } .cb-port-header { flex-direction: column; align-items: flex-start; gap: 24px; } }

/* Workflow */
.cb-flow { background: #FFFFFF; text-align: center; }
.cb-flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; text-align: left; }
@media(max-width: 992px) { .cb-flow-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media(max-width: 480px) { .cb-flow-grid { grid-template-columns: 1fr; } }
.cb-flow-item { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.cb-flow-item:hover { transform: translateY(-8px); }
.cb-flow-num { width: 48px; height: 48px; border: 1px solid #E8EEF1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: #124E66; margin-bottom: 20px; background: #F8FAFB; transition: all 0.4s ease; }
.cb-flow-item:hover .cb-flow-num { background: #124E66; color: #FFFFFF; border-color: #124E66; }
.cb-flow-item h4 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: #212A31; }
.cb-flow-item p { font-size: 14px; color: #748D92; line-height: 1.5; }

/* Testimonial */
.cb-test { background: #F4F7F8; text-align: center; padding: 120px 24px; }
.cb-test-quote { font-size: clamp(24px, 4vw, 32px); font-weight: 300; color: #212A31; line-height: 1.4; max-width: 900px; margin: 0 auto 40px; }
.cb-test-author { font-size: 16px; font-weight: 600; color: #212A31; margin-bottom: 4px; }
.cb-test-role { font-size: 12px; font-weight: 600; color: #748D92; letter-spacing: 1px; text-transform: uppercase; }

/* Final CTA */
.cb-cta { background: #FFFFFF; padding-bottom: 100px; }
.cb-cta-box { background: #212A31; border-radius: 32px; padding: 100px 40px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 40px 80px rgba(33, 42, 49, 0.15); }
.cb-cta-status { position: absolute; top: 32px; left: 40px; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: #748D92; }
.cb-cta-active { position: absolute; bottom: 32px; right: 40px; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: #748D92; }
@media(max-width: 768px) { .cb-cta-status, .cb-cta-active { position: static; margin-bottom: 24px; } }

/* =========================================
   PREMIUM FOOTER
   ========================================= */
.cb-footer {
    background: #0D1518;
    color: #FFFFFF;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* Subtle radial glow top-left */
.cb-footer::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(18,78,102,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.cb-footer-inner {
    width: 100%;
    padding: 80px max(40px, calc((100% - 1280px) / 2)) 0;
}
@media(max-width:768px) { .cb-footer-inner { padding: 60px max(24px, calc((100% - 1280px) / 2)) 0; } }

/* Top row: brand + newsletter */
.cb-footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
@media(max-width:900px) { .cb-footer-top { grid-template-columns: 1fr; gap: 48px; } }

.cb-footer-logo-img {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    max-width: 250px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    display: block;
    opacity: 0.9;
}

.cb-footer-tagline {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 28px;
}

.cb-footer-socials {
    display: flex;
    gap: 12px;
}

.cb-footer-social {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.cb-footer-social:hover {
    background: #124E66;
    border-color: #124E66;
    color: #FFFFFF;
    transform: translateY(-2px);
}
.cb-footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Newsletter */
.cb-footer-newsletter h4 {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}
.cb-footer-newsletter p {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
    line-height: 1.5;
}
.cb-footer-form {
    display: flex;
    gap: 8px;
}
.cb-footer-form input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease;
    font-family: inherit;
}
.cb-footer-form input::placeholder { color: rgba(255,255,255,0.3); }
.cb-footer-form input:focus { border-color: rgba(18,78,102,0.6); }
.cb-footer-form button {
    padding: 12px 22px;
    background: #124E66;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s ease;
    font-family: inherit;
}
.cb-footer-form button:hover { background: #0e3d50; transform: translateY(-1px); }
@media(max-width:480px) { .cb-footer-form { flex-direction: column; } }

/* Links row */
.cb-footer-links-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 56px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
@media(max-width:768px) { .cb-footer-links-row { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media(max-width:480px) { .cb-footer-links-row { grid-template-columns: 1fr; } }

.cb-footer-col h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 20px;
}
.cb-footer-col ul { list-style: none; }
.cb-footer-col ul li { margin-bottom: 12px; }
.cb-footer-col ul a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cb-footer-col ul a:hover { color: #FFFFFF; }

/* Bottom bar */
.cb-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.cb-footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.cb-footer-legal {
    display: flex;
    gap: 24px;
}
.cb-footer-legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.25s ease;
}
.cb-footer-legal a:hover { color: rgba(255,255,255,0.7); }
@media(max-width:600px) { .cb-footer-bottom { flex-direction: column; text-align: center; } .cb-footer-legal { justify-content: center; } }

/* =========================================
   FLOATING PILL GLASS NAVBAR
   ========================================= */

/* Wrapper — controls position, centers the pill */
.cb-nav-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 0 24px;
    pointer-events: none;
    
    box-sizing: border-box;
    /* Start hidden so the entrance animation works cleanly */
    opacity: 0;
    transform: translateY(-24px);
    animation: navEntrance 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

@keyframes navEntrance {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cb-nav-wrapper.nav-hidden {
    transform: translateY(calc(-100% - 28px));
    opacity: 0;
}

/* The pill itself */
.cb-nav {
    pointer-events: all;
    position: relative;          /* ← CRITICAL: contains the absolute-positioned links */
    width: 100%;
    max-width: 1280px;           /* Expanded to match hero container width */
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 24px;      /* Increased padding */
    background: rgba(18, 25, 32, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
    transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.4s ease, 
                box-shadow 0.4s ease;
}

.cb-nav.nav-scrolled {
    max-width: 1080px;           /* Shrink on scroll */
    padding: 0 8px 0 20px;       /* Shrink padding */
    background: rgba(12, 18, 24, 0.93);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Logo */
.cb-nav-logo {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    /* Invert so dark logo works on dark pill */
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}
.cb-nav-logo:hover { opacity: 0.8; }

/* Nav links */
.cb-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.cb-nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 100px;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    position: relative;
    display: block;
}

.cb-nav-links a:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.07);
}

/* Right side actions */
.cb-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cb-nav-ghost {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.cb-nav-ghost:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.cb-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    background: #124E66;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Glow */
    box-shadow: 0 0 0 0 rgba(18, 78, 102, 0);
}
.cb-nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a6b8a, #0e3d50);
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 100px;
}
.cb-nav-cta span { position: relative; z-index: 1; }
.cb-nav-cta:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 24px rgba(18, 78, 102, 0.35);
}
.cb-nav-cta:hover::before { opacity: 1; }

/* Hamburger */
.cb-nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px;
    transition: background 0.3s ease;
}
.cb-nav-hamburger:hover { background: rgba(255,255,255,0.14); }
.cb-nav-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile drawer */
.cb-nav-mobile {
    display: none;
    position: fixed;
    top: 96px;
    left: 24px;
    right: 24px;
    background: rgba(14, 20, 28, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 16px;
    z-index: 9998;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 32px 64px rgba(0,0,0,0.4);
    animation: mobileMenuIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cb-nav-mobile.open { display: flex; }
.cb-nav-mobile a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 14px;
    transition: background 0.25s ease, color 0.25s ease;
}
.cb-nav-mobile a:hover { background: rgba(255,255,255,0.06); color: #FFF; }
.cb-nav-mobile a:last-child {
    margin-top: 8px;
    background: #124E66;
    color: #FFF;
    font-weight: 600;
    text-align: center;
}
.cb-nav-mobile a:last-child:hover { background: #0e3d50; }

@media(max-width: 900px) {
    .cb-nav-links { display: none; }
    .cb-nav-ghost  { display: none; }
    .cb-nav-hamburger { display: flex; }
}
@media(max-width: 480px) {
    .cb-nav-wrapper { top: 12px; padding: 0 12px; }
    .cb-nav { height: 56px; padding: 0 6px 0 16px; }
    .cb-nav-logo { height: 30px; }
}

/* Push hero section below pill nav */
.cb-nav-wrapper + .cb-section { padding-top: 112px; }/* End custom CSS */