/* The image stripe (renderers/image.php; Figma 38-19 frames 05-07, item 210): A a split banner, B a floating card,
   C the brand block, each with an image-only state (cil-banner--only) -- the picture alone, in the same box. The
   words always sit on a solid surface, never on the picture. While the picture loads its place is grey (frame 05
   c-d). Logical properties, brand tokens. */

.cil-banner { padding: 40px 24px; }
.cil-banner *, .cil-banner *::before, .cil-banner *::after { box-sizing: border-box; }
.cil-banner__box { position: relative; display: flex; max-width: 1420px; margin-inline: auto; border-radius: 16px; }
.cil-banner__photo { position: relative; overflow: hidden; background: var(--cil-black-light-2); }
.cil-banner__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- The words: the brand's four pills, the heading, the line, the search field ---- */
.cil-banner__content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; min-width: 0; }
.cil-banner__pills { display: flex; align-items: center; gap: 6px; }
.cil-banner__pills i { display: block; height: 8px; border-radius: 4px; }
.cil-banner__pills i:nth-child(1) { width: 40px; background: var(--cil-yellow); }
.cil-banner__pills i:nth-child(2) { width: 24px; background: var(--cil-green); }
.cil-banner__pills i:nth-child(3) { width: 16px; background: var(--cil-blue); }
.cil-banner__pills i:nth-child(4) { width: 8px; background: var(--cil-red); }
.cil-banner__copy { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.cil-banner .cil-banner__title {
    margin: 0; color: var(--cil-black); font-family: 'Assistant-Bold', 'Assistant', Arial, sans-serif; font-size: 40px; font-weight: 400; line-height: 1.2;
}
.cil-banner__line { margin: 0; color: var(--cil-black-regular-7); font-size: 18px; line-height: 1.2; }

.cil-banner__search {
    display: flex; align-items: center; gap: 10px; width: 480px; max-width: 100%; height: 56px; margin: 0;
    padding-inline: 20px 6px; border: 1px solid var(--cil-black-light-4); border-radius: 28px; background: var(--cil-white);
}
.cil-banner__search:focus-within { border-color: var(--cil-blue-dark-1); box-shadow: 0 0 0 1px var(--cil-blue-dark-1); }
.cil-banner__glass { display: inline-flex; flex: none; color: var(--cil-black-regular-6); }
.cil-banner .cil-banner__input {
    flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: none;
    color: var(--cil-black); font: inherit; font-size: 16px; line-height: 1.2;
}
.cil-banner .cil-banner__input::placeholder { color: var(--cil-black-regular-6); opacity: 1; }
.cil-banner .cil-banner__input::-webkit-search-cancel-button { display: none; }
.cil-banner .cil-banner__go {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    height: 44px; padding: 0 24px; border: 0; border-radius: 22px; cursor: pointer;
    background: var(--cil-blue-dark-1); color: var(--cil-white);
    font-family: 'Assistant-SemiBold', 'Assistant', Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.2;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
/* Pointed at, the button moves -- never a colour wash. */
.cil-banner .cil-banner__go:hover { transform: translateY(-1px) scale(1.03); background: var(--cil-blue-dark-1); color: var(--cil-white); }
.cil-banner .cil-banner__go:active { transform: scale(.98); }
.cil-banner .cil-banner__go:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 2px; }

/* ---- A · Split banner (frame 05): the words on white at the start, the picture on the end half ---- */
.cil-banner--a .cil-banner__box { height: 320px; overflow: hidden; background: var(--cil-white); }
/* The picture at its drawn width while the words keep the room they are drawn with; narrower than that it gives way,
   down to 45% of the box: on a tablet a fixed 640 left the words no room and ran past the box's edge (item 531). */
.cil-banner--a .cil-banner__photo { order: 2; flex: none; width: min(640px, max(45%, 100% - 560px)); }
.cil-banner--a .cil-banner__content { flex: 1 1 auto; padding: 48px 56px; }

/* ---- B · Floating card (frame 06): the picture across the box, a white card at the start over it ---- */
.cil-banner--b .cil-banner__box { align-items: center; height: 360px; padding: 40px 48px; overflow: hidden; }
.cil-banner--b .cil-banner__photo { position: absolute; inset: 0; }
.cil-banner--b .cil-banner__content {
    position: relative; width: 560px; gap: 20px; padding: 36px; border-radius: 16px; background: var(--cil-white);
    filter: drop-shadow(0 12px 16px color-mix(in srgb, var(--cil-black) 20%, transparent)) drop-shadow(0 2px 3px color-mix(in srgb, var(--cil-black) 10%, transparent));
}
.cil-banner--b .cil-banner__search { width: 100%; }

/* ---- C · Brand block (frame 07): white words on the deep blue, the picture framed at the end, a yellow button ---- */
.cil-banner--c .cil-banner__box { align-items: center; gap: 48px; height: 320px; padding: 32px; padding-inline-start: 56px; overflow: hidden; background: var(--cil-blue-dark-1); }
.cil-banner--c .cil-banner__photo { order: 2; flex: none; width: min(520px, max(45%, 100% - 560px)); height: 256px; border-radius: 12px; }
.cil-banner--c .cil-banner__content { flex: 1 1 auto; }
.cil-banner--c .cil-banner__title { color: var(--cil-white); }
.cil-banner--c .cil-banner__line { color: var(--cil-blue-light-3); }
.cil-banner--c .cil-banner__search { border-color: transparent; }
.cil-banner--c .cil-banner__search:focus-within { border-color: var(--cil-yellow); box-shadow: 0 0 0 1px var(--cil-yellow); }
.cil-banner--c .cil-banner__go, .cil-banner--c .cil-banner__go:hover { background: var(--cil-yellow); color: var(--cil-black); }
.cil-banner--c .cil-banner__go:focus-visible { outline-color: var(--cil-yellow); }

/* ---- Image only: the picture alone, filling the layout's own box ---- */
.cil-banner--only .cil-banner__photo { width: 100%; }
.cil-banner--c.cil-banner--only .cil-banner__box { padding-inline-start: 32px; }
.cil-banner--c.cil-banner--only .cil-banner__photo { flex: 1 1 auto; width: auto; }

/* ---- Phones (frames 05 b, 06 b, 07 b): the picture on top, the words below it ---- */
@media (max-width: 767px) {
    .cil-banner { padding: 24px 16px; }
    .cil-banner__box { flex-direction: column; height: auto; }
    .cil-banner__content { gap: 16px; }
    .cil-banner__copy { gap: 8px; }
    .cil-banner .cil-banner__title { font-size: 24px; }
    .cil-banner__line { font-size: 16px; }
    .cil-banner__search { width: 100%; height: 48px; padding-inline: 16px 6px; border-radius: 24px; }
    .cil-banner__glass svg { width: 20px; height: 20px; }
    .cil-banner .cil-banner__go { height: 36px; padding: 0 18px; border-radius: 18px; }

    .cil-banner--a .cil-banner__box { height: auto; }
    .cil-banner--a .cil-banner__photo { order: 0; width: 100%; height: 160px; }
    .cil-banner--a .cil-banner__content { padding: 20px 20px 24px; }

    /* The card overlaps the picture's lower edge. */
    .cil-banner--b .cil-banner__box { align-items: stretch; height: auto; padding: 0; overflow: visible; }
    .cil-banner--b .cil-banner__photo { position: relative; inset: auto; width: 100%; height: 200px; border-radius: 16px; }
    .cil-banner--b .cil-banner__content { width: auto; margin: -48px 16px 0; padding: 20px; gap: 16px; }

    .cil-banner--c .cil-banner__box { gap: 20px; height: auto; padding: 16px 16px 24px; }
    .cil-banner--c .cil-banner__photo { order: 0; width: 100%; height: 160px; }
    .cil-banner--c .cil-banner__content { padding-inline: 4px; }

    .cil-banner--only .cil-banner__photo { height: 200px; }
    .cil-banner--c.cil-banner--only .cil-banner__box { padding: 16px; }
    .cil-banner--c.cil-banner--only .cil-banner__photo { width: 100%; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .cil-banner .cil-banner__go { transition: none; }
    .cil-banner .cil-banner__go:hover, .cil-banner .cil-banner__go:active { transform: none; }
}
