/* ----------------------------------------------------
   FONTS & KLEUREN
---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;700&display=swap');

:root{
  --olijfgroen:#51632ec9;
  --antraciet:#2f2f2f;
  --beige:#f5f5e0d3;

  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:16px;

  --shadow-sm:0 2px 6px rgba(0,0,0,.08);
  --shadow-md:0 4px 12px rgba(0,0,0,.12);

  --topbar-h: 64px; /* vaste topbar hoogte */
}

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

html{scroll-behavior:smooth;height:100%;max-width:100%;overflow-x:hidden}
body{
  font-family:'Roboto',sans-serif;
  font-size:clamp(.95rem,1vw,1rem);
  background:rgba(243,241,241,.903);
  color:var(--antraciet);
  line-height:1.6;
  height:100%;
  display:flex;
  flex-direction:column;
  max-width:100%;
  overflow-x:hidden;
  padding-top:var(--topbar-h); /* ruimte voor fixed topbar */
}
main{flex:1}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}

h1,h2,h3,h4,h5{
  font-family:'Bebas Neue','Oswald',sans-serif;
  letter-spacing:1px;
  font-weight:700;
  line-height:1.2;
  margin:0 0 .75em;
  color:#111;
}
h1{font-size:clamp(2.25rem,5vw,3rem)}
h2{font-size:clamp(1.5rem,3.5vw,2rem)}
h3{font-size:clamp(1.25rem,2.5vw,1.5rem)}
.small-text{font-size:clamp(.8rem,.9vw,.875rem);line-height:1.4}

img{max-width:100%;height:auto;display:block}
.logo{height:60px;width:auto}

/* ----------------------------------------------------
   CONTAINER
---------------------------------------------------- */
.container{max-width:1200px;margin:0 auto;padding:0 1rem}

/* ----------------------------------------------------
   HEADER + TOPBAR
---------------------------------------------------- */
header{
  position:relative;
  color:#f0f0ed;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.55)),
    url('images/ProjectBijgebouw/project-bijgebouw0.jpg') center/cover no-repeat;
  min-height:400px;
  box-shadow:0 4px 8px rgba(0,0,0,.1);
}
body.home-page header{
  min-height:600px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.55)),
    url('images/ProjectBijgebouw/project-bijgebouw0.jpg') center/cover no-repeat;
}

/* vaste topbar */
.container.topbar{
  position:fixed;top:0;left:0;right:0;width:100%;z-index:1000;
  background:#1c1c1cfb;
  box-shadow:0 2px 12px rgba(0,0,0,.18);
  padding:0;margin:0;
}

header .container{
  display:flex;justify-content:space-between;align-items:center;
  padding:1rem 2rem;max-width:100%;margin:0 auto;
}

.branding{display:flex;align-items:center;gap:1rem;padding:.5rem 2rem}
.branding img.logo{height:50px;width:auto}
.branding h1{
  font-size:1.5rem;line-height:1;margin:0;color:#fafaea;
  font-family:'Oswald',sans-serif;font-weight:400;
}
.slogan{font-size:1rem;color:#fafaea;margin:.2rem 0 0 .2rem;font-family:'Oswald',sans-serif;font-weight:200}

header nav{margin-left:auto}
#primary-nav{padding:.5rem 1.5rem;border-radius:6px}
#primary-nav .nav-links{list-style:none;display:flex;align-items:center;gap:1.25rem}
#primary-nav .nav-links a{
  color:#fafaea;font-weight:500;font-size:1.2rem;
  font-family:'Oswald',sans-serif;text-decoration:none;
  padding:6px 12px;border-radius:6px;
  transition:background-color .3s ease,color .3s ease;
}
#primary-nav .nav-links a:hover{background:#fafaea;color:#0d0d0d}

