/* ================= NAVBAR ================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1000;
}

/* Logo */
.logo {
  font-size: 20px;
  font-weight: 700;
  color: #16A34A;
}

/* Nav Links (Desktop default hidden for mobile-first) */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: white;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.nav-links a {
  margin-bottom: 15px;
  text-decoration: none;
  color: #4B5563;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover {
  color: #16A34A;
}

/* Animated green circle on hover for nav links */
.nav-links a {
  position: relative;
  padding-left: 20px;
  transition: color 0.18s ease;
}

.nav-links a::before {
  /* outer ring */
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(22,163,74,0.0);
  background: transparent;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity 0.18s ease, border-color 0.18s ease;
}

.nav-links a::after {
  /* inner dot */
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A34A;
  opacity: 0;
  transition: transform 0.22s cubic-bezier(.2,.9,.2,1), opacity 0.14s ease;
}

.nav-links a:hover::before,
.nav-links a:focus::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  border-color: #16A34A;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

@keyframes nav-circle-pop {
  0% { transform: translateY(-50%) scale(0.6); opacity: 0; }
  50% { transform: translateY(-50%) scale(1.15); opacity: 1; }
  100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* Apply same effect for primary action buttons */
.btn-primary {
  position: relative;
  overflow: visible;
}

.btn-primary::before {
  /* outer ring on right */
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(16,185,129,0.0);
  background: transparent;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity 0.18s ease, border-color 0.18s ease;
}

.btn-primary::after {
  /* inner dot */
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  opacity: 0;
  transition: transform 0.22s cubic-bezier(.2,.9,.2,1), opacity 0.14s ease;
}

.btn-primary:hover::before,
.btn-primary:focus::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  border-color: #10B981;
}

.btn-primary:hover::after,
.btn-primary:focus::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* Show menu */
.nav-links.active {
  display: flex;
}

/* Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: #16A34A;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary:hover {
  background: #15803D;
}

/* Hamburger */
.menu-toggle {
  font-size: 22px;
  cursor: pointer;
  display: block;
}
.logo img{
  height:48px;
  object-fit:contain;
}

.logo .brand-logo.is-loading {
  opacity: 0;
}

.logo .brand-logo {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.logo-buffer {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #cfead9;
  border-top-color: #16A34A;
  animation: logo-spin 0.7s linear infinite;
  margin-right: 10px;
}

.logo-buffer.hidden {
  display: none;
}

@keyframes logo-spin {
  to {
    transform: rotate(360deg);
  }
}

.logo a{
display:flex;
align-items:center;
text-decoration:none;
}
/* ================= TABLET & DESKTOP ================= */
@media (min-width: 768px) {

  .header {
    padding: 18px 60px;
  }

  .logo img{
    height:64px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    width: auto;
    padding: 0;
    box-shadow: none;
  }

  .nav-links a {
    margin-left: 25px;
    margin-bottom: 0;
  }
}