/* RJCOOL — landingspagina van de holding. Teksten volgens landing.html van de
   klant; vormgeving volgens het ontwerp van 19/10/2026: warme crèmekleurige
   achtergrond, schreeftitels (Lora), drie kaarten met foto en een eigen
   accentkleur per bedrijf. Lora en Jost staan lokaal in /fonts. */

@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/lora-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/lora-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('../fonts/jost-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('../fonts/jost-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6f2ea;
  --card: #fbf9f5;
  --text: #1f2a26;
  --head: #142520;
  --muted: #5f6763;
  --line: #e4ded2;
  --c1: #11a376;  /* groothandel (groen uit het logo) */
  --c2: #1f1f1f;  /* projectontwikkeling (zwart) */
  --c3: #00548c;  /* paardensector (blauw uit het VC-logo) */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { position: relative; margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Jost, Helvetica, Arial, sans-serif; font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { position: relative; max-width: 1760px; margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 64px); }

/* --- Sfeer: wazige bladeren en zachte cirkel ------------------------------- */
.deco-leaves { position: absolute; top: -10px; left: -30px; width: 170px; height: auto; fill: #3f6b45; stroke: #3f6b45; opacity: .22; filter: blur(5px); transform: rotate(-12deg); pointer-events: none; }
.deco-circle { position: absolute; top: -180px; right: -260px; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle at 30% 40%, #fbf8f2 0%, #efe9dd 70%); opacity: .8; pointer-events: none; }

/* --- Kop ------------------------------------------------------------------ */
.intro { position: relative; text-align: center; padding: clamp(28px, 3vw, 40px) 0 clamp(28px, 3vw, 40px); }
.logo { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: .14em; line-height: 1; color: var(--head); padding-left: .14em; }
.logo-lines { display: flex; justify-content: center; gap: 10px; margin: 16px 0 18px; }
.logo-lines i { width: 32px; height: 3px; border-radius: 2px; background: var(--c1); }
.logo-lines i:nth-child(2) { background: var(--c2); }
.logo-lines i:nth-child(3) { background: var(--c3); }
h1 { text-wrap: balance; margin: 0 auto 16px; max-width: 22ch; font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 4rem); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--head); }
.lead { text-wrap: balance; max-width: 720px; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 300; }

/* --- Kaarten -------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.2vw, 36px); padding-top: 4px; padding-bottom: 48px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: 10px; border-bottom: 3px solid var(--c); overflow: hidden; box-shadow: 0 1px 2px rgba(31,42,38,.05), 0 14px 34px rgba(31,42,38,.08); transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(31,42,38,.05), 0 22px 44px rgba(31,42,38,.13); }
.card-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }

.tag { position: absolute; left: 20px; top: 20px; display: inline-flex; align-items: center; gap: 10px; background: var(--c); color: #fff; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 8px 16px 8px 14px; border-radius: 999px; }
.tag svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 36px) clamp(24px, 2.6vw, 40px) clamp(28px, 2.6vw, 40px); }
/* Logo midden op de foto; de foto is wazig tot je over de kaart gaat */
.card-photo img:not(.photo-logo-img) { filter: blur(7px) saturate(.9); transform: scale(1.08); transition: filter .5s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.card-photo::after { content: ''; position: absolute; inset: 0; background: rgba(246,242,234,.18); transition: opacity .5s ease; pointer-events: none; }
.photo-logo { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; padding: clamp(14px, 1.6vw, 22px) clamp(18px, 2vw, 28px); background: rgba(251,249,245,.88); border-radius: 16px; box-shadow: 0 10px 30px rgba(20,37,32,.18); transform: translate(-50%, -50%); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.card-photo .photo-logo-img { position: static; inset: auto; display: block; width: auto; max-width: none; height: clamp(96px, 8vw, 132px); object-fit: contain; transform: none; transition: none; }
.card-photo .photo-logo-img--wide { height: clamp(70px, 5.6vw, 92px); }
.card:hover .card-photo img:not(.photo-logo-img), .card:focus-within .card-photo img:not(.photo-logo-img) { filter: none; transform: scale(1.03); }
.card:hover .card-photo::after, .card:focus-within .card-photo::after { opacity: 0; }
.card:hover .photo-logo, .card:focus-within .photo-logo { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
.tag { z-index: 2; }
.card h2 { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(1.75rem, 2.2vw, 2.2rem); font-weight: 600; line-height: 1.2; color: var(--head); }
.card p { margin: 0 0 22px; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.65; }
.card ul { list-style: none; margin: 0 0 28px; padding: 0; }
.card li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--muted); font-size: clamp(.98rem, 1.1vw, 1.1rem); }
.card li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }
.card strong { font-weight: 500; color: var(--text); }

.btns { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; background: var(--c); color: #fff; text-decoration: none; font-weight: 400; font-size: clamp(1rem, 1.1vw, 1.1rem); padding: 15px 24px; border: 1.5px solid var(--c); border-radius: 8px; transition: filter .2s, background .2s, color .2s; }
.btn:hover { filter: brightness(1.08); }
.btn .arr { transition: transform .3s ease; }
.btn:hover .arr { transform: translateX(5px); }
.btn.alt { background: transparent; color: var(--c); }
.btn.alt:hover { background: var(--c); color: #fff; filter: none; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* --- Footer --------------------------------------------------------------- */
.footer { position: relative; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 30px; }
.footer-inner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 12px; }
.footer-contact a:hover { color: var(--text); }
.footer-contact svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.footer-credit a { color: var(--text); }
.footer-credit .hvr-underline-from-center-thin { vertical-align: top; }

/* Webmatics-credit: Underline From Center Thin (zelfde als op de andere Webmatics-sites) */
.hvr-underline-from-center-thin { display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0,0,0,0); position: relative; overflow: hidden; }
.hvr-underline-from-center-thin:before { content: ""; position: absolute; z-index: -1; left: 51%; right: 51%; bottom: 0; background: #05BB93; height: 1px; transition: left .3s ease-out, right .3s ease-out; }
.hvr-underline-from-center-thin:hover:before, .hvr-underline-from-center-thin:focus:before, .hvr-underline-from-center-thin:active:before { left: 0; right: 0; }
.webmatics:hover { color: #05BB93 !important; }

/* --- Pop-up (website in opbouw) ------------------------------------------- */
button.btn { font-family: inherit; line-height: inherit; cursor: pointer; }
body.modal-open { overflow: hidden; }
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-bottom: 3px solid var(--c); border-radius: 14px; background: var(--card); color: var(--text); overflow: auto; box-shadow: 0 2px 4px rgba(31,42,38,.06), 0 30px 70px rgba(20,37,32,.28); }
.modal::backdrop { background: rgba(20,37,32,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .45s cubic-bezier(.2,.8,.2,1); }
.modal[open]::backdrop { animation: fade-in .35s ease; }
.modal.closing { animation: modal-out .22s ease forwards; }
.modal.closing::backdrop { animation: fade-out .22s ease forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.modal-photo { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.modal-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,37,32,.25) 0%, rgba(20,37,32,0) 45%); }
.modal-photo .tag { z-index: 1; }
.modal-close { position: absolute; z-index: 1; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(251,249,245,.92); color: var(--head); cursor: pointer; box-shadow: 0 4px 14px rgba(20,37,32,.18); transition: transform .25s ease, background .2s; }
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.modal-body { padding: clamp(24px, 4vw, 36px) clamp(22px, 4.5vw, 40px) clamp(26px, 4vw, 36px); }
.modal-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--c); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--c); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }
.modal h2 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; line-height: 1.2; color: var(--head); }
.modal-body > p:not(.modal-kicker) { margin: 0 0 26px; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.65; }
.modal-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-contact .btn { padding: 13px 18px; font-size: 1rem; gap: 10px; white-space: nowrap; }
.modal-contact svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* --- Desktop: alles boven de vouw (logo staat op de foto) ----------------- */
@media (min-width: 961px) {
  .intro { padding: clamp(18px, 2.4vh, 32px) 0 clamp(18px, 2.6vh, 32px); }
  .logo { font-size: clamp(26px, 2.6vw, 38px); }
  .logo-lines { margin: 12px 0 14px; }
  h1 { font-size: clamp(2rem, 3.3vw, 3.2rem); margin-bottom: 10px; }
  .lead { font-size: clamp(1rem, 1.15vw, 1.15rem); }
  .grid { padding-bottom: 32px; }
  .card-photo { aspect-ratio: 2 / 1; }
  .card-body { padding: clamp(20px, 2.2vh, 28px) clamp(24px, 2.2vw, 34px) clamp(22px, 2.4vh, 30px); }
  .card h2 { font-size: clamp(1.6rem, 1.9vw, 2rem); margin-bottom: 10px; }
  .card p { font-size: clamp(.98rem, 1vw, 1.06rem); line-height: 1.6; margin-bottom: 14px; }
  .card ul { margin-bottom: 20px; }
  .card li { margin-bottom: 4px; font-size: clamp(.95rem, .98vw, 1.03rem); }
  .btn { padding: 12px 22px; }
  .btns { gap: 8px; }
  .card-photo .photo-logo-img { height: clamp(80px, 6.4vw, 112px); }
  .card-photo .photo-logo-img--wide { height: clamp(60px, 4.6vw, 80px); }
}

