/* SmartMusika POS - Modern Design System & Dual-Theme Engine */
:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  --primary-950: #0f172a;

  --accent-orange: #ea580c;
  --accent-orange-light: #f97316;
  --accent-amber: #f59e0b;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-sans);

  /* Light Theme Variables */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --input-bg: #ffffff;
}

/* Dark Theme Variables */
html.dark {
  --bg-page: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-subtle: #1e293b;
  --border-color: #1e293b;
  --border-subtle: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --nav-bg: rgba(15, 23, 42, 0.95);
  --input-bg: #1e293b;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

/* Smooth transition when toggling themes */
html.theme-transition,
html.theme-transition *,
html.theme-transition *:before,
html.theme-transition *:after {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
  transition-delay: 0 !important;
}

/* Custom Scrollbar - Light */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Custom Scrollbar - Dark */
html.dark ::-webkit-scrollbar-track {
  background: #090d16;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.gradient-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Glassmorphism Utilities */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

html.dark .glass {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(234, 88, 12, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid #cbd5e1;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.dark .btn-secondary {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

html.dark .btn-secondary:hover {
  background: #334155;
  border-color: #475569;
}

/* Card Hover Elevation */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html.dark .card-hover:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.25);
}

/* Anti-Spam Trap: Honeypot field invisible to humans, caught by bots */
.antispam-trap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 250ms ease,
              box-shadow 250ms ease;
  animation: whatsapp-periodic-bounce 4s ease-in-out infinite;
  box-sizing: border-box;
}

.floating-whatsapp-btn i {
  font-size: 28px;
  color: #ffffff !important;
  line-height: 1;
}

.floating-whatsapp-btn:hover,
.floating-whatsapp-btn:focus-visible {
  background-color: #20ba5a;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
}

.floating-whatsapp-btn:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}

@keyframes whatsapp-periodic-bounce {
  0%, 85%, 100% {
    transform: translateY(0);
  }
  90% {
    transform: translateY(-6px);
  }
  95% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp-btn {
    animation: none !important;
  }
}

/* Hero background pattern */
.hero-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ==========================================================================
   COMPREHENSIVE DARK THEME RULES (NO WHITE BACKGROUNDS IN DARK MODE)
   ========================================================================== */
html.dark,
html.dark body {
  background-color: #090d16 !important;
  color: #f8fafc !important;
}

html.dark main {
  background-color: #090d16 !important;
}

