/* KiTS Page Builder — styles for published pages. Colours come from Settings (CSS variables). */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{overflow-x:clip}
body{margin:0;font-family:var(--kb-font);color:var(--kb-text);background:#fff;line-height:1.5;font-size:15px}
img{max-width:100%;height:auto;display:block}
picture{display:contents}   /* a WebP <picture> lays out exactly like its <img> */
a{color:var(--kb-primary)}
a:hover{text-decoration:none}
:focus-visible{outline:3px solid var(--kb-primary);outline-offset:2px}
.kb-wrap{max-width:1140px;margin:0 auto;padding:0 20px}

/* header */
.kb-header{background:var(--kb-header-bg);border-bottom:1px solid #e6e6e6;position:relative;z-index:10}
.kb-header .kb-wrap{display:flex;align-items:center;gap:24px;min-height:84px;flex-wrap:wrap}
.kb-logo{display:block;min-width:0;flex:0 1 auto}
.kb-logo img{max-height:60px;width:auto;max-width:100%}
.kb-nav{margin-left:auto}
.kb-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:4px;flex-wrap:wrap}
.kb-nav a{display:block;padding:10px 14px;color:var(--kb-primary);text-decoration:none;font-size:15px;border-radius:4px}
.kb-nav a:hover{background:rgba(0,0,0,.05)}
.kb-header-extra{flex-shrink:0}
.kb-badge{flex-shrink:0}
.kb-badge img{max-height:48px;width:auto}
.kb-menu-toggle{display:none;margin-left:auto;background:none;border:0;padding:10px;cursor:pointer}
.kb-menu-toggle span{display:block;width:24px;height:2px;background:var(--kb-primary);margin:5px 0}
@media (max-width:768px){
  .kb-header .kb-wrap{flex-wrap:wrap;min-height:68px;gap:12px}
  .kb-logo{flex:1 1 0}
  .kb-logo img{max-height:44px}
  .kb-menu-toggle{display:block;flex-shrink:0}
  .kb-nav{display:none;width:100%;margin:0 0 12px}
  .kb-nav.open{display:block}
  .kb-nav ul{flex-direction:column}
  .kb-header-extra{width:100%;padding-bottom:12px}
  .kb-badge{order:2}
  .kb-badge img{max-height:36px}
  .kb-menu-toggle{order:3}
  .kb-nav{order:4}
}

/* content */
.kb-main{padding:40px 0 56px}
.kb-heading{color:var(--kb-primary);font-family:var(--kb-heading-font,Arial,Helvetica,Verdana,sans-serif);font-weight:400;line-height:1.1;margin:1.2em 0 .5em}
h1.kb-heading{font-size:clamp(36px,6vw,62px);line-height:1}
h2.kb-heading{font-size:clamp(30px,4.5vw,42px)}
h3.kb-heading{font-size:clamp(24px,3.5vw,32px)}
h4.kb-heading{font-size:24px}
.kb-main>.kb-wrap>:first-child{margin-top:0}
.kb-text{margin:0 0 1em}
.kb-text h1,.kb-text h5,.kb-text h6,.kb-text h2,.kb-text h3,.kb-text h4{color:var(--kb-primary);font-family:Arial,Helvetica,Verdana,sans-serif;font-weight:400;line-height:1.2}
.kb-text p{margin:0 0 1em}
.kb-text-sized{font-size:var(--kb-fs,inherit)}
.kb-text-sized p{margin:0 0 10px}
@media (max-width:768px){.kb-text-sized{font-size:min(var(--kb-fs,15px),30px)}}
.kb-text blockquote{border-left:4px solid var(--kb-primary);margin:1em 0;padding:.25em 0 .25em 1em;font-style:italic}
.kb-align-left{text-align:left}.kb-align-center{text-align:center}.kb-align-right{text-align:right}
.kb-image{margin:1.5em auto}
.kb-image.kb-align-left{margin-left:0}.kb-image.kb-align-right{margin-right:0}
.kb-image.kb-align-left img{margin-left:0}.kb-image.kb-align-right img{margin-right:0}
.kb-image img{margin:0 auto;border-radius:4px}
.kb-image figcaption{font-size:14px;color:#666;margin-top:8px;text-align:center}
.kb-video{margin:1.5em auto}
.kb-video.kb-align-left{margin-left:0}.kb-video.kb-align-right{margin-right:0}
.kb-video video{display:block;width:100%;height:auto;border-radius:4px;background:#000}
.kb-video figcaption{font-size:14px;color:#666;margin-top:8px;text-align:center}
.kb-columns{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:1.5em 0;align-items:start}
.kb-columns.kb-valign-center{align-items:center}.kb-columns.kb-valign-end{align-items:end}
.kb-col{min-width:0}
.kb-col>:first-child{margin-top:0}
@media (max-width:768px){.kb-columns{grid-template-columns:1fr!important;gap:8px}}
@media (min-width:769px) and (max-width:1000px){.kb-cols-4,.kb-cols-6{grid-template-columns:1fr 1fr!important}}

/* gallery + lightbox */
.kb-gallery{display:grid;grid-template-columns:repeat(var(--kb-gcols),1fr);gap:12px;margin:1.5em 0}
.kb-gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:4px}
.kb-gallery a{display:block;overflow:hidden;border-radius:4px}
.kb-gallery-whole img{object-fit:contain;background:transparent}
.kb-gallery a img{transition:transform .25s}
.kb-gallery a:hover img{transform:scale(1.04)}
@media (max-width:600px){.kb-gallery{grid-template-columns:repeat(2,1fr)}}
.kb-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);display:flex;align-items:center;justify-content:center;z-index:1000;padding:40px}
.kb-lightbox img{max-width:100%;max-height:100%;object-fit:contain}
.kb-lightbox button{position:absolute;background:rgba(255,255,255,.15);color:#fff;border:0;width:48px;height:48px;border-radius:50%;font-size:28px;cursor:pointer}
.kb-lightbox .kb-lb-close{top:16px;right:16px}
.kb-lightbox .kb-lb-prev{left:16px;top:50%;transform:translateY(-50%)}
.kb-lightbox .kb-lb-next{right:16px;top:50%;transform:translateY(-50%)}

/* social icons */
.kb-social{display:flex;gap:12px;margin:0 0 1em}
.kb-social.kb-align-center{justify-content:center}.kb-social.kb-align-right{justify-content:flex-end}
.kb-social a{display:inline-flex;width:36px;height:36px;color:inherit}
.kb-social svg{width:100%;height:100%;fill:currentColor}
.kb-main .kb-social a{color:var(--kb-primary)}
.kb-button{margin:1.5em 0}
.kb-btn{display:inline-block;background:var(--kb-btn-bg,var(--kb-primary));color:var(--kb-btn-fg,#fff);padding:12px 28px;border-radius:4px;text-decoration:none;font-weight:bold;border:2px solid var(--kb-btn-bg,var(--kb-primary))}
.kb-btn-small{padding:4px 10px;font-size:12px;font-weight:normal;border-width:1px}
.kb-btn-large{padding:14px 34px;font-size:24px}
.kb-btn:hover{filter:brightness(1.15)}
.kb-btn-outline{background:transparent;color:var(--kb-btn-bg,var(--kb-primary))}
.kb-divider{border:0;border-top:1px solid #ddd;margin:2em 0}
.kb-divider-short{width:60px;border-top:3px solid var(--kb-primary);margin:.5em 0 1.2em}
.kb-divider-short.kb-align-center{margin-left:auto;margin-right:auto}.kb-divider-short.kb-align-right{margin-left:auto}
.kb-embed{margin:1.5em 0}
.kb-embed iframe{max-width:100%}

/* slider */
.kb-slider{position:relative;margin:1.5em 0;border-radius:6px;overflow:hidden;background:#000}
.kb-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none}
.kb-track::-webkit-scrollbar{display:none}
.kb-slide{flex:0 0 100%;scroll-snap-align:start;position:relative;height:var(--kb-h)}
.kb-slide a{display:block;height:100%;color:inherit}
.kb-slide img{width:100%;height:100%;object-fit:cover}
.kb-caption{position:absolute;left:0;right:0;bottom:0;padding:16px 20px 36px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.65));font-size:18px}
.kb-prev,.kb-next{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.85);color:#222;font-size:28px;line-height:1;cursor:pointer}
.kb-prev{left:12px}.kb-next{right:12px}
.kb-dots{position:absolute;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:8px}
.kb-dots button{width:11px;height:11px;border-radius:50%;border:2px solid #fff;background:transparent;padding:0;cursor:pointer}
.kb-dots button[aria-current="true"]{background:#fff}
@media (max-width:600px){.kb-slide{height:calc(var(--kb-h)*.6)}}
@media (prefers-reduced-motion:reduce){.kb-track{scroll-behavior:auto}}

/* footer */
.kb-footer{background:var(--kb-footer-bg);color:var(--kb-footer-text);padding:40px 0 24px;font-size:15px}
.kb-footer a{color:var(--kb-footer-text);text-decoration:none}
.kb-footer a:hover{text-decoration:underline}
.kb-footer .kb-text p{margin:0 0 .45em}
.kb-footer .kb-columns{margin:0}
.kb-footer .kb-social{margin-bottom:.6em}
.kb-footer .kb-heading,.kb-footer .kb-text h2,.kb-footer .kb-text h3{color:var(--kb-footer-text)}
.kb-footer-note{margin:24px 0 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.2);font-size:13px;opacity:.8}

/* sections (full-width bands with backgrounds) */
.kb-section{position:relative;margin:1.5em 0;padding:var(--kb-pad,40px) 24px;background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:flex-start;border-radius:6px;overflow:hidden}
.kb-section.kb-full{width:100vw;margin-left:calc(50% - 50vw);border-radius:0}
.kb-main>.kb-wrap>.kb-section.kb-full:first-child,.kb-main>.kb-wrap>div:first-child>.kb-section.kb-full{margin-top:-40px}
.kb-section.kb-valign-center{justify-content:center}.kb-section.kb-valign-end{justify-content:flex-end}
.kb-section.kb-bg-parallax{background-attachment:fixed}
@supports (-webkit-touch-callout:none){.kb-section.kb-bg-parallax{background-attachment:scroll}}
.kb-section-slides,.kb-section-slide,.kb-section-overlay{position:absolute;inset:0}
.kb-section-slide{background-size:cover;background-position:center;opacity:0;transition:opacity 1.2s ease}
.kb-section-slide.on{opacity:1}
.kb-section-overlay{background:#000}
.kb-section-inner{position:relative;width:100%;max-width:1140px;margin:0 auto}
.kb-section-inner>:first-child{margin-top:0}.kb-section-inner>:last-child{margin-bottom:0}
.kb-section-light,.kb-section-light .kb-heading,.kb-section-light .kb-text h2,.kb-section-light .kb-text h3,.kb-section-light a{color:#fff}
@media (prefers-reduced-motion:reduce){.kb-section-slide{transition:none}}
@media (max-width:768px){.kb-section{min-height:0!important;padding:calc(var(--kb-pad,40px)*.6) 16px}}

/* "Show on" device visibility (same breakpoints as the old theme) */
@media (min-width:993px){.kb-hide-desktop{display:none!important}}
@media (min-width:769px) and (max-width:992px){.kb-hide-tablet{display:none!important}}
@media (max-width:768px){.kb-hide-mobile{display:none!important}}

/* forms */
.kb-form{max-width:640px;margin:1.5em 0}
.kb-form .kb-field{margin:0 0 14px}
.kb-form label{display:block;font-weight:bold;margin:0 0 4px}
.kb-form input,.kb-form select,.kb-form textarea{width:100%;font:inherit;padding:10px 12px;border:1px solid #c8ced8;border-radius:4px;background:#fff;color:inherit}
.kb-form textarea{min-height:120px;resize:vertical}
.kb-form input:focus,.kb-form select:focus,.kb-form textarea:focus{outline:2px solid var(--kb-primary);outline-offset:1px;border-color:var(--kb-primary)}
.kb-form .kb-check label{display:flex;gap:8px;align-items:flex-start;font-weight:normal}
.kb-form .kb-check input{width:auto;margin-top:5px}
.kb-form .kb-req{color:#b42318}
.kb-form .kb-btn{cursor:pointer;font:inherit;font-weight:bold}
.kb-form .kb-btn:disabled{opacity:.6;cursor:wait}
.kb-form-msg{padding:10px 12px;border-radius:4px;background:#eef3fb}
.kb-form-msg.kb-bad{background:#fdecea;color:#7a1a12}
.kb-form-thanks{padding:16px 18px;border-radius:6px;background:#e9f7ee;color:#14532d;font-size:1.1em}
.kb-hp{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
/* header kept at the top while scrolling (Header & Footer option) */
.kb-sticky{position:sticky;top:0;z-index:50;transition:box-shadow .2s}
.kb-sticky.kb-scrolled{box-shadow:0 2px 10px rgba(0,0,0,.12)}
.kb-shrink .kb-wrap,.kb-shrink .kb-logo img,.kb-shrink .kb-badge img{transition:min-height .2s,max-height .2s}
.kb-shrink.kb-scrolled .kb-wrap{min-height:60px}
.kb-shrink.kb-scrolled .kb-logo img{max-height:42px}
.kb-shrink.kb-scrolled .kb-badge img{max-height:36px}
html:has(.kb-sticky){scroll-padding-top:96px}   /* links to #anchors land below the header */
@media (max-width:768px){
  .kb-sticky:not(.kb-sticky-mobile){position:relative}
  html:has(.kb-sticky:not(.kb-sticky-mobile)){scroll-padding-top:0}
  .kb-sticky-mobile .kb-nav.open{max-height:calc(100vh - 80px);overflow-y:auto}
  .kb-shrink.kb-scrolled .kb-wrap{min-height:56px}
  .kb-shrink.kb-scrolled .kb-logo img{max-height:34px}
}
@media (prefers-reduced-motion:reduce){.kb-sticky,.kb-shrink .kb-wrap,.kb-shrink .kb-logo img,.kb-shrink .kb-badge img{transition:none}}
/* gallery: full window width, and full-size "masonry" (natural shapes in flowing columns) */
.kb-gallery-wide{width:calc(100vw - 48px);margin-left:calc(50% - 50vw + 24px);margin-right:0}
.kb-gallery-masonry{display:block;columns:var(--kb-gcols) 240px;column-gap:16px}
.kb-gallery-masonry>a,.kb-gallery-masonry>span{display:block;break-inside:avoid;margin-bottom:16px}
.kb-gallery-masonry.kb-masonry-ready{columns:auto;display:flex;gap:16px;align-items:flex-start}
.kb-mcol{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:16px}
.kb-gallery-masonry img{width:100%;height:auto;object-fit:initial}
.kb-gallery-masonry img:not([style]){aspect-ratio:auto}
.kb-gallery-masonry a:hover img{transform:none;opacity:.92}
@media (max-width:600px){.kb-gallery-masonry{display:block;grid-template-columns:none}}
/* image: full page text width, or edge to edge across the window */
.kb-image-page,.kb-image-window{max-width:none}
.kb-image-page img,.kb-image-window img{width:100%;height:auto}
.kb-image-window{width:100vw;margin-left:calc(50% - 50vw);margin-right:0}
.kb-image-window img{border-radius:0}
.kb-image-window figcaption{padding:0 24px}
/* inside a column or section, "full window" fills that box instead */
.kb-col .kb-image-window,.kb-section .kb-image-window,.kb-col .kb-gallery-wide,.kb-section .kb-gallery-wide{width:100%;margin-left:0}
.kb-col .kb-image-window img,.kb-section .kb-image-window img{border-radius:4px}
/* columns: nearly the full window width (inside a section they keep to the section) */
.kb-columns-wide{width:calc(100vw - 48px);margin-left:calc(50% - 50vw + 24px);margin-right:0}
.kb-section .kb-columns-wide{width:auto;margin-left:0}
@media (max-width:768px){.kb-columns-wide,.kb-gallery-wide{width:auto;margin-left:0}}
