/* ============================================
   THE CLOSING MOVEMENT — Mobile Stylesheet
   ============================================ */

/* === FONTS === */
@font-face {
  font-family: 'EpicPro';
  src: url('fonts/EpicPro.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Grift';
  src: url('fonts/Grift-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Grift';
  src: url('fonts/Grift-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Grift';
  src: url('fonts/Grift-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Grift';
  src: url('fonts/Grift-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Grift';
  src: url('fonts/Grift-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'BlauerNue';
  src: url('fonts/BlauerNue-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'BlauerNue';
  src: url('fonts/BlauerNue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'BlauerNue';
  src: url('fonts/BlauerNue-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'BlauerNue';
  src: url('fonts/BlauerNue-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'BlauerNue';
  src: url('fonts/BlauerNue-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* === BASE === */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* === LOADER === */
html.is-loading {
  overflow: hidden;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0A0101;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loader-logo {
  width: 80px;
  height: 80px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -40px;
  margin-left: -40px;
  will-change: opacity, transform, width, height, top, left, margin;
}

#loader-logo svg {
  width: 100%;
  height: 100%;
}

#loader-logo.visible {
  opacity: 1;
  transform: scale(1);
}

#loader-logo.move-to-header {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === NAVBAR === */
#navbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#navbar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#header-logo-svg {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#header-logo-svg.is-visible {
  opacity: 1;
}

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

#mobile-menu.open {
  max-height: 500px;
}

/* === HERO === */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(115, 3, 5, 0.25) 0%, rgba(155, 27, 29, 0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SECTION GRADIENTS (CSS-only, replacing Three.js) === */
.section-glow {
  position: relative;
}

.section-glow::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  width: 600px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(115, 3, 5, 0.12) 0%, rgba(155, 27, 29, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#probleem::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(115, 3, 5, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#oplossing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -150px;
  width: 400px;
  height: 400px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(155, 27, 29, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#pakketten::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(115, 3, 5, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#werkwijze::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(155, 27, 29, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#vertrouwen::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -100px;
  width: 400px;
  height: 400px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(115, 3, 5, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 500px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(115, 3, 5, 0.15) 0%, rgba(155, 27, 29, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  #loader-logo {
    transition: none;
    opacity: 1;
    transform: scale(1);
  }
  #loader {
    transition: none;
  }
  #navbar {
    transition: none;
  }
  .hero-content {
    transition: none;
    opacity: 1;
    transform: none;
  }
  #mobile-menu {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
