/* ============================================================
   RiDeGro CMS - publieke stylesheet
   ============================================================ */

:root {
  --navy: #0F2A5C;
  --navy-deep: #0a1e44;
  --gold: #c9a55a;
  --gold-deep: #a88840;
  --cream: #faf7f0;
  --bone: #f4efe4;
  --ink: #1a1d29;
  --ink-soft: #4a5169;
  --ink-mute: #6b7280;
  --line: #e8e3d6;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 12px; }
h4 { font-size: 16px; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy); }

p { margin-bottom: 16px; color: var(--ink-soft); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ===== GRAIN OVERLAY ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='noise'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23noise)'/></svg>");
}

/* ===== HEADER ===== */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 20px;
}
.brand svg { height: 44px; }
.primary-nav { display: flex; gap: 28px; align-items: center; }
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
}
.primary-nav a:hover, .primary-nav a.active {
  color: var(--navy);
}
.primary-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--navy); }

/* ===== FLASH ===== */
.flash-bar { padding: 12px 0; font-size: 14px; font-weight: 500; }
.flash-bar.flash-success { background: rgba(16,185,129,.1); color: #065f46; border-bottom: 1px solid rgba(16,185,129,.2); }
.flash-bar.flash-error { background: rgba(239,68,68,.08); color: #991b1b; border-bottom: 1px solid rgba(239,68,68,.2); }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Heel subtiele textuur op de cream achtergrond, voor diepte */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.04'/></svg>");
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Kicker met klein gouden lijntje ervoor (zoals in de screenshot) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 28px;
}
.kicker-line::before {
  content: '';
  width: 36px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}

/* Hero title - groot serif, met laatste woord in italic gold + underline */
.hero-title {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  margin-bottom: 28px;
  font-weight: 500;
  color: var(--navy);
}
.hero-highlight {
  font-style: italic;
  color: var(--gold-deep);
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -2px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.85;
}

.lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-weight: 400;
  max-width: 540px;
}
.hero-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 540px;
}
.cta-row {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover {
  background: var(--navy-deep);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(15,42,92,.45);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: white;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}

/* Grote navy paneel - blijft leeg, klant kan later iets invullen */
.hero-panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 28px;
  box-shadow: 0 30px 60px -20px rgba(15,42,92,.35);
  overflow: hidden;
}
.hero-panel::after {
  /* Heel subtiele noise zodat het vlak niet plat aanvoelt */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.08'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Witte stat-pills die over het navy vlak heen vallen */
.stat-pill {
  position: absolute;
  background: var(--cream);
  padding: 22px 30px;
  border-radius: 18px;
  box-shadow: 0 20px 45px -15px rgba(15,42,92,.28);
  z-index: 3;
  min-width: 180px;
  border: 1px solid rgba(232,227,214,.6);
}
.stat-pill-top {
  top: 32px;
  right: -32px;
}
.stat-pill-bottom {
  bottom: 56px;
  left: -32px;
}
.stat-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-value small {
  font-size: 16px;
  color: var(--gold-deep);
  font-weight: 500;
  margin-left: 2px;
  vertical-align: 4px;
}
.badge-1 { top: 50px; left: -10px; animation: float 5s ease-in-out infinite; }
.badge-2 { top: 50%; right: -20px; transform: translateY(-50%); animation: float 5s ease-in-out infinite 1.5s; }
.badge-3 { bottom: 40px; left: 30px; animation: float 5s ease-in-out infinite 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.badge-2 { animation: float-y 5s ease-in-out infinite 1.5s; }
@keyframes float-y {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-60%); }
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 70px 0 30px;
  border-bottom: 1px solid var(--line);
  background: var(--bone);
}
.page-header h1 { font-style: italic; }

.page-body {
  padding: 60px 0 80px;
}

/* ===== PROSE ===== */
.prose h2 { margin-top: 40px; margin-bottom: 16px; font-style: italic; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; margin-bottom: 12px; }
.prose p { font-size: 17px; line-height: 1.75; margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; color: var(--ink-soft); }
.prose a:not(.btn) { color: var(--gold-deep); border-bottom: 1px solid currentColor; }
.prose a:not(.btn):hover { color: var(--navy); }
.prose .btn { color: white; border-bottom: 0; }
.prose .btn-ghost { color: var(--navy); }
.prose .btn-ghost:hover { color: white; }
.prose .btn-primary, .prose .btn-primary:hover { color: white; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  font-style: italic;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
}
.prose img { border-radius: 12px; margin: 24px 0; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-top: 32px;
}
.contact-list {
  list-style: none;
  padding: 0;
}
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--gold-deep);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-list span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 2px;
  font-weight: 600;
}
.contact-list a, .contact-list div { color: var(--ink); }
.contact-list a:hover { color: var(--navy); }

.contact-form-wrap {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(15,42,92,.04);
}
.form-intro {
  color: var(--ink-mute);
  font-size: 14px;
  margin-bottom: 24px;
}
.contact-form .field { margin-bottom: 16px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
  transition: all .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: white;
  box-shadow: 0 0 0 3px rgba(15,42,92,.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { margin-top: 8px; }

/* ===== CONTACT MAP ===== */
.contact-map {
  padding: 0 0 80px;
}
.map-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(15,42,92,.25);
  border: 1px solid var(--line);
  background: var(--bone);
}
.map-frame iframe {
  display: block;
  filter: contrast(1.02) saturate(0.95);
}
.map-route-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--navy);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(15,42,92,.4);
  border: 1px solid var(--line);
  transition: all .2s;
}
.map-route-btn:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo svg { height: 48px; margin-bottom: 16px; }
.footer-tag {
  color: rgba(255,255,255,.6);
  font-size: 14px;
}
.site-footer h4 { color: white; margin-bottom: 16px; font-size: 13px; }
.site-footer p, .site-footer li { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--gold); }
.footer-menu { list-style: none; padding: 0; }
.footer-menu li { margin-bottom: 8px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.footer-bottom small { color: rgba(255,255,255,.5); font-size: 13px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero { padding: 50px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 24px; }
}

@media (max-width: 580px) {
  .contact-form .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; }
  .stat-pill { padding: 16px 20px; min-width: 140px; }
  .stat-pill-top { top: 18px; right: -16px; }
  .stat-pill-bottom { bottom: 32px; left: -16px; }
  .stat-value { font-size: 30px; }
  .cta-row .btn { padding: 14px 22px; font-size: 13px; }
}
