/*
Theme Name: KAZ Blank
Author: KAZ
Description: A blank theme with KAZ design tokens.
Version: 1.0
*/

/* ==========================================================================
   Modern CSS Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: var(--font-body), sans-serif;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
[class$="-desc"] {
  text-wrap: balance;
}

address {
  font-style: normal;
}


:root {
  /* 1. Color Palette */
  --color-primary: #0075FF;
  --color-secondary: #051229;
  --color-bg: #F7F7F7;
  --color-text: #364052;

  /* Spacing & Borders */
  --border-radius-lg: 12px;

  /* 2. Typography - Font Families */
  --font-heading: 'Libre Franklin', sans-serif;
  --font-body: 'Lato', sans-serif;

  /* Typography - Fluid Sizes (min-viewport: 320px, max-viewport: 1920px) */
  --h1-font-size: clamp(40px, calc(40px + 32 * ((100vw - 320px) / 1600)), 72px);
  --h1-line-height: 1.1;
  --h1-font-weight: 600;

  --h2-font-size: clamp(32px, calc(32px + 16 * ((100vw - 320px) / 1600)), 48px);
  --h2-line-height: 1.2;
  --h2-font-weight: 600;

  --h3-font-size: clamp(24px, calc(24px + 8 * ((100vw - 320px) / 1600)), 32px);
  --h3-line-height: 1.2;
  --h3-font-weight: 600;

  --h4-font-size: clamp(20px, calc(20px + 4 * ((100vw - 320px) / 1600)), 24px);
  --h4-line-height: 1.2;
  --h4-font-weight: 600;

  --h5-font-size: clamp(18px, calc(18px + 2 * ((100vw - 320px) / 1600)), 20px);
  --h5-line-height: 1.2;
  --h5-font-weight: 600;

  --h6-font-size: 16px;
  --h6-line-height: 1.2;
  --h6-font-weight: 600;

  --body-font-size: 16px;
  --body-line-height: 1.6;
  --body-font-weight: 400;

  /* 3. UI Components */
  --btn-border-radius: 50px;
  --btn-padding: 4.5px;
  --btn-bg: var(--color-bg);
  --btn-text: var(--color-secondary);
  --btn-icon-accent: var(--color-primary);

  /* 4. Animations and Transitions */
  --transition-standard: all 0.3s ease-in-out;
  --transition-motion: transform 0.4s ease-in-out;

  /* 5. Box Shadows */
  --shadow-card: rgba(0, 0, 0, 0.06) 0px 0px 15px 0px;
  --shadow-glow: rgba(0, 117, 255, 0.08) 0px 0px 0px 6.94px;
}

/* 6. Buttons */
.tj-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Fluid font size: 14px @ 400px to 16px @ 1200px */
  font-size: clamp(0.875rem, 0.8125rem + 0.25vw, 1rem);
  line-height: 1;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-secondary);
  padding: 0.34375em;
  /* 5.5px / 16px */
  border-radius: var(--border-radius-lg);
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  max-width: 100%;
  /* Prevent overflowing parent */
}

.tj-primary-btn .btn_inner {
  position: relative;
  z-index: 1;
  padding: 0.75em 1.125em 0.75em 3.125em;
  /* 12px 18px 12px 50px */
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.tj-primary-btn .btn_inner::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 2.5em;
  /* 40px */
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 9px;
  transition: all 0.3s ease-in-out 0s;
}

.tj-primary-btn .btn_inner .btn_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  min-width: 2em;
  /* 40px */
  height: 100%;
  z-index: 2;
  font-size: 1.25em;
  /* 20px */
  color: #ffffff;
}

.tj-primary-btn .btn_inner .btn_icon>span {
  overflow: hidden;
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 1em;
  /* 20px */
  height: 1em;
  /* 20px */
  align-items: center;
}

.tj-primary-btn .btn_inner .btn_icon>span i {
  display: inline-block;
  width: 1em;
  /* 20px */
  height: 1em;
  /* 20px */
  background-color: currentColor;
  -webkit-mask-image: url('assets/img/btn-arrow.svg');
  mask-image: url('assets/img/btn-arrow.svg');
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform 0.4s ease-in-out 0s;
}

.tj-primary-btn .btn_inner .btn_icon>span i:last-child {
  position: absolute;
  transform: translateX(-150%);
}

