/*
Theme Name: JDC CONNEXA
Description: Custom lightweight child theme for CONNEXA.
Author: JDC
Template: generatepress
Version: 1.1.0
Text Domain: jdc-connexa
*/

:root {
    --cnx-bg: #071013;
    --cnx-bg-soft: #0c171a;
    --cnx-panel: #101e21;
    --cnx-text: #f4f8f7;
    --cnx-muted: #98aaa7;
    --cnx-accent: #40e0b5;
    --cnx-border: rgba(255,255,255,.10);
}

body.jdc-connexa-site {
    background: var(--cnx-bg);
    color: var(--cnx-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home.jdc-connexa-site .site-header,
body.home.jdc-connexa-site .main-navigation {
    display: none;
}

/* Custom CONNEXA homepage must remain visible */
body.home.jdc-connexa-site #page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.home.jdc-connexa-site .site-content {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home.jdc-connexa-site .cnx-home {
    display: block !important;
    width: 100%;
}

.cnx-home {
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 12%,
            rgba(64,224,181,.13), transparent 25%),
        var(--cnx-bg);
}

.cnx-topbar {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cnx-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .12em;
}

.cnx-brand-mark {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--cnx-accent);
    box-shadow: 0 0 24px rgba(64,224,181,.65);
}

.cnx-nav {
    display: flex;
    gap: 30px;
}

.cnx-nav a {
    color: var(--cnx-muted);
    text-decoration: none;
    font-size: 14px;
}

.cnx-nav a:hover {
    color: white;
}

.cnx-hero {
    max-width: 1320px;
    margin: 0 auto;
    min-height: 650px;
    padding: 80px 32px 100px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 60px;
}

.cnx-eyebrow,
.cnx-section-label {
    color: var(--cnx-accent);
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 700;
}

