/* =========================================================
   WERFSTUDIO — stylesheet
   Thema: "bouwtekening" (blueprint). Donkerblauw = ontwerpfase,
   crème papier = opgeleverd resultaat. Dat verschil in kleur
   loopt bewust door de hele site heen.
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Kleuren */
  --blueprint-navy: #0b1d33;   /* donkere achtergrond (ontwerpfase) */
  --blueprint-mid:  #14304f;   /* kaarten/vlakken op donkere achtergrond */
  --blueprint-line: rgba(255, 255, 255, 0.09);
  --paper:          #f6f3ea;   /* lichte achtergrond (opgeleverd resultaat) */
  --paper-line:     #e2dbc7;
  --ink:            #142433;   /* donkere tekst op papier */
  --off-white:      #eaf0f6;   /* tekst op donkere achtergrond */
  --amber:          #f2a83b;   /* accentkleur */
  --amber-dim:      #c98a2c;

  /* Typografie */
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body:    "Inter", "Segoe UI", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --max-width: 1120px;
  --radius: 4px;
}

/* ---------- 2. Basis / reset ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

/* Zichtbare focus-ring voor toetsenbordgebruikers (toegankelijkheid) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Beweging uitzetten voor mensen die dat aangeven in hun systeem */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 3. Herbruikbare elementen ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
}

.eyebrow--dark {
  color: var(--amber-dim);
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--amber);
  color: var(--blueprint-navy);
  font-weight: 600;
}

.btn--primary:hover {
  background: #ffbe5c;
}

.btn--ghost {
  border-color: var(--blueprint-line);
  color: var(--off-white);
}

.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn--full {
  width: 100%;
  text-align: center;
  border: none;
}

/* Signatuurelement: kleine "kruis"-registermarkeringen op de hoeken
   van kaarten en secties, zoals passtekens op een bouwtekening. */
.corner-mark {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.corner-mark::before,
.corner-mark::after {
  content: "";
  position: absolute;
  background: var(--amber);
}

.corner-mark::before { width: 100%; height: 1px; top: 50%; }
.corner-mark::after  { height: 100%; width: 1px; left: 50%; }

.corner-mark--tl { top: 10px; left: 10px; }
.corner-mark--br { bottom: 10px; right: 10px; }

/* ---------- 4. Reveal-animatie bij scrollen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.header.is-scrolled {
  background: var(--blueprint-navy);
  box-shadow: 0 1px 0 var(--blueprint-line);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--off-white);
  text-decoration: none;
}

.logo__mark {
  color: var(--amber);
  font-weight: 400;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--off-white);
  opacity: 0.85;
}

.nav__link:hover {
  opacity: 1;
  color: var(--amber);
}

.nav__link--cta {
  border: 1px solid var(--blueprint-line);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

.nav__link--cta:hover {
  border-color: var(--amber);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  background: var(--blueprint-navy);
  color: var(--off-white);
  padding: 9rem 1.5rem 5rem;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 40%, transparent 85%);
}

.hero__content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw + 1rem, 3.75rem);
  font-weight: 700;
}

.hero__title em {
  font-style: normal;
  color: var(--amber);
}

.hero__lead {
  font-size: 1.05rem;
  color: rgba(234, 240, 246, 0.8);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  position: relative;
  max-width: var(--max-width);
  margin: 4rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--blueprint-line);
  padding-top: 1.5rem;
}

.hero__stats div {
  text-align: center;
}

.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(234, 240, 246, 0.6);
  margin-bottom: 0.35rem;
}

.hero__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--amber);
}
/* ---------- 6b. Gratis-demo balk ---------- */
.guarantee {
  background: var(--paper);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 3.5rem 1.5rem;
}

.guarantee__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  border-left: 3px solid var(--amber);
  padding-left: 2rem;
}

.guarantee__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw + 1rem, 2rem);
  color: var(--ink);
  max-width: 600px;
}

