:root{
  --kk-green: #57692d;
  --kk-coffee: #843f00;

  --kk-nav-bg: rgba(18, 20, 18, 0.72);
  --kk-nav-border: rgba(255,255,255,0.10);
  --kk-nav-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

html, body{ overflow-x: hidden; }

.kk-nav-wrap{
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}

.kk-nav-pill{
  pointer-events: auto;

  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 14px;
  border-radius: 999px;

  background: var(--kk-nav-bg);
  border: 1px solid var(--kk-nav-border);
  box-shadow: var(--kk-nav-shadow);
  backdrop-filter: blur(12px);

  position: relative;
  overflow: hidden;
}
.kk-nav-logo1{
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.kk-nav-logo1 img{
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* .kk-nav-logo{
  text-decoration: none;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.kk-logo-circle{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.kk-logo-circle svg{ width: 26px; height: 26px; }
.kk-logo-circle svg path{
  fill: none;
  stroke: var(--kk-green);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
} */

/* desktop links */
.kk-nav-links{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  margin: 0;
  padding: 0;
  flex: 1;

  font-family: "Playfair Display", serif;
}

.kk-nav-links a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  padding: 10px 8px;
  border-radius: 10px;
  transition: 0.2s ease;
  white-space: nowrap;
}
.kk-nav-links a:hover{ color: #fff; transform: translateY(-1px); }

.kk-nav-links a.active{
  color: #fff;
  position: relative;
}
.kk-nav-links a.active::after{
  content:"";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--kk-coffee);
}

/* CTA desktop */
.kk-nav-cta{
  flex: 0 0 auto;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;

  padding: 12px 18px;
  border-radius: 999px;

  background: rgba(255,255,255,0.95);
  color: #111;
  border: 1px solid rgba(0,0,0,0.06);
  transition: 0.2s ease;
}
.kk-nav-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
}

/* toggle */
.kk-nav-toggle{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* burger */
.kk-burger{
  flex: 0 0 auto;
  display: none;

  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;
  border-radius: 999px;

  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.20);

  margin-left: auto;
}

.kk-burger svg{ width: 42px; height: 42px; }
.kk-burger circle{
  fill: rgba(0,0,0,0.10);
  opacity: 0;
  transition: opacity .25s ease;
}
.kk-burger:hover circle{ opacity: 1; }

.kk-burger .line{
  fill: none;
  stroke: var(--kk-coffee);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 24 126.64;
  stroke-dashoffset: -38;

  transition: stroke-dasharray .6s cubic-bezier(.645,.045,.355,1),
              stroke-dashoffset .6s cubic-bezier(.645,.045,.355,1);
}
.kk-burger .line--2{ stroke-dasharray: 24 70; }

#kkNavToggle:checked + label.kk-burger .line--1,
#kkNavToggle:checked + label.kk-burger .line--3{
  stroke-dasharray: 22.6274 126.64;
  stroke-dashoffset: -94.1149;
}
#kkNavToggle:checked + label.kk-burger .line--2{
  stroke-dasharray: 0 70;
  stroke-dashoffset: -50;
}

/* mobile menu (inside same container) */
.kk-mobile-menu{
  width: 100%;
  display: none;

  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;

  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}

.kk-mobile-menu a{
  display: block;
  padding: 18px 18px;
  text-decoration: none;

  color: rgba(255,255,255,0.95);
  font-family: "Playfair Display", serif;
  font-size: 19px;

  border-top: 1px solid rgba(255,255,255,0.08);
}
.kk-mobile-menu a:hover{ background: rgba(255,255,255,0.06); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px){
  .kk-nav-links{ gap: 20px; }
  .kk-nav-links a{ font-size: 17px; }
}

@media (max-width: 768px){
  .kk-nav-links{ display: none; }
  .kk-nav-cta{ display: none; }
  .kk-burger{ display: flex; }
  .kk-mobile-menu{ display: block; }

  .kk-nav-pill{
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  #kkNavToggle:checked ~ .kk-mobile-menu{
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ IMPORTANT FIX: Very small screens => square/rounded rectangle */
@media (max-width: 520px){
  .kk-nav-pill{
    border-radius: 22px;         /* ✅ no more circle */
    padding: 12px 12px;
  }
}

/* extra small */
@media (max-width: 420px){
  .kk-nav-wrap{ top: 12px; }

  .kk-nav-pill{
    width: calc(100% - 24px);
    padding: 12px 12px;
    border-radius: 18px;         /* ✅ more square */
  }

  .kk-logo-circle{
    width: 50px;
    height: 50px;
  }

  .kk-burger{
    width: 52px;
    height: 52px;
  }

  .kk-burger svg{
    width: 40px;
    height: 40px;
  }
}
