/*
Theme Name: Vakmanschap Alkmaar
Theme URI: https://rksinstallatietechniek.nl
Author: RKS Installatietechniek B.V.
Author URI: https://rksinstallatietechniek.nl
Description: Modern, strak en minimalistisch one-page thema voor een installatiebedrijf. Zwart-wit huisstijl, Inter typografie, scroll fade-in animaties en lokale SEO.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vakmanschap-alkmaar
Tags: one-page, business, minimal, black-and-white, responsive, custom-logo, custom-colors
*/

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --black: #000000;
  --gray-900: #111111;
  --gray-800: #333333;
  --gray-600: #666666;
  --gray-300: #d4d4d4;
  --gray-100: #f4f4f4;
  --maxw: 1200px;
  --radius: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-decoration: none; }
h1, h2, h3, h4 { color: var(--black); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--gray-100); }
.section__eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--gray-600); margin-bottom: 12px; }
.section__lead { max-width: 62ch; color: var(--gray-600); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #000; color: #fff; padding: 10px 16px; width: auto; height: auto; clip: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 26px; font-size: .95rem; font-weight: 500; border: 1px solid var(--black); transition: background .2s, color .2s; border-radius: var(--radius); }
.btn--solid { background: var(--black); color: var(--white); }
.btn--solid:hover { background: var(--gray-800); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gray-300); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--black); letter-spacing: -.01em; }
.site-brand img { max-height: 40px; width: auto; }
.site-brand__mark { width: 34px; height: 34px; border: 1px solid var(--black); display: grid; place-items: center; font-size: .8rem; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { display: flex; gap: 30px; }
.nav a { font-size: .95rem; color: var(--gray-800); }
.nav a:hover, .nav .current-menu-item > a { color: var(--black); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gray-300); padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--black); margin: 4px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--gray-300); flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 28px; display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--gray-300); }
  .nav a { display: block; padding: 14px 0; }
  .nav .btn { margin-top: 18px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: var(--white); background: var(--black); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .5; }
.hero__inner { position: relative; padding: 120px 0; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero p { color: var(--gray-300); font-size: 1.1rem; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .btn--solid { background: var(--white); color: var(--black); border-color: var(--white); }
.hero .btn--solid:hover { background: var(--gray-300); }
.hero .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.hero .btn--ghost:hover { background: var(--white); color: var(--black); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { border: 1px solid var(--gray-300); background: var(--white); padding: 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--black); transform: translateY(-2px); }
.card__icon { width: 44px; height: 44px; border: 1px solid var(--black); display: grid; place-items: center; margin-bottom: 18px; }
.card p { color: var(--gray-600); margin: 0; font-size: .95rem; }

/* ---------- Services detail ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--gray-300); }
.service:nth-child(even) .service__media { order: 2; }
.service img { filter: grayscale(1); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service__features li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--gray-600); }
.service__features li::before { content: "✓"; position: absolute; left: 0; color: var(--black); }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; gap: 28px; } .service:nth-child(even) .service__media { order: 0; } }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.timeline__step { position: relative; padding-top: 28px; border-top: 1px solid var(--gray-300); }
.timeline__num { position: absolute; top: -13px; left: 0; background: var(--white); padding-right: 12px; font-size: .8rem; letter-spacing: .18em; color: var(--gray-600); }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.project { position: relative; overflow: hidden; }
.project img { filter: grayscale(1); aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .5s ease; }
.project:hover img { transform: scale(1.04); }
.project__caption { position: absolute; inset: auto 0 0 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: var(--white); }
.project__caption strong { display: block; font-weight: 600; }
.project__caption span { font-size: .82rem; color: var(--gray-300); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; margin-bottom: 6px; color: var(--gray-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--gray-300); background: var(--white);
  font: inherit; color: var(--black); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); }
.field textarea { min-height: 140px; resize: vertical; }
.form-notice { padding: 14px 16px; border: 1px solid var(--black); margin-bottom: 20px; font-size: .9rem; }
.info-list li { overflow-wrap: anywhere; display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--gray-300); font-size: .95rem; }
.map-embed { margin-top: 28px; border: 1px solid var(--gray-300); filter: grayscale(1); }
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ---------- WhatsApp ---------- */
.whatsapp-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: transform .2s; }
.whatsapp-fab:hover { transform: scale(1.06); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--gray-300); padding: 72px 0 32px; }
.site-footer h4 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 18px; }
.site-footer a { color: var(--gray-300); }
.site-footer a:hover { color: var(--white); }
.site-footer li { overflow-wrap: anywhere; padding: 5px 0; font-size: .92rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}