/*
Theme Name: Rongrong
Description: Rustig portfoliothema voor rongrongart.com. Pagina's bestaan uit rijen (tekst, tekst + foto, carrousel, fotoraster, grote foto, contactformulier). Vereist Secure Custom Fields en Polylang.
Version: 1.3.3
Requires at least: 6.5
Requires PHP: 8.1
Author: Proud Nerds
Text Domain: rongrong
*/

/* Source Serif 4 (SIL Open Font License, zie fonts/OFL.txt), lokaal: geen verbinding met Google. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/sourceserif4-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: "Source Serif 4"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/sourceserif4-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/sourceserif4-italic-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: "Source Serif 4"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/sourceserif4-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--blauw: #1b395c;
	--blauw-hover: #264d7a;
	--accent: #b42423;
	--accent-hover: #8f1c1b;
	--vlak: #eef2f6;
	--zand: #f4eee5;
	--papier: #fdfcfa;
	--wit: #ffffff;
	--inkt: #262b33;
	--grijs: #646b75;
	--lijn: #e9e5df;

	--max: 72rem;
	--tekst: 40rem;
	--radius-klein: 10px;
	--radius: 16px;
	--radius-foto: 22px;
	--schaduw: 0 1px 3px rgb(27 57 92 / 5%), 0 14px 36px rgb(27 57 92 / 7%);

	/* Ruimte: één schaal voor de hele site. */
	--ruimte-rij: clamp(3.5rem, 7vw, 5.5rem);
	--ruimte-vak: clamp(3.5rem, 8vw, 6rem);

	--font: "Source Serif 4", Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--papier);
	color: var(--inkt);
	font: 400 1.125rem/1.75 var(--font);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
:lang(zh) { line-height: 1.9; letter-spacing: .02em; }

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

a { color: var(--accent); text-decoration-color: rgb(180 36 35 / 35%); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font); color: var(--blauw); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; margin: 0 0 .55em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong, b { font-weight: 600; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; width: auto; height: auto; clip-path: none; background: var(--wit); padding: .5rem 1rem; border-radius: var(--radius-klein); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }

/* ---------- Kop ---------- */

.kop { background: var(--wit); border-bottom: 1px solid var(--lijn); position: relative; z-index: 10; }
.kop__binnen { display: flex; align-items: center; gap: 1.75rem; min-height: 5.75rem; }

.merk { display: flex; align-items: center; gap: 1rem; text-decoration: none; margin-right: auto; color: var(--blauw); }
.merk img { height: 3rem; width: auto; }
.merk__tekst { display: flex; flex-direction: column; line-height: 1.25; }
.merk__naam { font-size: 1.3rem; font-weight: 600; color: var(--blauw); letter-spacing: -.005em; }
.merk__naam span { color: var(--accent); font-weight: 400; margin-left: .4rem; }
.merk__sub { font-size: .78rem; letter-spacing: .16em; color: var(--grijs); }
@media (max-width: 30rem) { .merk img { height: 2.4rem; } .merk__sub { display: none; } }

.nav__lijst, .nav__sub, .talen { list-style: none; margin: 0; padding: 0; }
.nav__lijst { display: flex; gap: .4rem; }
.nav__item { position: relative; }
.nav__item > a { color: var(--blauw); display: block; padding: .55rem .75rem; text-decoration: none; font-size: 1.05rem; font-weight: 400; position: relative; }
.nav__item > a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.nav__item > a:hover::after, .nav__item.is-actief > a::after { transform: scaleX(1); }
.nav__item > a:hover { color: var(--blauw); }

.nav__sub {
	position: absolute; top: calc(100% + .25rem); left: 0; min-width: 14rem;
	background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); box-shadow: var(--schaduw);
	padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease;
}
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { color: var(--blauw); display: block; padding: .5rem .8rem; text-decoration: none; border-radius: var(--radius-klein); }
.nav__sub a:hover, .nav__sub .is-actief > a { background: var(--vlak); }
.nav__subsub { list-style: none; margin: 0 0 .2rem .8rem; padding: 0 0 0 .7rem; border-left: 2px solid var(--lijn); }
.nav__subsub a { font-size: .95rem; padding: .35rem .7rem; color: var(--grijs); }
.nav__subsub .is-actief a, .nav__subsub a:hover { color: var(--blauw); }

