/* SanskaTots™ Brand Website — Custom Styles */
/* Built on top of Tailwind CSS */

:root {
  /* Primary Brand Colors */
  --color-saffron: #F4A340;
  --color-maroon: #8C2A2A;
  --color-teal: #2BA8A0;
  --color-cream: #FFF8EC;

  /* Extended Palette */
  --color-saffron-light: #FDE4B5;
  --color-saffron-dark: #D4892A;
  --color-maroon-light: #C44C4C;
  --color-teal-light: #A8E6E3;
  --color-charcoal: #2A2A2A;
  --color-white: #FFFFFF;
  --color-off-white: #FAF6F0;
  --color-border: #E8DCC8;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.10);
  --shadow-saffron: 0 8px 24px rgba(244,163,64,0.35);
  --shadow-card: 0 2px 8px rgba(140,42,42,0.08), 0 8px 24px rgba(0,0,0,0.06);
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--color-maroon);
}

/* Navigation */
.nav-sticky {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-sticky.scrolled {
  background-color: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn-primary {
  background-color: var(--color-saffron);
  color: var(--color-maroon);
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-saffron-dark);
  box-shadow: var(--shadow-saffron);
  transform: scale(1.03);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-saffron);
  border: 2px solid var(--color-saffron);
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 12px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--color-saffron);
  color: var(--color-maroon);
  transform: scale(1.03);
}

.btn-amazon {
  background-color: var(--color-saffron);
  color: var(--color-maroon);
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 16px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-amazon:hover {
  background-color: var(--color-saffron-dark);
  box-shadow: var(--shadow-saffron);
  transform: scale(1.02);
}

/* Product Cards */
.product-card {
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.product-card .card-image {
  overflow: hidden;
  aspect-ratio: 1;
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .card-image img {
  transform: scale(1.04);
}

/* Category badges */
.badge-busy-book {
  background-color: var(--color-teal);
  color: white;
}

.badge-tracing-book {
  background-color: var(--color-saffron);
  color: var(--color-maroon);
}

/* Feature Cards */
.feature-card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  border-left: 4px solid var(--color-saffron);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Image Gallery */
.gallery-main {
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-md);
}

.gallery-thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--color-saffron);
  transform: scale(1.05);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item.active {
  border-left: 3px solid var(--color-saffron);
  padding-left: 16px;
}

.faq-question {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-saffron-dark);
}

.faq-arrow {
  transition: transform 0.3s ease;
  color: var(--color-saffron);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

/* Scroll Reveal Animation */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Respect user preference */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-maroon);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

/* Product Detail Image Carousel (Mobile) */
.image-carousel {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.image-carousel::-webkit-scrollbar {
  display: none;
}

.image-carousel > * {
  scroll-snap-align: start;
}

/* Tag chips */
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--color-cream);
  border: 1px solid var(--color-teal-light);
  color: var(--color-teal);
}

/* Stars */
.star-filled {
  color: var(--color-saffron);
}

/* Brand Story Strip */
.brand-strip {
  background-color: var(--color-maroon);
  color: var(--color-cream);
}

/* Comparison Table */
.comparison-table td,
.comparison-table th {
  padding: 12px 16px;
  text-align: left;
}

.comparison-table tr:nth-child(even) {
  background-color: var(--color-off-white);
}

/* CTA Banner */
.cta-banner {
  background-color: var(--color-saffron);
}

.cta-banner .btn-primary {
  background-color: var(--color-maroon);
  color: var(--color-cream);
}

.cta-banner .btn-primary:hover {
  background-color: #6B1F1F;
  box-shadow: 0 8px 24px rgba(140,42,42,0.35);
}

/* Hero background pattern */
.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F4A340' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Pill badge */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background-color: var(--color-cream);
  border: 1px solid var(--color-teal);
  color: var(--color-teal);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--color-border);
}

.spec-table tr:nth-child(even) {
  background-color: var(--color-off-white);
}

.spec-table td {
  padding: 14px 16px;
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--color-maroon);
  width: 40%;
  border-left: 3px solid var(--color-teal);
}
