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

:root {
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --accent: #2c5f4a;
  --accent-light: #e8f0ec;
}

html { background: var(--bg); scroll-behavior: auto; }
body { 
  background: var(--bg); 
  color: var(--text); 
  font-family: var(--font-body); 
  overflow-x: hidden; 
  overflow-y: auto; /* Allow vertical scrolling */
  height: auto; /* Remove fixed height */
}

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.7s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-brand {
  font-family: var(--font-body); font-size: 0.75rem;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2.5rem; font-weight: 500;
}
#loader-bar-wrap { width: 180px; height: 1px; background: #e0e0e0; }
#loader-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.1s linear; }
#loader-percent { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--text-muted); margin-top: 1rem; font-weight: 300; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.6rem 3rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
}
.logo {
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.45em; text-transform: uppercase;
  font-weight: 500; color: var(--text); text-decoration: none;
}
.main-nav {
  display: flex; gap: 2.5rem; align-items: center;
}
.main-nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; margin: 0; padding: 0; }
.main-nav a {
  color: var(--text); text-decoration: none;
  font-weight: 300; font-size: 0.9rem;
  transition: color 0.2s;
}

.main-nav a:hover { 
  color: var(--accent); 
  text-decoration: none; /* Remove underline on hover */
}

/* Remove underline from all links */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}
.nav-cta {
  background: var(--accent) !important; color: #ffffff !important;
  padding: 0.55rem 1.3rem; font-size: 0.72rem !important;
  letter-spacing: 0.15em !important;
  text-decoration: none; border-radius: 4px;
  transition: background 0.3s;
}
.nav-cta:hover { background: #1e4334 !important; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none; 
  background: none; 
  border: none;
  cursor: pointer; 
  padding: 0.5rem;
  z-index: 1001 !important; /* Higher z-index */
  width: 30px;
  height: 25px;
  position: relative;
}
.mobile-menu-toggle span {
  display: block; 
  width: 25px; 
  height: 3px;
  background: var(--text); 
  margin: 5px 0;
  transition: all 0.3s ease;
  position: absolute;
}
.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 11px; }
.mobile-menu-toggle span:nth-child(3) { top: 22px; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile Navigation */
@media (max-width: 768px) {
  .mobile-menu-toggle { 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001 !important; /* Ensure it's on top */
  }
  .main-nav {
    position: fixed; 
    top: 0; 
    right: -100%;
    width: 80%; 
    height: 100vh; 
    background: var(--bg);
    flex-direction: column; 
    justify-content: flex-start;
    padding: 5rem 2rem; 
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease; 
    z-index: 999 !important; /* Below burger but above content */
  }
  .main-nav.active { right: 0; }
  .main-nav ul { 
    flex-direction: column; 
    gap: 1.5rem; 
    align-items: flex-start; 
    padding: 0;
    margin: 0;
  }
  .main-nav li {
    width: 100%;
    margin: 0;
  }
  .main-nav a {
    display: block;
    padding: 0.8rem 0;
    text-align: left;
    font-size: 1rem;
  }
}

/* ── HERO ── */
.hero-standalone {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem 6vw 5rem; z-index: 10;
}
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem; font-weight: 500;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 13rem);
  font-weight: 400; line-height: 0.88;
  color: var(--text); margin-bottom: 2rem;
  font-style: italic;
}
.hero-heading span { display: block; overflow: hidden; }
.hero-tagline {
  font-size: 0.82rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 300;
}
.scroll-indicator {
  position: absolute; bottom: 2.5rem; right: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.scroll-indicator span {
  font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-muted); writing-mode: vertical-lr;
}
.scroll-line {
  width: 1px; height: 50px; background: var(--text-muted);
  transform-origin: top;
  animation: lineGrow 2s ease-in-out infinite;
}
@keyframes lineGrow {
  0%,100% { transform: scaleY(0.2); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ── CANVAS ── */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 5;
  clip-path: circle(0% at 50% 50%);
  background: #ffffff;
}
canvas { display: block; width: 100%; height: 100%; background: #ffffff; }

/* Fond blanc absolu derrière tout */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background: #ffffff; pointer-events: none;
}

/* ── DARK OVERLAY ── */
#dark-overlay {
  position: fixed; inset: 0; z-index: 6;
  background: #111a16; opacity: 0; pointer-events: none;
}

/* ── MARQUEE ── */
.marquee-wrap {
  position: fixed; bottom: 2.5rem; left: 0; right: 0;
  z-index: 8; overflow: hidden; pointer-events: none; opacity: 0;
}
.marquee-text {
  display: block; white-space: nowrap;
  font-size: 10vw; font-family: var(--font-display);
  font-weight: 400; font-style: italic;
  color: rgba(0,0,0,0.05); letter-spacing: -0.02em;
  will-change: transform;
}

/* ── SCROLL CONTAINER ── */
#scroll-container { 
  position: relative; 
  height: auto; /* Remove fixed height, let content determine height */
  min-height: 100vh; /* Minimum height */
  z-index: 7; 
}

/* ── SCROLL SECTIONS ── */
.scroll-section {
  position: relative;
  left: 0; right: 0;
  display: flex; align-items: center;
  min-height: 100vh; padding: 4rem 8vw;
  pointer-events: auto;
}
.scroll-section.visible { pointer-events: auto; }

