/* KEMI site updates — Nov 2026: address, WhatsApp button, FAQ, trust strip, about page. */

/* Footer address */
.footer-address{display:block;width:fit-content;font-size:15px;line-height:2;color:inherit;opacity:.85}

/* Floating WhatsApp button */
.whatsapp-float{position:fixed;z-index:45;bottom:22px;right:22px;display:flex;align-items:center;gap:10px;height:54px;padding:0 18px 0 14px;border-radius:999px;background:#1fa855;color:#fff;font-weight:600;font-size:15px;text-decoration:none;box-shadow:0 8px 24px #0f2a1a40;transition:transform .2s,box-shadow .2s,background .2s}
.whatsapp-float:hover,.whatsapp-float:focus-visible{background:#178a45;transform:translateY(-2px);box-shadow:0 12px 28px #0f2a1a55;color:#fff}
.whatsapp-float svg{width:26px;height:26px;flex:none;fill:currentColor}
@media(max-width:700px){.whatsapp-float{bottom:16px;right:16px;width:54px;padding:0;justify-content:center}.whatsapp-float span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}
@media print{.whatsapp-float{display:none}}

/* Product FAQ */
.product-faq{padding-block:70px}
.product-faq h2{font-size:clamp(26px,3vw,38px);font-weight:500;margin:0 0 26px}
.product-faq details{border-top:1px solid var(--line);padding:18px 0}
.product-faq details:last-child{border-bottom:1px solid var(--line)}
.product-faq summary{cursor:pointer;font-size:18px;font-weight:600;color:var(--ink);list-style-position:inside}
.product-faq details p,.product-faq details ul{margin:12px 0 0;color:var(--muted);line-height:1.9;max-width:820px}
.product-faq details ul{padding-inline-start:22px}

/* Home trust strip */
.trust-strip{padding-block:80px;background:var(--surface,#e7eef6)}
.trust-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin:0;padding:0;list-style:none}
.trust-numbers li{border-top:2px solid var(--accent,#245c87);padding-top:18px}
.trust-numbers strong{display:block;font:600 clamp(32px,4vw,48px)/1.1 var(--latin,inherit);color:var(--ink)}
.trust-numbers span{display:block;margin-top:8px;color:var(--muted);line-height:1.6}
.client-logos{margin-top:60px}
.client-logos h2{font-size:clamp(22px,2.4vw,30px);font-weight:500;margin:0 0 24px}
.client-logo-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.client-logo-grid img{width:100%;height:84px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px;filter:grayscale(1);opacity:.85;transition:filter .2s,opacity .2s}
.client-logo-grid img:hover{filter:none;opacity:1}
@media(max-width:900px){.trust-numbers{grid-template-columns:repeat(2,1fr)}.client-logo-grid{grid-template-columns:repeat(3,1fr)}}

/* About page */
.about-hero{padding-top:170px;padding-bottom:50px}
.about-hero h1{font-size:clamp(36px,5vw,64px);font-weight:500;line-height:1.15;margin:12px 0 22px}
.about-hero .about-lead{font-size:clamp(18px,1.6vw,22px);line-height:1.9;color:var(--muted);max-width:860px}
.about-photo{margin:0;border-radius:18px;overflow:hidden}
.about-photo img{display:block;width:100%;height:auto;max-height:620px;object-fit:cover}
.about-section{padding-block:70px;border-top:1px solid var(--line)}
.about-section h2{font-size:clamp(26px,3vw,38px);font-weight:500;margin:0 0 24px}
.about-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.about-card{background:var(--white,#fff);border:1px solid var(--line);border-radius:14px;padding:26px}
.about-card h3{margin:0 0 10px;font-size:19px}
.about-card p{margin:0;color:var(--muted);line-height:1.85}
.about-steps{counter-reset:step;list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.about-steps li{counter-increment:step;border-top:2px solid var(--accent,#245c87);padding-top:16px;color:var(--muted);line-height:1.8}
.about-steps li::before{content:"0" counter(step);display:block;font:600 14px var(--latin,inherit);color:var(--accent,#245c87);margin-bottom:6px}
.about-steps strong{display:block;color:var(--ink);font-size:18px;margin-bottom:4px}
.about-cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px}
@media(max-width:900px){.about-grid{grid-template-columns:1fr}.about-steps{grid-template-columns:1fr 1fr}.about-hero{padding-top:130px}}
@media(max-width:560px){.about-steps{grid-template-columns:1fr}}

/* ===== v109: mobile image presentation ===== */

/* Gallery: expand button + mobile nav */
.gallery-stage>img{cursor:zoom-in}
.gallery-expand{position:absolute;z-index:2;bottom:12px;left:12px;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;border:1px solid #ffffff55;background:#122e46cc;color:#fff;padding:0}
.gallery-expand svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gallery-mobile-nav{display:none}
@media(max-width:700px){
  .gallery-arrow{display:none!important}
  .resource-gallery .gallery-stage,.photo-gallery .gallery-stage,.gallery-stage,
  .resource-gallery .gallery-stage[data-adaptive-frame=true],.photo-gallery .gallery-stage[data-adaptive-frame=true]{
    height:auto!important;max-height:none!important;width:100%!important;margin-inline:0!important;
    aspect-ratio:var(--frame-ratio,4/3)!important;border-radius:14px}
  .gallery-stage>img,.gallery-stage[data-adaptive-frame=true]>img{object-fit:cover!important}
  .gallery-mobile-nav:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
  .gallery-mobile-nav button{width:46px;height:42px;border-radius:10px;border:1px solid var(--line,#c9d6e4);background:var(--white,#fff);color:var(--accent,#245c87);font:22px var(--latin,inherit)}
  .gallery-mobile-nav span{font:13px var(--latin,inherit);letter-spacing:1px;color:var(--muted)}
  .gallery-meta{margin-top:8px}
  .gallery-meta .gallery-count{display:none}
  .resource-gallery .gallery-thumbnail,.gallery-thumbnail{flex:0 0 68px!important;width:68px!important;height:68px!important;padding:2px;border-radius:8px;overflow:hidden}
  .gallery-thumbnail img{object-fit:cover!important;border-radius:6px}
}

/* Full-screen viewer */
html.lightbox-open{overflow:hidden}
.kemi-lightbox{width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#08121b;color:#fff;overflow:hidden}
.kemi-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.kemi-lightbox::backdrop{background:#08121bcc}
.lb-top,.lb-bottom{display:flex;align-items:center;gap:12px;padding:12px 14px}
.lb-top{justify-content:space-between}
.lb-count{font:14px var(--latin,inherit);letter-spacing:1px;opacity:.85;margin-inline-end:auto}
.lb-top button,.lb-bottom button{min-width:44px;height:44px;border-radius:10px;border:1px solid #ffffff40;background:#ffffff14;color:#fff;font-size:15px;padding:0 12px}
.lb-close{font-size:28px!important;line-height:1}
.lb-bottom{justify-content:space-between}
.lb-bottom button{font:22px var(--latin,inherit)}
.lb-bottom button[hidden]{visibility:hidden;display:block}
.lb-caption{flex:1;text-align:center;font-size:14px;line-height:1.7;margin:0;opacity:.9}
.lb-scroll{direction:ltr;overflow:auto;display:grid;place-items:center;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior:contain}
.lb-image{display:block;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in;user-select:none;-webkit-user-drag:none}
.kemi-lightbox.is-zoomed .lb-scroll{place-items:start}
.kemi-lightbox.is-zoomed .lb-image{max-width:none;max-height:none;width:240%;cursor:zoom-out}
@media(min-width:900px){.kemi-lightbox.is-zoomed .lb-image{width:180%}}

/* Product / project hero photo */
.product-hero-photo.is-zoomable{position:relative;cursor:zoom-in}
.product-hero-photo.is-zoomable::after{content:"";position:absolute;bottom:12px;left:12px;width:38px;height:38px;border-radius:10px;border:1px solid #ffffff55;background:#122e46cc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center/20px no-repeat;pointer-events:none}
@media(max-width:700px){
  .product-hero-photo,.product-hero-photo[data-adaptive-frame=true],.product-hero-photo[data-portrait=true]{
    width:100%!important;height:auto!important;min-height:0!important;max-width:100%!important;
    aspect-ratio:var(--hero-ratio,4/3)!important;border-radius:16px}
  .product-hero-photo>img,.product-hero-photo[data-adaptive-frame=true]>img,.product-hero-photo[data-portrait=true] img{
    width:100%!important;height:100%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important}
}

/* Related items: horizontal swipe row on phones */
@media(max-width:700px){
  .related-grid{display:flex!important;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:2px;padding:2px 2px 12px;margin-inline:-2px;scrollbar-width:thin}
  .related-grid>a{flex:0 0 74%;scroll-snap-align:start;display:flex;flex-direction:column}
  .related-grid img{height:auto!important;aspect-ratio:4/3;object-fit:cover!important}
  .related-grid span{padding:14px 16px!important;font-size:16px!important;gap:12px!important;margin-top:auto}
  .related-grid b{font-size:20px!important}
}

/* Home expertise cards: two per row, title under the photo */
@media(max-width:560px){
  .expertise.work-section .work-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .expertise.work-section .expertise-pair{display:contents}
  .expertise.work-section .expertise-pair>.work-section-card,.expertise.work-section .work-section-card{
    display:flex;flex-direction:column;align-items:stretch;height:auto!important;min-height:0!important;aspect-ratio:auto!important;
    padding:0!important;border-radius:14px;background:var(--white,#fff)!important;color:var(--ink)!important;border:1px solid var(--line,#c9d6e4);overflow:hidden}
  .expertise.work-section .work-section-card::before{display:none}
  .expertise.work-section .work-card-media{position:relative!important;inset:auto!important;z-index:0;aspect-ratio:4/5;width:100%}
  .expertise.work-section .work-card-photo{transform:none!important;filter:none}
  .expertise.work-section .work-card-panel{display:block!important;padding:10px 12px 12px!important;text-shadow:none!important;background:transparent!important}
  .expertise.work-section .work-card-panel h3,[dir=ltr] .expertise.work-section .work-card-panel h3{font-size:15px!important;line-height:1.5;font-weight:600;color:var(--ink)!important;text-shadow:none!important}
  .expertise.work-section .work-card-number,.expertise.work-section .work-card-arrow{display:none!important}
  .expertise.work-section .work-card-bottom{display:block;margin-top:4px;font-size:12px!important;color:var(--muted)!important}
}

/* Category pages: compact product photos and short descriptions on phones */
@media(max-width:700px){
  .catalog-item .catalog-item-image,.catalog-item .catalog-item-image[data-portrait=true],
  [data-work-category] .catalog-item .catalog-item-image:not([data-placeholder=true]){min-height:0!important;aspect-ratio:4/3!important;align-self:stretch!important}
  .catalog-item .catalog-item-image>img,.catalog-item .catalog-item-image[data-portrait=true]>img{position:absolute!important;inset:0;width:100%;height:100%!important;object-fit:cover!important}
  .catalog-item-copy>p.is-clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-bottom:6px!important}
  .read-more{background:none;border:0;padding:4px 0;margin-bottom:18px;font-size:14px;font-weight:600;color:var(--accent,#245c87);text-decoration:underline;text-underline-offset:4px}
}
@media(min-width:701px){.read-more{display:none}}

/* "From idea to production" steps: compact pills on phones */
@media(max-width:800px){
  .build-story-steps{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;padding-bottom:4px}
  .build-story-steps::-webkit-scrollbar{display:none}
  .build-story-step{flex:0 0 auto!important;width:auto!important;min-height:0!important;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:10px 16px!important;border-radius:999px!important;white-space:nowrap}
  .build-story-step-title{font-size:15px!important;line-height:1.4!important}
  .build-story-step .build-story-arrow{display:none}
}

/* Articles */
.article{padding-top:170px;padding-bottom:40px}
.article-head{max-width:860px}
.article-head h1{font-size:clamp(30px,4vw,50px);line-height:1.3;margin:12px 0 14px}
.article-meta{color:var(--muted);font-size:14px;margin:0}
.article-photo{margin:28px 0 0;max-width:860px;border-radius:16px;overflow:hidden;background:var(--surface,#eef1f4)}
.article-photo img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover}
.article-body{max-width:760px;font-size:18px;line-height:2}
.article-body h2{font-size:clamp(22px,2.4vw,28px);margin:44px 0 12px;line-height:1.5}
.article-body p,.article-body li{color:var(--ink)}
.article-body ul{padding-inline-start:22px}
.article-body li{margin-bottom:8px}
.article-lead{font-size:20px;color:var(--muted)!important;margin-top:32px}
.article-cta{margin:48px 0 10px;padding:28px;border-radius:14px;background:var(--surface,#eef1f4);border-inline-start:3px solid var(--accent)}
.article-cta h2{margin-top:0}
.article-links{list-style:none;padding:0!important}
.article-links li{border-top:1px solid var(--line);padding:10px 0;margin:0}
.article-list{display:grid;grid-template-columns:repeat(2,1fr);gap:26px;padding-bottom:70px}
.article-card a{display:flex;flex-direction:column;height:100%;border:1px solid var(--line);border-radius:14px;overflow:hidden;color:inherit;text-decoration:none;background:var(--white,#fff)}
.article-card img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.article-card a>div{padding:20px 22px 24px}
.article-card h2{font-size:21px;line-height:1.6;margin:6px 0 8px}
.article-card p{color:var(--muted);margin:0 0 12px;line-height:1.8}
@media(max-width:800px){.article{padding-top:130px}.article-list{grid-template-columns:1fr}.article-body{font-size:17px}}
html.theme-a .article-cta{background:#f1f3f5;border-inline-start-color:var(--amber)}
html.theme-a .article-card a:hover{border-color:var(--amber)}
