/*
Theme Name: NWOugh
Theme URI: https://www.stopnwo.nl
Author: NWOugh
Author URI: https://www.stopnwo.nl
Description: Officieel thema voor StopNWO.nl — protest- en informatiewebsite over NWO-wetenschapsfinanciering.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stopnwo
Tags: two-columns, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   STOPNWO THEME — STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --red:        #C0001A;
  --red-dark:   #8B0013;
  --red-light:  #E8001F;
  --red-pale:   #FFF0F0;
  --white:      #FFFFFF;
  --off-white:  #F8F5F2;
  --black:      #0F0F0F;
  --gray-dark:  #2C2C2C;
  --gray-mid:   #5A5A5A;
  --gray-light: #D4D0CB;
  --gray-bg:    #F2EFE9;
  --border:     #E0DAD2;
  --nav-h:      72px;
  --max-w:      1160px;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Source Sans 3', 'Helvetica Neue', sans-serif;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.12);
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--gray-dark); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 0; list-style: none; }

/* ── UTILITY ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── NAVIGATION ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow-sm); height: var(--nav-h);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.site-branding { display: flex; flex-direction: column; line-height: 1; }
.site-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 900; color: var(--red); letter-spacing: -0.5px; }
.site-title a { color: var(--red); }
.site-description { font-size: 0.68rem; font-weight: 600; color: var(--gray-mid); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.main-navigation ul { display: flex; align-items: center; gap: 6px; }
.main-navigation a { font-size: 0.88rem; font-weight: 600; color: var(--gray-dark); padding: 6px 14px; border-radius: 3px; letter-spacing: 0.03em; text-transform: uppercase; transition: background var(--transition), color var(--transition); }
.main-navigation a:hover, .main-navigation .current-menu-item > a { background: var(--red); color: var(--white); }
.nav-lang { display: flex; border: 1.5px solid var(--gray-light); border-radius: 4px; overflow: hidden; margin-left: 16px; }
.lang-btn { font-size: 0.8rem; font-weight: 700; padding: 5px 10px; background: none; border: none; cursor: pointer; color: var(--gray-mid); transition: background var(--transition), color var(--transition); font-family: var(--font-body); letter-spacing: 0.05em; }
.lang-btn.active { background: var(--red); color: var(--white); }
.nav-right { display: flex; align-items: center; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-dark); transition: transform var(--transition), opacity var(--transition); }

/* ── HERO ────────────────────────────────────────────────── */
.hero { background: var(--red); color: var(--white); padding: 80px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -60px; right: -80px; width: 520px; height: 520px; background: var(--red-dark); border-radius: 50%; opacity: 0.35; }
.hero::after { content: ''; position: absolute; bottom: -40px; left: 10%; width: 280px; height: 280px; background: var(--red-light); border-radius: 50%; opacity: 0.2; }
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); padding: 5px 14px; border-radius: 2px; margin-bottom: 20px; color: rgba(255,255,255,0.92); }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero p { font-size: 1.18rem; font-weight: 300; line-height: 1.7; opacity: 0.92; max-width: 600px; margin-bottom: 36px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-block; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 14px 28px; border-radius: 3px; transition: all var(--transition); cursor: pointer; border: 2px solid transparent; font-family: var(--font-body); }
.btn-white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); margin-left: 12px; }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

/* ── STATS BAND ──────────────────────────────────────────── */
.stats-band { background: var(--black); color: var(--white); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 16px 24px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--red-light); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.65); font-weight: 400; letter-spacing: 0.04em; }

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--off-white); }
.section-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; display: block; }
.section-header { margin-bottom: 48px; }
.section-header h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; color: var(--black); }
.section-header p { margin-top: 14px; font-size: 1.05rem; color: var(--gray-mid); max-width: 600px; line-height: 1.7; }
.divider { width: 48px; height: 3px; background: var(--red); margin: 16px 0 20px; }

