/* ==========================================================================
   Codeagle - WEBSITE STYLES
   Uses only the tokens from theme.css (never put colour codes here).
   Mobile-first: base styles are for phones; media queries add larger screens.

   Contents
     1. Base & helpers        7. Cards & grids          13. Blog & careers
     2. Top bar & header      8. Stats, process, FAQ    14. Contact & quote wizard
     3. Mega menu             9. Testimonials           15. Footer
     4. Page hero            10. CTA band               16. Floating buttons & cookie banner
     5. Home hero            11. Portfolio & case study 17. Scroll reveal
     6. Trust strip          12. Forms                  18. Error pages
     Brand layer (logo-tile icons, chevrons, dark bands) · Preloader · Add-ons at the end
   ========================================================================== */

/* 1. Base & helpers -------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.skip-link { z-index: 2000; }

/* Small label above headings, with the orange chevron from the logo. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .85rem;
    padding: .3rem .85rem .3rem .65rem;
    border: 1px solid rgba(var(--ce-primary-rgb), .14);
    border-radius: 999px;
    background: rgba(var(--ce-primary-rgb), .07);
    color: var(--ce-primary-active);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.eyebrow::before { content: '\F285'; color: var(--ce-accent); font-family: 'bootstrap-icons'; font-size: .75em; font-weight: 700; -webkit-text-stroke: .5px currentColor; }

/* Orange gradient text (the chevron), e.g. a highlighted word in a heading. */
.text-gradient {
    background: var(--ce-gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Faint grid used on the dark brand surfaces (hero, stats, CTA). */
.brand-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--ce-on-dark-surface) 1px, transparent 1px), linear-gradient(90deg, var(--ce-on-dark-surface) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, var(--ce-dark), transparent 75%); mask-image: radial-gradient(ellipse at 70% 30%, var(--ce-dark), transparent 75%); }

/* Buttons on dark brand surfaces: orange for the main action, light outline for the rest. */
.on-dark .btn-primary, .page-hero .btn-primary {
    --bs-btn-color: var(--ce-on-accent);
    --bs-btn-bg: var(--ce-accent);
    --bs-btn-border-color: var(--ce-accent);
    --bs-btn-hover-color: var(--ce-on-accent);
    --bs-btn-hover-bg: var(--ce-accent-light);
    --bs-btn-hover-border-color: var(--ce-accent-light);
    --bs-btn-active-color: var(--ce-on-accent);
    --bs-btn-active-bg: var(--ce-accent-hover);
    --bs-btn-active-border-color: var(--ce-accent-hover);
    --bs-btn-focus-shadow-rgb: var(--ce-accent-rgb);
}
.on-dark .btn-outline-primary, .page-hero .btn-outline-primary {
    --bs-btn-color: var(--ce-on-dark);
    --bs-btn-border-color: var(--ce-on-dark-border);
    --bs-btn-hover-color: var(--ce-dark);
    --bs-btn-hover-bg: var(--ce-on-dark);
    --bs-btn-hover-border-color: var(--ce-on-dark);
    --bs-btn-active-color: var(--ce-dark);
    --bs-btn-active-bg: var(--ce-on-dark);
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
    border-width: 1.5px;
}
/* The main call to action (header "Get a Quote", hero and band buttons): orange chevron gradient, white bold text. */
.btn-accent, .on-dark .btn-primary, .page-hero .btn-primary, .site-header .header-cta .btn-primary {
    --bs-btn-color: var(--ce-on-cta);
    --bs-btn-hover-color: var(--ce-on-cta);
    --bs-btn-active-color: var(--ce-on-cta);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
    --bs-btn-font-weight: 700;
    background-image: var(--ce-gradient-cta);
    box-shadow: var(--ce-cta-glow);
    text-shadow: var(--ce-cta-text-shadow);
    letter-spacing: .01em;
    transition: transform .15s ease, box-shadow .15s ease, background-image .15s ease;
}
.btn-accent:hover, .on-dark .btn-primary:hover, .page-hero .btn-primary:hover, .site-header .header-cta .btn-primary:hover,
.btn-accent:focus-visible, .on-dark .btn-primary:focus-visible, .page-hero .btn-primary:focus-visible, .site-header .header-cta .btn-primary:focus-visible {
    background-image: var(--ce-gradient-cta-hover);
    box-shadow: var(--ce-cta-glow-hover);
    transform: translateY(-1px);
}
.btn-accent:active, .on-dark .btn-primary:active, .page-hero .btn-primary:active, .site-header .header-cta .btn-primary:active { transform: none; box-shadow: var(--ce-cta-glow); }
.btn-accent i, .on-dark .btn-primary i, .page-hero .btn-primary i, .site-header .header-cta .btn-primary i { transition: transform .15s ease; }
.btn-accent:hover i.bi-arrow-right, .on-dark .btn-primary:hover i.bi-arrow-right, .page-hero .btn-primary:hover i.bi-arrow-right, .site-header .header-cta .btn-primary:hover i.bi-arrow-right { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
    .btn-accent, .on-dark .btn-primary, .page-hero .btn-primary, .site-header .header-cta .btn-primary { transition: none; }
}
.btn-lg { --bs-btn-padding-x: 1.4rem; --bs-btn-font-weight: 600; }

.display-title {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
}

.lead-text { color: var(--ce-muted); font-size: 1.075rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ce-primary);
    font-weight: 600;
    text-decoration: none;
}

.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i, a:hover > .link-arrow i { transform: translateX(4px); }

.section { padding-block: 3.5rem; }
.section--alt { background: var(--ce-section-alt-bg); }
.section--dark {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 0%, rgba(var(--ce-primary-bright-rgb), .35), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(var(--ce-accent-rgb), .14), transparent 40%),
        var(--ce-gradient-brand-diagonal);
    color: var(--ce-on-dark-muted);
}
.section--dark > .container { position: relative; }

.section-heading {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading--start { margin-left: 0; text-align: left; }
.section-heading__title { font-size: clamp(1.6rem, 4vw, 2.35rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.section-heading__text { margin: .5rem 0 0; color: var(--ce-muted); }

.section-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.sticky-offset { top: 100px; z-index: 1; }

.check-list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.check-list li { position: relative; margin-bottom: .6rem; padding-left: 1.75rem; }
.check-list li::before {
    content: '\F26A';
    position: absolute;
    top: 0;
    left: 0;
    color: var(--ce-primary);
    font-family: 'bootstrap-icons';
}
.check-list--sm li { margin-bottom: .35rem; font-size: .9rem; }

@media (min-width: 576px) {
    .check-list--grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}

.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.chip-list li {
    padding: .2rem .65rem;
    border-radius: 999px;
    background: var(--ce-section-alt-bg);
    border: 1px solid var(--ce-border);
    color: var(--ce-body-color);
    font-size: .8rem;
    font-weight: 500;
}
.chip-list--lg li { padding: .45rem 1rem; font-size: .95rem; }

/* Spam trap of the forms: off-screen for people, still "visible" to bots. */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sample-badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: var(--ce-accent);
    color: var(--ce-on-accent);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ce-primary-subtle);
    color: var(--ce-primary-active);
    font-weight: 700;
}

.info-callout {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--ce-primary);
    border-radius: var(--ce-radius);
    background: var(--ce-primary-subtle);
}
.info-callout > i { color: var(--ce-primary); font-size: 1.5rem; line-height: 1; }

.empty-state { padding: 3rem 1rem; color: var(--ce-muted); text-align: center; }
.empty-state i { display: block; margin-bottom: .75rem; font-size: 2.5rem; }

@media (min-width: 992px) {
    .section { padding-block: 5.5rem; }
}

