/* ---------------------------------------------------------------
   Bruiloft Jolanda & Mark — 07.08.2026
   Huisstijl: off-white, aquarel-eucalyptus, goud script
   --------------------------------------------------------------- */

:root {
  --bg: #faf7f0;
  --bg-soft: #f4efe4;
  --ink: #55554c;
  --ink-soft: #85857a;
  --sage: #a3b299;
  --sage-deep: #86977c;
  --gold: #bf9b30;
  --gold-deep: #a8862f;
  --gold-pale: #d9bc6a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Sacramento", cursive;
}

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

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- typografie ---------- */

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--gold);
  background: linear-gradient(115deg, var(--gold-deep) 20%, var(--gold-pale) 50%, var(--gold-deep) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.caps {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* compenseert letterspacing bij centreren */
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(163, 178, 153, 0.10), transparent 65%),
    radial-gradient(ellipse 70% 50% at 12% 100%, rgba(163, 178, 153, 0.08), transparent 60%),
    var(--bg);
}

.hero-inner { position: relative; z-index: 2; }

.hero .caps { font-size: clamp(0.8rem, 1.9vw, 1.05rem); }

.hero-names {
  font-size: clamp(2rem, 9vw, 7.5rem);
  white-space: nowrap;
  line-height: 1.25;
  margin: 0.5rem 0 0.25rem;
  padding: 0 0.4em 0.12em; /* ruimte voor script-uithalen */
}

.hero-date {
  font-family: var(--serif);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
}

.heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
  color: var(--gold);
}

.heart-divider::before,
.heart-divider::after {
  content: "";
  width: 3.2rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-pale));
}

.heart-divider::after {
  background: linear-gradient(to left, transparent, var(--gold-pale));
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-hint .caps {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}

.scroll-hint svg {
  animation: drift 2.6s ease-in-out infinite;
  color: var(--gold);
}

@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(7px); opacity: 0.45; }
}

/* ---------- botanische hoeken ---------- */

.corner {
  position: absolute;
  width: clamp(180px, 32vw, 420px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.corner.tl { top: -12px; left: -12px; }
.corner.tr { top: -12px; right: -12px; transform: scaleX(-1); }
.corner.bl { bottom: -12px; left: -12px; transform: scaleY(-1); opacity: 0.55; }
.corner.br { bottom: -12px; right: -12px; transform: scale(-1); opacity: 0.55; }

.corner.small { width: clamp(130px, 20vw, 260px); }

/* ---------- galerij ---------- */

.gallery-section {
  padding: 5.5rem 0 4rem;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}

.section-head .caps {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.section-title {
  font-size: clamp(2.6rem, 6.5vw, 4rem);
  line-height: 1.3;
  padding: 0 0.4em 0.1em;
}

.gallery {
  columns: 4 300px;
  column-gap: 14px;
  padding: 0 14px;
  max-width: 1680px;
  margin: 0 auto;
}

.ph {
  break-inside: avoid;
  margin: 0 0 14px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ph.visible { opacity: 1; transform: none; }

.ph a {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(85, 85, 76, 0.10);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.ph a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(85, 85, 76, 0.18);
}

.ph img {
  display: block;
  width: 100%;
  height: auto;
}

/* reduceer animatie indien gewenst */
@media (prefers-reduced-motion: reduce) {
  .ph { opacity: 1; transform: none; transition: none; }
  .scroll-hint svg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- download ---------- */

.download-section {
  position: relative;
  text-align: center;
  padding: 6rem 1.5rem 7rem;
  margin-top: 3rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 60% at 50% 100%, rgba(163, 178, 153, 0.12), transparent 65%),
    var(--bg-soft);
}

.download-inner { position: relative; z-index: 2; }

.download-title {
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  line-height: 1.3;
  padding: 0 0.4em 0.1em;
}

.download-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.8rem 0 2.4rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-decoration: none;
  color: #fffdf7;
  background: linear-gradient(135deg, #c9a740, var(--gold-deep) 55%, #97772a);
  padding: 1.15rem 2.6rem 1.15rem 2.3rem;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(168, 134, 47, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 134, 47, 0.45);
}

.btn-download svg { flex: none; }

.download-note {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
  text-align: center;
  padding: 2.6rem 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer .script {
  font-size: 1.6rem;
  display: inline-block;
  padding: 0 0.4em;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(24, 22, 16, 0.96);
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 94vw;
  max-height: 92svh;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

.lb-btn {
  position: absolute;
  z-index: 2;
  background: none;
  border: none;
  color: #f4efe4;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.75;
  transition: opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.lb-btn:hover { opacity: 1; }

.lb-close { top: 0.7rem; right: 0.9rem; }
.lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }

.lb-counter {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  font-size: 0.85rem;
  color: rgba(244, 239, 228, 0.8);
}

@media (max-width: 640px) {
  .lb-prev, .lb-next { display: none; } /* swipe op mobiel */
}
