/* Compatibility styling for reorderable ACF sections using the established theme design. */
.section img,.application-grid img,.process-grid img{max-width:100%;height:auto}
.process-grid article,.application-grid article{position:relative}
.application-grid article{min-height:150px;padding:25px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;justify-content:flex-end}
.application-grid article h3{font-size:22px;line-height:1.2;margin:10px 0}
.application-grid article b{display:none}
.application-grid article img{width:100%;aspect-ratio:1.6;object-fit:cover;margin-bottom:auto}
.process-grid article>img,.process-grid li>img{width:100%;aspect-ratio:1.5;object-fit:cover;margin-bottom:20px}
.section-subheading{max-width:720px;color:var(--muted);font-size:18px}
.quality .section-subheading{color:#d0dce0}
.layout--image_right>div:first-child{order:2}
.layout--centered{grid-template-columns:1fr;text-align:center;max-width:900px}
.layout--centered .section-subheading{margin-left:auto;margin-right:auto}
.factory-gallery img,.card-grid>img{width:100%;aspect-ratio:1.3;object-fit:cover}
.single-product details,.section details{padding:18px 0;border-bottom:1px solid var(--line)}
.single-product summary,.section summary{cursor:pointer;font-weight:700;font-size:18px}
.footer-socials{display:flex;gap:14px;align-items:center}
.footer-socials img{width:28px;height:28px;object-fit:contain}
@media(max-width:800px){.application-grid article{min-height:105px;padding:17px}.layout--image_right>div:first-child{order:0}}

/* Header contrast: dark on light pages, white when a dark hero begins the page. */
.site-header{color:var(--ink)}
body:has(#main-content>.hero) .site-header,
body:has(#main-content>.archive-hero) .site-header{color:var(--white)}
.site-header{position:fixed;top:0;z-index:9990;transition:background-color .2s ease,box-shadow .2s ease,color .2s ease}
.admin-bar .site-header{top:32px}
.site-header.is-scrolled{background:rgba(9,22,30,.96);box-shadow:0 8px 28px rgba(9,22,30,.16);color:var(--white)}

/* Homepage polish. Scoped to the front page so internal templates retain their layout. */
body.home{--home-radius:8px;--home-shadow:0 18px 55px rgba(16,36,50,.12)}
body.home #main-content{overflow:hidden}
body.home #main-content>.hero{min-height:760px;padding:150px 0 80px;background-color:var(--navy);background-size:cover;background-position:center}
body.home .hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,25,36,.94) 0%,rgba(8,25,36,.78) 48%,rgba(8,25,36,.22) 100%);pointer-events:none}
body.home .hero__content{padding-top:0}
body.home .hero__content>*{position:relative;z-index:2}
body:is(.home,.is-home) .gutenberg-home .hero__content{width:min(calc(100% - 120px),960px);margin-right:auto;margin-left:auto;padding:20px 0 0}
body.home .gutenberg-home .hero__content>.eyebrow{margin-bottom:22px}
body.home .gutenberg-home .hero__content>h1{margin-bottom:28px}
body.home .gutenberg-home .hero__content>.hero__lead{margin-bottom:0}
body.home .gutenberg-home .hero__content>.button-group{margin-top:34px}
body.home .hero h1{max-width:760px;font-size:clamp(48px,6.2vw,76px);line-height:.98;font-weight:800;letter-spacing:-.05em}
body.home .hero__lead{max-width:620px;font-size:19px;line-height:1.65;color:rgba(255,255,255,.82)}
body.home .button{min-height:48px;padding:12px 22px;border-radius:6px;font-size:12px;box-shadow:0 10px 28px rgba(230,111,53,.2)}
body.home .button:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(16,36,50,.18)}
body.home .button--outline{box-shadow:none;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.42)}
body.home .text-link{gap:10px}
body.home #main-content>.section{padding:104px 0}
body.home .section h2{max-width:760px;font-size:clamp(36px,4.4vw,54px);line-height:1.06;font-weight:780;letter-spacing:-.04em}
body.home .section-subheading,body.home .entry-content{font-size:18px;line-height:1.68}
body.home .section-heading{align-items:flex-end;margin-bottom:46px}
body.home .section-heading>div{max-width:780px}
body.home .split-grid{gap:64px;align-items:center}
body.home .split-grid>div:first-child:empty{display:none}
body.home .split-grid>div:first-child:empty+div{grid-column:1/-1;max-width:820px}
body.home .split-grid img{width:100%;aspect-ratio:1.28/1;object-fit:cover;border-radius:var(--home-radius);box-shadow:var(--home-shadow)}
body.home .stat-grid{margin-top:64px;border:1px solid var(--line);border-radius:var(--home-radius);overflow:hidden;gap:1px;padding:0;background:var(--line)}
body.home .stat-grid>*,body.home .process-grid article{background:#fff}
body.home .stat-grid>*{min-height:145px;padding:25px;display:flex;flex-direction:column;justify-content:space-between}
body.home .card-grid{gap:18px}
body.home .product-card{overflow:hidden;border:1px solid var(--line);border-radius:var(--home-radius);box-shadow:0 8px 24px rgba(16,36,50,.05)}
body.home .product-card:hover{transform:translateY(-6px);box-shadow:var(--home-shadow)}
body.home .product-card__image{aspect-ratio:1.45/1;background-color:#dfe8e9}
body.home .product-card__content{min-height:210px;padding:26px}
body.home .product-card strong{font-size:24px}
body.home .process-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;overflow:hidden;border:1px solid var(--line);border-radius:var(--home-radius);background:var(--line)}
body.home .process-grid article{min-height:245px;padding:28px;border:0}
body.home .process-grid article b{display:inline-grid;width:44px;height:44px;place-items:center;border-radius:6px;background:var(--paper);color:var(--blue);font-size:12px}
body.home .process-grid article h3{font-size:23px;line-height:1.18;margin:22px 0 10px}
body.home .process-grid article p,body.home .process-grid article>div{color:var(--muted);line-height:1.62}
body.home #main-content>.quality{padding:110px 0;background-color:var(--navy)}
body.home .quality__inner{grid-template-columns:.9fr 1.1fr;gap:70px}
body.home .quality__inner img{width:100%;aspect-ratio:1.28/1;object-fit:cover;border-radius:var(--home-radius);box-shadow:0 24px 65px rgba(0,0,0,.3)}
body.home .quality h2{color:#fff}
body.home .quality .entry-content,body.home .quality .section-subheading{color:rgba(255,255,255,.76)}
body.home .application-grid{gap:18px;border:0}
body.home .application-grid article{min-height:230px;padding:26px;border:1px solid var(--line);border-radius:var(--home-radius);background:linear-gradient(180deg,#fff,var(--paper));justify-content:flex-start;overflow:hidden}
body.home .application-grid article img{width:calc(100% + 52px);max-width:none;margin:-26px -26px 22px;aspect-ratio:1.8/1;object-fit:cover}
body.home .application-grid article h3{font-size:23px;margin:8px 0 10px}
body.home .application-grid article>div{color:var(--muted);line-height:1.58}
body.home .contact-cta{padding:88px 0;background-color:var(--navy);background-size:cover;background-position:center}
body.home .contact-cta__inner{position:relative;z-index:1}
body.home .contact-cta h2{max-width:780px;font-size:clamp(38px,4.5vw,58px);font-weight:780}
body.home .contact-cta .section-subheading,body.home .contact-cta .entry-content{color:rgba(255,255,255,.78)}

/* Gutenberg hero follows the established inner-page hero proportions. */
body:is(.home,.is-home) .gutenberg-home>.hero{min-height:0;display:block;padding:185px 0 85px;background-color:var(--navy)}
body:is(.home,.is-home) .gutenberg-home>.hero:after{display:none}
body:is(.home,.is-home) .gutenberg-home .hero__content{width:min(calc(100% - 48px),var(--max));max-width:none;margin:auto;padding:0}
body:is(.home,.is-home) .gutenberg-home .hero__content>h1{max-width:780px;margin:0;font-size:clamp(43px,5vw,68px);line-height:1.05;letter-spacing:-.045em}
body:is(.home,.is-home) .gutenberg-home .hero__content>.hero__lead{max-width:620px;margin:20px 0 0;color:#d8e8eb;font-size:18px;line-height:1.6}
body:is(.home,.is-home) .gutenberg-home .hero__content>.button-group{margin-top:32px}

@media(max-width:900px){
body.home #main-content>.hero{min-height:680px;padding:130px 0 70px}
body:is(.home,.is-home) .gutenberg-home .hero__content{width:min(calc(100% - 48px),720px);padding-top:12px}
body.home #main-content>.section{padding:78px 0}
body.home .split-grid,body.home .quality__inner{grid-template-columns:1fr;gap:38px}
body.home .quality__inner{gap:44px}
body.home .process-grid{grid-template-columns:1fr 1fr}
body.home .application-grid{grid-template-columns:1fr 1fr}
body:is(.home,.is-home) .gutenberg-home>.hero{min-height:0;padding:155px 0 75px}
body:is(.home,.is-home) .gutenberg-home .hero__content{width:min(calc(100% - 40px),var(--max));max-width:none;padding:0}
}
@media(max-width:640px){
body.home #main-content>.hero{min-height:640px;padding:115px 0 58px}
body:is(.home,.is-home) .gutenberg-home .hero__content{width:calc(100% - 40px);padding-top:0}
body.home .gutenberg-home .hero__content>.button-group{margin-top:28px}
body.home .hero:after{background:linear-gradient(90deg,rgba(8,25,36,.94),rgba(8,25,36,.72))}
body.home .hero h1{font-size:42px}
body.home .hero__lead{font-size:17px}
body.home #main-content>.section{padding:66px 0}
body.home .section h2{font-size:36px}
body.home .section-heading{align-items:flex-start;margin-bottom:32px}
body.home .process-grid,body.home .application-grid{grid-template-columns:1fr}
body.home .process-grid article{min-height:auto;padding:24px}
body.home .application-grid article{min-height:200px}
body.home .contact-cta{padding:64px 0}
body:is(.home,.is-home) .gutenberg-home>.hero{min-height:0;padding:125px 0 62px}
body:is(.home,.is-home) .gutenberg-home .hero__content{width:calc(100% - 40px);padding:0}
body:is(.home,.is-home) .gutenberg-home .hero__content>h1{font-size:40px}
}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