/* Decorative swatches for placeholder images (colours live in theme.css) */
.swatch-blue { --swatch-a: var(--ce-swatch-blue); --swatch-b: var(--ce-swatch-blue-2); }
.swatch-indigo { --swatch-a: var(--ce-swatch-indigo); --swatch-b: var(--ce-swatch-indigo-2); }
.swatch-purple { --swatch-a: var(--ce-swatch-purple); --swatch-b: var(--ce-swatch-purple-2); }
.swatch-teal { --swatch-a: var(--ce-swatch-teal); --swatch-b: var(--ce-swatch-teal-2); }
.swatch-green { --swatch-a: var(--ce-swatch-green); --swatch-b: var(--ce-swatch-green-2); }
.swatch-orange { --swatch-a: var(--ce-swatch-orange); --swatch-b: var(--ce-swatch-orange-2); }

[class*="swatch-"] {
    background: linear-gradient(135deg, var(--swatch-a, var(--ce-primary)), var(--swatch-b, var(--ce-primary-hover)));
    color: var(--ce-on-dark);
}

/* 2. Top bar & header ----------------------------------------------------- */
.topbar {
    padding-block: .5rem;
    background: var(--ce-dark);
    color: var(--ce-on-dark-muted);
    font-size: .8125rem;
}

.topbar a, .topbar__link {
    border: 0;
    background: none;
    padding: 0;
    color: var(--ce-on-dark-muted);
    text-decoration: none;
}

.topbar a:hover, .topbar__link:hover { color: var(--ce-on-dark); }
.topbar__divider { width: 1px; height: 14px; background: var(--ce-on-dark-border); }

/* Logo from Settings > Appearance: the height is fixed, so an upload of any size or shape fits the header. */
.brand { display: inline-flex; align-items: center; gap: .6rem; vertical-align: middle; }
.brand__img { display: block; width: auto; max-width: 260px; height: 52px; object-fit: contain; } /* wide logo: tile + CODEAGLE / TECHNOLOGIES */
@media (max-width: 575.98px) { .brand__img { height: 44px; } }
.brand--emblem .brand__img { height: 44px; }
.brand__name { color: var(--ce-heading-color); font-family: var(--ce-font-heading); font-size: 1.25rem; font-weight: 700; line-height: 1; }
.site-footer .brand { display: flex; }
.site-footer .brand__name { color: var(--ce-footer-heading); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--ce-header-bg);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.site-header.is-scrolled { box-shadow: var(--ce-shadow-sm); border-bottom-color: var(--ce-border); }
.site-header .container { position: relative; }
.site-header .navbar { padding-block: .8rem; transition: padding .2s ease; }
.site-header.is-scrolled .navbar { padding-block: .5rem; }

.site-header .nav-link {
    padding: .85rem 0;
    color: var(--ce-heading-color);
    font-weight: 500;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link.active,
.site-header .nav-link.show { color: var(--ce-primary); }

.site-header .offcanvas-body .navbar-nav > .nav-item + .nav-item { border-top: 1px solid var(--ce-border); }

.header-cta { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.25rem; }

.offcanvas-contact {
    display: grid;
    gap: .6rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ce-border);
    font-size: .9rem;
}
.offcanvas-contact a { color: var(--ce-body-color); text-decoration: none; }

@media (min-width: 1200px) {
    .site-header .nav-link { padding: .5rem .85rem; }
    .site-header .offcanvas-body .navbar-nav > .nav-item + .nav-item { border-top: 0; }
    .header-cta { flex-direction: row; margin-top: 0; }

    /* Open menus on hover / keyboard focus on desktop (click still works). */
    .site-header .dropdown:hover > .dropdown-menu,
    .site-header .dropdown:focus-within > .dropdown-menu { display: block; }
    .site-header .dropdown > .dropdown-menu { margin-top: 0; }
}

/* 3. Mega menu ---------------------------------------------------------------- */
.site-header .dropdown-menu {
    padding: .5rem;
    border-color: var(--ce-border);
    border-radius: var(--ce-radius-lg);
    box-shadow: var(--ce-shadow);
}

.site-header .dropdown-item { padding: .55rem .85rem; border-radius: var(--ce-radius); }

.mega-menu { padding: 1rem; }

.mega-menu__grid { display: grid; gap: .25rem; }
.mega-menu__columns { display: grid; gap: 1rem; }

.mega-menu__heading {
    margin: .25rem 0 .5rem;
    padding: 0 .5rem;
    color: var(--ce-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mega-link {
    display: flex;
    gap: .85rem;
    padding: .7rem;
    border-radius: var(--ce-radius);
    color: var(--ce-heading-color);
    text-decoration: none;
}

.mega-link:hover, .mega-link:focus-visible { background: var(--ce-section-alt-bg); }

.mega-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--ce-radius);
    background: var(--ce-primary-subtle);
    color: var(--ce-primary);
    font-size: 1.15rem;
}

.mega-link__title { display: block; font-weight: 600; }
.mega-link__text { display: block; color: var(--ce-muted); font-size: .8125rem; line-height: 1.4; }

.mega-tech {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem;
    border-radius: var(--ce-radius);
    color: var(--ce-body-color);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
}

.mega-tech:hover, .mega-tech:focus-visible { background: var(--ce-section-alt-bg); color: var(--ce-primary); }
.mega-tech img { flex-shrink: 0; width: 20px; height: 20px; object-fit: contain; }

.mega-menu__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .75rem;
    padding: .85rem .5rem 0;
    border-top: 1px solid var(--ce-border);
}

.mega-menu__footer > a:not(.btn) { color: var(--ce-primary); font-weight: 600; text-decoration: none; }

/* Mobile menu: menus open inline as a simple list. */
@media (max-width: 1199.98px) {
    .site-header .dropdown-menu { margin-bottom: .75rem; box-shadow: none; background: var(--ce-section-alt-bg); }
    .mega-link__text { display: none; }
    .mega-link { padding: .5rem; align-items: center; }
    .mega-link__icon { width: 32px; height: 32px; font-size: 1rem; }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
    .mega-menu__grid--2, .mega-menu__grid--3, .mega-menu__columns { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1200px) {
    .site-header .mega-dropdown { position: static; }
    .site-header .mega-menu { left: .75rem; right: .75rem; top: 100%; }
    .mega-menu__grid--2 { grid-template-columns: repeat(2, 1fr); }
    .mega-menu__grid--3 { grid-template-columns: repeat(3, 1fr); }
    .mega-menu__columns { grid-template-columns: repeat(5, 1fr); }
}

/* 4. Page hero (inner pages) ------------------------------------------------ */
/* Dark brand band (the logo tile's blues), the same on every inner page. */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: 2rem 3.25rem;
    background:
        radial-gradient(circle at 92% 0%, rgba(var(--ce-primary-bright-rgb), .4), transparent 42%),
        radial-gradient(circle at 0% 120%, rgba(var(--ce-accent-rgb), .16), transparent 38%),
        var(--ce-gradient-brand-diagonal);
    color: var(--ce-on-dark-muted);
}
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--ce-on-dark-surface) 1px, transparent 1px), linear-gradient(90deg, var(--ce-on-dark-surface) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, transparent 20%, var(--ce-dark)); mask-image: linear-gradient(90deg, transparent 20%, var(--ce-dark)); }
.page-hero::after { content: '\F285'; position: absolute; right: -2rem; bottom: -5.5rem; font-family: 'bootstrap-icons'; font-size: 22rem; line-height: 1; background: var(--ce-gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .12; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }

.page-hero .breadcrumb { --bs-breadcrumb-divider-color: var(--ce-on-dark-muted); margin-bottom: 1.5rem; font-size: .875rem; }
.page-hero .breadcrumb a { color: var(--ce-on-dark-muted); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--ce-on-dark); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: var(--ce-on-dark-muted); opacity: .6; }
.page-hero .breadcrumb-item.active { color: var(--ce-on-dark); overflow: hidden; max-width: 60vw; text-overflow: ellipsis; white-space: nowrap; }
.page-hero .eyebrow, .hero .eyebrow { border-color: var(--ce-on-dark-border); background: var(--ce-on-dark-surface); color: var(--ce-on-dark); }

.page-hero__body { max-width: 820px; }
.page-hero__title { margin-bottom: .75rem; color: var(--ce-on-dark); font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.page-hero__text { margin-bottom: 0; color: var(--ce-on-dark-muted); font-size: 1.125rem; }
.page-hero__price { margin: 1rem 0 0; color: var(--ce-on-dark-muted); }
.page-hero__price strong { color: var(--ce-accent-on-dark); }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.75rem; }

