/* Only the homepage carousel; leave the shared header and other sliders alone. */
body.home header section.embaco-home-hero {
    position: relative; isolation: isolate; overflow: hidden; border-radius: 20px;
    width: calc(100% - 120px); max-width: none; aspect-ratio: var(--hero-ratio, 1.7857);
    min-height: 0; max-height: none; margin: 60px auto 50px; padding: 0;
    background: #344c5d; text-align: left; opacity: 1; transform: none;
}
body.home header section.embaco-home-hero .embaco-home-hero__slides,
body.home header section.embaco-home-hero .embaco-home-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; }
.embaco-home-hero [hidden] { display: none !important; }
.embaco-home-hero__slide.is-entering { z-index: 1; animation: embaco-hero-fade .5s ease both; }
.embaco-home-hero__slide.is-leaving { z-index: 0; pointer-events: none; }
@keyframes embaco-hero-fade { from { opacity: 0; } to { opacity: 1; } }
body.home header .embaco-home-hero img.embaco-home-hero__image {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
    object-fit: contain; border-radius: 0 !important; z-index: 0;
}
.embaco-home-hero__slide::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: rgba(0,0,0,.2);
}
.embaco-home-hero__copy {
    position: absolute; z-index: 1; right: 6%; top: 50%; transform: translateY(-50%);
    width: 30%; color: #fff;
}
body.home header .embaco-home-hero__copy h1,
body.home header .embaco-home-hero__copy h2 {
    font-size: clamp(28px, 3vw, 58px); font-weight: 300; line-height: 1.12;
    margin: 0 0 clamp(16px, 2vw, 36px); color: inherit; text-align: left; padding: 0;
    height: auto; min-height: 0; max-height: none;
}
body.home header .embaco-home-hero__copy p {
    font-size: clamp(16px, 1.45vw, 28px); line-height: 1.35; margin: 0 0 clamp(16px, 2vw, 36px); padding: 0;
    color: inherit; max-width: none;
}
.embaco-home-hero__slide--dark .embaco-home-hero__copy { color: #101010; }
.embaco-home-hero__industries {
    position: absolute; z-index: 2; top: 24px; bottom: 24px; left: 22px;
    width: clamp(80px, 8.5vw, 160px); display: flex; flex-direction: column; gap: 18px;
    margin: 0 !important;
}
.embaco-home-hero__links {
    display: grid; grid-template-columns: 100%; grid-auto-rows: calc((100% - 80px) / 5); gap: 20px; overflow-y: auto; overflow-x: hidden;
    scrollbar-width: none; flex: 1; min-height: 0; padding: 6px; scroll-behavior: smooth;
    align-items: center; justify-items: center; scroll-snap-type: y mandatory;
    container-type: size;
    box-sizing: border-box;
    scroll-padding: 6px;
}
.embaco-home-hero__links::-webkit-scrollbar { display: none; }
.embaco-home-hero a.embaco-home-hero__industry {
    --industry-size: min(calc((100cqh - 80px) / 5), 100cqw);
    --industry-font-size: clamp(12px, calc(var(--industry-size, 84px) / 6.5), 20px);
    position: relative !important; inset: auto !important; transform: none !important; height: var(--industry-size, 74px) !important; margin: 0 !important;
    width: var(--industry-size, 74px) !important; aspect-ratio: 1; flex: 0 0 auto; border-radius: 50%; box-sizing: border-box; scroll-snap-align: start;
    display: grid; place-items: center; padding: 8px 6px 4px;
    isolation: isolate; background: transparent; color: #fff;
    font-size: max(10px, calc(var(--industry-font-size) * var(--industry-font-scale, 1)));
    line-height: 1.2; text-align: center; text-decoration: none; border: 0;
    white-space: normal; text-wrap: balance;
}
.embaco-home-hero a.embaco-home-hero__industry::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit; background: rgba(0,0,0,.75);
    transition: background-color .2s ease, transform .2s ease;
}
.embaco-home-hero a.embaco-home-hero__industry:hover::before,
.embaco-home-hero a.embaco-home-hero__industry:focus-visible::before { background: #000; transform: scale(1.06); }
.embaco-home-hero button {
    cursor: pointer; font: inherit; border: 0; padding: 4px 10px; margin: 0; box-shadow: none;
}
.embaco-home-hero button.embaco-home-hero__scroll {
    color: #fff; background: transparent; height: 36px; min-height: 36px; display: flex; align-items: center; justify-content: center;
}
.embaco-home-hero [data-home-scroll]::before {
    content: ''; display: block; width: 23px; height: 23px;
    border-top: 2px solid currentColor; border-right: 2px solid currentColor;
    box-sizing: border-box; transform: rotate(-45deg);
}
.embaco-home-hero [data-home-scroll="1"]::before { transform: rotate(135deg); }
.embaco-home-hero button:disabled { opacity: .25; cursor: default; }
.embaco-home-hero a:focus-visible, .embaco-home-hero button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (min-width: 901px) and (max-width: 1100px) {
    body.home header section.embaco-home-hero { width: calc(100% - 60px); }
    .embaco-home-hero__copy { right: 4%; width: 39%; }
    body.home header .embaco-home-hero__copy h1, body.home header .embaco-home-hero__copy h2 { font-size: 28px; }
    body.home header .embaco-home-hero__copy p { font-size: 16px; line-height: 1.25; margin-bottom: 12px; }
    .embaco-home-hero__industries { top: 14px; bottom: 14px; left: 12px; gap: 10px; width: 88px; }
    .embaco-home-hero__links { gap: 10px; grid-auto-rows: calc((100% - 40px) / 5); }
    .embaco-home-hero a.embaco-home-hero__industry { --industry-size: min(calc((100cqh - 46px) / 5), calc(100cqw - 6px)); --industry-font-size: 11px; padding: 6px 4px 2px; }
    .embaco-home-hero button.embaco-home-hero__scroll { height: 26px; min-height: 26px; }
    body.home header .embaco-home-hero a.cta { font-size: 15px; padding: 12px 18px 8px; margin: 0; }
}
@media (max-width: 900px) {
    body.home header section.embaco-home-hero { width: calc(100% - 32px); margin-top: 90px; aspect-ratio: auto; min-height: 0; }
    body.home header section.embaco-home-hero .embaco-home-hero__slides { position: relative; display: grid; height: auto; }
    body.home header section.embaco-home-hero .embaco-home-hero__slide { position: relative; inset: auto; height: auto; grid-area: 1 / 1; display: flex; flex-direction: column; }
    body.home header section.embaco-home-hero .embaco-home-hero__slide[hidden] { display: flex !important; visibility: hidden; }
    body.home header .embaco-home-hero img.embaco-home-hero__image { position: relative; inset: auto; height: auto; width: 100%; aspect-ratio: var(--hero-ratio, 1.7857); object-fit: contain; }
    .embaco-home-hero__copy { position: relative; width: auto; inset: auto; transform: none; margin-top: -10px; padding: 24px 24px 126px; flex: 0 0 auto; background: #344c5d; }
    .embaco-home-hero__slide--dark .embaco-home-hero__copy { background: #f0f0f0; }
    body.home header .embaco-home-hero__copy h1, body.home header .embaco-home-hero__copy h2 { font-size: 34px; margin-bottom: 18px; }
    body.home header .embaco-home-hero__copy p { font-size: 18px; margin-bottom: 24px; }
    .embaco-home-hero__slide::after { display: block; inset: 0 0 auto; width: 100%; height: auto; aspect-ratio: var(--hero-ratio, 1.7857); }
    .embaco-home-hero__slide--dark { background: #f0f0f0; }
    .embaco-home-hero__industries { top: auto; bottom: 18px; left: 12px; right: 12px; width: auto; height: 90px; flex-direction: row; align-items: center; gap: 4px; }
    .embaco-home-hero__links { display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 12px; height: 90px; scroll-snap-type: x mandatory; align-items: center; }
    .embaco-home-hero a.embaco-home-hero__industry { width: 78px !important; height: 78px !important; --industry-font-size: 12px; }
    .embaco-home-hero button.embaco-home-hero__scroll { font-size: 27px; transform: rotate(-90deg); width: 22px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .embaco-home-hero__links { scroll-behavior: auto; } }
@media (min-width: 768px) and (max-width: 1100px) { body.home header section.embaco-home-hero { margin-top: 36px; } }