/* Lage schermen (laptops): foto's lager en kop compacter */
@media (min-width: 961px) and (max-height: 860px) {
  .intro { padding: 14px 0 16px; }
  .logo { font-size: 26px; }
  .logo-lines { margin: 8px 0 10px; }
  h1 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 6px; }
  .lead { font-size: .98rem; }
  .card-photo { aspect-ratio: 3 / 1; }
  .card-photo .photo-logo { padding: 10px 16px; border-radius: 12px; }
  .card-photo .photo-logo-img { height: 72px; }
  .card-photo .photo-logo-img--wide { height: 56px; }
  .tag { top: 14px; left: 14px; font-size: .7rem; padding: 6px 12px; }
  .card-body { padding: 16px 26px 20px; }
  .card h2 { font-size: 1.5rem; margin-bottom: 8px; }
  .card p { font-size: .95rem; line-height: 1.55; margin-bottom: 10px; }
  .card ul { margin-bottom: 14px; }
  .card li { font-size: .93rem; margin-bottom: 2px; }
  .btn { padding: 10px 20px; font-size: .98rem; }
}
/* Pagina vult altijd de schermhoogte: kop + kaarten in het midden, footer onderaan */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.intro { margin-top: auto; }
.grid { margin-bottom: auto; width: 100%; }
.footer { flex: none; margin-top: clamp(16px, 3vh, 40px); }
.footer-inner { position: relative; }
.footer-inner::before { left: clamp(16px, 3.5vw, 64px); right: clamp(16px, 3.5vw, 64px); }
/* --- Responsief ----------------------------------------------------------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; max-width: 640px; }
  .deco-circle { right: -420px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .deco-leaves { width: 110px; opacity: .4; }
  .card-body { padding: 22px 22px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .modal-contact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card-photo img, .btn .arr, .modal-close { transition: none; }
  .card:hover, .card:hover .card-photo img, .modal-close:hover { transform: none; }
  .modal[open], .modal[open]::backdrop, .modal.closing, .modal.closing::backdrop, .pulse::after { animation: none; }
}
