/* BRIQO — scroll reveal, hover & tilt micro-interactions */

@media (prefers-reduced-motion: reduce) {
  .ix-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ix-tilt { transform: none !important; }
  .pricing-grid:has(.price-card:hover) .price-card:not(:hover) {
    opacity: 1 !important;
    filter: none !important;
  }
  .process-steps:has(.p-step:hover) .p-step:not(:hover),
  body:has(.img-text.ix-card:hover) .img-text.ix-card:not(:hover) {
    opacity: 1 !important;
    filter: none !important;
  }
}

/* ── Scroll reveal ─────────────────────────────────────────────── */
.ix-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.ix-reveal.ix-visible {
  opacity: 1;
  transform: translateY(0);
}
.ix-stagger-1 { transition-delay: 0.06s; }
.ix-stagger-2 { transition-delay: 0.12s; }
.ix-stagger-3 { transition-delay: 0.18s; }
.ix-stagger-4 { transition-delay: 0.24s; }
.ix-stagger-5 { transition-delay: 0.30s; }

/* ── Hover cards ───────────────────────────────────────────────── */
@media (hover: hover) {
  .ix-card {
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.38s ease,
                border-color 0.25s ease,
                background 0.25s ease;
    will-change: transform;
  }
  .ix-card:not(.ix-tilt):hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.11);
  }
  .ix-tilt.ix-card:hover {
    --ix-ty: -8px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.11);
  }

  .content-card.ix-card:hover {
    border-color: rgba(217, 127, 99, 0.45);
    box-shadow: 0 20px 48px rgba(217, 127, 99, 0.1);
  }

  /* Geen hover-beweging op informatieve blokken — wel op knoppen */
  .page-intro .ix-card:hover,
  .page-intro .hero-chip:hover,
  .content-card:hover,
  .content-card.ix-reveal:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--lw-border, #D9D3C4) !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .hero-atmosphere .hero-float--tag:hover {
    border-color: rgba(255, 255, 255, 0.22);
  }

  .hero-atmosphere .hero-float--case:hover {
    border-color: rgba(217, 127, 99, 0.55);
    transform: translateY(-2px);
  }

  .page-intro-link:hover {
    color: var(--lw-terra-dark, #c46a4f);
  }

  .team-card.ix-card {
    overflow: hidden;
  }
  .team-card.ix-card .team-photo img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .team-card.ix-card:hover {
    border-color: rgba(217, 127, 99, 0.5);
  }
  .team-card.ix-card:hover .team-photo img {
    transform: scale(1.07);
  }
  .team-card.ix-card:hover .team-role {
    color: var(--lw-terra-dark, #c46a4f);
  }

  .case-card.ix-card:hover {
    border-color: var(--lw-terra, #D97F63);
    transform: translateY(-8px) scale(1.01);
  }
  .case-card.ix-card:hover .case-card-link {
    gap: 10px;
  }
  .case-card-link {
    transition: gap 0.25s ease, color 0.2s;
  }

  .article-card.ix-card:hover {
    transform: translateY(-8px);
    border-color: var(--lw-terra, #D97F63);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
  }
  .article-card.ix-card.is-soon:hover {
    border-color: rgba(217, 127, 99, 0.35);
  }
  .article-card.ix-card:hover .article-type {
    background: var(--lw-terra-tint, #FAECE6);
  }

  .price-card.ix-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  /* Geen permanente gloed — alleen de kaart onder de cursor */
  .pricing-grid .price-card.featured {
    border-color: var(--border, var(--lw-border, #D9D3C4));
    box-shadow: none;
  }
  .pricing-grid .price-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(ellipse 90% 70% at 50% -10%, rgba(217, 127, 99, 0.22), transparent 58%),
      radial-gradient(ellipse 60% 50% at 100% 100%, rgba(217, 127, 99, 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
  }
  .pricing-grid .price-card > * {
    position: relative;
    z-index: 1;
  }
  .pricing-grid .price-card.ix-card:hover {
    border-color: var(--lw-terra, #D97F63);
    box-shadow:
      0 0 0 1px rgba(217, 127, 99, 0.45),
      0 22px 52px rgba(217, 127, 99, 0.22),
      0 0 48px rgba(217, 127, 99, 0.1);
    --ix-ty: -10px;
  }
  .pricing-grid .price-card.ix-card:hover::before {
    opacity: 1;
  }
  .pricing-grid:has(.price-card:hover) .price-card:not(:hover) {
    opacity: 0.62;
    filter: saturate(0.75);
    --ix-ty: 0px;
    --ix-ry: 0deg;
    --ix-rx: 0deg;
    box-shadow: none;
    border-color: var(--border, var(--lw-border, #D9D3C4));
  }
  .pricing-grid:has(.price-card:hover) .price-card.featured:not(:hover) {
    border-color: var(--border, var(--lw-border, #D9D3C4));
    box-shadow: none;
  }

  .p-card.ix-card:hover {
    border-color: rgba(217, 127, 99, 0.35);
  }
  .p-card.ix-card:hover .p-num {
    color: var(--lw-terra-dark, #c46a4f);
    transform: scale(1.08);
  }

  .build-tile.ix-card:hover {
    background: #162032;
    transform: translateY(-4px);
  }
  .build-tile.ix-card:hover .build-icon {
    background: rgba(217, 127, 99, 0.22);
    transform: scale(1.1) rotate(-4deg);
  }

  .branch-card.ix-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  }
  .branch-card.ix-spotlight {
    position: relative;
    overflow: hidden;
  }
  .branch-card.ix-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(
      420px circle at var(--ix-spot-x, 50%) var(--ix-spot-y, 50%),
      rgba(217, 127, 99, 0.32) 0%,
      transparent 52%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }
  .branch-card.ix-spotlight:hover::before {
    opacity: 1;
  }
  .branch-card.ix-spotlight:hover img {
    transform: scale(1.06);
  }
  .branch-card img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .branch-plus {
    transition: transform 0.35s ease, border-color 0.25s ease, background 0.25s ease;
  }
  .branch-plus:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(217, 127, 99, 0.55);
    background: rgba(217, 127, 99, 0.08);
  }
  .branch-plus:hover .branch-plus-icon {
    transform: rotate(90deg) scale(1.08);
    background: rgba(217, 127, 99, 0.2);
  }
  .branch-plus-icon {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s;
  }

  .p-step {
    transition: transform 0.35s ease, opacity 0.3s ease, filter 0.3s ease;
    cursor: default;
  }
  .process-steps:has(.p-step:hover) .p-step:not(:hover) {
    opacity: 0.55;
    filter: saturate(0.8);
  }
  .p-step:hover {
    transform: translateY(-6px);
  }
  .p-step:hover .p-step-circle {
    background: var(--lw-terra, #D97F63);
    border-color: var(--lw-terra, #D97F63);
    box-shadow: 0 0 0 1px var(--lw-terra, #D97F63), 0 0 0 6px rgba(217, 127, 99, 0.14), 0 0 28px rgba(217, 127, 99, 0.35);
  }
  .p-step-circle {
    transition: background 0.3s ease, border-color 0.25s ease, box-shadow 0.35s ease, transform 0.35s ease;
  }
  .p-step:hover .p-step-title {
    color: var(--lw-terra-dark, #c46a4f);
  }
  .p-step:hover .p-step-tag {
    background: var(--lw-terra-tint, #FAECE6);
    color: var(--lw-terra-dark, #c46a4f);
  }
  .p-step-title,
  .p-step-tag {
    transition: color 0.25s ease, background 0.25s ease;
  }

  /* Werkwijze-subpagina: image+tekst stappen — gloed alleen bij hover */
  .img-text.ix-card {
    border-radius: 24px;
    transition: opacity 0.3s ease, filter 0.3s ease;
  }
  .section:has(.img-text.ix-card:hover) .img-text.ix-card:not(:hover) {
    opacity: 0.58;
    filter: saturate(0.82);
  }
  body:has(.img-text.ix-card:hover) .img-text.ix-card:not(:hover) {
    opacity: 0.58;
    filter: saturate(0.82);
  }
  .img-text.ix-card:hover .img-text-img {
    transform: scale(1.02);
    box-shadow:
      0 0 0 2px rgba(217, 127, 99, 0.45),
      0 24px 50px rgba(217, 127, 99, 0.16);
  }
  .img-text.ix-card:hover h2 {
    color: var(--lw-terra-dark, #c46a4f);
  }
  .img-text.ix-card h2 {
    transition: color 0.25s ease;
  }

  .btn.ix-magnetic {
    transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  }
  .btn.ix-magnetic:hover {
    box-shadow: 0 14px 32px rgba(217, 127, 99, 0.28);
  }

  .case-quote {
    transition: border-color 0.3s ease, transform 0.35s ease;
  }
  .case-section:hover .case-quote {
    border-color: rgba(217, 127, 99, 0.45);
    transform: translateX(4px);
  }

  .av.ix-card {
    padding: 12px 14px;
    margin: -12px -14px;
    border-radius: 14px;
  }
  .av.ix-card:hover {
    background: #F8FAFC;
    transform: translateX(6px);
    box-shadow: none;
  }
  .av.ix-card:hover .av-icon {
    background: rgba(217, 127, 99, 0.14);
    border-color: rgba(217, 127, 99, 0.35);
    transform: scale(1.08);
  }

  .cs-stat.ix-card:hover,
  .cs-stat2.ix-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 127, 99, 0.35);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  }

  .img-text.ix-card .img-text-img {
    transition: transform 0.45s ease, box-shadow 0.45s ease;
  }

  .logo-entry.ix-card:hover {
    opacity: 1;
    transform: scale(1.04);
  }
}

.p-num, .build-icon, .av-icon {
  transition: transform 0.3s ease, color 0.2s, background 0.2s, border-color 0.2s;
}

/* Tilt wrapper — JS sets --ix-ry / --ix-rx */
.ix-tilt {
  transform: perspective(900px) rotateX(var(--ix-rx, 0deg)) rotateY(var(--ix-ry, 0deg)) translateY(var(--ix-ty, 0px));
}
@media (hover: hover) {
  .pricing-grid .price-card.ix-tilt.ix-card:hover {
    --ix-ty: -10px;
    box-shadow:
      0 0 0 1px rgba(217, 127, 99, 0.45),
      0 22px 52px rgba(217, 127, 99, 0.22),
      0 0 48px rgba(217, 127, 99, 0.1);
  }
  .pricing-grid .price-card.ix-tilt.ix-card:not(:hover) {
    box-shadow: none;
  }
  .ix-tilt.ix-card:hover {
    --ix-ty: -8px;
  }
}

/* Button shine on hover */
.btn.ix-shine {
  position: relative;
  overflow: hidden;
}
.btn.ix-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.22) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}
.btn.ix-shine:hover::after {
  transform: translateX(120%);
}

/* ── Mobile navigation ─────────────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lw-border, #D9D3C4);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lw-forest, #1E3B2E);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-link-cta-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-link-cta-mobile {
    display: block;
    margin-top: 8px;
    padding: 14px 16px !important;
    background: var(--lw-terra, #D97F63);
    color: #fff !important;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    border: none;
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
  }

  .nav-links:not(.is-open) {
    display: none !important;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 20px 32px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.is-open {
    display: flex !important;
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-link:active {
    background: #F1F5F9;
  }

  body.nav-open {
    overflow: hidden;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ix-tilt {
    transform: none !important;
  }
}

/* ── Touch: tap = hover-gloed (prijzen, werkwijze, stappen) ─────── */
@media (hover: none) {
  .pricing-grid .price-card.ix-focus {
    border-color: var(--lw-terra, #D97F63);
    box-shadow:
      0 0 0 1px rgba(217, 127, 99, 0.45),
      0 22px 52px rgba(217, 127, 99, 0.22),
      0 0 48px rgba(217, 127, 99, 0.1);
    --ix-ty: -6px;
  }

  .pricing-grid .price-card.ix-focus::before {
    opacity: 1;
  }

  .pricing-grid:has(.price-card.ix-focus) .price-card:not(.ix-focus) {
    opacity: 0.62;
    filter: saturate(0.75);
  }

  .p-step.ix-focus {
    transform: translateY(-4px);
  }

  .p-step.ix-focus .p-step-circle {
    background: var(--lw-terra, #D97F63);
    border-color: var(--lw-terra, #D97F63);
    box-shadow: 0 0 0 1px var(--lw-terra, #D97F63), 0 0 0 6px rgba(217, 127, 99, 0.14), 0 0 28px rgba(217, 127, 99, 0.35);
  }

  .p-step.ix-focus .p-step-title {
    color: var(--lw-terra-dark, #c46a4f);
  }

  .p-step.ix-focus .p-step-tag {
    background: var(--lw-terra-tint, #FAECE6);
    color: var(--lw-terra-dark, #c46a4f);
  }

  .process-steps:has(.p-step.ix-focus) .p-step:not(.ix-focus) {
    opacity: 0.55;
    filter: saturate(0.8);
  }

  .img-text.ix-card.ix-focus .img-text-img {
    transform: scale(1.02);
    box-shadow:
      0 0 0 2px rgba(217, 127, 99, 0.45),
      0 24px 50px rgba(217, 127, 99, 0.16);
  }

  .img-text.ix-card.ix-focus h2 {
    color: var(--lw-terra-dark, #c46a4f);
  }

  body:has(.img-text.ix-card.ix-focus) .img-text.ix-card:not(.ix-focus) {
    opacity: 0.58;
    filter: saturate(0.82);
  }

  .branch-card.ix-spotlight.ix-focus::before {
    opacity: 1;
  }

  .branch-card.ix-focus img {
    transform: scale(1.04);
  }

  .ix-card {
    -webkit-tap-highlight-color: transparent;
  }
}