.tj-primary-btn .btn_inner .btn_text {
  display: inline-flex;
  overflow: hidden;
  color: #ffffff;
  text-shadow: 0 1.4375em 0 currentColor;
  /* 23px */
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tj-primary-btn .btn_inner .btn_text>span {
  display: flex;
  align-items: center;
  backface-visibility: hidden;
  transform: translateY(0);
  transition: 0.5s;
}

/* Light variant (for dark backgrounds) */
.tj-primary-btn.header_btn {
  background-color: var(--color-bg);
  padding: 0.28125em;
  /* 4.5px */
}

.tj-primary-btn.header_btn .btn_inner .btn_text {
  color: var(--color-secondary);
}

/* Hover Effects */
.tj-primary-btn:hover .btn_inner::before {
  width: 100%;
}

.tj-primary-btn:hover .btn_inner .btn_icon i:first-child {
  transform: translateX(150%);
}

.tj-primary-btn:hover .btn_inner .btn_icon i:last-child {
  transform: translateX(0);
}

.tj-primary-btn:hover .btn_inner .btn_text {
  color: #ffffff;
}

.tj-primary-btn:hover .btn_inner .btn_text>span {
  transform: translateY(-1.4375em);
  /* 23px */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.kaz-hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-bg);
}

.kaz-hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.kaz-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(247, 247, 247, 0.75) 0%, rgba(247, 247, 247, 0.85) 30%, rgba(247, 247, 247, 0) 65%);
  z-index: 1;
}

.kaz-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 80px;
  /* Space for the bottom bar */
}

.kaz-hero__content-left {
  flex: 1;
  max-width: 600px;
}

.kaz-hero__content-left h1 {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--h1-font-size);
  line-height: var(--h1-line-height);
  font-weight: var(--h1-font-weight);
  margin-bottom: 20px;
}

.kaz-hero__content-left h2 {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--h5-font-size);
  line-height: 1.6;
  font-weight: 400;
  max-width: 550px;
  margin-bottom: 40px;
}

/* Specific styling for the hero CTA button */
.kaz-hero__cta {
  background-color: var(--color-primary) !important;
}

.kaz-hero__cta .btn_inner::before {
  background-color: var(--color-secondary) !important;
}

.kaz-hero__cta:hover {
  box-shadow: 0 4px 15px rgba(0, 117, 255, 0.3);
}

.kaz-hero__content-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 40px;
}

.kaz-hero__glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-lg);
  padding: 20px 30px;
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.kaz-hero__glass-card h3 {
  font-family: var(--font-heading);
  font-size: var(--h5-font-size);
  font-weight: 700;
  margin-bottom: 5px;
}

.kaz-hero__glass-card p {
  font-family: var(--font-body);
  font-size: var(--body-font-size);
  margin: 0;
}

/* Floating Status Bar */
.kaz-hero__status-wrapper {
  position: absolute;
  bottom: calc(5vw + 10px);
  left: 0;
  width: 100%;
  z-index: 3;
}

.kaz-hero__status-bar {
  font-family: var(--font-body);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-lg);
  padding: 20px 30px;
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.kaz-hero__live-price span {
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 5px;
}

.price-history-indicators.kaz-hero__history-price {
  color: #fff;
}

.kaz-hero__history-price strong {
  color: #ffffff;
  font-weight: 700;
  margin-left: 5px;
}

@media (max-width: 992px) {
  .kaz-hero__container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
  }

  .kaz-hero__content-right {
    margin-left: 0;
    margin-top: 40px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .kaz-hero__status-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .kaz-hero {
    /* Using .jpg since theme assets bypass the WP Media Library upload hook */
    background-image: url('assets/img/hero-bg-mobile.webp');
    background-size: cover;
    background-position: center;
  }

  .kaz-hero__video {
    display: none;
  }

  /* Switch gradient to vertical on mobile for better text protection */
  .kaz-hero__overlay {
    background: linear-gradient(180deg, rgba(247, 247, 247, 0.95) 0%, rgba(247, 247, 247, 0.85) 40%, rgba(247, 247, 247, 0) 90%);
  }
}

/* ==========================================================================
   Global Section System
   ========================================================================== */
.kaz-section {
  position: relative;
  padding-top: 120px;
  padding-bottom: 90px;
  box-sizing: border-box;
}

.kaz-section.procedure {
  background-color: var(--color-bg);
}

.container {
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* ==========================================================================
   Typography & Section Headers
   ========================================================================== */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.kaz-section-header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
}

