/* ============================================================
   M van Schie Onderhoud — style.css
   Licht, strak wit/blauw thema (huisstijl logo)
   Mobile-first, geen build-stap, geen externe dependencies
   (behalve Google Fonts Oswald via index.html)
   ============================================================ */

/* ------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------ */
:root {
  --navy:         #122C47;   /* hoofdkleur, gesampled uit logo */
  --navy-soft:    #1B3A5C;
  --blue:         #1D6FE0;   /* helder accent: knoppen, links, iconen */
  --blue-hover:   #1657B8;
  --blue-wash:    #EAF2FC;   /* lichtblauwe vlakvulling */

  --bg:           #FFFFFF;
  --surface:      #F4F7FB;   /* rustige sectie-afwisseling */
  --border:       #E2E8F0;

  --text:         #1F2933;
  --text-muted:   #5B6B7B;
  --on-navy:      #EAF1FA;   /* tekst op navy */
  --on-navy-muted:#A9BED6;

  --font-heading: 'Oswald', sans-serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius:       8px;
  --shadow:       0 6px 24px rgba(18, 44, 71, 0.08);
  --shadow-hover: 0 12px 32px rgba(18, 44, 71, 0.14);
  --transition:   0.2s ease;
}

/* ------------------------------------------------------------
   2. Reset / base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Veilige onderruimte op mobiel vanwege sticky belknop */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------
   3. Focus-states (WCAG)
   ------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   4. Gedeelde layout: .container
   ------------------------------------------------------------ */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ------------------------------------------------------------
   5. Typografie helpers
   ------------------------------------------------------------ */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* Korte blauwe accentstreep onder een sectietitel */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
  margin: 0.85rem auto 0;
}

/* ------------------------------------------------------------
   6. Buttons: .btn, .btn--primary, .btn--secondary
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  background-color: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(29, 111, 224, 0.28);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--navy);
  color: #fff;
}

.btn--submit {
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------
   7. Honeypot veld verbergen
   ------------------------------------------------------------ */
.hp-veld {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 0%, var(--blue-wash) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Dunne blauwe accentbalk bovenaan */
.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--blue);
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 3.5rem 4.5rem;
  width: 100%;
}

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

.hero__logo {
  width: min(360px, 78%);
  height: auto;
  margin: 0 auto 2rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

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

/* ------------------------------------------------------------
   9. USP-rij (navy band, breekt het wit)
   ------------------------------------------------------------ */
.usps {
  background-color: var(--navy);
  padding-block: 1.75rem;
}

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

.usps__item {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--on-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.usps__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   10. Diensten
   ------------------------------------------------------------ */
.diensten {
  padding-block: 5rem;
  background-color: var(--bg);
}

.diensten__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .diensten__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .diensten__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .diensten__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.dienst-kaart {
  background-color: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.dienst-kaart:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.dienst-kaart__icoon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.dienst-kaart__titel {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.dienst-kaart__tekst {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   11. Werkwijze
   ------------------------------------------------------------ */
.werkwijze {
  background-color: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: 5rem;
}

.stappen {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  counter-reset: stap;
}

@media (min-width: 768px) {
  .stappen {
    flex-direction: row;
    gap: 2.5rem;
  }
}

.stap {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
}

.stap__nummer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.stap__titel {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.stap__tekst {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   12. Contact
   ------------------------------------------------------------ */
.contact {
  background-color: var(--bg);
  padding-block: 5rem;
}

.contact__intro {
  color: var(--text-muted);
  margin-top: -1.75rem;
  margin-bottom: 3rem;
  font-size: 1.05rem;
  text-align: center;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact__layout {
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact__link {
  font-size: 1.1rem;
  color: var(--blue);
  word-break: break-word;
  font-weight: 600;
  transition: color var(--transition);
}

.contact__link:hover {
  color: var(--blue-hover);
}

.contact__adres {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Formulier */
.veld-groep {
  margin-bottom: 1.25rem;
}

.veld-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.veld-verplicht {
  color: var(--blue);
}

.veld-input {
  display: block;
  width: 100%;
  background-color: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.95rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.veld-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.15);
}

.veld-input--textarea {
  resize: vertical;
  min-height: 120px;
}

.veld-fout {
  color: #D92D20;
  font-size: 0.875rem;
  margin-top: 0.35rem;
  min-height: 1.2em; /* reserveer ruimte zodat layout niet springt */
}

/* Form status melding */
.form-status {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  display: none; /* verborgen totdat JS een melding instelt */
}

.form-status:not(:empty) {
  display: block;
}

.form-status--succes {
  background-color: #E7F6EC;
  border: 1px solid #9FD8B4;
  color: #1B6E3C;
}

.form-status--fout {
  background-color: #FDECEA;
  border: 1px solid #F1B0A8;
  color: #B42318;
}

/* ------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--navy);
  padding-block: 3rem;
}

.footer__inhoud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.footer__logo {
  width: 230px;
  height: auto;
  margin-bottom: 0.75rem;
}

.footer__naam {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer__contact,
.footer__adres,
.footer__werkgebied,
.footer__kvk {
  font-size: 0.9rem;
  color: var(--on-navy-muted);
}

.footer__link {
  color: var(--on-navy);
  transition: color var(--transition);
}

.footer__link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   14. Sticky belknop (alleen mobiel)
   ------------------------------------------------------------ */
.sticky-bel {
  display: none; /* verborgen op desktop */
}

@media (max-width: 767px) {
  .sticky-bel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--blue);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(29, 111, 224, 0.45);
    z-index: 100;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--transition), box-shadow var(--transition);
  }

  .sticky-bel:hover,
  .sticky-bel:focus-visible {
    background-color: var(--blue-hover);
  }

  /* Extra onderruimte zodat de sticky belknop de footer-links niet bedekt */
  .site-footer {
    padding-bottom: calc(3rem + 72px + env(safe-area-inset-bottom, 0px));
  }
}

/* ------------------------------------------------------------
   15. prefers-reduced-motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dienst-kaart:hover,
  .btn:hover {
    transform: none;
  }
}
