/* ============================================================
   Marketing Header — public landing pages, vertical pages
   ============================================================ */

.marketing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--border-light);
  transition: background 220ms ease, border-color 220ms ease;
}

.marketing-header.is-stuck {
  background: var(--bg-surface);
  border-bottom-color: var(--border-default);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

[data-mode="dark"] .marketing-header,
.dark .marketing-header {
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
}

.marketing-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.marketing-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 180ms ease;
}
.marketing-header__logo:hover { opacity: 0.85; }

.marketing-header__logo-img {
  height: 36px;
  width: auto;
}
.marketing-header__logo-img--light { display: block; }
.marketing-header__logo-img--dark  { display: none; }

[data-mode="dark"] .marketing-header__logo-img--light,
.dark .marketing-header__logo-img--light { display: none; }
[data-mode="dark"] .marketing-header__logo-img--dark,
.dark .marketing-header__logo-img--dark { display: block; }

.marketing-header__nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  margin-left: 1.5rem;
}
@media (min-width: 880px) {
  .marketing-header__nav { display: flex; }
}

.marketing-header__link {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease;
}
.marketing-header__link:hover {
  color: var(--text-primary);
}

.marketing-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.marketing-header__icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.marketing-header__icon-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.marketing-header__icon-light { display: block; }
.marketing-header__icon-dark { display: none; }
[data-mode="dark"] .marketing-header__icon-light,
.dark .marketing-header__icon-light { display: none; }
[data-mode="dark"] .marketing-header__icon-dark,
.dark .marketing-header__icon-dark { display: block; }

.marketing-header__locale {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
}
@media (min-width: 760px) {
  .marketing-header__locale { display: inline-flex; }
}
.marketing-header__locale-link {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 160ms ease;
  letter-spacing: 0.04em;
}
.marketing-header__locale-link:hover { color: var(--text-primary); }
.marketing-header__locale-link.is-active { color: var(--accent); }
.marketing-header__locale-sep { color: var(--text-tertiary); opacity: 0.5; }

.marketing-header__cta {
  display: none;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 180ms cubic-bezier(0.2, 0.8, 0.4, 1);
  white-space: nowrap;
  border: 1px solid transparent;
}
@media (min-width: 640px) {
  .marketing-header__cta { display: inline-flex; }
}

.marketing-header__cta--ghost {
  color: var(--text-secondary);
  background: transparent;
}
.marketing-header__cta--ghost:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.marketing-header__cta--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}
.marketing-header__cta--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}

.marketing-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.marketing-header__burger:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
@media (min-width: 880px) {
  .marketing-header__burger { display: none; }
}

.marketing-header__mobile-drawer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border-light);
}
.marketing-header__mobile-drawer[hidden] { display: none; }

.marketing-header__mobile-link {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 160ms ease;
}
.marketing-header__mobile-link:hover {
  background: var(--bg-surface-hover);
}
.marketing-header__mobile-link--cta {
  background: var(--accent);
  color: var(--accent-contrast);
  text-align: center;
  margin-top: 0.5rem;
}
.marketing-header__mobile-link--cta:hover {
  background: var(--accent-hover);
}

/* ============================================================
   Hero theme-aware readability tweaks.
   Light mode (default in pages/landing.css) : warm coral-cream gradient
   with dark navy headlines. We boost the H1 weight + soft shadow.
   Dark mode : navy hero, restore white text + glow.
   We use media-query/data-mode to scope correctly so utility-classes
   like text-slate-300 / text-white/50 baked into the partial don't
   undermine the contrast in light mode.
   ============================================================ */
.vertical-landing-hero h1 {
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.vertical-landing-hero h1 strong {
  color: var(--flowayz-coral, #FF7B54);
  font-weight: 800;
}

/* Light-mode utility-class neutralization inside the hero.
   The ERB partial hardcodes Tailwind utility classes (text-white, text-white/*,
   text-slate-300/400/600) that were chosen when the hero was permanently dark.
   In light mode we rebrand them to readable navy variants. */
.vertical-landing-hero .text-white,
.vertical-landing-hero .\/text-white\/90,
.vertical-landing-hero [class*="text-white\\/"] {
  color: #1A2238 !important;
}
.vertical-landing-hero .text-slate-300 {
  color: rgba(26, 34, 56, 0.78) !important;
}
.vertical-landing-hero .text-slate-400 {
  color: rgba(26, 34, 56, 0.62) !important;
}
.vertical-landing-hero .text-slate-600 {
  color: rgba(26, 34, 56, 0.35) !important;
}
.vertical-landing-hero .vt-badge-coral {
  background: rgba(255, 123, 84, 0.18) !important;
  border-color: rgba(255, 123, 84, 0.45) !important;
  color: #C4521E !important;
}

/* Dark mode — restore white-on-navy palette */
[data-mode="dark"] .vertical-landing-hero h1,
.dark .vertical-landing-hero h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 0 1px rgba(255, 255, 255, 0.2);
}
[data-mode="dark"] .vertical-landing-hero .text-white,
[data-mode="dark"] .vertical-landing-hero [class*="text-white\\/"],
.dark .vertical-landing-hero .text-white,
.dark .vertical-landing-hero [class*="text-white\\/"] {
  color: #ffffff !important;
}
[data-mode="dark"] .vertical-landing-hero .text-slate-300,
.dark .vertical-landing-hero .text-slate-300 {
  color: rgb(203 213 225) !important;
}
[data-mode="dark"] .vertical-landing-hero .text-slate-400,
.dark .vertical-landing-hero .text-slate-400 {
  color: rgb(148 163 184) !important;
}
[data-mode="dark"] .vertical-landing-hero .text-slate-600,
.dark .vertical-landing-hero .text-slate-600 {
  color: rgb(100 116 139) !important;
  opacity: 0.6;
}
[data-mode="dark"] .vertical-landing-hero .vt-badge-coral,
.dark .vertical-landing-hero .vt-badge-coral {
  background: rgba(255, 123, 84, 0.12) !important;
  border-color: rgba(255, 123, 84, 0.25) !important;
  color: #ffffff !important;
}