/* Aligns the inline-flex subheading and text block accordingly */
.text-left.kaz-section-header {
  align-items: flex-start;
}

.text-center.kaz-section-header {
  align-items: center;
}

.text-right.kaz-section-header {
  align-items: flex-end;
}

.kaz-subheading {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-body);
  font-size: 0.875rem;
  /* 14px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 1em;
}

.kaz-subheading::before,
.kaz-subheading::after {
  content: "•";
  font-size: 1.2em;
}

.kaz-heading {
  font-family: var(--font-heading);
  font-size: var(--h2-font-size);
  font-weight: 700;
  line-height: var(--h2-line-height);
  color: inherit;
  text-wrap: balance;
  /* em unit scales naturally with the clamped font-size */
  margin-bottom: 0.5em;

  +.kaz-heading-desc {
    margin-block-start: -0.75em;
  }
}

.kaz-heading-desc {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: inherit;
  opacity: 0.8;
  max-width: 600px;
  margin-bottom: 0;
}

/* ==========================================================================
   Service / Procedure Stacking Cards (tj_service logic)
   ========================================================================== */
.service-item {
  width: 100%;
  height: 670px;
  position: sticky;
  top: 0;
  z-index: 5;

  +.service-item {
    margin-top: 20px;
  }
}

.service-item__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background-color: var(--color-secondary);
  /* Navy */
  overflow: hidden;
  will-change: transform, opacity;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  transform-origin: top center;
  border-radius: var(--border-radius-lg);

  /* Native CSS Transitions */
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.service-item.is-visible .service-item__inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.service-item.is-covered .service-item__inner {
  transform: scale(0.92) translateY(40px);
  opacity: 0.2;
}

.service-content {
  width: 50%;
  /* 50/50 split requested by user */
  display: flex;
  flex-direction: column;
  padding: 60px 50px 60px 65px;
  /* Computed style padding pattern */
  color: #ffffff;
}

.service-number {
  display: flex;
  align-items: flex-end;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.service-number .muted {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 3px;
  margin-left: 2px;
}

.service-text {
  margin-top: auto;
  /* Push to bottom as in the computed style */
}

.service-text h3 {
  font-family: var(--font-heading);
  font-size: var(--h2-font-size);
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.service-text p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 90%;
}

.service-icon {
  margin-bottom: 40px;
}

.service-icon svg {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  fill: currentColor;
}

.service-images {
  width: 50%;
  /* 50/50 split requested by user */
  position: relative;
  height: 100%;
}

.service-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .kaz-section {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .service-item {
    height: auto;
    position: relative;
    /* Disable sticky on mobile for better UX */
  }

  .service-item__inner {
    flex-direction: column;
  }

  .service-content {
    width: 100%;
    padding: 15% 10%;
  }

  .service-images {
    width: 100%;
    height: 400px;
  }
}

/* ==========================================================================
   Products Container Leak Section
   ========================================================================== */
.kaz-products-leak {
  overflow: hidden;
  /* Prevent horizontal scroll on body */
  background-color: var(--color-bg);
  padding-bottom: 120px;
}

.kaz-products-wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  align-items: stretch;
}

