/* ==========================================================================
   CenterPro Mercury - Design System CSS
   Mercury dark aesthetic | Space Grotesk | Cobalt accent
   ========================================================================== */

/* --- Design Tokens --- */
:root {
    --bg: #171721;
    --surface: #1e1e2a;
    --ink: #ededf3;
    --accent: #5266eb;
    --accent-hover: #6478f0;
    --muted: #c3c3cc;
    --border: #70707d;
    --border-light: #e2e3ed;
    --button-bg: #272735;
    --button-hover: #2f2f40;
    --white: #ffffff;

    --font: 'Space Grotesk', system-ui, sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 32px;
    --radius-pill: 40px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 56px;
    --space-10: 72px;
    --space-11: 112px;
    --space-12: 128px;

    --max-width: 1200px;
    --section-gap: 72px;
}

/* --- Reset --- */
:where(*, *::before, *::after) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:where(html) {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip; 
}

:where(body) {
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:where(img, svg, video) {
    display: block;
    max-width: 100%;
    height: auto;
}

:where(a) {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

:where(a:hover) {
    color: var(--accent-hover);
}

:where(h1, h2, h3, h4, h5, h6) {
    color: var(--ink);
    font-weight: 480;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

:where(ul, ol) {
    list-style: none;
}

/* --- Container --- */
.cpm-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-7);
}

/* --- Typography --- */
.cpm-display {
    font-size: clamp(40px, 5vw, 65px);
    font-weight: 480;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.cpm-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 480;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.cpm-accent {
    color: var(--accent);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.cpm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-4) 0;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, padding 0.3s ease, border-color 0.4s ease;
}

.cpm-header.scrolled {
    padding: var(--space-3) 0;
    background-color: rgba(23, 23, 33, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(112, 112, 125, 0.15);
}

/* On inner pages (no hero behind header) — always show solid background */
body:not(.home) .cpm-header {
    background-color: rgba(23, 23, 33, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(112, 112, 125, 0.15);
}
body:not(.home) .cpm-header:hover {
    background-color: rgba(23, 23, 33, 0.97);
}

/* Header hover: dark bg when transparent (shows menus) */
.cpm-header:hover {
    background-color: rgba(23, 23, 33, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.cpm-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 32px;
    box-sizing: border-box;
}

/* Header container spans full viewport width */
.cpm-header .cpm-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Logo */
.cpm-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    justify-self: start;
}

.cpm-logo__text {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.cpm-logo img,
.cpm-logo__img {
    max-height: 56px;
    width: auto;
    display: block;
    transition: filter 0.4s ease;
}

/* Logo turns white on dark header (scroll or hover) */
.cpm-header.scrolled .cpm-logo__img,
.cpm-header:hover .cpm-logo__img {
    filter: brightness(0) invert(1);
}

/* Navigation */
.cpm-nav {
    display: flex;
    justify-content: center;
}

.cpm-nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.cpm-nav-item {
    position: relative;
}

.cpm-nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--radius-xl);
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease;
    white-space: nowrap;
}

.cpm-nav-link:hover,
.cpm-nav-item.active > .cpm-nav-link {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
}

.cpm-chevron {
    transition: transform 0.3s ease;
}

.cpm-nav-item.has-children:hover .cpm-chevron {
    transform: rotate(180deg);
}

/* Mega Menu */
.cpm-nav-item.has-children {
    position: static;
}

.cpm-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 2.5rem 4rem;
    background: rgba(30, 30, 42, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 3rem;
}

.cpm-nav-item.has-children:hover > .cpm-submenu,
.cpm-nav-item.has-children.submenu-open > .cpm-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header actions */
.cpm-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    justify-self: end;
}

/* Mobile toggle */
.cpm-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.cpm-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.cpm-hamburger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.cpm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 420;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    padding: 12px 20px;
    white-space: nowrap;
    height: 40px;
}

.cpm-btn--white {
    background: #ffffff;
    color: #171721;
}
.cpm-btn--white:hover {
    background: #f0eee8;
    color: #171721;
}

.cpm-btn--secondary {
    background: var(--button-bg);
    color: var(--ink);
}

.cpm-btn--secondary:hover {
    background: var(--button-hover);
    color: var(--ink);
}

.cpm-btn--ghost {
    background: rgba(156, 180, 232, 0.2);
    color: var(--ink);
    border: none;
    border-radius: var(--radius-pill);
}

.cpm-btn--ghost:hover {
    background: rgba(156, 180, 232, 0.35);
    color: var(--white);
}

.cpm-btn--lg {
    padding: 16px 32px;
    font-size: 16px;
    height: 48px;
}

/* ==========================================================================
   HERO SECTION (Video Scroll-Scrub)
   ========================================================================== */

.cpm-hero-wrap {
    position: relative;
    width: 100%;
}

.cpm-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.cpm-hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    will-change: transform;
}

.cpm-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    padding-top: 16vh;
}

.cpm-hero__bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(23,23,33,0) 0%, #171721 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    will-change: opacity, height;
}

