/* Vereniging Plaatselijk Belang Oranjedorp - stylesheet */
:root{
  --brand:#0a4ea3;            /* blauw uit logo (brug) */
  --brand-dark:#063a7a;
  --brand-light:#3b82f6;
  --accent:#e8731a;           /* oranje - dorpsnaam Oranjedorp */
  --accent-dark:#c45e10;
  --accent-light:#f59e3c;
  --bg:#f6f8fb;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#5b6b80;
  --border:#e2e8f0;
  --radius:12px;
  --shadow:0 4px 20px rgba(10,78,163,.08);
  --max:1100px;
  --font:"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--text);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
h1,h2,h3{line-height:1.2;color:var(--brand-dark);margin-bottom:.6em}
h1{font-size:2.2rem}
h2{font-size:1.6rem}
h3{font-size:1.2rem}
p{margin-bottom:1em}
.container{max-width:var(--max);margin:0 auto;padding:0 1.25rem}

/* Header met oranje accentbalk */
.site-header{background:var(--surface);border-top:5px solid var(--accent);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50;box-shadow:var(--shadow)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.25rem;max-width:var(--max);margin:0 auto}
.brand{display:flex;align-items:center;gap:.75rem}
.brand img{width:54px;height:54px;border-radius:8px;background:#fff;object-fit:contain}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{color:var(--brand-dark);font-size:1rem}
.brand-text span{font-size:.78rem;color:var(--accent-dark);font-weight:600}
.nav-toggle{display:none;background:none;border:0;font-size:1.6rem;color:var(--brand-dark);cursor:pointer}
.nav ul{display:flex;list-style:none;gap:.25rem;flex-wrap:wrap}
.nav a{display:block;padding:.5rem .85rem;border-radius:8px;color:var(--text);font-weight:500;font-size:.95rem}
.nav a:hover{background:var(--bg);text-decoration:none}
.nav a.active{background:var(--accent);color:#fff}

.page-header a {
  color: #ffffff;
  text-decoration: underline;
}

.page-header a:hover {
  color: #ffedd5;
}

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 30px;
  align-items: center;
  padding: 30px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 14px;
  margin-bottom: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.btn{display:inline-block;background:var(--accent);color:#fff;padding:.8rem 1.5rem;border-radius:8px;font-weight:600;transition:transform .15s ease,background .15s}
.btn:hover{transform:translateY(-2px);text-decoration:none;background:var(--accent-dark)}
.btn-secondary{background:transparent;color:#000;border:2px solid #fff;margin-left:.5rem}
.btn-secondary:hover{background:#fff;color:var(--brand-dark)}


.hero-text {
  grid-column: 1;
}

.hero-logo-card {
  grid-column: 2;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,140,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 180px;
  width: 100%;
  justify-self: end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,140,0,0.18);
}

.hero-logo-card img {
  width: 100%;
  max-width: 140px;
  height: auto;
  max-height: 140px;
  display: block;
}

.hero-text h1 {
  margin: 0 0 10px;
  color: #c2410c;
  font-size: 1.8rem;
}

.hero-text p {
  margin: 0;
  color: #444;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }

  .hero-text,
  .hero-logo-card {
    grid-column: auto;
  }

  .hero-logo-card {
    max-width: 160px;
    margin: 0 auto;
    justify-self: center;
  }
}

/* === CARROUSEL === */
.carousel {
  position: relative;
  max-width: 900px;
  margin: 30px auto;
  overflow: hidden;
  padding: 20px 50px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  padding: 0;
}

.carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  cursor: zoom-in;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,140,0,0.85);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: #c2410c;
}

.carousel-btn.prev {
  left: 5px;
}

.carousel-btn.next {
  right: 5px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dots button.active {
  background: #e8731a;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 30px rgba(0,0,0,.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .carousel {
    padding: 20px 40px;
  }

  .carousel-slide img {
    height: 260px;
  }
}



/* Page header met oranje balk eronder */
.page-header{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-dark) 100%);color:#fff;padding:2.5rem 1.25rem;border-bottom:6px solid var(--accent)}
.page-header h1{color:#fff;margin:0}
.page-header .container{max-width:var(--max)}

/* Sections */
section{padding:3rem 0}
section.alt{background:var(--surface)}
.section-title{text-align:center;margin-bottom:2rem}
.section-title p{color:var(--muted);max-width:600px;margin:0 auto}

/* Cards / grids - oranje accent */
.grid{display:grid;gap:1.25rem}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--surface);padding:1.5rem;border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--border);border-top:4px solid var(--accent);transition:transform .2s ease}
.card:hover{transform:translateY(-3px)}
.card .icon{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent-light));display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.3rem;margin-bottom:1rem}
.card a.more{display:inline-block;margin-top:.5rem;color:var(--accent-dark);font-weight:600}

