/* ===================================================
   Nehru Solar Solutions — Custom Styles
   =================================================== */

:root {
  --navy: #0B1220;
  --sun: #FF7A1A;
  --leaf: #2FB673;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FAF8F4;
  color: #0B1220;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Accessible focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #FF7A1A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Navbar shrink-on-scroll ---------- */
#site-header.scrolled #nav-inner {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  box-shadow: 0 10px 40px -12px rgba(0,0,0,0.55);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* ---------- Hero sun / orbit graphic ---------- */
.sun-orb {
  background: radial-gradient(circle at 32% 28%, #FFC98A 0%, #FF7A1A 45%, #E0630A 75%, #9C3E06 100%);
  box-shadow: 0 0 120px 20px rgba(255,122,26,0.45), inset -12px -12px 40px rgba(0,0,0,0.25);
  animation: sun-pulse 6s ease-in-out infinite;
}
@keyframes sun-pulse {
  0%, 100% { box-shadow: 0 0 120px 20px rgba(255,122,26,0.45), inset -12px -12px 40px rgba(0,0,0,0.25); }
  50% { box-shadow: 0 0 150px 30px rgba(255,122,26,0.6), inset -12px -12px 40px rgba(0,0,0,0.25); }
}
.orbit-ring {
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 50%;
  animation: spin-slow 40s linear infinite;
}
.orbit-ring.reverse { animation-direction: reverse; animation-duration: 55s; }
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Panel grid decorative motif ---------- */
.panel-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Glass effect ---------- */
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10);
}
.glass-light {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(11,18,32,0.06);
}

/* ---------- Card hover lift already via Tailwind; extra polish ---------- */
.product-card { will-change: transform; }

/* ---------- Stat counter ---------- */
.stat-number { font-variant-numeric: tabular-nums; }

/* ---------- FAQ accordion ---------- */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-item .faq-chevron {
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* ---------- Line clamp utility (in case Tailwind CDN plugin unavailable) ---------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Marquee / logo strip ---------- */
.marquee-track {
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Custom scrollbar for spec tables on mobile ---------- */
.scroll-thin::-webkit-scrollbar { height: 6px; }
.scroll-thin::-webkit-scrollbar-thumb { background: rgba(11,18,32,0.15); border-radius: 999px; }

/* ---------- Gallery thumbnail active state ---------- */
.gallery-thumb.active {
  border-color: #FF7A1A;
}

/* ---------- Range slider (quote calc, if used) ---------- */
input[type="range"] {
  accent-color: #FF7A1A;
}

/* ---------- Loading skeleton for lazy images ---------- */
img.lazy-fade {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img.lazy-fade.loaded {
  opacity: 1;
}
