/* Service Future of Search — white, centered header + 2-col body, sticky flip card on right */
.service-future-search {
    padding: var(--section-padding-mobile);
    background: var(--color-bg);
    width: 100%;
    position: relative;
}
@media (min-width: 992px) {
    .service-future-search { padding: var(--section-padding); }
}

/* ── Header: centered, eyebrow + H2 only ─────────────── */
.service-future-search__header {
    text-align: center;
    margin-bottom: 48px;
}
.service-future-search__headline {
    font-size: var(--font-size-h2);
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    line-height: var(--line-height-heading);
    margin: 0 auto;
    max-width: 820px;
}

/* ── Body: 2-col grid. Right column MUST stretch to match the row
   height so the sticky flip card has room to slide within it. ─── */
.service-future-search__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    /* align-items defaults to stretch — leave it alone so the right
       column fills the full row height (required for sticky). */
}
@media (min-width: 992px) {
    .service-future-search__body {
        grid-template-columns: 1.05fr 1fr;
        gap: 64px;
    }
}

.service-future-search__left {
    display: flex;
    flex-direction: column;
}

/* Intros sit at the top of the left column */
.service-future-search__intro {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    margin: 0 0 16px;
}
.service-future-search__intro + .service-future-search__intro {
    margin-bottom: 28px;
}

/* Bullets */
.service-future-search__subheading {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 16px;
}
.service-future-search__bullets {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}
.service-future-search__bullet {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    line-height: 1.7;
}
.service-future-search__bullets li:first-child {
    border-top: 1px solid var(--color-border);
}
.service-future-search__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--color-secondary);
    margin-top: 6px;
    flex-shrink: 0;
}

/* CTA — sit left, don't stretch to card width */
.service-future-search__cta {
    align-self: flex-start;
}

/* ── Right column: wrapper for sticky flip card ──────── */
.service-future-search__right {
    /* On desktop this column stretches to match the left column's
       height (grid default). The flip card inside uses position:sticky
       against this stretched container — that's what gives it room
       to stay pinned while the left column scrolls. */
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service-future-search__flip {
    width: 100%;
    height: 300px;           /* Mobile default */
    perspective: 1000px;
    cursor: pointer;
}

/* Desktop: taller card, pinned in view while the left column scrolls */
@media (min-width: 992px) {
    .service-future-search__flip {
        height: 440px;
        position: sticky;
        top: 100px;          /* Clears sticky site header if present */
    }
}

.service-future-search__flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}
.service-future-search__flip:hover .service-future-search__flip-inner,
.service-future-search__flip.is-flipped .service-future-search__flip-inner,
.service-future-search__flip:focus-visible .service-future-search__flip-inner {
    transform: rotateY(180deg);
}
.service-future-search__flip-front,
.service-future-search__flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service-future-search__flip-front {
    background: var(--color-dark);
}
.service-future-search__flip-back {
    background: var(--color-secondary);
    transform: rotateY(180deg);
}
.service-future-search__flip-label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}
.service-future-search__flip-text {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 1.4;
}
.service-future-search__flip-hint {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.35);
    margin-top: 24px;
    letter-spacing: 0.05em;
}

/* ── Accessibility: respect reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
    .service-future-search__flip-inner {
        transition: none;
    }
}

/* ── AI Screenshot Frame ─────────────────────────────────────────────────── */
/*
 * Color theming uses CSS custom properties set inline on the .sfs-ai-frame
 * element by the PHP render functions. Fallbacks match the default teal card.
 *
 *   --sfs-accent          : accent color            (default: #2ec4b6)
 *   --sfs-accent-a20      : accent @ 20% opacity    (default: rgba(46,196,182,0.2))
 *   --sfs-accent-a40      : accent @ 40% opacity    (default: rgba(46,196,182,0.4))
 *   --sfs-glow-start      : glow gradient start     (default: rgba(46,196,182,0.55))
 *   --sfs-glow-end        : glow gradient end       (default: rgba(255,107,53,0.45))
 *   --sfs-pulse-sm        : pulse keyframe small    (default: 0 0 0 3px rgba(46,196,182,0.2))
 *   --sfs-pulse-lg        : pulse keyframe large    (default: 0 0 0 6px rgba(46,196,182,0.05))
 *   --sfs-icon-color      : active icon text color  (default: #0d1b36)
 */
