/*
Theme Name: JECO Engineering
Description: JECO corporate and equipment portfolio with the approved hexagon slider, division layouts and 47 native WordPress pages.
Version: 1.8.3
Author: Kraftima
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jeco-engineering
*/
.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link:focus{clip:auto;width:auto;height:auto;top:10px;left:10px;padding:12px;background:#fff;z-index:999999}
.admin-bar .header{top:32px}
.wp-primary{list-style:none;display:flex;gap:25px;margin:0;padding:0;align-items:center}
.wp-primary li{position:relative;list-style:none}
.wp-primary .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;box-shadow:0 15px 35px #0c285822;padding:15px;min-width:240px;z-index:40;margin:0}
.wp-primary li:hover>.sub-menu,.wp-primary li:focus-within>.sub-menu{display:block}
.wp-primary .sub-menu a{display:block;padding:8px 10px;color:#152541}
@media(max-width:760px){.wp-primary{display:block}.wp-primary>li>a{display:block;padding:12px 0}.wp-primary .sub-menu{position:static;display:block;box-shadow:none;padding:0 0 0 15px;min-width:0}.admin-bar .header{top:46px}}

/* Full supplied three-logo lockup, with readable proportions in both locations. */
.header .brand-image{width:340px;min-width:280px;flex-shrink:0;padding:0;background:transparent}
.header .brand-image img{width:100%;height:76px;object-fit:contain}
.header-inner{gap:24px}.header .nav{margin-left:auto;gap:24px}
.footer .brand-image{width:100%;max-width:340px;min-width:0;padding:8px;background:#f9fafb}
.footer .brand-image img{width:100%;height:auto;object-fit:contain}
.hero-selectors{gap:6px}.hero-rail .hero-select{width:48px}
.hero-rail{gap:10px}.hero-long-title h1{font-size:clamp(3.8rem,6.3vw,6.3rem)}
@media(max-width:1200px) and (min-width:761px){.header .brand-image{width:265px;min-width:240px}.header-inner{gap:16px}.header .nav{gap:16px}.header-action{padding:12px;font-size:.72rem}.hero-rail .hero-select{width:38px}.hero-rail{gap:8px}.hero-rail .progress-track{width:35px}.hero-long-title h1{font-size:5rem}}
@media(max-width:1000px) and (min-width:761px){.header-inner{flex-wrap:wrap;justify-content:space-between;padding-block:10px}.header .brand-image{width:300px}.header .nav{order:3;width:100%;justify-content:center;margin:0}.header .header-action{margin-left:auto}.hero-long-title h1{font-size:4.2rem}}
@media(max-width:760px){.header .brand-image{width:min(76vw,335px);min-width:0}.header .brand-image img{height:67px}.header-inner{gap:12px}.hero{padding-bottom:146px}.hero-rail{flex-wrap:wrap;gap:12px}.hero-selectors{flex-basis:100%;justify-content:space-between;gap:5px}.hero-rail .hero-select{width:calc((100% - 35px)/8);max-width:48px}.hero-long-title h1{font-size:clamp(3.15rem,10.5vw,5rem)}}

/* Visible content is the baseline even when a cache or plugin delays JavaScript. */
.reveal{opacity:1;transform:none}

/* Motion is progressive: content stays visible if scripting is unavailable. */
@keyframes jecoReveal{from{opacity:.2;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}
@keyframes jecoSlideCopy{from{opacity:.25;transform:translateX(-20px)}to{opacity:1;transform:translateX(0)}}
@keyframes jecoMediaEnter{from{opacity:.35;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
.reveal.motion-in{animation:jecoReveal .8s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(var(--delay,0ms),300ms)}
.slide-copy-enter{animation:jecoSlideCopy .65s ease both}
.product-hero-copy,.category-hero-content,.page-intro>.wrap{animation:jecoReveal .8s ease both}
.product-hero-media,.category-hero-image{animation:jecoMediaEnter 1s ease both}
.category-card,.product-card,.application-card,.btn{transition:transform .35s ease,box-shadow .35s ease,background-color .3s ease}
.category-card:hover,.product-card:hover{transform:translateY(-9px)}
.application-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px #0c285818}
.btn:hover{transform:translateY(-3px);box-shadow:0 8px 20px #0c285826}
.category-image img,.product-card-img img{transition:transform .65s cubic-bezier(.2,.7,.2,1)}
.category-card:hover img,.product-card:hover img{transform:scale(1.07)}
@media(prefers-reduced-motion:reduce){.motion-in,.slide-copy-enter,.product-hero-copy,.category-hero-content,.page-intro>.wrap,.product-hero-media,.category-hero-image{animation:none!important}.category-card:hover,.product-card:hover,.application-card:hover,.btn:hover{transform:none}}

/* Keep division title and image together inside the same centered content grid. */
@media(min-width:761px){
 .category-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(28px,3vw,48px);min-height:0;padding:38px max(36px,calc((100% - 1320px)/2)) 42px}
 .category-hero .category-hero-content{order:1;width:100%;max-width:none;margin:0;padding:12px 0;min-width:0}
 main[data-division] .category-hero-image{order:2;position:relative;inset:auto;width:100%;max-width:570px;height:auto;aspect-ratio:4/3;margin:0;justify-self:center;align-self:center}
 main:is([data-division="agri"],[data-division="access"],[data-division="recovery"],[data-division="logistics"]) .category-hero-image{aspect-ratio:1.154700538}
 .category-hero h1{max-width:100%;font-size:clamp(4rem,6vw,6rem);margin-bottom:22px;line-height:1.02}
 .category-hero p{max-width:540px;margin-bottom:25px}
 .category-hero .crumb{margin-bottom:30px}
}

/* Rounded hex accents frame a readable, accessible enquiry form. */
.jeco-form-panel{border-radius:24px;padding:38px;box-shadow:0 22px 60px #10284b18;border:1px solid #254873;overflow:hidden}
.jeco-form-panel:before{clip-path:var(--hex);width:230px;height:200px;right:-80px;top:-55px;opacity:.6}
.jeco-form-badge{display:grid;place-items:center;width:64px;height:56px;clip-path:var(--hex);background:var(--yellow,#f6ca28);color:var(--navy);font-size:28px;margin-bottom:24px}
.jeco-form-panel h3{font-size:clamp(2.2rem,3vw,3rem);line-height:1.06}
.jeco-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;margin-top:26px}
.jeco-contact-form label{display:block;font-size:.8rem;font-weight:600;color:#e5edfa;min-width:0}
.jeco-contact-form label>span{color:#ffcf31}
.jeco-contact-form input:not([type=hidden]),.jeco-contact-form textarea{display:block;box-sizing:border-box;width:100%;margin-top:9px;border:1px solid #607594;background:#ffffff0d;border-radius:10px;padding:13px 14px;font:inherit;color:#fff;transition:border-color .2s,background .2s}
.jeco-contact-form textarea{resize:vertical;min-height:140px;line-height:1.6}
.jeco-contact-form textarea::placeholder{color:#b6c6dd}
.jeco-contact-form input:focus,.jeco-contact-form textarea:focus{outline:2px solid #ffcf31;outline-offset:3px;background:#ffffff16}
.jeco-field-wide{grid-column:1/-1}
.jeco-contact-form .btn{border:0;cursor:pointer;justify-content:space-between;border-radius:10px;margin-top:24px;padding:18px 24px;font:inherit;font-weight:700}
.jeco-contact-form small{font-size:.74rem;line-height:1.7}.jeco-contact-form small a{color:#e5edfa;text-decoration:underline}
.jeco-contact-form .jeco-form-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.jeco-form-notice{padding:16px;border:1px solid #97d4ba;background:#173f3a;border-radius:10px;color:#fff;line-height:1.6;margin-top:20px}
.jeco-form-notice.is-error{border-color:#efb685;background:#513721}
#jeco-contact-form{scroll-margin-top:130px}
@media(max-width:760px){.jeco-form-panel{padding:28px 22px;margin-top:0}.jeco-form-grid{grid-template-columns:1fr;gap:18px}.jeco-form-panel h3{font-size:2.6rem}}

/* About JECO: one approved customer testimonial. */
.jeco-testimonial{background:#f2f6fb;overflow:hidden}
.jeco-testimonial-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(30px,6vw,90px);align-items:center}
.jeco-testimonial h2{font-size:clamp(2.8rem,4.3vw,4.5rem);line-height:1.03;margin:18px 0 24px}
.jeco-quote-hex{display:grid;place-items:center;width:92px;height:80px;clip-path:var(--hex);background:var(--yellow,#ffcb22);color:var(--navy);font-family:Georgia,serif;font-size:100px;line-height:1;padding-top:20px}
.jeco-quote-card{margin:0;position:relative;background:var(--navy);color:#fff;border-radius:24px;padding:clamp(28px,4vw,54px);border-bottom:5px solid var(--yellow,#ffcb22);box-shadow:0 20px 45px #122b4812}
.jeco-quote-card blockquote{margin:0}.jeco-quote-card blockquote p{color:#fff;font-size:clamp(1.2rem,2vw,1.6rem);line-height:1.65;white-space:normal;overflow-wrap:anywhere}
.jeco-quote-card figcaption{border-top:1px solid #ffffff30;margin-top:28px;padding-top:24px;display:grid;gap:7px}
.jeco-quote-card figcaption strong{font-size:1rem;color:#ffcf32}.jeco-quote-card figcaption span{font-size:.85rem;color:#c5d4e9}
@media(max-width:760px){.jeco-testimonial-grid{grid-template-columns:1fr;gap:24px}.jeco-quote-hex{width:70px;height:61px;font-size:78px;padding-top:14px}}

/* Homepage refinements supplied by JECO, October 2026. */
.top-inner{justify-content:space-between;gap:14px;flex-wrap:wrap;letter-spacing:.02em}.top-inner>span{font-size:.77rem;letter-spacing:.025em;text-transform:none}.top-contacts{display:flex;gap:23px;align-items:center}.top-contacts a{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:.76rem;letter-spacing:0}.top-contacts svg{flex-shrink:0}
.header .brand-image{width:375px;min-width:300px}.header .brand-image img{height:86px}.header .nav{gap:20px}.jic-links{flex-shrink:0;text-align:center}.jic-links .header-action{display:flex;justify-content:center;gap:9px;color:#be2127;font-weight:800;padding:15px 17px}.jic-secondary{display:block;font-size:.7rem;color:var(--navy);margin-top:5px;text-decoration:underline;text-underline-offset:3px}
.hero-specialization{font-size:clamp(.85rem,1.15vw,1rem);font-weight:600;line-height:1.55;max-width:600px;color:#214d7e;margin:0 0 20px}.hero .hero-eyebrow{font-size:clamp(1.05rem,1.6vw,1.5rem);text-transform:none;letter-spacing:.02em;line-height:1.4;margin-bottom:20px}
.portfolio-pioneer{max-width:960px;border-left:4px solid var(--yellow);padding:10px 0 10px 22px;color:var(--navy);font-size:1.08rem;line-height:1.7;margin:-12px 0 38px}
body[data-page="home"] .portfolio .category-image{--portfolio-shape:var(--hex);clip-path:var(--portfolio-shape);border:0;background:var(--yellow);width:100%;height:auto;aspect-ratio:1.154700538;padding:4px}
body[data-page="home"] .portfolio .category-card:nth-child(4n+2) .category-image{--portfolio-shape:url(#jeco-rounded-left)}
body[data-page="home"] .portfolio .category-card:nth-child(4n+3) .category-image{--portfolio-shape:url(#jeco-rounded-right)}
body[data-page="home"] .portfolio .category-image img{clip-path:var(--portfolio-shape);object-fit:cover;width:100%;height:100%;display:block}
body[data-page="home"] .portfolio .card-index{left:50%;bottom:20px;transform:translateX(-50%);white-space:nowrap}
.approach-technology{color:#f1f5ff!important;font-weight:600;border-left:3px solid var(--yellow);padding-left:18px;line-height:1.7}.principles>div:last-child:nth-child(odd){grid-column:1/-1}.profile-leadership{font-size:1.15rem;font-weight:700;line-height:1.6;color:var(--navy)}
.web-collage{padding-bottom:45px}.anniversary-badge{position:absolute;right:-8px;bottom:-12px;width:clamp(150px,17vw,230px);z-index:3;background:white;border-radius:20px;padding:10px;box-shadow:0 12px 35px #0d2c5522}.anniversary-badge img{display:block;width:100%;height:auto;object-fit:contain}
.business-partners{background:#f4f7fb}.business-partners .section-head{margin-bottom:34px}.partner-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.partner-logo{display:flex;align-items:center;justify-content:center;min-width:0;height:145px;padding:20px;background:white;border:1px solid #dfe7f0;border-radius:16px;transition:transform .3s,box-shadow .3s}.partner-logo img{width:100%;height:100%;object-fit:contain}.partner-logo:hover{transform:translateY(-4px);box-shadow:0 12px 28px #12325312}
@media(max-width:1200px) and (min-width:761px){.header .brand-image{width:325px;min-width:275px}.header .nav{gap:14px}.header-inner{gap:16px}.partner-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1000px) and (min-width:761px){.header-inner{flex-wrap:wrap}.header .nav{order:3;width:100%;justify-content:center}.jic-links{margin-left:auto}.partner-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.top-inner{justify-content:center;text-align:center;gap:8px;padding-block:10px}.top-inner>span{font-size:.67rem}.top-contacts{gap:15px}.top-contacts a{font-size:.65rem}.header .brand-image{width:min(76vw,340px);min-width:0}.header .brand-image img{height:68px}.header-inner{flex-wrap:wrap}.jic-links{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;padding-bottom:9px}.jic-links .header-action{display:inline-flex;padding:9px 15px;font-size:.76rem}.jic-secondary{margin:0}.hero-specialization{font-size:.82rem;max-width:95%;margin-bottom:15px}.hero .hero-eyebrow{font-size:1.08rem}.portfolio-pioneer{margin:0 0 27px;font-size:.94rem;padding-left:15px}.partner-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.partner-logo{height:115px;padding:13px;border-radius:12px}.anniversary-badge{right:0;bottom:0;width:150px}}
@media(max-width:420px){.partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.top-contacts{gap:10px}}
@media(prefers-reduced-motion:reduce){.partner-logo{transition:none}.partner-logo:hover{transform:none}}

/* Compact image badges: reset both axes to prevent inherited top/bottom stretching. */
body[data-page="home"] .portfolio .category-image .card-index{top:auto;right:auto;bottom:12px;left:28%;transform:none;display:inline-block;width:max-content;height:auto;min-height:0;max-height:none;padding:5px 8px;line-height:1.2;font-size:10px;letter-spacing:.05em;border-radius:4px;white-space:nowrap;pointer-events:none}
.jic-secondary{display:none!important}

/* Aligned transparent brand artwork; footer carries the JECO symbol only. */
.header .brand-image,.footer .brand-image{background:transparent;padding:0}
.footer .brand-image{width:120px;min-width:0;max-width:120px;margin-bottom:18px}
.footer .brand-image img{display:block;width:120px;height:112px;object-fit:contain;background:transparent}

/* Home company profile: the supplied three-hexagon arrangement. */
body[data-page="home"] .web-collage{position:relative;width:100%;height:auto;min-height:0;aspect-ratio:1.215;padding:0;margin:0;isolation:isolate}
body[data-page="home"] .web-collage .collage-main,
body[data-page="home"] .web-collage .collage-small,
body[data-page="home"] .web-collage .anniversary-badge{position:absolute;inset:auto;box-sizing:border-box;height:auto;aspect-ratio:1.154700538;border:0;border-radius:0;clip-path:var(--hex);background:var(--yellow);padding:3px;box-shadow:none;transform:none;margin:0;overflow:hidden}
body[data-page="home"] .web-collage .collage-main{width:72%;right:0;top:12%;z-index:1}
body[data-page="home"] .web-collage .collage-small{width:37%;left:0;top:0;z-index:2}
body[data-page="home"] .web-collage .anniversary-badge{width:37%;left:0;bottom:0;z-index:2;padding:0}
body[data-page="home"] .web-collage .collage-main img,
body[data-page="home"] .web-collage .collage-small img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;clip-path:var(--hex)}
body[data-page="home"] .web-collage .anniversary-badge:before{content:"";position:absolute;inset:3px;background:#fff;clip-path:var(--hex)}
body[data-page="home"] .web-collage .anniversary-badge img{position:absolute;left:16%;top:20%;width:68%;height:60%;object-fit:contain;clip-path:none;background:transparent}
@media(max-width:760px){body[data-page="home"] .web-collage{max-width:620px;margin:34px auto 0}}