/* ── CARDS ───────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--red); padding: 28px; transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon { width: 44px; height: 44px; background: var(--red-pale); border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--red); font-size: 1.3rem; }
.card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--black); line-height: 1.3; }
.card p { font-size: 0.92rem; color: var(--gray-mid); line-height: 1.65; }
.card-link { display: inline-block; margin-top: 16px; font-size: 0.84rem; font-weight: 700; color: var(--red); letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1.5px solid var(--red-light); padding-bottom: 2px; }
.card-link:hover { border-color: var(--red); color: var(--red-dark); }

/* ── NEWS CARDS ──────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border: 1px solid var(--border); display: flex; flex-direction: column; transition: box-shadow var(--transition); }
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card-body { padding: 24px; flex: 1; }
.news-card-footer { padding: 16px 24px; border-top: 1px solid var(--border); }
.news-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--red); color: var(--white); padding: 3px 10px; margin-bottom: 12px; }
.news-card h3 { font-family: var(--font-head); font-size: 1.08rem; font-weight: 700; color: var(--black); line-height: 1.35; margin-bottom: 10px; }
.news-card p { font-size: 0.9rem; color: var(--gray-mid); line-height: 1.6; }
.news-meta { font-size: 0.78rem; color: var(--gray-mid); font-style: italic; }
.news-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-top: 4px solid var(--red); }
.news-featured-img { background: var(--red-pale); min-height: 220px; display: flex; align-items: center; justify-content: center; }
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.news-featured-body { padding: 36px; }
.news-featured-body h2 { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.3; margin-bottom: 12px; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { background: var(--red); color: var(--white); padding: 56px 0 48px; border-bottom: 4px solid var(--red-dark); }
.page-header h1 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 12px; }
.page-header p { font-size: 1.1rem; opacity: 0.88; max-width: 640px; font-weight: 300; }
.breadcrumb { padding: 14px 0; border-bottom: 1px solid var(--border); background: var(--off-white); }
.breadcrumb-list { display: flex; gap: 8px; font-size: 0.82rem; color: var(--gray-mid); align-items: center; }
.breadcrumb-list li + li::before { content: '›'; margin-right: 8px; }
.breadcrumb-list a { color: var(--gray-mid); }
.breadcrumb-list a:hover { color: var(--red); }
.breadcrumb-list li:last-child { color: var(--red); font-weight: 600; }

/* ── PULL QUOTE ──────────────────────────────────────────── */
.pull-quote { border-left: 5px solid var(--red); padding: 20px 28px; background: var(--red-pale); margin: 32px 0; border-radius: 0; }
.pull-quote p { font-family: var(--font-head); font-size: 1.2rem; font-style: italic; color: var(--black); line-height: 1.55; }
.pull-quote cite { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--gray-mid); font-style: normal; font-weight: 600; }

/* ── COMPLAINT CATEGORIES ────────────────────────────────── */
.complaint-category { border: 1px solid var(--border); border-left: 5px solid var(--red); padding: 28px 32px; margin-bottom: 24px; background: var(--white); transition: box-shadow var(--transition); }
.complaint-category:hover { box-shadow: var(--shadow-md); }
.complaint-category h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--black); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.cat-icon { width: 32px; height: 32px; background: var(--red-pale); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.complaint-category p { font-size: 0.93rem; color: var(--gray-mid); line-height: 1.65; }
.complaint-count { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--red); color: var(--white); padding: 3px 10px; margin-top: 12px; }

/* ── COMPLAINT FORM ──────────────────────────────────────── */
.form-section { background: var(--off-white); padding: 48px; border: 1px solid var(--border); }
.form-section h2 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 6px; color: var(--black); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--gray-dark); letter-spacing: 0.03em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea { font-family: var(--font-body); font-size: 0.95rem; padding: 12px 16px; border: 1.5px solid var(--gray-light); background: var(--white); color: var(--gray-dark); outline: none; transition: border-color var(--transition); border-radius: 2px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.82rem; color: var(--gray-mid); margin-top: 4px; }
.anon-note { background: var(--off-white); border: 1px solid var(--border); padding: 18px 22px; font-size: 0.88rem; color: var(--gray-mid); margin-bottom: 32px; display: flex; gap: 14px; align-items: flex-start; }

/* ── COST PAGE ───────────────────────────────────────────── */
.cost-highlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--red); border: 2px solid var(--red); margin-bottom: 48px; }
.cost-highlight-item { background: var(--white); padding: 28px 24px; text-align: center; }
.cost-highlight-num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: 8px; }
.cost-highlight-label { font-size: 0.85rem; color: var(--gray-mid); line-height: 1.45; }
.cost-section-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; color: var(--black); padding-bottom: 12px; border-bottom: 2px solid var(--red); }
.methodology-box { background: var(--off-white); border: 1px solid var(--border); border-left: 4px solid var(--gray-mid); padding: 20px 24px; margin-top: 32px; }
.methodology-box h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-dark); margin-bottom: 8px; }
.methodology-box p { font-size: 0.85rem; color: var(--gray-mid); line-height: 1.65; }