.sfs-ai-frame {
    position: sticky;
    top: 100px;
    border-radius: 16px;
    overflow: hidden;
    background: #0d1b36;
    border: 1px solid var(--sfs-accent-a20, rgba(46,196,182,0.2));
}

/* Accent glow behind the card */
.sfs-ai-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    z-index: -1;
    background: linear-gradient(
        135deg,
        var(--sfs-glow-start, rgba(46,196,182,0.55)) 0%,
        var(--sfs-glow-end, rgba(255,107,53,0.45)) 100%
    );
    filter: blur(18px);
    transform: translateY(6px) scale(0.97);
}

/* Top bar */
.sfs-ai-frame__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sfs-ai-frame__app {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    font-family: inherit;
}

.sfs-ai-frame__live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    font-family: inherit;
}

.sfs-ai-frame__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sfs-accent, #2ec4b6);
    animation: sfs-pulse 2s ease infinite;
}

@keyframes sfs-pulse {
    0%, 100% { box-shadow: var(--sfs-pulse-sm, 0 0 0 3px rgba(46,196,182,0.2)); }
    50%       { box-shadow: var(--sfs-pulse-lg, 0 0 0 6px rgba(46,196,182,0.05)); }
}

/* Screenshot */
.sfs-ai-frame__img-wrap {
    position: relative;
    line-height: 0;
}

.sfs-ai-frame__img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.96) saturate(0.85) hue-rotate(8deg);
}

/* Subtle bottom fade so image blends into dark footer */
.sfs-ai-frame__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(13,27,54,0.55) 100%
    );
    pointer-events: none;
}

/* Footer */
.sfs-ai-frame__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.sfs-ai-frame__badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--sfs-accent, #2ec4b6);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: inherit;
}

.sfs-ai-frame__source {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-family: inherit;
}

/* ── Built-in AI graphic mockup (service template default) ── */
.sfs-graphic__dots {
    display: flex;
    gap: 5px;
    align-items: center;
}
.sfs-graphic__dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: block;
    font-style: normal;
}
.sfs-graphic__dots i:first-child  { background: #ff5f57; }
.sfs-graphic__dots i:nth-child(2) { background: #febc2e; }
.sfs-graphic__dots i:nth-child(3) { background: #28c840; }

.sfs-graphic__url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    font-family: inherit;
}

.sfs-graphic__body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sfs-graphic__query {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
}
.sfs-graphic__query svg {
    flex-shrink: 0;
    opacity: 0.45;
}

.sfs-graphic__answer {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px;
}

.sfs-graphic__answer-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sfs-accent, var(--color-secondary));
    margin-bottom: 10px;
}

.sfs-graphic__answer-text {
    font-size: 13px;
    color: rgba(255,255,255,0.68);
    line-height: 1.68;
    margin: 0 0 14px;
}
.sfs-graphic__answer-text strong {
    color: #fff;
    font-weight: 700;
}

.sfs-graphic__sources {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sfs-graphic__source {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 4px 10px 4px 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    font-family: inherit;
}

.sfs-graphic__source--active {
    border-color: var(--sfs-accent-a40, rgba(46,196,182,0.4));
    color: rgba(255,255,255,0.75);
}

.sfs-graphic__source-icon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: var(--sfs-accent, var(--color-secondary));
    color: var(--sfs-icon-color, #0d1b36);
    font-size: 9px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-style: normal;
    font-family: inherit;
}
.sfs-graphic__source:not(.sfs-graphic__source--active) .sfs-graphic__source-icon {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
}

.sfs-graphic__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    overflow: hidden;
}

.sfs-graphic__metric {
    background: rgba(13,27,54,0.9);
    padding: 14px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sfs-graphic__metric-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--sfs-accent, var(--color-secondary));
    letter-spacing: -0.02em;
    line-height: 1;
}

.sfs-graphic__metric-label {
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
