/* ============================================
   StromSterk Voorbeeld — Freestyle 2
   Elektricien Template
   Theme: Clean white + Electric Blue (#0066FF)
   Fonts: DM Sans + DM Serif Display
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #0066FF;
  --blue-dark: #0052CC;
  --blue-light: #E6F0FF;
  --white: #FFFFFF;
  --off-white: #F7F8FC;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1400px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--gray-600);
  line-height: 1.7;
}

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--gray-800);
  border: 2px solid var(--gray-200);
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--white {
  background: var(--white);
  color: var(--blue);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* ============================================
   1. HEADER — Sticky Glassmorphism
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}

.header__nav a:hover {
  color: var(--blue);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  background: var(--blue-light);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 24px;
  height: 24px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--blue);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.hero__stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gray-900);
}

.hero__stat-label {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ============================================
   3. BEFORE/AFTER SCROLL REVEAL
   ============================================ */
.scroll-video { height: 100vh; position: relative; overflow: hidden; background: #000; }
.scroll-video__container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.scroll-video__canvas { width: 100%; height: 100%; object-fit: cover; }
.scroll-video__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 2; background: rgba(0,0,0,0.3); pointer-events: none; }
.scroll-video__tag { display: inline-block; background: #0066FF; color: #fff; padding: 8px 20px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.scroll-video__title { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.15; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.6); }
.scroll-video__title em { font-style: italic; color: #0066FF; }

/* Services section (moved out of split-reveal) */
.services-section { padding: 100px 0; background: var(--white); }
.services-section__heading { text-align: center; margin-bottom: 56px; }
.services-section__heading h2 { margin-bottom: 16px; }
.services-section__heading p { max-width: 540px; margin: 0 auto; }

/* ============================================
   4. SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
  font-size: 24px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  transition: var(--transition);
}

.service-card__link:hover {
  gap: 10px;
}

/* ============================================
   5. SCROLL-PIN #2: BEFORE/AFTER SCALE
   ============================================ */
.before-after {
  position: relative;
  height: 250vh;
}

.before-after__sticky {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.before-after__image-wrap {
  position: relative;
  width: 40%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.before-after__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.before-after__label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  box-shadow: var(--shadow-md);
  z-index: 2;
  opacity: 0;
}

.before-after__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.before-after__text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  white-space: nowrap;
}

.before-after__text p {
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   6. STATS / NUMBERS
   ============================================ */
.stats {
  padding: 100px 0;
  background: var(--gray-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.stats__heading {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.stats__heading h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.stats__heading p {
  color: var(--gray-400);
  max-width: 500px;
  margin: 0 auto;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

.stat-item__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--blue);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-item__label {
  font-size: 0.9375rem;
  color: var(--gray-400);
}

.stat-item__divider {
  width: 40px;
  height: 2px;
  background: var(--blue);
  margin: 12px auto 0;
  opacity: 0.4;
}

/* ============================================
   7. TESTIMONIAL / QUOTE
   ============================================ */
.testimonial {
  padding: 120px 0;
  background: var(--off-white);
  position: relative;
}

.testimonial__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote-icon {
  font-size: 48px;
  color: var(--blue);
  opacity: 0.2;
  margin-bottom: 24px;
}

.testimonial__text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 32px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__info {
  text-align: left;
}

.testimonial__name {
  font-weight: 700;
  color: var(--gray-900);
}

.testimonial__role {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.testimonial__stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 24px;
  color: #FFC107;
  font-size: 20px;
}

/* ============================================
   8. GALLERY (MASONRY)
   ============================================ */
.gallery {
  padding: 100px 0;
  background: var(--white);
}

.gallery__heading {
  text-align: center;
  margin-bottom: 56px;
}

.gallery__heading h2 {
  margin-bottom: 12px;
}

.gallery__grid {
  columns: 3;
  column-gap: 20px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery__item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery__item-overlay h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.gallery__item-overlay p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   9. FAQ ACCORDION
   ============================================ */
.faq {
  padding: 100px 0;
  background: var(--off-white);
}

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.faq__heading h2 {
  margin-bottom: 16px;
}

.faq__heading p {
  margin-bottom: 24px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item.active {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.08);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.faq__question:hover {
  color: var(--blue);
}

.faq__question-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq__item.active .faq__question-icon {
  background: var(--blue);
  color: var(--white);
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================
   10. CTA SECTION
   ============================================ */
.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.92), rgba(0, 40, 120, 0.95));
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.cta__inner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta__inner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   11. FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__brand p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer__col h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 0.9375rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer__col a:hover {
  color: var(--blue);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 18px;
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--blue);
  color: var(--white);
}

/* ============================================
   STUDIOLEE BADGE
   ============================================ */
.studiolee-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.6875rem;
  color: var(--gray-500);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.studiolee-badge:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.studiolee-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gray-900);
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--blue);
}

.mobile-nav__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray-800);
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq__inner {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .header__nav,
  .header__cta .header__phone {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .gallery__grid {
    columns: 1;
  }

  .cta__actions {
    flex-direction: column;
  }

  .before-after__image-wrap {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .studiolee-badge {
    bottom: 12px;
    right: 12px;
    font-size: 0.625rem;
    padding: 8px 14px;
  }
}