.cpm-hero__content {
    text-align: center;
    max-width: 860px;
    padding: 0 var(--space-6);
    pointer-events: auto;
    will-change: opacity, transform;
}

.cpm-hero__title {
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.cpm-hero__title-main {
    display: block;
    font-size: clamp(44px, 6vw, 84px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.0;
}

.cpm-hero__title-sub {
    display: block;
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-top: var(--space-4);
    color: rgba(255, 255, 255, 0.72);
}

.cpm-hero__title-line {
    display: block;
}

.cpm-hero__subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.cpm-hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ==========================================================================
   SHOWCASE SECTION (Mercury-style full-screen)
   ========================================================================== */
.cpm-showcase {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg);
    overflow: hidden;
}

.cpm-showcase__inner {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

.cpm-showcase__left {
    width: 45%;
    padding-left: max(32px, calc((100% - var(--max-width)) / 2 + 32px));
    padding-right: var(--space-8);
    flex-shrink: 0;
}

.cpm-showcase__title {
    font-size: clamp(24px, 2.8vw, 42px);
    font-weight: 480;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: var(--space-9);
}

.cpm-showcase__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--space-8);
}

.cpm-showcase__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-5) 0;
    border-top: 1px solid rgba(112, 112, 125, 0.15);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.cpm-showcase__item:last-child {
    border-bottom: 1px solid rgba(112, 112, 125, 0.15);
}

.cpm-showcase__item:not(.is-active) {
    opacity: 0.5;
}

.cpm-showcase__item:not(.is-active):hover {
    opacity: 0.75;
}

.cpm-showcase__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--border);
    margin-top: 6px;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.cpm-showcase__item.is-active .cpm-showcase__dot {
    background: var(--accent);
    border-color: var(--accent);
}

.cpm-showcase__item-content {
    flex: 1;
    min-width: 0;
}

.cpm-showcase__item-title {
    font-size: 16px;
    font-weight: 480;
    color: var(--ink);
    margin-bottom: var(--space-1);
    line-height: 1.3;
}

.cpm-showcase__item-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.cpm-showcase__item.is-active .cpm-showcase__item-desc {
    max-height: 120px;
    opacity: 1;
    margin-top: var(--space-2);
}

.cpm-showcase__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 16px;
    font-weight: 420;
    color: var(--ink);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.cpm-showcase__link::after {
    content: "\2192";
    transition: transform 0.3s ease;
}

.cpm-showcase__link:hover::after {
    transform: translateX(4px);
}

/* Showcase right side - image flush to edge */
.cpm-showcase__right {
    position: absolute;
    right: 0;
    top: 10%;
    width: 50%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cpm-showcase__img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cpm-showcase__img {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 110%;
    max-width: none;
    height: auto;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.cpm-showcase__img-fade {
    position: absolute;
    inset: -10%;
    z-index: 2;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse 65% 65% at 50% 50%,
            transparent 15%,
            rgba(23, 23, 33, 0.15) 25%,
            rgba(23, 23, 33, 0.40) 38%,
            rgba(23, 23, 33, 0.70) 52%,
            rgba(23, 23, 33, 0.90) 65%,
            #171721 80%
        );
}
/* ==========================================================================
   FEATURE SECTIONS
   ========================================================================== */
.cpm-feature {
    padding: var(--section-gap) 0;
}

.cpm-feature__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.cpm-feature--reverse .cpm-feature__grid {
    direction: rtl;
}

.cpm-feature--reverse .cpm-feature__grid > * {
    direction: ltr;
}

.cpm-feature__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 480;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: var(--space-5);
}

.cpm-feature__desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: var(--space-7);
    max-width: 520px;
}

/* Feature cards */
.cpm-feature__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
    transition: border-color 0.3s ease;
}

.cpm-feature__card:hover {
    border-color: var(--accent);
}

.cpm-feature__card-icon {
    margin-bottom: var(--space-5);
    color: var(--accent);
}

.cpm-feature__card-number {
    display: block;
    font-size: 48px;
    font-weight: 480;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: var(--space-2);
}

.cpm-feature__card-label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cpm-cta {
    padding: var(--space-12) 0;
}

.cpm-cta__inner {
    text-align: center;
    background: var(--surface);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-10) var(--space-7);
}

.cpm-cta__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 480;
    color: var(--ink);
    margin-bottom: var(--space-4);
}

.cpm-cta__desc {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: var(--space-8);
}

.cpm-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.cpm-page-hero {
    padding: calc(80px + var(--space-10)) 0 var(--space-10);
    text-align: center;
}

.cpm-page-hero__title {
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 480;
    color: var(--ink);
    line-height: 1.1;
}

/* ==========================================================================
   PAGE CONTENT
   ========================================================================== */
.cpm-page {
    padding: var(--space-7) 0 var(--space-12);
}

.cpm-article__content {
    max-width: 800px;
    margin: 0 auto;
}

