/* Shared responsive layout for every Tormec page. */
:root{--page-gutter:clamp(16px,3vw,40px);--header-height:102px}
.wrap{width:min(1240px,calc(100% - var(--page-gutter)*2))}
html{scroll-padding-top:calc(var(--header-height) + 20px)}
body{min-width:0}
main,section,article,form,nav,.wrap>*,.company-grid>*,.course-grid>*,.gallery>*,.footer-main>*,.values-grid>*{min-width:0}
p,address,form small,.contact-copy>a,.footer-main a,.gallery-item span{overflow-wrap:anywhere}
h1,h2,h3{overflow-wrap:break-word}
img,video{max-width:100%}
.button{max-width:100%;white-space:normal;line-height:1.45;text-align:center;min-height:44px}
.button span{flex-shrink:0}
button,summary{min-height:44px}
.header-inner{gap:clamp(16px,2vw,30px)}
.brand{flex-shrink:0}
.header-inner nav{min-width:0}
.header-inner>.button{flex-shrink:0}
.company-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.course-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
.values-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.contact{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(30px,6vw,85px)}
.footer-main{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.2fr);gap:clamp(25px,4vw,50px)}
form input,form select,form textarea{font-size:16px;min-height:48px;max-width:100%;min-width:0}
.search{min-width:0;max-width:100%;width:320px;min-height:48px}
.search input{min-width:0;font-size:16px}
.filters button{min-height:44px;padding:10px 16px}
.card-body button{min-height:44px;align-items:center;gap:12px}
.card-media{height:auto;aspect-ratio:16/10}
.card-media img{position:absolute;inset:0;width:100%;height:100%}
.company-card p{min-height:0}
.company-card{display:flex;flex-direction:column}
.company-card>div:last-child{display:flex;flex-direction:column;flex:1}
.company-card .text-link{margin-top:auto}
.company-card-media{flex-shrink:0}
.gallery-item img{height:clamp(190px,19vw,270px)}
.gallery-item span{min-height:56px;align-items:center;line-height:1.5}
.company-hero>.wrap{min-height:clamp(460px,43vw,650px);padding:clamp(55px,6vw,85px) 0}
.company-hero>.wrap>img{left:calc(var(--page-gutter)*-1);right:auto;width:100vw;max-width:none}
@media(min-width:1320px){.company-hero>.wrap>img{left:calc((1240px - 100vw)/2)}}
.company-hero h1,.hero h1{font-size:clamp(36px,5vw,72px);line-height:1.1;letter-spacing:-.04em}
.company-hero p{max-width:470px}
.company-hero .illustrative-label{max-width:100%;position:absolute;bottom:16px;right:0}
.hero-inner{min-height:clamp(490px,45vw,650px)}
.hero-copy{padding:clamp(50px,6vw,80px) 0;max-width:min(660px,100%)}
.hero-bottom .wrap{height:auto;min-height:60px;gap:16px;padding-top:12px;padding-bottom:12px}
.hero-bottom .wrap span{min-width:0}
/* Slides share a grid row and grow to the tallest content; controls occupy their own row. */
.banner-carousel{display:grid;grid-template-columns:minmax(0,1fr);height:auto}
.banner-slide{position:relative;inset:auto;grid-area:1/1;min-width:0;min-height:clamp(470px,40vw,620px);display:flex}
.banner-content{height:auto;min-height:inherit;padding-top:clamp(45px,5vw,75px);padding-bottom:clamp(55px,6vw,85px);justify-content:center}
.banner-content h1,.banner-content h2{font-size:clamp(34px,4.6vw,69px);letter-spacing:-.04em;line-height:1.1}
.banner-content p{max-width:min(445px,100%)}
.banner-controls{position:relative;grid-area:2/1;inset:auto}
.banner-control-inner{height:auto;min-height:88px;gap:20px;padding-top:12px;padding-bottom:12px}
.banner-dots{align-self:stretch;gap:clamp(16px,2.5vw,32px)}
.banner-dot{min-height:52px}
.banner-dot:before{top:-13px}
.banner-arrows button{width:44px;height:44px;flex-shrink:0}
.banner-photo-note{right:var(--page-gutter);bottom:16px;max-width:calc(100% - 32px)}
.banner-carousel:not(.is-enhanced) .banner-slide{display:none}
.banner-carousel:not(.is-enhanced) .banner-slide.is-active{display:flex}
.location-panel{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
dialog{max-width:calc(100% - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.dialog-close{min-width:44px;min-height:44px;top:4px;right:5px;line-height:1}
#image-dialog{padding:50px 16px 18px}
#large-image{height:auto;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);object-fit:contain}
.video-section video{height:auto;max-height:75vh;max-height:75dvh}
.whatsapp{min-height:48px;bottom:max(16px,env(safe-area-inset-bottom));right:max(16px,env(safe-area-inset-right))}
@media(max-width:1100px){.header-inner nav{gap:17px}.header-inner>.button.small{font-size:11px;padding:13px}.course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1024px){
 :root{--header-height:80px}
 .header-inner{height:var(--header-height);gap:16px}
 .brand img{width:158px}.brand span{font-size:7px;letter-spacing:.8px}
 .header-inner>.button.small{margin-left:auto;display:inline-flex;font-size:12px;padding:12px 18px}
 .menu{display:grid;place-items:center;background:transparent;border:1px solid var(--line);border-radius:4px;color:var(--purple);font-size:25px;width:44px;min-width:44px;height:44px;padding:0}
 #nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;padding:16px var(--page-gutter);background:white;box-shadow:0 12px 25px #21154820;border-bottom:3px solid var(--red);max-height:calc(100vh - 125px);max-height:calc(100dvh - 125px);overflow-y:auto;overscroll-behavior:contain}
 #nav.open{display:flex;flex-direction:column;gap:0}
 #nav a,#nav .group-menu summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px;font-size:14px}
 .group-dropdown{position:static;width:auto;max-width:100%;box-shadow:none;border:0;border-left:2px solid var(--yellow);margin:0 0 12px 12px;padding:0 8px;background:var(--bg)}
 #nav .group-dropdown a{font-size:13px}
 .company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .company-card-media{aspect-ratio:16/10}
 .about{gap:36px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .about h2{font-size:32px}.about-image>img{height:370px}.since{right:0;padding:15px 20px;gap:15px}.since strong{font-size:36px}
 .steps{grid-template-columns:1fr;gap:30px}.steps ol{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
 .faq{gap:35px;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
 .business-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:35px}.business h2{font-size:36px}
 .contact{gap:30px}.contact form{padding:26px}
 .values-grid{gap:25px}.values-grid article{padding-right:20px}.values-grid h2{font-size:25px}
}
@media(max-width:850px){.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.contact{grid-template-columns:1fr;gap:34px}.contact form{width:100%;max-width:650px}.values-grid{grid-template-columns:1fr;gap:26px}.values-grid article{border-right:0;border-bottom:1px solid var(--line);padding:0 0 25px}.values-grid article:last-child{border-bottom:0}.footer-main{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-main>div:first-child{grid-column:1/-1}.banner-content h1,.banner-content h2{font-size:clamp(36px,6vw,51px)}}
@media(max-width:760px){
 .topbar .wrap{height:auto;min-height:30px;gap:8px;padding-top:5px;padding-bottom:5px}.topbar span{font-size:8px;letter-spacing:.45px}.topbar a{font-size:10px;flex-shrink:0}
 .brand img{width:140px}.brand span{font-size:6px;letter-spacing:.7px}.header-inner{gap:12px}.header-inner>.button.small{font-size:11px;padding:10px 12px;gap:8px}
 .company-hero>.wrap{min-height:440px;padding:55px 0 65px}.company-hero h1,.hero h1{font-size:clamp(36px,7vw,51px)}
 .company-hero p{font-size:15px;max-width:100%;margin:22px 0 28px}.company-hero>.wrap>img{left:calc(var(--page-gutter)*-1);right:auto}
 .banner-slide{min-height:470px}.banner-content{padding-top:45px;padding-bottom:55px}.banner-content h1,.banner-content h2{font-size:clamp(34px,6.5vw,47px)}.banner-content p{font-size:15px;line-height:1.75;margin:22px 0 26px;max-width:390px}.banner-kicker{font-size:9px;line-height:1.6;margin-bottom:20px}.banner-content .button{min-height:48px}
 .banner-control-inner{min-height:108px;flex-direction:column;gap:12px;padding-top:12px;padding-bottom:12px}.banner-dots{align-self:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;height:auto}.banner-dot{min-height:44px;flex-direction:row;justify-content:center;gap:7px;font-size:11px}.banner-dot span{font-size:9px}.banner-arrows{gap:10px}.banner-photo-note{bottom:14px;font-size:8px}
 .hero-inner{min-height:460px}.hero-copy{padding:50px 0 60px}.hero p{font-size:15px;max-width:100%}.hero-bottom .wrap{flex-wrap:wrap;justify-content:flex-start;gap:7px 18px}.hero-bottom .wrap span:first-child{flex:1 1 65%}.hero-bottom .wrap span:nth-child(2){font-size:11px;order:3;flex-basis:100%}.hero-bottom a{margin-left:auto;min-width:44px;min-height:44px;display:grid;place-items:center}
 .company-card h3{font-size:23px}.company-card p{font-size:14px}.company-card>div:last-child{padding:22px}.company-card .text-link{font-size:13px;min-height:44px;display:flex;align-items:center}
 .card-media{height:auto}.card-body{padding:22px}.card-body h3{font-size:22px}.card-body p{font-size:14px}.card-body button{font-size:14px}.card-category{font-size:10px;line-height:1.5}
 .about{grid-template-columns:1fr;gap:30px}.about-image>img{height:auto;aspect-ratio:4/3;object-fit:cover}.about h2{font-size:32px}
 .business-inner,.faq{grid-template-columns:1fr;gap:28px}.business h2{font-size:34px}.business-copy p{max-width:100%}
 .section-top h2,.editorial h2{font-size:clamp(29px,5vw,36px)}.gallery-section h2{font-size:clamp(28px,5vw,34px)}
 .section-top p,.editorial p,.about p,.faq details p,.steps li p,.values-grid p,.values-grid ul{font-size:15px}.steps h3{font-size:19px;line-height:1.3}
 .pathways{grid-template-columns:1fr}.pathways>a{border-right:0;gap:14px}.pathways>a>div{min-width:0}.pathways p{font-size:13px}.pathways>a>span:last-child{flex-shrink:0}
 .course-toolbar{gap:18px}.search{width:100%;max-width:none}.filters{gap:8px}.filters button{font-size:12px}
 .location-panel{grid-template-columns:1fr;padding:28px;gap:24px}.location-panel .button{justify-self:start}
 .gallery-item img{height:220px}.gallery-item span{font-size:13px;padding:16px}
 .footer-main p,.footer-main a,.footer-main span{font-size:13px}.footer-main a{padding:5px 0;line-height:1.6}.footer-bottom{display:block;padding-bottom:100px}
 dialog{padding:48px 22px 25px}dialog h2{font-size:29px}dialog p{font-size:15px}.dialog-close{font-size:30px}
 .whatsapp span{display:none}.whatsapp{width:50px;height:50px;padding:0;justify-content:center;border-radius:50%}
}
@media(max-width:540px){
 .company-grid,.course-grid{grid-template-columns:1fr;gap:22px}.company-card-media{aspect-ratio:16/10;height:auto}.company-card h3{font-size:25px}.card-media{height:auto;aspect-ratio:16/9}.nr-number{font-size:56px}
 .steps ol{grid-template-columns:1fr;gap:24px}.steps li{border-top:1px solid var(--line);padding-top:20px}.steps li>span{margin-bottom:14px}
 .footer-main{grid-template-columns:1fr;gap:25px}.footer-main>div:first-child{grid-column:auto}.footer-main h3{margin-bottom:12px}
 .header-inner>.button.small{display:none}.menu{margin-left:auto}.brand img{width:145px}
 .gallery-item img{height:185px}.gallery-item span{font-size:12px;padding:12px;gap:6px}
 .contact form{padding:24px 20px}.contact-copy>a.contact-phone{font-size:clamp(23px,6vw,28px)}
 .banner-dot{font-size:10px;gap:5px}.banner-dot span{font-size:8px}.banner-control-inner{gap:8px}
 .since{max-width:100%;gap:12px}.since strong{font-size:34px}.since span{font-size:11px}
 .location-panel{padding:25px 20px}.location-panel h3{font-size:26px}
}
@media(max-width:380px){.topbar .wrap{align-items:flex-start;flex-direction:column;gap:2px}.topbar span{font-size:9px}.topbar a{font-size:10px}.gallery{grid-template-columns:1fr}.gallery-item img{height:240px}.banner-content h1,.banner-content h2{font-size:34px}.banner-dot{flex-direction:column;gap:2px}.banner-control-inner{min-height:114px}.banner-content p{font-size:14px}.company-hero h1,.hero h1{font-size:35px}.contact h2{font-size:32px}}
@media(max-height:500px) and (max-width:1024px){header{position:relative}html{scroll-padding-top:16px}#nav{max-height:70vh;max-height:70dvh}.banner-slide{min-height:380px}.banner-content{padding-top:35px;padding-bottom:45px}.company-hero>.wrap,.hero-inner{min-height:380px}.company-hero>.wrap{padding-top:40px;padding-bottom:50px}.hero-copy{padding-top:35px;padding-bottom:45px}.banner-content h1,.banner-content h2,.company-hero h1,.hero h1{font-size:38px}}
@media(hover:none){.company-card:hover,.course-card:hover,.button:hover{transform:none}.company-card:hover .company-card-media img{transform:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(min-width:1025px){.header-inner nav{align-items:center}.group-menu summary{display:flex;align-items:center;gap:7px}}
@media(max-width:1024px){#nav.open{align-items:stretch}}
