/* homepage-polish.css - load LAST in <head>, after homepage-updates.css */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
::selection { background: #f7941e; color: #fff; }
:focus-visible { outline: 3px solid #f7941e; outline-offset: 3px; border-radius: 6px; }

/* top scroll-progress bar */
#ecsProgress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2100;
    background: linear-gradient(90deg, #f7941e, #f4611e, #6c5ce7);
    pointer-events: none;
}

/* hero: gradient accent + floating UI cards */
.ecs-smb-hero h1 span {
    background: linear-gradient(90deg, #f7941e, #f4611e);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.ecs-photo-ui-card { animation: ecsFloat 6s ease-in-out infinite; }
.ecs-photo-agent { animation-delay: -3s; }
@keyframes ecsFloat { 50% { translate: 0 -9px; } }

/* buttons */
.ecs-btn { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.ecs-btn:hover { transform: translateY(-2px); }
.ecs-btn-primary { box-shadow: 0 12px 28px rgba(244, 97, 30, .35); }
.ecs-btn-primary:hover { box-shadow: 0 16px 34px rgba(244, 97, 30, .45); filter: brightness(1.05); }

/* card hover lift */
.ecs-service-card, .ecs-industry-card, .ecs-product-card, .ecs-flow-step,
.ecs-agent-type-card, .demo-card, .ecs-ai-benefit {
    transition: transform .3s ease, box-shadow .3s ease;
}
.ecs-service-card:hover, .ecs-industry-card:hover, .ecs-product-card:hover,
.ecs-flow-step:hover, .ecs-agent-type-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(28, 28, 58, .14); }
.demo-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(28, 28, 58, .14); }
.ecs-industry-photo { transition: transform .6s ease; }
.ecs-industry-card:hover .ecs-industry-photo { transform: scale(1.05); }

/* AI carousel card */
.ecs-agent-proof-card { box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.ecs-slide img { border-radius: 10px; }

/* demo cards: consistent, centred logo thumbs (replaces per-card padding hacks) */
.demos-grid .demo-thumb { display: flex; align-items: center; justify-content: center; }
.demos-grid .demo-thumb img {
    padding-top: 0 !important; margin: 0 auto;
    width: auto; max-width: 72%; max-height: 110px; object-fit: contain;
    border-radius:22px;
}

/* scroll reveal (class added by JS, so no-JS visitors still see everything) */
.ecs-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ecs-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ecs-photo-ui-card { animation: none; }
    .ecs-reveal { opacity: 1; transform: none; transition: none; }
}
