/* =============================================
   NAVBAR — COCLA
   Professional / Refined
   COCLA Colours Preserved
   Typography: Raleway
   ============================================= */

body.no-scroll {
  overflow: hidden !important;
}


/* =============================================
   NAVBAR
   ============================================= */

.navbar {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  width: 100%;
  height: var(--nav-height);

  z-index: 1000;

  background-color: rgba(255, 255, 255, 0.94);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(0, 48, 73, 0.08);

  transition: var(--transition-smooth);

  font-family: 'Raleway', sans-serif;
}


/* =============================================
   NAVBAR INNER
   ============================================= */

.navbar__inner {
  display: flex;

  align-items: center;
  justify-content: space-between;

  height: 100%;

  width: 92%;
  max-width: 1280px;

  margin: 0 auto;
}


/* =============================================
   LOGO
   ============================================= */

.navbar__logo {
  display: flex;

  align-items: center;

  gap: 0.75rem;

  text-decoration: none;

  flex-shrink: 0;

  transition: var(--transition-smooth);
}

.navbar__logo:hover {
  transform: scale(1.02);
}


/* Actual logo image */

.navbar__logo img {
  width: 52px;
  height: 52px;

  object-fit: contain;

  display: block;

  flex-shrink: 0;
}


/* Logo placeholder */

.navbar__logo-placeholder {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  background-color: var(--deep-space-blue);

  display: flex;

  align-items: center;
  justify-content: center;

  font-family: 'Raleway', sans-serif;

  font-size: 1.1rem;

  font-weight: 700;

  color: var(--sunflower-gold);

  box-shadow:
    0 5px 14px rgba(0, 48, 73, 0.16);
}


/* =============================================
   LOGO NAME
   ============================================= */

.navbar__logo-name {
  font-family: 'Raleway', sans-serif;

  font-size: 1.15rem;

  font-weight: 700;

  color: var(--deep-space-blue);

  letter-spacing: -0.01em;

  line-height: 1.15;
}

.navbar__logo-name span {
  color: var(--flag-red);
}


/* =============================================
   DESKTOP NAVIGATION
   ============================================= */

.navbar__links {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 0.25rem;

  margin-left: auto;
  margin-right: 1.25rem;
}


/* =============================================
   MAIN NAVIGATION LINKS
   ============================================= */

.navbar__link {
  position: relative;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 0.6rem 0.8rem;

  border-radius: 8px;

  font-family: 'Raleway', sans-serif;

  font-size: 0.92rem;

  font-weight: 600;

  line-height: 1;

  color: rgba(0, 48, 73, 0.82);

  white-space: nowrap;

  text-decoration: none;

  transition: var(--transition-smooth);
}


/* Underline */

.navbar__link::after {
  content: '';

  position: absolute;

  bottom: 3px;

  left: 50%;

  width: 0;

  height: 2px;

  background-color: var(--vivid-tangerine);

  transform: translateX(-50%);

  border-radius: 2px;

  transition: var(--transition-smooth);
}


/* Hover */

.navbar__link:hover {
  color: var(--deep-space-blue);

  background-color: rgba(0, 48, 73, 0.04);
}

.navbar__link:hover::after {
  width: 55%;
}


/* Active */

.navbar__link--active {
  color: var(--deep-space-blue);

  background-color: rgba(0, 48, 73, 0.04);
}

.navbar__link--active::after {
  width: 55%;
}


/* =============================================
   DONATE BUTTON
   ============================================= */

.navbar__link--donate {
  background-color: var(--flag-red);

  color: #ffffff !important;

  padding: 0.65rem 1.25rem;

  border-radius: 50px;

  font-family: 'Raleway', sans-serif;

  font-size: 0.9rem;

  font-weight: 700;

  margin-left: 0.25rem;

  box-shadow:
    0 5px 14px rgba(214, 40, 40, 0.20);

  transition: var(--transition-bounce);
}

.navbar__link--donate::after {
  display: none;
}

.navbar__link--donate:hover {
  background-color: var(--deep-space-blue);

  color: var(--vanilla-custard) !important;

  transform: translateY(-2px);

  box-shadow:
    0 7px 20px rgba(0, 48, 73, 0.25);
}


/* =============================================
   RIGHT SIDE
   ============================================= */

.navbar__right {
  display: flex;

  align-items: center;

  gap: 0.75rem;

  flex-shrink: 0;
}


/* =============================================
   LANGUAGE SWITCHER
   ============================================= */

.lang-switcher {
  display: flex;

  align-items: center;

  border: 1px solid rgba(0, 48, 73, 0.12);

  border-radius: 30px;

  overflow: hidden;

  padding: 2px;

  background: rgba(0, 48, 73, 0.02);
}


