/* ============================================
   style-diensten-overzicht.css
   Diensten overzicht pagina
   ============================================ */

:root {
  --color-primary: hsl(207, 90%, 50%);
  --color-primary-dark: hsl(207, 90%, 40%);
  --color-primary-light: hsl(207, 90%, 95%);
  --color-accent: hsl(145, 63%, 42%);
  --color-orange: hsl(31.51deg 100% 46.67%);
  --color-foreground: hsl(246.59deg 53.85% 33.14%);
  --color-muted: hsl(220deg 4.23% 27.34%);
  --color-background: hsl(205deg 100% 97.65%);
  --color-border: hsl(205deg 88.65% 86.12%);
  --color-secondary: hsl(210, 40%, 96%);

  --container-max: 1200px;
  --container-padding: 1rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px -4px hsla(220, 13%, 20%, 0.1);
  --shadow-card-hover: 0 8px 30px -4px hsla(207, 90%, 50%, 0.2);

  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.white {
  color: white;
}

.only-mobile {
  display: none !important;
}

.only-desktop {
  /* Geen display forceren: component-layouts zoals grid/flex moeten intact blijven. */
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding: 4rem 0 6rem;
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
}

@supports not (overflow: clip) {
  .hero {
    overflow-x: hidden;
  }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  transform: scale(1.08);
  transform-origin: center;
}

.hero::before {
  z-index: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0) 100%);
}

.hero::after {
  z-index: 0;
  background: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg-circle {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(48px);
}

.hero__bg-circle--right {
  top: -10rem;
  right: -10rem;
  background-color: hsla(207, 90%, 50%, 0.1);
}

.hero__bg-circle--left {
  bottom: -10rem;
  left: -10rem;
  background-color: hsla(145, 63%, 42%, 0.1);
}

/* Desktop hero layout: tekst + trust cards + populaire diensten */
.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(17rem, 0.85fr) minmax(18rem, 0.9fr) minmax(34rem, 2fr);
  align-items: start;
  gap: 1.5rem;
  max-width: 1400px;
  margin-top: 4rem;
}

.hero__text {
  grid-column: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  text-align: left;
}

.hero__badge {
  display: inline-flex;
  padding: 0.875rem 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-full);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero__title {
  margin-bottom: 1rem;
  color: var(--color-foreground);
  font-size: 2.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero__title-accent {
  color: var(--color-orange);
}

.hero__description {
  color: var(--color-muted);
  font-size: 1.725rem;
  line-height: 1.4;
}

/* ============================================
   TRUST CARDS
   ============================================ */

.hero__trust {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.trust-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.trust-card:hover {
  transform: scale(1.05);
}

.trust-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  border-radius: 50%;
}

.trust-card__icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.trust-card__content {
  min-width: 0;
}

.trust-card__number {
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: 700;
}

.trust-card__label {
  color: var(--color-muted);
  font-size: 1.275rem;
}

/* ============================================
   HIGHLIGHTED SERVICES IN HERO
   ============================================ */

.hero .service-card__highlighted {
  grid-column: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.hero .service-card__highlighted .service-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  position: relative;
  z-index: 1;
  padding: 4rem 0 6rem;
}

.services__header {
  margin: 10rem 0 3rem;
  text-align: center;
}

.services__title {
  margin-bottom: 0.75rem;
  color: var(--color-foreground);
  font-size: 2.875rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.services__subtitle {
  max-width: 77rem;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1.8rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.services__grid .only-mobile {
  display: flex !important;
}

.hero .only-mobile {
  display: none !important;
}

/* ============================================
   SERVICE CARD
   ============================================ */

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.service-card--featured {
  box-shadow: 0 0 0 2px hsla(207, 90%, 50%, 0.2), var(--shadow-card);
}

.service-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1.75rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.service-card__image {
  position: relative;
  height: 15rem;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.1);
}

.service-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(220, 13%, 20%, 0.6), transparent);
}

.service-card__icon {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background-color: var(--color-primary);
  border-radius: var(--radius-lg);
}

.service-card__icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

.service-card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.25rem;
}

.service-card__title {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 600;
}

.service-card__description {
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-size: 1.4rem;
  line-height: 1.6;
}

