/* ==========================================================================
   TRISPER — Stylesheet
   Strategie • Crisismanagement • Community
   --------------------------------------------------------------------------
   Eén gedeeld stylesheet voor alle pagina's. Pas hieronder eenvoudig
   kleuren, lettertypes en marges aan. Alles is gegroepeerd per onderdeel.
   ========================================================================== */

/* --- 0. Lettertypes (staan zelf op de server, map assets/fonts) ----------- */
/* Koppen: Barlow Semi Condensed — stevig en smal, net als "TRISPER" in het logo.
   Lopende tekst: Open Sans — rustig en goed leesbaar, net als de tagline.     */
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("assets/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("assets/fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("assets/fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("assets/fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

/* --- 1. Kleuren & basisinstellingen (CSS-variabelen) ---------------------- */
/* Huisstijlkleuren uit het Trisper-logo (augustus 2026).
   Pas hier de kleuren aan; ze worden in de hele site doorgevoerd.            */
:root {
  --kleur-primair:      #1c6064;  /* donker petrol (bovenste ring logo)    */
  --kleur-accent:       #3f7a99;  /* staalblauw (woordmerk "TRISPER")      */
  --kleur-groen:        #7c9848;  /* olijfgroen (rechter ring logo)        */
  --kleur-knop:         #5f7a33;  /* donkerder logogroen: leesbaar met witte tekst */
  --kleur-knop-hover:   #4d6429;  /* knop bij hover                        */
  --kleur-grijs-logo:   #878787;  /* grijs van de tagline                  */
  --kleur-tekst:        #2b3236;  /* donkergrijs voor lopende tekst        */
  --kleur-tekst-licht:  #5a6468;  /* grijs voor bijschriften               */
  --kleur-wit:          #ffffff;
  --kleur-licht:        #f3f6f5;  /* zachte, licht groenige tint voor secties */
  --kleur-rand:         #dfe6e4;  /* randen/lijnen                          */

  --font-koppen: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --font-tekst:  "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-breedte: 1080px;          /* maximale contentbreedte       */
  --radius: 6px;                  /* afronding van knoppen/kaders  */
}

/* --- 2. Reset & algemene opmaak ------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-tekst);
  color: var(--kleur-tekst);
  line-height: 1.65;
  background: var(--kleur-wit);
  -webkit-font-smoothing: antialiased;
}

/* Koppen: smal en stevig, passend bij het woordmerk in het logo */
h1, h2, h3 {
  font-family: var(--font-koppen);
  color: var(--kleur-primair);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.005em;
}

h1 { font-size: 2.7rem; margin-bottom: 1rem; }
h2 { font-size: 2.05rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; font-weight: 600; }

p { margin-bottom: 1rem; }

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

/* Hulpklasse: centrale container met nette marges */
.container {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- 3. Knoppen ----------------------------------------------------------- */
.knop {
  display: inline-block;
  background: var(--kleur-knop);
  color: var(--kleur-wit);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}
.knop:hover { background: var(--kleur-knop-hover); text-decoration: none; }

/* Variant: omlijnde knop op donkere achtergrond */
.knop-licht {
  background: transparent;
  border: 2px solid var(--kleur-wit);
  color: var(--kleur-wit);
}
.knop-licht:hover { background: var(--kleur-wit); color: var(--kleur-primair); }

/* --- 4. Navigatie (bovenbalk) -------------------------------------------- */
.site-header {
  background: var(--kleur-wit);
  border-bottom: 1px solid var(--kleur-rand);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-breedte);
  margin: 0 auto;
}
/* Dunne lijn in de drie logokleuren onder de bovenbalk */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--kleur-accent) 0 33.33%, var(--kleur-primair) 33.33% 66.66%, var(--kleur-groen) 66.66% 100%);
}
.nav__logo img { height: 52px; width: auto; display: block; }
/* Tekstuele terugval als het logobestand nog ontbreekt */
.nav__logo-tekst {
  font-family: var(--font-koppen);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--kleur-primair);
}

.nav__links { list-style: none; display: flex; gap: 1.8rem; }
.nav__links a {
  color: var(--kleur-tekst);
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--kleur-primair); text-decoration: none; }
.nav__links a.actief {
  color: var(--kleur-primair);
  border-bottom-color: var(--kleur-groen);
}

/* Hamburger-knop (alleen zichtbaar op mobiel) */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--kleur-primair);
  line-height: 1;
}