.talen { display: flex; gap: .3rem; }
.talen a { display: block; padding: .2rem .65rem; font-size: .85rem; text-decoration: none; border: 1px solid var(--lijn); border-radius: 999px; color: var(--grijs); }
.talen a:hover { border-color: var(--blauw); color: var(--blauw); }
.talen .is-actief a { background: var(--accent); border-color: var(--accent); color: var(--wit); font-weight: 600; }

.menuknop { display: none; background: none; border: 1px solid var(--lijn); border-radius: 999px; padding: .4rem 1rem; font: inherit; font-size: 1rem; color: var(--blauw); cursor: pointer; }

@media (max-width: 52rem) {
	.kop__binnen { flex-wrap: wrap; gap: .75rem; padding-block: .9rem; min-height: 0; }
	.menuknop { display: block; }
	.nav { order: 3; width: 100%; display: none; padding-bottom: .75rem; }
	.kop.is-open .nav { display: block; }
	.nav__lijst { flex-direction: column; gap: 0; }
	.nav__item > a::after { display: none; }
	.nav__item.is-actief > a { color: var(--accent); }
	.nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .25rem 1rem; min-width: 0; background: none; }
}

/* ---------- Inhoud ---------- */

main { flex: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--ruimte-rij); }

/* Paginatitel: gecentreerd, met een kort rood lijntje. */
.paginatitel { text-align: center; margin: 0 auto var(--ruimte-rij); max-width: 48rem; }
.paginatitel h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 500; margin: 0; }
.paginatitel h1::after { content: ""; display: block; width: 3rem; height: 3px; background: var(--accent); margin: 1.1rem auto 0; border-radius: 3px; }
.kruimel { font-size: .9rem; margin-bottom: .8rem; color: var(--grijs); letter-spacing: .02em; }
.kruimel a { color: var(--grijs); text-decoration: none; }
.kruimel a:hover { color: var(--accent); }

.rij { margin: 0; }

/* Elke rij staat in een vak; het vak kan een achtergrond over de volle breedte krijgen. */
.vak { margin-bottom: var(--ruimte-rij); }
.vak--licht, .vak--zand, .vak--donker { padding-block: var(--ruimte-vak); }
.vak--licht { background: var(--vlak); }
.vak--zand { background: var(--zand); }
.vak--donker { background: var(--blauw); color: rgb(255 255 255 / 92%); }
.vak--donker :is(h2, h3) { color: var(--wit); }
.vak--donker a { color: var(--wit); text-decoration-color: rgb(255 255 255 / 50%); }
.vak--donker figcaption { color: rgb(255 255 255 / 75%); }
/* Gekleurd vak als laatste rij: direct tegen de voet. */
main:has(> .vak:is(.vak--licht, .vak--zand, .vak--donker):nth-last-child(2) + .wrap:empty) { padding-bottom: 0; }
main > .vak:is(.vak--licht, .vak--zand, .vak--donker):nth-last-child(2):has(+ .wrap:empty) { margin-bottom: 0; }
.vak--licht + .vak--licht, .vak--zand + .vak--zand, .vak--donker + .vak--donker { margin-top: calc(var(--ruimte-rij) * -1); }
.vak--tegel > .wrap > .rij { background: var(--wit); border-radius: var(--radius-foto); box-shadow: var(--schaduw); padding: clamp(1.75rem, 5vw, 3.5rem); }
.vak--tegel .rij--formulier { max-width: none; }
.vak--tegel .rij--formulier > * { max-width: var(--tekst); margin-inline: auto; }

/* Tekst: een rustige leeskolom in het midden. */
.tekst { max-width: var(--tekst); }
.rij--tekst .tekst { margin-inline: auto; }
.tekst > :last-child { margin-bottom: 0; }
.tekst h2 { margin-top: 1.6em; }
.tekst h3 { margin-top: 1.4em; }
.tekst > :first-child { margin-top: 0; }
.tekst ul, .tekst ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.tekst li { margin-bottom: .35em; }
.tekst li::marker { color: var(--accent); }

