/* ============================================================
   SRM Bouw — homepage (2026-09-27 redesign)
   Full-bleed photo hero · trust/intro · project bento (swipe
   carousel on phones) · promises panel · contact CTA card.
   Everything is prefixed .hx- so it can't leak into other pages.
   ============================================================ */

.hx-h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -.015em; }
.hx-lead { margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #4A433A; max-width: 50ch; }

/* ---------------------------------------------------------- HERO */
.hx-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 12px; border-radius: 34px;
  min-height: calc(100vh - 24px); min-height: calc(100svh - 24px);
  display: flex; align-items: flex-end;
  background: var(--ink); color: #fff;
  box-shadow: 0 40px 90px -40px rgba(16,14,11,.6);
}
.hx-hero__stage { position: absolute; inset: 0; z-index: -2; }
.hx-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hx-slide.is-on { opacity: 1; }
.hx-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.hx-slide.is-on img { animation: hxKen calc(var(--hx-dur, 6000ms) + 1600ms) linear forwards; }
@keyframes hxKen { from { transform: scale(1.14) translate3d(0, 1%, 0); } to { transform: scale(1.02) translate3d(0, -1%, 0); } }

.hx-hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16,14,11,.45) 0%, rgba(16,14,11,0) 26%, rgba(16,14,11,.18) 50%, rgba(16,14,11,.9) 100%),
    radial-gradient(90% 70% at 0% 100%, rgba(16,14,11,.55), transparent 70%);
}
.hx-hero__inner { padding-top: 170px; padding-bottom: clamp(26px, 3.4vw, 44px); }

