/* ===== RESPONSIVE NAVBAR - UNIFIED FOR ALL PAGES ===== */

:root {
  --nav-bg: #ffffff;
  --nav-text: #333333;
  --nav-active: #e89934;
  --nav-hover: #e89934;
  --nav-logo-color: #d46114;
  --nav-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --nav-toggle-size: 28px;
}

/* ===== HEADER & NAV BASE ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  z-index: 9999;
  margin: 0;
  padding: 0;
}

body {
  padding-top: 70px;
  margin: 0;
}

/* ===== NAV CONTAINER ===== */
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  max-width: 100%;
  height: 70px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== LOGO ===== */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: translateY(-2px);
}

.navbar-logo img {
  height: 50px;
  width: auto;
}

.navbar-logo span {
  color: var(--nav-logo-color);
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== HAMBURGER TOGGLE ===== */
.navbar-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.35rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.navbar-toggle span {
  width: 28px;
  height: 3px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== NAV MENU ===== */
.navbar-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.navbar-item {
  margin: 0;
  padding: 0;
}

.navbar-link {
  text-decoration: none;
  color: var(--nav-text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  letter-spacing: 0.2px;
}

.navbar-link:hover {
  color: var(--nav-hover);
}

.navbar-link.active {
  color: var(--nav-active);
  font-weight: 600;
}

/* ===== RESPONSIVE: TABLET (1024px and below) ===== */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 0.7rem 1.5rem;
  }

  .navbar-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .navbar-logo span {
    font-size: 1.2rem;
  }

  .navbar-logo img {
    height: 46px;
  }
}

/* ===== RESPONSIVE: MOBILE (768px and below) ===== */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .navbar-container {
    padding: 0.6rem 1rem;
    height: 60px;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-logo span {
    font-size: 1.1rem;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-logo img {
    height: 40px;
  }

  /* Mobile Menu Dropdown */
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: var(--nav-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none !important;
    z-index: 999;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
  }

  .navbar-menu.active {
    display: flex !important;
    max-height: 500px;
  }

  .navbar-item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    margin: 0;
    padding: 0;
  }

  .navbar-item:last-child {
    border-bottom: none;
  }

  .navbar-link {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 0;
    font-size: 0.95rem;
    display: block;
    text-align: left;
    justify-content: flex-start;
    border: none;
  }

  .navbar-link:hover {
    background-color: rgba(232, 153, 52, 0.06);
    padding-left: 1.4rem;
  }

  .navbar-link.active {
    background-color: rgba(232, 153, 52, 0.1);
  }

  .navbar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--nav-active);
  }

  .navbar-link {
    position: relative;
  }
}

/* ===== RESPONSIVE: SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
  .navbar-container {
    padding: 0.5rem 0.8rem;
  }

  .navbar-logo span {
    font-size: 0.95rem;
    max-width: 90px;
  }

  .navbar-logo img {
    height: 38px;
  }

  .navbar-toggle span {
    width: 24px;
    height: 2.5px;
  }

  .navbar-link {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }

  .navbar-menu {
    max-height: 80vh;
  }
}

/* ===== RESPONSIVE: VERY SMALL (360px and below) ===== */
@media (max-width: 360px) {
  .navbar-container {
    padding: 0.5rem 0.6rem;
  }

  .navbar-logo span {
    font-size: 0.85rem;
    max-width: 80px;
  }

  .navbar-logo img {
    height: 36px;
  }

  .navbar-link {
    padding: 0.8rem 0.9rem;
    font-size: 0.85rem;
  }
}
