/* === DARK THEME TOKENS  === */
:root {
  --bg: #000000;
  --text: #f6f7f8;
  --muted: #a7adb5;
  --accent: #ff7a1a;
  /* orange */
  --surface: #101214;
  /* cards / chips */
  --surface-2: #0b0c0f;
  /* deeper panels */
  --border: #21242a;
  --radius: 16px;
}

/* Disable color/paint transitions during initial paint or JS toggling */
html.no-theme-transitions *,
html.no-theme-transitions {
  transition: none !important;
  animation: none !important;
}


/* Simple container helper (used by sections incl. How it works) */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

body.wlh-body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Header (dark, glassy) */
.wlh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.wlh-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* push items apart */
  position: relative;
}

.wlh-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: #e6e8ea;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nav-link:hover {
  background: #15171b;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
}

/* Unify CTA buttons (Book a demo, Admin) with primary button styling */
.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--accent);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nav-cta:hover,
.nav-cta:focus {
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 122, 26, .25);
  background: var(--accent);
}

/* ===== Outline CTA (Book a Demo) ===== */
.nav-cta--outline {
  position: relative;
  background: transparent;
  border: 2px solid var(--accent);
  color: #fff; /* default = dark mode text */
  font-weight: 600;
  border-radius: 40px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

/* Add subtle underline animation */
.nav-cta--outline::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-cta--outline:hover::after {
  transform: scaleX(1);
}

/* Remove fill and glow on hover */
.nav-cta--outline:hover {
  background: transparent !important;
  box-shadow: none !important;
  border-color: var(--accent);
}

/* ===== Theme overrides ===== */

/* LIGHT THEME */
html[data-theme="light"] .nav-cta--outline {
  color: var(--accent) !important;   /* orange text on white bg */
  border-color: var(--accent) !important;
}

html[data-theme="light"] .nav-cta--outline:hover {
  color: var(--accent) !important;   /* stays orange */
}

/* DARK THEME */
html[data-theme="dark"] .nav-cta--outline {
  color: #fff !important;            /* white text on dark bg */
  border-color: var(--accent) !important;
}

html[data-theme="dark"] .nav-cta--outline:hover {
  color: #fff !important;            /* stays white */
}


/* Hero (simple bg version) */
.hero--simple {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 68vh;
  border-radius: var(--radius);
  margin: 48px auto 16px;
  max-width: 1200px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0b0c0f;
}

#wlh-hero-canvas,
#wlh-hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(255, 122, 26, 0.18) 0%, rgba(255, 122, 26, 0.08) 35%, transparent 60%),
    radial-gradient(40% 40% at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.hero-content p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 18px;
}

.hero-ctas {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 122, 26, .25);
}

.btn-ghost {
  background: transparent;
  color: #e6e8ea;
  border-color: #2a2e35;
}

.btn-ghost:hover {
  background: #15171b;
}

/* Trust strip, chips, cards (dark surfaces) */
.wlh-trust {
  padding: 12px 0 24px;
}

