/* Studio Ribolli — Extenties Sketchup
   Gedeelde stijl voor alle subpagina's. Geïnspireerd op SR_Site. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Jost:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --donker: #161210;
  --donker-2: #1f1a16;
  --donker-3: #2a231d;
  --licht: #f3ece0;
  --accent: #2f7d70;
  --accent-2: #235c53;
  --grijs: #8b7e6f;
}

html, body {
  min-height: 100%;
  background: var(--donker);
  font-family: 'Jost', sans-serif;
  color: var(--licht);
  cursor: none;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ---- CUSTOM CURSOR ---- */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, opacity .3s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(47,125,112,0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .18s ease-out, width .25s, height .25s, border-color .25s;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring,
body:has(.tool-card:hover) .cursor-ring,
body:has(.video-placeholder:hover) .cursor-ring { width: 56px; height: 56px; border-color: var(--accent); }
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { background: var(--licht); }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
  background: linear-gradient(to bottom, rgba(22,18,16,0.85), rgba(22,18,16,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo {
  height: 110px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}
.brand-tekst {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-tekst .lijn-1 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--licht);
}
.brand-tekst .lijn-2 {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(243,236,224,0.7);
  font-weight: 400;
  transition: color 0.3s;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--licht); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ---- HOEKEN + LIJNEN ---- */
.corner {
  position: fixed;
  width: 20px; height: 20px;
  border: 1px solid rgba(243,236,224,0.22);
  z-index: 40;
  pointer-events: none;
}
.corner.tl { top: 28px; left: 28px; border-right: none; border-bottom: none; }
.corner.tr { top: 28px; right: 28px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 28px; left: 28px; border-right: none; border-top: none; }
.corner.br { bottom: 28px; right: 28px; border-left: none; border-top: none; }

.deco-line {
  position: fixed;
  top: 0; bottom: 0;
  left: 60px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(243,236,224,0.08) 20%, rgba(243,236,224,0.08) 80%, transparent);
  z-index: 40;
  pointer-events: none;
}
.deco-line.right { left: auto; right: 60px; }

/* ---- PAGINA HEADER ---- */
.page-header {
  padding: 220px 120px 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
}
.page-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.page-titel {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -1.2px;
}
.page-titel em { font-style: italic; color: var(--accent); font-weight: 400; }
.page-intro {
  max-width: 620px;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(243,236,224,0.78);
  font-weight: 300;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--accent);
  color: var(--licht);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.35s ease, color 0.35s ease, padding 0.35s ease;
}
.btn:hover {
  background: var(--accent);
  color: var(--donker);
  padding: 16px 36px;
}
.btn svg { width: 14px; height: 14px; }

/* ---- FOOTER ---- */
.voet {
  padding: 80px 60px 40px;
  margin-top: 120px;
  border-top: 1px solid rgba(243,236,224,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(243,236,224,0.45);
}
.voet a:hover { color: var(--licht); }

/* ---- TOOLS GRID (homepage) ---- */
.tools-sectie {
  padding: 40px 120px 120px;
  max-width: 1600px;
  margin: 0 auto;
}
.tools-sectie .sectie-titel {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.tools-sectie .sectie-titel em { font-style: italic; color: var(--accent); }
.tools-sectie .sectie-intro {
  max-width: 580px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(243,236,224,0.7);
  font-weight: 300;
  margin-bottom: 60px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(243,236,224,0.08);
  border: 1px solid rgba(243,236,224,0.08);
}
.tool-card {
  position: relative;
  background: var(--donker);
  padding: 60px 30px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  cursor: none;
  transition: background 0.5s ease, transform 0.5s ease;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(47,125,112,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tool-card:hover {
  background: var(--donker-2);
}
.tool-card:hover::before { opacity: 1; }
.tool-card-icoon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: brightness(1.05);
  transition: transform 0.5s ease;
  position: relative;
  z-index: 2;
}
.tool-card:hover .tool-card-icoon { transform: scale(1.12) translateY(-4px); }
.tool-card-naam {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--licht);
  position: relative;
  z-index: 2;
}
.tool-card-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  z-index: 2;
}

/* ---- TOOL DETAILPAGINA ---- */
.tool-hero {
  padding: 200px 120px 60px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
}
.tool-hero-icoon-box {
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--donker-2), var(--donker));
  border: 1px solid rgba(47,125,112,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tool-hero-icoon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(47,125,112,0.15), transparent 60%);
}
.tool-hero-icoon {
  width: 240px;
  height: 240px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: brightness(1.05);
}
.tool-hero-tekst {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tool-volg-nummer {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
}
.tool-volg-nummer::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.tool-naam {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -1px;
}
.tool-naam em { font-style: italic; color: var(--accent); font-weight: 400; }
.tool-beschrijving {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(243,236,224,0.78);
  font-weight: 300;
}

/* ---- VIDEO PLACEHOLDER ---- */
.video-sectie {
  padding: 60px 120px 100px;
  max-width: 1400px;
  margin: 0 auto;
}
.video-label {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.video-label::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.video-titel {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 36px;
}
.video-titel em { font-style: italic; color: var(--accent); }

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--donker-2);
  border: 1px solid rgba(243,236,224,0.08);
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.video-wrap:hover { border-color: rgba(47,125,112,0.4); }
.tutorial-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--donker);
  display: block;
  cursor: pointer;
}

