/* ================================================================== */
/*  Home AnchorDesign360 section — gradient banner in the exact       */
/*  .cta-banner idiom (same gradient, silk-ribbon, radius, buttons)   */
/*  plus a right-hand app-screenshot slot. Sits between the Repair &  */
/*  Retrofit section and the closing CTA.                             */
/* ================================================================== */

.ad-section {
    background: var(--bg-soft);
    padding: 0 24px 8px;
}
@media (max-width: 600px) {
    .ad-section { padding: 0 16px 8px; }
}

.ad-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 64px 24px;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(167, 243, 208, 0.12), transparent 55%),
        linear-gradient(135deg, var(--brand-fill) 0%, #0b1220 100%);
    color: #ffffff;
    text-align: start;
}

/* Same animated white-line silk-ribbon as the other CTA banners. */
.ad-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("../../assets/images/graphics/cta-flow-bg.svg") center / cover no-repeat;
    opacity: 0.55;
    animation: cta-flow-drift 12s ease-in-out infinite alternate;
    -webkit-mask-image: linear-gradient(20deg, #000 0%, transparent 45%);
            mask-image: linear-gradient(20deg, #000 0%, transparent 45%);
}
@media (prefers-reduced-motion: reduce) {
    .ad-banner::before { animation: none; }
}

/* Two columns: copy + buttons | app screenshot. */
.ad-banner__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}
@media (max-width: 900px) {
    .ad-banner__grid { grid-template-columns: 1fr; }
}

.ad-banner__eyebrow {
    margin: 0 0 12px;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--accent-amber);
}

.ad-banner__title {
    margin: 0 0 12px;
    font-size: clamp(20px, 2.7vw, 32px);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    color: #ffffff;
}
.ad-banner__lead {
    margin: 0 0 28px;
    max-width: none;
    font-size: var(--fs-lead);
    line-height: var(--lh-loose);
    color: var(--text-on-dark);
}

/* App screenshot. A translucent white hairline lifts the light screenshot
   off the dark gradient without a hard edge. */
/* Layered shadow so the light screenshot reads as a card floating above the
   dark gradient: a tight contact shadow, a mid lift, and a wide soft pool. */
.ad-banner__media {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.30),
        0 16px 32px -10px rgba(0, 0, 0, 0.55),
        0 44px 80px -30px rgba(0, 0, 0, 0.80);
}

.ad-banner__img {
    display: block;
    width: 100%;
    height: auto;
}

.ad-banner__actions {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 12px;
    justify-content: flex-start;
}
.ad-banner__actions > .ad-banner__btn {
    width: 100%;
}

/* Buttons — identical recipe to .cta-banner__btn so the two homepage
   banners are pixel-consistent. */
.ad-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    line-height: 1.2;
    border-radius: var(--radius-base);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-tight);
    border: 1px solid transparent;
    text-decoration: none;
    transition:
        background-color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-med) var(--ease-out);
}
.ad-banner__btn--primary {
    background: #ffffff;
    color: var(--brand-fill);   /* deep blue on white in both themes */
    border-color: #ffffff;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
}
.ad-banner__btn--primary:hover {
    background: var(--bg-soft);
    border-color: var(--bg-soft);
    color: var(--brand);
    transform: translateY(-1px);
}
.ad-banner__btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}
.ad-banner__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
    transform: translateY(-1px);
}

/* RTL: flip the directional arrow icon (same pattern as the other CTAs). */
[dir="rtl"] .ad-banner__btn svg { transform: scaleX(-1); }

@media (max-width: 600px) {
    .ad-banner { padding: 48px 24px; }
    .ad-banner__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }
    .ad-banner__actions > * {
        width: 100%;
        justify-content: center;
    }
}
