/* Design polish — card icons, contrast, vertical rhythm.
   Loaded after site.css and unlayered, so it wins over the generated @layer rules.
   Palette (navy #073b5c / #0a2540, blue #0799d2, green #009b4b) is unchanged. */

/* 1. Consistent line icons in the service/feature cards --------------------- */
.icon-chip svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke-width: 1.5;
}

/* 2. Contrast --------------------------------------------------------------- */
/* muted body copy: #526b78 (5.2:1 on the sky tint) -> 6.7:1 on tint, 7.3:1 on white */
:root,
body {
  --muted: #42596a;
}

/* brand blue used as text was 3.2:1 — use the existing dark brand blue (5.8:1) */
.text-\[\#0799d2\],
.card-link {
  color: #006c9f;
}

.hover\:text-\[\#009b4b\]:hover {
  color: #006d35;
}

/* lede on the green CTA band: full white + bold at 19px so it reads as AA large text */
.bg-\[\#009b4b\] .text-white\/90 {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

/* 3. Even vertical rhythm between sections ---------------------------------- */
:root {
  --section-rhythm: clamp(64px, 7vw, 96px);
}

main > section:not([data-reveal="hero"]) > .mx-auto,
.section-shell {
  padding-top: var(--section-rhythm);
  padding-bottom: var(--section-rhythm);
}

footer > .mx-auto {
  padding-top: var(--section-rhythm);
}

/* 4. Sectoren tiles (homepage) ---------------------------------------------
   Photo and text as one composition: the photo fills the whole tile, a navy
   gradient carries the copy. Palette unchanged (navy #0a2540, green #009b4b). */
#sectoren .sector-tiles {
  gap: 24px;
}

.sector-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 560px;
  padding: 32px 30px 30px;
  border-radius: 24px;
  overflow: hidden;
  background: #0a2540;
  box-shadow: 0 18px 44px -26px rgba(10, 37, 64, .55), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.sector-tile__img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}

/* gradient scrim — dense where the copy sits, clear where the photo reads */
.sector-tile::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(7, 26, 43, .96) 0%,
      rgba(7, 26, 43, .92) 34%,
      rgba(8, 32, 53, .6) 54%,
      rgba(10, 37, 64, .16) 74%,
      rgba(10, 37, 64, .34) 100%);
  transition: opacity .4s var(--ease);
}

/* 01 / 02 / 03 — the three tiles read as one numbered set */
.sector-tile__index {
  position: absolute;
  top: 26px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .92);
}

.sector-tile__index::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: #009b4b;
}

/* fixed copy zone so the three headings and links line up across the row */
.sector-tile__body {
  display: flex;
  flex-direction: column;
  min-height: 312px;
}

.sector-tile__body::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: #009b4b;
}

.sector-tile h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
}

.sector-tile .body-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .86);
}

.sector-tile__link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: transform .3s var(--ease);
}

/* whole tile is the click target */
.sector-tile__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.sector-tile:hover .sector-tile__link {
  transform: translateX(4px);
}

.sector-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -28px rgba(10, 37, 64, .7), inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.sector-tile:hover .sector-tile__img {
  transform: scale(1.06);
}

.sector-tile:hover::before {
  opacity: .92;
}

@media (max-width: 1000px) {
  .sector-tile {
    min-height: 520px;
  }
}

@media (max-width: 700px) {
  .sector-tile {
    min-height: 600px;
    padding: 30px 24px 26px;
  }

  .sector-tile__index {
    left: 24px;
  }

  .sector-tile__body {
    min-height: 0;
  }
}

/* 5. Mobile contrast in the navy "why us" band -----------------------------
   The lifted middle card only gets its light background from md: upwards; below
   that breakpoint its dark heading/body text sat on the navy panel and was
   unreadable. Keep it white until the light background actually applies. */
@media (max-width: 767px) {
  .md\:bg-slate-100.md\:text-\[\#073b5c\] {
    color: #fff;
  }

  .md\:bg-slate-100.md\:text-\[\#073b5c\] .text-slate-700 {
    color: rgba(255, 255, 255, .85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sector-tile,
  .sector-tile__img {
    transition: none;
  }

  .sector-tile:hover {
    transform: none;
  }

  .sector-tile:hover .sector-tile__img {
    transform: none;
  }
}