@media (min-width: 992px) {
    .page-hero { padding-block: 2.5rem 4.75rem; }
}

/* 5. Home hero -------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: 2.75rem 3.5rem;
    background:
        radial-gradient(circle at 88% 8%, rgba(var(--ce-primary-bright-rgb), .5), transparent 42%),
        radial-gradient(circle at 5% 100%, rgba(var(--ce-accent-rgb), .2), transparent 38%),
        var(--ce-gradient-brand-diagonal);
    color: var(--ce-on-dark-muted);
}
.hero > .container { position: relative; z-index: 1; }

.hero__title { margin-bottom: 1.1rem; color: var(--ce-on-dark); font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.hero__lead { max-width: 580px; margin-bottom: 2rem; color: var(--ce-on-dark-muted); font-size: 1.125rem; line-height: 1.65; }

.hero__points { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin: 0; padding: 0; list-style: none; color: var(--ce-on-dark); font-size: .9375rem; font-weight: 500; }
.hero__points i { margin-right: .45rem; color: var(--ce-accent-on-dark); }

@media (min-width: 992px) {
    .hero { padding-block: 5rem 6.5rem; }
}

/* Real work in the hero: featured portfolio covers, stacked. */
.hero-showcase { position: relative; max-width: 620px; margin: .5rem auto 0; padding: 0 0 2.5rem; }
.hero-showcase__card {
    display: block;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--ce-on-dark-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-dark);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55);
}
.hero-showcase__card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-showcase__card--main { position: relative; z-index: 2; width: 92%; transition: transform .4s ease; }
.hero-showcase__card--main:hover { transform: translateY(-4px); }
.hero-showcase__card--back { position: absolute; z-index: 1; top: -1.25rem; right: 0; width: 70%; opacity: .75; transform: rotate(5deg); }
.hero-showcase__caption {
    position: absolute;
    z-index: 3;
    left: 1rem;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: calc(100% - 2rem);
    padding: .65rem 1rem .65rem .65rem;
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    box-shadow: var(--ce-shadow-lg);
    color: var(--ce-heading-color);
    text-decoration: none;
    animation: float 6s ease-in-out infinite;
}
.hero-showcase__caption:hover { color: var(--ce-primary); }
.hero-showcase__caption > i:first-child {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: .75rem;
    background: var(--ce-gradient-brand); color: var(--ce-on-dark); font-size: 1.1rem;
}
.hero-showcase__text { flex: 1; min-width: 0; }
.hero-showcase__caption small { display: block; color: var(--ce-muted); font-size: .75rem; line-height: 1.2; }
.hero-showcase__caption strong { display: block; overflow: hidden; font-size: .9rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.hero-showcase__badge {
    position: absolute; z-index: 3; top: 12%; right: -.5rem;
    display: flex; align-items: center; gap: .55rem;
    padding: .55rem .85rem; border-radius: 999px;
    background: var(--ce-body-bg); box-shadow: var(--ce-shadow-lg);
    color: var(--ce-heading-color); font-size: .8125rem; font-weight: 600;
    animation: float 6s ease-in-out infinite; animation-delay: -3s;
}
.hero-showcase__badge i { color: var(--ce-accent); font-size: 1rem; }

@media (max-width: 575.98px) {
    .hero-showcase__badge { display: none; }
    .hero-showcase__card--main { width: 100%; }
}

/* CSS illustration */
.hero-visual { position: relative; max-width: 560px; margin: 1rem auto 0; padding: 1.5rem 1rem 2.5rem 0; }

.hero-visual__window {
    overflow: hidden;
    border-radius: var(--ce-radius-lg);
    background: var(--ce-code-bg);
    box-shadow: 0 30px 60px rgba(var(--ce-dark-rgb), .25);
}

.hero-visual__bar { display: flex; gap: 6px; padding: .8rem 1rem; border-bottom: 1px solid var(--ce-on-dark-border); }
.hero-visual__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--ce-code-line); }
.hero-visual__bar span:first-child { background: var(--ce-swatch-orange); }
.hero-visual__bar span:nth-child(2) { background: var(--ce-accent); }
.hero-visual__bar span:nth-child(3) { background: var(--ce-swatch-green); }

.hero-visual__code { display: grid; gap: .8rem; padding: 1.5rem 1.25rem 2.25rem; }
.hero-visual__code span { display: block; height: 9px; border-radius: 5px; background: var(--ce-code-line); }
.hero-visual__code .c-1 { background: var(--ce-swatch-purple-2); }
.hero-visual__code .c-2 { background: var(--ce-swatch-blue-2); }
.hero-visual__code .c-3 { background: var(--ce-swatch-teal-2); }
.hero-visual__code .c-4 { background: var(--ce-swatch-orange-2); }
.hero-visual__code .w-25 { width: 25%; } .hero-visual__code .w-30 { width: 30%; }
.hero-visual__code .w-40 { width: 40%; } .hero-visual__code .w-45 { width: 45%; }
.hero-visual__code .w-50 { width: 50%; } .hero-visual__code .w-55 { width: 55%; }
.hero-visual__code .w-60 { width: 60%; } .hero-visual__code .w-65 { width: 65%; }
.hero-visual__code .w-70 { width: 70%; }

.hero-visual__phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 32%;
    max-width: 170px;
    padding: .55rem;
    border-radius: 1.4rem;
    background: var(--ce-dark);
    box-shadow: 0 20px 40px rgba(var(--ce-dark-rgb), .3);
}

.hero-visual__screen { display: grid; gap: .45rem; padding: .7rem; border-radius: 1rem; background: var(--ce-body-bg); aspect-ratio: 9 / 17; align-content: start; }
.hero-visual__screen .block { height: 26px; border-radius: .45rem; background: var(--ce-section-alt-bg); }
.hero-visual__screen .block.tall { height: 70px; background: linear-gradient(135deg, var(--ce-primary), var(--ce-swatch-blue-2)); }
.hero-visual__screen .block.short { width: 60%; background: var(--ce-accent); }

.hero-visual__badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    box-shadow: var(--ce-shadow);
    font-size: .8125rem;
    animation: float 6s ease-in-out infinite;
}

.hero-visual__badge i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ce-primary-subtle);
    color: var(--ce-primary);
    font-size: 1rem;
}

.hero-visual__badge strong, .hero-visual__badge small { display: block; line-height: 1.3; }
.hero-visual__badge small { color: var(--ce-muted); }
.hero-visual__badge--top { top: 0; left: -.5rem; }
.hero-visual__badge--bottom { bottom: 1rem; left: 8%; animation-delay: -3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 575.98px) {
    .hero-visual__badge--top { left: 0; }
    .hero-visual__badge { font-size: .75rem; }
}

/* 6. Trust strip ------------------------------------------------------------ */
.trust-strip { padding-block: 2rem; border-bottom: 1px solid var(--ce-border); }
.trust-strip__label { margin-bottom: 1.25rem; color: var(--ce-muted); font-size: .875rem; font-weight: 500; text-align: center; }

.logo-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--ce-dark) 10%, var(--ce-dark) 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, var(--ce-dark) 10%, var(--ce-dark) 90%, transparent);
}

.logo-marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 30s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }

.client-logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--ce-muted);
    font-family: var(--ce-font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: .7;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 1.5rem)); }
}

.platform-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: .875rem; font-weight: 600; }
.platform-badges i { margin-right: .35rem; color: var(--ce-star); }

/* 7. Cards & grids ------------------------------------------------------------- */
.feature-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    color: var(--ce-body-color);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card--link { text-decoration: none; }
.feature-card--link:hover { transform: translateY(-4px); border-color: rgba(var(--ce-primary-rgb), .35); box-shadow: var(--ce-shadow); color: var(--ce-body-color); }
.feature-card .link-arrow { margin-top: auto; padding-top: 1rem; }