.kaz-products-left {
  width: 40%;
  flex-shrink: 0;
  /* Align to the 1400px container, 15px min padding for mobile */
  padding-left: max(15px, calc((100vw - 1400px) / 2));
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kaz-products-right {
  width: 60%;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  padding-bottom: 20px;
  /* Space for shadow */
  padding-top: 20px;
  position: relative;
}

.kaz-products-right::-webkit-scrollbar {
  display: none;
}

.kaz-product-card {
  scroll-snap-align: start;
  flex: 0 0 320px;
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: var(--transition-standard);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.kaz-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.kaz-product-image {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  background-color: #ffffff;
  border-radius: 8px;
}

.kaz-product-image img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.kaz-product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kaz-product-title {
  font-family: var(--font-heading);
  font-size: var(--h4-font-size);
  color: var(--color-text);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kaz-product-price {
  font-family: var(--font-body);
  font-size: 0.95rem;
  /* Smanjeno sa 1.125rem */
  color: var(--color-text);
  margin-bottom: 25px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
  /* Razmak izmedju 'Cena:' i same cene */
  flex-wrap: wrap;
}

.kaz-product-price span {
  font-weight: 700;
  color: var(--color-text);
  display: inline;
  font-size: 1rem;
  margin-top: 0;
}

.kaz-product-cta {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-standard);
}

.kaz-product-cta::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.kaz-product-cta:hover {
  color: var(--color-secondary);
}

.kaz-product-cta:hover::after {
  transform: translateX(4px);
}

/* Add padding to the end of the slider to respect the right edge matching the left */
.kaz-products-spacer {
  flex: 0 0 max(15px, calc((100vw - 1400px) / 2));
}

.kaz-slider-controls {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.kaz-slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  color: var(--color-secondary);
  cursor: pointer;
  transition: var(--transition-standard);
}

.kaz-slider-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

@media (max-width: 992px) {
  .kaz-products-wrapper {
    flex-direction: column;
  }

  .kaz-products-left {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 40px;
  }

  .kaz-products-right {
    width: 100%;
    /* Keep the left padding matching container on mobile, so cards bleed right but start at container edge */
    padding-left: 15px;
  }
}

/* ==========================================================================
   Chart Section
   ========================================================================== */
.kaz-chart-section {
  background-color: #051229;
  padding: 100px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.kaz-chart-leak-bg {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  right: 50%;
  /* Bleed perfectly to the center, covering the left half */
  /* Placeholder image (Abstract Dark/Gold) with Parallax */
  background-image: url('assets/img/chart-bg.webp');
  background-size: cover;
  background-position: left center;
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

/* Gradient overlay to smoothly blend the image into the dark background on the right edge */
.kaz-chart-leak-bg::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, transparent 50%, #051229 100%);
}

.kaz-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  position: relative;
  z-index: 2;
  /* Keep above the background */
}

.kaz-chart-left {
  display: flex;
  flex-direction: column;
}

.kaz-chart-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.kaz-chart-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.kaz-chart-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.kaz-chart-tab.active {
  color: #0075FF;
  background-color: rgba(0, 117, 255, 0.1);
}

.kaz-chart-canvas-container {
  position: relative;
  height: 350px;
  width: 100%;
}

.kaz-chart-right {
  display: flex;
  flex-direction: column;
}



@media (max-width: 992px) {
  .kaz-chart-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .kaz-chart-right {
    order: -1;
    /* Move text above chart on mobile */
  }

  .kaz-chart-canvas-container {
    height: 250px;
  }

  .kaz-chart-leak-bg {
    right: 0;
    /* Full width on mobile */
    opacity: 0.08;
    /* Slightly more transparent */
  }

  .kaz-chart-leak-bg::after {
    background: linear-gradient(to bottom, #051229 0%, transparent 50%);
    /* Fade out towards chart */
  }
}

/* ==========================================================================
   Trust / Marquee Section
   ========================================================================== */
.kaz-trust-section {
  padding: 80px 0;
  background-color: var(--color-bg);
  text-align: center;
}



.kaz-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-top: 2.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.kaz-marquee-track {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  align-items: center;
  /* 20s for a smooth scroll, will loop seamlessly over the 3 sets */
  animation: kazMarquee 20s linear infinite;
}

.kaz-trust-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 100px;
  padding: 28px;
  background-color: var(--color-text);
  border-radius: var(--border-radius-lg);
  transition: background-color 0.33s ease;

  &.kaz-trust-card--munze {
    padding: 21px 20px;
  }
}

.kaz-trust-card:hover {
  background-color: transparent;
}

.trust-logo-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Make the SVG look like it's cut out of the card by coloring it like the section background (#F7F7F7) */
  filter: brightness(0) invert(97%);
  transition: filter 0.33s ease;
}

.kaz-trust-card:hover .trust-logo-svg {
  filter: none;
}

@keyframes kazMarquee {
  from {
    transform: translateX(0);
  }

  to {
    /* Translate by exactly 1/3 since we have 3 identical sets of logos */
    transform: translateX(calc(-100% / 3));
  }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.kaz-footer {
  background-color: var(--color-secondary);
  /* Rich slightly lighter navy background */
  color: #fff;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}

.kaz-footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 2.4fr;
  grid-template-rows: auto auto;
  width: 100%;
}

.kaz-footer-cell {
  position: relative;
}

.kaz-footer-cell-heading {
  grid-column: 1 / 3;
  padding: 80px 60px 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Extending horizontal border to the left edge of viewport */
.kaz-footer-cell-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 100%;
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.kaz-footer-cell-contact1 {
  grid-column: 1;
  padding: 40px 40px 60px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  align-content: center;
}

.kaz-footer-cell-contact2 {
  grid-column: 2;
  padding: 40px 60px 60px 40px;
  align-content: center;
}

.kaz-footer-cell-form {
  grid-column: 3;
  grid-row: 1 / 3;
  background-color: rgba(247, 247, 247, 0.1);
  /* #051229 */
  padding: 80px 50px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.kaz-footer-cell-form h3.kaz-heading {
  font-weight: 600;
}

.kaz-footer-btn-wrap {
  margin-bottom: 0;
}

.kaz-footer-contact-block h4 {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-weight: 700;
}

.kaz-footer-contact-block p {
  font-size: 16px;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.5;
}

/* Fluent Forms Overrides */
.kaz-footer-form-wrapper .fluentform {
  margin-bottom: 0;
}

.kaz-footer-form-wrapper .fluentform .ff-el-input--text,
.kaz-footer-form-wrapper .fluentform .ff-el-input--email,
.kaz-footer-form-wrapper .fluentform .ff-el-input--tel,
.kaz-footer-form-wrapper .fluentform select,
.kaz-footer-form-wrapper .fluentform textarea {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 0 !important;
  color: #fff !important;
  padding: 10px 0 !important;
  box-shadow: none !important;
  font-size: 16px !important;
}

.kaz-footer-form-wrapper .fluentform select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M7 10l5 5 5-5z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
}

.kaz-footer-form-wrapper .fluentform select option {
  color: #000;
}

.kaz-footer-form-wrapper .fluentform .ff-el-input--text:focus,
.kaz-footer-form-wrapper .fluentform .ff-el-input--email:focus,
.kaz-footer-form-wrapper .fluentform .ff-el-input--tel:focus,
.kaz-footer-form-wrapper .fluentform select:focus,
.kaz-footer-form-wrapper .fluentform textarea:focus {
  border-bottom-color: var(--color-primary) !important;
  outline: none !important;
}

.kaz-footer-form-wrapper .fluentform .ff-el-form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.kaz-footer-form-wrapper .fluentform .ff-btn-submit {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--border-radius-lg);
  padding: 15px 30px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: background-color 0.3s ease !important;
}

.kaz-footer-form-wrapper .fluentform .ff-btn-submit:hover {
  background-color: #0060d1 !important;
}

/* Divider Line */
.kaz-footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Bottom Menu Grid */
.kaz-footer-bottom-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 2.4fr;
  padding: 40px 15px;
  align-items: center;
}

.kaz-footer-bottom-logo {
  grid-column: 1 / 3;
}

.kaz-footer-logo-img {
  height: 35px;
  width: auto;
  display: block;
}

.kaz-footer-bottom-menu {
  grid-column: 3;
  display: flex;
  justify-content: space-between;
}

.kaz-footer-bottom-menu a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.kaz-footer-bottom-menu a:hover {
  color: var(--color-primary);
}

/* Bottommost Bar (Full-Width with var(--color-secondary) background) */
.kaz-footer-bottommost-bar {
  background-color: rgba(247, 247, 247, 0.1);
  /* #051229 */
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kaz-footer-bottommost-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kaz-footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.kaz-footer-terms {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.kaz-footer-terms a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.kaz-footer-terms a:hover {
  color: var(--color-primary);
}

.kaz-footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, transform 0.2s ease;
}

.kaz-footer-social a {
  display: inline-flex;
  text-decoration: none;
}

.kaz-footer-social a:hover .footer-social-icon {
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .kaz-footer-top-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .kaz-footer-cell-heading {
    grid-column: 1;
    padding: 60px 0 30px 0;
  }

  .kaz-footer-cell-heading::after {
    display: none;
  }

  .kaz-footer-cell-contact1 {
    grid-column: 1;
    padding: 30px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .kaz-footer-cell-contact2 {
    grid-column: 1;
    padding: 30px 0 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .kaz-footer-cell-form {
    grid-column: 1;
    grid-row: auto;
    padding: 40px 0;
    border-left: none;
    background-color: transparent;
  }

  .kaz-footer-bottom-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 30px 0;
  }

  .kaz-footer-bottom-logo {
    grid-column: 1;
    display: flex;
    justify-content: center;
  }

  .kaz-footer-bottom-menu {
    grid-column: 1;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-left: 0;
  }

  .kaz-footer-bottommost-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ==========================================================================
   KAZ High-End Responsive Header
   ========================================================================== */

.kaz-header-wrapper {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 90px);
  /* 45px margins on large screens */
  max-width: none;
  height: 72px;
  z-index: 999;
}

/* Glassmorphism background bar (unmasked, clean pill container) */
.kaz-header-bg-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 18, 41, 0.55);
  /* Glassmorphism background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 36px 18px 18px 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1;
}

/* Three-column absolute centered layout */
.kaz-header-content-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 12px;
}

/* Left: Logo Column with Circular Glass Badge */
.kaz-logo-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  position: relative;
  width: 96px;
}

