/*
Theme Name: RIAS-fonds
Theme URI: https://riasfonds.nl/
Author: First Element
Description: Thema voor het RIAS-fonds (Rotary IHE Alumni Support), gebaseerd op het redesign-ontwerp. Met projecten als eigen berichttype, nieuws en een zoekfunctie die ook projectgegevens doorzoekt.
Version: 1.5.1
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rias
*/

:root {
	--accent: #C9D82B;
	--deep: #0A4247;
	--teal: #0E5A5E;
	--ink: #1D2B2C;
	--body: #33484A;
	--muted: #4A5B5C;
	--label: #3E6E70;
	--line: #DCE7E6;
	--line-strong: #C5D6D5;
	--ground: #F5F8F6;
	--mist: #E3F0F2;
	--footer: #06302F;
	--display: 'Bricolage Grotesque', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Figtree', system-ui, sans-serif; font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 12px 18px; border-radius: 8px; }

.eyebrow { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.h-section { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; color: var(--deep); letter-spacing: -0.01em; }
.section { padding-top: 96px; padding-bottom: 96px; }
.bg-mist { background: var(--mist); }
.bg-deep { background: var(--deep); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.more-link { font-weight: 700; text-decoration: none; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; text-align: center; font-weight: 700; padding: 14px 26px; border-radius: 999px; border: 0; font-family: inherit; font-size: 17px; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--deep); }
.btn-accent:hover { color: var(--deep); filter: brightness(1.05); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { color: #fff; background: var(--deep); }
.btn-ghost-light { color: #fff; border: 1.5px solid #72B0C0; }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline { border: 1.5px solid var(--teal); color: var(--teal); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--deep); }
.brand img, .custom-logo { display: block; width: auto; height: 60px; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.brand-text small { display: block; font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 600; color: var(--label); margin-top: 4px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 600; font-size: 16px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.main-nav ul a { text-decoration: none; color: var(--ink); }
.main-nav ul a:hover, .main-nav .current-menu-item > a { color: var(--teal); }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { border-bottom: 2px solid var(--teal); }
.main-nav .btn { padding: 12px 22px; font-size: 16px; }
.lang-switch { text-decoration: none; color: var(--label); font-size: 14px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; }
.lang-switch:hover { color: var(--deep); border-color: var(--teal); }

/* Search form */
.search-form { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 3px 3px 16px; background: var(--ground); }
.search-form input[type="search"] { border: 0; background: transparent; font-family: inherit; font-weight: 500; font-size: 15px; color: var(--ink); width: 180px; min-width: 0; }
.search-form input[type="search"]:focus { outline: none; }
.search-form:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-form button { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; cursor: pointer; flex: none; }
.search-form.is-large { padding: 6px 6px 6px 24px; background: #fff; max-width: 640px; }
.search-form.is-large input[type="search"] { width: 100%; font-size: 18px; }
.search-form.is-large button { width: 48px; height: 48px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { padding-top: 96px; padding-bottom: 120px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-text .eyebrow { color: var(--accent); margin-bottom: 20px; }
.hero h1 { margin: 0 0 24px; font-family: var(--display); font-weight: 800; font-size: clamp(42px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
.hero-lead { margin: 0 0 36px; font-size: 21px; line-height: 1.55; color: #D5E7E8; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn { padding: 16px 28px; }
.hero-media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero-media .hero-img { display: block; aspect-ratio: 4 / 5; max-height: 560px; width: 100%; object-fit: cover; border-radius: 220px 220px 28px 28px; background: #1B6468; }
.hero-badge { position: absolute; left: -24px; bottom: 40px; background: #fff; color: var(--deep); border-radius: 20px; padding: 18px 22px; box-shadow: 0 18px 40px rgba(4,30,32,0.28); display: flex; flex-direction: column; }
.hero-badge strong { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.hero-badge span { font-size: 14px; color: var(--label); font-weight: 600; }
.hero-wave { display: block; width: 100%; height: 60px; position: absolute; bottom: -1px; left: 0; }

/* Stats */
.stats { padding-top: 56px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--teal); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 16px; }

/* Why */
.why { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px 80px; }
.why > div:first-child { flex: 1 1 380px; min-width: 0; }
.why-body { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; color: var(--body); }
.why-body p { margin: 0; }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.theme-card { background: #fff; border-radius: 24px; padding: 32px; }
.theme-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.theme-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 26px; color: var(--deep); }
.theme-card p { margin: 0; color: var(--muted); font-size: 17px; }

/* Project cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.project-card { text-decoration: none; color: inherit; background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.project-card:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,66,71,0.12); }
.project-card-media { height: 180px; background: var(--teal); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 24px; position: relative; isolation: isolate; }
.project-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.project-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,66,71,0.92) 0%, rgba(10,66,71,0.3) 60%, rgba(10,66,71,0) 100%); z-index: -1; }
.project-card-country { font-family: var(--display); font-weight: 800; font-size: 30px; color: #fff; line-height: 1.1; }
.pill { display: inline-block; background: var(--accent); color: var(--deep); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; line-height: 1.5; }
.pill-outline { background: transparent; color: inherit; border: 1px solid #72B0C0; padding: 3px 12px; font-weight: 600; }
.project-card-body { padding: 24px; }
.project-card-body h3 { margin: 0 0 8px; font-family: var(--display); font-size: 23px; color: var(--deep); line-height: 1.2; }
.project-card-body p { margin: 0; color: var(--muted); font-size: 16px; }
.card-grid.is-compact { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.project-card.is-compact { border: 0; }
.project-card.is-compact .project-card-media { height: 120px; padding: 16px 24px; }
.project-card.is-compact .project-card-media::after { background: linear-gradient(to top, rgba(10,66,71,0.92) 0%, rgba(10,66,71,0.3) 70%, rgba(10,66,71,0) 100%); }
.project-card.is-compact .project-card-country { font-size: 26px; }
.project-card.is-compact .project-card-body { padding: 20px 24px; }
.project-card.is-compact .project-card-body h3 { margin: 0; font-family: inherit; font-size: 20px; }

/* Spotlight */
.spotlight { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.spotlight-text { flex: 1 1 340px; min-width: 0; }
.spotlight-text p:not(.eyebrow) { margin: 16px 0 20px; color: var(--muted); }
.spotlight-media { flex: 1.6 1 520px; min-width: 0; position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--deep); }
.spotlight-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spotlight-shade { position: absolute; inset: 0; background: rgba(10,66,71,0.25); }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 999px; background: var(--accent); color: var(--deep); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(4,30,32,0.35); transition: transform .15s ease; }
.play-btn:hover { color: var(--deep); transform: translate(-50%, -50%) scale(1.06); }
.video-duration { position: absolute; right: 16px; bottom: 14px; background: rgba(10,66,71,0.85); color: #fff; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }

/* Steps */
.bg-deep .eyebrow { color: var(--accent); }
.bg-deep .h-section { color: #fff; margin-bottom: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { border-top: 2px solid #72B0C0; padding-top: 24px; }
.steps .num { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--accent); }
.steps h3 { margin: 8px 0; font-size: 22px; }
.steps p { margin: 0; color: #CFE2E3; font-size: 17px; }

/* Adopt */
.adopt-intro { max-width: 720px; margin-bottom: 48px; }
.adopt-intro p:last-child { margin: 16px 0 0; color: var(--muted); }
.adopt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.adopt-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.adopt-card h3 { margin: 0; font-size: 20px; color: var(--deep); }
.adopt-card .price { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3vw, 42px); color: var(--teal); line-height: 1.1; }
.adopt-card .price small { font-size: 22px; font-weight: 600; }
.adopt-card p { margin: 0 0 12px; color: var(--muted); font-size: 17px; flex-grow: 1; }
.adopt-card.is-featured { background: var(--teal); border-color: var(--teal); color: #fff; }
.adopt-card.is-featured h3, .adopt-card.is-featured .price { color: #fff; }
.adopt-card.is-featured p { color: #D5E7E8; }
.adopt-note { margin: 28px 0 0; font-size: 15px; color: var(--muted); max-width: 820px; }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.news-card { text-decoration: none; color: inherit; background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.news-card:hover { color: inherit; box-shadow: 0 14px 30px rgba(10,66,71,0.10); }
.news-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-bottom: 6px; }
.news-card .date { font-size: 14px; font-weight: 600; color: var(--label); }
.news-card h3 { margin: 0; font-family: var(--display); font-size: 23px; color: var(--deep); line-height: 1.2; }
.news-card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Partners */
.partners { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.partners p { margin: 0; font-weight: 700; color: var(--label); }
.partners div { display: flex; flex-wrap: wrap; gap: 16px 40px; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--muted); }
.partners div a { color: inherit; }
.partners div a:hover { color: var(--deep); }

/* Footer */
.site-footer { background: var(--footer); color: #CFE2E3; }
.footer-main { padding-top: 72px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 48px; }
.footer-cta { flex: 2 1 340px; min-width: 0; }
.footer-cta h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.1; color: #fff; }
.footer-cta p { margin: 0 0 24px; max-width: 460px; }
.footer-nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.footer-nav strong { color: #fff; }
.footer-nav a { color: #CFE2E3; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #1E4E4F; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Page hero (inner pages) */
.page-hero .wrap { padding-top: 56px; padding-bottom: 72px; }
.breadcrumb { font-size: 15px; color: #A9CDD3; margin-bottom: 28px; }
.breadcrumb a { color: #A9CDD3; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.page-hero h1 { margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; max-width: 900px; }
.page-hero .lead { margin: 0; font-size: 21px; color: #D5E7E8; max-width: 760px; }
.feature-img { display: block; margin-top: -24px; aspect-ratio: 21 / 8; width: 100%; object-fit: cover; border-radius: 28px; background: #1B6468; position: relative; }

/* Article layout */
.article-layout { padding-top: 64px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.entry { flex: 999 1 560px; min-width: 0; color: var(--body); }
.entry h2 { margin: 1.4em 0 0.5em; font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--deep); line-height: 1.15; }
.entry h2:first-child { margin-top: 0; }
.entry h3 { font-family: var(--display); color: var(--deep); font-size: 24px; }
.entry blockquote { margin: 0 0 32px; padding: 28px 32px; background: var(--mist); border-radius: 24px; font-family: var(--display); font-size: 26px; line-height: 1.3; color: var(--deep); }
.entry blockquote p { margin: 0; }
.entry img { border-radius: 16px; }
.entry-narrow { max-width: 820px; margin: 0 auto; padding-top: 64px; padding-bottom: 96px; color: var(--body); }
.aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.box h2 { margin: 0 0 16px; font-size: 18px; color: var(--deep); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.cta-box { background: var(--teal); color: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cta-box h2 { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.15; }
.cta-box p { margin: 0; color: #D5E7E8; font-size: 16px; }

/* FAQ (Details-blokken) */
.entry details { background: #fff; border: 1px solid var(--line); border-radius: 20px; margin: 0 0 12px; }
.entry details[open] { border-color: var(--line-strong); }
.entry summary { list-style: none; cursor: pointer; position: relative; padding: 22px 76px 22px 28px; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.3; color: var(--deep); border-radius: 20px; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; background: var(--mist); color: var(--teal); font-family: 'Figtree', sans-serif; font-size: 24px; font-weight: 600; line-height: 36px; text-align: center; }
.entry details[open] summary::after { content: "–"; background: var(--teal); color: #fff; }
.entry summary:hover { color: var(--teal); }
.entry details > :not(summary) { margin: 0 28px 20px; }
.entry details > :not(summary):last-child { margin-bottom: 26px; }
.entry.faq > p:first-child { margin-top: 0; }
.faq-steps { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 16px; }
.steps-more { margin: 40px 0 0; }
.steps-more a { color: var(--accent); }
.steps-more a:hover { color: #fff; }

/* Search & archive */
.results-count { margin: 0 0 32px; color: var(--muted); }
.result-type { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); }
.no-results { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; max-width: 760px; }
.no-results h2 { margin-top: 0; font-family: var(--display); color: var(--deep); }
.pagination { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

@media (max-width: 720px) {
	body { font-size: 17px; }
	.section { padding-top: 64px; padding-bottom: 64px; }
	.hero .wrap { padding-top: 56px; padding-bottom: 96px; }
	.hero-badge { left: 12px; }
	.entry summary { padding: 18px 64px 18px 20px; font-size: 19px; }
	.entry summary::after { right: 16px; }
	.entry details > :not(summary) { margin-left: 20px; margin-right: 20px; }
	.search-form { width: 100%; }
	.search-form input[type="search"] { flex: 1; }
	.main-nav { width: 100%; }
}