/* ── DATA TABLE ──────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.data-table th { background: var(--red); color: var(--white); padding: 14px 18px; text-align: left; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; font-family: var(--font-body); color: var(--gray-mid); }
.data-table tr:nth-child(even) td { background: var(--off-white); }
.data-table tr:hover td { background: var(--red-pale); }
.data-table td:first-child { font-weight: 600; color: var(--black); }

/* ── TEAM / CONTACT ──────────────────────────────────────── */
.team-card { display: flex; align-items: flex-start; gap: 20px; padding: 24px; border: 1px solid var(--border); background: var(--white); margin-bottom: 16px; }
.team-avatar { width: 56px; height: 56px; background: var(--red); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; flex-shrink: 0; }
.team-info h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.team-role { font-size: 0.82rem; font-weight: 600; color: var(--red); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.team-info p { font-size: 0.88rem; color: var(--gray-mid); line-height: 1.55; }
.contact-method { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--border); margin-bottom: 12px; background: var(--white); }
.contact-method-icon { width: 40px; height: 40px; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; border-radius: 3px; flex-shrink: 0; }
.contact-method h4 { font-size: 0.9rem; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.contact-method p { font-size: 0.85rem; color: var(--gray-mid); }
.disclaimer-box { background: var(--off-white); border: 1px solid var(--border); padding: 28px 32px; }
.disclaimer-box h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--black); }
.disclaimer-box p { font-size: 0.88rem; color: var(--gray-mid); line-height: 1.7; margin-bottom: 10px; }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band { background: var(--red); color: var(--white); padding: 56px 0; text-align: center; }
.cta-band h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.3px; }
.cta-band p { font-size: 1.05rem; opacity: 0.88; margin-bottom: 28px; font-weight: 300; }

/* ── NOTICE / INFO BOX ───────────────────────────────────── */
.notice-banner { background: var(--off-white); border-left: 4px solid var(--red); padding: 14px 20px; font-size: 0.88rem; color: var(--gray-mid); margin-bottom: 32px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--black); color: rgba(255,255,255,0.65); padding: 48px 0 28px; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .logo-main { font-family: var(--font-head); font-size: 1.4rem; font-weight: 900; color: var(--red-light); }
.footer-brand p { margin-top: 10px; line-height: 1.65; max-width: 280px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col a:hover { color: var(--red-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--red-light); }

/* ── WORDPRESS DEFAULTS ──────────────────────────────────── */
.wp-block-image { margin: 24px 0; }
.entry-content h2 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin: 32px 0 16px; color: var(--black); }
.entry-content h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; margin: 24px 0 12px; color: var(--black); }
.entry-content p { font-size: 1rem; line-height: 1.75; color: var(--gray-dark); margin-bottom: 18px; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 18px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; line-height: 1.65; }
.entry-content blockquote { border-left: 5px solid var(--red); padding: 20px 28px; background: var(--red-pale); margin: 32px 0; font-family: var(--font-head); font-size: 1.1rem; font-style: italic; }
.single-post-layout { max-width: 760px; margin: 0 auto; padding: 56px 32px; }
.single-post-layout .post-meta { font-size: 0.85rem; color: var(--gray-mid); margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.single-post-layout .post-category { background: var(--red); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; }
.two-col-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: start; }
.sidebar-sticky { position: sticky; top: calc(var(--nav-h) + 24px); }

/* ── LANG TOGGLE ─────────────────────────────────────────── */
[data-lang] { display: none; }
[data-lang].lang-active { display: block; }
.inline-lang { display: none; }
.inline-lang.lang-active { display: inline; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .card-grid, .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .news-featured { grid-template-columns: 1fr; }
  .two-col-layout { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .cost-highlight { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .main-navigation { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--red); padding: 16px 20px; }
  .main-navigation.toggled { display: flex; }
  .menu-toggle { display: flex; }
  .nav-lang { display: none; }
  .card-grid, .card-grid-4, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .form-section { padding: 28px 20px; }
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeUp 0.55s ease forwards; }
.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.15s; }
.fade-up:nth-child(3) { animation-delay: 0.25s; }
.fade-up:nth-child(4) { animation-delay: 0.35s; }
