/*
Theme Name: Computerservice Nijeveen
Theme URI: https://www.computerservicenijeveen.nl
Author: Computerservice Nijeveen
Description: Custom theme. Kleuren aanpassen: zie :root hieronder. Content aanpassen: front-page.php, page-diensten.php, page-websites.php, page-contact.php.
Version: 1.0
Text Domain: csn
*/

/* ============================================================
   KLEURENBASIS - pas hier de kleuren van de hele site aan
   ============================================================ */
:root {
  --blauw:        #1E5FA8;   /* primaire merkkleur (knoppen, links, iconen) */
  --blauw-donker: #164a85;   /* hover-variant */
  --navy:         #14304F;   /* koppen, footer */
  --bijna-zwart:  #101820;   /* onderste balk */
  --licht:        #F3F6FA;   /* lichte sectie-achtergrond */
  --lijn:         #DDE5EE;   /* randen en scheidingslijnen */
  --tekst:        #2A3540;   /* bodytekst */
  --tekst-licht:  #5B6874;   /* subtekst */
  --wit:          #FFFFFF;

  --font-kop:     'Archivo', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-hand:    'Caveat', cursive;   /* handgeschreven accent */

  --radius: 10px;
  --schaduw: 0 8px 30px rgba(20, 48, 79, .08);
  --breedte: 1120px;
}

/* ============================================================
   BASIS
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tekst);
  background: var(--wit);
}

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

a { color: var(--blauw); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blauw);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-kop);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.wrap {
  max-width: var(--breedte);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.sectie-intro { max-width: 640px; margin-bottom: 40px; }
.sectie-intro p { color: var(--tekst-licht); margin-top: 10px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blauw);
  margin-bottom: 10px;
}

/* ============================================================
   HEADER / NAVIGATIE
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wit);
  border-bottom: 1px solid var(--lijn);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo-beeld { height: 54px; width: auto; }
@media (max-width: 480px) {
  .site-logo-beeld { height: 42px; }
}

.hoofdmenu ul { display: flex; gap: 28px; list-style: none; }
.hoofdmenu li { position: relative; }
.hoofdmenu a {
  text-decoration: none;
  color: var(--tekst);
  font-weight: 600;
  font-size: .95rem;
}
.hoofdmenu a:hover { color: var(--blauw); }

/* -- dropdown-submenu's (Diensten, Websites, Computerhulp aan huis) -- */
.hoofdmenu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  position: relative;
  top: -2px;
}
.hoofdmenu ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  gap: 0;
  min-width: 230px;
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 8px 0;
  z-index: 20;
}
.hoofdmenu li:hover > ul,
.hoofdmenu li:focus-within > ul { display: flex; }
.hoofdmenu ul ul a {
  display: block;
  padding: 10px 20px;
  font-weight: 500;
  white-space: nowrap;
}
.hoofdmenu ul ul a:hover { background: var(--licht); color: var(--blauw); }

.header-knoppen { display: flex; gap: 10px; }
.header-bel, .header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blauw);
  color: var(--wit);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: 11px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.header-bel svg { width: 17px; height: 17px; fill: var(--wit); }
.header-wa svg { width: 19px; height: 19px; fill: var(--wit); }
.header-bel:hover { background: var(--blauw-donker); }
.header-wa { background: #25D366; }
.header-wa:hover { background: #1EBE5A; }

.menu-knop { display: none; }

@media (max-width: 860px) {
  .menu-knop {
    display: block;
    background: none;
    border: 1px solid var(--lijn);
    border-radius: 8px;
    padding: 8px 12px;
    font: inherit;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
  }
  .hoofdmenu { display: none; }
  .hoofdmenu.open {
    display: block;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--wit);
    border-bottom: 1px solid var(--lijn);
    padding: 16px 24px 24px;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .hoofdmenu.open ul { flex-direction: column; gap: 14px; }
  .hoofdmenu ul ul {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 10px 0 0 16px;
    min-width: 0;
  }
  .hoofdmenu li.submenu-open > ul { display: flex; }
  .header-knoppen { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--licht) 0%, var(--wit) 100%);
  padding: 84px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero-sub {
  color: var(--tekst-licht);
  font-size: 1.15rem;
  margin: 18px 0 26px;
  max-width: 480px;
}

/* ============================================================
   HERO-SLIDER (homepage: meerdere diensten die doorlopen)
   ============================================================ */
/* Grid-layout van de slider zelf staat in front-page.php (embedded style),
   dat overschrijft anders altijd deze regels hieronder. */

/* -- tekst per slide vliegt naar binnen bij het wisselen -- */
@keyframes heroVliegIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-slide.actief .hero-tekst > * {
  opacity: 0;
  animation: heroVliegIn .65s ease forwards;
}
.hero-slide.actief .hero-tekst > *:nth-child(1) { animation-delay: .05s; }
.hero-slide.actief .hero-tekst > *:nth-child(2) { animation-delay: .15s; }
.hero-slide.actief .hero-tekst > *:nth-child(3) { animation-delay: .25s; }
.hero-slide.actief .hero-tekst > *:nth-child(4) { animation-delay: .35s; }
.hero-slide.actief .hero-tekst > *:nth-child(5) { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide.actief .hero-tekst > * { opacity: 1; animation: none; }
}

/* -- kortere kop bij de icoon-slides (2 t/m 5): voorkomt lelijke regelafbreking -- */
.hero-slide:not([data-slide="0"]) h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  max-width: 460px;
}

.hero-icoon {
  align-self: stretch;
  min-height: 380px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--licht) 0%, var(--wit) 100%);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
}
.hero-icoon .cirkel {
  width: clamp(150px, 17vw, 220px);
  height: clamp(150px, 17vw, 220px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blauw) 0%, var(--navy) 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--schaduw);
}
.hero-icoon svg { width: 42%; height: 42%; fill: var(--wit); }

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--lijn);
  padding: 0;
  cursor: pointer;
}
.hero-dots button.actief { background: var(--blauw); width: 26px; border-radius: 6px; }
.hero-dots button:hover { background: var(--blauw-donker); }

