/* Hero slideshow — images are managed in the hero section or site settings. */
.hero .hero-visual:has(.hero-slider){aspect-ratio:1.13;min-height:415px;height:auto;overflow:visible;display:block;isolation:isolate}
.hero-slider{height:100%;min-height:415px;width:100%;position:relative;overflow:hidden;border-radius:clamp(18px,2vw,30px);background:#153440;border:1px solid color-mix(in srgb,var(--brand) 12%,#fff);box-shadow:0 26px 65px #102e3931;isolation:isolate}
.hero-slide-stack,.hero-slide,.hero-slide>a{position:absolute;inset:0;margin:0;overflow:hidden}
.hero-slide{display:block;opacity:0;visibility:hidden;z-index:0;transform:translateZ(0);transition:opacity .75s ease,transform .75s cubic-bezier(.2,.8,.2,1),visibility .75s}
.hero-slide.is-active{opacity:1;visibility:visible;z-index:1}
.hero-slide img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.hero-slide::after{content:'';position:absolute;inset:48% 0 0;background:linear-gradient(0deg,#071e2ddf,#071e2d06);pointer-events:none;z-index:1}
.hero-slide figcaption{position:absolute;inset-inline:0;bottom:0;padding:28px 30px 64px;color:#fff;z-index:2;text-shadow:0 2px 8px #0016;display:grid;gap:5px;pointer-events:none}
.hero-slide figcaption strong{font-size:clamp(18px,2.15vw,29px);line-height:1.55;color:#fff}
.hero-slide figcaption span{font-size:13px;line-height:1.8;color:#e1eff2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-slider[data-transition=slide] .hero-slide{transform:translateX(102%);opacity:1}
.hero-slider[data-transition=slide][data-direction=prev] .hero-slide:not(.is-active){transform:translateX(-102%)}
.hero-slider[data-transition=slide] .hero-slide.is-active{transform:translateX(0)}
.hero-slider[data-transition=zoom] .hero-slide{transform:scale(1.13)}
.hero-slider[data-transition=zoom] .hero-slide.is-active{transform:scale(1)}
.hero-slider[data-transition=flip] .hero-slide{transform:perspective(850px) rotateY(-78deg);transform-origin:center}
.hero-slider[data-transition=flip] .hero-slide.is-active{transform:perspective(850px) rotateY(0)}
.hero-slider-controls{position:absolute;bottom:13px;inset-inline:15px;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:6px;direction:ltr}
.hero-slider-controls button{width:38px;height:38px;border:1px solid #ffffff69;color:#fff;background:#0a263b9c;backdrop-filter:blur(8px);border-radius:11px;font-size:22px;display:grid;place-items:center;cursor:pointer;transition:background .2s,transform .2s}
.hero-slider-controls button[data-hero-pause]{font-size:14px}
.hero-slider-controls button:hover{background:#16445dd9;transform:translateY(-2px)}
.hero-slider-controls [data-hero-count]{font:600 12px system-ui,sans-serif;color:#fff;background:#0a263b99;padding:7px 10px;border-radius:10px;min-width:64px;text-align:center}
.hero-slider-dots{position:absolute;bottom:19px;inset-inline-start:17px;z-index:6;max-width:48%;display:flex;align-items:center;gap:6px;flex-wrap:nowrap;overflow-x:auto;max-height:18px;scrollbar-width:none}
.hero-slider-dots button{height:8px;width:8px;border-radius:50%;padding:0;background:#ffffff90;border:0;cursor:pointer;transition:width .2s,background .2s}
.hero-slider-dots button[aria-current=true]{background:#fff;width:22px;border-radius:6px}
.hero-slider :focus-visible{outline:3px solid var(--accent);outline-offset:2px}
/* Cover cards: a real photograph replaces, rather than overlaps, the Font Awesome illustration. */
.news-card.has-cover,.product-card.has-cover,.branch-card.has-cover,.service-card.has-cover,.block-card.has-cover{position:relative;isolation:isolate;overflow:hidden;background:#193745;color:white}
.news-card.has-cover,.product-card.has-cover{display:flex;flex-direction:column;min-height:370px}
.news-card.has-cover .news-art,.product-card.has-cover .product-art{position:absolute;inset:0;height:100%;width:100%;z-index:0;border-radius:inherit;background:#193745}
.news-card.has-cover .news-art img,.product-card.has-cover .product-art img,.branch-cover img,.service-card-cover img,.block-card-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .65s ease}
.news-card.has-cover::before,.product-card.has-cover::before,.branch-card.has-cover::before,.service-card.has-cover::before,.block-card.has-cover::before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(to top,#071c29f5 1%,#123341b5 48%,#1025301a 90%);pointer-events:none}
.news-card.has-cover .news-art::after,.product-card.has-cover .product-art::before,.product-card.has-cover .product-art::after{display:none}
.news-card.has-cover .news-body,.product-card.has-cover .product-body{margin-top:auto;position:relative;z-index:2;padding:30px 25px 25px;color:white}
.news-card.has-cover .news-body h3,.news-card.has-cover .news-body p,.news-card.has-cover .news-meta,.news-card.has-cover .news-meta span,.news-card.has-cover .text-link,.product-card.has-cover .product-body h3,.product-card.has-cover .product-body p,.product-card.has-cover .product-footer span,.product-card.has-cover .category-label{color:#fff}
.news-card.has-cover .news-body h3,.product-card.has-cover .product-body h3{line-height:1.6;text-shadow:0 2px 8px #0005}
.news-card.has-cover .news-meta,.news-card.has-cover .news-body p,.product-card.has-cover .product-body p{color:#e0ebed}
.product-card.has-cover .product-footer{border-color:#ffffff40}
.product-card.has-cover .product-footer .arrow-circle{background:#ffffff29;color:#fff}
.news-card.has-cover:hover .news-art img,.product-card.has-cover:hover .product-art img,.branch-card.has-cover:hover img,.service-card.has-cover:hover img,.block-card.has-cover:hover img{transform:scale(1.055)}
.branch-card.has-cover,.service-card.has-cover,.block-card.has-cover{min-height:315px;display:flex;flex-direction:column;justify-content:flex-end}
.branch-card.has-cover .branch-cover,.service-card.has-cover .service-card-cover,.block-card.has-cover .block-card-cover{position:absolute;inset:0;z-index:0}
.branch-card.has-cover .branch-cover-content,.block-card.has-cover .block-card-copy{position:relative;z-index:2}
.branch-card.has-cover :is(h3,p,a,.chip),.service-card.has-cover :is(h3,p,a,.service-number),.block-card.has-cover :is(h3,p,a,.block-card-value){color:white}
.branch-card.has-cover .chip,.branch-card.has-cover .branch-phones a{background:#ffffff2a;color:white;border:1px solid #ffffff35}
.service-card.has-cover > :not(.service-card-cover){position:relative;z-index:2}
.service-card.has-cover .service-card-top{position:relative;z-index:2;margin-bottom:10px}
.service-card.has-cover .service-icon{display:none}
.service-card.has-cover .service-number{margin-inline-start:auto}
.block-card.has-cover{padding:28px;min-height:325px}
.block-card.has-cover .block-card-copy{margin-top:auto}
.block-card.has-cover .block-card-copy>a{color:#fff;border-color:#ffffff54;background:#ffffff30}
/* Admin slider editor, accessible with keyboard and media picker. */
.hero-slide-editor{display:grid;gap:14px;margin:16px 0 25px}
.hero-slide-editor>.btn{justify-self:start}
.hero-slide-row{border:1px solid var(--line);background:var(--paper);box-shadow:0 6px 18px #0c314309}
.form-grid>.hero-slide-editor{grid-column:1/-1}
.hero-slide-row .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.hero-slide-row .field{min-width:0}
.hero-slide-row .studio-repeat-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hero-slide-row .row-actions{display:flex;gap:4px}
@media(max-width:850px){.hero .hero-visual:has(.hero-slider),.hero-slider{min-height:340px}.hero-slide figcaption{padding:25px 18px 64px}}
@media(max-width:580px){.hero .hero-visual:has(.hero-slider),.hero-slider{min-height:285px}.hero-slider{border-radius:16px}.hero-slider-controls{bottom:9px;inset-inline:8px}.hero-slider-controls button{width:32px;height:32px}.hero-slide figcaption strong{font-size:19px}.hero-slide figcaption span{font-size:11px}.hero-slide figcaption{padding-inline:15px;padding-bottom:57px}.hero-slide-editor .form-grid{grid-template-columns:1fr}.hero-slide-row .field{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.hero-slide,.hero-slider-controls button,.news-card.has-cover img,.product-card.has-cover img,.branch-cover img,.service-card-cover img,.block-card-cover img{transition:none!important;animation:none!important}}
.hero-slide{transition-property:opacity,transform,visibility,filter,clip-path;transition-duration:var(--slide-duration,750ms)}.hero-slider-dots{inset-inline-start:auto;left:17px;right:auto;max-width:calc(100% - 215px)}.hero-slider-controls{inset-inline:15px;pointer-events:none}.hero-slider-controls>*{pointer-events:auto}
.hero-slider[data-transition=blur] .hero-slide{filter:blur(18px);transform:scale(1.04)}.hero-slider[data-transition=blur] .hero-slide.is-active{filter:none;transform:scale(1)}.hero-slider[data-transition=lift] .hero-slide{transform:translateY(20%)}.hero-slider[data-transition=lift] .hero-slide.is-active{transform:none}.hero-slider[data-transition=curtain] .hero-slide{clip-path:inset(0 50%)}.hero-slider[data-transition=curtain] .hero-slide.is-active{clip-path:inset(0)}.hero-slider[data-transition=pan] .hero-slide{transform:translateX(-14%) scale(1.08)}.hero-slider[data-transition=pan] .hero-slide.is-active{transform:none}.hero-slider[data-transition=kenburns] .hero-slide.is-active img{animation:hero-kenburns 12s linear both}.hero-slider[data-transition=reveal] .hero-slide{clip-path:inset(100% 0 0)}.hero-slider[data-transition=reveal] .hero-slide.is-active{clip-path:inset(0)}.hero-slider[data-transition=stack] .hero-slide{transform:translateY(12%) scale(.88) rotate(3deg)}.hero-slider[data-transition=stack] .hero-slide.is-active{transform:none}.hero-slider[data-transition=none] .hero-slide{transition:none}@keyframes hero-kenburns{from{transform:scale(1)}to{transform:scale(1.12)}}@media(max-width:540px){.hero-slider-dots{max-width:calc(100% - 185px);left:12px}.hero-slider-controls [data-hero-count]{min-width:48px;padding-inline:5px}}@media(prefers-reduced-motion:reduce){.hero-slide img{animation:none!important}.hero-slide{filter:none!important;clip-path:none!important;transform:none!important}}

/* Visible image links are independent of the optional captions. */
.hero-slide-cta{position:absolute;z-index:3;inset-inline-start:24px;bottom:66px;display:inline-flex;align-items:center;gap:14px;max-width:calc(100% - 48px);min-height:43px;padding:10px 17px;border:1px solid #ffffff80;border-radius:12px;background:#fff;color:var(--brand);font-size:13px;font-weight:700;line-height:1.5;box-shadow:0 8px 25px #001c3524;transition:background .2s,transform .2s;overflow-wrap:anywhere}
.hero-slide-cta>span{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hero-slide-cta>.fa-solid{flex-shrink:0;font-size:12px}
.hero-slide>a:hover .hero-slide-cta,.hero-slide>a:focus-visible .hero-slide-cta{background:var(--brand);color:#fff;transform:translateY(-2px)}
.hero-slide>a:focus-visible{outline-offset:-5px}.hero-slide.has-slide-link figcaption{padding-bottom:128px}
.hero-step-label{display:none}.hero-slider-controls button>.fa-solid{font-size:14px}.hero-slider-dots button{flex-shrink:0}
.hero-image-link{position:absolute;inset-block-start:20px;inset-inline-end:20px;z-index:4;display:inline-flex;align-items:center;gap:12px;max-width:calc(100% - 40px);padding:12px 18px;background:var(--brand);color:#fff;border:1px solid #ffffff70;border-radius:14px;font-size:13px;font-weight:700;box-shadow:0 8px 24px #0b34442b;overflow-wrap:anywhere}
.hero-image-link:focus-visible{outline:3px solid var(--accent);outline-offset:4px}

.hero-slide figcaption strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