/* Tekst met foto */
.rij--tekst-foto { --kol-foto: 1fr; --kol-tekst: 1fr; display: grid; grid-template-columns: var(--kol-foto) var(--kol-tekst); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.rij--tekst-foto.is-middel { --kol-tekst: 1.7fr; }
.rij--tekst-foto.is-klein { --kol-tekst: 2.8fr; }
.rij--tekst-foto.is-rechts { grid-template-columns: var(--kol-tekst) var(--kol-foto); }
.rij--tekst-foto.is-rechts .rij__foto { order: 2; }
.rij--tekst-foto .tekst { padding-top: .25rem; }
.rij__foto img { width: auto; max-width: 100%; max-height: 72vh; margin-inline: auto; border-radius: var(--radius-foto); }
@media (max-width: 44rem) {
	.rij--tekst-foto, .rij--tekst-foto.is-rechts { grid-template-columns: 1fr; }
	.rij--tekst-foto.is-rechts .rij__foto { order: 0; }
	.rij--tekst-foto.is-middel .rij__foto img { max-width: 70%; }
	.rij--tekst-foto.is-klein .rij__foto img { max-width: 45%; }
}

/* Homepage: de eerste rij is de introductie (zoals Sara's ontwerp): tekst gecentreerd naast het portret. */
.vak--intro .rij--tekst-foto { align-items: center; }
.vak--intro .tekst { text-align: center; margin-inline: auto; }
.vak--intro .tekst h2 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: .04em; line-height: 1.5; color: var(--blauw); margin-bottom: 1.4rem; }
.vak--intro .tekst h2::after { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--accent); margin: 1.1rem auto 0; border-radius: 3px; }
.vak--intro .tekst p { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.7; }


/* Eén grote foto */
.grotefoto { margin: 0; }
.grotefoto.is-middel { max-width: 46rem; margin-inline: auto; }
.grotefoto.is-klein { max-width: 28rem; margin-inline: auto; }
.grotefoto img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--vlak); border-radius: var(--radius-foto); }
figcaption { font-size: .95rem; font-style: italic; color: var(--grijs); margin-top: .9rem; text-align: center; }

/* Carrousel */
.carrousel { position: relative; background: var(--vlak); border-radius: var(--radius-foto); overflow: hidden; }
.carrousel__baan { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; list-style: none; margin: 0; padding: 0; }
.carrousel__baan::-webkit-scrollbar { display: none; }
.carrousel__dia { flex: 0 0 100%; scroll-snap-align: center; height: clamp(18rem, 62vh, 40rem); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 1.5rem 1.5rem 2.75rem; }
.carrousel__dia img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; min-height: 0; border-radius: var(--radius-klein); }
.carrousel__knop {
	position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 50%;
	border: 0; background: var(--wit); color: var(--blauw); font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: var(--schaduw);
}
.carrousel__knop:hover { background: var(--blauw); color: var(--wit); }
.carrousel__knop--vorige { left: 1rem; }
.carrousel__knop--volgende { right: 1rem; }
.carrousel__stippen { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .45rem; }
.carrousel__stip { width: .6rem; height: .6rem; border-radius: 50%; border: 0; padding: 0; background: rgb(27 57 92 / 22%); cursor: pointer; }
.carrousel__stip[aria-current="true"] { background: var(--accent); }

/* Fotoraster */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: clamp(.9rem, 2vw, 1.4rem); list-style: none; margin: 0; padding: 0; }
.raster a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--vlak); }
.raster img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.raster a:hover img { transform: scale(1.04); }

/* Schuifstrook: 3 foto's naast elkaar met puntjes */
.schuif__baan { position: relative; display: flex; gap: clamp(.9rem, 2vw, 1.4rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; list-style: none; margin: 0; padding: 0; }
.schuif__baan::-webkit-scrollbar { display: none; }
.schuif__baan > li { flex: 0 0 calc((100% - 2 * clamp(.9rem, 2vw, 1.4rem)) / 3); scroll-snap-align: start; }
.schuif__baan a { display: block; background: var(--vlak); border-radius: var(--radius); overflow: hidden; }
.schuif__baan img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 7%; transition: transform .4s ease; }
.schuif__baan a:hover img { transform: scale(1.03); }
@media (max-width: 44rem) { .schuif__baan > li { flex-basis: calc((100% - clamp(.9rem, 2vw, 1.4rem)) / 2); } }
@media (max-width: 30rem) { .schuif__baan > li { flex-basis: 82%; } }
.schuif__bediening { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.4rem; }
.schuif.is-vol .schuif__bediening { display: none; }
.schuif__stippen { display: flex; gap: .45rem; }
.schuif__stippen button { width: .6rem; height: .6rem; border-radius: 50%; border: 0; padding: 0; background: rgb(27 57 92 / 22%); cursor: pointer; }
.schuif__stippen button[aria-current="true"] { background: var(--accent); }
.schuif__knop { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--lijn); background: var(--wit); color: var(--blauw); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.schuif__knop:hover { border-color: var(--blauw); background: var(--blauw); color: var(--wit); }
.vak--donker .schuif__stippen button { background: rgb(255 255 255 / 35%); }
.vak--donker .schuif__stippen button[aria-current="true"] { background: var(--wit); }

