/* ==========================================================================
   CONTENT-LAYOUT.CSS — OranjeLift.nl
   Content grids, value cards, steps, reviews, stats
   ========================================================================== */

/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 128, 0, 0.4); }
  50% { box-shadow: 0 0 0 14px rgba(255, 128, 0, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-stagger > * {
  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-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.5s; }

/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.reveal.active .section-header h2::after,
.section-header h2::after {
  width: 56px;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 65ch;
  margin: var(--space-xs) auto 0;
  line-height: 1.6;
}

/* ========== CONTENT BLOCK (tekst + afbeelding) ========== */
.content-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .content-block {
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
  }
  .content-block--img-left {
    grid-template-columns: 300px 1fr;
  }
}

.content-block__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.content-block__img img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.content-block__img figcaption {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-sm);
  text-align: center;
  background: var(--color-bg);
}

/* ========== VALUE CARDS ========== */
.value-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .value-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--color-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  display: block;
}

.value-card:hover {
  box-shadow: 0 12px 32px rgba(255, 128, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 128, 0, 0.2);
  transform: translateY(-4px);
}

.value-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, #fff 100%);
  border: 1px solid rgba(255, 128, 0, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover .value-card-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 128, 0, 0.25);
}

.value-card-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ========== STEPS LIST ========== */
.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-list {
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }

  .steps-list::before {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-primary) 0, var(--color-primary) 8px, transparent 8px, transparent 16px);
    z-index: 0;
  }
}

.step-item {
  text-align: center;
  counter-increment: step;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover .step-number {
  transform: scale(1.15);
  box-shadow: 0 6px 24px rgba(255, 128, 0, 0.4);
}

.step-item h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.step-item p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ========== REVIEWS GRID ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--color-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-3px);
}

.review-card-stars {
  color: var(--color-stars);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.review-card p {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.review-card cite {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ========== STATS ROW ========== */
.stats-bar {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  position: relative;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* ========== WHY SECTION ========== */
.why-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .why-section {
    grid-template-columns: 1fr 1fr;
  }
}

.why-section-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.why-section-image::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid rgba(255, 128, 0, 0.25);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.why-section img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

.why-list {
  list-style: none;
  padding: 0;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.why-list li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.why-list li svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 6px;
  color: #767676;
}

/* ========== HERO ENHANCEMENTS ========== */
.hero-content {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-cta .btn-primary {
  animation: pulse 3s ease-in-out 2.5s infinite;
}

.hero-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
}

.hero-deco--1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 128, 0, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  animation: float 7s ease-in-out infinite;
}

.hero-deco--2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 128, 0, 0.08) 0%, transparent 70%);
  bottom: -60px;
  left: 5%;
  animation: float 9s ease-in-out infinite reverse;
}

.hero-deco--3 {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  top: 25%;
  right: 12%;
  animation: float 5s ease-in-out infinite 1s;
}

/* ========== WAVE SEPARATOR ========== */
.wave-separator {
  display: block;
  width: 100%;
  line-height: 0;
  margin: 0;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 50px;
}

@media (min-width: 768px) {
  .wave-separator svg {
    height: 70px;
  }
}

/* ========== CSS CONTAINMENT — performance optimisation ========== */
main .section { contain: layout style; }
main .content-section { contain: layout style; }
.faq-item { contain: layout style paint; }

/* ========== CONTENT VISIBILITY — below-fold lazy rendering ========== */
main .section:nth-of-type(n+3) {
  content-visibility: auto;
  contain-intrinsic-height: auto 500px;
}

/* ========== RESPONSIVE: text+image two-column stacked on mobile ========== */
@media (max-width: 767px) {
  .content-section .reveal[style*="1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