/* --- 5. Hero (kopsectie op de Home-pagina) ------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--kleur-primair) 0%, var(--kleur-accent) 100%);
  color: var(--kleur-wit);
  padding: 5rem 0;
  text-align: center;
}
.hero h1 { color: var(--kleur-wit); font-size: 3.1rem; }
.hero p { font-size: 1.25rem; max-width: 640px; margin: 1rem auto 2rem; opacity: 0.95; }
.hero .tagline {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

/* --- 6. Algemene secties -------------------------------------------------- */
.sectie { padding: 4rem 0; }
.sectie--licht { background: var(--kleur-licht); }
.sectie__intro { max-width: 700px; margin: 0 auto 2.5rem; text-align: center; }
/* Klein label boven een kop (bijv. "Wat we doen", "Waarom Trisper") */
.label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--kleur-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

/* --- 7. Kaarten (diensten, pijlers) -------------------------------------- */
.kaarten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.kaart {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-top: 4px solid var(--kleur-accent);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
}
/* De drie kaarten krijgen elk één van de drie logokleuren, net als de ringen */
.kaart:nth-child(3n+2) { border-top-color: var(--kleur-primair); }
.kaart:nth-child(3n+3) { border-top-color: var(--kleur-groen); }
.kaart__icoon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--kleur-licht);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--kleur-accent);
}
.kaart h3 { color: var(--kleur-primair); }
.kaart p { color: var(--kleur-tekst-licht); margin-bottom: 0; }

/* --- 8. Twee-koloms blok (Over ons, tekst + beeld) ----------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split__beeld {
  background: var(--kleur-licht);
  border: 1px dashed var(--kleur-rand);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: var(--kleur-tekst-licht);
  text-align: center;
  padding: 1.5rem;
}

/* --- 9. Call-to-action blok ---------------------------------------------- */
.cta {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  text-align: center;
  padding: 3.5rem 0;
}
.cta h2 { color: var(--kleur-wit); }
.cta p { opacity: 0.9; max-width: 540px; margin: 0 auto 1.8rem; }

/* --- 9b. Foto's ----------------------------------------------------------- */
/* Algemene fotostijl: nette afronding, vult de beschikbare ruimte.          */
.foto {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
/* Terugval-vlak zolang er nog geen foto geplaatst is.                        */
.foto-placeholder {
  background: var(--kleur-licht);
  border: 1px dashed var(--kleur-rand);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--kleur-tekst-licht);
  padding: 1.5rem;
}

/* --- 9c. Partner-/klantlogo's --------------------------------------------- */
.partners { padding: 3rem 0; }
.partners__titel {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--kleur-tekst-licht);
  font-weight: 700;
  margin-bottom: 2rem;
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  align-items: center;
}
.partner-logo {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
/* Logo's worden grijs getoond en kleuren bij hover — rustig en zakelijk.     */
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }
.partner-logo__leeg { color: var(--kleur-tekst-licht); font-size: 0.85rem; }

/* --- 10. Contactpagina & formulier --------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}
.contact-info p { margin-bottom: 0.5rem; }
.contact-info strong { color: var(--kleur-primair); }

.formulier label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--kleur-primair);
}
.formulier input,
.formulier textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1.2rem;
  background: var(--kleur-wit);
}
.formulier input:focus,
.formulier textarea:focus {
  outline: none;
  border-color: var(--kleur-accent);
}
.formulier textarea { min-height: 140px; resize: vertical; }

/* --- 11. Footer ----------------------------------------------------------- */
.site-footer {
  background: #154a4d;  /* iets donkerder petrol, zodat de footer loskomt van het blok erboven */
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
/* In de footer staat de witte versie van het logo (assets/logo-wit.png) */
.site-footer img { height: 48px; width: auto; display: block; }
.site-footer__logo-tekst {
  font-family: var(--font-koppen); font-weight: 700; font-size: 1.3rem;
  letter-spacing: 1px; color: var(--kleur-wit);
}
.site-footer a { color: var(--kleur-wit); }
.site-footer__rechts { text-align: right; }

/* --- 12. Responsive (mobiel & tablet) ------------------------------------ */
@media (max-width: 860px) {
  .kaarten { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: repeat(3, 1fr); }

  /* Navigatie inklapbaar maken */
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--kleur-wit);
    border-bottom: 1px solid var(--kleur-rand);
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.7rem 0; border-bottom: 1px solid var(--kleur-rand); }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.1rem; }
  h1 { font-size: 1.9rem; }
}

@media (max-width: 520px) {
  .hero { padding: 3.5rem 0; }
  .sectie { padding: 2.8rem 0; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { flex-direction: column; text-align: center; }
  .site-footer__rechts { text-align: center; }
}