/* Headings */
.cpm-article__content h1 {
    font-size: clamp(28px, 3.5vw, 40px);
    margin-top: var(--space-9);
    margin-bottom: var(--space-5);
}

.cpm-article__content h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.cpm-article__content h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
}

.cpm-article__content h4 {
    font-size: 18px;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.cpm-article__content h1:first-child,
.cpm-article__content h2:first-child,
.cpm-article__content h3:first-child,
.cpm-article__content h4:first-child {
    margin-top: 0;
}

/* Paragraphs */
.cpm-article__content p {
    margin-bottom: var(--space-5);
    line-height: 1.75;
    color: var(--muted);
}

/* Links */
.cpm-article__content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.cpm-article__content a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

/* Lists */
.cpm-article__content ul,
.cpm-article__content ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-7);
}

.cpm-article__content ul {
    list-style: none;
}

.cpm-article__content ul > li {
    position: relative;
    padding-left: var(--space-5);
}

.cpm-article__content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.cpm-article__content ol {
    list-style: decimal;
    color: var(--accent);
}

.cpm-article__content ol > li {
    padding-left: var(--space-2);
}

.cpm-article__content ol > li::marker {
    color: var(--accent);
    font-weight: 530;
}

.cpm-article__content li {
    margin-bottom: var(--space-3);
    line-height: 1.65;
    color: var(--muted);
}

.cpm-article__content li a {
    color: var(--accent);
}

/* Strong / Bold */
.cpm-article__content strong,
.cpm-article__content b {
    color: var(--ink);
    font-weight: 530;
}

/* Tables */
.cpm-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-7) 0;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cpm-article__content thead tr,
.cpm-article__content tr:first-child {
    background: var(--surface);
}

.cpm-article__content th,
.cpm-article__content td {
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(112, 112, 125, 0.2);
    text-align: left;
    vertical-align: top;
}

.cpm-article__content th,
.cpm-article__content td strong {
    color: var(--ink);
    font-weight: 530;
}

.cpm-article__content td {
    color: var(--muted);
}

.cpm-article__content tr:nth-child(even) {
    background: rgba(30, 30, 42, 0.5);
}

/* Images */
.cpm-article__content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-6) 0;
    border: 1px solid var(--border);
}

.cpm-article__content a > img {
    transition: opacity 0.3s ease;
}

.cpm-article__content a:hover > img {
    opacity: 0.85;
}

/* Iframes (maps, videos) */
.cpm-article__content iframe {
    width: 100%;
    min-height: 350px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: var(--space-7) 0;
}

/* SVG cleanup (hide Elementor decorative dots) */
.cpm-article__content > svg {
    display: none;
}

/* Blockquote */
.cpm-article__content blockquote {
    border-left: 3px solid var(--accent);
    padding: var(--space-5) var(--space-6);
    margin: var(--space-7) 0;
    background: var(--surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--ink);
    font-style: italic;
}

/* HR */
.cpm-article__content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-8) 0;
}

/* Document download links */
.cpm-article__content a[href$=".pdf"],
.cpm-article__content a[href$=".doc"],
.cpm-article__content a[href$=".docx"] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-weight: 500;
    transition: border-color 0.3s ease;
}

.cpm-article__content a[href$=".pdf"]:hover,
.cpm-article__content a[href$=".doc"]:hover,
.cpm-article__content a[href$=".docx"]:hover {
    border-color: var(--accent);
}

.cpm-article__content a[href$=".pdf"]::before {
    content: "\1F4C4";
    font-size: 18px;
}

/* Table responsive wrapper */
@media (max-width: 768px) {
    .cpm-article__content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cpm-article__content iframe {
        min-height: 250px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* --- Pre-footer CTA --- */
.cpm-footer-cta {
    background: #1c1c28;
    border-top: 1px solid rgba(240, 238, 232, 0.07);
    padding: clamp(48px, 6vw, 72px) 0;
}
.cpm-footer-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}
.cpm-footer-cta__title {
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #F0EEE8;
    margin-bottom: 8px;
}
.cpm-footer-cta__sub {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(240, 238, 232, 0.45);
    max-width: 400px;
}
.cpm-footer-cta__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

/* Ghost button variant */
.cpm-btn--ghost {
    background: transparent;
    color: rgba(240, 238, 232, 0.65);
    border: 1px solid rgba(240, 238, 232, 0.15);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cpm-btn--ghost:hover {
    color: #F0EEE8;
    border-color: rgba(240, 238, 232, 0.35);
}

/* --- Footer --- */
.cpm-footer {
    padding: clamp(48px, 6vw, 72px) 0 clamp(24px, 3vw, 40px);
    border-top: 1px solid rgba(240, 238, 232, 0.07);
    background: #171721;
}
.cpm-footer__top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: var(--space-7);
    padding-bottom: clamp(40px, 5vw, 56px);
    border-bottom: 1px solid rgba(240, 238, 232, 0.07);
    margin-bottom: 28px;
}

/* Logo */
.cpm-footer__logo-link {
    display: inline-block;
    margin-bottom: 16px;
}
.cpm-footer__logo-img {
    height: 144px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Tagline */
.cpm-footer__tagline {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(240, 238, 232, 0.38);
    max-width: 250px;
    margin-bottom: 24px;
}

/* Contact list */
.cpm-footer__contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cpm-footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(240, 238, 232, 0.50);
}
.cpm-footer__contact-list svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: rgba(82, 102, 235, 0.75);
}
.cpm-footer__contact-list a {
    color: rgba(240, 238, 232, 0.50);
    text-decoration: none;
    transition: color 0.2s ease;
}
.cpm-footer__contact-list a:hover {
    color: #5266eb;
}

