/* Home page: hero, expertise cards, service columns and client logos.
 *
 * Ported from the four CSS Modules that app/page.tsx composes:
 *   Hero.module.css, Applications.module.css, Services.module.css and
 *   CustomerLogos.module.css.
 *
 * Every class carries a `home-` prefix, for the reason recorded at the top of
 * dienst.css: CSS Modules hashed these names per file, so `.button`, `.grid`
 * and `.inner` were safe there and are far too generic as global CSS. No class
 * name collides across the four modules - checked, not assumed.
 *
 * Regenerate rather than hand-edit. For each module:
 *
 *   node tools/port-css.mjs ../Website1/components/sections/<M>.module.css home-
 *
 * then `node tools/check-css.mjs <source> <this file> home-`, which must report
 * every rule identical.
 *
 * The only deliberate change is the two background-image URLs, which point at
 * assets/img/ here rather than at the site root the React build serves from.
 */


/* --- hero (Hero.module.css) --- */
.home-hero { background-image: url('../img/hero-landscape.webp'); background-position: center; background-size: cover; color: white; display: grid; grid-template-columns: minmax(0,1fr) minmax(380px,.82fr); min-height: 525px; overflow: hidden; padding: clamp(3.5rem,7vw,6.25rem) 6vw; position: relative; }
.home-hero::before { background-image: linear-gradient(rgba(139,190,98,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(139,190,98,.08) 1px,transparent 1px); background-size: 42px 42px; content: ''; inset: 0; mask-image: linear-gradient(90deg,transparent 20%,black 100%); position: absolute; }
.home-hero-shade { background: linear-gradient(90deg,rgba(3,16,12,.88) 0%,rgba(4,17,13,.67) 43%,rgba(4,17,13,.24) 75%,rgba(4,17,13,.12) 100%); inset: 0; position: absolute; }
.home-hero-content { max-width: 660px; position: relative; z-index: 2; }
.home-hero-title { font-size: clamp(3.25rem,6.2vw,5.9rem); font-weight: 420; letter-spacing: -.045em; line-height: .95; margin: 0; }
.home-hero-title span { color: #84c42e; }
.home-hero h1 { font-size: clamp(1.65rem,3.2vw,3rem); font-weight: 510; letter-spacing: -.045em; line-height: 1.1; margin: 1rem 0 1.6rem; }
.home-hero-rule { background: #83c12d; display: block; height: 4px; margin-bottom: 1.6rem; width: 74px; }
.home-hero-intro { font-size: clamp(1rem,1.35vw,1.23rem); line-height: 1.55; margin: 0; max-width: 640px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.home-button { align-items: center; border: 1px solid transparent; border-radius: 999px; display: inline-flex; font-weight: 650; gap: 1.25rem; justify-content: center; min-height: 50px; padding: .75rem 1.35rem; transition: transform 180ms ease,background 180ms ease; }
.home-button:hover { transform: translateY(-2px); }
.home-button-primary { background: linear-gradient(135deg,#78b92d,#4c9715); box-shadow: 0 12px 28px rgba(31,86,13,.35); }
.home-button-ghost { border-color: rgba(255,255,255,.82); background: rgba(4,20,14,.34); }
.home-hero-visual { align-self: stretch; min-height: 330px; position: relative; z-index: 2; }
.home-data-steps { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); background: linear-gradient(135deg,rgba(2,15,10,.23),rgba(4,20,14,.08)); border: 0; border-radius: .8rem; box-shadow: 0 12px 30px rgba(0,0,0,.08),inset 0 1px 0 rgba(255,255,255,.04); list-style: none; margin: 0; overflow: hidden; padding: 0; position: absolute; right: clamp(1.5rem,5vw,5rem); top: clamp(4.1rem,7.35vw,6.625rem); width: min(44%,220px); }
.home-data-steps li { border-bottom: 1px solid rgba(221,239,210,.09); color: rgba(255,255,255,.92); font-size: .95rem; font-weight: 500; letter-spacing: .01em; padding: .85rem 1rem; transition: background 250ms ease-out,box-shadow 250ms ease-out,padding 250ms ease-out; }
.home-data-steps li:last-child { border-bottom: 0; }
.home-data-steps li:hover { background: linear-gradient(90deg,rgba(126,190,47,.11),rgba(126,190,47,.035)); box-shadow: inset 3px 0 0 rgba(139,201,67,.38),inset 0 0 22px rgba(112,180,42,.035); padding-bottom: .95rem; padding-top: .78rem; }
.home-step-heading { align-items: center; display: flex; gap: .85rem; transition: transform 250ms ease-out; }
.home-data-steps li:hover .home-step-heading { transform: translateY(-2px); }
.home-step-description { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-3px); transition: grid-template-rows 250ms ease-out,opacity 210ms ease-out,transform 250ms ease-out; }
.home-step-description p { color: rgba(235,246,228,.76); font-size: .72rem; font-weight: 400; line-height: 1.38; margin: 0; min-height: 0; overflow: hidden; padding-left: 2.15rem; }
.home-data-steps li:hover .home-step-description { grid-template-rows: 1fr; opacity: 1; transform: translateY(0); }
.home-data-steps li:hover .home-step-description p { margin-top: .38rem; }
.home-data-steps svg { color: #b2db78; height: 21px; opacity: .92; stroke-width: 1.8; width: 21px; }

@media (max-width: 1080px) {
  .home-hero { grid-template-columns: minmax(0,1fr) minmax(320px,.72fr); }
}

@media (max-width: 760px) {
  .home-hero { background-image: url('../img/hero-landscape-mobile.webp'); display: block; min-height: auto; padding: 4rem 1.25rem 3rem; }
  .home-hero-title { font-size: clamp(3.35rem,18vw,5rem); }
  .home-hero h1 { font-size: 1.75rem; }
  .home-hero-visual { margin-top: 3rem; min-height: 310px; }
  .home-data-steps { right: 1.25rem; top: 0; width: 47%; }
}

/* --- expertise cards (Applications.module.css) --- */
.home-applications { background: var(--paper); padding: clamp(0rem,calc(6vw - 3.25rem),2.25rem) 4.5vw 1.75rem; }
.home-section-heading { margin: 0 auto 2.25rem; max-width: 1200px; text-align: center; }
.home-section-heading p { color: var(--green-deep); font-size: .78rem; font-weight: 750; letter-spacing: .12em; margin: .875rem 0 0; text-transform: uppercase; }
.home-section-heading h2 { font-size: clamp(1.75rem,3.2vw,2.8rem); letter-spacing: -.04em; line-height: 1.1; margin: 0; }
.home-application-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 auto; max-width: 1390px; }
.home-application-card { background: rgba(255,255,255,.88); border: 1px solid rgba(54,126,18,.14); border-radius: .875rem; display: flex; flex-direction: column; min-height: 250px; padding: 1.5rem; transition: border-color 180ms ease,background-color 180ms ease; }
.home-application-card:hover { background: #fff; border-color: rgba(54,126,18,.28); }
.home-card-heading { align-items: center; display: flex; gap: 1rem; }
.home-card-heading h3 { font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.25; margin: 0; }
.home-card-icon { background: var(--green-deep); border-radius: 50%; color: #fff; display: grid; flex: 0 0 auto; height: 58px; place-items: center; width: 58px; }
.home-card-icon svg { height: 27px; stroke-width: 1.8; width: 27px; }
.home-card-icon-green { background: var(--forest); }
.home-card-icon-lime { background: var(--lime); }
.home-card-icon-blue { background: var(--blue); }
.home-card-icon-orange { background: var(--orange); }
.home-card-body { display: flex; flex: 1; flex-direction: column; padding-top: 1.15rem; }
.home-card-body p { color: var(--ink-muted); font-size: .92rem; line-height: 1.52; margin: 0; }
.home-card-body a { align-items: center; align-self: flex-start; color: var(--green-deep); display: inline-flex; font-size: .9rem; font-weight: 650; gap: .45rem; margin-top: auto; padding-top: 1.5rem; }
.home-card-body a svg { transition: transform 180ms ease; }
.home-card-body a:hover svg { transform: translateX(3px); }

@media (max-width: 1080px) {
  .home-application-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .home-applications { padding-left: 1rem; padding-right: 1rem; }
  .home-application-grid { grid-template-columns: 1fr; }
  .home-application-card { min-height: 230px; }
}

/* --- service columns (Services.module.css) --- */
.home-services {
  background: var(--green-soft);
  padding: clamp(2.25rem, 3.25vw, 3.25rem) 4.5vw clamp(4.75rem, 8vw, 7.5rem);
}

.home-heading {
  margin: 0 auto clamp(2.25rem, 4vw, 3.5rem);
  max-width: 820px;
  text-align: center;
}

.home-heading h2 {
  color: var(--green-deep);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1390px;
}

.home-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 clamp(1.45rem, 2.25vw, 2.5rem);
}

.home-column:first-child { padding-left: 0; }
.home-column:last-child { padding-right: 0; }
.home-column + .home-column { border-left: 1px solid var(--line); }

.home-accent {
  display: block;
  height: 3px;
  margin-bottom: 1.25rem;
  width: 64px;
}

.home-accent-green { background: var(--forest); }
.home-accent-lime { background: var(--lime); }
.home-accent-blue { background: var(--blue); }
.home-accent-orange { background: var(--orange); }

.home-column h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin: 0;
}

.home-column > p {
  color: var(--ink-muted);
  font-size: .92rem;
  line-height: 1.55;
  margin: .8rem 0 1.15rem;
  min-height: 4.3em;
}

.home-links {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-links a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: .9rem;
  gap: 1rem;
  justify-content: space-between;
  line-height: 1.35;
  padding: .85rem 0;
  transition: color 180ms ease;
}

.home-arrow {
  color: var(--green-deep);
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.home-links a:hover,
.home-all:hover { color: var(--green-deep); }

.home-links a:hover .home-arrow,
.home-all:hover .home-arrow { transform: translateX(3px); }

.home-all {
  align-items: center;
  align-self: flex-start;
  color: var(--green-deep);
  display: inline-flex;
  font-size: .9rem;
  font-weight: 680;
  gap: .65rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

@media (max-width: 1080px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-column { padding: 0 2rem 3.5rem; }
  .home-column:first-child { padding-left: 0; }
  .home-column:nth-child(2) { padding-right: 0; }
  .home-column:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 3.5rem;
  }
  .home-column:nth-child(4) {
    border-top: 1px solid var(--line);
    padding-right: 0;
    padding-top: 3.5rem;
  }
}

@media (max-width: 760px) {
  .home-services { padding-left: 1rem; padding-right: 1rem; }
  .home-heading { text-align: left; }
  .home-grid { grid-template-columns: 1fr; }
  .home-column,
  .home-column:first-child,
  .home-column:nth-child(2),
  .home-column:nth-child(3),
  .home-column:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 2.25rem 0;
  }
  .home-column:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .home-column:last-child { padding-bottom: 0; }
  .home-column > p { min-height: 0; }
}

/* --- client logos (CustomerLogos.module.css) --- */
.home-clients {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: clamp(2.75rem, 5vw, 4.75rem) 4.5vw;
}

.home-inner {
  margin: 0 auto;
  max-width: 1390px;
}

.home-inner > h2 {
  color: var(--green-deep);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.5;
  margin: 0 0 .85rem;
  text-align: center;
  text-transform: uppercase;
}

.home-inner > p {
  color: var(--ink-muted);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0 auto clamp(2rem, 3.5vw, 3rem);
  text-align: center;
}

.home-inner ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.home-inner li {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding: 1.25rem clamp(1rem, 2vw, 2rem);
}

.home-inner li:not(:nth-child(5n + 1)) {
  border-left: 1px solid var(--line);
}

.home-inner li:nth-last-child(-n + 5) {
  border-bottom: 0;
}

.home-inner figure {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  height: 100%;
  justify-content: center;
  margin: 0;
  text-align: center;
}

.home-logoArea {
  align-items: center;
  display: flex;
  height: 64px;
  justify-content: center;
  width: 100%;
}

.home-logoArea img {
  height: 52px;
  object-fit: contain;
  width: min(150px, 100%);
}

.home-logoArea .home-logoWide {
  height: 48px;
  width: min(172px, 100%);
}

.home-logoArea .home-logoMark {
  height: 54px;
  width: 62px;
}

.home-logoArea .home-logoGkb {
  height: 58px;
  width: 58px;
}

.home-logoArea .home-logoRotterdam {
  height: 58px;
  width: min(190px, 100%);
}

.home-logoArea .home-logoBase {
  background: #172b3f;
  border-radius: .25rem;
  box-sizing: content-box;
  height: 34px;
  padding: .55rem .75rem;
  width: min(146px, calc(100% - 1.5rem));
}

.home-wordmark {
  align-items: center;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.home-wordmark strong {
  font-size: 1.45rem;
  font-weight: 780;
  letter-spacing: -.04em;
}

.home-wordmark small {
  color: var(--ink-muted);
  font-size: .66rem;
  font-weight: 680;
  letter-spacing: .08em;
  margin-top: .38rem;
  text-transform: uppercase;
}

.home-inner figcaption {
  color: var(--ink-muted);
  font-size: .74rem;
  line-height: 1.35;
  margin-top: auto;
}

@media (max-width: 1080px) {
  .home-inner ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-inner li:not(:nth-child(5n + 1)) { border-left: 0; }
  .home-inner li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
  .home-inner li:nth-last-child(-n + 5) { border-bottom: 1px solid var(--line); }
  .home-inner li:nth-last-child(-n + 3) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .home-clients { padding-left: 1rem; padding-right: 1rem; }
  .home-inner ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-inner li,
  .home-inner li:not(:nth-child(3n + 1)) { border-left: 0; }
  .home-inner li:not(:nth-child(2n + 1)) { border-left: 1px solid var(--line); }
  .home-inner li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .home-inner li:last-child {
    border-bottom: 0;
    grid-column: 1 / -1;
  }
}
