/* ─────────────────────────────────────────────────────────
   EU Cloud Migration Assessment Landing Page — Xiphias
   ───────────────────────────────────────────────────────── */

:root {
    --cma-blue: #2652B9;
    --cma-orange: #FE7505;
    --cma-gray: #f5f7fb;
    --cma-border: rgba(0, 0, 0, .09);
}

/* ── Section utility (shared naming w/ b2b page) ── */
.cma-section-label {
    font-family: Montserrat, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cma-orange);
    margin-bottom: 14px;
}

.cma-section-title {
    font-family: Montserrat, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: #111;
    margin: 0 0 20px;
}

.cma-section-lead {
    font-family: Montserrat, sans-serif;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.75;
    max-width: 760px;
    margin: 0 0 48px;
}

.cma-editmode-card {
    padding: 14px;
    border: 1px dashed var(--cma-blue);
    border-radius: 6px;
    margin-bottom: 12px;
    background: #f3f6ff;
}
.cma-editmode-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cma-blue);
    margin-bottom: 6px;
}

/* ─────────────────────────────────────────────────────────
   1. HERO
   ───────────────────────────────────────────────────────── */

.cma-hero {
    position: relative;
    background: var(--cma-gray);
    overflow: hidden;
    padding: 160px 0 100px;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.cma-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.cma-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.cma-hero-glow-1 {
    width: 560px;
    height: 560px;
    background: var(--cma-blue);
    right: -100px;
    top: -140px;
    opacity: .08;
}

.cma-hero-glow-2 {
    width: 340px;
    height: 340px;
    background: var(--cma-orange);
    right: 80px;
    bottom: -80px;
    opacity: .06;
}

/* ── layout: full-bleed section, no forced .container, image covers the right side ── */
.cma-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 0 0 max(24px, 5vw);
}

.cma-hero-content {
    flex: 1 1 auto;
    max-width: 640px;
    position: relative;
    z-index: 2;
}

.cma-hero-visual {
    position: absolute;
    top: 112px;
    bottom: 0;
    right: 0;
    left: 36%;
    z-index: 0;
    border-radius: 20px 0 0 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .25) 6%, black 28%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .25) 6%, black 28%);
}

.cma-hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, var(--cma-gray) 0%, rgba(245, 247, 251, .4) 14%, rgba(245, 247, 251, 0) 36%);
    pointer-events: none;
}

.cma-hero-visual-img,
.cma-hero-visual .pimcore_image,
.cma-hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cma-hero-visual--editmode {
    position: relative;
    inset: auto;
    left: auto;
    width: 100%;
    height: auto;
    margin-top: 24px;
    mask-image: none;
    -webkit-mask-image: none;
}

.cma-hero-visual--editmode::before {
    display: none;
}

.cma-hero-title {
    font-family: Montserrat, sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.04em;
    color: #111;
    margin: 0 0 24px;
}

.cma-hero-title-accent {
    color: var(--cma-blue);
}

.cma-hero-subtitle {
    font-family: Montserrat, sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 0 32px;
}

.cma-hero-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 40px;
    max-width: 480px;
}

.cma-hero-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Montserrat, sans-serif;
    font-size: .98rem;
    font-weight: 600;
    color: #222;
}

.cma-hero-checklist-item::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(38, 82, 185, .1);
    color: var(--cma-blue);
    font-size: .78rem;
    font-weight: 800;
    flex-shrink: 0;
}

.cma-hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cma-hero-btn {
    text-decoration: none;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
}

.cma-hero-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Montserrat, sans-serif;
    font-size: .95rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}
.cma-hero-secondary-link:hover { color: var(--cma-blue); }

.cma-hero-secondary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(38, 82, 185, .1);
    color: var(--cma-blue);
    font-size: .7rem;
}

.cma-hero .hero-partner-badges {
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: none;
}

.cma-hero .hero-partner-card {
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   2. TRUSTED-BY LOGOS
   ───────────────────────────────────────────────────────── */

.cma-logos-section {
    background: var(--cma-gray);
    padding: 40px 0;
    border-top: 1px solid var(--cma-border);
    border-bottom: 1px solid var(--cma-border);
}

.cma-logos-section .container {
    margin-top: 0;
    text-align: center;
}

.cma-logos-label {
    font-family: Montserrat, sans-serif;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 28px;
}

.cma-logos-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px 48px;
}