.trust-kickers {
  display: flex;
  gap: 14px;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.trust-kickers span {
  background: #121418;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.wlh-chips {
  padding: 48px 0;
}

.section-sub {
  color: var(--muted);
  margin-top: -6px;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.chip:hover,
.chip.active {
  border-color: var(--accent);
}

.chip-info {
  margin-top: 12px;
  color: var(--muted);
  min-height: 24px;
}

/* Testimonials */
.wlh-testimonials {
  padding: 48px 0;
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.t-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.t-card blockquote {
  margin: 0 0 10px;
  font-weight: 600;
  color: #eef1f3;
}

.t-card figcaption {
  color: var(--muted);
}

/* CTA band */
.wlh-cta-band {
  background: #050507;
  color: #fff;
  padding: 48px 0;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ===== Professional Multi-Column Footer ===== */
.wlh-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  padding: 60px 20px;
  font-size: 15px;
  line-height: 1.7;
}

.wlh-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* always 3 columns on desktop */
  gap: 40px;
  align-items: start;
  position: relative;
}

/* Column dividers (desktop only) */
@media (min-width: 901px) {
  .footer-col:not(:last-child) {
    border-right: 1px solid var(--border);
    padding-right: 40px;
  }
}

/* Columns */
.footer-col p,
.footer-col a {
  margin: 4px 0;
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  display: block;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

/* Branding section */
.footer-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Social icons under brand */
.footer-social {
  display: flex;
  gap: 12px;
  margin: 16px 0 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

/* Copy text */
.footer-copy {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

/* Section titles */
.footer-col strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

/* Responsive (mobile stack) */
@media (max-width: 900px) {
  .wlh-footer__inner {
    grid-template-columns: 1fr; /* stack */
    text-align: center;
    row-gap: 36px;
  }
  .footer-col {
    border-right: none !important;
    padding-right: 0;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-col a {
    display: block;
  }
}

/* === FIX: Keep only two full-height dividers between footer columns === */
@media (min-width: 901px) {
  .wlh-footer__inner {
    align-items: stretch; /* make all footer columns equal height */
  }

  .footer-col {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .footer-col:not(:last-child) {
    border-right: 1px solid var(--border);
    padding-right: 40px;
  }
}





/* ====== Motion: base ====== */
@media (prefers-reduced-motion: no-preference) {

  /* Enable smooth scrolling for in-page anchor navigation (e.g., Pricing: See the plans) */
  html {
    scroll-behavior: smooth;
  }

  .reveal {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }

  .reveal.in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition:
      opacity .6s cubic-bezier(.22, .61, .36, 1),
      transform .6s cubic-bezier(.22, .61, .36, 1),
      filter .6s cubic-bezier(.22, .61, .36, 1);
  }

  .reveal {
    transition-delay: var(--reveal-delay, 0s);
  }
}

/* Animated accent gradient for headline */
.text-gradient {
  background: linear-gradient(90deg, #fff 0%, #ff7a1a 50%, #fff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s ease-in-out infinite;
}

@keyframes shine {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Buttons micro interactions */
.btn {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 122, 26, .25);
}

.btn-ghost:hover {
  transform: translateY(-1px);
}

/* Nav underline slide */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Remove text underline for button-style interactive links (retain decorative bar) */
.nav-link,
.nav-link:visited,
.nav-link:hover,
.nav-link:focus,
.nav-cta,
.nav-cta:hover,
.nav-cta:focus,
.btn,
.btn:hover,
.btn:focus,
.button,
.button:hover,
.button:focus,
.actions a,
.actions a:hover,
.actions a:focus,
.actions form button,
.actions form button:hover,
.actions form button:focus {
  text-decoration: none !important;
}

/* Chip hover/active pulse */
@media (prefers-reduced-motion: no-preference) {

  .chip:hover,
  .chip.active {
    box-shadow: 0 6px 16px rgba(255, 122, 26, .18);
    transform: translateY(-2px);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  }
}

/* Social icons playful wiggle on hover */
@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-8deg);
  }

  75% {
    transform: rotate(8deg);
  }
}

.social-link:hover {
  animation: wiggle .32s ease-in-out;
}

/* Footer contact items subtle lift */
.contact-item {
  transition: color .2s ease, transform .2s ease;
}

.contact-item:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.in,
  .btn,
  .nav-link::after,
  .chip,
  .social-link,
  .contact-item,
  .text-gradient {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .text-gradient {
    color: #fff;
    -webkit-background-clip: initial;
    background-clip: initial;
  }
}

/* ===== How it works: animated timeline ===== */
.wlh-how {
  padding: 64px 0;
}

.how-title {
  text-align: center;
  margin: 0 0 28px;
}

.how-grid {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

/* vertical track */
.how-track {
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(#16181c, #0d0f13);
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.how-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), #ffb36f);
  box-shadow: 0 0 18px rgba(255, 122, 26, .35);
  transition: height .35s ease;
}

/* step cards */
.how-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.how-step h3 {
  margin: 2px 0 6px;
}

.how-step p {
  color: var(--muted);
  margin: 0;
}

/* badge */
.how-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(255, 122, 26, .35);
  align-self: center;
  transform: translateZ(12px) scale(.9);
}

/* hover micro-interaction */
@media (prefers-reduced-motion: no-preference) {
  .how-step {
    transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s ease, border-color .25s ease;
  }

  .how-step:hover {
    transform: translateY(-4px) rotateX(1deg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
    border-color: rgba(255, 122, 26, .35);
  }

  .how-step:hover .how-badge {
    animation: howPulse .9s ease-in-out both;
  }

  @keyframes howPulse {
    0% {
      transform: translateZ(12px) scale(.9);
    }

    40% {
      transform: translateZ(12px) scale(1.08);
    }

    100% {
      transform: translateZ(12px) scale(1);
    }
  }
}

/* reveal overrides for steps (snappier) */
@media (prefers-reduced-motion: no-preference) {
  .how-step.reveal {
    opacity: 0;
    transform: translateY(18px) scale(.98);
    filter: blur(6px);
  }

  .how-step.reveal.in {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition:
      opacity .55s cubic-bezier(.22, .61, .36, 1),
      transform .55s cubic-bezier(.22, .61, .36, 1),
      filter .55s cubic-bezier(.22, .61, .36, 1);
  }
}

/* responsive tweaks for how section */
@media (max-width: 640px) {
  .how-track {
    left: 18px;
  }

  .how-step {
    grid-template-columns: 48px 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .t-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }

  .t-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
    border-color: rgba(255, 122, 26, .25);
  }
}

/* ===== Mobile Nav (hamburger + drawer) ===== */

.wlh-logo {
  position: relative;
  left: auto;
  transform: none;
  margin: 0 auto; /* keeps spacing consistent */
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin-right: auto;   /* keep it to the left */
  margin-left: 0;       /* flush against left */
  cursor: pointer;
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e6e8ea;
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile: full-screen drawer ===== */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; margin-left: 8px; margin-right: auto; }
  .wlh-logo { position: absolute; left: 50%; transform: translateX(-50%); }

  .wlh-nav { display: none !important; }
}

/* Backdrop is no longer needed to dim because drawer covers full screen */
.nav-backdrop { display: none; }

/* Drawer */
.mobile-drawer {
  position: fixed;
  top: 60px; left: 0;
  height: calc(100dvh - 60px);    /* full device viewport height */
  width: 100%;      /* take full width of the screen */
  background: var(--surface-2);
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* top, content, bottom */
  padding: 16px;
  box-sizing: border-box;
}

/* When nav is open */
html.nav-open .mobile-drawer {
  transform: translateX(0);
}

/* Prevent background page scroll while drawer is open */
html.nav-open,
html.nav-open body {
  overflow: hidden;
  height: 100%;
}

/* Drawer top (close button) */
.drawer-top {
  display: none;
  align-items: center;
  justify-content: flex-end;
}

.drawer-close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* Content links */
.drawer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.drawer-content a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: 10px;
}

.drawer-content a:hover { background: #15171b; }

.drawer-cta {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 999px;
}

/* Bottom pinned (account + theme toggle) */
.drawer-bottom {
  border-top: 1px solid var(--border);
  background: #1a1d22;       /* grey panel background */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  /* Add even padding on all sides */
  padding: 12px 16px;
  border-radius: 12px;
}


/* Account items (left column) */
.drawer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-login {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 10px;
}

.drawer-login i {
  width: 18px;
  text-align: center;
}

.drawer-login:hover {
  background: #15171b;
  color: var(--accent);
}

/* Theme toggle (right corner) */
.drawer-theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px; 
}

.drawer-theme-toggle:hover {
  background: #15171b;
}

html[data-theme="light"] .drawer-theme-toggle:hover {
  background: #eef1f5;
}

/* Separator (if needed between account items) */
.drawer-separator {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* === Mobile Drawer Theme Toggle Above Card === */
.drawer-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 12px;
  padding: 0 4px;
  background: transparent; /* no background */
  color: var(--text);
}

.drawer-theme-row .theme-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* The toggle itself should appear slightly glowing neon */
.drawer-theme-toggle {
  --switch-width: 48px;
  --switch-height: 26px;
  --thumb-size: 22px;
  border: 1px solid var(--accent);
  box-shadow: 0 0 8px rgba(255, 122, 26, 0.45);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.drawer-theme-toggle:hover {
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.75);
  transform: translateY(-1px);
}

/* Light mode variant glow */
html[data-theme="light"] .drawer-theme-toggle {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  border-color: #ccc;
}

html[data-theme="light"] .drawer-theme-toggle:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}


/* Light theme */
html[data-theme="light"] .mobile-drawer { background: #ffffff; }
html[data-theme="light"] .drawer-content a:hover { background: #eef1f5; }
html[data-theme="light"] .drawer-login:hover { background: #eef1f5; }
html[data-theme="light"] .drawer-bottom { background: #f1f3f5; }



/* ===== Extra responsive refinements ===== */
@media (max-width: 960px) {
  .hero--simple {
    margin: 24px 12px;
    max-width: none;
  }

  .container {
    padding: 0 16px;
  }

  .cta-inner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: clamp(24px, 7vw, 34px);
  }

  .hero-content p {
    font-size: 16px;
  }

  .chip-grid {
    grid-template-columns: 1fr;
  }

  .t-grid {
    grid-template-columns: 1fr;
  }

  .wlh-footer__inner {
    padding: 8px 0;
  }

  .footer-contact {
    gap: 10px;
  }
}

/* ===== CakePHP CRUD (dark theme) ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
}

thead th {
  background: #121418;
  color: var(--text);
  padding: 12px 14px;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

tbody tr:nth-child(even) td {
  background: var(--surface-2);
}

tbody tr:hover td {
  background: #0f1115;
}

/* Actions column */
.actions a,
.actions form button,
.actions .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #2a2e35;
  background: #15171b;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.actions a:hover,
.actions form button:hover,
.actions .button:hover {
  border-color: var(--accent);
  background: #1a1d22;
}

/* Link accents */
a {
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .15);
}

/* Primary buttons */
button,
input[type="submit"],
input[type="button"],
.button {
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus,
.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 122, 26, .25);
  text-decoration: none;
}

/* Paginator */
.paginator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}

.paginator ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.paginator li a,
.paginator li span {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.paginator li a:hover {
  border-color: var(--accent);
}

.paginator .active a,
.paginator .active span {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Flash messages */
.message {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.message.success {
  border-color: #1f7a1a;
  background: #0c140d;
}

.message.error {
  border-color: #7a1a1a;
  background: #140c0c;
}

.message.warning {
  border-color: #7a5a1a;
  background: #14110b;
}

/* ===================== */
/* THEME TOGGLES */
/* ===================== */

/* Dark is your base; just mirror it here for clarity */
html[data-theme="dark"] {
  --bg: #000000;
  --text: #f6f7f8;
  --muted: #a7adb5;
  --accent: #ff7a1a;
  --surface: #101214;
  --surface-2: #0b0c0f;
  --border: #21242a;
  --radius: 16px;
}

/* Light palette (site-wide), but keep HERO text like dark mode */
html[data-theme="light"] {
  --bg: #fff8e7;
  --text: #0d0f12;
  /* dark text */
  --muted: #667085;
  /* muted */
  --accent: #ff7a1a;
  /* brand */
  --surface: #f7f8fa;
  /* card */
  --surface-2: #f1f3f5;
  /* panel */
  --border: #e2e8f0;
}

/* Smooth swap */
@media (prefers-reduced-motion: no-preference) {

  body.wlh-body,
  .wlh-header,
  .wlh-footer,
  .t-card,
  .chip,
  .wlh-cta-band,
  .hero-bg,
  table,
  thead th,
  tbody td,
  .actions .button,
  .actions a,
  .actions form button,
  .paginator li a,
  .paginator li span,
  .message {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  }
}

/* Light-theme patches for previously hard-coded darks */
html[data-theme="light"] .wlh-header {
  background: rgba(255, 255, 255, 0.6);
  border-bottom-color: var(--border);
}

html[data-theme="light"] .nav-link:hover {
  background: #eef1f5;
}

html[data-theme="light"] .nav-link:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

/* Light mode: keep stronger primary hover for CTA buttons (Book demo, Admin) */
html[data-theme="light"] .nav-cta:hover,
html[data-theme="light"] .nav-cta:focus {
  background: var(--accent);
  color: #000 !important;
  box-shadow: 0 8px 18px rgba(255, 122, 26, .25);
  transform: translateY(-2px);
}

html[data-theme="light"] .hero-bg {
  background: var(--surface-2);
}

html[data-theme="light"] .btn-ghost:hover {
  background: #eef1f5;
}

html[data-theme="light"] .trust-kickers span {
  background: var(--surface);
  border-color: var(--border);
}

html[data-theme="light"] .wlh-cta-band {
  background: #ffffff;
  color: var(--text);
  border-top-color: var(--border);
}

html[data-theme="light"] .wlh-footer {
  background: var(--surface-2);
  color: var(--muted);
}

/* Tables (light) */
html[data-theme="light"] thead th {
  background: #f3f5f7;
}

html[data-theme="light"] tbody tr:nth-child(even) td {
  background: #fafbfc;
}

html[data-theme="light"] tbody tr:hover td {
  background: #f1f4f7;
}

/* Actions (light) */
html[data-theme="light"] .actions a,
html[data-theme="light"] .actions form button,
html[data-theme="light"] .actions .button {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="light"] .actions a:hover,
html[data-theme="light"] .actions form button:hover,
html[data-theme="light"] .actions .button:hover {
  background: #f7f9fb;
  border-color: var(--accent);
}

/* Paginator (light) */
html[data-theme="light"] .paginator li a,
html[data-theme="light"] .paginator li span {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

/* Flash (light) */
html[data-theme="light"] .message {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="light"] .message.success {
  border-color: #b6e3b6;
  background: #effaf0;
}

html[data-theme="light"] .message.error {
  border-color: #f2b5b5;
  background: #fff0f0;
}

html[data-theme="light"] .message.warning {
  border-color: #f1d19b;
  background: #fff7ea;
}

/* Keep HERO text like dark mode in light theme */
html[data-theme="light"] .hero-content h1 {
  color: #f6f7f8;
}

html[data-theme="light"] .hero-content p {
  color: #a7adb5;
}

/* === Fixes for LIGHT mode visibility === */

/* 1) Header nav text + hamburger bars */
html[data-theme="light"] .nav-link {
  color: #0d0f12;
  /* readable on white */
}

html[data-theme="light"] .nav-toggle span {
  background: #0d0f12;
  /* hamburger lines */
}

/* keep CTA readable (already black) */
html[data-theme="light"] .nav-cta {
  color: #000 !important;
}

/* 2) Testimonials text on light background */
html[data-theme="light"] .t-card blockquote {
  color: #111827 !important;
  /* strong dark text */
}

html[data-theme="light"] .t-card figcaption {
  color: #334155 !important;
  /* muted dark caption */
}

/* (Optional) a touch more contrast for the card itself */
html[data-theme="light"] .t-card {
  background: var(--surface);
  border-color: var(--border);
}

/* Demo Request page title theming */
html[data-theme="dark"] .demo-info h1 {
  color: var(--accent);
}

html[data-theme="light"] .demo-info h1 {
  color: #000;
}

/* Light mode: make the hamburger drawer light */
@media (max-width: 960px) {
  html[data-theme="light"] .wlh-nav {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  }

  html[data-theme="light"] .wlh-nav .nav-link {
    color: #0d0f12;
  }

  html[data-theme="light"] .wlh-nav .nav-link:hover {
    background: #eef1f5;
  }

  /* keep CTA readable */
  html[data-theme="light"] .wlh-nav .nav-cta {
    color: #000 !important;
  }
}



/* === User menu (icon + dropdown) === */
.user-menu {
  position: relative;
  display: inline-flex;
}

.user-menu__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.user-menu__button:hover,
.user-menu__button[aria-expanded="true"] {
  background: #15171b;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

/* === FIX: Light mode user icon hover visibility === */
html[data-theme="light"] .user-menu__button {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="light"] .user-menu__button:hover,
html[data-theme="light"] .user-menu__button[aria-expanded="true"] {
  background: #f1f3f5; /* light grey hover */
  border-color: var(--accent);
  color: #000; /* dark icon for visibility */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* === FIX: Light mode dropdown panel and hover === */
html[data-theme="light"] .user-menu__panel {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .user-menu__item {
  color: #0d0f12;
}

html[data-theme="light"] .user-menu__item:hover,
html[data-theme="light"] .user-menu__item:focus {
  background: #eef1f5; /* soft grey hover */
  color: #000; /* strong text visibility */
}



/* Panel */
.user-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}

.user-menu__panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu__item {
  display: flex;
  align-items: center;     /* ✅ vertically centers icon + text */
  gap: 8px;                /* consistent spacing */
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--text);
  line-height: 1.4;        /* balanced vertical rhythm */
}

.user-menu__item i {
  font-size: 15px;
  width: 18px;             /* ensures consistent icon width */
  text-align: center;
  margin-right: 2px;       /* fine-tune icon spacing */
  color: inherit;
}

.user-menu__item:hover,
.user-menu__item:focus {
  background: #15171b;
  outline: none;
  color: var(--accent);
}

/* Light mode hover */
html[data-theme="light"] .user-menu__item:hover,
html[data-theme="light"] .user-menu__item:focus {
  background: #eef1f5;
  color: #000;
}


.user-menu__separator {
  height: 1px;
  background: var(--border);
  margin: 6px 6px;
}

/* Switch base */
.wlh-switch {
  --switch-width: 48px;
  --switch-height: 26px;
  --thumb-size: 22px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--surface);
  border-radius: var(--switch-height);
  padding: 2px;
  cursor: pointer;
  transition: background .3s ease, box-shadow .3s ease;
}

/* VISUAL STATE DRIVEN BY PAGE THEME (no flicker on aria-sync) */
html[data-theme="light"] .wlh-switch {
  background: var(--surface);
  box-shadow: none;
}

html[data-theme="dark"] .wlh-switch {
  background: var(--accent, #f97316);
  box-shadow: 0 0 6px 2px var(--accent, #f97316);
}

/* Thumb position also follows page theme */
.wlh-switch__thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform .3s ease, background .3s ease;
  will-change: transform;
}

html[data-theme="light"] .wlh-switch .wlh-switch__thumb {
  transform: translateX(0);
}

html[data-theme="dark"] .wlh-switch .wlh-switch__thumb {
  transform: translateX(calc(var(--switch-width) - var(--thumb-size) - 4px));
}

/* Icons: follow page theme at first paint */
.icon-sun,
.icon-moon {
  width: 14px;
  height: 14px;
  position: absolute;
  opacity: 0;
  transition: opacity .3s ease;
}

.icon-sun {
  color: #facc15;
}

.icon-moon {
  color: #fff;
}

html[data-theme="light"] .wlh-switch .icon-sun {
  opacity: 1;
}

html[data-theme="light"] .wlh-switch .icon-moon {
  opacity: 0;
}

html[data-theme="dark"] .wlh-switch .icon-sun {
  opacity: 0;
}

html[data-theme="dark"] .wlh-switch .icon-moon {
  opacity: 1;
}

/* Kill any animation during first frame */
html.no-theme-transitions .wlh-switch,
html.no-theme-transitions .wlh-switch *,
html.no-theme-transitions .icon-sun,
html.no-theme-transitions .icon-moon {
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* === FIX: Remove underline + add orange glow on hover (Book a Demo) === */
.nav-cta--outline::after {
  content: none !important; /* no underline */
}

.nav-cta--outline:hover::after {
  content: none !important;
}

/* === FINAL FIX: Ensure Book a Demo shows orange glow on hover === */
.nav-cta--outline:hover {
  background: transparent !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.5) !important; /* stronger visible glow */
}

/* === FIX: Remove hover background/shadow from normal nav links (keep underline) === */
.wlh-nav .nav-link:not(.nav-cta):hover {
  background: transparent !important;  /* no dark background */
  box-shadow: none !important;         /* no shadow */
  transform: none !important;          /* no lift */
  color: var(--accent);                /* optional tint on hover */
}

/* Optional: keep same behaviour in light mode */
html[data-theme="light"] .wlh-nav .nav-link:not(.nav-cta):hover {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--accent);
}
