/* ══════════════════════════════════════════════════════════
   AXITRAQ Light Theme Override
   Specificity: html[data-theme="light"] (0,1,1) beats :root (0,0,1)
   so these override inline <style> variables without !important.
   ══════════════════════════════════════════════════════════ */

html[data-theme="light"] {
  --dark-1: #ffffff;
  --dark-2: #f5f5f8;
  --dark-3: #ededf2;
  --dark-4: #e4e4ec;
  --dark-5: #dbdbe4;
  --dark-card: rgba(0,0,0,0.025);
  --border: rgba(0,0,0,0.09);
  --border-gold: rgba(180,140,40,0.25);
  --gold-glow: rgba(201,168,76,0.10);
  --text: #1a1a2e;
  --text-secondary: #44445a;
  --text-muted: #7a7a90;
  --white: #111120;
  --gold: #b8953f;
  --gold-light: #c9a84c;
  --gold-dark: #a0812e;
}

/* ── Nav glass background ── */
html[data-theme="light"] .nav {
  background: rgba(255,255,255,0.92);
  border-bottom-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] .nav.scrolled {
  background: rgba(255,255,255,0.88);
  border-bottom-color: rgba(0,0,0,0.08);
}
/* Home page: transparent before scroll */
html[data-theme="light"] body:has(.hero) .nav:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}

/* ── Mobile menu ── */
html[data-theme="light"] .mobile-menu {
  background: rgba(255,255,255,0.97);
}

/* ── Hero carousel overlay ── */
html[data-theme="light"] .hero-carousel::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.8) 50%, var(--dark-1) 100%);
}

/* ── Hero subtle grid lines ── */
html[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

/* ── Hero indicators ── */
html[data-theme="light"] .hero-indicators button {
  background: rgba(0,0,0,0.2);
}
html[data-theme="light"] .hero-indicators button.active {
  background: var(--gold);
}

/* ── Feature card hover ── */
html[data-theme="light"] .feature-card:hover {
  background: rgba(0,0,0,0.03);
}

/* ── Screen panel backgrounds ── */
html[data-theme="light"] .screen-panel {
  background: linear-gradient(135deg, var(--dark-3), var(--dark-5));
}
html[data-theme="light"] .screen-feat {
  background: rgba(0,0,0,0.03);
}

/* ── Device frame ── */
html[data-theme="light"] .device-frame {
  box-shadow: 0 24px 80px rgba(0,0,0,0.12);
}

/* ── Feature visual images ── */
html[data-theme="light"] .feature-visual img {
  box-shadow: 0 16px 60px rgba(0,0,0,0.12);
}

/* ── Plan limits borders ── */
html[data-theme="light"] .plan-limits li {
  border-bottom-color: rgba(0,0,0,0.06);
}

/* ── Comparison table ── */
html[data-theme="light"] .comparison-table tr:hover td {
  background: rgba(0,0,0,0.02);
}

/* ── Chat mockup ── */
html[data-theme="light"] .chat-msg.dash {
  background: rgba(0,0,0,0.04);
}

/* ── Teaser tags ── */
html[data-theme="light"] .teaser-w-tags span {
  background: rgba(0,0,0,0.04);
}

/* ── Slider thumb border ── */
html[data-theme="light"] .wp-slider-input::-webkit-slider-thumb {
  border-color: #fff;
}
html[data-theme="light"] .wp-slider-input::-moz-range-thumb {
  border-color: #fff;
}

/* ── Modal overlay ── */
html[data-theme="light"] .modal-overlay {
  background: rgba(0,0,0,0.4);
}

/* ── Gold gradient text stays readable ── */
html[data-theme="light"] .hero h1 .highlight,
html[data-theme="light"] .page-hero h1 .highlight {
  background: linear-gradient(135deg, #a0812e, #b8953f);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Footer stays dark ── */
html[data-theme="light"] .footer {
  --dark-1: #06060a;
  --dark-2: #0a0a12;
  --dark-3: #10101a;
  --dark-4: #161622;
  --dark-card: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.07);
  --border-gold: rgba(201,168,76,0.2);
  --text: #e8e8ec;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  --white: #ffffff;
  --gold: #c9a84c;
  background: #06060a;
  border-top-color: rgba(255,255,255,0.07);
}

/* ── Hero wrapper stays dark in light theme (photo background + transparent overlays) ── */
html[data-theme="light"] .hero-wrapper {
  background: #06060a;
  --white: #ffffff;
  --text: #e8e8ec;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  --border: rgba(255,255,255,0.07);
  --dark-card: rgba(255,255,255,0.03);
  --gold: #c9a84c;
  --gold-light: #e0c35a;
  --gold-glow: rgba(201,168,76,0.15);
  --border-gold: rgba(201,168,76,0.2);
}

/* ── Image overlay text (always on dark gradient, keep light) ── */
html[data-theme="light"] .industry-overlay h4 {
  color: #ffffff;
}
html[data-theme="light"] .industry-overlay p {
  color: #c0c0cc;
}

/* ── Form inputs ── */
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea,
html[data-theme="light"] .form-group select {
  background: #fff;
  color: #1a1a2e;
  border-color: rgba(0,0,0,0.12);
}
html[data-theme="light"] .form-group input::placeholder,
html[data-theme="light"] .form-group textarea::placeholder {
  color: #999;
}

/* ── Page hero radial gradient ── */
html[data-theme="light"] .page-hero::before {
  background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(201,168,76,0.06) 0%, transparent 60%);
}

/* ── Feature visual glow ── */
html[data-theme="light"] .feature-visual .glow {
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.04) 0%, transparent 70%);
}

