/* ========================================
   Les Berges et des Arbres — Landing Page
   ======================================== */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: #1A1A1A;
  background: #F5F1EB;
  overflow-x: hidden;
}

/* ========== Variables ========== */
:root {
  --forest: #2C4A2E;
  --forest-dark: #1A2E1C;
  --forest-light: #3D6B40;
  --teal: #4A8B8C;
  --teal-light: #6BB5B0;
  --teal-dark: #2D6A6B;
  --cream: #F5F1EB;
  --cream-dark: #E8E0D4;
  --sand: #C4B59A;
  --sand-light: #D4C9B2;
  --bark: #5C3D2E;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #4A4A4A;
}

/* ========== Typography ========== */
.font-sans { font-family: 'DM Sans', sans-serif; }

/* ========== Grain Overlay ========== */
.grain-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========== Floating Leaves ========== */
.floating-leaf {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
.leaf-1 { top: 15%; right: 3%; width: 40px; opacity: 0.4; animation: float 8s ease-in-out infinite; }
.leaf-2 { top: 55%; left: 2%; width: 30px; opacity: 0.3; animation: float 10s ease-in-out infinite 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* ========== Navigation ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.4s;
  padding: 20px 0;
}
.navbar.scrolled {
  background: rgba(44,74,46,0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
}
.nav-desktop {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--teal-light);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--teal-light); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--forest-dark);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu .nav-link { font-size: 22px; }
.mobile-menu .nav-logo-mobile { height: 80px; width: auto; margin-bottom: 16px; }

/* ========== Buttons ========== */
.cta-btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(74,139,140,0.3);
}
.cta-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74,139,140,0.4);
}
.cta-white {
  background: var(--white);
  color: var(--forest);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.cta-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  border: 1.5px solid rgba(245,241,235,0.25);
  backdrop-filter: blur(4px);
}
.cta-ghost:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.cta-outline-light {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.cta-outline-light:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ========== Fade-up Animation ========== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d25 { transition-delay: 0.25s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d35 { transition-delay: 0.35s; }
.fade-up.d4 { transition-delay: 0.4s; }
.fade-up.d45 { transition-delay: 0.45s; }
.fade-up.d5 { transition-delay: 0.5s; }

/* Fallback: if JS fails, show content */
noscript ~ main .fade-up { opacity: 1; transform: none; }

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  background: linear-gradient(165deg, #4E7D50 0%, var(--forest) 35%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
}
.hero-bg-circle-1 {
  top: 10%; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(107,181,176,0.08) 0%, transparent 70%);
}
.hero-bg-circle-2 {
  bottom: 5%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(61,107,64,0.1) 0%, transparent 70%);
}
.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-logo { height: 230px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.15)); }
.hero-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-light);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-tagline-line {
  width: 30px; height: 1.5px;
  background: var(--teal-light);
  display: inline-block;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero h1 em { color: var(--teal-light); font-style: italic; }
.hero-sub {
  font-size: 20px;
  color: rgba(245,241,235,0.8);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 16px;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-river-lines {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: 200px;
  opacity: 0.1;
}

/* ========== River Flow Separator ========== */
.river-flow { display: flex; justify-content: center; margin: 12px auto 40px; }

/* ========== Stats ========== */
.stats {
  background: var(--white);
  padding: 48px 24px;
  border-bottom: 1px solid var(--cream-dark);
}
.stats-row {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: center;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}
.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* ========== Wave Divider ========== */
.wave-divider { line-height: 0; margin-top: -2px; }
.wave-divider.flip { transform: rotate(180deg); margin-top: 0; margin-bottom: -2px; }
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ========== Approach Section ========== */
.approach { padding: 100px 24px; background: var(--cream); }
.approach-inner { max-width: 1000px; margin: 0 auto; }
.section-overline {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  text-align: center;
}
.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--forest-dark);
  margin-top: 12px;
  line-height: 1.2;
  text-align: center;
}
.section-title em { color: var(--teal); font-style: italic; }
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 60px;
}
.approach-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 24px;
}
.approach-text strong { color: var(--forest); }
.approach-quote {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  border-left: 4px solid var(--teal);
  box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}