/* Section background overrides */
html.dark .bg-white {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

html.dark .bg-slate-50,
html.dark .bg-gray-50 {
  background-color: #090d16 !important;
  color: #f8fafc !important;
}

html.dark .bg-slate-100,
html.dark .bg-gray-100 {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

html.dark .bg-slate-200,
html.dark .bg-gray-200 {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

/* Semantic colored boxes */
html.dark .bg-emerald-50 {
  background-color: rgba(6, 78, 59, 0.35) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #a7f3d0 !important;
}

html.dark .bg-blue-50 {
  background-color: rgba(30, 58, 138, 0.35) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #bfdbfe !important;
}

html.dark .bg-orange-50 {
  background-color: rgba(124, 45, 18, 0.35) !important;
  border-color: rgba(234, 88, 12, 0.4) !important;
  color: #fed7aa !important;
}

html.dark .bg-purple-50 {
  background-color: rgba(88, 28, 135, 0.35) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  color: #e9d5ff !important;
}

html.dark .bg-rose-50 {
  background-color: rgba(136, 19, 55, 0.35) !important;
  border-color: rgba(244, 63, 94, 0.4) !important;
  color: #fecdd3 !important;
}

/* Text Colors */
html.dark .text-slate-900,
html.dark .text-gray-900 {
  color: #f8fafc !important;
}

html.dark .text-slate-800,
html.dark .text-gray-800 {
  color: #f1f5f9 !important;
}

html.dark .text-slate-700,
html.dark .text-gray-700 {
  color: #e2e8f0 !important;
}

html.dark .text-slate-600,
html.dark .text-gray-600 {
  color: #cbd5e1 !important;
}

html.dark .text-slate-500,
html.dark .text-gray-500 {
  color: #94a3b8 !important;
}

html.dark .text-emerald-900,
html.dark .text-emerald-800 {
  color: #a7f3d0 !important;
}

html.dark .text-blue-900,
html.dark .text-blue-800 {
  color: #bfdbfe !important;
}

html.dark .text-orange-900,
html.dark .text-orange-800 {
  color: #fed7aa !important;
}

/* Borders */
html.dark .border-slate-200,
html.dark .border-gray-200 {
  border-color: #334155 !important;
}

html.dark .border-slate-300,
html.dark .border-gray-300 {
  border-color: #334155 !important;
}

html.dark .divide-slate-200> :not([hidden])~ :not([hidden]),
html.dark .divide-gray-200> :not([hidden])~ :not([hidden]) {
  border-color: #334155 !important;
}

/* Form Inputs in Dark Mode */
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="tel"],
html.dark input[type="password"],
html.dark input[type="number"],
html.dark select,
html.dark textarea {
  background-color: #334155 !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  border-color: #ea580c !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25) !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}

/* Navbar & Mobile Menu in Dark Mode */
html.dark #navbar {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-bottom-color: #334155 !important;
}

html.dark #mobile-menu {
  background-color: #0f172a !important;
  border-bottom-color: #334155 !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

html.dark .theme-toggle-btn {
  background-color: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

html.dark .theme-toggle-btn:hover {
  background-color: #334155;
  border-color: #475569;
}

/* ============================================================
   UNIVERSAL DARK MODE OVERRIDES (ZERO WHITE BACKGROUNDS GUARANTEE)
   ============================================================ */
html.dark,
html.dark body {
  background-color: #020617 !important;
  color: #f8fafc !important;
}

html.dark .bg-white {
  background-color: #0f172a !important;
}

html.dark .bg-slate-50,
html.dark .bg-gray-50 {
  background-color: #020617 !important;
}

html.dark .bg-slate-100,
html.dark .bg-gray-100 {
  background-color: #334155 !important;
}

html.dark .bg-slate-200,
html.dark .bg-gray-200 {
  background-color: #334155 !important;
}

html.dark .border-slate-200,
html.dark .border-slate-100,
html.dark .border-gray-200,
html.dark .border-gray-100 {
  border-color: #334155 !important;
}

html.dark .border-slate-300,
html.dark .border-gray-300 {
  border-color: #334155 !important;
}

html.dark .text-slate-900,
html.dark .text-gray-900 {
  color: #f8fafc !important;
}

html.dark .text-slate-800,
html.dark .text-gray-800 {
  color: #f1f5f9 !important;
}

html.dark .text-slate-700,
html.dark .text-gray-700 {
  color: #e2e8f0 !important;
}

html.dark .text-slate-600,
html.dark .text-gray-600 {
  color: #cbd5e1 !important;
}

html.dark .text-slate-500,
html.dark .text-gray-500 {
  color: #94a3b8 !important;
}

html.dark .shadow-sm,
html.dark .shadow-md,
html.dark .shadow-lg,
html.dark .shadow-xl {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   Modern Homepage & Navigation Styles
   ========================================================================== */

/* 1. Clean Navigation Link Hover with Smooth Center-Outward Underline & Text Transition */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #334155;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.25rem 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  outline: none;
  cursor: pointer;
  transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-link i {
  color: inherit;
  transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .nav-link,
.dark .nav-link {
  color: #cbd5e1;
  background: transparent !important;
  background-color: transparent !important;
}

/* Thin 2px orange underline directly underneath text without layout shift */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-orange, #ea580c) !important;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none;
}

/* Hover state: ONLY text color changes to orange and underline animates from center outward */
.nav-link:hover {
  color: var(--accent-orange, #ea580c) !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html.dark .nav-link:hover,
.dark .nav-link:hover {
  color: #fb923c !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

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

/* Active Page State: subtle orange text & persistent underline */
.nav-link.active {
  color: var(--accent-orange, #ea580c) !important;
  font-weight: 600;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html.dark .nav-link.active,
.dark .nav-link.active {
  color: #fb923c !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.nav-link.active::after {
  transform: scaleX(1) !important;
}

/* 3. Global Button Hover Interaction: Physical Upward Lift (2-4px) + Elevation Shadow */
.btn-primary,
.btn-secondary,
.btn-shop-login,
.btn-lift,
a.btn-primary,
button.btn-primary,
a[class*="bg-orange-600"],
button[class*="bg-orange-600"],
a[class*="bg-orange-500"],
button[class*="bg-orange-500"],
a[class*="btn-primary"],
button[type="submit"] {
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 200ms ease,
    border-color 200ms ease !important;
  will-change: transform;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-lift:hover,
a.btn-primary:hover,
button.btn-primary:hover,
a[class*="bg-orange-600"]:hover,
button[class*="bg-orange-600"]:hover,
a[class*="bg-orange-500"]:hover,
button[class*="bg-orange-500"]:hover,
a[class*="btn-primary"]:hover,
button[type="submit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.2), 0 4px 8px -2px rgba(0, 0, 0, 0.1) !important;
}

/* Orange shadow accent for primary buttons on hover */
a[class*="bg-orange-600"]:hover,
button[class*="bg-orange-600"]:hover,
a[class*="bg-orange-500"]:hover,
button[class*="bg-orange-500"]:hover,
.btn-primary:hover {
  box-shadow: 0 10px 24px -3px rgba(234, 88, 12, 0.35), 0 4px 8px -2px rgba(234, 88, 12, 0.2) !important;
}

/* 4. Standalone Feature / Capability Bar Component */
.capability-strip-container {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

html.dark .capability-strip-container {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: default;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.375rem 0.625rem;
  border-radius: 0.625rem;
}

.capability-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: rgba(241, 245, 249, 0.85);
  transition: transform 200ms ease, color 200ms ease, background-color 200ms ease;
}

html.dark .capability-icon {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.7);
}

.capability-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  transition: color 200ms ease;
}

html.dark .capability-text {
  color: #e2e8f0;
}

/* Subtle capability item hover interaction: icon lifts 2px and becomes orange, text turns orange */
.capability-item:hover .capability-icon {
  color: var(--accent-orange, #ea580c);
  background: rgba(234, 88, 12, 0.1);
  transform: translateY(-2px);
}

.capability-item:hover .capability-text {
  color: var(--accent-orange, #ea580c);
}

/* 5. Floating Final CTA Panel - Prominent 3rem Rounded Corners & Elevation */
.floating-cta-panel {
  border-radius: 3rem !important;
  box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(249, 115, 22, 0.25) !important;
  border: 1px solid rgba(51, 65, 85, 0.7) !important;
}

/* Hide scrollbar for clean horizontal containers */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}



/* ================================================================
   SMARTMUSIKA NAVBAR — PREMIUM FIXED NAVIGATION + SCROLL TRANSITION
   ================================================================ */

:root {
  --sm-orange:         #EA580C;
  --sm-orange-hover:   #F97316;
  --sm-navy:           #172A3A;
  --sm-birch:          #F6EADB;
  --sm-birch-beige:    #EBD8BE;
  --sm-warm-white:     #FFFBF5;
  --sm-border-light:   #E5E7EB;
  --sm-nav-height:     78px;
  --sm-nav-h-scrolled: 62px;
  --sm-nav-transition: 250ms ease-out;
}

/* ── Base navbar: permanently fixed at top, transparent initially ─ */
.navbar,
.sm-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;

  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  transition:
    background 250ms ease-out,
    backdrop-filter 250ms ease-out,
    -webkit-backdrop-filter 250ms ease-out,
    border-color 250ms ease-out,
    box-shadow 250ms ease-out,
    padding 250ms ease-out;
}

/* ── Scrolled state: #FFFBF5/white floating navigation surface ──── */
.navbar.scrolled,
.sm-navbar.scrolled {
  background: rgba(255, 251, 245, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid #E5E7EB !important;
  box-shadow: 0 4px 20px rgba(23, 42, 58, 0.08) !important;
}

/* Dark mode scrolled state */
html.dark .navbar.scrolled,
html.dark .sm-navbar.scrolled {
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

/* Mobile opened state */
.navbar.mobile-open,
.sm-navbar.mobile-open {
  background: #FFFBF5 !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid #E5E7EB !important;
}

html.dark .navbar.mobile-open,
html.dark .sm-navbar.mobile-open {
  background: #0F172A !important;
  border-bottom-color: rgba(51, 65, 85, 0.8) !important;
}

/* ── Inner row height / subtle shrink on scroll ────────────────── */
.sm-navbar-inner {
  height: var(--sm-nav-height);
  transition: height 250ms ease-out;
}

.navbar.scrolled .sm-navbar-inner,
.sm-navbar.scrolled .sm-navbar-inner {
  height: var(--sm-nav-h-scrolled);
}

/* ── Logo & Brand Link ──────────────────────────────────────────── */
.sm-brand-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  transform-origin: left center;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

/* On hover: BOTH the cart icon AND the SmartMusika text scale up together simultaneously */
.sm-brand-link:hover {
  transform: scale(1.05) !important;
}

.sm-navbar .sm-logo-icon,
.navbar .sm-logo-icon {
  transition: height 250ms ease-out, width 250ms ease-out;
}

.navbar.scrolled .sm-logo-icon,
.sm-navbar.scrolled .sm-logo-icon {
  height: 2.35rem !important;
  width: auto;
}

.sm-navbar .sm-logo-wordmark,
.navbar .sm-logo-wordmark {
  transition: transform 250ms ease-out;
}

.navbar.scrolled .sm-logo-wordmark,
.sm-navbar.scrolled .sm-logo-wordmark {
  transform: scale(0.96);
  transform-origin: left center;
}

/* Logo "Smart" text color transition */
.sm-logo-smart {
  transition: color 250ms ease-out;
}

/* Before scroll: WHITE text */
.navbar:not(.scrolled) .sm-logo-smart,
.sm-navbar:not(.scrolled) .sm-logo-smart {
  color: #FFFFFF !important;
}

/* Once scrolled: #172A3A (dark navy/black) */
.navbar.scrolled .sm-logo-smart,
.sm-navbar.scrolled .sm-logo-smart {
  color: #172A3A !important;
}

html.dark .navbar.scrolled .sm-logo-smart,
html.dark .sm-navbar.scrolled .sm-logo-smart {
  color: #FFFFFF !important;
}

/* When mobile menu is opened */
.navbar.mobile-open .sm-logo-smart,
.sm-navbar.mobile-open .sm-logo-smart {
  color: #172A3A !important;
}

html.dark .navbar.mobile-open .sm-logo-smart,
html.dark .sm-navbar.mobile-open .sm-logo-smart {
  color: #FFFFFF !important;
}

/* ── Navigation links ───────────────────────────────────────────── */
.sm-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  letter-spacing: -0.01em;
  transition: color 250ms ease-out;
}

/* BEFORE SCROLL: ALL LINKS AND TEXT ARE WHITE */
.navbar:not(.scrolled) .sm-nav-link,
.sm-navbar:not(.scrolled) .sm-nav-link {
  color: #FFFFFF !important;
}

.navbar:not(.scrolled) .sm-nav-link:hover,
.sm-navbar:not(.scrolled) .sm-nav-link:hover {
  color: #EA580C !important;
}

.navbar:not(.scrolled) .sm-nav-link.active,
.sm-navbar:not(.scrolled) .sm-nav-link.active {
  color: #EA580C !important;
}

.navbar:not(.scrolled) .sm-nav-link .ext-arrow,
.sm-navbar:not(.scrolled) .sm-nav-link .ext-arrow {
  color: #FFFFFF;
  opacity: 0.85;
}

/* ONCE SCROLLED: ALL LINKS AND TEXT TRANSITION TO #172A3A */
.navbar.scrolled .sm-nav-link,
.sm-navbar.scrolled .sm-nav-link {
  color: #172A3A !important;
}

.navbar.scrolled .sm-nav-link:hover,
.sm-navbar.scrolled .sm-nav-link:hover {
  color: #EA580C !important;
}

.navbar.scrolled .sm-nav-link.active,
.sm-navbar.scrolled .sm-nav-link.active {
  color: #EA580C !important;
  font-weight: 600 !important;
}

.navbar.scrolled .sm-nav-link .ext-arrow,
.sm-navbar.scrolled .sm-nav-link .ext-arrow {
  color: #172A3A;
  opacity: 0.65;
}

/* Dark mode overrides for scrolled */
html.dark .navbar.scrolled .sm-nav-link,
html.dark .sm-navbar.scrolled .sm-nav-link {
  color: #F1F5F9 !important;
}

html.dark .navbar.scrolled .sm-nav-link:hover,
html.dark .sm-navbar.scrolled .sm-nav-link:hover,
html.dark .navbar.scrolled .sm-nav-link.active,
html.dark .sm-navbar.scrolled .sm-nav-link.active {
  color: #FB923C !important;
}

/* Subtle animated underline: starts at 0%, expands to 100% */
.sm-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: #EA580C;
  border-radius: 999px;
  transition: transform 180ms ease-out;
}

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

html.dark .sm-nav-link::after {
  background: #FB923C;
}

/* External link arrow */
.sm-nav-link .ext-arrow {
  margin-left: 0.35rem;
  font-size: 0.6875rem;
  transition: opacity 250ms ease, transform 180ms ease, color 250ms ease;
}

.sm-nav-link:hover .ext-arrow {
  opacity: 1;
  color: #EA580C !important;
  transform: translate(1px, -1px);
}

/* ── CTA Buttons ────────────────────────────────────────────────── */

/* 1. Shop Login Button (Outlined Rounded Pill) */
.btn-shop-login {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 2.5rem !important;
  padding: 0 1.35rem !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition:
    background 250ms ease-out,
    color 250ms ease-out,
    border-color 250ms ease-out,
    box-shadow 250ms ease-out,
    transform 200ms ease-out !important;
}

/* Before scroll: White text & white outline */
.navbar:not(.scrolled) .btn-shop-login,
.sm-navbar:not(.scrolled) .btn-shop-login {
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  background: transparent !important;
}

.navbar:not(.scrolled) .btn-shop-login:hover,
.sm-navbar:not(.scrolled) .btn-shop-login:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-1px) !important;
}

/* Scrolled: #172A3A text & #172A3A outline */
.navbar.scrolled .btn-shop-login,
.sm-navbar.scrolled .btn-shop-login {
  color: #172A3A !important;
  border: 1.5px solid #172A3A !important;
  background: transparent !important;
}

.navbar.scrolled .btn-shop-login:hover,
.sm-navbar.scrolled .btn-shop-login:hover {
  background: #172A3A !important;
  color: #FFFFFF !important;
  border-color: #172A3A !important;
  box-shadow: 0 4px 14px rgba(23, 42, 58, 0.18) !important;
  transform: translateY(-1px) !important;
}

html.dark .navbar.scrolled .btn-shop-login,
html.dark .sm-navbar.scrolled .btn-shop-login {
  color: #F1F5F9 !important;
  border-color: rgba(241, 245, 249, 0.45) !important;
}

html.dark .navbar.scrolled .btn-shop-login:hover,
html.dark .sm-navbar.scrolled .btn-shop-login:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-color: #F1F5F9 !important;
}

/* 2. Get Started Button (Solid Orange Rounded Pill) */
.btn-get-started {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  height: 2.5rem !important;
  padding: 0 1.35rem !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  background: #EA580C !important;
  border: 1.5px solid #EA580C !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.25) !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition:
    background 200ms ease-out,
    border-color 200ms ease-out,
    box-shadow 200ms ease-out,
    transform 200ms ease-out !important;
}

.btn-get-started:hover {
  background: #F97316 !important;
  border-color: #F97316 !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.38) !important;
  transform: translateY(-2px) !important;
}

.btn-get-started .btn-arrow {
  display: inline-block;
  font-size: 0.75rem;
  transition: transform 200ms ease-out;
}

.btn-get-started:hover .btn-arrow {
  transform: translateX(3px);
}

/* ── Mobile Drawer Menu ─────────────────────────────────────────── */
.sm-mobile-menu {
  display: none;
  background: #FFFBF5;
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 10px 30px rgba(23, 42, 58, 0.1);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 280ms ease;
}

html.dark .sm-mobile-menu {
  background: #0F172A;
  border-top-color: rgba(30, 41, 59, 0.8);
}

.sm-mobile-menu.open {
  display: block;
  max-height: 600px;
  opacity: 1;
}

/* Mobile menu items are always dark on light #FFFBF5 drawer */
.sm-mobile-menu a,
.sm-mobile-menu button {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease, color 150ms ease, background 150ms ease;
}

.sm-mobile-menu.open a,
.sm-mobile-menu.open button {
  opacity: 1;
  transform: translateY(0);
}

.sm-mobile-menu.open a:nth-child(1) { transition-delay: 30ms; }
.sm-mobile-menu.open a:nth-child(2) { transition-delay: 65ms; }
.sm-mobile-menu.open a:nth-child(3) { transition-delay: 100ms; }
.sm-mobile-menu.open a:nth-child(4) { transition-delay: 130ms; }
.sm-mobile-menu.open a:nth-child(5) { transition-delay: 160ms; }
.sm-mobile-menu.open a:nth-child(6) { transition-delay: 190ms; }
.sm-mobile-menu.open a:nth-child(7) { transition-delay: 215ms; }
.sm-mobile-menu.open button         { transition-delay: 240ms; }

/* ── Hamburger button ───────────────────────────────────────────── */
.sm-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: background 200ms ease, color 250ms ease;
}

/* Before scroll: White hamburger */
.navbar:not(.scrolled) .sm-hamburger,
.sm-navbar:not(.scrolled) .sm-hamburger {
  color: #FFFFFF !important;
}

.navbar:not(.scrolled) .sm-hamburger:hover,
.sm-navbar:not(.scrolled) .sm-hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #EA580C !important;
}

/* Scrolled: #172A3A hamburger */
.navbar.scrolled .sm-hamburger,
.sm-navbar.scrolled .sm-hamburger {
  color: #172A3A !important;
}

.navbar.scrolled .sm-hamburger:hover,
.sm-navbar.scrolled .sm-hamburger:hover {
  background: rgba(23, 42, 58, 0.07);
  color: #EA580C !important;
}

/* When mobile menu is opened */
.navbar.mobile-open .sm-hamburger,
.sm-navbar.mobile-open .sm-hamburger {
  color: #172A3A !important;
}

html.dark .navbar.scrolled .sm-hamburger,
html.dark .sm-navbar.scrolled .sm-hamburger,
html.dark .navbar.mobile-open .sm-hamburger,
html.dark .sm-navbar.mobile-open .sm-hamburger {
  color: #E2E8F0 !important;
}

.sm-hamburger-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.sm-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 260ms ease, opacity 180ms ease, width 260ms ease;
  transform-origin: center;
}

.sm-hamburger.is-open .sm-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sm-hamburger.is-open .sm-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.sm-hamburger.is-open .sm-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Accessibility & Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .sm-navbar,
  .sm-navbar-inner,
  .sm-nav-link,
  .sm-nav-link::after,
  .sm-nav-link .ext-arrow,
  .btn-shop-login,
  .btn-get-started,
  .btn-get-started .btn-arrow,
  .sm-brand-link,
  .sm-logo-icon,
  .sm-logo-wordmark,
  .sm-logo-smart,
  .sm-mobile-menu,
  .sm-mobile-menu a,
  .sm-mobile-menu button,
  .sm-hamburger,
  .sm-bar {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}