/* Nav column headings */
.cpm-footer__heading {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240, 238, 232, 0.28);
    margin-bottom: 20px;
}

/* Nav links */
.cpm-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cpm-footer__links a {
    font-size: 14px;
    font-weight: 400;
    color: rgba(240, 238, 232, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}
.cpm-footer__links a:hover {
    color: #F0EEE8;
}

/* Bottom bar */
.cpm-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cpm-footer__bottom p {
    font-size: 12px;
    color: rgba(240, 238, 232, 0.22);
}
.cpm-footer__bottom a {
    font-size: 12px;
    color: rgba(240, 238, 232, 0.35);
    text-decoration: none;
    transition: color 0.2s ease;
}
.cpm-footer__bottom a:hover {
    color: #5266eb;
}

/* Footer responsive */
@media (max-width: 1100px) {
    .cpm-footer__top {
        grid-template-columns: 1.6fr 1fr 1fr;
        gap: var(--space-6);
    }
    .cpm-footer__brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: var(--space-6);
        padding-bottom: var(--space-6);
        border-bottom: 1px solid rgba(240, 238, 232, 0.07);
        margin-bottom: 0;
    }
    .cpm-footer__tagline {
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .cpm-footer-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-5);
    }
    .cpm-footer__top {
        grid-template-columns: 1fr 1fr;
    }
    .cpm-footer__brand {
            grid-column: 1 / -1;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
    }
}
@media (max-width: 480px) {
    .cpm-footer__top {
        grid-template-columns: 1fr;
    }
    .cpm-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cpm-footer-cta__actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
}