.approach-quote p {
  font-size: 18px;
  font-style: italic;
  color: var(--forest);
  line-height: 1.7;
  font-weight: 400;
}
.approach-quote-attr {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.approach-quote-attr span:first-child {
  width: 40px; height: 2px; background: var(--teal);
}
.approach-quote-attr span:last-child {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* ========== Services ========== */
.services { padding: 80px 24px 100px; background: var(--white); }
.services-inner { max-width: 1100px; margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(44,74,46,0.08);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(44,74,46,0.12);
  border-color: var(--teal);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--forest), var(--teal));
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card-icon { margin-bottom: 20px; }
.service-card h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.service-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-card ul { list-style: none; padding: 0; }
.service-card li {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: var(--text);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.service-card li + li { border-top: 1px solid var(--cream-dark); }
.service-card li span { color: var(--teal); font-size: 16px; line-height: 1.4; flex-shrink: 0; }

/* ========== Difference ========== */
.difference {
  padding: 100px 24px;
  background: linear-gradient(170deg, var(--forest-dark) 0%, var(--forest) 100%);
  position: relative;
}
.difference-inner { max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
.difference .section-overline { color: var(--teal-light); }
.difference .section-title { color: var(--white); }
.difference .section-title em { color: var(--teal-light); }
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 60px;
}
.diff-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 12px;
  transition: all 0.3s;
}
.diff-item:hover { background: rgba(74,139,140,0.05); }
.diff-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(107,181,176,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.diff-item h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.diff-item p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245,241,235,0.7);
  line-height: 1.6;
}

/* ========== Process ========== */
.process { padding: 80px 24px 100px; background: var(--cream); }
.process-inner { max-width: 900px; margin: 0 auto; }
.process-wrapper { position: relative; margin-top: 70px; }
.process-line {
  position: absolute;
  top: 28px; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--sand), var(--teal), var(--forest));
  opacity: 0.3;
  z-index: 1;
}
.process-steps { display: flex; gap: 20px; }
.process-step { text-align: center; position: relative; flex: 1; padding: 0 20px; }
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--teal));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(44,74,46,0.2);
}
.process-step h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 10px;
}
.process-step p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== CTA Section ========== */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(165deg, var(--teal-dark) 0%, var(--forest) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-ripple-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-ripple {
  position: absolute;
  top: -75px; left: -75px;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 1.5px solid rgba(107,181,176,0.15);
}
.cta-ripple:nth-child(1) { animation: ripple 4s ease-out infinite 0.8s; }
.cta-ripple:nth-child(2) { animation: ripple 5s ease-out infinite 1.6s; }
.cta-ripple:nth-child(3) { animation: ripple 6s ease-out infinite 2.4s; }

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.cta-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.cta-section .section-title { color: var(--white); font-size: 40px; margin-bottom: 20px; }
.cta-section .section-title em { color: var(--teal-light); }
.cta-sub {
  font-size: 18px;
  color: rgba(245,241,235,0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cta-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(245,241,235,0.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

/* ========== Footer ========== */
.footer { background: var(--forest-dark); padding: 60px 24px 40px; }
.footer-inner { max-width: 1000px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245,241,235,0.5);
  line-height: 1.7;
  max-width: 320px;
}
.footer h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}
.footer-nav a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245,241,235,0.6);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--teal-light); }
.footer address {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245,241,235,0.6);
  line-height: 1.8;
  font-style: normal;
}
.footer address a {
  text-decoration: none;
  transition: color 0.3s;
}
.footer address a.email-link { color: var(--teal-light); }
.footer address a.email-link:hover { color: var(--teal); }
.footer address a.phone-link { color: rgba(245,241,235,0.6); }
.footer address a.phone-link:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(245,241,235,0.08);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(245,241,235,0.3);
}

/* ========== Focus Styles ========== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== RESPONSIVE — Tablet ========== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 46px; }
  .section-title { font-size: 36px; }
}

/* ========== RESPONSIVE — Mobile ========== */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 18px; }
  .hero-logo { height: 130px; }
  .section-title { font-size: 32px; }
  .nav-logo img { height: 50px; }

  .nav-desktop { display: none; }
  .burger { display: flex; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .cta-btn { text-align: center; justify-content: center; }

  .stats-row { flex-direction: column; gap: 24px; }

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

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

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

  .process-steps { flex-direction: column; gap: 40px; }
  .process-line { display: none; }

  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .cta-btn { text-align: center; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-desc { margin: 0 auto; }

  .grain-overlay { display: none; }
}

@media (min-width: 769px) {
  .burger { display: none; }
}
