/* ═══════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════ */
.top-bar {
  position: relative;
  z-index: 1001;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 2.4rem;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar__divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.15);
}

.top-bar__right {
  display: flex;
  gap: 1.5rem;
}

.top-bar__link {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.top-bar__link:hover {
  color: var(--blue);
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, box-shadow 0.3s ease, border-color 0.4s ease;
}

/* Nav default: transparent dark over hero */
.nav .nav__link { color: rgba(255,255,255,0.7); }
.nav .nav__link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav .nav__burger span { background: #fff; }
.nav .nav__chevron { color: rgba(255,255,255,0.5); }
.nav .btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 123, 193, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  border: none;
}
.nav .btn--primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 20px rgba(0, 123, 193, 0.4);
}
.nav .btn--ghost {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.18);
  background: transparent;
}
.nav .btn--ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}

/* Nav scrolled: solid dark background, compact height */
.nav--scrolled {
  --nav-h: 60px;
  background: rgba(15, 25, 35, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav--scrolled .nav__link {
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
}
.nav--scrolled .btn {
  font-size: 0.8rem;
  padding: 0.55rem 1.2rem;
}

.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 2.4rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__logo img,
.nav__logo svg {
  height: 56px;
  width: auto;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav--scrolled .nav__logo img,
.nav--scrolled .nav__logo svg {
  height: 38px;
}

.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 0.25rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.nav__link:hover {
  color: var(--text);
  background: var(--blue-pale);
}

.nav__chevron {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__dropdown:hover .nav__chevron,
.nav__dropdown.active .nav__chevron {
  transform: rotate(180deg);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   NAV BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0, 123, 193, 0.3),
              inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 20px rgba(0, 123, 193, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

/* ═══════════════════════════════════════════
   DROPDOWNS
   ═══════════════════════════════════════════ */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
              0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
}

/* Bridge the gap between nav link and dropdown */
.dropdown::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.nav__dropdown {
  position: static;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.nav__dropdown:hover .dropdown,
.nav__dropdown.active .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 240px;
  gap: 2rem;
  min-width: 720px;
}

.dropdown__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.dropdown__link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0.6rem;
  border-radius: 10px;
  transition: background 0.2s;
}

.dropdown__link:hover {
  background: var(--blue-pale);
}

.dropdown__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.dropdown__link strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.dropdown__link span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.dropdown__promo {
  background: linear-gradient(135deg, var(--green-pale), #F0FAF0);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dropdown__promo-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(82, 171, 51, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.dropdown__promo strong {
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--dark);
}

.dropdown__promo p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.dropdown__promo-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  margin-top: auto;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown__promo-cta:hover { gap: 0.5rem; }

/* ═══════════════════════════════════════════
   MOBILE BURGER
   ═══════════════════════════════════════════ */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Burger → X animation */
.nav__burger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger--open span:nth-child(2) {
  opacity: 0;
}
.nav__burger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
