/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Description: Kreatronic child theme: a few shared styles. Colours, fonts and sizes live in Elementor Site Settings (Kit) — change them there, not here.
Version: 1.0.0
*/

/* Shared styles (kt- classes). Only what Elementor can't set in its panels; colours come from the Kit variables
   (--e-global-color-*), so changing a Kit colour updates these too. Values follow the approved design. */

/* ---------- Text rendering: browser default smoothing like the design (Hello/Elementor set "antialiased",
   which makes text and arrows look thinner on Mac) ---------- */
body,body *{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}

/* ---------- Links ---------- */
.elementor a:hover{text-decoration:underline}
.elementor .elementor-button:hover,.elementor-nav-menu a:hover,.kt-card:hover,.elementor a.kt-logo:hover,.elementor a.kt-logo:hover *{text-decoration:none}
.elementor-button:focus-visible{outline:3px solid #407f65;outline-offset:3px}

/* ---------- Full height: the page always fills the window; on short pages the footer sits at the bottom ---------- */
body{display:flex;flex-direction:column;min-height:calc(100vh - var(--wp-admin--admin-bar--height,0px));min-height:calc(100dvh - var(--wp-admin--admin-bar--height,0px))}
body>.elementor-location-footer{margin-top:auto}
/* "Skip to content" target (empty marker after the header, see functions.php) */
#kt-content:focus{outline:0}

/* ---------- Header: sticky bar; the breadcrumb is page content and scrolls away ---------- */
.elementor-location-header{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.10)}
html{scroll-padding-top:105px}

/* Logo mark: symbol exactly centred in the lime square (no text line-height under the icon) */
.kt-mark-icon .elementor-icon-wrapper,.kt-mark-icon .elementor-icon{display:flex;line-height:0}