.service-card__features {
  flex-grow: 1;
  margin-bottom: 1.25rem;
  padding-inline-start: 15px;
  list-style: none;
}

.service-card__features i,
.check-icon {
  color: var(--color-accent);
}

.service-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
  font-size: 1.4rem;
}

.check-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.service-card__link:hover {
  gap: 0.75rem;
}

.service-card__link svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================
   CLIENT LOGOS
   ============================================ */

.client-logos {
  padding: 2rem 0;
  background-color: hsl(0deg 0% 98.82%);
  border-top: 1px solid hsla(220, 13%, 91%, 0.5);
  border-bottom: 1px solid hsla(220, 13%, 91%, 0.5);
}

.client-logos__title {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
  font-size: 2.875rem;
  text-align: center;
}

.client-logos__subtitle {
  text-align: center;
}

.client-logos__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.client-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 10rem;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all var(--transition-normal);
}

.client-logos__item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.client-logos__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  position: relative;
  padding: 4rem 0;
  background-color: var(--color-primary);
  overflow: hidden;
}

.cta__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url('data:image/svg+xml,<svg id="Laag_1" data-name="Laag 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><style>.cls-1{fill:none;}.cls-2{fill:%23020204;}</style></defs><rect class="cls-1" y="-11.43" width="47.24" height="54.86"/><path class="cls-2" d="M32.26,111.57c0,1.38,1.07,2,2.57,2a6.9,6.9,0,0,0,2.72-.63l.36,1.47a7.46,7.46,0,0,1-3.29.73c-2.91,0-4.47-1.54-4.47-4.14a3.94,3.94,0,0,1,4.21-4.24,3.57,3.57,0,0,1,3.85,3.91,8.2,8.2,0,0,1-.07.94Zm0-1.33h4a1.72,1.72,0,0,0-1.86-1.95A1.94,1.94,0,0,0,32.3,110.24Z"/></svg>');
  background-size: 2.5%;
}

.cta__content {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  margin-bottom: 1rem;
  color: white;
  font-size: 2.875rem;
  font-weight: 700;
}

.cta__description {
  margin-bottom: 2rem;
  color: white;
  font-size: 1.8rem;
}

.cta__buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn--white {
  color: var(--color-primary);
  background-color: white;
}

.btn--white:hover {
  color: white;
  background-color: var(--color-foreground);
}

.btn--outline {
  color: white;
  background-color: transparent;
  border-color: white;
}

.btn--outline:hover {
  color: var(--color-primary);
  background-color: white;
}

/* ============================================
   AUDIENCES
   ============================================ */

.audiences {
  padding: 4rem 0;
  background-color: var(--color-secondary);
}

.audiences__header {
  margin-bottom: 3rem;
  text-align: center;
}

.audiences__title {
  margin-bottom: 0.75rem;
  color: var(--color-foreground);
  font-size: 2.875rem;
  font-weight: 700;
}

.audiences__subtitle {
  max-width: 77rem;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1.8rem;
}

.audiences__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.audience-card,
.audience-card--link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 2rem;
  color: inherit;
  text-align: center;
  text-decoration: none;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.audience-card:hover,
.audience-card--link:hover {
  border-color: hsla(207, 90%, 50%, 0.5);
  box-shadow: var(--shadow-card-hover);
}

.audience-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 10rem;
  margin: 0 auto 1rem;
  color: var(--color-primary);
  font-size: 2.5rem;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.audience-card:hover .audience-card__icon,
.audience-card--link:hover .audience-card__icon {
  color: white;
  background-color: var(--color-primary);
}

.audience-card__icon svg {
  width: 3.75rem;
  height: 3.75rem;
}

.audience-card__title {
  width: 100%;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
  font-size: 1.4rem;
  font-weight: 600;
}

.audience-card__description {
  width: 100%;
  color: var(--color-muted);
  font-size: 1.5rem;
  line-height: 1.5;
}

.audience-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: inherit;
}

