:root {
  --c-primary: #292969;
  --c-primary-dark: #1F1F4F;
  --c-blue-mid: #1E5FD1;
  --c-blue-light: #29ABE2;
  --c-dark: #0D0F2B;
  --c-bg: #F6F8FC;
  --c-text: #333850;
  --c-text-light: #6b7280;
  --c-white: #ffffff;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-soft: 0 10px 30px rgba(27, 31, 107, 0.08);
  --shadow-strong: 0 20px 50px rgba(27, 31, 107, 0.18);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

section[id] { scroll-margin-top: 90px; }

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

a { color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader__logo {
  width: 64px; height: 64px;
  animation: pulse 1.1s ease-in-out infinite;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
@keyframes pulse {
  0%, 100% { transform: scale(0.85); opacity: .6; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ---------- Dust particles ---------- */
.dust {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
}
.dust span {
  position: absolute; bottom: -10px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(41, 171, 226, 0.35);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 30px)); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--c-blue-light), var(--c-blue-mid));
  color: #fff;
  box-shadow: 0 10px 25px rgba(30, 95, 209, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(30, 95, 209, 0.45); }
.btn--outline {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--outline:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }
.btn--ghost {
  background: transparent;
  color: var(--c-primary-dark);
  border: 1.5px solid rgba(46, 49, 146, 0.25);
  padding: 10px 18px;
  font-size: 0.9rem;
}
.btn--ghost:hover { background: rgba(46, 49, 146, 0.06); }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { height: 52px; width: auto; transition: height .3s ease; }
.header.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(20,20,50,0.08);
  padding: 10px 0;
}
.header.is-scrolled .header__logo { height: 42px; }
.header.is-scrolled .nav__link { color: var(--c-text); }
.header.is-scrolled .btn--ghost { color: var(--c-primary-dark); border-color: rgba(46,49,146,.3); }

.nav { display: flex; gap: 32px; }
.nav__link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: color .3s ease;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--c-blue-light);
  transition: width .3s ease;
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__call { display: flex; }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--c-text); transition: all .3s ease; }
.header:not(.is-scrolled) .nav__toggle span { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse at top right, rgba(26,63,176,0.6) 0%, transparent 55%),
    linear-gradient(160deg, rgba(13,15,43,0.93) 0%, rgba(31,31,79,0.92) 55%, rgba(41,41,105,0.88) 100%),
    url('../assets/images/hero-trowel.jpg');
  background-size: auto, auto, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
}
.hero__mountains { position: absolute; bottom: -2px; left: 0; width: 100%; height: 42%; z-index: 1; }
.mountain { transition: transform .1s linear; }
.mountain--back { fill: rgba(41, 171, 226, 0.28); }
.mountain--mid { fill: rgba(30, 95, 209, 0.55); }
.mountain--front { fill: var(--c-primary-dark); }

.hero__content { position: relative; z-index: 2; max-width: 760px; padding-top: 90px; padding-bottom: 60px; }
.hero__eyebrow {
  color: var(--c-blue-light);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
  font-size: .8rem;
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-head);
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero__title span { color: var(--c-blue-light); }
.hero__text {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 18px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span {
  width: 4px; height: 8px; border-radius: 2px; background: #fff;
  animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--c-white); padding: 58px 0; box-shadow: var(--shadow-soft); position: relative; z-index: 2; }
.trust-bar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; color: var(--c-primary-dark); }
.trust-item__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue-light), var(--c-blue-mid));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(30, 95, 209, 0.25);
}
.trust-item__icon .icon { width: 26px; height: 26px; color: #fff; }
.trust-item p { font-weight: 600; font-size: .92rem; color: var(--c-text); }

/* ---------- Section headings ---------- */
.section-eyebrow {
  color: var(--c-blue-mid);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  font-size: .78rem;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: 22px;
  position: relative;
}
.section-lead { color: var(--c-text-light); max-width: 640px; line-height: 1.7; margin-bottom: 24px; }

/* ---------- Services ---------- */
.services { padding: 130px 0 110px; text-align: center; }
.services .section-lead { margin-left: auto; margin-right: auto; }
.services__grid {
  margin-top: 60px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  text-align: left;
}
.service-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); }
.service-card__icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--c-blue-light), var(--c-blue-mid));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: transform .35s ease;
}
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.08); }
.service-card__icon svg { width: 27px; height: 27px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--c-primary-dark); margin-bottom: 12px; }
.service-card p { color: var(--c-text-light); line-height: 1.6; font-size: .95rem; }

