/* =====================================================
   ZEFFY CLONE — HEADER / NAVIGATION
   Pixel-matched to real Zeffy.com header
   ===================================================== */

/* ── Base Header ── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-height);
  background: var(--navy-900);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(8,8,92,0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* ── Logo — matches Zeffy's "zeffy ≈≈" mark ── */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
}
.header-logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: var(--weight-black);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.header-logo-icon {
  color: var(--teal-400);
  font-size: 1.1rem;
  margin-left: 2px;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Main Nav ── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

/* Nav Item */
.nav-item {
  position: relative;
}

/* Zeffy's nav: $0 Pricing is teal, rest are white */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9375rem; /* 15px — matches Zeffy exactly */
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius-md);
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  outline: none;
}
.nav-link.active {
  color: var(--white);
}

/* Chevron */
.nav-link .chevron {
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,0.5);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: -2px;
}
.nav-item.open > .nav-link .chevron {
  transform: rotate(180deg);
  color: var(--teal-400);
}
.nav-item:hover > .nav-link .chevron {
  color: rgba(255,255,255,0.8);
}

/* $0 Pricing highlighted in teal */
.nav-link-pricing {
  color: var(--teal-400) !important;
  font-weight: var(--weight-semibold);
}
.nav-link-pricing:hover {
  color: var(--teal-300) !important;
  background: rgba(45,212,192,0.1);
}

/* ── Dropdown Menu ── */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(8,8,92,0.18), 0 2px 12px rgba(8,8,92,0.08);
  border: 1px solid var(--slate-150);
  transition: opacity 180ms ease, transform 180ms ease;
  min-width: 240px;
  padding: var(--space-3) var(--space-2);
  z-index: 300;
}

/* Solutions — Wide 3-column dropdown matching Zeffy */
.dropdown-wide {
  width: 700px;
  left: -120px;
  transform: translateX(0) translateY(-8px);
  padding: var(--space-5);
}

.nav-item:hover .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-item:hover .dropdown-wide,
.nav-item.open .dropdown-wide {
  transform: translateX(0) translateY(0);
}

/* Dropdown caret */
.dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-left: 1px solid var(--slate-150);
  border-top: 1px solid var(--slate-150);
  transform: translateX(-50%) rotate(45deg);
}
.dropdown-wide::before {
  left: calc(120px + 28px);
}

/* Dropdown headings — teal, uppercase */
.dropdown-heading {
  padding: 6px 10px 8px;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-400);
}

/* Wide dropdown — 3 columns like real Zeffy */
.dropdown-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-1);
  column-gap: var(--space-3);
}

/* Dropdown item */
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--slate-700);
  text-decoration: none;
  transition: background var(--transition-fast);
  cursor: pointer;
}
.dropdown-item:hover {
  background: var(--slate-50);
}
.dropdown-item:hover .dropdown-item-title {
  color: var(--teal-500);
}

/* Icon — teal/purple small icon */
.dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-bg);
  color: var(--teal-500);
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}

.dropdown-item-content {}
.dropdown-item-title {
  font-weight: var(--weight-semibold);
  color: var(--navy-900);
  display: block;
  font-size: 0.875rem;
  line-height: 1.3;
  transition: color var(--transition-fast);
}
.dropdown-item-desc {
  font-size: 12px;
  color: var(--slate-400);
  display: block;
  margin-top: 2px;
  line-height: 1.4;
}

.dropdown-divider {
  height: 1px;
  background: var(--slate-100);
  margin: var(--space-2) var(--space-2);
}

/* ── Header Actions ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Language — "FR" text like real Zeffy */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(255,255,255,0.75);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}
.lang-toggle:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Login */
.btn-login {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.btn-login:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Sign up */
.btn-signup {
  background: linear-gradient(135deg, #2DD4C0 0%, #29abe0 100%);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 99px;
  font-size: var(--text-sm);
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(45, 212, 192, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.btn-signup::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 171, 224, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  background: linear-gradient(135deg, #35ebd6 0%, #30bdf7 100%);
}

.btn-signup:hover::before {
  left: 100%;
}

.btn-signup:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(41, 171, 224, 0.3);
}

.btn-signup svg {
  transition: transform 0.3s ease;
}

.btn-signup:hover svg {
  transform: translateX(3px);
}
.btn-signup:hover {
  background: var(--purple-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91,95,199,0.40);
}
.btn-signup svg {
  width: 14px; height: 14px;
  transition: transform var(--transition-fast);
}
.btn-signup:hover svg { transform: translateX(2px); }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  transition: background var(--transition-fast);
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-900);
  z-index: 450;
  overflow-y: auto;
  padding: var(--space-4) var(--space-4) var(--space-12);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-section {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: var(--space-4) 0;
}
.mobile-nav-heading {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-400);
  margin-bottom: var(--space-2);
  padding: 0 var(--space-2);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-2);
  color: rgba(255,255,255,0.8);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-nav-link:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white);
}
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .hamburger  { display: flex; }
  .mobile-nav { display: block; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 var(--space-4); }
  .lang-toggle  { display: none; }
}

/* ══════════════════════════════════════
   COMPARE DROPDOWN — pixel-matched to real Zeffy
   Wide 3-column layout: 2 brand cols + right panel
══════════════════════════════════════ */
.dropdown-compare {
  padding: 0 !important;
  background: #FFFFFF !important;
  min-width: 680px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  box-shadow: 0 4px 24px rgba(8,8,92,0.15), 0 0 0 1px rgba(0,0,0,0.06) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.compare-dd-layout {
  display: flex;
  align-items: stretch;
  min-height: 260px;
}

.compare-dd-items {
  flex: 1;
  padding: 20px 18px 18px;
}

.compare-dd-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
  margin-bottom: 14px;
}

.compare-dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.compare-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s ease;
}
.compare-dd-item:hover {
  background: #EEF2FF;
}

.compare-dd-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.compare-dd-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.compare-dd-name strong {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.2;
}
.compare-dd-name span {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.3;
}

/* Right panel */
.compare-dd-panel {
  width: 200px;
  flex-shrink: 0;
  background: #F8FAFC;
  border-left: 1px solid #F1F5F9;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.compare-dd-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-dd-panel-text {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.4;
}

.compare-dd-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #5B5FC7;
  text-decoration: none;
  padding: 7px 14px;
  border: none;
  background: #F1F5F9;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.compare-dd-view-all:hover {
  background: #EEF2FF;
  background: #EEF2FF;
}

@media (max-width: 1024px) {
  .dropdown-compare { min-width: 340px !important; }
  .compare-dd-grid { grid-template-columns: 1fr; }
  .compare-dd-panel { display: none; }
}
