/* ==========================================================================
   Gilde Salvator Mundi — "Goud & Nacht"
   Wordt ná app.css geladen (alleen publieke layout) en overschrijft Bootstrap.
   Kleuren komen uit resources/sass/_variables.scss: goud, bordeaux, donker.
   ========================================================================== */

:root {
  --gold: #FFC107;
  --wine: #A31621;
  --night: #1b1b1b;
  --surface: #252525;
  --line: #3a3a3a;
  --ink: #f3efe6;
  --ink-soft: #d8d3c8;
  --ink-mute: #b9b4a8;
  --serif: 'Cormorant Garamond', 'Noto Serif', serif;
  --sans: 'Jost', system-ui, sans-serif;
}

/* ---------- basis ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--gold); color: var(--night); padding: .7rem 1.2rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--night); }

html { font-size: 17px; scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}
p { margin-bottom: 1rem; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; text-decoration: none; }
::selection { background: var(--gold); color: var(--night); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  color: #fff;
  line-height: 1.08;
  margin-bottom: .6em;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.9rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.4rem; }
.h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.display-1, .display-2, .display-3 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
}
p.h5, .h5.font-weight-light, .font-weight-light {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
}
.lead { font-weight: 300; font-size: 1.2rem; color: var(--ink-soft); }
.text-muted { color: var(--ink-mute) !important; }
.text-secondary { color: var(--gold) !important; }
.text-primary { color: var(--gold) !important; }
.text-dark { color: var(--ink) !important; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  opacity: 1;
  margin: 2rem 0;
}
.title hr, .container > hr:first-of-type {
  width: 64px;
  height: 2px;
  border: 0;
  background: var(--gold);
  margin: 1.4rem auto;
}

.rounded, .rounded-lg, img.rounded { border-radius: 0 !important; }
.shadow, .shadow-lg, .shadow-sm { box-shadow: none !important; }
.bg-primary { background: var(--surface) !important; color: var(--ink); }
.bg-secondary { background: var(--wine) !important; color: #fff; }
.bg-secondary h1, .bg-secondary h2, .bg-secondary h3, .bg-secondary h4, .bg-secondary .h4 { color: #fff; }
.bg-dark { background: #141414 !important; }
.border-danger { border-color: var(--gold) !important; }

/* ---------- knoppen ---------- */
.btn {
  border-radius: 0;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .95rem 2.1rem;
  border-width: 1px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:focus, .btn.focus { box-shadow: 0 0 0 3px rgba(255, 193, 7, .45); }
.btn-primary, .btn-warning {
  background: var(--gold); border-color: var(--gold); color: var(--night);
}
.btn-primary:hover, .btn-warning:hover,
.btn-primary:focus, .btn-warning:focus {
  background: #fff; border-color: #fff; color: var(--night);
}
.btn-secondary {
  background: var(--wine); border-color: var(--wine); color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #fff; border-color: #fff; color: var(--wine);
}
.btn-light, .btn-success, .btn-outline-light {
  background: transparent; border-color: var(--gold); color: var(--gold);
}
.btn-light:hover, .btn-success:hover, .btn-outline-light:hover,
.btn-light:focus, .btn-success:focus {
  background: var(--gold); border-color: var(--gold); color: var(--night);
}
.btn-link {
  color: var(--gold); text-decoration: none; padding-left: 0; padding-right: 0;
}
.btn-link:hover { color: #fff; text-decoration: none; }

/* ---------- kaarten ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
}
.card-header, .card-footer {
  background: transparent;
  border-color: var(--line);
}
.card-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #fff; margin: 0; }

/* ---------- formulieren ---------- */
label { color: var(--ink-soft); font-size: .9rem; letter-spacing: .04em; }
.form-control {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  padding: .8rem 1rem;
  height: auto;
  font-family: var(--sans);
}
.form-control:focus {
  background: var(--surface);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, .25);
}
.form-control::placeholder { color: var(--ink-mute); }
.alert { border-radius: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.alert-success { border-color: var(--gold); }
.alert-danger { border-color: var(--wine); background: rgba(163, 22, 33, .25); color: #fff; }

/* ---------- navigatie ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--night);
  border-bottom: 1px solid var(--line);
}
.is-home .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: 0;
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand:hover { color: #fff; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.9rem; margin: 0; padding: 0; list-style: none; }
.site-nav li { list-style: none; }
.site-nav a {
  display: block;
  padding: .45rem 0;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 46px; height: 46px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:focus-visible { outline: 3px solid rgba(255, 193, 7, .5); outline-offset: 2px; }
@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; padding: .5rem 0 1rem; }
  .site-header.open .site-nav { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .is-home .site-header.open { background: rgba(27, 27, 27, .97); }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: var(--night);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .5;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27, 27, 27, .6) 0%, rgba(27, 27, 27, .1) 40%, var(--night) 100%);
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}
.hero__rule { width: 64px; height: 2px; background: var(--gold); margin-bottom: 1.75rem; }
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  line-height: .9;
  letter-spacing: -.01em;
  margin: 0;
}
.hero h1 em { display: block; color: var(--gold); font-weight: 500; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; margin-top: 2.5rem; }
.hero__lead { max-width: 30rem; margin: 0; font-size: 1.2rem; font-weight: 300; color: #e8e3d8; }

/* ---------- secties ---------- */
.section { padding: 6rem 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.wrap--narrow { max-width: 760px; }
.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 3rem; }
.section-head h2 { margin: 0; }
.center { text-align: center; }
.split { display: flex; flex-wrap: wrap; gap: 3.5rem; align-items: center; }
.split > * { flex: 1 1 360px; min-width: 0; }
.framed { display: block; width: 100%; object-fit: cover; outline: 1px solid var(--gold); outline-offset: 12px; }

/* nieuwskaarten */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2rem; }
.news-card {
  display: flex; flex-direction: column;
  background: var(--night);
  border: 1px solid var(--line);
  color: var(--ink);
  height: 100%;
  transition: border-color .2s, transform .2s;
}
.section:not(.section--surface) .news-card { background: var(--surface); }
.news-card:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-3px); }
.news-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.news-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; justify-content: space-between; }
.news-card__title { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; line-height: 1.1; color: #fff; margin: 0; }
.news-card__more { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* agenda-kaarten */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.event-card { background: var(--surface); border: 1px solid var(--line); padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem; height: 100%; }
.section--surface .event-card { background: var(--night); }
.event-card__date { display: flex; align-items: baseline; gap: .6rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: .5rem; }
.event-card__day { font-family: var(--serif); font-size: 3.6rem; font-weight: 600; line-height: 1; color: var(--gold); }
.event-card__month { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.event-card h3 { font-size: 1.6rem; margin: 0; }
.event-card p { color: var(--ink-soft); font-weight: 300; margin: 0; flex: 1; }
.event-card__time { font-size: .85rem; color: var(--ink-mute); letter-spacing: .06em; }
.event-card__link { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

/* fotoblok op home */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.photo-pair img { width: 100%; height: 340px; object-fit: cover; display: block; }
.photo-pair img:nth-child(2) { margin-top: 3rem; }
@media (max-width: 575.98px) { .photo-pair { grid-template-columns: 1fr; } .photo-pair img:nth-child(2) { margin-top: 0; } }

/* ---------- binnenpagina's ---------- */
.container > .title h1, .title > h1, .container > h1 { margin-bottom: 0; }
.article-body { color: var(--ink-soft); font-size: 1.1rem; font-weight: 300; line-height: 1.85; }
.article-body * { color: inherit !important; background-color: transparent !important; font-family: inherit; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 { color: #fff !important; font-family: var(--serif); }
.article-body a { color: var(--gold) !important; text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body img { max-width: 100%; height: auto; }
.carousel-indicators li { background-color: var(--gold); }

.gallery-chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: .7rem 1.4rem;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.gallery-chip:hover, .gallery-chip:focus-visible { border-color: var(--gold); color: var(--gold); outline: none; }
.gallery-chips { display: flex; flex-wrap: wrap; gap: .75rem; }

.page-head { padding: 5rem 0 3rem; text-align: center; }
.page-head .eyebrow { margin-bottom: .75rem; }
.page-head h1 { margin: 0; }
.page-head hr { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 1.75rem auto 0; }

/* ---------- footer ---------- */
.site-footer { background: #141414; border-top: 1px solid var(--line); text-align: center; padding: 4rem 2rem 0; }
.site-footer__brand { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold); margin-bottom: 1.25rem; }
.site-footer__social { display: flex; justify-content: center; gap: .75rem; margin-bottom: 1.5rem; }
.site-footer__social a {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--gold);
}
.site-footer__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.site-footer__text { color: var(--ink-soft); font-weight: 300; }
.site-footer__legal { margin-top: 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-mute); }
.site-footer__legal a { color: var(--ink-soft); }

/* ---------- sweetalert (vastgepind artikel) ---------- */
.swal2-popup { background: var(--surface) !important; border-radius: 0 !important; border: 1px solid var(--gold); }
.swal2-popup h2, .swal2-title { color: #fff !important; font-family: var(--serif); }
