/* ============================================
   TrueCare Hospitality - Header / Navbar Styles
   Shared across all pages
   ============================================ */

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(254, 255, 255, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  background: rgba(254, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  min-height: 70px;
}

/* ---------- Logo ---------- */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #1e3a5f, #2f6da5, #4fb6c2, #7bc67b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo span {
  font-weight: 600;
}

/* Logo Image */
.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* ---------- Navigation Links ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #222;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #4fb6c2, #7bc67b);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2f6da5;
}

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

/* ---------- Hamburger Menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #1e3a5f;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Header Responsive ---------- */

/* Tablet: shrink logo a little */
@media (max-width: 991px) {
  .logo-img {
    height: 66px;
  }

  .nav-links {
    gap: 22px;
  }
}

/* Mobile: switch to slide-in drawer */
@media (max-width: 767px) {
  .logo-img {
    height: 58px;
  }

  .hamburger {
    display: flex;
    padding: 8px;
    margin-right: -8px; /* extend tap area to edge */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px 36px;
    box-shadow: -6px 0 40px rgba(0, 0, 0, 0.12);
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

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

/* Small mobile */
@media (max-width: 480px) {
  .logo-img {
    height: 50px;
  }

  .nav-links {
    width: 85%;
    padding: 40px 28px;
    gap: 24px;
  }
}