.cma-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
    opacity: .55;
    transition: opacity .25s;
}
.cma-logo-item:hover { opacity: 1; }

.cma-logo-img {
    height: auto;
    width: 100%;
    max-width: 160px;
    object-fit: contain;
}

/* Spryker's official mark is a white cutout; invert so it reads on our light background */
.cma-logo-img--spryker {
    filter: invert(1);
}

/* ── Icons (shared) ──
   All page icons are inline SVGs colored via currentColor so they inherit
   the on-brand blue/orange from their container — never raw colored emoji. */
.cma-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.cma-logos-editmode-item {
    display: inline-block;
    padding: 10px 14px;
    border: 1px dashed var(--cma-blue);
    border-radius: 6px;
    margin: 6px;
    background: #f3f6ff;
    vertical-align: middle;
    text-align: left;
    min-width: 120px;
}

/* ─────────────────────────────────────────────────────────
   3. QUESTIONS WE ANSWER
   ───────────────────────────────────────────────────────── */

.cma-questions-section {
    background: #fff;
    padding: 88px 0;
}

.cma-questions-section .container { margin-top: 0; }

.cma-questions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.cma-question-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    transition: border-color .25s, box-shadow .25s;
}
.cma-question-card:hover {
    border-color: rgba(38, 82, 185, .35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.cma-question-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(38, 82, 185, .1);
    border: 1px solid rgba(38, 82, 185, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--cma-blue);
    margin: 0 auto 16px;
    flex-shrink: 0;
}

.cma-question-text {
    font-family: Montserrat, sans-serif;
    font-size: .96rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────
   4. WHAT YOU GET
   ───────────────────────────────────────────────────────── */

.cma-delivers-section {
    background: var(--cma-gray);
    padding: 88px 0;
}

.cma-delivers-section .container { margin-top: 0; }

.cma-delivers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, .07);
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 48px;
}

.cma-delivers-item {
    background: #fff;
    padding: 32px 26px;
    transition: background .2s;
}
.cma-delivers-item:hover { background: #eef1f9; }

.cma-delivers-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(254, 117, 5, .1);
    border: 1px solid rgba(254, 117, 5, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--cma-orange);
    margin-bottom: 18px;
}

.cma-delivers-item-title {
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    line-height: 1.3;
}

.cma-delivers-item-desc {
    font-family: Montserrat, sans-serif;
    font-size: .88rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────
   5. OUR ASSESSMENT PROCESS
   ───────────────────────────────────────────────────────── */

.cma-process-section {
    background: #fff;
    padding: 88px 0;
    overflow: hidden;
}

.cma-process-section .container { margin-top: 0; }

.cma-process-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.cma-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 6px 0;
    opacity: 0;
    transform: translateY(18px);
    animation: cma-step-in .6s ease forwards;
    animation-delay: var(--cma-step-delay, 0ms);
}

@keyframes cma-step-in {
    to { opacity: 1; transform: translateY(0); }
}

.cma-step-icon-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
}

.cma-step-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(38, 82, 185, .08);
    border: 1px solid rgba(38, 82, 185, .18);
    color: var(--cma-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s, box-shadow .3s, background .3s;
}

.cma-step-icon .cma-icon {
    width: 26px;
    height: 26px;
}

.cma-step:hover .cma-step-icon {
    transform: translateY(-4px);
    background: rgba(38, 82, 185, .13);
    box-shadow: 0 10px 26px rgba(38, 82, 185, .22);
}

.cma-step-num {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--cma-blue);
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: .7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}

.cma-step.is-final .cma-step-icon {
    background: rgba(254, 117, 5, .1);
    border-color: rgba(254, 117, 5, .3);
    color: var(--cma-orange);
}
.cma-step.is-final:hover .cma-step-icon {
    background: rgba(254, 117, 5, .16);
    box-shadow: 0 10px 26px rgba(254, 117, 5, .25);
}
.cma-step.is-final .cma-step-num { background: var(--cma-orange); }

.cma-step-body { flex: 1; }

.cma-step-title {
    font-family: Montserrat, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.35;
}

