/* ==========================================================================
   NEERTECH - Smart Water Heating & A. O. Smith Authorized Service
   Custom Stylesheet & Design System
   ========================================================================== */

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

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --primary-blue: #0284c7;
  --primary-dark: #0369a1;
  --primary-navy: #0b1329;
  --secondary-slate: #0f172a;
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;
  --accent-red: #ef4444;
  --accent-emerald: #10b981;
  --bg-light: #f8fafc;
  --border-glass: rgba(255, 255, 255, 0.4);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
}

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

/* Glassmorphism Styles */
.glass-navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.05), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
}

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

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(2, 132, 199, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

@keyframes pulse-heat {
  0%, 100% {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
  }
  50% {
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.65);
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

.animate-pulse-ring {
  animation: pulse-ring 2.5s infinite;
}

.animate-pulse-heat {
  animation: pulse-heat 2s infinite ease-in-out;
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(2, 132, 199, 0.15), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
}

/* Gradients */
.gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-hero-bg {
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.12) 0%, rgba(2, 132, 199, 0.05) 40%, rgba(248, 250, 252, 0) 70%),
              radial-gradient(circle at 20% 70%, rgba(2, 132, 199, 0.08) 0%, rgba(248, 250, 252, 0) 50%);
}

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

/* Custom Range Slider for Temperature */
input[type="range"] {
  accent-color: #0284c7;
}

.temp-slider-track {
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(to right, #0284c7 0%, #06b6d4 30%, #eab308 60%, #f97316 85%, #ef4444 100%);
}

/* Phone Mockup Frame */
.smartphone-mockup {
  position: relative;
  width: 320px;
  height: 640px;
  border-radius: 44px;
  background: #0f172a;
  border: 10px solid #1e293b;
  box-shadow: 0 25px 60px -15px rgba(2, 132, 199, 0.3), 0 10px 20px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

@media (min-width: 640px) {
  .smartphone-mockup {
    width: 360px;
    height: 720px;
  }
}

.smartphone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #0f172a;
  border-radius: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Badges */
.badge-ao-smith {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Technical Specification Tables (products.html) */
.spec-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.spec-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 12px;
}

.spec-table th {
  background: var(--primary-navy);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 14px;
  text-align: center;
  white-space: nowrap;
}

.spec-table th:first-child,
.spec-table td:first-child {
  text-align: left;
}

.spec-table td {
  padding: 8px 14px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  color: #1e293b;
}

.spec-table td:first-child {
  font-weight: 600;
  color: #475569;
}

.spec-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.spec-table tr.spec-group td {
  background: #f0f9ff;
  color: var(--primary-dark);
  font-weight: 700;
}

.spec-table td.spec-sub {
  padding-left: 28px;
  font-weight: 500;
}

/* Expandable spec panel */
.spec-details > summary {
  list-style: none;
  cursor: pointer;
}

.spec-details > summary::-webkit-details-marker {
  display: none;
}

.spec-details[open] .spec-chevron {
  transform: rotate(180deg);
}

/* Category chip bar */
/* !important: must beat the Tailwind CDN utilities injected after this stylesheet */
.cat-chip.active {
  background: var(--primary-blue) !important;
  color: #ffffff !important;
  border-color: var(--primary-blue) !important;
}

/* Mobile Sticky Bottom CTA */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
}