.feature-card__icon, .icon-card__icon, .plan-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    border-radius: var(--ce-radius-lg);
    background: var(--ce-primary-subtle);
    color: var(--ce-primary);
    font-size: 1.5rem;
}

.feature-card__title { margin-bottom: .5rem; font-size: 1.15rem; font-weight: 600; }
.feature-card__text { margin-bottom: 0; color: var(--ce-muted); font-size: .9375rem; }

.icon-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
}

.icon-card__icon { width: 46px; height: 46px; margin-bottom: 0; font-size: 1.3rem; }
.icon-card__title { margin-bottom: .35rem; font-size: 1.05rem; font-weight: 600; }
.icon-card__text { margin-bottom: 0; color: var(--ce-muted); font-size: .9375rem; }

.tech-tabs { gap: .5rem; margin-bottom: 2rem; }
.tech-tabs .nav-link { border: 1px solid var(--ce-border); border-radius: 999px; background: var(--ce-body-bg); color: var(--ce-body-color); font-weight: 500; }
.tech-tabs .nav-link.active { border-color: var(--ce-primary); color: var(--ce-on-dark); }

.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.tech-grid--compact { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; }
.tech-grid--2 { grid-template-columns: 1fr 1fr; }

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem .75rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    color: var(--ce-heading-color);
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

a.tech-card:hover { transform: translateY(-3px); box-shadow: var(--ce-shadow); color: var(--ce-primary); }
.tech-card__icon { color: var(--ce-primary); font-size: 2rem; line-height: 1; }
.tech-card img { width: 40px; height: 40px; object-fit: contain; }
.tech-grid--compact .tech-card { padding: .9rem .5rem; font-size: .8125rem; }
.tech-grid--compact .tech-card img { width: 32px; height: 32px; }

.tech-row-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    color: var(--ce-heading-color);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tech-row-card:hover { border-color: rgba(var(--ce-primary-rgb), .4); box-shadow: var(--ce-shadow-sm); color: var(--ce-heading-color); }
.tech-row-card img { flex-shrink: 0; object-fit: contain; }
.tech-row-card > span:not(.tech-row-card__icon) { flex: 1; min-width: 0; }
.tech-row-card strong { display: block; }
.tech-row-card small { display: block; color: var(--ce-muted); font-size: .8125rem; line-height: 1.4; }
.tech-row-card > .bi-arrow-right { color: var(--ce-muted); transition: transform .2s ease, color .2s ease; }
.tech-row-card:hover > .bi-arrow-right { color: var(--ce-primary); transform: translateX(3px); }

.tech-row-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--ce-radius);
    background: var(--ce-primary-subtle);
    color: var(--ce-primary);
}

.tech-intro { display: flex; flex-direction: column; gap: 1.25rem; }
.tech-intro img { width: 72px; height: 72px; object-fit: contain; }
@media (min-width: 576px) { .tech-intro { flex-direction: row; align-items: flex-start; } }

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
}

.plan-card--highlight { border: 2px solid var(--ce-primary); box-shadow: var(--ce-shadow); }

.plan-card__badge {
    position: absolute;
    top: -.8rem;
    right: 1.5rem;
    padding: .2rem .75rem;
    border-radius: 999px;
    background: var(--ce-primary);
    color: var(--ce-on-dark);
    font-size: .75rem;
    font-weight: 600;
}

.plan-card__title { font-size: 1.25rem; font-weight: 700; }
.plan-card__text { color: var(--ce-muted); }

.level-card { padding: 1.5rem; border: 1px solid var(--ce-border); border-radius: var(--ce-radius-lg); background: var(--ce-body-bg); text-align: center; }
.level-card--highlight { border-color: var(--ce-primary); background: var(--ce-primary-subtle); }
.level-card__title { margin-bottom: .25rem; font-size: 1.15rem; font-weight: 700; }
.level-card__experience { margin-bottom: .5rem; color: var(--ce-primary); font-weight: 600; }
.level-card__text { color: var(--ce-muted); font-size: .9rem; }
.level-card__price { margin: 0; padding-top: .75rem; border-top: 1px dashed var(--ce-border); font-size: .8125rem; color: var(--ce-muted); }
.level-card__price strong { color: var(--ce-heading-color); font-size: 1.05rem; }

.industry-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    height: 100%;
    padding: 1.5rem .75rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    color: var(--ce-heading-color);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.industry-tile i { color: var(--ce-primary); font-size: 1.75rem; }
.industry-tile:hover { transform: translateY(-3px); box-shadow: var(--ce-shadow); color: var(--ce-primary); }

.solution-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    height: 100%;
    padding: .9rem 1rem;
    border-radius: var(--ce-radius);
    background: var(--ce-section-alt-bg);
    font-weight: 500;
}
.solution-item i { color: var(--ce-primary); }

.about-cards { display: grid; gap: 1rem; }
.about-card { padding: 2rem; border-radius: var(--ce-radius-lg); background: var(--ce-section-alt-bg); }
.about-card i { color: var(--ce-primary); font-size: 2rem; }
.about-card h3 { margin: .75rem 0 .5rem; font-size: 1.25rem; font-weight: 700; }
.about-card p { margin: 0; color: var(--ce-muted); }
.about-card--accent { background: var(--ce-dark); color: var(--ce-on-dark-muted); }
.about-card--accent h3 { color: var(--ce-on-dark); }
.about-card--accent i { color: var(--ce-accent-on-dark); }
.about-card--accent p { color: var(--ce-on-dark-muted); }
@media (min-width: 576px) { .about-cards { grid-template-columns: 1fr 1fr; } }

.team-card { padding: 1.5rem 1rem; border-radius: var(--ce-radius-lg); background: var(--ce-body-bg); text-align: center; border: 1px solid var(--ce-border); }
.team-card__photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--ce-primary-subtle);
    color: var(--ce-primary);
    font-size: 2.5rem;
}
.team-card__name { margin-bottom: .15rem; font-size: 1.05rem; font-weight: 600; }
.team-card__role { margin-bottom: .5rem; color: var(--ce-muted); font-size: .875rem; }

.side-card { padding: 1.5rem; border: 1px solid var(--ce-border); border-radius: var(--ce-radius-lg); background: var(--ce-body-bg); }
.side-card--accent { border: 0; background: var(--ce-dark); color: var(--ce-on-dark-muted); }
.side-card--accent .side-card__title { color: var(--ce-on-dark); }
.side-card__title { margin-bottom: 1rem; font-size: 1.05rem; font-weight: 700; }

.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li + li { border-top: 1px solid var(--ce-border); }
.link-list a { display: block; padding: .6rem 0; color: var(--ce-body-color); text-decoration: none; }
.link-list a:hover { color: var(--ce-primary); }

/* 8. Stats, process, FAQ --------------------------------------------------------- */
.stats-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; text-align: center; }
.stat__value { color: var(--ce-heading-color); font-family: var(--ce-font-heading); font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1; }
.stat__label { margin-top: .5rem; color: var(--ce-muted); font-size: .9375rem; }
.stats-grid--dark .stat__value { color: var(--ce-on-dark); }
.stats-grid--dark .stat__label { color: var(--ce-on-dark-muted); }
.stats-grid__badge { position: absolute; top: -2rem; right: 0; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.process-steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }

.process-step {
    position: relative;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
}

.process-step__number { position: absolute; top: 1rem; right: 1.25rem; color: rgba(var(--ce-primary-rgb), .15); font-family: var(--ce-font-heading); font-size: 2.25rem; font-weight: 700; line-height: 1; }
.process-step__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 1rem; border-radius: 50%; background: var(--ce-primary); color: var(--ce-on-dark); font-size: 1.2rem; }
.process-step__title { margin-bottom: .4rem; font-size: 1.1rem; font-weight: 600; }
.process-step__text { margin: 0; color: var(--ce-muted); font-size: .9375rem; }

@media (min-width: 576px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
    .process-steps { grid-template-columns: repeat(3, 1fr); }
    .process-steps--3 { grid-template-columns: repeat(3, 1fr); }
}