.align-left  { padding-left: 8vw; padding-right: 8vw; justify-content: center; }
.align-right { padding-left: 8vw; padding-right: 8vw; justify-content: center; }
.section-inner { max-width: 800px; width: 100%; }

.section-label {
  display: block; font-size: 0.68rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; font-weight: 500;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 4rem);
  font-weight: 400; line-height: 1.1; color: var(--text);
  margin-bottom: 1.2rem;
}
.section-body {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--text-muted); max-width: 38ch; font-weight: 300;
}

.scroll-section[data-section="001"] .section-heading,
.scroll-section[data-section="003"] .section-heading,
.scroll-section[data-section="001"] .section-body,
.scroll-section[data-section="003"] .section-body {
html body .scroll-section[data-section="001"] .section-body,
html body .scroll-section[data-section="003"] .section-body,
html body div.scroll-section[data-section="001"] div.section-inner h2.section-heading,
html body div.scroll-section[data-section="003"] div.section-inner h2.section-heading,
html body div.scroll-section[data-section="001"] div.section-inner p.section-body,
html body div.scroll-section[data-section="003"] div.section-inner p.section-body {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9) !important;
  background: rgba(0,0,0,0.3) !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
}
.section-note {
  display: inline-block; margin-top: 1.2rem;
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent);
  border-left: 2px solid var(--accent); padding-left: 0.8rem;
  font-weight: 500;
}

/* ── STATS ── */
.section-stats { justify-content: center; padding-left: 0; padding-right: 0; }
.stats-text {
  text-align: center;
}
/* FORCE WHITE TEXT - ABSOLUTE MAXIMUM SPECIFICITY */
html body section.scroll-section.section-stats div.stats-text h2.stats-heading,
html body section.scroll-section.section-stats div.stats-text p.stats-body,
html body section.scroll-section.section-stats div.stats-text p.stats-note {
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
}

/* Also target any element inside stats-text */
.section-stats * {
  color: #ffffff !important;
}
.stats-grid { display: flex; gap: 5vw; align-items: flex-end; padding: 0 8vw; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 400; line-height: 1; color: #ffffff; font-style: italic;
}
.stat-suffix {
  font-size: clamp(2rem, 4vw, 4rem); color: rgba(255,255,255,0.5);
  font-family: var(--font-display); margin-left: 0.15em;
  align-self: flex-end; font-style: italic;
}
.stat-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-top: 0.6rem; font-weight: 400;
}

/* ── CTA ── */
.cta-group {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  position: relative !important;
  z-index: 10 !important;
}
.cta-button {
  display: inline-block !important;
  background: var(--accent) !important;
  color: #ffffff !important;
  padding: 1rem 2rem !important;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
  border: 2px solid var(--accent);
}
.cta-button:hover {
  background: #1e4334 !important;
  transform: translateY(-2px);
}
.cta-phone {
  display: inline-block !important;
  color: var(--text) !important;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  text-align: center;
  padding: 0.5rem 0;
}
.cta-phone:hover {
  color: var(--accent) !important;
}

/* Force CTA visibility in specific sections */
.scroll-section[data-section="004"] .cta-group,
.scroll-section[data-section="005"] .cta-group {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ── FOOTER ── */
.site-footer {
  position: relative; z-index: 8; background: var(--bg);
  border-top: 1px solid #e8e8e8; padding: 3rem;
  margin-top: 0;
}
.footer-inner {
  display: flex; gap: 4rem; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
}
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col strong { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; }
.footer-col p, .footer-col a, .footer-col span {
  font-size: 0.82rem; color: var(--text-muted);
  text-decoration: none; line-height: 1.7; font-weight: 300;
}
.footer-col a:hover { color: var(--accent); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hero-heading { font-size: clamp(3.5rem, 16vw, 6rem); }
  
  /* FORCE MOBILE VIEWPORT */
  html {
    width: 100vw !important;
    height: 100dvh !important; /* Dynamic viewport height */
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  
  body {
    width: 100vw !important;
    min-height: 100dvh !important; /* Dynamic viewport height */
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  
  #scroll-container {
    width: 100vw !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  /* SIMPLIFIE - Remove ALL constraints */
  * {
    overflow: visible !important;
    max-width: none !important;
    max-height: none !important;
    min-width: auto !important;
    min-height: auto !important;
  }
  
  .scroll-section {
    height: auto !important;
    min-height: 100dvh !important; /* Dynamic viewport height */
    position: relative !important;
    width: 100% !important;
    overflow: visible !important;
  }
  
  .section-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem !important;
    overflow: visible !important;
  }
  
  .stats-grid { flex-direction: column; gap: 2.5rem; }
  .site-header { padding: 1.2rem 1.5rem; }
  .site-header ul { display: none; }
  .footer-inner { flex-direction: column; gap: 2rem; padding: 0; }
  
  /* Text colors */
  .scroll-section[data-section="001"] *,
  .scroll-section[data-section="003"] * {
    color: #ffffff !important;
  }
  
  /* Video - simple and working */
  .video-container {
    width: 100% !important;
    height: auto !important;
  }
  
  .video-container iframe,
  .video-container video {
    width: 100% !important;
    height: 200px !important;
    max-width: 100% !important;
  }
  
  /* Forms */
  .cta-group {
    width: 100% !important;
  }
}