/* ── btn-gold text on light ── */
html[data-theme="light"] .btn-gold {
  color: #fff;
}
html[data-theme="light"] .plan-btn-gold {
  color: #fff;
}

/* ── btn-white on light ── */
html[data-theme="light"] .btn-white {
  background: #111120;
  color: #fff;
}

/* ── App store badges ── */
html[data-theme="light"] .app-store-btn {
  background: #111 !important;
  border-color: rgba(0,0,0,0.15) !important;
}

/* ══════════════════════════════════════════════════════════
   Logo Image Switching
   ══════════════════════════════════════════════════════════ */

.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.footer-brand .nav-logo img {
  height: 38px;
}

/* Default (dark theme): show dark logo, hide light */
.logo-light { display: none !important; }
.logo-dark  { display: block !important; }

/* Light theme: swap */
html[data-theme="light"] .logo-dark  { display: none !important; }
html[data-theme="light"] .logo-light { display: block !important; }

/* Footer always stays dark, so always show dark logo there */
html[data-theme="light"] .footer .logo-dark  { display: block !important; }
html[data-theme="light"] .footer .logo-light { display: none !important; }

/* ══════════════════════════════════════════════════════════
   Theme Toggle Button
   ══════════════════════════════════════════════════════════ */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Show sun in dark mode, moon in light mode */
html[data-theme="dark"] .theme-toggle .icon-moon,
html:not([data-theme]) .theme-toggle .icon-moon {
  display: none;
}
html[data-theme="dark"] .theme-toggle .icon-sun,
html:not([data-theme]) .theme-toggle .icon-sun {
  display: block;
}
html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* Mobile menu toggle */
.mobile-theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  transition: color 0.2s;
}
.mobile-theme-toggle:hover {
  color: var(--gold);
}
.mobile-theme-toggle svg {
  width: 20px;
  height: 20px;
}
html[data-theme="dark"] .mobile-theme-toggle .icon-moon,
html:not([data-theme]) .mobile-theme-toggle .icon-moon {
  display: none;
}
html[data-theme="light"] .mobile-theme-toggle .icon-sun {
  display: none;
}

/* ── Smooth colour transition ── */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
