/* ===================================================================
   SITOON — Premium Industrial Design System v2
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Anti-Flash: hide i18n elements until translations applied ---- */
html:not(.i18n-ready) [data-i18n],
html:not(.i18n-ready) [data-i18n-html],
html:not(.i18n-ready) [data-i18n-placeholder],
html:not(.i18n-ready) [data-i18n-attr] {
  visibility: hidden;
}

/* ---- Design Tokens ---- */
:root {
  /* Brand */
  --navy-900: #0a1628;
  --navy-800: #0f1f3a;
  --navy-700: #15294d;
  --navy-600: #1a3359;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --steel-50:  #f8fafc;
  --steel-100: #f1f5f9;
  --steel-200: #e2e8f0;
  --steel-300: #cbd5e1;
  --steel-400: #94a3b8;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06), 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(10, 22, 40, 0.08), 0 2px 4px -2px rgba(10, 22, 40, 0.04);
  --shadow-lg: 0 12px 28px -8px rgba(10, 22, 40, 0.12), 0 4px 8px -4px rgba(10, 22, 40, 0.04);
  --shadow-xl: 0 20px 40px -12px rgba(10, 22, 40, 0.16), 0 8px 16px -8px rgba(10, 22, 40, 0.06);
  --shadow-2xl: 0 32px 64px -16px rgba(10, 22, 40, 0.2), 0 12px 24px -12px rgba(10, 22, 40, 0.08);
  --shadow-orange: 0 12px 28px -8px rgba(249, 115, 22, 0.4), 0 4px 8px -4px rgba(249, 115, 22, 0.2);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Better text rendering for headings */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

::selection {
  background: rgba(249, 115, 22, 0.18);
  color: #0a1628;
}

/* Focus visible — accessible ring */
:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Section Dividers ---- */
.divider-accent {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #fb923c, #f97316);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: dividerShimmer 3s ease-in-out infinite;
}

@keyframes dividerShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.divider-accent.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.divider-accent.lg {
  width: 72px;
  height: 4px;
}

/* ---- Section Backgrounds ---- */
.section-dark {
  background-color: #0a1628;
}

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

.section-light {
  background-color: #ffffff;
}

.section-offset {
  background-color: #f8fafc;
}

/* Diagonal industrial texture for dark sections */
.section-dark-texture {
  background-color: #0a1628;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Dot pattern texture for light sections */
.section-dot-texture {
  background-image: radial-gradient(rgba(10, 22, 40, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ---- Glass Morphism ---- */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-panel-dark {
  background: rgba(15, 31, 58, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Card System ---- */
.card-premium {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo),
              border-color 0.4s ease;
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(249, 115, 22, 0.25);
}

.card-hover {
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Product Image */
.product-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ecf1;
  position: relative;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 22, 40, 0.06) 100%);
  pointer-events: none;
  z-index: 1;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.card-hover:hover .product-img-wrap img {
  transform: scale(1.1);
}

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.35s var(--ease-out-quint);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out-quint);
  z-index: -1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(249, 115, 22, 0.35);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.35s var(--ease-out-quint);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}

.btn-outline:active {
  transform: translateY(-1px);
}

/* Ghost button (light bg) */
.btn-ghost {
  border: 1.5px solid rgba(10, 22, 40, 0.12);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.35s var(--ease-out-quint);
}

.btn-ghost:hover {
  background: rgba(10, 22, 40, 0.04);
  border-color: rgba(10, 22, 40, 0.2);
  transform: translateY(-2px);
}

/* ---- Trust Icon ---- */
.trust-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.04));
  border: 1px solid rgba(249, 115, 22, 0.1);
}

/* ---- Form Elements ---- */
.input-focus:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  outline: none;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.35s var(--ease-out-expo);
  animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 36px rgba(37, 211, 102, 0.55); }
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 36px rgba(37, 211, 102, 0.55);
  animation: none;
}

/* ---- Nav scroll shadow ---- */
.nav-scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ---- Sticky Tabs ---- */
.sticky-tabs {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---- Step Number (How It Works) ---- */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(249, 115, 22, 0.4);
  transition: transform 0.3s var(--ease-out-expo);
}

.step-number:hover {
  transform: scale(1.1);
}

/* ---- Stat Cards ---- */
.stat-card {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.stat-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.3);
}

/* ---- Spec Table ---- */
.spec-table {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.spec-table.alt {
  background: rgba(241, 245, 249, 0.6);
}

/* ---- Testimonial / Quote Card ---- */
.testimonial-card {
  border-left: 4px solid #f97316;
  background: #f8fafc;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.testimonial-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* ---- Accent Blob ---- */
.accent-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
  animation: blobDrift 12s ease-in-out infinite alternate;
}

@keyframes blobDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -20px) scale(1.05); }
}

/* ---- Loading Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 48%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ---- FAQ Accordion ---- */
.faq-item {
  transition: background 0.25s ease;
  border-radius: var(--radius-md);
}

.faq-item:hover {
  background: #f8fafc;
}

/* ---- Category Tag ---- */
.cat-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f97316;
  background: rgba(249, 115, 22, 0.08);
  border-radius: 20px;
  transition: background 0.25s ease, color 0.25s ease;
}

.cat-tag:hover {
  background: rgba(249, 115, 22, 0.14);
}

/* ---- Section Eyebrow ---- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #f97316;
  margin-bottom: 12px;
}

.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  border-radius: 1px;
}

/* ---- Scroll-triggered fade-in ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children delays */
.animate-on-scroll.stagger-1 { transition-delay: 0.05s; }
.animate-on-scroll.stagger-2 { transition-delay: 0.1s; }
.animate-on-scroll.stagger-3 { transition-delay: 0.15s; }
.animate-on-scroll.stagger-4 { transition-delay: 0.2s; }
.animate-on-scroll.stagger-5 { transition-delay: 0.25s; }
.animate-on-scroll.stagger-6 { transition-delay: 0.3s; }

/* ---- Hero overlay gradient ---- */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.55) 0%,
    rgba(10, 22, 40, 0.3) 40%,
    rgba(10, 22, 40, 0.7) 100%
  );
}

/* ---- Gradient text utility ---- */
.text-gradient {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #f97316 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---- Image hover zoom container ---- */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s var(--ease-out-expo);
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* ---- Badge / Pill ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.badge-orange {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

/* ---- Refined Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- Search Autocomplete ---- */
#search-results {
  max-height: 360px;
  overflow-y: auto;
}

#search-results-list a:hover {
  background-color: var(--steel-100);
}

/* ---- No Results State ---- */
#no-results {
  scroll-margin-top: 200px;
}
