/* Portengen Grond- en Waterwerken — stylesheet
   Mobile-first. Colours taken from the logo (orange #ff7f2a, green #44aa00). */

:root {
  --orange: #ff7f2a;
  --orange-dark: #e06a18;
  --green: #44aa00;
  --green-dark: #2f7a00;
  --ink: #1f2420;
  --ink-soft: #4d544d;
  --muted: #7a817a;
  --line: #e2e5df;
  --bg: #f7f7f3;
  --card: #ffffff;
  --dark: #2b312b;
  --dark-2: #575e56;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 36, 32, .10);
  --nav-h: 72px;
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--dark); color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .6rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: .5rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline.on-light:hover { background: rgba(31,36,32,.06); }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 46px; width: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: .25rem; align-items: center; }
.nav-links a {
  display: block; padding: .55rem .9rem; border-radius: 8px; text-decoration: none;
  font-weight: 600; color: var(--ink-soft); font-size: .95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(31,36,32,.05); }
.nav-links .nav-cta { background: var(--orange); color: #fff; margin-left: .5rem; }
.nav-links .nav-cta:hover { background: var(--orange-dark); color: #fff; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px; border: 0; background: transparent; cursor: pointer; border-radius: 10px;
}
.nav-toggle:hover { background: rgba(31,36,32,.05); }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: .75rem 1.25rem 1.25rem; display: none;
}
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu a {
  display: block; padding: .9rem .5rem; text-decoration: none; font-weight: 600; font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border: 0; margin-top: .75rem; text-align: center; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu { display: none !important; }
}

/* Hero */
.hero {
  position: relative; min-height: min(78vh, 680px); display: grid; align-items: end;
  color: #fff; isolation: isolate; overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20,24,20,.88) 0%, rgba(20,24,20,.45) 50%, rgba(20,24,20,.15) 100%);
}
.hero-inner { padding: clamp(3rem, 10vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); max-width: 720px; }
.hero h1 { text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero .tagline { font-family: var(--font-head); color: var(--orange); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.6rem); margin-bottom: 1rem; }
.hero p.sub { font-size: 1.05rem; max-width: 52ch; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* USP strip */
.usps { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
.usp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem; display: flex; gap: 1rem; align-items: flex-start; }
.usp .icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(68,170,0,.12); color: var(--green-dark); }
.usp strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .15rem; }
.usp span { color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 700px) { .usps { grid-template-columns: repeat(3, 1fr); } }

/* Two column intro */
.split { display: grid; gap: 2rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }

/* Services */
.services { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; transition: transform .15s ease, box-shadow .15s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,127,42,.12); color: var(--orange-dark); margin-bottom: .9rem; }
.service h3 { margin-bottom: .3rem; }
.service p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 560px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* Portfolio preview + gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #ddd;
  aspect-ratio: 4 / 3; display: block; text-decoration: none; color: #fff;
  border: 0; padding: 0; cursor: pointer; width: 100%;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile .label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent); font-weight: 600; font-family: var(--font-head); text-align: left;
}
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery-cat { margin-top: 3rem; }
.gallery-cat:first-of-type { margin-top: 1rem; }
.gallery-cat h2 { display: flex; align-items: center; gap: .75rem; font-size: 1.45rem; }
.gallery-cat h2 .count { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--muted); }
.gallery-cat .gallery { margin-top: 1rem; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(10,12,10,.92); }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 1rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #fff; padding: .75rem; font-weight: 600; }
.lightbox .lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; cursor: pointer;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-prev { left: .75rem; } .lightbox .lb-next { right: .75rem; }
.lightbox .lb-close { position: fixed; top: .75rem; right: .75rem; transform: none; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 3.5rem; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,127,42,.12); color: var(--orange-dark); }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  font: inherit; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fafaf8;
  width: 100%; min-height: 48px; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); background: #fff; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: .9rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--green-dark); }
.form-status.err { color: #c62828; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.85); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-logo { background: #fff; border-radius: 10px; padding: .5rem .75rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 44px; width: auto; }
.socials { display: flex; gap: .6rem; margin-top: .75rem; }
.socials a { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.socials a:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* Page hero (portfolio) */
.page-hero { background: var(--dark); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero .lead { color: rgba(255,255,255,.8); }

/* Banner image band */
.band { height: clamp(180px, 30vw, 360px); }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta-band h2 { margin: 0; font-size: 1.5rem; }
.cta-band .btn-primary { background: #fff; color: var(--green-dark); }
.cta-band .btn-primary:hover { background: #f1f1ec; }

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