/* ---------- Why ---------- */
.why { padding: 110px 0; background: var(--c-white); }
.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.why__visual { position: relative; height: 380px; }
.why__frame { position: relative; width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-strong); }
.why__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.why__frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(41,41,105,0.45) 0%, rgba(41,41,105,0.05) 65%);
}
.why__badge {
  position: absolute; bottom: -24px; right: -24px;
  width: 84px; height: 84px; padding: 16px;
  background: #fff; border-radius: 50%;
  box-shadow: var(--shadow-strong);
}
.why__list { list-style: none; margin: 26px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.why__list li { display: flex; align-items: flex-start; gap: 12px; color: var(--c-text); font-size: 1rem; }
.check {
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue-light), var(--c-blue-mid));
  color: #fff; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Steps ---------- */
.steps { padding: 120px 0; text-align: center; }
.steps__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: left; }
.step {
  background: var(--c-white); border-radius: var(--radius); padding: 34px 26px;
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.step__num {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 2.4rem; color: rgba(46,49,146,0.12); margin-bottom: 8px;
}
.step h3 { font-family: var(--font-head); color: var(--c-primary-dark); margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--c-text-light); font-size: .92rem; line-height: 1.6; }

/* ---------- Quote banner ---------- */
.quote-banner {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
}
.quote-banner__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(160deg, rgba(13,15,43,0.85), rgba(41,41,105,0.78)),
    url('../assets/images/cta-worker.jpg');
  background-size: cover;
  background-position: center 22%;
}
.quote-banner__text {
  position: relative;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Gallery / Avant-Après ---------- */
.gallery { padding: 120px 0; background: var(--c-white); text-align: center; }
.gallery .section-lead { margin-left: auto; margin-right: auto; }
.ba-grid {
  margin-top: 50px; max-width: 860px; margin-left: auto; margin-right: auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}

.ba {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  user-select: none;
  transition: box-shadow .3s ease;
}
.ba:hover { box-shadow: var(--shadow-strong); }
.ba__after, .ba__before {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
}
.ba__before {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px; background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}
.ba__handle::after {
  content: '⇔';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--c-blue-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; box-shadow: var(--shadow-soft);
}
.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; }
.ba__range::-moz-range-thumb { width: 34px; height: 34px; border: none; background: transparent; }

/* ---------- Contact ---------- */
.contact { padding: 120px 0 130px; text-align: center; }
.contact__head .section-lead { margin-left: auto; margin-right: auto; }
.contact__cards {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  text-align: left;
}
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--c-white); border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  text-decoration: none; color: var(--c-text);
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.contact-card--static:hover { transform: none; }
.contact-card .icon { color: var(--c-blue-mid); flex-shrink: 0; }
.contact-card__label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-light); }
.contact-card__value { display: block; font-weight: 600; color: var(--c-primary-dark); }
.contact__map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__logo { height: 54px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer__brand p { font-size: .9rem; line-height: 1.6; max-width: 260px; }
.footer__col h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { text-decoration: none; color: rgba(255,255,255,0.7); font-size: .92rem; transition: color .25s ease; }
.footer__col a:hover { color: var(--c-blue-light); }
.footer__col span { font-size: .92rem; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 22px 24px; font-size: .82rem; color: rgba(255,255,255,0.5);
  max-width: 1180px; margin: 0 auto;
}
.hooj-badge { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: rgba(255,255,255,0.5); font-size: .82rem; }
.hooj-badge__pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3);
  border-radius: 20px; padding: 3px 10px 3px 6px;
  font-size: .72rem; font-weight: 700; color: #a78bfa;
  transition: background .25s ease, transform .25s ease;
}
.hooj-badge:hover .hooj-badge__pill { background: rgba(124,58,237,.28); transform: translateY(-1px); }
.hooj-badge__mark { text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--c-blue-light), var(--c-blue-mid));
  color: #fff; box-shadow: var(--shadow-strong);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; }
  .why__visual { height: 320px; }
  .contact__cards { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: 78vw; max-width: 320px;
    background: var(--c-white); flex-direction: column; padding: 100px 32px 32px;
    transform: translateX(100%); transition: transform .4s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { color: var(--c-text) !important; font-size: 1.05rem; }
  .nav__toggle { display: flex; }
  .header__call span { display: none; }
  .header__call svg { margin: 0; }
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: left; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__content { padding-top: 120px; }
}
