/* AL Installatietechniek - static site, no JS.
   Look & feel based on the original NatureWP theme (green #85c63e).
   Fonts (self-hosted, SIL OFL 1.1, see fonts/LICENSE.txt):
   Oswald for headings and menu, Open Sans for running text. */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --green: #85c63e;        /* exact colour from logo and icons */
  --green-dark: #4e8a1c;   /* readable green for links/text on white */
  --green-deep: #24360f;   /* navbar */
  --ink: #2e2e2e;
  --text: #6f6f6f;
  --line: #dcdcdc;
  --grey-bg: #f5f5f5;
  --heading: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1100px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }

strong, b { font-weight: 600; }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
}

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Hero (static) ---------- */
.hero {
  position: relative;
  height: clamp(460px, 75vh, 720px);
  background: #1d2416;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background: url("../img/hero.jpg") center / cover no-repeat;
}
.hero-bg::before {               /* dark overlay for readability */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,.25) 100%);
}

.caption { position: relative; z-index: 1; width: 100%; color: #fff; }
.caption > * { max-width: 620px; }
.shield { width: 120px; height: auto; margin-bottom: 18px; }
.caption h2 {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: .6em;
}
.caption p { margin: 0 0 .8em; letter-spacing: .5px; font-size: .98rem; }
.btn-outline {
  display: inline-block; margin-top: 10px;
  padding: 8px 16px;
  border: 3px solid #fff;
  color: #fff; text-decoration: none;
  font-family: var(--heading); font-weight: 500; text-transform: uppercase; font-size: 1rem; letter-spacing: 1.5px;
}
.btn-outline:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #3c5a1d 0%, var(--green-deep) 100%);
  border-bottom: 6px solid var(--green);
  box-shadow: 0 12px 18px -10px rgba(0,0,0,.45);
}
.navbar::after {               /* the little green arrow under the bar */
  content: ""; position: absolute; left: 50%; bottom: -18px;
  transform: translateX(-50%);
  border: 12px solid transparent; border-top-color: var(--green); border-bottom: 0;
}
.nav {
  list-style: none; margin: 0; padding: 0;
  min-height: var(--nav-h);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 2px 26px;
}
.nav a {
  font-family: var(--heading); font-weight: 500; text-transform: uppercase;
  font-size: 1.1rem; letter-spacing: 1.5px;
  color: #fff; text-decoration: none;
}
.nav a span, .nav a:hover { color: var(--green); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 100px) 0; text-align: center; }
.section-grey { background: var(--grey-bg); }

.section-title { font-size: clamp(1.9rem, 4vw, 2.3rem); margin-bottom: 12px; }
.section-title span { color: var(--green); }

.divider {
  position: relative; height: 1px; background: var(--line);
  margin: 0 auto 44px;
}
.divider::after {
  content: ""; position: absolute; left: 50%; top: -12px; transform: translateX(-50%);
  width: 44px; height: 24px;
  background: #fff url("../img/divider-icon.svg") center / 16px no-repeat;
}
.section-grey .divider::after { background-color: var(--grey-bg); }

.section-intro {
  max-width: 600px; margin: 0 auto 44px;
  font-size: 1.1rem; line-height: 1.6;
  color: var(--ink);
}

/* ---------- Over AL ---------- */
.owner { margin: 0 auto; max-width: 400px; }
.owner img {
  width: 100%; height: auto;           /* full photo, no cropping */
  border-radius: 999px;                /* pill/oval shape, like the original */
  background: var(--grey-bg);
}
.owner figcaption { padding-top: 18px; }
.owner h3 { font-size: 1.3rem; margin-bottom: 2px; }
.owner p { margin: 0; }

/* ---------- Diensten ---------- */
.services {
  list-style: none; margin: 0 auto; padding: 0; max-width: 900px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px;
}
.services img { width: 140px; height: 140px; margin: 0 auto 18px; transition: transform .2s ease; }
.services li:hover img { transform: scale(1.06); }
.services h3 { font-size: 1.25rem; margin-bottom: 6px; }
.services p { margin: 0 auto; max-width: 240px; font-size: .92rem; }

/* ---------- Steigerhout ---------- */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.gallery a { display: block; overflow: hidden; border-bottom: 4px solid var(--green); }
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: #e6e6e6;
  transition: transform .25s ease, opacity .25s ease;
}
.gallery a:hover img, .gallery a:focus img { transform: scale(1.06); opacity: .9; }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.88);
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox:target { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; position: relative; z-index: 1; pointer-events: none; border: 6px solid #fff; }
.lb-close { position: absolute; inset: 0; z-index: 0; cursor: zoom-out; }
.lb-close::after {
  content: "\00d7"; position: absolute; top: 10px; right: 22px;
  color: #fff; font-size: 2.8rem; line-height: 1;
}

/* ---------- Contact ---------- */
.section-green {
  background: linear-gradient(160deg, #8fcf47 0%, var(--green) 45%, #6fae2c 100%);
  color: #fff;
}
.section-green .section-title,
.section-green .section-intro,
.section-green h3 { color: #fff; }
.divider-light { background: rgba(255,255,255,.75); }
.divider-light::after { background: transparent url("../img/divider-icon-white.svg") center / 16px no-repeat; }
.section-green .divider-light::after { background-color: #84c53d; }

.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 820px; margin: 0 auto;
}
.contact-block h3 { font-size: 1.35rem; margin-bottom: 18px; }
.contact-block p { margin: 0 0 14px; }
.section-green a { color: #fff; }
.section-green a:hover { color: var(--green-deep); }
.btn-dark {
  display: inline-block; width: 100%; max-width: 320px;
  padding: 11px 20px; border-radius: 4px;
  background: #3a3a3a; color: #fff !important; text-decoration: none;
  font-family: var(--heading); font-weight: 500; text-transform: uppercase; font-size: 1.05rem; letter-spacing: 1.5px;
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.btn-dark:hover { background: var(--green-deep); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; text-align: center;
  padding: 64px 20px 44px;
  border-bottom: 8px solid var(--green);
  font-size: .85rem; letter-spacing: 1px; text-transform: uppercase;
}
.site-footer::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  border: 12px solid transparent; border-bottom-color: var(--green); border-top: 0;
}
.site-footer p { margin: 14px 0 0; }
.to-top {
  display: inline-flex; flex-direction: column; align-items: center; gap: 16px;
  color: var(--green-dark); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.to-top-icon {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 7px #3a3a3a;
}
.to-top-icon::before {
  content: ""; position: absolute; left: 50%; top: 55%;
  width: 12px; height: 12px;
  border-left: 3px solid #fff; border-top: 3px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.to-top:hover { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --nav-h: 96px; }
  .nav { gap: 0 18px; padding: 10px 0; }
  .nav a { font-size: 1.2rem; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .services img { width: 110px; height: 110px; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .shield { width: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .services img, .gallery img { transition: none; }
}