.guarantee__text {
  max-width: 560px;
  color: #4a5568;
}

.guarantee__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.guarantee__point {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.guarantee__number {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--amber-dim);
  flex-shrink: 0;
}

.guarantee__point p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
}

@media (max-width: 720px) {
  .guarantee__points {
    grid-template-columns: 1fr;
  }

  .guarantee__inner {
    padding-left: 1.25rem;
  }
}

/* ---------- 7. Algemene sectie-opmaak ---------- */
.section {
  padding: 5.5rem 1.5rem;
  position: relative;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--blueprint {
  background: var(--blueprint-navy);
  color: var(--off-white);
}

.section--form {
  background: var(--blueprint-mid);
  color: var(--off-white);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.7rem, 2.5vw + 1rem, 2.4rem);
  max-width: 620px;
}

.section__title--light {
  color: var(--off-white);
}

.section__intro {
  max-width: 560px;
  color: #4a5568;
  margin-bottom: 2.5rem;
}

.section__intro--light {
  color: rgba(234, 240, 246, 0.75);
}

.section__inner--split {
  max-width: 640px;
}

/* ---------- 8. Kaarten (diensten / projecten) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.cards--projects {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 0;
  color: #4a5568;
  font-size: 0.95rem;
}

/* ---------- 8b. Prijstabel ---------- */
.price-table {
  margin-top: 2rem;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--paper-line);
}

.price-row:first-child {
  border-top: none;
}

.price-row--head {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-dim);
  background: var(--paper);
}

.price-row span:first-child {
  color: var(--ink);
}

.price-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
}

.price-row--head span {
  color: inherit;
}

/* ---------- 9. Werkwijze / tijdlijn ---------- */
.timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.timeline__step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.25rem;
  align-items: start;
  border-top: 1px solid var(--blueprint-line);
  padding-top: 1.5rem;
}

.timeline__number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--amber);
}

.timeline__step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.timeline__step p {
  color: rgba(234, 240, 246, 0.75);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- 9b. Contactgegevens (e-mail / telefoon) ---------- */
.contact-details {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-details span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(234, 240, 246, 0.55);
}

.contact-details a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* ---------- 10. Contactformulier ---------- */
.form {
  max-width: 560px;
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__row label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(234, 240, 246, 0.75);
}

.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--blueprint-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--off-white);
}

.form textarea {
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(234, 240, 246, 0.4);
}

.form__row.has-error input,
.form__row.has-error textarea {
  border-color: #e0654c;
}

.form__error {
  min-height: 1.1em;
  font-size: 0.82rem;
  color: #ff9b85;
}

.form__status {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--amber);
  min-height: 1.2em;
}

/* ---------- 11. Footer ---------- */
.footer {
  background: #081527;
  color: rgba(234, 240, 246, 0.7);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo--footer {
  justify-content: center;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 0.75rem 0 1rem;
}

.footer__contact {
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}

.footer__contact a {
  color: rgba(234, 240, 246, 0.85);
  text-decoration: none;
}

.footer__contact a:hover {
  color: var(--amber);
}

.footer__copy {
  font-size: 0.8rem;
  margin: 0;
  border-top: 1px solid var(--blueprint-line);
  padding-top: 1.5rem;
}

/* =========================================================
   12. Responsive: mobiel & tablet
   ========================================================= */
@media (max-width: 860px) {
  .cards,
  .cards--projects {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero__stats div {
    border-top: 1px solid var(--blueprint-line);
    padding-top: 1rem;
  }

  .hero__stats > div:first-child {
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--blueprint-navy);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 6rem 2rem 2rem;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav__link {
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: 7rem;
  }

  .timeline__step {
    grid-template-columns: 48px 1fr;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .price-row {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem 1.25rem;
  }

  .price-row span:last-child {
    color: var(--amber-dim);
  }

  .contact-details {
    flex-direction: column;
    gap: 1rem;
  }
}