.kaz-logo-link {
  position: absolute;
  left: -12px;
  /* Hangs over the left pill edge beautifully */
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 96px;
  background: rgba(5, 18, 41, 0.75);
  /* Rich glassmorphism for contrast */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.kaz-logo-img {
  width: 68px;
  /* Perfectly sized inside the 96px circular badge */
  height: 68px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.kaz-logo-link:hover {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.kaz-logo-link:hover .kaz-logo-img {
  transform: scale(1.04);
}

/* Middle: Navigation with premium Glassmorphism and adjusted nested padding */
.kaz-nav-col {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.06);
  /* Brighter glassmorphism for multi-layered premium contrast */
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 4px;
  /* Adjusted padding so border radius aligns perfectly */

  /* Nested Radius Rule: Spoljni Radijus = 12px (inner link) + Padding 6px = 18px */
  border-radius: calc(var(--border-radius-lg) + 6px);
  /* 18px */
  display: flex;
  align-items: center;
}

.kaz-nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.kaz-nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--border-radius-lg);
  /* 12px */
  transition: all 0.25s ease;
}

.kaz-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.kaz-nav-link.active {
  color: #ffffff;
  background-color: var(--color-primary);
  /* #0075FF */
  box-shadow: 0 4px 10px rgba(0, 117, 255, 0.2);
}