.js [data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
    .cpm-hero__placeholder {
        animation: none;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .cpm-feature__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    .cpm-feature--reverse .cpm-feature__grid {
        direction: ltr;
    }
    .cpm-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    /* Showcase responsive */
    .cpm-showcase__inner {
        flex-direction: column;
        min-height: auto;
        padding: var(--space-10) 0;
    }
    .cpm-showcase {
        min-height: auto;
    }
    .cpm-showcase__left {
        width: 100%;
        padding-left: 10%;
        padding-right: 10%;
        margin-bottom: var(--space-8);
    }
    .cpm-showcase__right {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .cpm-container {
        width: 90%;
    }
    .cpm-header__inner {
        width: 100%;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .cpm-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--surface);
        border-left: 1px solid var(--border);
        padding: 80px var(--space-6) var(--space-6);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    .cpm-nav.open {
        right: 0;
    }
    .cpm-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .cpm-nav-link {
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-md);
    }
    .cpm-submenu {
        position: static;
        width: 100%;
        margin-left: 0;
        padding: 0 0 0 var(--space-4);
        border: none;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }
    .cpm-nav-item.submenu-open > .cpm-submenu {
        display: block;
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }
    .cpm-dropdown-toggle[aria-expanded="true"] .cpm-chevron {
        transform: rotate(180deg);
    }
    .cpm-mobile-toggle {
        display: block;
    }
    .cpm-header__actions .cpm-btn {
        display: none;
    }
    .cpm-header:hover {
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .cpm-header.scrolled:hover {
        background-color: rgba(23, 23, 33, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .cpm-header:hover .cpm-logo__img {
        filter: none;
    }
    .cpm-header.scrolled:hover .cpm-logo__img {
        filter: brightness(0) invert(1);
    }
    .cpm-submenu__col {
        padding: 8px 0;
    }
    .cpm-submenu__col + .cpm-submenu__col {
        border-top: 1px solid rgba(112, 112, 125, 0.15);
        margin-top: 4px;
        padding-top: 12px;
    }
    .cpm-submenu__heading {
        font-size: 12px;
        margin-bottom: 8px;
        padding-bottom: 0;
        border-bottom: none;
    }
    .cpm-submenu__links a {
        font-size: 13px;
        padding: 4px 0;
    }
    .cpm-hero__title-main {
        font-size: clamp(32px, 9vw, 48px);
    }
    .cpm-hero__title-sub {
        font-size: clamp(16px, 5vw, 22px);
    }
    .cpm-hero__cta {
        flex-direction: column;
    }
    .cpm-hero__cta .cpm-btn {
        width: 100%;
    }
    .cpm-footer__top {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }
    .cpm-cta__inner {
        padding: var(--space-8) var(--space-5);
    }
    /* Showcase mobile */
    .cpm-showcase__left {
        padding-left: 5%;
        padding-right: 5%;
    }
    .cpm-showcase__title {
        font-size: clamp(24px, 6vw, 32px);
    }
        .cpm-showcase__right {
        display: none;
    }
    .cpm-showcase__item.is-active .cpm-showcase__item-desc {
        max-height: 300px;
    }
    .cpm-eu__img-col {
        display: none !important;
    }
    .cpm-eu__content {
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* ==========================================================================
   WP ADMIN BAR FIX
   ========================================================================== */
.admin-bar .cpm-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .cpm-header {
        top: 46px;
    }
}

/* --- Mega Menu Column Styles --- */
.cpm-submenu__col {
    min-width: 0;
}
.cpm-submenu__heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.cpm-submenu__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cpm-submenu__links a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: block;
    line-height: 1.4;
}
.cpm-submenu__links a:hover {
    color: var(--ink);
    padding-left: 6px;
}

/* ==========================================================================
   CENTERPRO PRELOADER
   ========================================================================== */

.cpm-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #171721;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;

    pointer-events: all;
}

.cpm-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cpm-preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;

    user-select: none;
}

.cpm-preloader__mark {
    width: 64px;
    height: 72px;
}

.cpm-preloader__mark svg {
    display: block;
    width: 64px;
    height: 72px;
    max-width: none;
}

.cpm-preloader__s {
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;

    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.cpm-preloader__s--outer {
    stroke-width: 4.5;
    stroke-opacity: 0.45;

    animation:
        cpm-preloader-draw-outer
        3s cubic-bezier(0.55, 0, 0.45, 1)
        infinite;
}

.cpm-preloader__s--mid {
    stroke-width: 5.5;
    stroke-opacity: 0.72;

    animation:
        cpm-preloader-draw-mid
        3s cubic-bezier(0.55, 0, 0.45, 1)
        infinite;
}

.cpm-preloader__s--inner {
    stroke-width: 7;
    stroke-opacity: 1;

    animation:
        cpm-preloader-draw-inner
        3s cubic-bezier(0.55, 0, 0.45, 1)
        infinite;
}


/* --- SVG draw / erase ----------------------------------------------- */

@keyframes cpm-preloader-draw-outer {
    0% {
        stroke-dashoffset: 1;
    }

    46.67% {
        stroke-dashoffset: 0;
    }

    63.33% {
        stroke-dashoffset: 0;
    }

    90% {
        stroke-dashoffset: -1;
    }

    100% {
        stroke-dashoffset: -1;
    }
}

@keyframes cpm-preloader-draw-mid {
    0% {
        stroke-dashoffset: 1;
    }

    5% {
        stroke-dashoffset: 1;
    }

    50% {
        stroke-dashoffset: 0;
    }

    63.33% {
        stroke-dashoffset: 0;
    }

    93% {
        stroke-dashoffset: -1;
    }

    100% {
        stroke-dashoffset: -1;
    }
}

@keyframes cpm-preloader-draw-inner {
    0% {
        stroke-dashoffset: 1;
    }

    10% {
        stroke-dashoffset: 1;
    }

    53.33% {
        stroke-dashoffset: 0;
    }

    63.33% {
        stroke-dashoffset: 0;
    }

    96% {
        stroke-dashoffset: -1;
    }

    100% {
        stroke-dashoffset: -1;
    }
}


/* --- Wordmark ------------------------------------------------------- */

.cpm-preloader__wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;

    animation:
        cpm-preloader-wordmark
        3s ease-in-out
        infinite;
}

.cpm-preloader__wordmark-top {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    line-height: 1;
    color: #ffffff;
    text-transform: uppercase;
}

.cpm-preloader__wordmark-bottom {
    font-family: var(--font);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.42em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

@keyframes cpm-preloader-wordmark {
    0% {
        opacity: 0.25;
    }

    46.67% {
        opacity: 0.65;
    }

    63.33% {
        opacity: 0.65;
    }

    90% {
        opacity: 0.25;
    }

    100% {
        opacity: 0.25;
    }
}


/* --- Reduced motion ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .cpm-preloader__s,
    .cpm-preloader__wordmark {
        animation: none;
    }

    .cpm-preloader__s {
        stroke-dashoffset: 0;
    }

    .cpm-preloader__wordmark {
        opacity: 1;
    }
}

/* ── CenterPRO Trust + Features Section ── */
.cpm-trust {
  padding-block: clamp(80px, 10vw, 140px);
  border-top: 1px solid rgba(240,238,232,0.10);
}
.cpm-trust__headline {
  font-size: clamp(28px, 3.8vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #F0EEE8;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(56px, 8vw, 96px);
  text-wrap: balance;
}
.cpm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cpm-stat {
  padding-inline: clamp(24px, 3vw, 48px);
  border-left: 1px solid rgba(240,238,232,0.10);
}
.cpm-stat:first-child { border-left: none; padding-left: 0; }
.cpm-stat__num {
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #F0EEE8;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
  white-space: nowrap;
}
.cpm-stat__label {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  color: rgba(240,238,232,0.50);
  line-height: 1.55;
  max-width: 180px;
}
.cpm-protect {
  padding-block: clamp(80px, 10vw, 140px);
  border-top: 1px solid rgba(240,238,232,0.10);
}
.cpm-protect__heading {
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #F0EEE8;
  text-align: left;
  max-width: 640px;
  margin-bottom: clamp(48px, 7vw, 80px);
  text-wrap: balance;
}
.cpm-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.cpm-feat {
  display: flex;
  flex-direction: column;
}
.cpm-feat__card {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #1C1D2C;
  border: 1px solid rgba(240,238,232,0.06);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: clamp(20px, 2.5vw, 28px);
  flex-shrink: 0;
}
.cpm-feat__card svg { width: 100%; height: 100%; display: block; }
.cpm-feat__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,238,232,0.16);
  margin-bottom: 8px;
}
.cpm-feat__title {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #F0EEE8;
  margin-bottom: 10px;
}
.cpm-feat__text {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(240,238,232,0.50);
}
@media (max-width: 860px) {
  .cpm-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(32px, 5vw, 56px) 0;
  }
  .cpm-stat:nth-child(3) { border-left: none; padding-left: 0; }
  .cpm-stat:nth-child(n+3) { padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid rgba(240,238,232,0.10); }
  .cpm-feats { grid-template-columns: 1fr; gap: clamp(40px, 6vw, 64px); }
  .cpm-feat__card { aspect-ratio: 16 / 9; }
}


/* ==========================================================================
   EU Programs Section
   ========================================================================== */

.cpm-eu {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(240,238,232,0.10);
    display: flex;
    align-items: stretch;
}
.cpm-eu__inner {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
}
.cpm-eu__img-col {
    position: relative;
    flex-shrink: 0;
    width: 50%;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}
.cpm-eu__img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.cpm-eu__img {
    position: absolute;
    left: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 110%;
    max-width: none;
    height: auto;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.cpm-eu__img-fade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to left,
        #171721 0%,
        rgba(23,23,33,0.95) 20%,
        rgba(23,23,33,0.85) 35%,
        rgba(23,23,33,0.55) 50%,
        rgba(23,23,33,0.20) 65%,
        transparent 75%
    );
}
.cpm-eu__content {
    width: 50%;
    position: relative;
    z-index: 1;
    padding-right: max(32px, calc((100% - var(--max-width)) / 2 + 32px));
    padding-left: clamp(40px, 5vw, 72px);
    padding-block: clamp(80px, 10vw, 140px);
}
.cpm-eu__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240,238,232,0.40);
    margin-bottom: 16px;
}
.cpm-eu__title {
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #F0EEE8;
    margin-bottom: 20px;
    text-wrap: balance;
}
.cpm-eu__lead {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.7;
    color: rgba(240,238,232,0.55);
    margin-bottom: clamp(32px, 4vw, 48px);
    max-width: 460px;
}
.cpm-eu__projects {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cpm-eu__project {
    padding: 20px 24px;
    border: 1px solid rgba(240,238,232,0.07);
    border-left: 2px solid #5266eb;
    border-radius: 0 8px 8px 0;
    background: rgba(255,255,255,0.02);
}
.cpm-eu__project-num {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: rgba(240,238,232,0.30);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.cpm-eu__project-desc {
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.65;
    color: rgba(240,238,232,0.60);
}
@media (max-width: 1024px) {
    .cpm-eu__inner {
        flex-direction: column;
        min-height: auto;
        justify-content: flex-start;
        padding: var(--space-10) 0;
    }
    .cpm-eu { min-height: auto; }
    .cpm-eu__img-col {
        position: relative;
        top: auto;
        width: 100%;
        height: 360px;
        margin-bottom: var(--space-8);
    }
    .cpm-eu__img { left: 0; width: 100%; border-radius: 0; }
    .cpm-eu__content {
        width: 100%;
        padding-left: 10%;
        padding-right: 10%;
    }
}

/* ---------- Elementor page wrapper (page.php full-width path) ---------- */

.cpm-elementor-page {
    width: 100%;
    min-height: 100vh;
}

/* ==========================================================================
   Elementor Inner Pages — Mercury Override
   Applies ONLY to Elementor-built pages (body.elementor-page)
   excluding the homepage (body.home) and all custom .cpm-* sections.
   ========================================================================== */

body.elementor-page:not(.home) {
    background-color: #171721 !important;
    font-family: 'Space Grotesk', system-ui, sans-serif !important;
    color: #F0EEE8 !important;
}

/* ---------- Page wrapper & sections ---------- */

body.elementor-page:not(.home) .elementor-section,
body.elementor-page:not(.home) .e-con,
body.elementor-page:not(.home) .e-con-inner,
body.elementor-page:not(.home) .elementor-container,
body.elementor-page:not(.home) .elementor-element,
body.elementor-page:not(.home) .elementor-widget,
body.elementor-page:not(.home) .elementor-widget-container {
    background-color: transparent !important;
    border-color: rgba(240, 238, 232, 0.10) !important;
}

/* First content section gets breathing room below the fixed header */
body.elementor-page:not(.home) .elementor-section:first-of-type,
body.elementor-page:not(.home) .e-con:first-of-type {
    padding-top: clamp(80px, 10vw, 120px) !important;
}

/* Hairline dividers between sections — Mercury signature */
body.elementor-page:not(.home) .elementor-section + .elementor-section,
body.elementor-page:not(.home) .e-con + .e-con {
    border-top: 1px solid rgba(240, 238, 232, 0.08);
}

/* ---------- Typography ---------- */

body.elementor-page:not(.home) .elementor *,
body.elementor-page:not(.home) .elementor p,
body.elementor-page:not(.home) .elementor li,
body.elementor-page:not(.home) .elementor span,
body.elementor-page:not(.home) .elementor td,
body.elementor-page:not(.home) .elementor th {
    font-family: 'Space Grotesk', system-ui, sans-serif !important;
    color: rgba(240, 238, 232, 0.70) !important;
}

body.elementor-page:not(.home) .elementor h1,
body.elementor-page:not(.home) .elementor h2,
body.elementor-page:not(.home) .elementor h3,
body.elementor-page:not(.home) .elementor h4,
body.elementor-page:not(.home) .elementor h5,
body.elementor-page:not(.home) .elementor h6 {
    font-family: 'Space Grotesk', system-ui, sans-serif !important;
    color: #F0EEE8 !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

body.elementor-page:not(.home) .elementor h1 { font-size: clamp(32px, 5vw, 64px); font-weight: 700; }
body.elementor-page:not(.home) .elementor h2 { font-size: clamp(24px, 3.5vw, 44px); font-weight: 700; }
body.elementor-page:not(.home) .elementor h3 { font-size: clamp(18px, 2vw, 26px); font-weight: 600; }

/* ---------- Links ---------- */

body.elementor-page:not(.home) .elementor a {
    color: #5266eb !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
body.elementor-page:not(.home) .elementor a:hover {
    color: #6478f0 !important;
}

/* ---------- Images ---------- */

body.elementor-page:not(.home) .elementor img {
    border-radius: 8px;
}

/* ---------- Elementor widget backgrounds ---------- */

body.elementor-page:not(.home) .elementor-widget-wrap,
body.elementor-page:not(.home) .elementor-column,
body.elementor-page:not(.home) .elementor-column-wrap {
    background-color: transparent !important;
}

/* ---------- Buttons (Elementor native button widget) ---------- */

body.elementor-page:not(.home) .elementor .elementor-button {
    font-family: 'Space Grotesk', system-ui, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    border-radius: 40px !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

body.elementor-page:not(.home) .elementor .elementor-button.elementor-button-link,
body.elementor-page:not(.home) .elementor .elementor-button[style*="background"],
body.elementor-page:not(.home) .elementor .elementor-button-default {
    background: #5266eb !important;
    color: #ffffff !important;
    border: none !important;
}
body.elementor-page:not(.home) .elementor .elementor-button:hover {
    background: #6478f0 !important;
    color: #ffffff !important;
}

/* ---------- Text Editor widget (classic editor content) ---------- */

body.elementor-page:not(.home) .elementor-widget-text-editor p,
body.elementor-page:not(.home) .elementor-widget-text-editor li,
body.elementor-page:not(.home) .elementor-widget-text-editor span {
    color: rgba(240, 238, 232, 0.65) !important;
    line-height: 1.75;
}

/* ---------- Icon Box / Icon List ---------- */

body.elementor-page:not(.home) .elementor-icon-box-title,
body.elementor-page:not(.home) .elementor-icon-list-item > a {
    color: #F0EEE8 !important;
}
body.elementor-page:not(.home) .elementor-icon-box-description,
body.elementor-page:not(.home) .elementor-icon-list-text {
    color: rgba(240, 238, 232, 0.60) !important;
}
body.elementor-page:not(.home) .elementor-icon,
body.elementor-page:not(.home) .elementor-icon-list-icon i,
body.elementor-page:not(.home) .elementor-icon-list-icon svg {
    color: #5266eb !important;
    fill: #5266eb !important;
}

/* ---------- Dividers ---------- */

body.elementor-page:not(.home) .elementor-divider-separator {
    border-color: rgba(240, 238, 232, 0.10) !important;
}

/* ---------- Cards / Box widget ---------- */

body.elementor-page:not(.home) .elementor-widget-image-box .elementor-image-box-title {
    color: #F0EEE8 !important;
}
body.elementor-page:not(.home) .elementor-widget-image-box .elementor-image-box-description {
    color: rgba(240, 238, 232, 0.60) !important;
}

/* ---------- Testimonial / quote widgets ---------- */

body.elementor-page:not(.home) .elementor-testimonial__text,
body.elementor-page:not(.home) .elementor-testimonial-content {
    color: rgba(240, 238, 232, 0.70) !important;
}
body.elementor-page:not(.home) .elementor-testimonial__name,
body.elementor-page:not(.home) .elementor-testimonial-job {
    color: rgba(240, 238, 232, 0.40) !important;
}

/* ---------- Accordion / Toggle ---------- */

body.elementor-page:not(.home) .elementor-tab-title,
body.elementor-page:not(.home) .elementor-accordion-title {
    color: #F0EEE8 !important;
    border-color: rgba(240, 238, 232, 0.10) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}
body.elementor-page:not(.home) .elementor-tab-title.elementor-active,
body.elementor-page:not(.home) .elementor-accordion-title.elementor-active {
    color: #5266eb !important;
}
body.elementor-page:not(.home) .elementor-tab-content,
body.elementor-page:not(.home) .elementor-accordion-content {
    border-color: rgba(240, 238, 232, 0.10) !important;
    color: rgba(240, 238, 232, 0.65) !important;
}

/* ---------- Forms (Contact Form 7 / WPForms via Elementor) ---------- */

body.elementor-page:not(.home) .elementor-field-group input,
body.elementor-page:not(.home) .elementor-field-group textarea,
body.elementor-page:not(.home) .elementor-field-group select,
body.elementor-page:not(.home) .wpcf7 input:not([type="submit"]),
body.elementor-page:not(.home) .wpcf7 textarea,
body.elementor-page:not(.home) .wpcf7 select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(240, 238, 232, 0.12) !important;
    border-radius: 8px !important;
    color: #F0EEE8 !important;
    font-family: 'Space Grotesk', system-ui, sans-serif !important;
    padding: 12px 16px !important;
    transition: border-color 0.2s ease !important;
}
body.elementor-page:not(.home) .elementor-field-group input:focus,
body.elementor-page:not(.home) .elementor-field-group textarea:focus,
body.elementor-page:not(.home) .wpcf7 input:focus,
body.elementor-page:not(.home) .wpcf7 textarea:focus {
    border-color: #5266eb !important;
    outline: none !important;
}
body.elementor-page:not(.home) .elementor-field-group label,
body.elementor-page:not(.home) .wpcf7 label {
    color: rgba(240, 238, 232, 0.55) !important;
    font-size: 12px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}
body.elementor-page:not(.home) .elementor-field-group input[type="submit"],
body.elementor-page:not(.home) .elementor-form .elementor-button,
body.elementor-page:not(.home) .wpcf7 input[type="submit"] {
    background: #5266eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 40px !important;
    font-family: 'Space Grotesk', system-ui, sans-serif !important;
    font-weight: 600 !important;
    padding: 14px 32px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}
body.elementor-page:not(.home) .elementor-field-group input[type="submit"]:hover,
body.elementor-page:not(.home) .wpcf7 input[type="submit"]:hover {
    background: #6478f0 !important;
}

/* ---------- Tables ---------- */

body.elementor-page:not(.home) .elementor table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(240, 238, 232, 0.70);
}
body.elementor-page:not(.home) .elementor table th {
    color: rgba(240, 238, 232, 0.40);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(240, 238, 232, 0.10);
    padding: 12px 16px;
}
body.elementor-page:not(.home) .elementor table td {
    border-bottom: 1px solid rgba(240, 238, 232, 0.06);
    padding: 12px 16px;
}

/* ---------- Page title (default WP page title area) ---------- */

body.elementor-page:not(.home) .page-header,
body.elementor-page:not(.home) .entry-header,
body.elementor-page:not(.home) .entry-title {
    color: #F0EEE8 !important;
}

/* ---------- Breadcrumbs ---------- */

body.elementor-page:not(.home) .elementor-breadcrumbs,
body.elementor-page:not(.home) nav.woocommerce-breadcrumb,
body.elementor-page:not(.home) .breadcrumb {
    color: rgba(240, 238, 232, 0.40) !important;
    font-size: 12px !important;
    letter-spacing: 0.04em !important;
}
body.elementor-page:not(.home) .elementor-breadcrumbs a,
body.elementor-page:not(.home) .breadcrumb a {
    color: rgba(240, 238, 232, 0.40) !important;
}
body.elementor-page:not(.home) .elementor-breadcrumbs a:hover,
body.elementor-page:not(.home) .breadcrumb a:hover {
    color: #5266eb !important;
}

#cpm-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,0.5);
}
.cpm-nav.open ~ #cpm-nav-overlay,
body.nav-open #cpm-nav-overlay {
    display: block;
}

.cpm-nav .cpm-nav-item:last-child {
    display: none;
}

@media (max-width: 768px) {
    .cpm-nav .cpm-nav-item:last-child {
        display: block;
    }
}

/* Guard block intentionally removed — .cpm-header / .cpm-footer / homepage
   sections are never nested inside .elementor, so the rules above never
   reach them. An "all: revert" here would break position: fixed on the header. */