/* Desktop menu (.kt-nav): pill items, lime on hover / focus / current page */
.kt-nav .elementor-nav-menu--main>.elementor-nav-menu>li>a.elementor-item{display:inline-flex !important;align-items:center;gap:7px;border-radius:9px;transition:background-color .15s,color .15s}
.kt-nav .elementor-nav-menu--main>.elementor-nav-menu>li:hover>a,
.kt-nav .elementor-nav-menu--main>.elementor-nav-menu>li>a:focus-visible,
.kt-nav .elementor-nav-menu--main>.elementor-nav-menu>li.current-menu-item>a,
.kt-nav .elementor-nav-menu--main>.elementor-nav-menu>li.current-menu-ancestor>a{background:var(--e-global-color-accent);color:#101713 !important}
.kt-nav .elementor-nav-menu--main>.elementor-nav-menu>li::after{border:0 !important} /* Elementor's item divider: off */
.kt-nav .sub-arrow{display:inline-flex;padding:0;margin:0}
.kt-nav .sub-arrow svg{width:10px;height:10px;fill:currentColor}
.kt-nav a:focus-visible{outline:2px solid var(--e-global-color-kmint01);outline-offset:2px}

/* Dropdown: white panel under the parent, right-aligned; opens on hover and keyboard focus */
.kt-nav .menu-item-has-children{position:relative}
.kt-nav .menu-item-has-children::before{content:"";position:absolute;left:0;right:0;top:100%;height:14px} /* hover bridge */
.kt-nav .elementor-nav-menu--main .sub-menu{min-width:245px !important;width:auto !important;padding:9px !important;margin-top:14px !important;
  background:#fff;border:1px solid var(--e-global-color-kline01);border-radius:12px;box-shadow:0 16px 35px rgba(0,0,0,.2)}
.kt-nav .menu-item-has-children:hover>.sub-menu,
.kt-nav .menu-item-has-children:focus-within>.sub-menu{display:block !important;position:absolute;top:100%;right:0;left:auto !important;z-index:110}
.kt-nav .sub-menu li{display:block}
.kt-nav .sub-menu a.elementor-sub-item{display:block !important;padding:9px 12px !important;border:0 !important;border-radius:7px;
  background:transparent !important;color:var(--e-global-color-text) !important}
.kt-nav .sub-menu a.elementor-sub-item:hover,
.kt-nav .sub-menu a.elementor-sub-item:focus-visible,
.kt-nav .sub-menu a.elementor-sub-item.elementor-item-active{background:var(--e-global-color-accent) !important;color:#101713 !important}
.kt-nav .sub-menu li:first-child>a{font-weight:800} /* "All services" */

/* Mobile menu: "Menu" button and panel under the bar below 820px; same Primary menu, sub-items shown indented */
@media (max-width:820px){.kt-hide-below-820{display:none !important}}
@media (min-width:821px){.kt-show-below-820{display:none !important}}
.kt-menu-panel .elementor-widget-off-canvas .e-off-canvas{top:78px;height:calc(100% - 78px);z-index:99}
.kt-menu-panel .elementor-widget-off-canvas .e-off-canvas__content{box-shadow:none}
.kt-menu-panel .elementor-widget-off-canvas .e-off-canvas__content{max-height:100%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media (min-width:821px){.kt-menu-panel{display:none !important}}
.kt-nav-mobile .elementor-nav-menu>li+li{border-top:1px solid rgba(255,255,255,.12)}
.kt-nav-mobile .elementor-item{display:block;width:100%}
.kt-nav-mobile .sub-arrow{display:none}
.kt-nav-mobile .sub-menu{display:block !important;position:static !important;width:auto !important;margin:-6px 0 0 !important;padding:0 0 10px 14px !important;
  background:none !important;border:0 !important;box-shadow:none !important}
.kt-nav-mobile .sub-menu a.elementor-sub-item{padding:7px 0 !important;border:0 !important;background:none !important;
  font-size:14px;font-weight:500;color:rgba(255,255,255,.78) !important}
.kt-nav-mobile .elementor-item:hover,.kt-nav-mobile .elementor-item.elementor-item-active,
.kt-nav-mobile .sub-menu a.elementor-sub-item:hover,.kt-nav-mobile .sub-menu a.elementor-sub-item.elementor-item-active{color:var(--e-global-color-accent) !important}

/* Language switch in the mobile bar (≤820px); the copy inside the mobile menu panel is hidden */
.kt-lang-mobile .elementor-item{display:inline-flex !important;align-items:center;gap:6px;border-radius:8px}
.kt-lang-mobile .trp-flag-image{display:block}
.kt-nav-mobile .trp-language-switcher-container{display:none !important}

/* Very small phones (≤380px, e.g. 320px): smaller logo text and tighter spacing so Menu stays inside the screen */
@media (max-width:380px){
  .kt-header.e-con{--gap:8px !important;--column-gap:8px !important;--padding-left:12px !important;--padding-right:12px !important}
  .kt-header .kt-logo{--gap:8px !important;--column-gap:8px !important}
  .kt-header .kt-logo .elementor-heading-title{font-size:17px !important}
  .kt-header .kt-lang-mobile .elementor-item{padding-left:4px !important;padding-right:4px !important}
  .kt-header .e-con:not(.kt-logo){--gap:6px !important;--column-gap:6px !important}
  .kt-header .kt-show-below-820 .elementor-button{padding-left:11px !important;padding-right:11px !important}
}

/* ---------- Footer ---------- */
.kt-footer a{text-decoration:underline}
.kt-footer a.elementor-button,.kt-footer a.elementor-button:hover{text-decoration:none} /* floating Book button */
.kt-floating .elementor-button{border:2px solid var(--e-global-color-primary);box-shadow:0 6px 21px rgba(0,0,0,.13)}
/* Floating button steps aside (kt.js) while another button is on screen near it or a Book button is visible, while typing,
   and on phones at the footer (it has its own contact links) */
/* Slides up from below the screen edge when it comes back, slides down when it steps aside (John: "needs to be smooth") */
.kt-floating{transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .35s ease-out,visibility 0s}
.kt-floating.kt-away{opacity:0;visibility:hidden;transform:translateY(calc(100% + 30px));pointer-events:none;
  transition:transform .3s ease-in,opacity .25s ease-in,visibility 0s .3s}
@media (prefers-reduced-motion:reduce){.kt-floating,.kt-floating.kt-away{transform:none;transition:opacity .2s,visibility 0s}}
/* Phone footer: contact block + links, each link with a ≥34 px tap area; aligned with the KREATRONIC line */
.kt-foot-links.kt-pfoot p{margin:0;line-height:1.6}
.kt-foot-links.kt-pfoot p+p{margin-top:4px}
.kt-foot-links a{display:inline-block;padding:7px 0}
.kt-foot-links.kt-pfoot p.kt-foot-contact{margin-bottom:12px}
.kt-foot-links p.kt-foot-contact a{padding:4px 0}

/* ---------- Breadcrumb bar (Rank Math shortcode) ---------- */
.kt-crumb .rank-math-breadcrumb p{margin:0;font-size:13px;line-height:1.57;color:var(--e-global-color-kcrumbt)}
.kt-crumb .rank-math-breadcrumb a{color:inherit}

/* ---------- Content helpers ---------- */
.kt-card.e-con{transition:box-shadow .15s}
.kt-card.e-con:hover{box-shadow:0 8px 24px rgba(17,23,21,.08)}
/* Card grids: two per row on landscape phones / small tablets (561-860px) instead of one long column */
@media (min-width:561px) and (max-width:860px){.kt-cards.e-grid{--e-con-grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
.kt-img img{display:block;width:100%;height:auto;object-fit:cover}
.kt-img-h300 img{max-height:300px}
.kt-img-ar1610 img{aspect-ratio:16/10}
@media (max-width:820px){.kt-img-m275 img{max-height:275px}}
.kt-p15 p{margin:0 0 15px}
.kt-p15 p:last-child{margin-bottom:0}
.kt-pfoot p{margin:14px 0}
.kt-mw760 .elementor-heading-title{max-width:760px}
.kt-mw660 p{max-width:660px}
.kt-mw850 p{max-width:850px}

/* ---------- Booking form (Fluent Forms) ---------- */
.kt-booking .fluentform .ff-el-input--label label{font-size:14px;font-weight:700;color:var(--e-global-color-text)}
.kt-booking .fluentform .ff-el-form-control{font:inherit;padding:11px;border-radius:8px;border:1px solid var(--e-global-color-kinput1);width:100%}
.kt-booking .fluentform .ff-btn-submit{background:var(--e-global-color-accent) !important;color:#111 !important;border:0 !important;border-radius:28px !important;
  font-weight:750 !important;padding:13px 21px !important;font-family:inherit !important}
.kt-booking .fluentform .ff-btn-submit:hover{background:var(--e-global-color-klimehv) !important}

/* ---------- Booking popup: scroll inside when taller than the screen (phones) ---------- */
.elementor-popup-modal .dialog-widget-content{max-height:calc(100vh - 24px);overflow-y:auto}
/* Date picker on short screens (landscape phones): centred in the screen instead of hanging below the field */
@media (max-height:600px){
  .flatpickr-calendar.open{position:fixed !important;top:50% !important;left:50% !important;right:auto !important;transform:translate(-50%,-50%);
    max-height:calc(100vh - 16px);overflow-y:auto;box-shadow:0 0 0 100vmax rgba(0,0,0,.35),0 10px 30px rgba(0,0,0,.3) !important}
  .flatpickr-calendar.open::before,.flatpickr-calendar.open::after{display:none}
}

/* ---------- Inner pages ---------- */
/* Text + image hero (design .service-layout): paragraphs 700 max, image 4:3 */
.kt-svc-text p{margin:0 0 18px;max-width:700px}
.kt-svc-text p:last-child{margin-bottom:0}
.kt-img-43 img{aspect-ratio:4/3}
@media (max-width:860px){.kt-img-43 img{max-height:360px}} /* one column: no huge images on landscape phones / small tablets */
/* (Sticky page-top image from the v10 design removed 2026-10-21: John/Han want images to stay in place) */
/* Logistics steps: green number before the text */
.kt-step b{color:#24754e;display:inline-block;min-width:31px}
/* Placeholders still to be filled in ([tbc: …]) on the legal pages */
.tbc{color:var(--e-global-color-kdanger,#C8102E);font-family:ui-monospace,Menlo,monospace;font-size:.9em}
.tbcblock{display:block;border:1px dashed #C8102E;border-radius:8px;padding:12px 14px;color:#C8102E;font-family:ui-monospace,Menlo,monospace;font-size:13px}

/* ---------- 404 page: quick links ---------- */
.kt-404-links a{color:var(--e-global-color-kgreen1);font-weight:700;text-decoration:underline}