@media (max-width: 860px) {
  .hero-icoon { min-height: 260px; }
  .hero-icoon .cirkel { width: 150px; height: 150px; }
  .hero-icoon svg { width: 64px; height: 64px; }
}

/* het handgeschreven accent + belknop: het herkenningspunt van de site */
.bel-blok { position: relative; display: inline-block; }
.bel-hand {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: var(--blauw);
  transform: rotate(-4deg);
  display: inline-block;
  margin-bottom: 6px;
}
.bel-groot {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--navy);
  color: var(--wit);
  text-decoration: none;
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  padding: 16px 30px;
  border-radius: 14px;
  box-shadow: var(--schaduw);
}
.bel-groot:hover { background: var(--bijna-zwart); }
.bel-groot svg { width: 26px; height: 26px; fill: var(--wit); flex: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   FLYER-LINT (Lokaal / Persoonlijk / Betrouwbaar)
   ============================================================ */
.lint {
  display: inline-block;
  background: var(--blauw);
  color: var(--wit);
  font-family: var(--font-hand);
  font-size: 1.25rem;
  line-height: 1.3;
  padding: 10px 22px 14px;
  margin-bottom: 22px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 8px), 0 100%);
}

/* ============================================================
   WHATSAPP-KNOP (zwevend, rechtsonder op elke pagina)
   ============================================================ */
.wa-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.wa-knop {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  cursor: pointer;
}
.wa-knop svg { width: 32px; height: 32px; fill: var(--wit); }
.wa-knop:hover { background: #1EBE5A; }
.wa-kaart {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(20, 48, 79, .25);
  padding: 20px;
  width: min(290px, 80vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wa-kaart strong { font-family: var(--font-kop); color: var(--navy); font-size: .98rem; }
.wa-kaart span { color: var(--tekst-licht); font-size: .88rem; }
.wa-kaart .knop { text-align: center; margin-top: 6px; }

/* ============================================================
   GEDEELDE ELEMENTEN (secties en knoppen)
   ============================================================ */
.sectie-licht { background: var(--licht); }

.knop {
  display: inline-block;
  background: var(--blauw);
  color: var(--wit);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
}
.knop:hover { background: var(--blauw-donker); }
.knop-wa { background: #25D366; }
.knop-wa:hover { background: #1EBE5A; }
.knop.omlijnd {
  background: transparent;
  color: var(--blauw);
  border: 2px solid var(--blauw);
}
.knop.omlijnd:hover { background: var(--licht); }

/* ============================================================
   CTA-BAND
   ============================================================ */
.cta-band { background: var(--navy); color: var(--wit); }
.cta-band h2 { color: var(--wit); }
.cta-band p { color: rgba(255,255,255,.75); margin: 12px 0 26px; max-width: 560px; }
.cta-band .bel-hand { color: #9EC6F3; }

/* ============================================================
   CONTENTPAGINA'S (fallback)
   ============================================================ */
.pagina-inhoud { padding: 64px 0; }
.pagina-inhoud .wrap { max-width: 760px; }
.pagina-inhoud h1 { margin-bottom: 24px; }
.pagina-inhoud p { margin-bottom: 18px; }


/* ============================================================
   SCROLL-ANIMATIE (blokken vliegen naar binnen bij eerste scroll)
   Zonder JS blijft alles gewoon zichtbaar - zie header.php
   ============================================================ */
html.js-animaties .fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js-animaties .fade-in.zichtbaar {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js-animaties .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 56px 0 40px; }
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
}
.footer-logo {
  height: 42px;
  width: auto;
  background: var(--wit);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 14px;
}
.site-footer h3 { color: var(--wit); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--wit); text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: .95rem; }
.site-footer p { font-size: .95rem; }
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

.onderbalk {
  background: var(--bijna-zwart);
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  padding: 16px 0;
}
.onderbalk .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.onderbalk .plaatsen span { color: var(--blauw); margin: 0 6px; }
.onderbalk .plaatsen a { color: rgba(255,255,255,.7); text-decoration: none; }
.onderbalk .plaatsen a:hover { color: var(--wit); text-decoration: underline; }
