/* ==============================
   VOLT SOEST STYLE
   Gebaseerd op voltsoest.eu
   Kleuren: Volt Purple + wit
   Font: Ubuntu (Google Fonts)
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --volt-purple:   #502379;
  --volt-purple-dark: #3a1858;
  --volt-purple-light: #7b3fad;
  --volt-purple-pale: #f3edf9;
  --volt-yellow:   #ffdd00;
  --volt-white:    #ffffff;
  --text-dark:     #1a1a1a;
  --text-mid:      #444444;
  --text-light:    #717171;
  --border:        #e5e5e5;
  --radius:        8px;
  --shadow:        0 2px 16px rgba(80,35,121,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--volt-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==============================
   NAVBAR
   ============================== */
.navbar {
  background: var(--volt-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--volt-purple);
  white-space: nowrap;
  flex-shrink: 0;
}
.navbar-brand:hover { text-decoration: none; color: var(--volt-purple-dark); }

.navbar-brand .brand-volt {
  background: var(--volt-purple);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-item > a {
  display: block;
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-item > a:hover,
.nav-item > a.active {
  background: var(--volt-purple-pale);
  color: var(--volt-purple);
  text-decoration: none;
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  list-style: none;
  min-width: 200px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem 0;
  z-index: 200;
}

.dropdown li a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: background 0.12s;
}
.dropdown li a:hover {
  background: var(--volt-purple-pale);
  color: var(--volt-purple);
  text-decoration: none;
}

.has-dropdown:hover .dropdown { display: block; }
.arrow { font-size: 0.65rem; opacity: 0.6; margin-left: 2px; }

/* CTA buttons in nav */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Ubuntu', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--volt-purple);
  color: #fff;
  border-color: var(--volt-purple);
}
.btn-primary:hover {
  background: var(--volt-purple-dark);
  border-color: var(--volt-purple-dark);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--volt-purple);
  border-color: var(--volt-purple);
}
.btn-outline:hover {
  background: var(--volt-purple-pale);
  text-decoration: none;
}
.btn-large {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: 24px;
}

/* Social icons in nav */
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--volt-purple);
  font-size: 0.85rem;
  transition: background 0.15s;
}
.nav-social a:hover { background: var(--volt-purple-pale); }

/* Mobile toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--volt-purple);
  padding: 0.25rem;
}

/* ==============================
   HERO
   ============================== */
.hero {
  background: linear-gradient(135deg, var(--volt-purple) 0%, var(--volt-purple-light) 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #fff;
  color: var(--volt-purple);
  border-color: #fff;
}
.btn-hero-primary:hover {
  background: var(--volt-yellow);
  border-color: var(--volt-yellow);
  color: var(--text-dark);
  text-decoration: none;
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  text-decoration: none;
  color: #fff;
}

/* ==============================
   VISION SECTION (3 cards with photo)
   Matches voltsoest.eu "Onze visie"
   ============================== */
.vision-section {
  padding: 5rem 1.5rem;
  background: #fff;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--volt-purple);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.vision-card {
  background: var(--volt-purple-pale);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.vision-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.vision-card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #ddd;
}

.vision-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.vision-person {
  font-size: 0.85rem;
  color: var(--volt-purple);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.vision-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.vision-card-body p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.section-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 600;
  color: var(--volt-purple);
  font-size: 1rem;
}
.section-link::after { content: ' →'; }
.section-link:hover { text-decoration: underline; }

/* ==============================
   EVENTS & NEWS SECTIONS
   ============================== */
.events-section,
.news-section {
  padding: 4rem 1.5rem;
}

.events-section { background: var(--volt-purple-pale); }
.news-section   { background: #fff; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-header .section-title { margin-bottom: 0; }

.section-header .section-subtitle {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--volt-purple);
  white-space: nowrap;
}
.view-all:hover { text-decoration: underline; }

/* Event cards */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.4rem;
  border-left: 4px solid var(--volt-purple);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.event-card:hover { box-shadow: var(--shadow); }

.event-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.event-date-badge {
  background: var(--volt-purple);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.event-location-text {
  font-size: 0.83rem;
  color: var(--text-light);
}

.event-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.event-card h3 a { color: var(--text-dark); }
.event-card h3 a:hover { color: var(--volt-purple); text-decoration: none; }
.event-card p { font-size: 0.9rem; color: var(--text-mid); }

/* News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.news-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--volt-purple);
}

.news-card time {
  font-size: 0.8rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.4rem;
}
.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.news-card h3 a { color: var(--text-dark); }
.news-card h3 a:hover { color: var(--volt-purple); text-decoration: none; }
.news-card p { font-size: 0.9rem; color: var(--text-mid); }

.no-content {
  color: var(--text-light);
  font-style: italic;
  padding: 1rem 0;
}

/* ==============================
   TEAM SECTION
   ============================== */
.team-section {
  padding: 4rem 1.5rem;
  background: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.team-card {
  text-align: center;
}

.team-card-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--volt-purple-pale);
  background: #eee;
}

.team-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--volt-purple);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ==============================
   PAGE HERO (inner pages)
   ============================== */
