/* ============================================================
   KVOUTS REDESIGN v4
   Layout / composition overlay — functionality stays untouched.
   Injected on every page. Brand tokens: /redesign/brand.css.
   ============================================================ */

/* ---------- global rhythm ---------- */
html { scroll-behavior: smooth; }

/* ---------- 1. Floating two-row pill header ---------- */
/* Seamless canvas: white instead of grey, so the gaps between the floating
   cards read as one continuous surface across the whole site. */
body { background: #ffffff; }
@media (min-width: 1025px) {
  header.desktop {
    position: relative !important;   /* unfrozen: sits at the top of the page and scrolls away */
    left: auto !important;
    right: auto !important;
    top: auto !important;
    translate: none !important;
    transform: none !important;
    width: min(1856px, calc(100% - 64px)) !important;
    margin: 12px auto 0 !important;  /* centered pill at the top, in normal flow */
    height: auto !important;
    max-height: none !important;
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(13, 11, 54, 0.35);
  }
  /* the header bar lives in a boxed 1200px Elementor container; un-box it so the
     ribbon spans the full viewport width again (calc(100% - 64px) = viewport - 64),
     exactly the proportions it had when it was fixed / on the homepage hero */
  header.elementor-location-header .e-con-inner { max-width: none !important; }
  header.desktop .header-container {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav actions";
    align-items: center;
    column-gap: 18px;
    height: auto !important;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  /* header is in normal flow now, so content only needs a small top gap */
  .cbp-hero { margin-top: 14px !important; }
  .cbh-hero { margin-top: 0 !important; }
  header.desktop a.logo { grid-area: logo; }
  header.desktop .navbar-2 { grid-area: actions; }
  header.desktop nav.navbar-1 {
    grid-area: nav;
    justify-self: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px 8px;
  }
  header.desktop .nav__links li a {
    display: inline-block;
    border-radius: 999px;
    padding: 8px 18px;
    transition: background 0.15s ease;
  }
  header.desktop .nav__links li a:hover { background: rgba(255, 255, 255, 0.13); }
  header.desktop .btn--header { border-radius: 999px !important; }
  /* mega menu panel: center under the floating header */
  header.desktop .header__expandMenu {
    left: 50% !important;
    right: auto !important;
    translate: none !important;
    transform: none !important;
    margin-left: calc(min(1400px, 100vw - 64px) / -2);
    width: min(1400px, calc(100vw - 64px)) !important;
    top: 100% !important;
    margin-top: 10px;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(13, 11, 54, 0.4);
    overflow: hidden;
  }
  /* homepage: ribbon is solid navy and fuses with the hero top — same colour,
     no seam line — and (since it now scrolls away with the page) it keeps that
     fused look at all times instead of detaching into a floating pill */
  body.home header.desktop {
    border-radius: 22px 22px 0 0;
    box-shadow: none;
    background: #0d0b36 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
  }
}

/* ---------- 2. BOLD: every section becomes a floating island ---------- */
@media (min-width: 768px) {
  .elementor[data-elementor-type="wp-page"] > .e-parent {
    width: calc(100% - 44px) !important;
    max-width: 1720px;
    margin: 26px auto !important;
    border-radius: 24px;
    overflow: clip;
    box-shadow: 0 16px 44px rgba(13, 11, 54, 0.08);
  }
  .elementor[data-elementor-type="wp-page"] > .e-parent:first-of-type {
    margin-top: 16px !important;
  }
}

/* section entrance motion (Chrome scroll-driven, progressive) */
@supports (animation-timeline: view()) {
  @media (min-width: 768px) {
    .elementor[data-elementor-type="wp-page"] > .e-parent {
      animation: cb-rise 0.7s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}
@keyframes cb-rise {
  from { opacity: 0.2; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 3. Typography scale: bigger, tighter headlines ---------- */
.elementor h1.elementor-heading-title {
  font-size: clamp(40px, 5vw, 66px) !important;
  line-height: 1.05 !important;
  letter-spacing: -1.2px;
}
.elementor h2.elementor-heading-title {
  font-size: clamp(28px, 3.4vw, 42px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.6px;
}

/* ---------- 4. Homepage hero: fully recomposed (centered, media below) ---------- */
@media (min-width: 1025px) {
  .elementor-element-2ea4f48 > .e-con-inner {
    flex-direction: column !important;
    align-items: center;
    gap: 34px;
  }
  .elementor-element-2ea4f48 .glass-card {
    max-width: 880px;
    margin: 0 auto;
    align-items: center !important;
    text-align: center;
  }
  .elementor-element-2ea4f48 .glass-card .elementor-button-wrapper { text-align: center; }
  .elementor-element-2ea4f48 > .e-con-inner > .e-child:not(.glass-card) {
    width: min(100%, 1020px) !important;
    max-width: 1020px !important;
    margin: 0 auto;
  }
}
.glass-card {
  border-radius: 22px !important;
  box-shadow: 0 26px 70px rgba(13, 11, 54, 0.22) !important;
  backdrop-filter: blur(10px);
}

/* subpage heroes: centered composition instead of left-aligned */
body:not(.home) .elementor[data-elementor-type="wp-page"] > .e-parent:first-of-type > .e-con-inner > .e-child:only-child {
  align-items: center;
  text-align: center;
}
body:not(.home) .elementor[data-elementor-type="wp-page"] > .e-parent:first-of-type > .e-con-inner > .e-child:only-child .elementor-widget-button .elementor-button-wrapper {
  text-align: center;
}

/* ---------- 5. Buttons: big pills + lift ---------- */
.elementor-button,
a.button,
button.button {
  border-radius: 999px !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.elementor-button:hover,
a.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

/* ---------- 6. Media: rounded, framed ---------- */
.elementor-widget-image img:not([src*="Logo"]):not([src*="logo"]):not([src*="flag"]):not([src*="icon"]) {
  border-radius: 16px;
}
.elementor-widget-video iframe,
.elementor-widget-video video,
.elementor-video,
.e-hosted-video video {
  border-radius: 16px;
  overflow: hidden;
}

/* ---------- 7. Content cards: heading+button leaf containers ---------- */
.elementor[data-elementor-type="wp-page"]
  .e-child:not(.glass-card):has(> .elementor-widget-heading):has(> .elementor-widget-button):not(:has(.e-child)) {
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(13, 11, 54, 0.09);
  padding: 32px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.elementor[data-elementor-type="wp-page"]
  .e-child:not(.glass-card):has(> .elementor-widget-heading):has(> .elementor-widget-button):not(:has(.e-child)):hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.15);
}

/* ---------- 8. Zigzag: alternate 2-column media rows (tagged by JS) ---------- */
@media (min-width: 1025px) {
  .cb-flip { flex-direction: row-reverse !important; }
}

/* ---------- 9. Mega menu: tile grid with bigger chips ---------- */
.sub__menu .subMenu__items:has(li:nth-child(5)) {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 3px 16px;
}
.sub__menu .subMenu__item a {
  border-radius: 12px;
  padding: 9px 12px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sub__menu .subMenu__item a:hover {
  background: rgba(88, 101, 241, 0.08);
  transform: translateX(5px);
}
.sub__menu .subMenu__item img {
  border-radius: 10px;
  width: 46px;
  height: 46px;
}
.sub__menu .title {
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-left: 12px; /* align header with item icon column (item <a> has padding-left:12px) */
}

/* ---------- 10. New icon set sizing ---------- */
img[src*="/redesign/icons/feature_"], img[data-src*="/redesign/icons/feature_"],
img[src*="/redesign/icons/extra_"], img[data-src*="/redesign/icons/extra_"] {
  width: 104px !important;
  height: 104px !important;
}
.elementor-widget-image img[src*="/redesign/icons/"]:not([src*="feature_"]):not([src*="extra_"]) {
  width: 64px;
  height: 64px;
}
img[src^="/redesign/icons/"], img[data-src^="/redesign/icons/"] { background: none; }

/* ---------- 11. Footer: floating island slab ---------- */
@media (min-width: 768px) {
  #footer {
    border-radius: 24px;
    width: min(1856px, calc(100% - 64px));
    max-width: none;
    margin: 10px auto 26px;
    overflow: clip;
  }
}
@media (min-width: 1025px) {
  /* trim the large empty top space + let content fill the full footer width */
  #footer { padding-top: 12px !important; padding-bottom: 18px !important; }
  #footer > .e-con-inner { padding-top: 28px !important; padding-bottom: 8px !important; max-width: none !important; }
  .footer__body {
    flex-wrap: wrap;
    gap: 34px 96px !important;
  }
  .footer__body > .e-child:first-child {
    flex-direction: row !important;
    flex-basis: 100%;
    width: 100%;
    max-width: 100% !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 22px;
  }
  /* columns take natural width and cluster centered as a group (not stretched edge-to-edge) */
  .footer__body > .e-child:not(:first-child) { flex: 0 1 auto !important; min-width: 200px; max-width: 320px !important; }
  /* separate each section header from its links */
  #footer .footer__body .elementor-widget-heading { margin-bottom: 16px !important; }
}

/* center all footer content */
#footer .footer__body { justify-content: center !important; }
#footer .footer__body > .e-child:first-child { justify-content: center !important; }
#footer .footer__col { text-align: center; align-items: center; }
#footer .footer__col .elementor-icon-list-items { align-items: center; }
#footer .footer__col .elementor-icon-list-item,
#footer .footer__col .elementor-icon-list-item a { justify-content: center; }
#footer .footer__socket .legal { justify-content: center !important; flex-wrap: wrap; }
#footer .footer__col .elementor-heading-title { color: var(--kv-lime) !important; font-size: 22px !important; }
/* more breathing room between each footer heading and its links */
#footer .footer__col .elementor-widget-heading { margin-bottom: 26px !important; }
/* the Company section stacked under Contact & Help gets clear separation above it */
#footer .footer__col .footer__subhead { margin-top: 34px !important; }

/* ===== kvouts brand overlay (Kvouts brand.pdf) ===== */
/* Elementor kit + booking form legacy red variables -> brand violet.
   post-12.css: body a, .btn--red/--white/--outline, breadcrumbs etc.
   63966.css: booking form submit + required asterisks. */
:root, #mx, html#mx {
  --color--red: #5865f1 !important;
  /* hover == base so legacy `a:hover`/button hover rules don't shift colour */
  --color--red-hover: #5865f1 !important;
  --color--red-light: #7c6fee !important;
  --color--red-light-hover: #5865f1 !important;
  --cargoboard-color-red: #5865f1 !important;
  --cargoboard-color-red-hover: #4750e5 !important;
}
body, button, input, select, textarea { font-family: Inter, system-ui, sans-serif; }
:root, #mx { --font-primary: 'Manrope', system-ui, sans-serif !important; --font-secondary: 'Inter', system-ui, sans-serif !important; }
.cbh h1, .cbh h2, .cbh h3, .cbp h1, .cbp h2, .cbp h3, .cbp h4,
.cbh-stat strong, .cbp-step-no { font-family: Manrope, system-ui, sans-serif !important; font-weight: 800 !important; }

/* dark navy header bar (mockup) */
@media (min-width: 1025px) {
  header.desktop {
    background: rgba(13, 11, 54, 0.92) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 34px rgba(13, 11, 54, 0.35);
    color: #fff !important;
  }
  header.desktop .header-container a, header.desktop .nav__links li a,
  header.desktop .navbar-2 a { color: #fff !important; }
  header.desktop nav.navbar-1 {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  header.desktop .nav__links li a:hover { background: rgba(255, 255, 255, 0.12); }
  header.desktop .btn--header { background: #5865f1 !important; color: #fff !important; }
  header.desktop .btn--header:hover { background: #4750e5 !important; }
  header.desktop .header__expandMenu,
  header.desktop .header__expandMenu .menu__container,
  header.desktop .header__expandMenu .menu-content { background: #0d0b36 !important; }
  header.desktop .header__expandMenu .menu-content__inner,
  header.desktop .header__expandMenu .sub__menu { background: transparent !important; }
  header.desktop .header__expandMenu a, header.desktop .header__expandMenu .label__headline { color: #fff !important; }
  header.desktop .header__expandMenu .label__desc { color: rgba(255, 255, 255, 0.6) !important; }
  header.desktop .header__expandMenu .sub__menu .title { color: #c3b4fd !important; }
  header.desktop .header__expandMenu .subMenu__item a:hover { background: rgba(255, 255, 255, 0.08); }
  header.desktop svg { color: #fff; }
}
/* k>outs wordmark: "k" + arrow ">" + "outs", Manrope ExtraBold */
.kv-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; background: #5865f1; border-radius: 10px; color: #fff !important; margin-right: 10px; vertical-align: middle; }
.kv-word { font-family: Manrope, system-ui, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.5px; color: inherit; vertical-align: middle; white-space: nowrap; }
.kv-gt { display: inline-block; transform: translateY(-1px); margin: 0 1px; }
a.logo { display: inline-flex; align-items: center; color: #fff !important; text-decoration: none; }
.kv-word-footer { font-size: 60px; color: #fff; }
/* larger main logo in the top header (footer logo unaffected — it has no .logo class) */
a.logo .kv-word { font-size: 40px; }
/* the ">" is a <span>, so Elementor's `a,li,p,span{font-size:16px}` pins it small;
   force it to track the letters (1em = the parent .kv-word size) in BOTH the top
   header logo and the footer logo, on every page */
.kv-word .kv-gt, .kv-brand .kv-gt { font-size: 1em; }
/* inline brand wordmark: renders "k>outs" in running text — brand font + weight, but
   inherits the surrounding font-size/colour so it never looks oversized; always lowercase */
.kv-brand { font-family: Manrope, system-ui, sans-serif; font-weight: 800; font-size: inherit; color: inherit; letter-spacing: -0.01em; text-transform: none; white-space: nowrap; }
/* never underline the logo, including on hover/focus (header + footer, every page) */
a.logo, a.logo:hover, a.logo:focus,
a:has(.kv-word-footer), a:has(.kv-word-footer):hover, a:has(.kv-word-footer):focus {
  text-decoration: none !important;
}
/* the header's inline `header#header a:focus{outline:...}` draws a 1px rectangle when
   the logo is clicked/focused — suppress it for the logo only (header + footer) */
header#header a.logo:focus, header#header a.logo:focus-visible,
a:has(.kv-word-footer):focus, a:has(.kv-word-footer):focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
/* "Sign in" pill (replaces the user icon) */
.kv-signin { display: inline-flex; align-items: center; border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 999px; padding: 8px 20px; font-family: Manrope, system-ui, sans-serif; font-weight: 700; font-size: 14px; color: #fff !important; text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease; }
.kv-signin:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* footer: brand navy vietoj seno teal gradiento */
#footer { background: #0d0b36 !important; }
#footer a { color: rgba(255, 255, 255, 0.82) !important; }
#footer a:hover { color: #fff !important; }

/* language switcher: transparent flag button on the dark bar */
header.desktop .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle { background: transparent !important; border: 0 !important; }
header.desktop .wpml-ls-legacy-dropdown .wpml-ls-sub-menu { background: #0d0b36 !important; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(13, 11, 54, 0.4); }
header.desktop .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a { background: transparent !important; }
header.desktop .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover { background: rgba(255, 255, 255, 0.1) !important; }

/* chat bubble: brand violet instead of legacy red */
#hs-chat-facade .hs-facade-inner { background: #5865f1 !important; }
#hs-chat-facade:hover .hs-facade-inner { background: #4750e5 !important; }

/* kit'o `p { color: var(--color--ink) }` perraso paveldejima — tamsiose zonose tekstas
   tampa nematomas. Grazinam sviesu teksta, o baltoje formos korteleje — tamsu. */
.cbp-hero p, .cbp-hero li { color: rgba(255, 255, 255, 0.85) !important; }
.cbp-hero strong { color: #fff !important; }
#mx .cbp-hero .cbp-form .info-text p { color: rgba(255, 255, 255, 0.65) !important; font-style: normal; }

/* subpage hero glows: violet instead of red */
.cbp-hero::before { background: radial-gradient(circle at 30% 30%, rgba(88, 101, 241, 0.4), transparent 62%) !important; }
.cbp-hero::after { background: radial-gradient(circle, rgba(33, 211, 237, 0.18), transparent 60%) !important; }

/* soft cards */
.cbp-sec, .cbh section { box-shadow: 0 3px 10px rgba(17, 19, 42, 0.08); }
.cbp-card, .cbp-tile { border: 1px solid rgba(17, 19, 42, 0.14) !important; box-shadow: none !important; }
.cbp-cta { background: #0d0b36 !important; }
/* dark CTA juosta: viskas skaitoma ant navy */
.cbp-cta h1, .cbp-cta h2, .cbp-cta h3, .cbp-cta p, .cbp-cta span,
.cbp-cta .elementor-heading-title { color: #fff !important; }
.cbp-cta a.elementor-button, .cbp-cta .elementor-button,
.cbp-cta a.btn--red, .cbp-cta .btn--red a, .cbp-cta a.btn--white, .cbp-cta .btn--white a {
  background: #5865f1 !important; color: #fff !important; border-color: transparent !important;
}
.cbp-cta a.elementor-button:hover, .cbp-cta .elementor-button:hover { background: #4750e5 !important; }
.kv-qtitle { color: #fff; font-size: 21px; margin: 0 0 4px; font-family: Manrope, system-ui, sans-serif; font-weight: 800; }
.kv-qsub { color: rgba(255, 255, 255, 0.65); font-size: 13.5px; margin: 0 0 16px; }

/* header nav: links sit directly in the ribbon (no pill block), and each label
   stays on a single line; the row is free to take the width it needs */
@media (min-width: 1025px) {
  header.desktop nav.navbar-1 {
    background: transparent !important;
    border: 0 !important;
    padding: 0;
  }
  header.desktop .nav__links { gap: 26px; flex-wrap: nowrap; }
  header.desktop .nav__links li { white-space: nowrap; }
  header.desktop .nav__links li a { white-space: nowrap; }
}

/* ============================================================
   Static links & buttons — no colour, underline, or border/outline
   change on hover, focus, or click. (Movement/shadow lift is kept;
   form inputs keep their focus ring for accessibility.)
   ============================================================ */
/* 1 · never underline a link or button in any state */
a, a:hover, a:focus, a:active, a:focus-visible { text-decoration: none !important; }

/* 2 · no focus/click outline on links & buttons */
a:focus, a:focus-visible, a:active,
button:focus, button:focus-visible, button:active,
.elementor-button:focus, .elementor-button:focus-visible, .elementor-button:active,
.btn:focus, .btn:focus-visible, .cbh-btn:focus, .cbp-btnrow a:focus,
.kv-signin:focus, header#header a:focus, header#header a:focus-visible {
  outline: none !important;
}

/* 3 · keep the resting colour / background / border on hover, focus & active */
/* header nav links + action buttons */
header.desktop .nav__links li a:hover,
header.desktop .nav__links li a:focus,
header.desktop .nav__links li a:active { background: transparent !important; }
header.desktop .btn--header:hover,
header.desktop .btn--header:focus,
header.desktop .btn--header:active { background: #5865f1 !important; }
.kv-signin:hover, .kv-signin:focus, .kv-signin:active {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}
/* mega-menu + language-switcher dropdown links (keep the slide, drop the tint) */
.sub__menu .subMenu__item a:hover, .sub__menu .subMenu__item a:focus,
header.desktop .header__expandMenu .subMenu__item a:hover,
header.desktop .header__expandMenu .subMenu__item a:focus { background: transparent !important; }
header.desktop .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover { background: transparent !important; }
/* footer links keep their resting colour */
#footer a:hover, #footer a:focus, #footer a:active { color: rgba(255, 255, 255, 0.82) !important; }
/* content buttons: no darkening on hover */
.cbh-btn-red:hover, .cbh-btn-red:focus, .cbh-btn-red:active { background: var(--color-accent) !important; }
.cbp-cta a.elementor-button:hover, .cbp-cta a.elementor-button:focus,
.cbp-cta .elementor-button:hover, .cbp-cta .cbh-btn-red:hover { background: #5865f1 !important; }
.btn-primary:hover, .btn-primary:active { background: var(--color-accent) !important; }
.btn-secondary:hover, .btn-secondary:active,
.btn-ghost:hover, .btn-ghost:active { background: transparent !important; }
.btn-dark:hover { background: var(--kv-ship) !important; }
.nav a:hover, .nav a:focus { color: inherit !important; }

/* ============================================================
   Location autocomplete dropdown — clean rounded brand menu, matching
   the Calculate-Price (my-index) form. The list portals to <body>, so it
   is styled globally via #mx rather than scoped to a form card.
   ============================================================ */
#mx .autocomplete-result-list {
  background: #fff !important;
  border: 1.5px solid #e0e3f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 44px rgba(17, 19, 42, 0.16) !important;
  padding: 6px !important;
  overflow: hidden !important;
}
#mx .autocomplete-result {
  border-radius: 10px !important;
  padding: 11px 14px !important;
  color: #11132a !important;
  font-family: Inter, system-ui, sans-serif !important;
}
#mx .autocomplete-result:hover,
#mx .autocomplete-result[aria-selected="true"] {
  background: rgba(88, 101, 241, 0.08) !important;
  color: #11132a !important;
}
