/* ============================================================
   KKNEW — Klik Klik Pixieset enhancements v2.0
   Pixieset theme: theme_10
   Strategy: enhance defaults, do not replace
   ============================================================ */

/* 1) CSS Custom Properties — global colors and fonts */
:root {
  --kk-deep: #0F3D4A;
  --kk-ink: #050E12;
  --kk-slate: #4A6A7B;
  --kk-sand: #E7E2D8;
  --kk-sand-soft: #F2EEE6;
  --kk-coral: #FF5A2A;
  --kk-white: #FFFFFF;
  --kk-sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* 2) Apply Manrope font globally to Pixieset */
body,
.theme-10-header,
.header-menu,
.header-menu__item,
.header-menu__nav,
.header-menu__primary,
.header-menu__secondary,
.dropdown-item,
.nav-link,
.nav-item,
.footer-menu,
.footer-menu__wrapper,
.element-container {
  font-family: var(--kk-sans) !important;
}

/* 3) Logo styling — KLIK KLIK with Halis R-like letter-spacing */
.header-menu__logo--text,
.site-title {
  font-family: var(--kk-sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
}

/* 4) Navigation links — refined */
.header-menu__primary,
.nav-link {
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
}

/* 5) Dropdown menu styling */
.header-menu__dropdown-nav .dropdown-item:hover,
.header-menu__secondary:hover {
  color: var(--kk-coral) !important;
}

/* 6) Section titles — refined heading style */
.ca-headings-N0KboB,
.ca-headings-2wXYAB {
  font-family: var(--kk-sans) !important;
  font-weight: 300 !important;
  letter-spacing: -0.01em !important;
}

/* 7) Paragraphs — refined */
.ca-paragraphs-2YvaAB,
.ca-paragraphs-2na6bg,
.ql-paragraph-1,
.ql-paragraph-2 {
  font-family: var(--kk-sans) !important;
  font-weight: 300 !important;
  line-height: 1.7 !important;
}

/* 8) Buttons — Klik Klik style */
.header-menu__button,
.button,
.ca-button-glyXV2 {
  font-family: var(--kk-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: 100px !important;
  transition: all 0.25s ease !important;
}

.header-menu__button:hover,
.button:hover {
  transform: translateY(-1px) !important;
}

/* 9) Hide "Apmācības" button in header (separate CTA button) */
.theme-10-header .header-menu__button,
.theme-10-header .header-menu__button--mobile {
  display: none !important;
}

/* 10) KKNEW custom code blocks reset — for sections we build ourselves */
.kk-section * {
  box-sizing: border-box;
  font-family: var(--kk-sans);
}
.kk-section img { max-width: 100%; display: block; }
.kk-section a { color: inherit; text-decoration: none; }

/* 11) KKNEW utility classes */
.kk-btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--kk-coral); color: var(--kk-white);
  padding: 16px 32px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px rgba(255,90,42,0.25);
  text-decoration: none;
  border: none;
  font-family: var(--kk-sans);
}
.kk-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255,90,42,0.4);
  color: var(--kk-white);
}

.kk-btn-glass {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--kk-white);
  padding: 15px 30px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.25s ease;
  text-decoration: none;
  font-family: var(--kk-sans);
}
.kk-btn-glass:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: var(--kk-white);
}

/* 12) HERO CUSTOM CODE BLOCK STYLES */
#kk-hero-new {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 88vh;
  background: var(--kk-ink);
  color: var(--kk-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 0;
}
#kk-hero-new .kk-hero-bg-img {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  height: 100%;
  background-image: url('https://cdn.jsdelivr.net/gh/laganovskisuldis/klikklik@main/hero.jpg');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  mask-image: linear-gradient(to left, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
  opacity: 0;
  animation: kk-hero-img-in 1.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes kk-hero-img-in {
  to { opacity: 1; }
}
#kk-hero-new .kk-hero-glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(15,61,74,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(255,90,42,0.08) 0%, transparent 50%);
  pointer-events: none;
}
#kk-hero-new .kk-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
#kk-hero-new .kk-hero-inner {
  max-width: 680px;
}
#kk-hero-new .kk-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); font-weight: 500;
  margin-bottom: 40px;
  opacity: 0;
  animation: kk-fade-up 0.9s 0.4s ease forwards;
}
#kk-hero-new .kk-hero-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--kk-coral);
  box-shadow: 0 0 14px var(--kk-coral);
}
#kk-hero-new h1 {
  font-family: var(--kk-sans);
  font-weight: 200;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 32px 0;
  color: var(--kk-white) !important;
}
#kk-hero-new h1 .kk-hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: kk-line-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
#kk-hero-new h1 .kk-hero-line:nth-child(1) { animation-delay: 0.5s; }
#kk-hero-new h1 .kk-hero-line:nth-child(2) { animation-delay: 0.65s; }
#kk-hero-new h1 .kk-hero-line:nth-child(3) { animation-delay: 0.8s; }
#kk-hero-new h1 .kk-hero-accent {
  color: var(--kk-coral);
  font-weight: 400;
  font-style: italic;
}
@keyframes kk-line-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kk-fade-up {
  to { opacity: 1; transform: translateY(0); }
}
#kk-hero-new .kk-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  max-width: 460px;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  margin: 0 0 44px 0;
  opacity: 0;
  animation: kk-fade-up 1s 1s ease forwards;
}
#kk-hero-new .kk-hero-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: kk-fade-up 1s 1.15s ease forwards;
}

/* 13) Mobile responsive for hero */
@media (max-width: 768px) {
  #kk-hero-new {
    min-height: 80vh;
    padding: 80px 0 60px;
  }
  #kk-hero-new .kk-hero-bg-img {
    width: 100%;
    height: 55%;
    right: -20%;
    top: 5%;
    transform: none;
    mask-image: linear-gradient(to bottom, black 25%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 25%, transparent 100%);
    opacity: 0;
    animation: kk-hero-img-in-mobile 1.6s 0.2s ease forwards;
  }
  @keyframes kk-hero-img-in-mobile {
    to { opacity: 0.4; }
  }
  #kk-hero-new .kk-hero-content {
    padding: 0 20px;
  }
  #kk-hero-new h1 {
    font-size: 42px !important;
  }
  #kk-hero-new .kk-hero-sub {
    font-size: 15px;
  }
}
