/*
Theme Name: SSV Scherpschutters Veghel
Author: SSV Scherpschutters Veghel
Description: Op maat gemaakt WordPress-thema voor SSV Scherpschutters Veghel
Version: 1.0
*/

:root {
  --primary: #1b365d;    /* Diep sportblauw */
  --accent: #c8102e;     /* KNSA-rood accent */
  --dark: #111827;
  --light: #f4f6f9;
  --text: #333333;
  --white: #ffffff;
}

.md-geel, .kleur-geel { color: #d97706; font-weight: 700; }
.md-rood, .kleur-rood { color: var(--accent); font-weight: 600; }
.md-blauw, .kleur-blauw { color: var(--primary); font-weight: 600; }
.md-groen, .kleur-groen { color: #065f46; font-weight: 600; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--text); line-height: 1.6; background: var(--white); }

/* Navigatie (Desktop / Computer) */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1140px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: flex-start; gap: 2.5rem; align-items: center; position: relative; }
.logo { display: flex; align-items: center; text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--primary); letter-spacing: 0.5px; flex-shrink: 0; }
.logo span { color: var(--accent); }
.logo img { height: 55px; width: auto; display: block; }

nav { flex: 1; display: flex; align-items: center; }
nav ul { list-style: none; display: flex; gap: 1.1rem; align-items: center; width: 100%; margin: 0; padding: 0; }
nav li { margin-bottom: 0; display: flex; align-items: center; }
nav ul li:last-child { margin-left: auto; }
nav a { text-decoration: none; color: var(--dark); font-weight: 700; font-size: 0.95rem; line-height: 1; display: inline-flex; align-items: center; transition: color 0.2s; }
nav a:hover, nav li.current-menu-item a { color: var(--accent); }
.btn-nav, nav ul li:last-child a { background: var(--primary); color: var(--white) !important; padding: 0.55rem 1.1rem; border-radius: 6px; }
.btn-nav:hover, nav ul li:last-child a:hover { background: var(--accent); }

/* Hamburgermenu knop */
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--primary); cursor: pointer; padding: 0.25rem 0.5rem; line-height: 1; }

/* Algemene containers & koppen */
section { padding: 4.5rem 1.5rem; }
.container { max-width: 1140px; margin: 0 auto; }
.bg-light { background: var(--light); }