.faq-accordion .accordion-item { margin-bottom: .75rem; border: 1px solid var(--ce-border); border-radius: var(--ce-radius-lg) !important; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 600; }
.faq-accordion .accordion-button:not(.collapsed) { box-shadow: none; }
.faq-accordion .accordion-body { color: var(--ce-muted); }

/* 9. Testimonials ------------------------------------------------------------------ */
.testimonial-slider__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.testimonial-slider__track::-webkit-scrollbar { display: none; }
.testimonial-slider__track > * { scroll-snap-align: start; }

@media (min-width: 768px) { .testimonial-slider__track { grid-auto-columns: calc(50% - .75rem); } }
@media (min-width: 1200px) { .testimonial-slider__track { grid-auto-columns: calc(33.333% - 1rem); } }

.testimonial-slider__controls { display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; }

.slider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ce-border);
    border-radius: 50%;
    background: var(--ce-body-bg);
    color: var(--ce-heading-color);
    transition: background-color .2s ease, color .2s ease;
}

.slider-btn:hover:not(:disabled) { border-color: var(--ce-primary); background: var(--ce-primary); color: var(--ce-on-dark); }
.slider-btn:disabled { opacity: .4; }

.testimonial-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 1.75rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
}

.testimonial-card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.stars { color: var(--ce-star); letter-spacing: .1rem; }
.testimonial-card__quote { flex: 1; margin-bottom: 1.5rem; color: var(--ce-heading-color); font-size: 1.025rem; line-height: 1.65; }
.testimonial-card__author { display: flex; align-items: center; gap: .85rem; }
.testimonial-card__author strong, .testimonial-card__author small { display: block; }
.testimonial-card__author small { color: var(--ce-muted); }

.quote-block { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-block blockquote { margin: 1rem 0; color: var(--ce-heading-color); font-family: var(--ce-font-heading); font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 500; line-height: 1.5; }
.quote-block figcaption { color: var(--ce-muted); }

/* 10. CTA band ------------------------------------------------------------------- */
.cta-band {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    padding: 2.5rem 1.75rem;
    border-radius: var(--ce-radius-lg);
    background: linear-gradient(135deg, var(--ce-dark), var(--ce-primary-active));
    color: var(--ce-on-dark-muted);
}

.cta-band::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ce-accent-rgb), .35), transparent 70%);
    pointer-events: none;
}

.cta-band__title { margin-bottom: .5rem; color: var(--ce-on-dark); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; }
.cta-band__text { margin: 0; max-width: 560px; }
.cta-band__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .75rem; }

@media (min-width: 992px) {
    .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 3.5rem; }
}

/* 11. Portfolio & case study ------------------------------------------------------- */
.project-card, .post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--ce-shadow); }

.project-card__thumb, .post-card__thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    font-size: 3.25rem;
    text-decoration: none;
}

.project-card__thumb .sample-badge { position: absolute; top: .85rem; left: .85rem; }
.post-card__thumb { aspect-ratio: 16 / 9; font-size: 2.75rem; }

.project-card__body, .post-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }

.project-card__meta, .post-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem 1rem;
    margin-bottom: .6rem;
    color: var(--ce-muted);
    font-size: .8125rem;
}

.post-card__category { color: var(--ce-primary); font-weight: 600; }

.project-card__title, .post-card__title { margin-bottom: .5rem; font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.project-card__title a, .post-card__title a { color: var(--ce-heading-color); text-decoration: none; }
.project-card__title a:hover, .post-card__title a:hover { color: var(--ce-primary); }
.project-card__text, .post-card__text { flex: 1; margin-bottom: 1rem; color: var(--ce-muted); font-size: .9375rem; }
.post-card__text { margin-bottom: 0; }

.portfolio-filters, .blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.portfolio-filters__group { display: flex; flex-wrap: wrap; gap: .5rem; }
.portfolio-filters__selects { display: flex; flex-wrap: wrap; gap: .5rem; }
.portfolio-filters__selects .form-select { width: auto; min-width: 180px; }
.blog-search { max-width: 320px; }

.filter-pill {
    padding: .45rem 1rem;
    border: 1px solid var(--ce-border);
    border-radius: 999px;
    background: var(--ce-body-bg);
    color: var(--ce-body-color);
    font-size: .875rem;
    font-weight: 500;
}

.filter-pill:hover { border-color: var(--ce-primary); color: var(--ce-primary); }
.filter-pill.active { border-color: var(--ce-primary); background: var(--ce-primary); color: var(--ce-on-dark); }

@media (max-width: 575.98px) {
    .portfolio-filters__selects, .portfolio-filters__selects .form-select, .blog-search { width: 100%; max-width: none; }
}

.case-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 21 / 8; min-height: 200px; border-radius: var(--ce-radius-lg); font-size: 5rem; }
.case-cover .sample-badge { position: absolute; top: 1rem; left: 1rem; }

.case-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    margin-top: -2.5rem;
    margin-inline: 1rem;
    position: relative;
    border-radius: var(--ce-radius-lg);
    background: var(--ce-border);
    box-shadow: var(--ce-shadow);
}

.case-facts > div { padding: 1rem 1.25rem; background: var(--ce-body-bg); }
.case-facts span { display: block; color: var(--ce-muted); font-size: .8125rem; }
@media (min-width: 768px) { .case-facts { grid-template-columns: repeat(4, 1fr); margin-inline: 3rem; } }

.case-block { margin-bottom: 2.5rem; }
.case-block h2 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-size: 1.4rem; font-weight: 700; }
.case-block h2 i { color: var(--ce-primary); }
.case-block p { color: var(--ce-muted); font-size: 1.05rem; }

.result-card { height: 100%; padding: 1.25rem; border-radius: var(--ce-radius-lg); background: var(--ce-primary-subtle); color: var(--ce-primary-active); font-weight: 700; text-align: center; }

.screenshot-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--ce-radius); font-size: 2rem; opacity: .85; }

/* 12. Forms ------------------------------------------------------------------------ */
.form-card {
    padding: 1.5rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    box-shadow: var(--ce-shadow);
}

.form-card__title { margin-bottom: .35rem; font-size: 1.35rem; font-weight: 700; }
.form-card__text { margin-bottom: 1.5rem; color: var(--ce-muted); }
.form-card .form-label { font-size: .9rem; font-weight: 500; }

.form-card__assurance { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--ce-muted); font-size: .8125rem; }
.form-card__assurance i { margin-right: .35rem; color: var(--ce-primary); }

@media (min-width: 768px) { .form-card { padding: 2rem; } }

.form-success { display: flex; gap: .75rem; align-items: flex-start; }
.form-success i { font-size: 1.5rem; line-height: 1; }

/* 13. Blog & careers --------------------------------------------------------------- */
.post-meta { display: flex; align-items: center; gap: .75rem; }
.post-meta strong, .post-meta small { display: block; }
.post-meta small { color: var(--ce-muted); }

.post-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 8; margin-bottom: 2rem; border-radius: var(--ce-radius-lg); font-size: 4rem; }

.toc { margin-bottom: 2rem; padding: 1.25rem 1.5rem; border-radius: var(--ce-radius-lg); background: var(--ce-section-alt-bg); }
.toc ol { margin: .5rem 0 0; padding-left: 1.25rem; }
.toc a { text-decoration: none; }

.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { margin: 2.25rem 0 1rem; font-size: 1.5rem; font-weight: 700; }
.prose h3 { margin: 1.75rem 0 .75rem; font-size: 1.2rem; font-weight: 600; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--ce-primary); border-radius: 0 var(--ce-radius) var(--ce-radius) 0; background: var(--ce-primary-subtle); color: var(--ce-heading-color); font-size: 1.15rem; font-weight: 500; }
.prose > :first-child { margin-top: 0; }
.prose table { width: 100%; margin: 1.5rem 0; border: 1px solid var(--ce-border); border-radius: var(--ce-radius); border-collapse: separate; border-spacing: 0; font-size: .975rem; line-height: 1.5; }
.prose th, .prose td { padding: .75rem 1rem; border-bottom: 1px solid var(--ce-border); text-align: left; vertical-align: top; }
.prose th { background: var(--ce-section-alt-bg); color: var(--ce-heading-color); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ce-heading-color); font-weight: 500; }
@media (max-width: 767.98px) { .prose table { display: block; overflow-x: auto; } }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ce-border); font-weight: 600; }
.share-bar a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--ce-border); border-radius: 50%; color: var(--ce-body-color); text-decoration: none; }
.share-bar a:hover { border-color: var(--ce-primary); background: var(--ce-primary); color: var(--ce-on-dark); }