.cma-step-desc {
    font-family: Montserrat, sans-serif;
    font-size: .86rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .cma-step {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ─────────────────────────────────────────────────────────
   6. WHY CHOOSE XIPHIAS
   ───────────────────────────────────────────────────────── */

.cma-why-section {
    background: var(--cma-gray);
    padding: 88px 0;
}

.cma-why-section .container { margin-top: 0; }

.cma-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.cma-why-card {
    background: #fff;
    border: 1px solid var(--cma-border);
    border-radius: 16px;
    padding: 32px 26px;
    text-align: center;
    transition: border-color .25s, box-shadow .25s;
}
.cma-why-card:hover {
    border-color: var(--cma-orange);
    box-shadow: 0 4px 24px rgba(254, 117, 5, .1);
}

.cma-why-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(38, 82, 185, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--cma-blue);
    margin: 0 auto 18px;
}

.cma-why-title {
    font-family: Montserrat, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    line-height: 1.35;
}

.cma-why-desc {
    font-family: Montserrat, sans-serif;
    font-size: .9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────
   7. FINAL CTA
   ───────────────────────────────────────────────────────── */

.cma-cta-section {
    position: relative;
    background: #c1d9f2;
    overflow: hidden;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 0;
}

.cma-cta-section .footer { margin-top: 0; }

.cma-cta-inner {
    position: relative;
    z-index: 2;
    margin-top: 0;
    text-align: center;
}

.cma-cta-label {
    display: inline-block;
    margin-bottom: 20px;
    color: #333;
}

.cma-cta-title {
    font-family: Montserrat, sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.04em;
    color: #111;
    margin: 0 0 20px;
}

.cma-cta-subtitle {
    font-family: Montserrat, sans-serif;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 16px;
}

.cma-cta-note {
    font-family: Montserrat, sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: #555;
    margin: 0 0 44px;
}

.cma-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cma-cta-btn {
    text-decoration: none;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.cma-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-bottom: 1px solid rgb(0 0 0 / 0.3);
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE — 992px
   ───────────────────────────────────────────────────────── */

@media (max-width: 992px) {
    .cma-hero { flex-direction: column; align-items: stretch; }
    .cma-hero-inner { padding: 0 max(24px, 5vw); }
    .cma-hero-content { max-width: 100%; }
    .cma-hero-visual {
        position: static;
        inset: auto;
        left: auto;
        max-width: 480px;
        width: 100%;
        height: 320px;
        margin: 32px auto 0;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(38, 82, 185, .12);
        -webkit-mask-image: none;
        mask-image: none;
    }
    .cma-hero-visual::before { display: none; }

    .cma-questions-grid { grid-template-columns: repeat(3, 1fr); }
    .cma-delivers-grid { grid-template-columns: repeat(2, 1fr); }
    .cma-why-grid { grid-template-columns: repeat(2, 1fr); }

    .cma-process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE — 768px
   ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .cma-hero {
        padding: 130px 0 80px;
        min-height: 480px;
    }

    .cma-hero-title { font-size: 2.2rem; }
    .cma-hero-subtitle { font-size: 1rem; }

    .cma-section-title { font-size: 1.9rem; }

    .cma-questions-grid,
    .cma-delivers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cma-why-grid { grid-template-columns: 1fr; }

    .cma-questions-section,
    .cma-delivers-section,
    .cma-process-section,
    .cma-why-section {
        padding: 64px 0;
    }

    .cma-process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }

    .cma-cta-title { font-size: 2rem; }
    .cma-cta-section { padding: 72px 0; }
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE — 480px
   ───────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .cma-hero { padding: 110px 0 60px; }

    .cma-hero-title { font-size: 1.85rem; }
    .cma-hero-actions { flex-direction: column; }

    .cma-hero-btn,
    .cma-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .cma-logos-track { gap: 20px 28px; }
    .cma-logos-label { font-size: .7rem; }

    .cma-questions-grid,
    .cma-delivers-grid {
        grid-template-columns: 1fr;
    }

    .cma-questions-section,
    .cma-delivers-section,
    .cma-process-section,
    .cma-why-section {
        padding: 52px 0;
    }

    .cma-cta-section { padding: 56px 0; }
    .cma-cta-title { font-size: 1.7rem; }
    .cma-cta-subtitle { font-size: .95rem; }
    .cma-cta-actions { flex-direction: column; align-items: center; }

    .cma-process-steps { grid-template-columns: 1fr; row-gap: 32px; }
    .cma-step-icon-wrap { width: 56px; height: 56px; margin-bottom: 16px; }
    .cma-step-icon { width: 56px; height: 56px; }
    .cma-step-icon .cma-icon { width: 22px; height: 22px; }

    .cma-section-title { font-size: 1.65rem; }
    .cma-section-label { font-size: .68rem; }
}