/* Subpagina Header */
.page-header { background: linear-gradient(135deg, var(--dark), var(--primary)); color: var(--white); padding: 4rem 1.5rem; text-align: center; }
.page-header h1 { font-size: 2.3rem; margin-bottom: 0.5rem; }
.page-header p { color: #d1d5db; max-width: 650px; margin: 0 auto; font-size: 1.05rem; }

/* Hero Sectie */
.hero {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(27, 54, 93, 0.85)),
              url('https://unsplash.com') center/cover;
  color: var(--white);
  padding: 6rem 1.5rem;
  text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.badge { display: inline-block; background: rgba(255,255,255,0.15); padding: 0.35rem 0.9rem; border-radius: 50px; font-size: 0.85rem; margin-bottom: 1rem; letter-spacing: 0.5px; }
.hero h1 { font-size: 2.6rem; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.15rem; color: #e5e7eb; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Knoppen */
.btn-primary { display: inline-block; background: var(--accent); color: var(--white); padding: 0.85rem 1.75rem; border-radius: 6px; text-decoration: none; font-weight: 600; transition: 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { background: #a50d26; }
.btn-secondary { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.4); color: var(--white); padding: 0.85rem 1.75rem; border-radius: 6px; text-decoration: none; font-weight: 600; transition: 0.2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* Secties, Grids & Kaarten */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.section-title p { color: #6b7280; max-width: 650px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.card {
  background: var(--white); border-radius: 10px; padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-top: 4px solid var(--primary);
  display: flex; flex-direction: column; align-items: flex-start;
}
.card.accent-top { border-top-color: var(--accent); }
.card h3 { color: var(--primary); margin-bottom: 0.75rem; font-size: 1.3rem; }
.card p { color: #4b5563; font-size: 0.98rem; }
.card p + .btn-primary { margin-top: 1.25rem; }

.step-badge {
  display: inline-block; background: #eff6ff; color: var(--primary); font-weight: 700;
  font-size: 0.8rem; padding: 0.25rem 0.75rem; border-radius: 50px; margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Verkorte Agenda & Mededelingen Split */
.agenda-split { display: grid; grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: start; }
.agenda-widget { background: var(--white); border-radius: 10px; padding: 1.25rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-top: 4px solid var(--accent); }
.agenda-widget h3 { color: var(--primary); font-size: 1.25rem; margin-bottom: 0.75rem; }
.agenda-crop-wrapper { position: relative; width: 100%; height: 440px; overflow: hidden; border-radius: 6px; background: var(--white); }
.agenda-crop-wrapper::after { content: ""; position: absolute; inset: 0; z-index: 10; background: transparent; touch-action: pan-y; }
.agenda-crop-wrapper iframe { position: absolute; top: -12px; left: 0; width: calc(100% + 18px); height: 525px; border: 0; pointer-events: none; user-select: none; }
.agenda-more-link { display: inline-block; margin-top: 0.85rem; color: var(--primary); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.agenda-more-link:hover { color: var(--accent); }

.right-column-stack { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.mededelingen-card { border-top: 4px solid var(--accent); }
.mededelingen-body { color: #374151; font-size: 0.98rem; line-height: 1.65; }
.mededelingen-body h3, .mededelingen-body h4 { color: var(--primary); margin: 0.9rem 0 0.35rem 0; font-size: 1.1rem; }
.mededelingen-body h3:first-child, .mededelingen-body h4:first-child { margin-top: 0; }
.mededelingen-body p { margin-bottom: 0.65rem; }
.mededelingen-body p:last-child { margin-bottom: 0; }
.mededelingen-body ul { margin: 0.4rem 0 0.75rem 1.4rem; }
.mededelingen-body li { margin-bottom: 0.3rem; }

/* Info balk */
.info-banner { background: var(--primary); color: var(--white); border-radius: 12px; padding: 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.info-banner h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.info-banner p { color: #d1d5db; max-width: 600px; }

/* Agenda pagina */
.agenda-wrapper { position: relative; background: var(--white); border-radius: 10px; padding: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-top: 4px solid var(--primary); overflow: hidden; }
.agenda-wrapper::after { content: ""; position: absolute; top: 34px; right: 34px; width: 42px; height: 42px; background-color: #f0f4f9; z-index: 10; pointer-events: auto; }
.agenda-wrapper iframe { width: 100%; height: 650px; display: block; }
.agenda-note { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; background: var(--white); padding: 1.25rem 1.5rem; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border-left: 4px solid var(--accent); }
.agenda-note p { font-size: 0.95rem; color: var(--text); margin: 0; }
.btn-calendar { background: var(--primary); color: var(--white); padding: 0.6rem 1.2rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: background 0.2s; white-space: nowrap; }
.btn-calendar:hover { background: var(--accent); }

/* Bestuur pagina */
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.board-card { background: var(--white); border-radius: 10px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-top: 4px solid var(--primary); text-align: center; transition: transform 0.2s; }
.board-card:hover { transform: translateY(-4px); }
.board-card.highlight { border-top-color: var(--accent); }
.avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--light); color: var(--primary); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem auto; border: 2px solid var(--primary); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.role-badge { display: inline-block; background: rgba(200, 16, 46, 0.1); color: var(--accent); font-weight: 600; font-size: 0.8rem; padding: 0.25rem 0.75rem; border-radius: 50px; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; }
.board-card h3 { color: var(--dark); font-size: 1.2rem; margin-bottom: 0.4rem; }
.board-card p { color: #6b7280; font-size: 0.9rem; margin-bottom: 1rem; }
.board-mail { color: var(--primary); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.board-mail:hover { color: var(--accent); text-decoration: underline; }

/* Contact pagina */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 2.5rem; align-items: start; }
.contact-grid .card { display: block; }
.contact-grid .card h2 { color: var(--primary); font-size: 1.4rem; margin-bottom: 1.25rem; }
.info-block { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e5e7eb; }
.info-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.info-block h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.4rem; }
.info-block a { color: var(--accent); font-weight: 600; text-decoration: none; }
.info-block a:hover { text-decoration: underline; }
.route-note { background: #eff6ff; border-left: 4px solid var(--primary); padding: 0.85rem 1rem; border-radius: 0 6px 6px 0; margin-top: 0.85rem; font-size: 0.93rem; color: var(--dark); }
.vcard-box { display: flex; align-items: center; gap: 1.25rem; background: var(--light); padding: 1rem; border-radius: 8px; margin-top: 0.5rem; }
.vcard-box img { width: 120px; height: 120px; background: var(--white); padding: 6px; border-radius: 6px; border: 1px solid #e5e7eb; flex-shrink: 0; }
.vcard-box p { font-size: 0.9rem; color: #4b5563; line-height: 1.45; margin-bottom: 0.6rem; }
.btn-vcf { display: inline-block; background: var(--primary); color: var(--white) !important; padding: 0.45rem 0.9rem; border-radius: 5px; font-size: 0.85rem; font-weight: 600; text-decoration: none !important; transition: background 0.2s; }
.btn-vcf:hover { background: var(--accent); }
.map-card { display: flex; flex-direction: column; height: 100%; }
.map-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.map-header h2 { margin-bottom: 0; }
.btn-maps { display: inline-block; background: var(--primary); color: var(--white); padding: 0.6rem 1.2rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: background 0.2s; }
.btn-maps:hover { background: var(--accent); }
.map-wrapper { width: 100%; height: 460px; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* Downloads pagina */
.doc-card { background: var(--white); border-radius: 10px; padding: 1.75rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-left: 4px solid var(--primary); display: flex; flex-direction: column; justify-content: space-between; }
.doc-card.accent { border-left-color: var(--accent); }
.doc-type { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--accent); letter-spacing: 0.5px; margin-bottom: 0.4rem; display: block; }
.doc-card h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 0.5rem; }
.doc-card p { color: #4b5563; font-size: 0.95rem; margin-bottom: 1.25rem; }
.btn-download { display: inline-block; background: var(--light); color: var(--primary); font-weight: 600; padding: 0.6rem 1.1rem; border-radius: 6px; text-decoration: none; font-size: 0.9rem; border: 1px solid #d1d5db; transition: 0.2s; align-self: flex-start; }
.btn-download:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Footer */
footer { background: var(--dark); color: #9ca3af; padding: 3rem 1.5rem; font-size: 0.9rem; }
.footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
footer h4 { color: var(--white); margin-bottom: 1rem; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 0.5rem; }
footer a { color: #9ca3af; text-decoration: none; }
footer a:hover { color: var(--white); }
.copyright { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #374151; }

/* Laptop & Tablet (tot 1024px) */
@media (max-width: 1024px) {
  .nav-container { justify-content: space-between; }
  .menu-toggle { display: block; }
  nav { flex: initial; }
  nav ul {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 1.25rem 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-top: 1px solid #e5e7eb; align-items: flex-start; gap: 0.9rem;
  }
  nav li { margin-bottom: 0; }
  nav ul li:last-child { margin-left: 0; }
  nav ul.open { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .agenda-split { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrapper { height: 360px; }
}

@media (max-width: 768px) {
  .logo img { height: 48px; }
  .hero { padding: 4rem 1rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }
  .page-header { padding: 3rem 1rem; }
  .page-header h1 { font-size: 1.75rem; }
  section { padding: 2.5rem 1rem; }
  .info-banner { padding: 2rem 1.5rem; }
  .agenda-wrapper { padding: 0.75rem; }
  .agenda-wrapper iframe { height: 480px; }
  .agenda-wrapper::after { top: 22px; right: 22px; }
  .agenda-note { flex-direction: column; align-items: flex-start; }
  .btn-calendar { width: 100%; text-align: center; }
  .vcard-box { flex-direction: column; text-align: center; }
}