/* Lists (nieuws/agenda) - oranje balk links */
.entry{background:var(--surface);padding:1.5rem;border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--border);border-left:5px solid var(--accent);margin-bottom:1.25rem;display:grid;grid-template-columns:1fr;gap:1rem}
.entry.with-image{grid-template-columns:220px 1fr}
.entry .news-image{width:100%;height:160px;object-fit:cover;border-radius:8px;background:var(--bg)}
.entry .meta{font-size:.85rem;color:var(--muted);margin-bottom:.4rem;text-transform:uppercase;letter-spacing:.5px}
.entry h3{margin-bottom:.4rem}
.entry .date-block{display:inline-block;background:var(--accent);color:#fff;padding:.4rem .8rem;border-radius:6px;font-weight:600;font-size:.9rem;margin-bottom:.6rem}

/* Paginering */
.pagination{display:flex;justify-content:center;gap:.4rem;margin-top:2rem;flex-wrap:wrap}
.pagination button{background:var(--surface);border:1px solid var(--border);color:var(--text);padding:.5rem .9rem;border-radius:6px;cursor:pointer;font-weight:500;min-width:40px}
.pagination button:hover:not(:disabled){background:var(--bg)}
.pagination button.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.pagination button:disabled{opacity:.4;cursor:not-allowed}

/* Documents */
.doc-list{list-style:none}
.doc-list li{background:var(--surface);padding:1rem 1.25rem;border-radius:8px;margin-bottom:.6rem;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border);border-left:4px solid var(--accent);transition:background .15s}
.doc-list li:hover{background:var(--bg)}
.doc-list .doc-name{display:flex;align-items:center;gap:.75rem;font-weight:500}
.doc-list .doc-name::before{content:"📄";font-size:1.3rem}
.doc-list a{font-size:.9rem;font-weight:600;color:var(--accent-dark)}

/* Form */
.form{display:grid;gap:1rem;max-width:560px;margin:0 auto;background:var(--surface);padding:2rem;border-radius:var(--radius);box-shadow:var(--shadow);border-top:4px solid var(--accent)}
.form label{font-weight:500;font-size:.9rem;display:block;margin-bottom:.3rem}
.form input,.form textarea{width:100%;padding:.7rem .9rem;border:1px solid var(--border);border-radius:8px;font:inherit;background:var(--bg)}
.form input:focus,.form textarea:focus{outline:2px solid var(--accent);border-color:transparent}
.form button{background:var(--accent);color:#fff;padding:.85rem;border:0;border-radius:8px;font-weight:600;cursor:pointer;font-size:1rem;transition:background .15s}
.form button:hover{background:var(--accent-dark)}
.form .hp{position:absolute;left:-9999px} /* honeypot */
.form .form-status{padding:.85rem 1rem;border-radius:8px;font-size:.95rem}
.form .form-status.ok{background:#dcfce7;color:#14532d;border:1px solid #86efac}
.form .form-status.err{background:#fee2e2;color:#7f1d1d;border:1px solid #fca5a5}

/* Prose */
.prose{max-width:780px;margin:0 auto;background:var(--surface);padding:2.5rem;border-radius:var(--radius);box-shadow:var(--shadow);border-top:4px solid var(--accent)}
.prose h2{margin-top:1.5em}
.prose h2:first-child{margin-top:0}
.prose ul{margin:0 0 1em 1.5em}

/* Footer met oranje accent */
.site-footer{background:var(--brand-dark);color:#cbd5e1;padding:2.5rem 1.25rem 1rem;margin-top:2rem;border-top:5px solid var(--accent)}
.footer-inner{max-width:var(--max);margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.site-footer h4{color:#fff;margin-bottom:.8rem;font-size:1rem}
.site-footer a{color:#cbd5e1}
.site-footer a:hover{color:var(--accent-light)}
.site-footer ul{list-style:none}
.site-footer ul li{margin-bottom:.4rem}
.footer-bottom{max-width:var(--max);margin:1.5rem auto 0;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.1);text-align:center;font-size:.85rem}

/* Responsive */
@media (max-width:820px){
  .hero-inner{grid-template-columns:1fr;text-align:center}
  .hero-logo{max-width:240px;margin:0 auto}
  .grid-3,.grid-2{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr;text-align:center}
  .nav-toggle{display:block}
  .nav{display:none;width:100%;padding:.5rem 0 1rem}
  .nav.open{display:block}
  .nav ul{flex-direction:column;align-items:stretch}
  .nav a{padding:.7rem 1rem}
  .header-inner{flex-wrap:wrap}
  .hero h1{font-size:1.9rem}
  h1{font-size:1.7rem}
  .entry.with-image{grid-template-columns:1fr}
  .entry .news-image{height:200px}
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 30px rgba(0,0,0,.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}