.hx-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 12px; border-radius: 100px;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: hxUp .9s var(--ease) .1s both;
}
.hx-chip i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: hxPulse 2.2s infinite; }
@keyframes hxPulse { 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.hx-hero__h {
  max-width: 11ch;
  font-size: clamp(3rem, 7.4vw, 7rem); line-height: .96; letter-spacing: -.025em;
  text-shadow: 0 2px 40px rgba(16,14,11,.25);
}
.hx-hero__h .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hx-hero__h .w > * { display: inline-block; animation: hxRise 1s var(--ease) both; }
.hx-hero__h .w:nth-child(1) > * { animation-delay: .15s; }
.hx-hero__h .w:nth-child(2) > * { animation-delay: .27s; }
.hx-hero__h .w:nth-child(3) > * { animation-delay: .39s; }
.hx-hero__h em { font-style: normal; color: #A9BCFF; }
@keyframes hxRise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hxUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hx-hero__sub { margin-top: 22px; max-width: 44ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: rgba(255,255,255,.84); animation: hxUp .9s var(--ease) .55s both; }
.hx-hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; animation: hxUp .9s var(--ease) .68s both; }
.hx-btn-glass {
  --bg: rgba(255,255,255,.14); --fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hx-btn-glass::before { background: #25D366; }
.hx-btn-glass svg { position: relative; z-index: 2; }
.hx-btn-glass:hover { box-shadow: 0 14px 30px -10px rgba(37,211,102,.55); }

.hx-hero__foot {
  margin-top: clamp(34px, 5vw, 60px); padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  animation: hxUp .9s var(--ease) .8s both;
}
.hx-rate { display: inline-flex; align-items: center; gap: 12px; font-size: .95rem; color: rgba(255,255,255,.85); }
.hx-rate b { color: #fff; font-family: var(--font-display); font-weight: 700; }
.hx-rate__stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }

.hx-cap { display: flex; align-items: center; gap: 16px; color: #fff; font-weight: 700; font-size: .95rem; min-width: 0; }
.hx-cap__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-cap__t::after { content: " →"; opacity: .6; transition: opacity .3s; }
.hx-cap:hover .hx-cap__t::after { opacity: 1; }
.hx-cap__bars { display: flex; gap: 6px; flex: none; }
.hx-bar { position: relative; width: 34px; height: 18px; cursor: pointer; }
.hx-bar::before, .hx-bar i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
.hx-bar::before { background: rgba(255,255,255,.28); }
.hx-bar i { background: #fff; transform: scaleX(0); transform-origin: left; }
.hx-bar.is-done i { transform: scaleX(1); }
.hx-bar.is-on i { animation: hxFill var(--hx-dur, 6000ms) linear forwards; }
@keyframes hxFill { to { transform: scaleX(1); } }

/* ---------------------------------------------------------- TRUST / INTRO */
.hx-trust { padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); }
.hx-trust__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.hx-trust .hx-h2 { margin-top: 18px; max-width: 17ch; }
.hx-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 8px; border-radius: 26px;
  background: rgba(251,247,240,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 18px 50px -24px rgba(16,14,11,.3);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hx-stats > div { padding: 20px 16px; border-radius: 19px; background: var(--paper); }
.hx-stats b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; color: var(--ink); }
.hx-stats span { display: block; margin-top: 8px; font-size: .85rem; color: var(--muted); line-height: 1.3; }
.hx-ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.hx-ratings .rating-card { width: auto; min-width: 0; }

/* ---------------------------------------------------------- WORK / BENTO */
.hx-work { padding-bottom: clamp(80px, 10vw, 140px); }
.hx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(26px, 3.5vw, 42px); }
.hx-head .hx-h2 { margin-top: 16px; }
.hx-more {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 100px; font-weight: 800;
  background: var(--ink); color: var(--cream); transition: background .3s var(--ease), transform .3s var(--ease);
}
.hx-more:hover { background: var(--ember); }
.hx-more svg { transition: transform .3s var(--ease); }
.hx-more:hover svg { transform: translateX(4px); }

.hx-bento {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 18vw, 262px); gap: 14px;
}
.hx-tile {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 24px; background: var(--ink-2); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 20px 50px -30px rgba(16,14,11,.55);
}
.hx-tile--big { grid-column: span 2; grid-row: span 2; }
.hx-tile--all { grid-column: span 2; }
.hx-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hx-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,14,11,.15) 0%, rgba(16,14,11,0) 35%, rgba(16,14,11,.82) 100%); }
.hx-tile:hover img { transform: scale(1.06); }
.hx-tile__cat {
  align-self: flex-start; margin: 14px; padding: 6px 12px; border-radius: 100px;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  background: rgba(16,14,11,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hx-tile__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px; }
.hx-tile__foot > span:first-child { min-width: 0; }
.hx-tile__t { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.15; }
.hx-tile--big .hx-tile__t { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.hx-tile small { display: block; margin-top: 6px; font-size: .82rem; opacity: .75; }
.hx-tile__go {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: var(--ink); transition: background .3s var(--ease), color .3s var(--ease), transform .4s var(--ease);
}
.hx-tile:hover .hx-tile__go { background: var(--ember); color: #fff; transform: rotate(-45deg); }

.hx-tile--all { background: linear-gradient(135deg, var(--ember) 0%, var(--ember-d) 100%); }
.hx-tile--all::after { background: radial-gradient(80% 120% at 100% 0%, rgba(255,255,255,.18), transparent 60%); }
.hx-tile__big { padding: 18px 20px 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 5.5vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.hx-tile--all .hx-tile__big svg { width: .7em; height: .7em; transform: rotate(-45deg); opacity: .9; }

.hx-work__hint { display: none; }

/* ---------------------------------------------------------- PROMISES */
.hx-why { padding-bottom: clamp(80px, 10vw, 140px); }
.hx-why__panel {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 36px; padding: clamp(30px, 5.5vw, 76px);
  background: var(--ink); color: var(--cream);
  box-shadow: 0 50px 100px -50px rgba(16,14,11,.7);
}
.hx-why__glow { position: absolute; z-index: -1; width: 620px; height: 620px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(31,63,191,.55), transparent 65%); filter: blur(20px); }
.hx-why__head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.hx-promises { list-style: none; margin-top: clamp(34px, 4.5vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hx-promise {
  position: relative; display: flex; flex-direction: column;
  min-height: 270px; padding: 26px 24px; border-radius: 24px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.hx-promise:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(169,188,255,.3); }
.hx-promise__n { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(251,247,240,.32); }
.hx-promise__ic { position: absolute; top: 24px; right: 22px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ember); color: #fff; box-shadow: 0 10px 24px -8px rgba(31,63,191,.8); }
.hx-promise h3 { margin-top: auto; padding-top: 30px; font-size: 1.12rem; line-height: 1.2; }
.hx-promise p { margin-top: 10px; font-size: .95rem; line-height: 1.55; color: rgba(251,247,240,.62); }

/* ---------------------------------------------------------- CTA */
.hx-cta { padding-bottom: clamp(80px, 10vw, 140px); }
.hx-cta__card {
  display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden;
  border-radius: 36px; background: var(--ink); color: var(--cream);
  box-shadow: 0 50px 100px -50px rgba(16,14,11,.7);
}
.hx-cta__photo { position: relative; min-height: 420px; }
.hx-cta__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-cta__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--ink) 100%); }
.hx-cta__copy { padding: clamp(30px, 5vw, 64px); display: flex; flex-direction: column; gap: 16px; }
.hx-cta__copy p { color: rgba(251,247,240,.68); max-width: 46ch; }
.hx-cta__btns { margin-top: 10px; display: grid; gap: 10px; }
.hx-act {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: 18px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.hx-act:hover { background: rgba(255,255,255,.11); transform: translateX(4px); }
.hx-act > svg:first-child { flex: none; width: 42px; height: 42px; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.1); }
.hx-act--wa > svg:first-child { background: #25D366; color: #fff; }
.hx-act span { display: flex; flex-direction: column; min-width: 0; }
.hx-act b { font-weight: 800; font-size: 1.02rem; color: #fff; }
.hx-act small { font-size: .84rem; color: rgba(251,247,240,.6); }
.hx-act--quote { background: var(--ember); box-shadow: none; justify-content: space-between; }
.hx-act--quote:hover { background: #2A4DD6; }
.hx-act--quote small { color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------- tablet */
@media (max-width: 1040px) {
  .hx-trust__grid { grid-template-columns: 1fr; }
  .hx-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .hx-promises { grid-template-columns: repeat(2, 1fr); }
  .hx-hero__inner { padding-top: 190px; }
}

/* ---------------------------------------------------------- phone */
@media (max-width: 760px) {
  .hx-hero { margin: 8px; border-radius: 28px; min-height: calc(100vh - 16px); min-height: calc(100svh - 16px); }
  .hx-hero__inner { padding-top: 160px; padding-bottom: 22px; }
  .hx-hero__h { font-size: clamp(2.9rem, 15vw, 4.6rem); }
  .hx-hero__h, .hx-hero__h * { overflow-wrap: normal; word-break: normal; }
  .hx-hero__sub { font-size: 1rem; }
  .hx-hero__cta { flex-direction: column; }
  .hx-hero__cta .btn { justify-content: center; width: 100%; padding: 1.05em 1.4em; }
  .hx-hero__foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .hx-cap { justify-content: space-between; flex-direction: row-reverse; font-size: .88rem; }

  .hx-trust { padding-top: 64px; }
  .hx-stats > div { padding: 16px 12px; }
  .hx-ratings { grid-template-columns: 1fr; }

  .hx-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hx-more { display: none; }

  /* swipe carousel */
  .hx-bento {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hx-bento::-webkit-scrollbar { display: none; }
  .hx-tile, .hx-tile--big, .hx-tile--all { flex: 0 0 80%; height: min(118vw, 470px); scroll-snap-align: start; }
  .hx-tile .hx-tile__t, .hx-tile--big .hx-tile__t { font-size: 1.35rem; }
  .hx-tile__big { font-size: 5rem; padding-top: 24px; }
  .hx-work__hint { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: .82rem; font-weight: 700; color: var(--muted); }
  .hx-dots { display: flex; gap: 5px; }
  .hx-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(16,14,11,.2); transition: width .35s var(--ease), background .35s; }
  .hx-dots i.is-on { width: 20px; background: var(--ember); }

  .hx-why__panel { border-radius: 28px; padding: 32px 18px 18px; }
  .hx-why__head { padding-inline: 6px; }
  .hx-promises { grid-template-columns: 1fr; gap: 10px; }
  .hx-promise { min-height: 0; padding: 22px 20px; }
  .hx-promise__n { font-size: 2.4rem; }
  .hx-promise__ic { top: 20px; right: 18px; width: 42px; height: 42px; }
  .hx-promise h3 { padding-top: 18px; }

  .hx-cta__card { grid-template-columns: 1fr; border-radius: 28px; }
  .hx-cta__photo { min-height: 230px; }
  .hx-cta__photo::after { background: linear-gradient(180deg, transparent 45%, var(--ink) 100%); }
  .hx-cta__copy { padding: 8px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-slide.is-on img, .hx-bar.is-on i { animation: none; }
  .hx-hero__h .w > *, .hx-chip, .hx-hero__sub, .hx-hero__cta, .hx-hero__foot { animation: none; }
}