.audience-card__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 640px) {
  .cta__buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-logos__grid {
    gap: 3rem;
  }

  .client-logos__item {
    width: 20rem;
  }

  .audience-card__title {
    font-size: 1.8rem;
  }

  .audience-card__description {
    font-size: 1.4rem;
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .client-logos__grid {
    gap: 4rem;
  }

  .hero::before {
    background-attachment: fixed;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .hero__content {
    grid-template-columns: minmax(15rem, 0.8fr) minmax(16rem, 0.8fr) minmax(30rem, 1.8fr);
    gap: 1rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__description {
    font-size: 1.45rem;
  }

  .trust-card {
    gap: 1rem;
    padding: 1rem;
  }

  .trust-card__icon {
    width: 4.75rem;
    height: 4.75rem;
  }

  .trust-card__number {
    font-size: 2.1rem;
  }

  .trust-card__label {
    font-size: 1.1rem;
  }
}

@media (max-width: 1400px) {
  .audiences__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .audiences__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: var(--container-max);
  }

  .hero__text {
    max-width: 100%;
    margin: 0 0 1.5rem;
  }

  .hero__trust {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .trust-card {
    width: 100%;
  }

  .hero .service-card__highlighted {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__header {
    margin-top: 5rem;
  }

  .hero::before {
    background-attachment: scroll;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero__content {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
    align-items: start;
    gap: 2rem;
  }

  .hero__text {
    grid-column: 1;
    max-width: none;
    margin: 0;
  }

  .hero__trust {
    grid-column: 2;
    width: 100%;
    max-width: none;
  }

  .hero .service-card__highlighted {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 992px) {
  .audiences__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .only-mobile {
    display: block !important;
  }

  .only-desktop {
    display: none !important;
  }

  .services__grid .only-mobile {
    display: flex !important;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero::before {
    background-attachment: scroll;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0) 92%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0) 92%);
  }

  .hero__description,
  .services__subtitle {
    font-size: 1.75rem;
  }

  .trust-card {
    gap: 1rem;
    padding: 1rem;
  }

  .trust-card__icon {
    width: 4.5rem;
    height: 4.5rem;
  }

  .trust-card__icon svg {
    width: 2rem;
    height: 2rem;
  }

  .trust-card__number {
    font-size: 2rem;
  }

  .trust-card__label {
    font-size: 1.1rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__trust {
    flex-direction: row;
    gap: 12px;
    padding-bottom: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
  }

  .hero__trust .trust-card {
    flex: 0 0 calc(50% - 6px);
    width: auto !important;
    max-width: calc(50% - 6px);
    scroll-snap-align: start;
  }

  .trust-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .trust-dots.is-hidden {
    display: none;
  }

  .trust-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    background: rgba(0, 0, 0, 0.25);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
  }

  .trust-dot.is-active {
    background: rgba(0, 0, 0, 0.7);
  }
}

@media (max-width: 767px) {
  .client-logos__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .hero__badge {
    padding: 0.6rem 1rem;
  }

  .hero__description {
    font-size: 1.15rem;
  }

  .hero__trust {
    gap: 1rem;
  }

  .hero .service-card__highlighted {
    display: flex !important;
    justify-content: flex-start;
    padding-bottom: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .hero .service-card__highlighted .service-card {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
  }

  /* FIX: hogere specificiteit zodat only-desktop wint van de flex-override hierboven */
  .hero .service-card__highlighted.only-desktop {
    display: none !important;
  }

  .services__grid,
  .audiences__grid {
    grid-template-columns: 1fr;
  }

  .services__header {
    margin-top: 3.5rem;
  }

  .services__subtitle {
    font-size: 1.2rem;
  }

  .audience-card,
  .audience-card--link {
    padding: 1.5rem;
  }
}

/* ============================================
   FINAL OVERRIDES
   ============================================ */

/* 769px t/m 1024px: hero-tekst links, trust-cards rechts, highlighted cards eronder. */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
    grid-template-areas:
      "text trust"
      "highlighted highlighted";
    align-items: start;
    gap: 2rem;
    max-width: var(--container-max);
  }

  .hero__text {
    grid-area: text;
    max-width: none;
    margin: 0;
  }

  .hero__trust {
    grid-area: trust;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  .hero__trust .trust-card {
    flex: none;
    width: 100% !important;
    max-width: none;
  }

  .hero .service-card__highlighted {
    grid-area: highlighted;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

/* Mobiel blijft leidend onder 769px. */
@media (max-width: 1024px) {
  .only-desktop {
    display: none !important;
  }
}