/* Hamburger */
.hamburger{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  background:none;border:none;cursor:pointer;padding:.5rem;z-index:10;
}
.hamburger-bar{width:25px;height:3px;background:#fff;border-radius:2px;transition:all .3s}

/* ----------------------------------------------------
   HERO (home)
---------------------------------------------------- */
body.home-page header{position:relative}
body.home-page header .hero-content{
  position:absolute;bottom:1.5rem;left:50%;transform:translateX(-50%);
  text-align:center;width:100%;padding:0 1rem;z-index:1;
}
.hero{
  background:transparent;display:inline-block;padding:1rem 2rem;border-radius:6px;
  max-width:1100px;margin:0 auto;
}
.hero h1{
  font-family:'Oswald',sans-serif;font-weight:500;
  font-size:clamp(1.8rem,3vw,2.3rem);color:#fff;margin-bottom:.75rem
}
.hero p{
  font-family:'Roboto',sans-serif;font-size:clamp(1rem,2vw,1.15rem);
  color:#f0f0f0;margin:0 auto 1.25rem;line-height:1.5;max-width:70ch
}
.hero-buttons{display:flex;justify-content:center;gap:1rem}
.btn{
  display:inline-block;background:#3ca35c;color:#fff;
  padding:.65rem 1.25rem;border-radius:6px;font-weight:500;
  max-width:clamp(70ch,90%,110ch);
  transition:background .25s,color .25s,transform .08s
}
.btn:hover{background:var(--antraciet);color:#fff;text-decoration:none}
.btn:active{transform:translateY(1px)}

/* ----------------------------------------------------
   INTRO & PROCES (1/3–2/3, titel in foto)
---------------------------------------------------- */
.intro-block,
.proces-section{width:100%;margin:clamp(32px,4vw,48px) 0}

/* grids 1/3–2/3 + gelijke hoogte */
.intro-block > .container,
.proces > .container{
  max-width:100%;
  padding:0 clamp(12px,2vw,24px);
  display:grid;
  align-items:stretch;
  gap:clamp(16px,4vw,48px);
  min-height:clamp(360px,45vw,560px);
}

/* Intro: foto 1/3, tekst 2/3 */
.intro-block > .container{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
/* Proces: tekst 2/3, foto 1/3 */
.proces > .container{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}

/* Foto-kolommen + overlay */
.intro-image,.proces-image{
  position:relative;overflow:hidden;border-radius:8px;min-height:260px
}
.intro-image>img,.proces-image>img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;display:block;border-radius:8px
}
.intro-image::after,.proces-image::after{
  content:"";position:absolute;inset:0;border-radius:8px;pointer-events:none;z-index:1
}
.intro-image::after{background:linear-gradient(to bottom, rgba(0, 0, 0, 0.473), rgba(0, 0, 0, 0.193))}
.proces-image::after{background:linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,.35))}

/* Titels in de foto (intro: h2, proces: .section-title) */
.intro-image>h2,
.proces-image>.section-title{
  position:absolute;top:12%;left:50%;transform:translateX(-50%);z-index:2;
  width:calc(100% - clamp(32px,6vw,96px));max-width:44rem;margin:0;
  color:#fafaea;text-align:center;font-family:'Oswald',sans-serif;font-weight:500;
  font-size:clamp(1.6rem,3.5vw,2.6rem);line-height:1.15;text-shadow:0 2px 6px rgba(0,0,0,.35);
  text-wrap:balance;
}

/* Tekstkolommen */
.intro-text,.proces-text{
  align-self:center;text-align:center;
  padding:clamp(20px,3.5vw,44px);
  max-width:none; /* volledige 2/3 kolom */
  font-size:clamp(1rem,1.2vw,1.125rem);
  line-height:1.7;
}
.intro-text p+p,.proces-text p+p{margin-top:1.25rem}

/* ----------------------------------------------------
   FOTO-BREAK
---------------------------------------------------- */
.foto-zone{
  width:100%;max-height:500px;margin:0;padding:0;overflow:hidden;
  background-color:linear-gradient(to bottom, rgba(0,0,0,.356), rgba(0,0,0,.55));
}
.foto-zone img{width:100%;height:auto;display:block}

