/* Fiber36 – based on the Fiber Zakelijk design tokens */

@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-variable.woff2") format("woff2-variations"),
       url("fonts/nunito-sans-variable.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --blue: #37c6f4;
  --blue-light: #4fc1eb;
  --zs-blue: #1cabe3;
  --green: #91c750;
  --green-dark: #7fb33f;
  --dark: #2b2b2b;
  --heading-dark: #333;
  --text: #666;
  --text-strong: #444;
  --grey-bg: #f7f7f7;
  --white: #fff;
  --font: "Nunito Sans", Helvetica, Arial, sans-serif;
  --radius: 3px;
  --radius-image: 20px 0 20px 0;
  --container: 77.5rem;
  --section-y: clamp(48px, 6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-weight: 700; margin: 0 0 .4em; line-height: 1.1; }
h2 { font-size: 1.875rem; color: var(--blue); }
h3 { font-size: 1.25rem; color: var(--heading-dark); }
p { margin: 0 0 1em; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
@media (min-width: 900px) {
  .container { width: min(80%, var(--container)); }
}

/* Buttons (as on fiberzakelijk.nl) */
.btn {
  position: relative;
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  padding: .3em 1em;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: transparent;
  color: var(--blue);
  white-space: nowrap;
  transition: padding .2s ease, background-color .2s ease;
}
.btn::after {
  content: "";
  position: absolute;
  right: .6em;
  top: 50%;
  width: .8em;
  height: .8em;
  transform: translateY(-50%);
  background: currentColor;
  opacity: 0;
  transition: opacity .2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn:hover { padding-left: .7em; padding-right: 2em; text-decoration: none; }
.btn:hover::after { opacity: 1; }
.btn:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }

.btn--solid { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--solid:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--on-dark { border-color: var(--white); color: var(--white); font-size: 1.25rem; }
.btn--on-dark:focus-visible { outline-color: var(--white); }
.btn--dark { background: var(--dark); border-color: var(--dark); color: var(--white); }
.btn--dark:hover { background: #000; border-color: #000; }

/* Header */
.site-header { background: var(--white); border-top: 6px solid var(--blue); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 20px;
}

.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo:hover { text-decoration: none; }
.logo__mark { height: calc(2.8rem + 1vw); width: auto; }
.logo__text {
  font-size: calc(1rem + .4vw);
  font-weight: 700;
  color: var(--zs-blue);
  letter-spacing: .02em;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(480px, 62vw, 680px);
  padding-block: 180px 56px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.hero__container { position: relative; z-index: 1; }
.hero__card {
  width: min(620px, 100%);
  margin-inline: auto;
  padding: 56px 48px 44px;
  text-align: center;
  color: var(--white);
  background: rgb(55 198 244 / .9);
  border-radius: 36px 0;
  box-shadow: 0 2px 18px rgb(0 0 0 / .3);
}
.hero__card h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); line-height: 1; color: var(--white); margin-bottom: .25em; }
.hero__sub { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 600; margin-bottom: .5em; }
.hero__tags { font-size: 1rem; opacity: .95; margin-bottom: 2rem; }

/* Sections */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: 0 var(--section-y); }

.intro {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .intro { grid-template-columns: 1.15fr 1fr; gap: 5rem; }
}
.lead { color: var(--text-strong); font-weight: 700; font-size: 1.125rem; }
.intro__by { font-style: italic; }
.intro__text .btn { margin-top: .5rem; }
.intro__image { margin: 0; }
.intro__image img { width: 100%; border-radius: var(--radius-image); }

/* Features */
.features {
  list-style: none;
  margin: 0;
  padding: 48px 24px;
  display: grid;
  gap: 2.5rem;
  background: var(--grey-bg);
  border-radius: var(--radius-image);
  text-align: center;
}
@media (min-width: 700px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 56px 32px; }
}
.feature img { width: 64px; height: 64px; margin: 0 auto 1.25rem; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-image);
}

/* CTA */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 20px 0;
  box-shadow: 0 8px 24px rgb(0 0 0 / .12);
}
.cta h2 { color: var(--white); }
.cta p { margin: 0; font-size: 1.125rem; }

/* Footer */
.site-footer { color: var(--blue); margin-top: 40px; }
.site-footer__wave { display: block; width: 100%; height: clamp(32px, 7vw, 100px); margin-bottom: -1px; }
.site-footer__body { background: var(--blue); color: var(--white); padding-top: 3.3rem; }
.site-footer__inner {
  display: grid;
  gap: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}
@media (min-width: 700px) {
  .site-footer__inner { grid-template-columns: repeat(3, 1fr); column-gap: 5%; }
}
.site-footer__heading { font-size: 1.125rem; color: var(--white); margin-bottom: .6em; }
.site-footer p { margin: 0 0 .6em; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--white); }
.site-footer .muted { opacity: .85; white-space: nowrap; }
.site-footer__bar {
  margin-top: 40px;
  padding-block: 20px 28px;
  border-top: 1px solid rgb(255 255 255 / .35);
  font-size: .9375rem;
}
.site-footer__bar p { margin: 0; }

@media (max-width: 520px) {
  .site-header .btn { font-size: 1rem; padding: .25em .75em; }
  .hero { padding-top: 230px; }
  .hero__bg { object-position: 45% 0; }
  .hero__card { padding: 36px 24px 30px; border-radius: 24px 0; }
  .cta { padding: 28px 24px; }
  .cta .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after { transition: none; }
}
