/* ============================================================
   NAVBAR — Light, clean, editorial
   ============================================================ */

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  height: 68px;
  width: calc(100% - 40px);
  max-width: 1200px;
  border-radius: 100px;
  background: rgba(254, 250, 244, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 24px rgba(26, 17, 8, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

.navbar.scrolled {
  top: 12px;
  background: rgba(254, 250, 244, 0.85);
  box-shadow: 0 12px 40px rgba(26, 17, 8, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.05);
}

.navbar-inner {
  width: 100%;
  padding-inline: clamp(16px, 4vw, 32px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  transition: gap 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar.scrolled .navbar-inner {
  padding-inline: 16px;
}

/* ── LOGO ─────────────────────────────────────────────────── */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(232,98,26,0.30);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
}

.logo-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── NAV LINKS ──────────────────────────────────────────────── */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: color 200ms var(--ease-out), background 200ms var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  color: var(--charcoal);
  background: var(--orange-soft);
}

.nav-link.active {
  color: var(--orange);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* ── CTA BUTTON ─────────────────────────────────────────────── */
.btn-sm {
  padding: 9px 22px;
  font-size: 0.875rem;
}

/* ── HAMBURGER ───────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background 200ms var(--ease-out);
}
.hamburger:hover { background: var(--orange-soft); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--charcoal);
  transition: transform 300ms var(--ease-out), opacity 200ms;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 88px; /* account for floating navbar top offset */
  left: 20px;
  right: 20px;
  border-radius: 24px;
  background: rgba(254, 250, 244, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 16px 40px rgba(26,17,8,0.15);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  gap: 4px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 350ms var(--ease-out), opacity 300ms var(--ease-out);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu .nav-link {
  font-size: 1rem;
  padding: 12px 16px;
}

/* ── WHATSAPP FLOAT ──────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  z-index: 500;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.50);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .navbar-logo .logo-text { display: none; }
  .logo-mark { width: 34px; height: 34px; font-size: 0.8rem; }
}
