/**
 * Pavdrive Theme CSS - Bricks Builder Integration
 * Modern London Driveway Design System
 */

/* 1. Global Typography & Material Symbols */
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--pav-on-surface, #141c28);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* 2. Global Site Container (1440px max-width) */
.site-container,
.bricks-container.pavdrive-container {
  width: min(100% - 32px, 1440px) !important;
  margin-inline: auto !important;
}

/* 3. Button Sheen Shine Animation */
@keyframes sheenMove {
  0% { transform: translateX(-150%) skewX(-20deg); }
  25%, 100% { transform: translateX(250%) skewX(-20deg); }
}

.btn-sheen {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-sheen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: sheenMove 4.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.btn-sheen:hover {
  transform: translateY(-1px);
}

/* 4. Orange Glow Accents & Dividers */
.shadow-glow-orange {
  box-shadow: 0 8px 24px -2px rgba(255, 102, 0, 0.38);
}

.shadow-glow-orange:hover {
  box-shadow: 0 12px 32px -2px rgba(255, 102, 0, 0.5);
}

.glow-divider-orange {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6600, transparent);
  opacity: 0.8;
  margin-inline: auto;
  width: min(100% - 64px, 1200px);
}

/* 5. Card Hover Elevation */
.fx-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.fx-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -6px rgba(7, 21, 37, 0.12);
}

.fx-img-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .fx-img-zoom {
  transform: scale(1.05);
}

/* 6. Dot Grid Architectural Backgrounds */
.bg-grid-dots {
  background-image: radial-gradient(rgba(7, 21, 37, 0.08) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
}

.bg-grid-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* 7. Scroll Reveal Transitions */
.pavdrive-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);
  will-change: opacity, transform;
}

.pavdrive-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 8. Before & After Comparison Slider Component */
.pavdrive-ba-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  border-radius: 1.5rem;
}

.pavdrive-ba-handle {
  appearance: none;
  background: transparent;
  outline: none;
  margin: 0;
  cursor: ew-resize;
}

.pavdrive-ba-handle::-webkit-slider-thumb {
  appearance: none;
  width: 48px;
  height: 48px;
  opacity: 0;
}

.pavdrive-ba-handle::-moz-range-thumb {
  width: 48px;
  height: 48px;
  opacity: 0;
}

/* 9. Native Scroll-Snap Carousel */
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.carousel-slide {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.carousel-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #d8deea;
  color: #141c28;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: #f8f9fd;
  border-color: #ff6600;
  color: #ff6600;
}

/* 10. FAQ Accordion Animation */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
}

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

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

.faq-icon {
  transition: transform 0.3s ease;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .pavdrive-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn-sheen::after {
    animation: none !important;
  }
}
