/* Shared site header — matches index.html navbar */
:root {
  --primary-green: #2c7a4d;
  --primary-green-dark: #1f5a38;
  --primary-blue: #2c6e9e;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  z-index: 200;
  padding: 1rem 0;
  transition: all 0.25s ease;
  border-bottom: 1px solid rgba(44, 122, 77, 0.15);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(44, 122, 77, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(520px, 48vw);
  flex-wrap: nowrap;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid white;
  flex-shrink: 0;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.logo h1 {
  font-size: clamp(0.62rem, 1.05vw, 0.98rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.logo p {
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #1f2e3a;
  transition: 0.2s;
  font-size: 0.88rem;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active-nav::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active-nav {
  color: var(--primary-green);
}

.btn-outline {
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  background: transparent;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
  color: white !important;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(44, 122, 77, 0.3);
}

.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #1f2e3a;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 0.85rem;
  }

  .nav-links a {
    font-size: 0.82rem;
  }
}

@media (max-width: 900px) {
  .navbar .container {
    padding: 0 1rem;
  }

  .nav-container {
    flex-wrap: wrap;
    align-items: center;
  }

  .logo {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 52px);
  }

  .logo-text-wrapper {
    overflow: visible;
    flex: 1;
    min-width: 0;
  }

  .logo h1 {
    font-size: clamp(0.46rem, 2.35vw, 0.62rem);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: unset;
    margin-bottom: 1px;
    max-width: 100%;
  }

  .logo p {
    font-size: clamp(0.42rem, 1.9vw, 0.5rem);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: unset;
    max-width: 100%;
    letter-spacing: 0.02em;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0;
    order: 3;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 0.5rem;
  }

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-links a {
    white-space: normal;
    width: auto;
    text-align: center;
  }

  .nav-links .btn-outline {
    margin: 0;
  }

  .menu-icon {
    display: block;
    order: 2;
    margin-left: 6px;
    flex-shrink: 0;
  }
}

/* Very narrow phones — keep title + tagline as two readable lines */
@media (max-width: 380px) {
  .logo h1 {
    font-size: 0.44rem;
  }

  .logo p {
    font-size: 0.4rem;
    letter-spacing: 0.01em;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }
}
