/* ── Crazy Joe's Blinds Ad — Public Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Barlow+Condensed:wght@400;600;800&display=swap');

.cjba-ad-outer {
    --ac: #f5c842;
    font-family: 'Barlow Condensed', sans-serif;
    line-height: 1;
}

.cjba-ad {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    height: 600px;
    overflow: hidden;
    background: #1a2a3a;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0,0,0,.18);
}

/* ── Slides ── */
.cjba-slides { position: absolute; inset: 0; bottom: 52px; }

.cjba-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.cjba-slide.is-active { opacity: 1; }

/* Gradient overlay — heavier at bottom for text legibility */
.cjba-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.1) 0%,
        rgba(0,0,0,.15) 40%,
        rgba(0,0,0,.65) 70%,
        rgba(0,0,0,.82) 100%
    );
}

/* ── Slide content — bottom aligned, clean layout ── */
.cjba-slide-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 32px 28px;
    z-index: 5;
}

.cjba-slide-label {
    color: var(--ac);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease .2s, transform .5s ease .2s;
}

.cjba-headline {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4.5vw, 54px);
    font-weight: 900;
    line-height: 1.08;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease .35s, transform .5s ease .35s;
}

.cjba-subline {
    color: rgba(255,255,255,.78);
    font-size: 15px;
    letter-spacing: .5px;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease .5s, transform .5s ease .5s;
}

.cjba-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s ease .65s, transform .5s ease .65s;
}

/* Animate in when slide is active */
.cjba-slide.is-active .cjba-slide-label,
.cjba-slide.is-active .cjba-headline,
.cjba-slide.is-active .cjba-subline,
.cjba-slide.is-active .cjba-pills {
    opacity: 1;
    transform: translateY(0);
}

.cjba-pill {
    background: rgba(245,200,66,.15);
    border: 1px solid rgba(245,200,66,.45);
    color: var(--ac);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Badge — top right ── */
.cjba-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--ac);
    color: #0a0a0a;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 14px;
    text-align: center;
    line-height: 1.45;
    transform: rotate(2deg);
    z-index: 10;
    border-radius: 2px;
    box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}

/* ── Dot nav — bottom right over image ── */
.cjba-dot-nav {
    position: absolute;
    bottom: 64px; right: 20px;
    display: flex; gap: 7px;
    z-index: 10;
}
.cjba-dot-btn {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .3s;
}
.cjba-dot-btn.is-active { background: var(--ac); transform: scale(1.5); }

/* ── Progress bar ── */
.cjba-progress {
    position: absolute;
    bottom: 52px; left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,.1);
    z-index: 10;
}
.cjba-progress-inner {
    height: 100%;
    background: var(--ac);
    width: 0%;
    transition: width linear;
}

/* ── Bottom bar — white, clean ── */
.cjba-bottom-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 52px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 24px;
    z-index: 10;
    border-top: 3px solid var(--ac);
    gap: 12px;
}

/* Services ticker */
.cjba-services-strip {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.cjba-dot { color: var(--ac); margin: 0 6px; }

/* CTA button */
.cjba-cta {
    background: var(--ac);
    color: #0a0a0a !important;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: filter .15s, transform .15s;
    flex-shrink: 0;
    display: inline-block;
}
.cjba-cta:hover { filter: brightness(1.08); transform: scale(1.02); }

/* ── Mobile ── */
@media (max-width: 640px) {
    .cjba-ad { height: 440px; }
    .cjba-slide-content { padding: 16px 18px 20px; }
    .cjba-headline { font-size: 28px; }
    .cjba-subline  { font-size: 13px; }
    .cjba-badge    { font-size: 10px; padding: 8px 10px; top: 14px; right: 14px; }
    .cjba-services-strip { display: none; }
    .cjba-bottom-bar { padding: 0 14px; }
    .cjba-cta { font-size: 11px; padding: 8px 14px; letter-spacing: 1.5px; }
    .cjba-dot-nav { bottom: 62px; right: 14px; }
}