.page-hero {
  background: var(--volt-purple);
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
}
.page-hero-inner { max-width: 1080px; margin: 0 auto; }
.page-hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 0.4rem; }
.page-hero .lead { font-size: 1.1rem; opacity: 0.85; max-width: 600px; }

.page-content {
  max-width: 1080px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.intro-section {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  background: var(--volt-purple-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-email {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}
.footer-email a { color: rgba(255,255,255,0.65); }
.footer-email a:hover { color: #fff; }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-social a:hover { color: #fff; text-decoration: none; }

.footer-links { display: flex; flex-direction: column; gap: 0.4rem; text-align: right; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ==============================
   OVERVIEW PAGES (communities, fracties)
   ============================== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.overview-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}
.overview-card:hover {
  border-color: var(--volt-purple);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.overview-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--volt-purple);
  margin-bottom: 0.4rem;
}
.overview-card p { font-size: 0.9rem; color: var(--text-mid); }

/* ==============================
   MOBILE
   ============================== */
@media (max-width: 820px) {
  .navbar-toggle { display: block; }
  .nav-menu, .nav-cta, .nav-social {
    display: none;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .nav-item > a { padding: 0.65rem 0.5rem; }
  .has-dropdown .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: var(--volt-purple-pale);
    border-radius: var(--radius);
    margin-top: 0.25rem;
  }
  .has-dropdown.open .dropdown { display: block; }

  .hero h1 { font-size: 2rem; }
  .hero-tagline { font-size: 1rem; }
  .vision-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
}

@media (max-width: 480px) {
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .hero h1 { font-size: 1.7rem; }
  .section-title { font-size: 1.5rem; }
  .page-hero h1 { font-size: 1.8rem; }
}

/* ==============================
   TEAM CARDS — picture + name + statement
   ============================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.team-card:hover {
  box-shadow: 0 6px 24px rgba(80,35,121,0.13);
  transform: translateY(-3px);
}

.team-card-photo-wrap {
  background: var(--volt-purple-pale);
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: center;
}

.team-card-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--volt-purple);
  background: #ddd;
  display: block;
}

.team-card-body {
  padding: 1rem 1.25rem 1.5rem;
}

.team-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--volt-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.team-statement {
  font-size: 0.88rem;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.55;
  border: none;
  margin: 0;
  padding: 0;
}

/* ==============================
   DROPDOWN — click-through to parent page
   Parent item URL is clickable, dropdown appears on hover
   ============================== */

/* Make the parent link in dropdown also clickable on desktop */
.has-dropdown > a {
  pointer-events: all;
}

/* On desktop: parent link is fully clickable, dropdown on hover */
@media (min-width: 821px) {
  .has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 3px;
  }
  /* Separate the arrow so it doesn't block the link click */
  .has-dropdown > a .arrow {
    pointer-events: none;
  }
}

/* ==============================
   NAV — split parent link + arrow button
   ============================== */

/* Parent items with dropdown: flex row */
.has-dropdown {
  display: flex;
  align-items: center;
  position: relative;
}

/* The text link part */
.nav-parent-link {
  display: block;
  padding: 0.5rem 0.4rem 0.5rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius) 0 0 var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-parent-link:hover,
.has-dropdown.open .nav-parent-link {
  background: var(--volt-purple-pale);
  color: var(--volt-purple);
  text-decoration: none;
}

/* The arrow button part */
.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem;
  background: none;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dark);
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
  height: 100%;
}
.dropdown-toggle:hover,
.has-dropdown.open .dropdown-toggle {
  background: var(--volt-purple-pale);
  color: var(--volt-purple);
}

/* Dropdown panel — shown when .open or :hover on desktop */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  list-style: none;
  min-width: 210px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem 0;
  z-index: 200;
}
.has-dropdown.open .dropdown { display: block; }

/* ==============================
   TEAM SECTION WRAP (community/fractie pages)
   ============================== */
.team-section-wrap {
  padding: 4rem 1.5rem;
  background: #fff;
}
.team-section-wrap .section-title {
  margin-bottom: 0.4rem;
}
.team-section-wrap .section-subtitle {
  margin-bottom: 1.5rem;
}

/* ==============================
   MOBILE — nav overrides
   ============================== */
@media (max-width: 820px) {
  .has-dropdown {
    flex-wrap: wrap;
    width: 100%;
  }
  .nav-parent-link {
    flex: 1;
    border-radius: var(--radius);
    padding: 0.65rem 0.5rem;
  }
  .dropdown-toggle {
    border-radius: var(--radius);
    padding: 0.65rem 0.75rem;
  }
  .dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--volt-purple-pale);
    padding: 0.25rem 0 0.25rem 1rem;
    margin-top: 0.25rem;
  }
  .has-dropdown.open .dropdown { display: block; }
}
