/* Base */
body {
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

section[id] {
  scroll-margin-top: 5rem;
}

/* Accordion (FAQ) */
.accordion-content {
  transition: max-height 0.3s ease-out, opacity 0.2s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

.accordion-content.open {
  max-height: 1000px;
  opacity: 1;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* Header */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #7c3aed;
}

.nav-link.active {
  color: #7c3aed;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #7c3aed;
  border-radius: 2px;
}

/* Product cards — mobile */
@media (max-width: 640px) {
  .product-card-header {
    min-height: 240px;
  }

  .product-card-header img {
    width: 150px !important;
    opacity: 0.5 !important;
  }

  .product-page-visual img {
    width: 110px !important;
    opacity: 0.75 !important;
  }
}

/* Product page layout */
.product-page-grid {
  align-items: stretch;
}

.product-page-visual {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 320px;
  padding: 2rem 2rem 2rem 2.5rem;
}

.product-page-visual img {
  position: static;
  width: 130px;
  opacity: 0.85;
  flex-shrink: 0;
}

.product-page-visual-content {
  position: relative;
  z-index: 10;
  max-width: none;
}

@media (min-width: 640px) {
  .product-page-visual {
    padding: 2.5rem;
    gap: 1.5rem;
  }

  .product-page-visual img {
    width: 160px;
  }
}

@media (min-width: 1024px) {
  .product-page-visual {
    min-height: 100%;
    padding: 2.75rem;
  }

  .product-page-visual img {
    width: 180px;
  }
}

@media (max-width: 1023px) {
  .product-page-visual {
    min-height: 300px;
  }
}
@media (max-width: 767px) {
  .nav-link.active {
    background: #f5f3ff;
    color: #7c3aed;
  }

  .nav-link.active::after {
    display: none;
  }
}

/* Blog */
.blog-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
}

.blog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.blog-content {
  max-width: 42rem;
  line-height: 1.75;
}

.blog-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
  color: #374151;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: #374151;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content a {
  color: #7c3aed;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content a:hover {
  color: #6d28d9;
}

.blog-content blockquote {
  border-left: 4px solid #7c3aed;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: #f5f3ff;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #4c1d95;
  font-style: italic;
}

.blog-cta {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.blog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
