/* ==========================================================================
   Immanuelkerk (NGK Beverwijk) — stijl geïnspireerd op ngk.nl
   ========================================================================== */

:root {
  --navy: #29235c;
  --blue-purple: #50568f;
  --green: #91bd65;
  --green-dark: #6fa243;
  --light-blue: #abcaeb;
  --gold: #eeb336;
  --text: #323334;
  --bg: #ffffff;
  --bg-alt: #f4f4f7;
  --border: #dddddd;
  --radius: 5px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--blue-purple);
}

h1, h2, h3, h4 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }

/* Gouden accentstreepje boven elke sectiekop, terugkomend uit het logo */
section h2,
.prose h2 {
  position: relative;
  padding-top: 22px;
}

section h2::before,
.prose h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / navigatie ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.15;
}

.brand-name small {
  display: block;
  font-weight: 400;
  color: var(--blue-purple);
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--bg-alt);
  color: var(--blue-purple);
}

.main-nav a.active {
  box-shadow: inset 0 -3px 0 var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--blue-purple), var(--navy));
  color: #fff;
  padding: 72px 0;
}

.hero.with-photo {
  background-image: linear-gradient(135deg, rgba(41, 35, 92, 0.88), rgba(80, 86, 143, 0.82)), url("/assets/photos/kruis.jpg");
  background-size: cover;
  background-position: center 30%;
}

.hero h1 {
  color: #fff;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  color: #eef0fb;
}

.hero.small {
  padding: 48px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.15s, transform 0.05s;
}

.btn:hover {
  background: var(--green-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn.secondary.on-light {
  border-color: var(--navy);
  color: var(--navy);
}

.btn.secondary.on-light:hover {
  background: rgba(41, 35, 92, 0.08);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Secties ---------- */

section {
  padding: 60px 0;
}

section.alt {
  background: var(--bg-alt);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  margin-bottom: 10px;
}

.card .icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(238, 179, 54, 0.18);
}

.prose p {
  margin: 0 0 1.1em;
}

.prose ul {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

/* ---------- Info blokken (route/contact) ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.info-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .label {
  min-width: 110px;
  font-weight: 700;
  color: var(--navy);
}

.map-frame {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.agenda-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.agenda-item.next {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.agenda-badge {
  position: absolute;
  top: -11px;
  left: 20px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
}

.agenda-date {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.agenda-date .day {
  font-size: 1.5rem;
  font-weight: 700;
}

.agenda-date .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 3px;
}

.agenda-details {
  flex: 1;
  min-width: 0;
}

.agenda-when {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-purple);
  text-transform: capitalize;
  margin-bottom: 2px;
}

.agenda-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.agenda-location {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--text);
}

.agenda-video-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--green-dark);
  text-decoration: none;
}

.agenda-video-link:hover {
  text-decoration: underline;
}

/* ---------- Video-embed (uitzendingen) ---------- */

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-history {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.video-thumb {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.video-thumb:hover {
  border-color: var(--light-blue);
}

.video-thumb.active {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-alt);
}

.video-thumb-title {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  padding: 10px 12px 12px;
}

@media (max-width: 480px) {
  .agenda-item {
    gap: 14px;
    padding: 16px;
  }

  .agenda-date {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .agenda-date .day {
    font-size: 1.2rem;
  }
}

/* ---------- Formulier ---------- */

form.contact-form {
  max-width: 620px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--light-blue);
  outline-offset: 1px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 600;
}

.alert.success {
  background: #eaf6e3;
  color: #3c6a22;
  border: 1px solid var(--green);
}

.alert.error {
  background: #fbeaea;
  color: #8a2c2c;
  border: 1px solid #d98a8a;
}

.alert.info {
  background: #eef3fb;
  color: var(--blue-purple);
  border: 1px solid var(--light-blue);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #cfd0e6;
  padding: 40px 0;
  margin-top: 40px;
  font-size: 0.92rem;
  border-top: 4px solid var(--gold);
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: #9fa1c4;
}

/* ---------- Mobiel ---------- */

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0 16px;
  }

  .main-nav a {
    display: block;
    padding: 12px 8px;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  section {
    padding: 40px 0;
  }
}