/* ----------------------------------------------------
   SERVICES / REALISATIES-GRID
---------------------------------------------------- */
.services-section{width:100%;margin:3rem 0;padding:0 1rem}
.services-intro h2{
  margin-bottom:2rem;font-family:'Bebas Neue';
  font-size:clamp(2rem,3.5vw,2.6rem);text-align:center;
}
.services-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:1.5rem;max-width:100%;
}
.service-card{
  background:#ffffff;border-radius:6px;padding:1.25rem;box-shadow:var(--shadow-sm);
  text-align:center;display:flex;flex-direction:column;height:100%;
  text-decoration:none;color:inherit;transition:transform .25s, box-shadow .25s;
}
.service-card:hover,.service-card:focus-visible{transform:translateY(-2px);box-shadow:var(--shadow-md);outline:none}
.service-card:focus-visible{outline:2px solid #000;outline-offset:4px}
.service-card .image{width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:6px;margin-bottom:1rem}
.service-card .image img{width:100%;height:100%;object-fit:cover;display:block}

/* ----------------------------------------------------
   CALL TO ACTION-BLOK
---------------------------------------------------- */
.Contacteer-ons{margin:3rem auto;text-align:center}
.Contacteer-ons .btn{
  display:inline-block;margin:0 auto;padding:.75rem 1.5rem;background:#3ca35c;
  color:#fff;border-radius:6px;max-width:clamp(70ch,90%,110ch);
  font-weight:400;text-decoration:none;transition:background .25s ease;
}
.Contacteer-ons .btn:hover{background:var(--antraciet)}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.site-footer{background:#1c1c1cfb;color:whitesmoke;font-size:.9rem;padding:2rem 1rem}
.footer-container{
  max-width:1400px;margin:0 auto;display:grid;
  grid-template-columns:repeat(4,1fr);gap:3rem;text-align:left;
}
.footer-column h4{font-size:1.2rem;text-transform:uppercase;margin-bottom:1rem;font-weight:400;color:whitesmoke}
.footer-logo{max-width:110px;margin-bottom:1rem}
.footer-bottom{text-align:center;padding-top:.75rem}
.footer-bottom a{color:#fafaea;margin:0 .5rem}
.footer-bottom a:hover{opacity:.7;color:blue}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:.25rem 0}

/* Links in footer onderstrepen */
.site-footer a,
.footer-bottom a{
  text-decoration:underline;text-underline-offset:.15em;text-decoration-thickness:1.5px;
}
/* Enkel interne pagina’s, geen tel/mail */
.site-footer a[href$=".html"], .site-footer a[href^="/"]{
  text-decoration:underline;text-underline-offset:.15em;text-decoration-thickness:1.5px;
}
.site-footer a[href^="tel:"], .site-footer a[href^="mailto:"]{text-decoration:none}

/* ----------------------------------------------------
   REALISATIES – OVERVIEW
---------------------------------------------------- */
.realisaties-totaal{margin:3rem auto;padding:0 1rem;max-width:90%}
.realisaties-totaal h2{font-size:2rem;margin:0 0 3rem;text-align:center}
.realisaties-grid{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.realisatie-card{
  background:#fff;border-radius:6px;padding:1.25rem;box-shadow:var(--shadow-sm);
  text-align:center;display:flex;flex-direction:column;height:100%;
  transition:transform .25s, box-shadow .25s;text-decoration:none;color:inherit;
}
.realisatie-card:hover,.realisatie-card:focus-visible{transform:translateY(-2px);box-shadow:var(--shadow-md);border-radius:6px;outline:none}
.realisatie-card:focus-visible{outline:2px solid #000;outline-offset:4px}
.realisatie-card .image{width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:6px;margin-bottom:1rem}
.realisatie-card .image img{width:100%;height:100%;object-fit:cover;display:block}

/* ----------------------------------------------------
   CONTACTPAGINA
---------------------------------------------------- */
.contactname{text-align:center;margin:2rem auto 0rem;max-width:800px;padding:0 1rem}
.contactname h1{font-size:2rem;margin-bottom:.5rem}
.contactname p{font-size:1.1rem;color:#555}
.contacteer-ons{color:whitesmoke;font-weight:400;font-size:1.5rem}

.contact-wrapper{
  max-width:1200px;margin:3rem auto 3rem;padding:1.25rem;
  background:
    linear-gradient(to right, rgba(47, 47, 47, 0.963), rgba(47, 47, 47, 0.897)),
    url('images/TheBarn/TheBarn-contact.jpg') center/cover no-repeat;
  border:1px solid #cfcdbd;border-radius:6px;box-shadow:var(--shadow-sm);color:#fff;
}
.contact-section{display:block;max-width:800px;margin:0 auto}
.contact-form{padding:1rem 1.25rem;border-radius:6px}
.contact-form h2{font-size:1.6rem;margin:0 0 .75rem}
.contact-form label{display:block;font-weight:500;margin:.65rem 0 .35rem}
.contact-form input,.contact-form textarea{
  width:100%;padding:.85rem 1rem;background:#f9f9f6;color:var(--antraciet);
  border:2px solid #cfcdbd;border-radius:6px;outline:none;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input:focus,.contact-form textarea:focus{
  border-color:var(--olijfgroen);box-shadow:0 0 0 3px rgba(81,99,46,.18);background:#fff
}
.contact-form button{
  margin-top:.9rem;background:#3ca35c;color:#fff;padding:.85rem 1rem;border:none;border-radius:6px;cursor:pointer;
  font-weight:600;font-size:clamp(.95rem,1vw,1.05rem);
  transition:background .25s,color .25s,transform .08s;
  align-self:center;
}
.contact-form button:hover{background:#fafaea;color:var(--antraciet)}
.contact-form button:active{transform:translateY(1px)}

/* ----------------------------------------------------
   PAGE-HERO voor Realisaties & Contact
---------------------------------------------------- */
body.realisaties-page header,
body.contact-page header{position:relative;min-height:400px}
body.realisaties-page header .realisaties-text,
body.contact-page    header .contactname{
  position:absolute;bottom:1rem;left:50%;transform:translateX(-50%);
  text-align:center;width:100%;padding:0 1rem;z-index:1;
}
body.realisaties-page header .realisaties-text h2,
body.contact-page    header .contactname h1,
body.contact-page    header .contactname h2{
  font-family:'Oswald',sans-serif;font-weight:500;
  font-size:clamp(1.8rem,3vw,2.3rem);color:#fff;line-height:1.2;
  text-shadow:0 2px 6px rgba(0,0,0,.35);margin:0;
}
body.contact-page header .contactname p,
.realisaties-text p{
  font-size:clamp(1rem,2vw,1.15rem);color:#f0f0f0;
  margin:.5rem auto 1rem;line-height:1.5;max-width:70ch;
}

/* ----------------------------------------------------
   MEDIA QUERIES
---------------------------------------------------- */
@media (max-width:900px){
  .intro-block > .container,
  .proces > .container{grid-template-columns:1fr;min-height:unset}
  .intro-image,.proces-image{border-radius:0;min-height:260px}
  .intro-image>h2,.proces-image>.section-title{width:92%}
}

@media (max-width:768px){
  /* Header/nav */
  header .container{
    position:relative;flex-wrap:nowrap;flex-direction:row;align-items:center;justify-content:space-between;gap:1rem;
  }
  .branding{flex-shrink:1;min-width:0;gap:.75rem}
  .branding h1{font-size:1rem}
  .slogan{font-size:.6rem}
  .logo{height:35px}
  .hamburger{display:flex;align-self:center;z-index:20;margin-left:1rem}
  .hamburger-bar{width:25px;height:3px;background:#fff;border-radius:2px;transition:all .3s}

  #primary-nav{
    display:none;position:absolute;top:100%;right:1rem;width:260px;background:rgba(47,47,47,.95);
    padding:1rem;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,.2);z-index:30
  }
  #primary-nav.open{
    display:block;top:100%;right:1rem;width:180px;background:rgba(47,47,47,.95);
    padding:1rem;border-radius:10px;box-shadow:0 4px 12px rgba(0,0,0,.2);z-index:15
  }
  #primary-nav .nav-links{display:flex;flex-direction:column;gap:1rem;margin:0;padding:0;align-items:stretch;text-align:center}
  #primary-nav .nav-links a{font-size:.9rem}

  /* body fonts iets compacter */
  h1{font-size:clamp(2rem,5vw,3rem)}
  h2{font-size:clamp(1.5rem,3.5vw,2rem)}
  h3{font-size:clamp(1.25rem,2.5vw,1.5rem)}
  body{font-size:clamp(.95rem,1.2vw,1rem)}

  /* Hero (home) */
  .hero .container{display:flex;flex-direction:column;align-items:center;max-width:100%;gap:1rem}
  .hero .btn{display:block;width:100%;max-width:220px;margin:.5rem auto;text-align:center}
  body.home-page header .hero-content{bottom:.75rem;max-width:95%;padding:0 .75rem}
  body.home-page header .hero{max-width:95%;padding:.9rem 1rem;border-radius:6px}
  body.home-page header .hero-content h1{
    line-height:1.2;margin-bottom:.5rem;font-family:'Oswald',sans-serif;font-weight:500;
    font-size:clamp(1.6rem,3.5vw,2.6rem);
  }
  body.home-page header .hero-content p{font-size:.95rem;line-height:1.4;max-width:90%;margin:0 auto 1rem}
  body.home-page header .hero-content .btn{padding:.6rem 1rem;font-size:.9rem;margin:.25rem}

  /* Intro */
  .intro-block .container{grid-template-columns:1fr;min-height:unset}
  .intro-image{min-height:260px}
  .intro-text{padding:1.25rem;text-align:center}

  /* Proces */
  .proces .container{grid-template-columns:1fr}
  .proces-image{text-align:center;border-radius:0}

  /* Intro en Proces */
  .intro-text, .proces-text {
    font-size: .95rem; /* zelfde als hero p */
  }

  /* Services */
  .services-grid{grid-template-columns:1fr}
  .service-card{padding:1rem}

  /* Footer compacter */
  .footer-container{grid-template-columns:1fr;text-align:center;gap:1.5rem}
  .footer-logo{max-width:90px;margin:0 auto 1rem}
  .site-footer{padding:1rem .5rem;font-size:.8rem}
  .footer-column h4{font-size:.9rem;margin-bottom:.5rem}
  .footer-bottom{padding-top:.5rem;font-size:.75rem}
  .footer-bottom a{margin:0 .3rem}

  /* Contact */
  .contactname{margin:1rem 1rem 1.5rem;padding:0}
  .contactname h1{font-size:1.4rem;margin-bottom:.25rem}
  .contactname p{font-size:1rem;margin:0 auto}
  .contact-wrapper{padding:.75rem;margin:2rem 1.25rem;border-radius:12px;background-size:cover}
  .contact-section{grid-template-columns:1fr;gap:.9rem}
  .contact-form{padding:.75rem}
  .contact-form input,.contact-form textarea{padding:.8rem .9rem;max-width:100%}
  .contact-form button{width:50%;max-width:320px;margin:.75rem auto 0;align-self:center;padding:.75rem 1rem}

  /* Realisaties */
  .realisaties-totaal{text-align:center;padding:0 1rem}
  .realisaties-totaal h2{font-size:1.75rem;line-height:1.4;max-width:90%;margin:0 auto 1rem}
  .realisaties-grid{grid-template-columns:1fr}
  .realisatie-card{padding:1rem}

  /* Page-hero koppen iets kleiner */
  body.realisaties-page header .realisaties-text h2,
  body.contact-page    header .contactname h1,
  body.contact-page    header .contactname h2{
    font-size:clamp(1.3rem,3.5vw,1.6rem);
  }
}

/* ----------------------------------------------------
   TOUCH: hover-effect neutraliseren
---------------------------------------------------- */
@media (hover:none){
  .realisatie-card:hover,.service-card:hover{transform:none;box-shadow:var(--shadow-sm)}
}

/* Intro & Proces – smallere tekstkolom alleen op de homepage */
body.home-page .intro-text,
body.home-page .proces-text {
  max-width: clamp(80ch, 90%, 92ch); /* ~50–72 tekens per regel, nooit > 65% */
  margin-inline: auto;               /* centreert binnen de 2/3-kolom */
  justify-self: center;              /* centreert het grid-item horizontaal */
  /* laat text-align staan zoals jij het nu hebt (centraal) */
}

/* Extra: op héél brede schermen nog iets smaller (optioneel) */
@media (min-width: 1200px) {
  body.home-page .intro-text,
  body.home-page .proces-text { max-width: 80ch; }
}

/* Mobiel: gewoon breed, zodat het prettig leest */
@media (max-width: 900px) {
  body.home-page .intro-text,
  body.home-page .proces-text { max-width: 95%; }
}

/* Wil je de uitlijning links i.p.v. centraal?
body.home-page .intro-text,
body.home-page .proces-text { text-align: left; }
*/


/* ============== HEADER BUTTONS — UNIFORM OP MOBIEL ============== */

/* 1) Zet de generieke knopbreedte uit (voorkomt te brede knoppen) */
.btn { max-width: none; }

/* 2) Zelfde schaal als index-page, op álle pagina's met een header-CTA */
@media (max-width: 768px){
  body.home-page header .hero .btn,          /* index */
  body.realisaties-page header .btn,         /* realisaties */
  body.contact-page    header .btn {         /* contact */
    display: block;
    width: 100%;
    max-width: 220px;        /* zelfde als index */
    padding: .6rem 1rem;     /* zelfde als index */
    font-size: .9rem;        /* zelfde als index */
    margin: .25rem auto;     /* centreren + beetje ruimte */
    text-align: center;
  }

  /* Als je 2 CTA's naast elkaar hebt in de hero */
  .hero-buttons {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;         /* voorkomt overlappen */
  }
}

/* (optioneel) Trek dit door tot kleine tablets */
@media (max-width: 1024px){
  body.home-page header .hero .btn,
  body.realisaties-page header .btn,
  body.contact-page    header .btn {
    max-width: 220px;
    font-size: .95rem;
  }
}