.job-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.job-filters .form-select { width: auto; min-width: 200px; }

.job-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    color: var(--ce-body-color);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.job-card:hover { border-color: rgba(var(--ce-primary-rgb), .4); box-shadow: var(--ce-shadow-sm); color: var(--ce-body-color); }
.job-card__title { margin-bottom: .35rem; font-size: 1.2rem; font-weight: 600; }
.job-card__summary { margin-bottom: .75rem; color: var(--ce-muted); }
.job-card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; list-style: none; color: var(--ce-muted); font-size: .875rem; }
.job-card__meta i { margin-right: .35rem; color: var(--ce-primary); }
.job-card__meta--hero { color: var(--ce-body-color); font-size: .9375rem; }

@media (min-width: 768px) { .job-card { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (max-width: 575.98px) { .job-filters .form-select { width: 100%; } }

/* 14. Contact & quote wizard -------------------------------------------------------- */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    color: var(--ce-heading-color);
    text-decoration: none;
}

a.contact-card:hover { border-color: rgba(var(--ce-primary-rgb), .4); box-shadow: var(--ce-shadow-sm); color: var(--ce-heading-color); }
.contact-card small { display: block; color: var(--ce-muted); font-size: .8125rem; }
.contact-card strong { display: block; word-break: break-word; }

.contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ce-primary-subtle);
    color: var(--ce-primary);
    font-size: 1.25rem;
}

.contact-card__icon--whatsapp { background: var(--ce-whatsapp); color: var(--ce-on-dark); }

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 260px;
    border: 2px dashed var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    color: var(--ce-primary);
    font-weight: 600;
    text-decoration: none;
}

.map-placeholder i { font-size: 3rem; }

.wizard-steps { display: flex; justify-content: space-between; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: none; }

.wizard-steps__item {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    color: var(--ce-muted);
    font-size: .75rem;
    font-weight: 500;
    text-align: center;
}

.wizard-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 2px;
    background: var(--ce-border);
}

.wizard-steps__dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--ce-border);
    border-radius: 50%;
    background: var(--ce-body-bg);
    font-weight: 700;
}

.wizard-steps__item.is-active { color: var(--ce-primary); }
.wizard-steps__item.is-active .wizard-steps__dot { border-color: var(--ce-primary); color: var(--ce-primary); }
.wizard-steps__item.is-done .wizard-steps__dot { border-color: var(--ce-primary); background: var(--ce-primary); color: var(--ce-on-dark); }
.wizard-steps__item.is-done::after { background: var(--ce-primary); }

@media (max-width: 575.98px) { .wizard-steps__label { display: none; } }

.js .wizard-step { display: none; }
.wizard-step { min-width: 0; margin: 0 0 1.5rem; padding: 0; border: 0; }
.js .wizard-step { margin-bottom: 0; }
.js .wizard-step.is-active { display: block; animation: fade-in .25s ease; }
.wizard-step__title { margin-bottom: .25rem; font-size: 1.3rem; font-weight: 700; }
.wizard-step__hint { margin-bottom: 1.25rem; color: var(--ce-muted); }

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.choice-grid { display: grid; gap: .75rem; }
@media (min-width: 576px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .choice-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }

.choice-card__body {
    display: flex;
    align-items: center;
    gap: .75rem;
    height: 100%;
    padding: 1rem;
    border: 2px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    font-weight: 500;
    transition: border-color .15s ease, background-color .15s ease;
}

.choice-card__body i { color: var(--ce-primary); font-size: 1.25rem; }
.choice-card:hover .choice-card__body { border-color: rgba(var(--ce-primary-rgb), .45); }
.choice-card input:checked + .choice-card__body { border-color: var(--ce-primary); background: var(--ce-primary-subtle); }
.choice-card input:focus-visible + .choice-card__body { box-shadow: 0 0 0 .25rem rgba(var(--ce-primary-rgb), .25); }

.chip-select { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-select label { cursor: pointer; }
.chip-select input { position: absolute; opacity: 0; pointer-events: none; }
.chip-select span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .85rem;
    border: 1px solid var(--ce-border);
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 500;
}
.chip-select input:checked + span { border-color: var(--ce-primary); background: var(--ce-primary-subtle); color: var(--ce-primary-active); }
.chip-select input:focus-visible + span { box-shadow: 0 0 0 .2rem rgba(var(--ce-primary-rgb), .25); }

.wizard-error { margin-top: .75rem; color: var(--bs-danger); font-size: .875rem; }
.wizard-error:empty { display: none; }

.wizard-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ce-border);
}

.wizard-nav__count { margin-right: auto; color: var(--ce-muted); font-size: .875rem; }
.wizard-nav [data-wizard-prev]:not([hidden]) + .wizard-nav__count { margin-left: .25rem; }

.next-steps { margin: 0; padding-left: 1.25rem; }
.next-steps li { margin-bottom: .75rem; color: var(--ce-muted); }
.next-steps strong { color: var(--ce-heading-color); }

/* 15. Footer ------------------------------------------------------------------------- */
.site-footer { padding-top: 3.5rem; background: var(--ce-footer-bg); color: var(--ce-footer-color); font-size: .9375rem; }
.site-footer a { color: var(--ce-footer-color); text-decoration: none; }
.site-footer a:hover { color: var(--ce-footer-heading); }

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
    padding: 1.75rem;
    border: 1px solid var(--ce-on-dark-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-on-dark-surface);
}

.footer-newsletter h2 { color: var(--ce-footer-heading); }
.footer-newsletter__form { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-newsletter__form .form-control { flex: 1 1 220px; }
.footer-newsletter__form label.invalid-feedback, .footer-newsletter__form .invalid-feedback { flex-basis: 100%; order: 3; }

@media (min-width: 992px) {
    .footer-newsletter { flex-direction: row; align-items: center; justify-content: space-between; }
    .footer-newsletter__form { width: 460px; }
}

.site-footer__title { margin-bottom: 1rem; color: var(--ce-footer-heading); font-size: 1rem; font-weight: 600; }
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links li + li { margin-top: .6rem; }
.site-footer__button { color: var(--ce-footer-color); font-size: inherit; text-decoration: none; }
.site-footer__button:hover { color: var(--ce-footer-heading); }

.footer-contact { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .6rem; }
.footer-contact i { color: var(--ce-accent-on-dark); }

.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--ce-on-dark-border);
    border-radius: 50%;
}
.footer-social a:hover { border-color: var(--ce-primary); background: var(--ce-primary); }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin-top: 2.5rem;
    padding-block: 1.25rem;
    border-top: 1px solid var(--ce-footer-border);
    font-size: .875rem;
}

/* 16. Floating buttons & cookie banner ---------------------------------------------- */
.floating-actions {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1020;
    display: flex;
    flex-direction: column-reverse;
    gap: .6rem;
}

.floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: var(--ce-primary);
    box-shadow: var(--ce-shadow);
    color: var(--ce-on-dark);
    font-size: 1.35rem;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.floating-btn:hover { transform: scale(1.06); color: var(--ce-on-dark); }
.floating-btn--whatsapp { background: var(--ce-whatsapp); font-size: 1.6rem; }
.floating-btn--whatsapp:hover { background: var(--ce-whatsapp-hover); }
.floating-btn--call { background: var(--ce-dark); }

.back-to-top { width: 44px; height: 44px; align-self: center; font-size: 1.1rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 560px;
    padding: 1.25rem;
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    background: var(--ce-body-bg);
    box-shadow: 0 10px 40px rgba(var(--ce-dark-rgb), .18);
    font-size: .9rem;
}