.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--donker-2);
  border: 1px solid rgba(243,236,224,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: border-color 0.4s ease;
}
.video-placeholder:hover { border-color: rgba(47,125,112,0.4); }
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(47,125,112,0.06), transparent 50%),
    repeating-linear-gradient(45deg, transparent 0, transparent 40px, rgba(243,236,224,0.012) 40px, rgba(243,236,224,0.012) 80px);
}
.play-btn {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(47,125,112,0.5);
  background: rgba(22,18,16,0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  z-index: 2;
}
.video-placeholder:hover .play-btn {
  transform: scale(1.08);
  background: rgba(47,125,112,0.2);
  border-color: var(--accent);
}
.play-btn::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(47,125,112,0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.1; }
}
.play-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--licht);
  margin-left: 6px;
}
.video-overlay-tekst {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(243,236,224,0.5);
}

/* ---- PREV / NEXT TUSSEN TOOLS ---- */
.tool-nav {
  padding: 60px 120px 100px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(243,236,224,0.08);
  padding-top: 60px;
}
.tool-nav a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(243,236,224,0.5);
  transition: color 0.3s ease;
  cursor: none;
}
.tool-nav a:hover { color: var(--licht); }
.tool-nav .tool-nav-naam {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: -0.3px;
  text-transform: none;
  color: var(--licht);
  font-style: italic;
}
.tool-nav .volgende { text-align: right; align-items: flex-end; }
.tool-nav span.pijl { color: var(--accent); }

/* ---- HOMEPAGE SLIDER ---- */
.slider-scene {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  perspective: 1400px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
.slide.leaving {
  opacity: 0;
  transform: scale(1.05);
}
.slide-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(47,125,112,0.1), transparent 60%),
    radial-gradient(circle at 25% 75%, rgba(47,125,112,0.05), transparent 50%),
    linear-gradient(135deg, var(--donker-2) 0%, var(--donker) 100%);
}
.slide-inhoud {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  max-width: 1400px;
  padding: 0 80px;
  width: 100%;
  align-items: center;
}
.slide-icoon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.slide-icoon-wrap::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(47,125,112,0.2);
  border-radius: 50%;
  animation: drift 22s linear infinite;
}
.slide-icoon-wrap::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(243,236,224,0.04);
  border-radius: 50%;
}
@keyframes drift {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.slide-icoon {
  width: 300px;
  height: 300px;
  object-fit: contain;
  filter: brightness(1.05) drop-shadow(0 10px 30px rgba(0,0,0,0.6));
  position: relative;
  z-index: 3;
}
.slide-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.slide-nummer {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
}
.slide-nummer::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.slide-naam {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}
.slide-naam em { font-style: italic; color: var(--accent); font-weight: 400; }
.slide-tekst {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(243,236,224,0.78);
  font-weight: 300;
  max-width: 480px;
}
.slide-cta {
  margin-top: 14px;
}

/* Slider nav buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: rgba(243,236,224,0.05);
  border: 1px solid rgba(243,236,224,0.15);
  color: var(--licht);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(10px);
}
.slider-btn:hover {
  background: rgba(47,125,112,0.22);
  border-color: var(--accent);
}
.slider-btn.prev { left: 36px; }
.slider-btn.next { right: 36px; }
.slider-btn svg { width: 18px; height: 18px; }

/* Progress dots in slider */
.slider-progress {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 10px;
  align-items: center;
}
.progress-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(243,236,224,0.28);
  transition: all 0.5s ease;
  cursor: none;
  border: none;
  padding: 0;
}
.progress-dot.active {
  background: var(--accent);
  width: 30px;
  border-radius: 3px;
}

/* ---- INSTALLATIE STAPPEN ---- */
.installatie-sectie {
  padding: 60px 120px 120px;
  max-width: 1400px;
  margin: 0 auto;
}
.stappen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.stap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(243,236,224,0.08);
  background: var(--donker-2);
  transition: border-color 0.4s ease;
}
.stap:hover { border-color: rgba(47,125,112,0.3); }
.stap-nummer {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
}
.stap-titel {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
}
.stap-tekst {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(243,236,224,0.7);
  font-weight: 300;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .slide-inhoud { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .slide-icoon-wrap::before { width: 280px; height: 280px; }
  .slide-icoon-wrap::after { width: 380px; height: 380px; }
  .tool-hero { grid-template-columns: 1fr; gap: 40px; padding: 180px 60px 40px; }
  .stappen-grid { grid-template-columns: 1fr; }
  .page-header, .tools-sectie, .video-sectie, .tool-nav, .installatie-sectie { padding-left: 60px; padding-right: 60px; }
}
@media (max-width: 820px) {
  html, body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  .nav { padding: 20px 24px; }
  .brand-logo { height: 70px; }
  .brand-tekst .lijn-1 { font-size: 15px; }
  .nav-links { display: none; }
  .page-header { padding: 160px 24px 60px; }
  .tools-sectie, .video-sectie, .tool-nav, .installatie-sectie { padding-left: 24px; padding-right: 24px; }
  .tool-hero { padding: 160px 24px 40px; }
  .tool-hero-icoon-box { width: 220px; height: 220px; }
  .tool-hero-icoon { width: 170px; height: 170px; }
  .slide-icoon { width: 200px; height: 200px; }
  .slide-icoon-wrap::before { width: 220px; height: 220px; }
  .slide-icoon-wrap::after { width: 300px; height: 300px; }
  .slide-inhoud { padding: 0 24px; }
  .corner, .deco-line { display: none; }
  .voet { padding: 60px 24px 30px; flex-direction: column; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .slider-btn.prev { left: 12px; width: 46px; height: 46px; }
  .slider-btn.next { right: 12px; width: 46px; height: 46px; }
}
