/* ==========================================================================
   Fennis Bouw- en Aannemersbedrijf B.V. — Style Sheet
   Modern, lightweight, dependency-free CSS for a static site.
   ========================================================================== */

:root {
  /* Color palette — matched to logo: deep charcoal + logo red + construction grays */
  --color-primary: #2a2220;
  --color-primary-light: #3d3330;
  --color-accent: #cf1010;
  --color-accent-dark: #a80d0d;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-border: #e2e2e2;
  --color-text: #252120;
  --color-text-muted: #6b6560;
  --color-white: #ffffff;
  --color-accent-light: #e85050;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(40, 20, 20, 0.08);
  --shadow-md: 0 8px 24px rgba(40, 20, 20, 0.12);

  --container-width: 1160px;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Offset in-page anchor targets (e.g. footer service links) so the sticky header doesn't cover them */
[id] { scroll-margin-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; color: var(--color-primary); }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
section { padding: 4.5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.section-head { max-width: 700px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-dark { background: var(--color-primary); color: var(--color-white); }
.btn-dark:hover { background: var(--color-primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 800; font-size: 1.15rem; color: var(--color-primary); }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text-sub { display: block; font-size: 0.7rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: 0.03em; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav ul { display: flex; gap: 1.75rem; align-items: center; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--color-accent); border-color: var(--color-accent); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.95rem; color: var(--color-primary); }
.header-phone svg { width: 18px; height: 18px; color: var(--color-accent); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  .main-nav li { width: 100%; border-top: 1px solid var(--color-border); }
  .main-nav li:first-child { border-top: none; }
  .main-nav a { display: block; padding: 0.85rem 0; }
  .header-phone span { display: none; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a1412 100%);
  color: var(--color-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(207, 16, 16, 0.22), transparent 45%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--color-white); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 46ch; }
.hero .eyebrow { color: var(--color-accent-light); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-badges { display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.hero-badge svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; }
.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2rem;
}
.hero-stat { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1.25rem; }
.hero-stat strong { font-size: 2.25rem; color: var(--color-accent); font-weight: 800; }
.hero-stat strong.hero-stat-tagline { font-size: 1.5rem; }
.hero-stat span { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.hero-visual hr { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 1.25rem 0; }

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

/* ---- Page header (sub pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a1412 100%);
  color: var(--color-white);
  padding: 3.25rem 0;
}
.page-header h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.breadcrumbs { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.breadcrumbs a { color: rgba(255,255,255,0.9); }
.breadcrumbs a:hover { text-decoration: underline; }
.page-header-lead { max-width: 60ch; color: rgba(255,255,255,0.85); }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(207, 16, 16, 0.1);
  color: var(--color-accent);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

/* ---- Testimonials ---- */
.testimonial-quote { font-style: italic; color: var(--color-text); margin-bottom: 1rem; }
.testimonial-author { font-weight: 700; color: var(--color-primary); margin-bottom: 0; }
.testimonial-placeholder { display: block; font-weight: 400; font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.25rem; }

/* ---- Card CTA link ---- */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent);
}
.card-link:hover { color: var(--color-accent-dark); text-decoration: underline; }

/* ---- Process / steps ---- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.step { position: relative; padding-top: 0.25rem; }
.step-number {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 800;
  margin-bottom: 1rem;
}
.step-number::before { content: counter(step); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---- Timeline (Over ons) ---- */
.timeline { position: relative; margin-left: 1rem; padding-left: 2rem; border-left: 3px solid var(--color-border); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.timeline-year { display: inline-block; font-weight: 800; color: var(--color-accent); margin-bottom: 0.3rem; }

/* ---- Gallery ---- */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.gallery-visual {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: rgba(255,255,255,0.85);
}
.gallery-visual svg { width: 48px; height: 48px; }
.gallery-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-caption { padding: 1.1rem 1.25rem; }
.gallery-caption h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }

/* ---- Photo grid (project gallery) ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.photo-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.photo-grid figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.photo-grid figcaption {
  padding: 0.55rem 1rem;
  font-size: 0.83rem;
  color: var(--color-text-muted);
}

/* ---- Portrait (Rolf Fennis) ---- */
.portrait-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.portrait-photo {
  width: 150px;
  height: 185px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}
@media (max-width: 560px) {
  .portrait-block { flex-direction: column; }
  .portrait-photo { width: 100%; height: 240px; object-position: center 20%; }
}

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 0.35rem; }
.cta-banner .btn-dark { background: var(--color-primary); }
.cta-banner .btn-dark:hover { background: var(--color-primary-light); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 1.4rem 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 0.85rem; color: var(--color-text-muted); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.contact-list-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-list-item h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-list-item p { margin-bottom: 0; }
.contact-list-item .portrait-block { margin-top: 0.5rem; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.85); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr; gap: 2.5rem; }
.footer-grid > div:first-child > p { max-width: 32ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--color-white); margin-bottom: 0.85rem; }
.footer-brand svg { width: 34px; height: 34px; }
.site-footer h3 { color: var(--color-white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.site-footer a:hover { color: var(--color-white); }
.footer-list li { margin-bottom: 0.6rem; }
.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---- Utility ---- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---- 404 error page ---- */
.error-section { padding: 6rem 0; text-align: center; }
.error-section > .container > p { max-width: 50ch; margin-inline: auto; }
.error-section .hero-actions { justify-content: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