.cookie-consent[hidden] { display: none; }
.cookie-consent__text { display: flex; gap: .75rem; }
.cookie-consent__text i { color: var(--ce-accent); font-size: 1.5rem; line-height: 1; }
.cookie-consent__actions { display: flex; justify-content: flex-end; gap: .5rem; }

@media (min-width: 768px) { .cookie-consent { right: auto; } }

/* 17. Scroll reveal (only when JS runs; respects reduced motion) ------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .logo-marquee__track, .hero-visual__badge { animation: none; }
}

/* 18. Error pages ------------------------------------------------------------------ */
.error-section { padding-block: 5rem; text-align: center; }
.error-section__code { color: var(--ce-primary); font-family: var(--ce-font-heading); font-size: clamp(4.5rem, 15vw, 7rem); font-weight: 700; line-height: 1; }

/* 19. Lead forms: sending state, thank-you page, booking page ---------------------- */
.form-card form[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-alert { margin-bottom: 1rem; }
.form-alert ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.thank-you__icon { color: var(--ce-primary); font-size: 4rem; line-height: 1; margin-bottom: 1rem; }
.booking-frame { background: var(--ce-body-bg); border: 1px solid var(--ce-border); border-radius: var(--ce-radius-lg); overflow: hidden; }
.booking-frame iframe { display: block; width: 100%; height: 760px; border: 0; }
@media (max-width: 575.98px) { .booking-frame iframe { height: 900px; } }
/* Without JavaScript the quote form shows every step and a plain submit button. */
html:not(.js) .wizard-steps, html:not(.js) .wizard-nav [data-wizard-next], html:not(.js) .wizard-nav__count { display: none; }
html:not(.js) .wizard-nav [data-wizard-submit][hidden] { display: inline-block !important; }

/* 20. Showcase: real images, filters loading, lightbox ------------------------------ */
.project-card__thumb { overflow: hidden; }
.project-card__thumb picture, .case-cover picture { position: absolute; inset: 0; }
.project-card__img, .case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-cover--image { overflow: hidden; aspect-ratio: 16 / 10; background: var(--ce-section-alt-bg); }
.case-cover--image img { object-position: center top; } /* screenshots: never crop the top of the screen */
.case-cover .sample-badge { z-index: 1; }

[data-portfolio-results] { transition: opacity .2s ease; }
[data-portfolio-results].is-loading { opacity: .5; pointer-events: none; }

.screenshot-thumb { display: block; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--ce-border); border-radius: var(--ce-radius); background: var(--ce-section-alt-bg); }
.screenshot-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.screenshot-thumb:hover img, .screenshot-thumb:focus-visible img { transform: scale(1.04); }

.lightbox .modal-content { position: relative; border: 0; background: transparent; }
.lightbox__figure { margin: 0; text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: 82vh; border-radius: var(--ce-radius); }
.lightbox__caption { margin-top: .5rem; color: var(--ce-on-dark); font-size: .9rem; }
.lightbox__close { position: absolute; top: -2.25rem; right: 0; opacity: 1; }
.lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(var(--ce-dark-rgb), .6); color: var(--ce-on-dark); font-size: 1.25rem;
}
.lightbox__nav--prev { left: .5rem; }
.lightbox__nav--next { right: .5rem; }

.client-logo img { display: block; width: auto; max-width: 160px; height: 36px; object-fit: contain; filter: grayscale(1); transition: filter .2s ease; }
.client-logo:hover img, a.client-logo:focus-visible img { filter: none; }
a.client-logo { text-decoration: none; }

.team-card__photo { overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__bio { margin: .5rem 0 0; color: var(--ce-muted); font-size: .875rem; }
.team-card__linkedin { display: inline-flex; margin-top: .5rem; color: var(--ce-muted); font-size: 1.1rem; }
.team-card__linkedin:hover { color: var(--ce-primary); }

.testimonial-card__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card__video { margin-left: auto; color: var(--ce-primary); font-size: 1.75rem; line-height: 1; }

/* 21. Blog, careers, newsletter ----------------------------------------------------- */
.post-card__thumb { overflow: hidden; }
.post-card__thumb picture, .post-cover picture { position: absolute; inset: 0; }
.post-cover { position: relative; overflow: hidden; }
.post-cover--image { aspect-ratio: 16 / 9; background: var(--ce-section-alt-bg); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .sample-badge, .post-card__thumb .sample-badge { position: absolute; top: .85rem; left: .85rem; z-index: 1; }
.toc .toc__sub { margin-left: 1rem; list-style-type: circle; }
.chip-list a { color: inherit; text-decoration: none; }
.chip-list a:hover { color: var(--ce-primary); }
.pagination { flex-wrap: wrap; justify-content: center; }

.newsletter-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.newsletter-form .form-control { flex: 1 1 200px; }
.newsletter-form__message { flex-basis: 100%; font-size: .875rem; }
.newsletter-form__message:empty { display: none; }
.footer-newsletter .newsletter-form__message { color: var(--ce-footer-color); }


/* ==========================================================================
   BRAND LAYER (docs/Codeagle-Brand-Kit): logo-tile icons, chevron accents and
   dark brand bands. Loaded after the base sections above and refines them.
   ========================================================================== */

/* Icon tiles look like the logo: blue gradient, white glyph, soft glow. */
.feature-card__icon, .plan-card__icon, .process-step__icon {
    border-radius: 14px;
    background: var(--ce-gradient-brand);
    color: var(--ce-on-dark);
    box-shadow: 0 10px 20px -8px rgba(var(--ce-primary-rgb), .55);
}
.icon-card__icon, .industry-tile i { color: var(--ce-primary); }
.icon-card__icon { border-radius: 12px; }

/* Cards lift and draw the blue → orange line on hover. */
.feature-card, .project-card, .post-card, .icon-card, .tech-card, .industry-tile { position: relative; }
.feature-card--link::after, .project-card::after, .post-card::after, .industry-tile::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--ce-gradient-line);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.feature-card--link:hover::after, .project-card:hover::after, .post-card:hover::after, .industry-tile:hover::after { transform: scaleX(1); }
.feature-card--link:hover, .project-card:hover, .post-card:hover { box-shadow: var(--ce-shadow-lg); }

.project-card__thumb { overflow: hidden; }
.project-card__thumb img, .post-card__thumb img { transition: transform .5s ease; }
.project-card:hover .project-card__thumb img, .post-card:hover .post-card__thumb img { transform: scale(1.04); }

/* Numbers band */
.stats-grid--dark .stat { position: relative; padding-inline: .5rem; }
.stats-grid--dark .stat__value { background: linear-gradient(180deg, var(--ce-on-dark) 40%, var(--ce-on-dark-muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 768px) {
    .stats-grid--dark .stat + .stat::before { content: ''; position: absolute; left: -.5rem; top: 15%; bottom: 15%; width: 1px; background: var(--ce-on-dark-border); }
}

/* Process: steps joined by the brand line on large screens. */
.process-step { transition: border-color .2s ease, box-shadow .2s ease; }
.process-step:hover { border-color: rgba(var(--ce-primary-rgb), .35); box-shadow: var(--ce-shadow); }
.process-step__number { color: rgba(var(--ce-accent-rgb), .22); }

/* CTA band: the logo tile's gradient with the chevron as a watermark. */
.cta-band {
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--ce-primary-bright-rgb), .55), transparent 50%),
        var(--ce-gradient-brand-diagonal);
    box-shadow: var(--ce-shadow-lg);
}
.cta-band::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--ce-on-dark-surface) 1px, transparent 1px), linear-gradient(90deg, var(--ce-on-dark-surface) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, var(--ce-dark)); mask-image: linear-gradient(90deg, transparent 30%, var(--ce-dark)); }
.cta-band::after {
    content: '\F285';
    top: auto;
    right: -1.5rem;
    bottom: -4.5rem;
    width: auto;
    height: auto;
    border-radius: 0;
    background: var(--ce-gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'bootstrap-icons';
    font-size: 16rem;
    line-height: 1;
    opacity: .22;
}
.cta-band__content { position: relative; z-index: 1; }

.topbar { background: var(--ce-darker); }
.brand__name { letter-spacing: -.01em; }

/* Footer: brand line on top. */
.site-footer { position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ce-gradient-line); }