.cnx-hero h1 {
    margin: 20px 0 25px;
    color: white;
    font-size: clamp(48px, 6.2vw, 88px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 750;
}

.cnx-hero h1 span {
    color: var(--cnx-accent);
}

.cnx-hero-copy > p {
    max-width: 650px;
    color: var(--cnx-muted);
    font-size: 19px;
    line-height: 1.75;
}

.cnx-actions {
    margin-top: 34px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cnx-btn {
    padding: 14px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.cnx-btn-primary {
    background: var(--cnx-accent);
    color: #06100e;
}

.cnx-btn-secondary {
    border: 1px solid var(--cnx-border);
    color: white;
}

.cnx-visual {
    width: min(490px, 100%);
    aspect-ratio: 1;
    position: relative;
    margin: auto;
}

.cnx-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(64,224,181,.23);
    inset: 10%;
}

.cnx-orbit-2 {
    inset: 28%;
}

.cnx-core {
    position: absolute;
    inset: 40%;
    border-radius: 50%;
    background: var(--cnx-accent);
    box-shadow:
        0 0 35px rgba(64,224,181,.65),
        0 0 100px rgba(64,224,181,.25);
}

.cnx-node {
    position: absolute;
    width: 13px;
    height: 13px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(255,255,255,.5);
}

.cnx-node-a {
    left: 15%;
    top: 45%;
}

.cnx-node-b {
    right: 18%;
    top: 20%;
}

.cnx-node-c {
    right: 12%;
    bottom: 24%;
}

.cnx-pillars {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px 110px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cnx-pillars article {
    background: var(--cnx-panel);
    border: 1px solid var(--cnx-border);
    border-radius: 20px;
    padding: 34px;
}

.cnx-pillars article > span {
    color: var(--cnx-accent);
    font-size: 12px;
    font-weight: 800;
}

.cnx-pillars h2 {
    color: white;
    font-size: 21px;
    margin: 45px 0 14px;
}

.cnx-pillars p {
    color: var(--cnx-muted);
    line-height: 1.7;
    font-size: 15px;
}

.cnx-statement {
    max-width: 1320px;
    margin: 0 auto;
    padding: 115px 32px;
    border-top: 1px solid var(--cnx-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.cnx-statement h2 {
    color: white;
    margin-top: 18px;
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.06;
    letter-spacing: -.04em;
}

.cnx-statement-text {
    display: flex;
    align-items: center;
}

.cnx-statement-text p {
    color: var(--cnx-muted);
    font-size: 18px;
    line-height: 1.8;
}

.cnx-contact {
    margin-top: 30px;
    padding: 110px 32px;
    text-align: center;
    background: var(--cnx-accent);
    color: #06100e;
}

.cnx-contact > span {
    font-size: 12px;
    letter-spacing: .2em;
    font-weight: 800;
}

.cnx-contact h2 {
    color: #06100e;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.03;
    letter-spacing: -.045em;
    margin: 22px 0;
}

.cnx-contact p {
    font-weight: 700;
}

.jdc-connexa-site .site-footer {
    background: #050b0d;
    color: #81918e;
}

@media (max-width: 850px) {
    .cnx-nav {
        display: none;
    }

    .cnx-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 55px;
    }

    .cnx-visual {
        max-width: 360px;
    }

    .cnx-pillars {
        grid-template-columns: 1fr;
    }

    .cnx-statement {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


/* JDC CUSTOM LANGUAGE FLAGS CSS */

.jdc-custom-languages {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-left: 18px;
}

.jdc-custom-language {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    opacity: .62;
    transition:
        opacity .2s ease,
        background .2s ease,
        transform .2s ease;
}

.jdc-custom-language:hover,
.jdc-custom-language.is-current {
    opacity: 1;
    background: rgba(127, 127, 127, .12);
}

.jdc-custom-language:hover {
    transform: translateY(-1px);
}

.jdc-custom-flag {
    display: inline-block;
    font-family:
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        sans-serif;
    font-size: 18px;
    line-height: 1;
}

.jdc-custom-code {
    font-size: 10px;
    letter-spacing: .04em;
}

@media (max-width: 1100px) {

    .jdc-custom-languages {
        width: 100%;
        margin: 10px 0 0;
        gap: 5px;
    }

    .jdc-custom-language {
        padding: 5px;
    }
}

/* END JDC CUSTOM LANGUAGE FLAGS CSS */

/* JDC REAL SVG LANGUAGE FLAGS START */

.jdc-custom-flag {
    width: 22px !important;
    height: 15px !important;
    display: inline-block !important;
    flex: 0 0 22px;
    font-size: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.10);
}

.jdc-custom-language[hreflang="el"] .jdc-custom-flag {
    background-image: url("assets/flags/gr.svg");
}

.jdc-custom-language[hreflang="en"] .jdc-custom-flag {
    background-image: url("assets/flags/gb.svg");
}

.jdc-custom-language[hreflang="de"] .jdc-custom-flag {
    background-image: url("assets/flags/de.svg");
}

.jdc-custom-language[hreflang="fr"] .jdc-custom-flag {
    background-image: url("assets/flags/fr.svg");
}

.jdc-custom-language[hreflang="it"] .jdc-custom-flag {
    background-image: url("assets/flags/it.svg");
}

.jdc-custom-language[hreflang="bg"] .jdc-custom-flag {
    background-image: url("assets/flags/bg.svg");
}

.jdc-custom-language[hreflang="tr"] .jdc-custom-flag {
    background-image: url("assets/flags/tr.svg");
}

.jdc-custom-language[hreflang="sq"] .jdc-custom-flag {
    background-image: url("assets/flags/al.svg");
}

.jdc-custom-language[hreflang="sr"] .jdc-custom-flag {
    background-image: url("assets/flags/rs.svg");
}


/* Also support the JDC plugin/header switchers */

.jdc-header-language[hreflang]::before,
.jdc-language-switcher a[hreflang]::before {
    content: "";
    width: 22px;
    height: 15px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: -2px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.10);
}

.jdc-header-language[hreflang="el"]::before,
.jdc-language-switcher a[hreflang="el"]::before {
    background-image: url("assets/flags/gr.svg");
}

.jdc-header-language[hreflang="en"]::before,
.jdc-language-switcher a[hreflang="en"]::before {
    background-image: url("assets/flags/gb.svg");
}

.jdc-header-language[hreflang="de"]::before,
.jdc-language-switcher a[hreflang="de"]::before {
    background-image: url("assets/flags/de.svg");
}

.jdc-header-language[hreflang="fr"]::before,
.jdc-language-switcher a[hreflang="fr"]::before {
    background-image: url("assets/flags/fr.svg");
}

.jdc-header-language[hreflang="it"]::before,
.jdc-language-switcher a[hreflang="it"]::before {
    background-image: url("assets/flags/it.svg");
}

.jdc-header-language[hreflang="bg"]::before,
.jdc-language-switcher a[hreflang="bg"]::before {
    background-image: url("assets/flags/bg.svg");
}

.jdc-header-language[hreflang="tr"]::before,
.jdc-language-switcher a[hreflang="tr"]::before {
    background-image: url("assets/flags/tr.svg");
}

.jdc-header-language[hreflang="sq"]::before,
.jdc-language-switcher a[hreflang="sq"]::before {
    background-image: url("assets/flags/al.svg");
}

.jdc-header-language[hreflang="sr"]::before,
.jdc-language-switcher a[hreflang="sr"]::before {
    background-image: url("assets/flags/rs.svg");
}

/* JDC REAL SVG LANGUAGE FLAGS END */

/* JDC REMOVE OLD FLAG PLACEHOLDER */
.jdc-header-language[hreflang]::before,
.jdc-language-switcher a[hreflang]::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

.jdc-header-language {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.jdc-header-flag {
    display: inline-block !important;
    width: 22px !important;
    height: 15px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}


/* ==========================================================
   JDC PROJECT RULE - CONNEXA HERO H1
   Never oversized.
   ========================================================== */

body.jdc-connexa-site .cnx-hero h1 {
    font-size: clamp(34px, 3.4vw, 48px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    max-width: 620px !important;
    margin-top: 24px !important;
    margin-bottom: 22px !important;
}

/* Prevent nested spans/em from restoring oversized typography */
body.jdc-connexa-site .cnx-hero h1 span,
body.jdc-connexa-site .cnx-hero h1 strong,
body.jdc-connexa-site .cnx-hero h1 em {
    font-size: inherit !important;
    line-height: inherit !important;
}

@media (max-width: 768px) {
    body.jdc-connexa-site .cnx-hero h1 {
        font-size: clamp(30px, 9vw, 38px) !important;
        line-height: 1.1 !important;
        max-width: 100% !important;
    }
}


/* JDC FINAL CUSTOM PNG FLAGS */
.jdc-custom-language {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.jdc-custom-language::before,
.jdc-custom-language::after {
    content: none !important;
    display: none !important;
}

img.jdc-custom-flag {
    display: block !important;
    width: 22px !important;
    height: 15px !important;
    min-width: 22px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

