/* Shared by the public site (includes/header.php) and the customer dashboard
   (customer/includes/customer_head.php). */

/* ── Coded promo banner (includes/banner.php) ───────────────────────────────
   Real text over a text-free photo or tile graphic. Themes only swap colours. */
.yu-banner {
    --b-bg: #f1f2f5; --b-fg: #1f2240; --b-soft: #4b4f6b; --b-eyebrow: #b0852c;
    --b-accent: var(--accent, #f5c518); --b-title-accent: #c8961a; --b-strip: rgba(0,0,0,.05);
    --b-cta-bg: #1f2240; --b-cta-fg: #fff;
    position: relative;
    display: grid;
    grid-template-columns: minmax(340px, 38%) 1fr;
    grid-template-areas: "panel visual" "trust trust";
    grid-template-rows: 1fr auto;
    min-height: 440px;
    background: var(--b-bg);
    color: var(--b-fg);
    overflow: hidden;
}
.yu-banner--teal   { --b-bg: #387079; --b-fg: #fff; --b-soft: rgba(255,255,255,.9); --b-eyebrow: rgba(255,255,255,.85); --b-title-accent: var(--b-accent); --b-strip: rgba(0,0,0,.22); --b-cta-bg: var(--b-accent); --b-cta-fg: #1a1a2e; }
.yu-banner--indigo { --b-bg: #2b2663; --b-fg: #fff; --b-soft: rgba(255,255,255,.9); --b-eyebrow: rgba(255,255,255,.8); --b-title-accent: var(--b-accent); --b-strip: rgba(0,0,0,.2); --b-cta-bg: #fff; --b-cta-fg: #2b2663; }
.yu-banner--brown  { --b-bg: #3a2a20; --b-fg: #fff; --b-soft: rgba(255,255,255,.92); --b-eyebrow: rgba(255,255,255,.85); --b-title-accent: var(--b-accent); --b-strip: rgba(0,0,0,.28); --b-cta-bg: var(--b-accent); --b-cta-fg: #1a1a2e; }
.yu-banner--sand   { --b-bg: #ebe8e4; }
.yu-banner--dark   { --b-bg: #1b1e23; --b-fg: #fff; --b-soft: rgba(255,255,255,.9); --b-eyebrow: rgba(255,255,255,.8); --b-title-accent: var(--b-accent); --b-strip: rgba(255,255,255,.06); --b-cta-bg: var(--b-accent); --b-cta-fg: #1a1a2e; }
/* Inside the homepage slider the banner fills the slide's equalised height. */
.hero-full-slide > .yu-banner { height: 100%; }
.yu-banner--no-visual { grid-template-columns: 1fr; grid-template-areas: "panel" "trust"; min-height: 0; }

.yu-banner-visual { grid-area: visual; position: relative; min-height: 100%; }
.yu-banner-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Blend the photo's left edge into the panel colour. */
.yu-banner-visual:not(.yu-banner-tiles)::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; z-index: 1;
    background: linear-gradient(90deg, var(--b-bg), transparent);
}
.yu-banner--photo-contain .yu-banner-visual::before { display: none; }
.yu-banner--photo-contain .yu-banner-visual img {
    left: auto; right: 0; width: auto; max-width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
    mask-image: linear-gradient(90deg, transparent, #000 38%);
}
.yu-banner-badge {
    position: absolute; right: 24px; bottom: 24px; z-index: 2; margin: 0;
    padding: 10px 16px; border-radius: 10px; background: var(--b-accent); color: #1a1a2e;
    font-size: 15px; font-weight: 800; line-height: 1.2; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.yu-banner-badge small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.yu-banner-badge small:empty { display: none; }

.yu-banner-tiles {
    display: grid; grid-template-columns: repeat(3, 150px); gap: 18px;
    align-content: center; justify-content: center; padding: 32px;
    transform: rotate(-8deg);
}
.yu-banner-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    aspect-ratio: 1; border-radius: 20px; font-size: 14px; font-weight: 700; text-align: center;
    background: #3f3a85; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.yu-banner-tile i { font-size: 28px; }
.yu-banner-tile:nth-child(3n+1) { background: var(--b-accent); color: #2b2663; }
.yu-banner-tile:nth-child(3n) { background: #fff; color: #2b2663; }

.yu-banner-panel { grid-area: panel; position: relative; z-index: 2; padding: 48px 32px 40px 56px; display: flex; flex-direction: column; justify-content: center; }
.yu-banner-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--b-eyebrow); margin: 0 0 16px; }
.yu-banner-title { font-size: clamp(32px, 3.8vw, 58px); line-height: 1.08; font-weight: 800; margin: 0 0 16px; color: var(--b-fg); }
.yu-banner-title span { color: var(--b-title-accent); }
.yu-banner-sub { font-size: clamp(16px, 1.45vw, 22px); line-height: 1.4; margin: 0 0 24px; color: var(--b-soft); }
.yu-banner-sub strong { color: var(--b-title-accent); font-weight: 800; }
.yu-banner-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 14px 18px; }
.yu-banner-features li { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.25; }
.yu-banner-features i { font-size: 22px; color: var(--b-accent); }
.yu-banner-cta {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 12px;
    padding: 15px 34px; border: 0; border-radius: 10px; font: inherit; font-size: 19px; font-weight: 800;
    background: var(--b-cta-bg); color: var(--b-cta-fg); text-decoration: none; cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: transform .15s ease;
}
.yu-banner-cta:hover { transform: translateY(-1px); }
.yu-banner-cta:focus-visible { outline: 3px solid var(--b-accent); outline-offset: 3px; }
.yu-banner-trust {
    grid-area: trust; position: relative; z-index: 2; list-style: none; margin: 0; padding: 14px 24px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px;
    background: var(--b-strip); font-size: 15px; font-weight: 600;
}
.yu-banner-trust li { display: flex; align-items: center; gap: 8px; }
.yu-banner-trust i { color: var(--b-accent); }

/* Very wide screens: taller banner so photos aren't dwarfed by the width. */
@media (min-width: 1600px) {
    .yu-banner:not(.yu-banner--no-visual) { min-height: 560px; }
}

@media (max-width: 900px) {
    .yu-banner { grid-template-columns: 1fr; grid-template-areas: "visual" "panel" "trust"; grid-template-rows: auto 1fr auto; min-height: 0; }
    /* Photo on top: phone-like proportions, but capped so on tablets and
       narrow windows it doesn't fill the screen and push the text away. */
    .yu-banner-visual { min-height: 0; aspect-ratio: auto; height: clamp(190px, 50vw, 300px); }
    .yu-banner-visual img { object-position: center top; }
    .yu-banner-visual:not(.yu-banner-tiles)::before { inset: auto 0 0 0; width: auto; height: 35%; background: linear-gradient(0deg, var(--b-bg), transparent); }
    /* Phones: tiles become a flat 3×2 strip above the text. */
    .yu-banner-tiles { aspect-ratio: auto; transform: none; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 20px 16px 4px; }
    .yu-banner-tile { border-radius: 14px; font-size: 12px; gap: 6px; }
    .yu-banner-tile i { font-size: 20px; }
    .yu-banner--photo-contain .yu-banner-visual img { left: 0; width: 100%; max-width: none; -webkit-mask-image: none; mask-image: none; }
    .yu-banner--photo-contain .yu-banner-visual::before { display: block; }
    .yu-banner-badge { right: 12px; bottom: 12px; font-size: 13px; padding: 8px 12px; }
    .yu-banner-panel { padding: 20px 16px 24px; }
    .yu-banner-eyebrow { font-size: 11px; letter-spacing: .2em; margin-bottom: 10px; }
    .yu-banner-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; }
    .yu-banner-features li { font-size: 11.5px; }
    .yu-banner-cta { align-self: stretch; justify-content: center; font-size: 18px; padding: 14px 20px; }
    .yu-banner-trust { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; font-size: 13.5px; }
}
