/*
 * Hero CI 2026 — Neve child theme
 *
 * Add to child theme functions.php:
 *
 *   function ci_hero_enqueue() {
 *       if ( is_page_template( 'page-ci-hero.php' ) ) {
 *           wp_enqueue_style( 'ci-hero', get_stylesheet_directory_uri() . '/ci-hero.css', [], '1.0.0' );
 *       }
 *   }
 *   add_action( 'wp_enqueue_scripts', 'ci_hero_enqueue' );
 */

/* ── Reset Neve wrappers for this page template ─────────────────── */
body.page-template-page-ci-hero .ci-hero-main,
body.page-template-page-ci-hero .site-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

body.page-template-page-ci-hero .nv-content-wrap,
body.page-template-page-ci-hero #content.neve-main {
    padding: 0 !important;
}

/* ── Hero section ────────────────────────────────────────────────── */
.ci-hero {
    display: flex;
    width: 100%;
    height: calc(100vh - 100px);
    min-height: 560px;    /* safety floor so content never gets clipped */
    background: #ffffff;  /* shows through the dark column's notch */
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Left column (white) ─────────────────────────────────────────── */
.ci-hero__left {
    flex: 0 0 50%;
    background: #ffffff;
    padding: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ci-hero__group {
    display: flex;
    flex-direction: column;
}

.ci-hero__logo {
    display: block;
    width: 440px;
    max-width: 100%;
}

.ci-hero__logo img {
    width: 100%;
    height: auto;
    display: block;
}

.ci-hero__btn-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.ci-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background-color: #0057FF;
    color: #d7ff8a;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.432px;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background .2s ease-in;
    padding: 0 16px;
}

.ci-hero__btn:hover {
    background-color: #000032;
    color: #d7ff8a;
}

/* ── Right column (dark) ─────────────────────────────────────────── */
/*
 * The dark bg has a notch cut from its top-left corner.
 * Shape derived from the Figma SVG path (viewBox 689×832):
 *   notch width  = 66/689  ≈ 9.6%  → using 10% for column-relative sizing
 *   notch height = 433/832 ≈ 52%
 */
.ci-hero__right {
    flex: 0 0 50%;
    background-color: #000032;
    padding: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    clip-path: polygon(
        10%   0%,
        100%  0%,
        100%  100%,
        0%    100%,
        0%    52%,
        10%   52%
    );
}

.ci-hero__date-img {
    display: block;
    width: 339px;
    max-width: 100%;
    height: auto;
}

/* ── Tablet (≤ 1200px) ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .ci-hero {
        height: calc(100vh - 68px);
    }
}

@media (max-width: 1200px) {
    .ci-hero__logo {
        width: 340px;
    }

    .ci-hero__date-img {
        width: 260px;
    }
}

/* ── Mobile (≤ 768px) ────────────────────────────────────────────── */
/*
 * Stacked layout. The dark section has a notch at its top-left corner,
 * matching the rotated SVG shape from Figma (notch: 52% wide × 9% tall).
 * No overlap/z-index needed — the .ci-hero white background shows through
 * the notch naturally.
 */
@media (max-width: 768px) {
    .ci-hero {
        flex-direction: column;
        height: auto;
    }

    .ci-hero__left {
        flex: none;
        padding: 60px 40px;
        align-items: center;
    }

    .ci-hero__logo {
        width: 337px;
    }

    .ci-hero__right {
        flex: none;
        padding: 60px 40px;
        align-items: center;
        justify-content: center;

        clip-path: polygon(
            52%  0%,
            100% 0%,
            100% 100%,
            0%   100%,
            0%   9%,
            52%  9%
        );
    }

    .ci-hero__date-img {
        width: 252px;
    }
}

/* ── Small mobile (≤ 480px) ─────────────────────────────────────── */
@media (max-width: 480px) {
    .ci-hero__left {
        padding: 48px 24px;
    }

    .ci-hero__logo {
        width: 100%;
        max-width: 300px;
    }

    .ci-hero__right {
        padding: 48px 24px;
    }

    .ci-hero__date-img {
        width: 100%;
        max-width: 252px;
    }
}