.lang-btn {
  font-family: 'Raleway', sans-serif;

  background: none;

  border: none;

  color: rgba(0, 48, 73, 0.6);

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.04em;

  padding: 0.38rem 0.7rem;

  cursor: pointer;

  transition: var(--transition-smooth);

  text-transform: uppercase;

  border-radius: 30px;
}


.lang-btn:hover {
  color: var(--deep-space-blue);

  background-color: rgba(0, 48, 73, 0.05);
}


.lang-btn--active {
  background-color: var(--deep-space-blue);

  color: var(--vanilla-custard);
}


/* =============================================
   MOBILE HAMBURGER
   ============================================= */

.navbar__hamburger {
  display: none;

  flex-direction: column;

  justify-content: center;

  gap: 5px;

  width: 42px;
  height: 42px;

  background: none;

  border: 1px solid rgba(0, 48, 73, 0.12);

  cursor: pointer;

  padding: 9px;

  border-radius: 9px;

  transition: var(--transition-smooth);
}


.navbar__hamburger:hover {
  background-color: rgba(0, 48, 73, 0.04);
}


.navbar__hamburger span {
  display: block;

  width: 100%;

  height: 2px;

  background-color: var(--deep-space-blue);

  border-radius: 2px;

  transition: var(--transition-smooth);
}


.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;

  transform: scale(0);
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =============================================
   MOBILE MENU
   ============================================= */

.navbar__mobile-menu {
  display: none;

  position: fixed;

  top: var(--nav-height);

  left: 0;
  right: 0;

  width: 100%;

  z-index: 1010;

  background-color: rgba(255, 255, 255, 0.98);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  padding: 1.25rem 5% 2rem;

  flex-direction: column;

  gap: 0.35rem;

  border-bottom: 1px solid rgba(0, 48, 73, 0.08);

  box-shadow:
    0 15px 35px rgba(0, 48, 73, 0.08);

  transform: translateY(20px);

  opacity: 0;

  transition: var(--transition-smooth);

  font-family: 'Raleway', sans-serif;
}


.navbar__mobile-menu.open {
  display: flex;

  transform: translateY(0);

  opacity: 1;
}


/* =============================================
   MOBILE LINKS
   ============================================= */

.navbar__mobile-link {
  font-family: 'Raleway', sans-serif;

  font-size: 1.05rem;

  font-weight: 600;

  color: rgba(0, 48, 73, 0.8);

  padding: 0.85rem 0.5rem;

  border-bottom: 1px solid rgba(0, 48, 73, 0.04);

  transition: var(--transition-smooth);

  text-decoration: none;
}


.navbar__mobile-link:hover,
.navbar__mobile-link--active {
  color: var(--flag-red);

  padding-left: 0.75rem;
}


/* =============================================
   MOBILE DONATE
   ============================================= */

.navbar__mobile-link--donate {
  margin-top: 1.25rem;

  background-color: var(--flag-red);

  color: #ffffff !important;

  border-radius: 50px;

  padding: 0.9rem 1rem;

  text-align: center;

  font-family: 'Raleway', sans-serif;

  font-weight: 700;

  border-bottom: none;

  box-shadow:
    0 6px 15px rgba(214, 40, 40, 0.2);
}


/* =============================================
   MOBILE LANGUAGE
   ============================================= */

.navbar__mobile-lang {
  display: flex;

  margin-top: 1.25rem;

  border: 1px solid rgba(0, 48, 73, 0.12);

  border-radius: 30px;

  overflow: hidden;

  align-self: flex-start;

  padding: 2px;

  font-family: 'Raleway', sans-serif;
}


/* =============================================
   TABLET
   ============================================= */

@media (max-width: 1100px) {

  .navbar__inner {
    width: 94%;
  }

  .navbar__links {
    gap: 0.1rem;

    margin-right: 0.75rem;
  }

  .navbar__link {
    font-size: 0.87rem;

    padding: 0.55rem 0.6rem;
  }

  .navbar__logo-name {
    font-size: 1.05rem;
  }

  .navbar__right {
    gap: 0.5rem;
  }

}


/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 900px) {

  .navbar {
    height: var(--nav-height);
  }

  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .lang-switcher {
    display: none;
  }

  .navbar__logo img,
  .navbar__logo-placeholder {
    width: 48px;
    height: 48px;
  }

  .navbar__logo-name {
    font-size: 1.05rem;
  }

}


/* =============================================
   SMALL MOBILE
   ============================================= */

@media (max-width: 520px) {

  .navbar__inner {
    width: 92%;
  }

  .navbar__logo {
    gap: 0.55rem;
  }

  .navbar__logo img,
  .navbar__logo-placeholder {
    width: 44px;
    height: 44px;
  }

  .navbar__logo-name {
    font-size: 0.92rem;
  }

  .navbar__hamburger {
    width: 40px;
    height: 40px;
  }

}