/* F6IT — Light theme, professional 3-color rule. No heavy blur/gradient. */

:root {
  --bg: #ffffff;
  --section: #f8fafc;
  --primary: #2563EB;
  --secondary: #0f172a;
  --hover: #eff6ff;
  --text: #0f172a;
  --text-muted: #334155;
  --muted: #64748b;
  --stroke: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --card-radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Section background */
.section,
main section {
  background: var(--section);
}
/* Keep alternating backgrounds only for normal sections */
main section:nth-of-type(odd):not([data-bg="custom"]):not([class*="hero"]):not([class*="banner"]) {
  background: var(--section);
}
main section:nth-of-type(even):not([data-bg="custom"]):not([class*="hero"]):not([class*="banner"]) {
  background: var(--bg);
}

/* Card / glass replacement — soft shadow, no blur */
.glass {
  background: var(--bg);
  border: 1px solid var(--stroke);
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
}

.glass:hover {
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Nav — Stripe/Razorpay style */
.nav-header {
  transition: box-shadow 0.2s ease;
}
.nav-link {
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-chevron {
  opacity: 0.7;
}
[data-mega-trigger][aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

/* Mega menu — centered card, soft shadow, rounded */
.megamenu {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}
.megamenu:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 15px -3px rgba(0, 0, 0, 0.06);
}
.megamenu-products {
  min-width: 720px;
}

.mega-col:not(:last-child) {
  padding-right: 1rem;
}

.mega-item {
  line-height: 1.4;
}

.mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.15);
  backdrop-filter: none;
  transition: opacity 0.2s ease;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: #1d4ed8;
  filter: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--hover);
  transform: translateY(-1px);
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero slider — light layout: left text + right illustration, fade transition */
.slider {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
@media (min-width: 1024px) {
  .slider { min-height: 600px; }
}

/* Light hero variant */
.slider.hero-light {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}
.slider.hero-light .slider-track {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
.slider.hero-light .slider-slide {
  position: absolute;
  inset: 0;
  min-width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}
.slider.hero-light .slider-slide[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-slide-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  min-height: 420px;
}
@media (min-width: 1024px) {
  .hero-slide-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 2rem 5rem;
    min-height: 600px;
  }
}
.hero-slide-content {
  max-width: 36rem;
}
.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .hero-title { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 2.5rem; }
}
.hero-subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  color: #334155;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.125rem; }
}
.hero-buttons {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-slide-illus {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illus-placeholder {
  width: 100%;
  max-width: 320px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
@media (min-width: 1024px) {
  .hero-illus-placeholder {
    max-width: 380px;
    height: 260px;
  }
}

/* Slider controls — light theme */
.slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
}
.slider-btn {
  pointer-events: auto;
}
.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #cbd5e1;
}
.slider-dot.is-active,
.slider-dot[aria-current="true"] {
  background: #2563EB;
  width: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .slider.hero-light .slider-slide {
    transition: none;
  }
}

/* Focus ring */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

/* Spacing defaults for content blocks */
.f6it-gap { gap: 20px; }
.f6it-padding { padding: 20px; }
.f6it-line-height { line-height: 1.6; }

/* Mega menu entrance */
@keyframes f6itMegaIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Trust logos slider — infinite scroll */
.trust-logos-slider {
  width: max-content;
  animation: trust-scroll 30s linear infinite;
}
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-logos-slider { animation: none; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; transform: none; opacity: 1; }
  .btn-primary:hover,
  .btn-secondary:hover { transform: none; }
}
