/* ==============================================
   HEADER.CSS v3.1 — Nav, Hamburger, Mobile Menu
   ============================================== */

/* ── Site Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

/* ── Nav Inner ── */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 9px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}
.nav-logo img { height: 38px; width: auto; }

/* ── Desktop Nav ── */
.nav-menu-wrap { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.tm-nav-item { position: relative; }
.tm-nav-item > a {
  display: flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  gap: 4px;
}
.tm-nav-item > a:hover,
.tm-nav-item.active > a,
.tm-nav-item.current-menu-item > a,
.tm-nav-item.current-menu-ancestor > a {
  color: var(--accent);
  background: var(--accent-light);
}

/* ── Dropdown ── */
.tm-dropdown {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  min-width: 210px;
  list-style: none;
  padding: 8px; margin: 0;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  z-index: 200;
}
.tm-nav-item.has-dropdown:hover > .tm-dropdown,
.tm-nav-item.has-dropdown:focus-within > .tm-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.tm-dropdown-item > a {
  display: block;
  padding: 9px 13px;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all .15s;
  text-decoration: none;
}
.tm-dropdown-item > a:hover,
.tm-dropdown-item.current-menu-item > a {
  background: var(--accent-light); color: var(--accent);
}

/* ── Desktop CTA ── */
.nav-cta { margin-left: 12px; }

/* ── Hamburger — 3 lines, NO icon font ── */
.hamburger {
  display: none;           /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  background: var(--off-white-bg);
  border: 1.5px solid var(--border-light);
  transition: all var(--transition);
  padding: 0;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--accent-light); border-color: var(--accent); }
.ham-line {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
  pointer-events: none;
}

/* ── Mobile Nav Overlay ── */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.99);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }

.mobile-nav-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--off-white-bg);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
}
.mobile-nav-close:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

.mobile-nav-logo { margin-bottom: 24px; }

.mobile-nav-links { width: 100%; max-width: 300px; }
.mobile-nav-links ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-nav-links li a {
  display: block;
  font-size: 19px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
}
.mobile-nav-links li a:hover,
.mobile-nav-links li.current-menu-item > a {
  color: var(--accent); background: var(--accent-light);
}
.mobile-nav-links .sub-menu { padding-left: 14px; }
.mobile-nav-links .sub-menu a { font-size: 15px; font-weight: 600; padding: 8px 18px; }
.mobile-nav-cta { color: var(--accent) !important; }

.mobile-nav-actions {
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #1ebe5d; color: white; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  transition: all var(--transition);
  text-decoration: none;
  animation: wpPulse 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ── Scroll To Top ── */
.scroll-top {
  position: fixed;
  bottom: 86px; right: 24px;
  width: 40px; height: 40px;
  background: var(--accent); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(10px);
  transition: all var(--transition); z-index: 998;
  border: none; box-shadow: 0 4px 16px var(--accent-glow);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover   { background: var(--accent-hover); transform: translateY(-2px); }