/* Section labels on the alternate background stay readable. */
.section--alt .eyebrow { background: var(--ce-body-bg); }

/* Details printed inside the dark inner-page band (job facts, article author) stay readable. */
.page-hero .job-card__meta, .page-hero .job-card__meta li { color: var(--ce-on-dark-muted); }
.page-hero .job-card__meta i { color: var(--ce-accent-on-dark); }
.page-hero .post-meta strong { color: var(--ce-on-dark); }
.page-hero .post-meta small { color: var(--ce-on-dark-muted); }

/* Content straight after the dark band (forms, case-study cover, article) gets breathing room;
   these sections were built to sit tight under the old light band ("pt-0"). */
.page-hero + .section.pt-0 { padding-top: 2.5rem !important; }
@media (min-width: 992px) {
    .page-hero + .section.pt-0 { padding-top: 3.5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card--link::after, .project-card::after, .post-card::after, .industry-tile::after, .project-card__thumb img, .post-card__thumb img { transition: none; }
    .hero-showcase__caption, .hero-showcase__badge { animation: none; }
}
/* ==========================================================================
   PRELOADER (Settings > Appearance). Removes itself when the page is ready.
   ========================================================================== */
.preloader {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: var(--ce-body-bg);
    transition: opacity .35s ease, visibility .35s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader--bar { background: none; inset: 0 0 auto 0; height: 3px; display: block; }

/* Logo */
.preloader__logo { width: auto; max-width: 60vw; height: auto; max-height: 96px; object-fit: contain; animation: ce-pulse 1.2s ease-in-out infinite; }
@keyframes ce-pulse { 0%, 100% { opacity: .45; transform: scale(.98); } 50% { opacity: 1; transform: scale(1); } }

/* Spinner */
.preloader__spinner {
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    border: 3px solid var(--ce-border); border-top-color: var(--ce-primary);
    animation: ce-spin .7s linear infinite;
}
@keyframes ce-spin { to { transform: rotate(360deg); } }

/* Dots */
.preloader__dots { display: flex; gap: .5rem; }
.preloader__dots i {
    width: .7rem; height: .7rem; border-radius: 50%; background: var(--ce-primary);
    animation: ce-bounce 1s ease-in-out infinite;
}
.preloader__dots i:nth-child(2) { animation-delay: .15s; }
.preloader__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ce-bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-.45rem); opacity: 1; } }

/* Top bar */
.preloader__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; background: var(--ce-primary); animation: ce-progress 2.5s ease-out forwards; }
@keyframes ce-progress { 0% { transform: scaleX(0); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(.98); } }

/* Brand animation (docs/Codeagle-Brand-Kit/codeagle-preloader.html): the C draws
   itself, the orange chevron moves forward, a shine sweeps the tile. */
.preloader--brand {
    flex-direction: column; gap: 28px;
    background: radial-gradient(circle at 50% 45%, var(--ce-primary-subtle) 0%, var(--ce-body-bg) 60%);
    transition: opacity .6s ease, visibility .6s ease;
}
.preloader__tile { width: 120px; height: 120px; filter: drop-shadow(var(--ce-shadow-brand)); animation: ce-pl-pop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.preloader__tile svg { display: block; width: 100%; height: 100%; }
.preloader__tile .t1 { stop-color: var(--ce-primary-bright); }
.preloader__tile .t2 { stop-color: var(--ce-primary-hover); }
.preloader__tile .t3 { stop-color: var(--ce-dark); }
.preloader__tile .o1 { stop-color: var(--ce-accent-light); }
.preloader__tile .o2 { stop-color: var(--ce-accent-hover); }
.preloader__tile .wf { fill: var(--ce-on-dark); }
.preloader__tile .ws { stroke: var(--ce-on-dark); }
.preloader__tile .wst { stop-color: var(--ce-on-dark); }
.preloader__draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ce-pl-draw 1s .35s cubic-bezier(.65, 0, .35, 1) forwards; }
.preloader__chevron { opacity: 0; transform-box: fill-box; transform-origin: center; animation: ce-pl-chev-in .45s 1.15s ease-out forwards, ce-pl-chev 1.1s 1.6s ease-in-out infinite; }
.preloader__shine { transform: translateX(-700px); animation: ce-pl-shine 2.4s 1.2s ease-in-out infinite; }
.preloader__name {
    margin-top: -12px; font: 600 13px/1 var(--ce-font-heading); letter-spacing: .32em; text-transform: uppercase;
    color: var(--ce-brand-text); opacity: 0; animation: ce-pl-fade .6s .9s forwards;
}
.preloader__progress { position: relative; width: 140px; height: 4px; border-radius: 4px; overflow: hidden; background: var(--ce-border); }
.preloader__progress::after {
    content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; border-radius: 4px;
    background: var(--ce-gradient-line); animation: ce-pl-bar 1.2s ease-in-out infinite;
}
.preloader--brand.is-done .preloader__tile { transform: scale(1.15); transition: transform .6s ease; }
/* Later pages in the same visit: no intro, everything is drawn straight away. */
.preloader--quick .preloader__tile, .preloader--quick .preloader__name { animation: none; opacity: 1; }
.preloader--quick .preloader__draw { animation: none; stroke-dashoffset: 0; }
.preloader--quick .preloader__chevron { opacity: 1; animation: ce-pl-chev 1.1s ease-in-out infinite; }

@keyframes ce-pl-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ce-pl-draw { to { stroke-dashoffset: 0; } }
@keyframes ce-pl-chev-in { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes ce-pl-chev { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(22px); } }
@keyframes ce-pl-shine { 0% { transform: translateX(-700px); } 60%, 100% { transform: translateX(700px); } }
@keyframes ce-pl-bar { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes ce-pl-fade { to { opacity: 1; } }

/* The page underneath does not scroll while a full-screen preloader is shown (not the bar). */
html.is-loading body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .preloader__logo, .preloader__spinner, .preloader__dots i, .preloader__bar { animation-duration: .01ms; animation-iteration-count: 1; }
    .preloader--brand * { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
    .preloader--brand .preloader__chevron { opacity: 1; }
}

/* ==========================================================================
   Phone fields: country picker (vendor/intl-tel-input, loaded by js/phone-input.js)
   Colours of the library follow the theme tokens.
   ========================================================================== */
.iti {
    display: block;
    width: 100%;
    --iti-border-color: var(--ce-border);
    --iti-dropdown-bg: var(--ce-body-bg);
    --iti-hover-color: var(--ce-primary-subtle);
    --iti-arrow-color: var(--ce-muted);
    --iti-dialcode-color: var(--ce-muted);
    --iti-search-icon-color: var(--ce-muted);
}
.iti__dropdown-content { border-radius: var(--ce-radius); box-shadow: var(--ce-shadow); color: var(--ce-body-color); }
.iti__search-input { padding: .5rem .75rem; }
.iti__country { padding-top: .5rem; padding-bottom: .5rem; }
.modal .iti__dropdown-content { z-index: 1060; }

/* ==========================================================================
   "Starting from" prices (services / technologies) and the contact page map
   ========================================================================== */
.page-hero__price { margin: .75rem 0 0; color: var(--ce-muted); }
.page-hero__price strong { color: var(--ce-heading-color); font-size: 1.125rem; }
.feature-card__price { margin: .75rem 0 0; color: var(--ce-muted); font-size: .875rem; }
.feature-card__price strong { color: var(--ce-heading-color); }
.map-embed { overflow: hidden; border-radius: var(--ce-radius-lg); box-shadow: var(--ce-shadow); }
.map-embed iframe { border: 0; }
@media (max-width: 767.98px) {
    .map-embed.ratio-21x9 { --bs-aspect-ratio: 75%; }
}
