/* =========================================================
   NAVBAR (buttons only)
   ========================================================= */

:root{
  --hm-nav-h: 110px;
  --hm-floatLogo-top: 86px;
  --hm-floatLogo-left: 34px;
  --hm-floatLogo-size: clamp(180px, 16vw, 320px);
}

.hm-nav{
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--hm-nav-h);
}

.hm-nav__inner{
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.hm-nav__right{
  display: flex;
  align-items: center;
  gap: 14px;

  position: relative;
  padding: 10px 14px;
  border-radius: 999px;

  background:
    radial-gradient(900px 320px at 20% -30%, rgba(60, 230, 160, .18), transparent 60%),
    radial-gradient(700px 260px at 85% 130%, rgba(20, 120, 80, .22), transparent 62%),
    linear-gradient(180deg, rgba(10, 32, 24, .55), rgba(8, 22, 17, .36));

  border: 1px solid rgba(80, 220, 160, .20);

  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);

  box-shadow: 0 18px 60px rgba(0,0,0,.22);

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.hm-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 16px;

  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: .02em;

  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.16);

  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.hm-nav__right .hm-link{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255,255,255,.92) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

@media (hover:hover){
  .hm-nav__right .hm-link:hover{
    transform: translateY(-1px);
  }
}

/* ===== nicer underline (no ugly text-decoration) ===== */
.hm-nav__right .hm-link{
  text-decoration: none !important;
}

.hm-nav__right .hm-link::after{
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 9px;

  height: 2px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.85),
    rgba(245,197,66,.55),
    rgba(255,255,255,.85),
    rgba(255,255,255,0)
  );

  opacity: 0;
  transform: scaleX(.35);
  transform-origin: center;

  transition: opacity 160ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}

/* show underline on hover + keyboard focus */
@media (hover:hover){
  .hm-nav__right .hm-link:hover::after{
    opacity: .95;
    transform: scaleX(1);
  }
}

.hm-nav__right .hm-link:focus-visible::after{
  opacity: 1;
  transform: scaleX(1);
}


.hm-nav__right .hm-link{ position: relative; }
.hm-nav__right .hm-link + .hm-link::before{
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 42px;
  border-radius: 99px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.72),
    rgba(255,255,255,.26),
    rgba(255,255,255,.06)
  );
  opacity: .75;
}

/* =========================================================
   LANGUAGE TOGGLE (FLAGS)
   - now used inside HERO (hero.html), not in navbar/base
   ========================================================= */

.hm-langToggle{ margin-left: 0; }

.hm-langToggle__btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;

  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(180deg, rgba(10,32,24,.55), rgba(8,22,17,.34));
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);

  box-shadow:
    0 16px 40px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.18);

  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hm-langToggle__btn:hover{
  transform: translateY(-1px);
  box-shadow:
    0 22px 55px rgba(0,0,0,.28),
    0 0 18px rgba(255,255,255,.10),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.hm-langToggle__icon{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}

/* =========================================================
   BURGER
   ========================================================= */

.hm-burger{
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.14);
  cursor: pointer;

  align-items: center;
  justify-content: center;
  flex-direction: column;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 16px 40px rgba(0,0,0,.20);
}

.hm-burger span{
  display:block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease;
}

.hm-burger[aria-expanded="true"] span:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}
.hm-burger[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}
.hm-burger[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 981px){
  .hm-burger{ display: none !important; }
}

@media (max-width: 980px){
  .hm-nav__right{ display:none !important; }
  .hm-burger{ display:flex !important; }
}

/* =========================================================
   MOBILE DRAWER (RIGHT SLIDE-IN)
   ========================================================= */

.hm-drawer{
  display:none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.hm-drawer.is-open{
  display:block;
  opacity: 1;
  pointer-events: auto;
}

.hm-drawer__overlay{
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;

  background:
    radial-gradient(900px 500px at 85% 20%, rgba(31,138,91,.22), transparent 60%),
    radial-gradient(700px 420px at 20% 70%, rgba(245,197,66,.18), transparent 62%),
    rgba(10,14,18,.56);

  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

.hm-drawer__panel{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86vw, 360px);

  background:
    radial-gradient(700px 260px at 70% -10%, rgba(31,138,91,.14), transparent 60%),
    radial-gradient(680px 240px at 30% 110%, rgba(245,197,66,.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.86));

  border-left: 1px solid rgba(15,23,42,.10);
  box-shadow: -40px 0 110px rgba(0,0,0,.28);

  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;

  transform: translateX(110%);
  transition: transform 320ms cubic-bezier(.18,.86,.18,1);

  display: flex;
  flex-direction: column;
  padding: 14px 16px 18px;
  overflow: hidden;
}

.hm-drawer.is-open .hm-drawer__panel{
  transform: translateX(0);
}

.hm-drawer__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 2px 0 12px;
}

.hm-drawer__title{
  font-weight: 950;
  letter-spacing: .02em;
  color: rgba(11,26,20,.92);
  font-size: 15px;
  position: relative;
}

.hm-drawer__title::after{
  content:"";
  display:block;
  width: 56px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(31,138,91,.0),
    rgba(31,138,91,.65),
    rgba(245,197,66,.55)
  );
}

.hm-drawer__close{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(11,26,20,.12);
  background: rgba(255,255,255,.78);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  color: rgba(11,26,20,.9);
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

@media (hover:hover){
  .hm-drawer__close:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
  }
}

.hm-drawer__nav{
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
  padding-bottom: 8px;
}

.hm-drawer__link{
  display:flex;
  align-items:center;
  justify-content:center;

  height: 50px;
  border-radius: 16px;
  text-decoration:none;

  font-weight: 950;
  letter-spacing: .02em;
  color: rgba(15,23,42,.86);

  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 18px 44px rgba(0,0,0,.10);

  transition: transform 160ms ease, box-shadow 160ms ease;
  position: relative;
  overflow: hidden;
}

.hm-drawer__link::before{
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    110deg,
    transparent 40%,
    rgba(31,138,91,.16),
    rgba(245,197,66,.14),
    transparent 60%
  );
  transform: translateX(-18%) rotate(8deg);
  opacity: 0;
  transition: opacity 180ms ease, transform 320ms ease;
}

@media (hover:hover){
  .hm-drawer__link:hover{
    transform: translateY(-1px);
    box-shadow: 0 22px 58px rgba(0,0,0,.14);
  }
  .hm-drawer__link:hover::before{
    opacity: 1;
    transform: translateX(18%) rotate(8deg);
  }
}

.hm-drawer__link:focus-visible,
.hm-drawer__close:focus-visible{
  outline: 3px solid rgba(31,138,91,.35);
  outline-offset: 2px;
}

@media (max-width: 980px){
  .hm-drawer{ display:block; }
}