/* Lightbox */
.lichtbak { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lichtbak::backdrop { background: rgb(12 22 36 / 90%); }
.lichtbak img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius-klein); }
.lichtbak button { position: fixed; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--wit); color: var(--blauw); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lichtbak__sluit { top: 1rem; right: 1rem; }
.lichtbak__pijl { top: 50%; transform: translateY(-50%); }
.lichtbak__pijl--vorige { left: 1rem; }
.lichtbak__pijl--volgende { right: 1rem; }
.lichtbak.is-enkel .lichtbak__pijl, .lichtbak.is-enkel .lichtbak__teller { display: none; }
.lichtbak__teller { position: fixed; bottom: 1rem; left: 0; right: 0; margin: 0; text-align: center; color: var(--wit); font-size: .95rem; }

/* Kaarten (subpagina's) */
.kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; }
.kaart { background: var(--wit); border-radius: var(--radius-foto); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--schaduw); transition: box-shadow .25s ease, transform .25s ease; }
.kaart:hover { box-shadow: 0 2px 6px rgb(27 57 92 / 6%), 0 22px 48px rgb(27 57 92 / 12%); transform: translateY(-3px); }
.kaart a { text-decoration: none; display: flex; flex-direction: column; height: 100%; color: inherit; }
.kaart__beeld { aspect-ratio: 4 / 3; background: var(--vlak); display: flex; align-items: center; justify-content: center; }
.kaart__beeld img { width: 100%; height: 100%; object-fit: cover; }
.kaart__beeld .kaart__zegel { width: 22%; height: auto; object-fit: contain; opacity: .85; }
.kaart__tekst { padding: 1.4rem 1.5rem 1.6rem; text-align: center; display: flex; flex-direction: column; flex: 1; }
.kaart__tekst h3 { margin-bottom: .45rem; font-weight: 500; font-size: 1.35rem; }
.kaart__tekst p { color: var(--grijs); font-size: 1rem; line-height: 1.6; margin: 0 0 1rem; }
.kaart__meer { margin-top: auto; font-size: .9rem; letter-spacing: .06em; color: var(--accent); }

/* Formulier (SureForms). Het formulier verwijst nog naar Astra-kleurvariabelen; die vullen we hier. */
.rij--formulier {
	max-width: var(--tekst);
	margin-inline: auto;
	--ast-global-color-0: var(--blauw);
	--ast-global-color-2: var(--inkt);
}
.rij--formulier .srfm-form-container.srfm-form-container-2668 {
	--srfm-color-scheme-text-on-primary: var(--wit);
	--srfm-color-input-background: var(--wit);
	background: transparent;
	font-family: var(--font);
}
.rij--formulier .srfm-form-container :is(input, textarea, select) { border-radius: var(--radius-klein) !important; font-family: var(--font) !important; }
.rij--formulier .srfm-form-container button { border-radius: 999px !important; font-family: var(--font) !important; padding-inline: 1.6rem !important; }
.rij--formulier .srfm-edit-form-btn-wrap { display: none; }

/* Cookiebanner (SureCookie) in de huisstijl. */
html:root {
	--surecookie-banner-primary-color: #1b395c;
	--surecookie-banner-primary-hover-color: #264d7a;
	--surecookie-banner-secondary-color: #1b395c;
	--surecookie-banner-text-color: #262b33;
	--surecookie-banner-background-color: #ffffff;
	--surecookie-banner-primary-text-color: #ffffff;
	--surecookie-banner-secondary-text-color: #ffffff;
}

/* ---------- Voet ---------- */

.voet { background: var(--blauw); color: rgb(255 255 255 / 82%); border-top: 3px solid var(--accent); padding-block: clamp(3rem, 7vw, 4.5rem) 1.75rem; font-size: 1rem; }
.voet__raster { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 44rem) { .voet__raster { grid-template-columns: 1fr 1fr; } .voet__merk { grid-column: 1 / -1; } }
.voet p { margin: 0 0 .3rem; }
.voet__naam { font-size: 1.35rem; color: var(--wit); }
.voet__slogan { font-style: italic; margin-top: .9rem !important; }
.voet__zh { margin-right: .5rem; }
.voet__kop { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / 55%); margin: 0 0 .9rem; }
.voet__lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.voet a { color: var(--wit); text-decoration: none; }
.voet a:hover { text-decoration: underline; color: var(--wit); }
.voet__onder { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / 14%); font-size: .88rem; color: rgb(255 255 255 / 55%); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