/* Right: Info blocks and CTA Button */
.kaz-info-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  height: 100%;
}

.kaz-info-block {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.kaz-info-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  line-height: 1.2;
}

.kaz-info-value {
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s ease;
}

a.kaz-info-value:hover {
  color: var(--color-primary);
}

.kaz-info-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Nested Radius Rule: Spoljni Radijus = 12px (inner button) + Padding 4px = 16px */
.kaz-cta-wrapper {
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--border-radius-lg) + 4px);
  /* 16px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.kaz-cta-wrapper:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Mobile Hamburger Menu */
.kaz-mobile-hamburger {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  z-index: 5;
}

.kaz-mobile-hamburger:hover {
  transform: scale(1.08);
}

.mobile-toggle-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ==========================================================================
   Mobile Responsive Styling
   ========================================================================== */

@media (max-width: 991px) {
  .kaz-header-wrapper {
    height: 60px;
    top: 16px;
    width: calc(100% - 3rem);
    /* 1.5rem backup space on each side */
  }

  .kaz-header-bg-bar {
    border-radius: 30px;
  }

  .kaz-header-content-grid {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .kaz-nav-col,
  .kaz-info-col {
    display: none;
    /* Hide desktop elements */
  }

  /* Reset absolute circular glass badge on mobile to fit nicely inside the 60px header */
  .kaz-logo-col {
    position: static;
    width: auto;
    height: auto;
    padding-left: 4px;
  }

  .kaz-logo-link {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: inline-flex;
  }

  .kaz-logo-img {
    width: 56px;
    height: 56px;
    margin-top: 0;
  }

  .kaz-logo-link:hover {
    transform: scale(1.05);
    box-shadow: none;
  }

  .kaz-mobile-hamburger {
    display: inline-flex;
  }
}

/* Mobile Overlay Full-screen Navigation Menu */
.kaz-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 18, 41, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.kaz-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.kaz-mobile-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.kaz-logo-img-mobile {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.kaz-mobile-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 12px;
  transition: transform 0.2s ease;
}

.kaz-mobile-close:hover {
  transform: rotate(90deg);
}

.kaz-mobile-nav {
  margin-bottom: 40px;
}

.kaz-mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kaz-mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: block;
  transition: all 0.25s ease;
}

.kaz-mobile-nav-link:hover,
.kaz-mobile-nav-link.active {
  color: var(--color-primary);
  padding-left: 6px;
}

.kaz-mobile-info {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kaz-mobile-info-block {
  display: flex;
  flex-direction: column;
}

.kaz-mobile-cta-wrapper {
  margin-top: 12px;
}

.kaz-mobile-cta-wrapper .tj-primary-btn {
  display: flex;
  width: 100%;
}