@import url("https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&family=League+Spartan:wght@100..900&display=swap");
html {
  background-color: rgb(255, 255, 255);
  color: #ffffff;
  padding: 0%;
  margin: 0;
  font-family: "Afacad";
  width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0%;
  overflow-x: hidden;
}
.bg-video {
  position: fixed;
}
:root {
  --kc-headerH: 0px; /* već postavlja JS */
  --kc-heroContentH: 0px; /* postavit ćemo iz JS-a */
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #2e2e2e21;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  width: 100%;
  z-index: 100;
  overflow-x: hidden;
  overflow-y: hidden;

  /* ključ: počni ispod traka… */
  padding-top: var(--kc-headerH);

  /* …a visina = max( header + 40vh , header + content ) */
  min-height: max(
    calc(40dvh + var(--kc-headerH)),
    calc(var(--kc-heroContentH) + var(--kc-headerH))
  );
  min-height: max(
    calc(40svh + var(--kc-headerH)),
    calc(var(--kc-heroContentH) + var(--kc-headerH))
  );
  min-height: max(
    calc(40vh + var(--kc-headerH)),
    calc(var(--kc-heroContentH) + var(--kc-headerH))
  );
}

.hero-header-backdrop-positioner {
  position: fixed;
  left: 0;
  right: 0;
  top: var(
    --kc-headerH,
    0px
  ); /* start odmah ispod nav + (po potrebi) mobile searcha */
  height: 40dvh; /* 40% ekrana */
  height: 40svh; /* fallback */
  height: 40vh; /* fallback */

  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 50; /* iznad videa, ispod teksta */
}

.hero-header-backdrop {
  width: clamp(90px, 20vw, 200px);
  height: auto;
  margin-top: 10dvh; /* 20% ekrana razmaka ispod nav-a */
  margin-top: 10svh; /* fallback */
  margin-top: 10vh; /* fallback */
}

.hero-header {
  position: relative;
  /* Jedna “glavna” veličina iz koje sve proizlazi */
  --hero-h1: clamp(5.6rem, 2rem + 2.8vmin, 7.5rem);
  /* Paragraf izračunat iz h1 (s razumnim granicama) */
  --hero-p: clamp(1rem, calc(var(--hero-h1) * 0.27523), 1.6rem);
  z-index: 100; /* iznad backdropa */
  text-align: center;
  margin-top: 20dvh; /* 20% ekrana razmaka ispod nav-a */
  margin-top: 20svh; /* fallback */
  margin-top: 20vh; /* fallback */
  margin-bottom: 10dvh;
  margin-bottom: 10svh;
  margin-bottom: 10vh;
}
.hero-header h1 {
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: var(--hero-h1);
  line-height: 1.05;
  margin: 0;
}

.hero-header p {
  font-size: var(--hero-p);
  line-height: 1.15;
  margin: 0;
}

.shop-btn {
  background-color: #22549f;
  padding: 1rem;
  width: 10rem;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.596);
  transition: all ease-in-out 0.5s;
  text-align: center;
  border-radius: 5em;
  font-size: 1.2rem;
}

.shop-btn:hover {
  background-color: #0a387e;
  transform: scale(1.1);
}

.kc-contact-wrap {
  width: 30vw;
}

/* --- Contact Section Layout --- */
.kc-contact-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 60px 16px;
}

/* --- A11y helper --- */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Ensure all form elements respect container width */
.kc-form,
.kc-form * {
  box-sizing: border-box;
  max-width: 100%;
}

/* --- Form --- */
.kc-form {
  width: 40vw; /* same width as you want */
  min-width: 300px;
  margin-top: 8rem;
}
.kc-form form {
  width: 100%; /* now form matches parent width */
}

.kc-input,
.kc-textarea {
  width: 100%;
  border: none;
  outline: none;
  background: #f5f5f5;
  color: #2b2b2b;
  font-family: "Afacad", system-ui, sans-serif;
  font-size: 1rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.06s ease;
}
.kc-input {
  height: 1.5rem;
  border-radius: 32px; /* pill */
  width: 100%;
  margin-top: 1rem;
}
.kc-textarea {
  min-height: 220px;
  border-radius: 32px; /* big rounded like mockup */
  resize: vertical;
  margin-top: 1rem;
}
.kc-input::placeholder,
.kc-textarea::placeholder {
  color: #9aa6c5;
}

.kc-input:focus,
.kc-textarea:focus {
  box-shadow: 0 0 0 3px rgba(34, 84, 159, 0.18);
}

/* Send button */
.kc-send-wrap {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}
.kc-btn-send {
  background: #22549f;
  color: #fff;
  border: 0;
  border-radius: 999px; /* pill */
  font-family: "Afacad", system-ui, sans-serif;
  font-size: 1.15rem;
  padding: 14px 46px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(34, 84, 159, 0.28);
  transition: transform 0.12s ease, background 0.15s ease;
}
.kc-btn-send:hover {
  background: #0a387e;
  transform: translateY(-1px);
}
.kc-btn-send:active {
  transform: translateY(0);
}

/* --- Contact info card --- */
.kc-info-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  color: #2b2b2b;
  border-radius: 32px;
  margin-top: 8rem;
}
.kc-info-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.kc-info-row {
  display: flex;
  flex-direction: row;
  width: 80%;
  justify-content: space-between;
  padding: 1rem;
}

.kc-info-row-img img {
  width: 6rem;
}

.kc-info-row-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kc-info-text {
  font-size: 1.2rem;
  width: 255px;
  text-align: left;
  padding-left: 6rem;
  border-left: 2px solid #22549f;
}

.kc-info-text h3 {
  margin: 0%;
}

/* Responsive */
@media (max-width: 2220px) {
  .kc-contact-wrap {
    width: 40vw;
  }
  #contactForm {
    width: 100%;
  }
}

@media (max-width: 1383px) {
}
@media (max-width: 992px) {
  .kc-contact-section {
    padding: 0%;
  }
  .kc-contact-wrap {
    width: 75vw;
    justify-content: center;
    align-items: center;
  }
  .kc-form {
    width: 100%;
  }
}
@media (max-width: 890px) {
  .kc-info-row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 150px;
  }
  .kc-info-grid .kc-info-row .kc-info-text {
    padding-left: 0%;
    border-left: 0;
    text-align: center;
    margin-top: 1rem;
    border-bottom: #0a387e 2px solid;
  }
  .kc-info-text p {
    margin-top: 0%;
  }
}
@media (max-width: 381px) {
  #contactForm {
    min-width: 300px;
    margin: auto;
  }
  .kc-contact-wrap {
    width: 95vw;
  }
  .kc-info-row-img img {
    width: 4rem;
  }
}
