/*
Theme Name: Harmonicale Ellips
Theme URI: https://harmonicale-ellips.nl
Author: ORIO architecten
Author URI: https://orio-architecten.nl
Description: Thema voor de Werkgroep Harmonicale Ellips. Rustig, menselijk en zintuiglijk digitaal landschap rond ontmoeting, architectuur, natuur en bewustzijn. Gebouwd volgens het ontwerpbestek "Visuele richting en ontwerpbestek" v1.1.
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: harmonicale-ellips
*/

/* ==========================================================================
   0. INHOUD
   1. Lettertypen
   2. Design tokens (kleur, typografie, ruimte, radius)
   3. Reset en basis
   4. Typografie
   5. Layout- en ruimtehulpmiddelen
   6. Knoppen en links
   7. Navigatie
   8. Hero
   9. Secties: introductie, samen ervaren, thema's, oorsprong, CTA
   10. Actuele-bijeenkomstblok
   11. Formulieren
   12. Footer
   13. Beweging / animatie
   14. Toegankelijkheid
   15. Responsief
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LETTERTYPEN
   Voorkeur is zelf hosten (snelheid + privacy). Vanwege een netwerkbeperking
   in de bouwomgeving zijn de woff2-bestanden nu niet automatisch opgehaald;
   de site laadt de fonts daarom voorlopig via de Google Fonts CDN (zie
   enqueue in functions.php). Onderstaand blok staat klaar om te activeren
   zodra de woff2-bestanden in assets/fonts/ staan — zie README.md.
   -------------------------------------------------------------------------- */

/*
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-variable.woff2') format('woff2-variations');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('assets/fonts/source-sans-3-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('assets/fonts/source-sans-3-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
*/

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Kleur — zie ontwerpbestek hoofdstuk 4 */
  --color-chalk: #F7F4EE;   /* krijtwit — hoofdachtergrond, 55–65% */
  --color-sand: #E9E1D3;    /* warm zand — bijeenkomstblok, 15–20% */
  --color-forest: #2F4038;  /* bosgroen — footer/CTA, 10–15% */
  --color-moss: #657467;    /* mos — bovenregels/accenten, 5% */
  --color-gold: #A88E5A;    /* gedempt goud — max. 3%, kleine accenten */
  --color-ink: #292B29;     /* antraciet — lopende tekst */
  --color-heading: #1B1C1A; /* zeer donker antraciet — koppen */
  --color-white: #FFFFFF;

  /* Functionele kleuren, afgeleid */
  --color-bg: var(--color-chalk);
  --color-bg-alt: var(--color-sand);
  --color-bg-dark: var(--color-forest);
  --color-text: var(--color-ink);
  --color-text-on-dark: var(--color-chalk);
  --color-border: rgba(41, 43, 41, 0.12);
  --color-focus: var(--color-gold);

  /* Typografie */
  --font-serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type-schaal — mobiel (basiswaarden) */
  --text-h1: 2.625rem;      /* 42px */
  --text-h2: 2.0625rem;     /* 33px */
  --text-h3: 1.3125rem;     /* 21px */
  --text-body: 1.125rem;    /* 18px */
  --text-nav: 1.0625rem;    /* 17px */
  --text-eyebrow: 0.78125rem; /* 12.5px */

  /* Ruimte */
  --space-section: 4.75rem;      /* 76px, mobiel */
  --gutter: 1.375rem;             /* 22px, mobiel */
  --max-width: 1320px;
  --text-col: 720px;
  --radius: 10px;
  --radius-lg: 14px;
  --nav-height: 78px;

  /* Beweging */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 220ms;
}

@media (min-width: 64rem) {
  :root {
    --text-h1: 4rem;          /* 64px */
    --text-h2: 2.6875rem;     /* 43px */
    --text-h3: 1.5rem;        /* 24px */
    --text-body: 1.1875rem;   /* 19px */
    --text-nav: 1rem;         /* 16px */
    --text-eyebrow: 0.84375rem; /* 13.5px */

    --space-section: 7.5rem;  /* 120px, desktop */
    --gutter: 3rem;           /* 48px, desktop */
    --nav-height: 84px;
  }
}

/* --------------------------------------------------------------------------
   3. RESET EN BASIS
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* --------------------------------------------------------------------------
   4. TYPOGRAFIE
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-h3); line-height: 1.3; }

p {
  margin: 0 0 1.25em;
  max-width: 42ch; /* ≈ 68 tekens breed op leesniveau, iets ingekort voor ruimere letters */
}
p:last-child { margin-bottom: 0; }

.he-text-col p,
.he-text-col li {
  max-width: none;
}

.he-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-eyebrow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-moss);
  margin: 0 0 0.9em;
}
.he-eyebrow--on-dark { color: var(--color-sand); }

.he-lede {
  font-size: 1.15em;
  max-width: 56ch;
}

/* Geen volledig gecentreerde tekstblokken langer dan twee regels */
.he-center-short {
  text-align: center;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   5. LAYOUT- EN RUIMTEHULPMIDDELEN
   -------------------------------------------------------------------------- */

.he-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.he-text-col {
  max-width: var(--text-col);
}

.he-section {
  padding-block: var(--space-section);
}

.he-section--tight { padding-block: calc(var(--space-section) * 0.65); }

.he-section--sand { background: var(--color-bg-alt); }
.he-section--forest { background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.he-section--forest h2,
.he-section--forest h3 { color: var(--color-text-on-dark); }

.he-grid {
  display: grid;
  gap: var(--gutter);
}

@media (min-width: 64rem) {
  .he-grid--2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .he-grid--intro { grid-template-columns: 5fr 6fr; align-items: start; gap: 4rem; }
}

.he-align-left { text-align: left; }

/* --------------------------------------------------------------------------
   6. KNOPPEN EN LINKS
   -------------------------------------------------------------------------- */

.he-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-nav);
  padding: 0.95em 1.7em;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.he-btn:hover { transform: translateY(-2px); }
.he-btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.he-btn--primary {
  background: var(--color-forest);
  color: var(--color-chalk);
}
.he-btn--primary:hover { background: #26342e; }

.he-btn--gold {
  background: var(--color-gold);
  color: var(--color-heading);
}
.he-btn--gold:hover { background: #9a8050; }

.he-btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-forest);
}
.he-btn--outline:hover { background: rgba(47, 64, 56, 0.08); }
.he-section--forest .he-btn--outline { color: var(--color-chalk); }
.he-section--forest .he-btn--outline:hover { background: rgba(247, 244, 238, 0.1); }

.he-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
  transition: color var(--duration) var(--ease), gap var(--duration) var(--ease);
}
.he-link:hover { color: var(--color-gold); gap: 0.6em; }
.he-link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.he-link svg { width: 1em; height: 1em; }

/* --------------------------------------------------------------------------
   7. NAVIGATIE
   -------------------------------------------------------------------------- */

.he-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.he-nav.is-scrolled,
.he-nav.is-open {
  background: rgba(247, 244, 238, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(41, 43, 41, 0.06);
}
.he-nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.he-nav__brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-heading);
}
.he-nav:not(.is-scrolled):not(.is-open) .he-nav__brand,
.he-nav:not(.is-scrolled):not(.is-open) .he-nav__link {
  color: var(--color-chalk);
}

.he-nav__links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
@media (min-width: 56rem) {
  .he-nav__links { display: flex; }
}
.he-nav__link {
  font-size: var(--text-nav);
  font-weight: 600;
  color: var(--color-heading);
  padding-block: 0.3em;
  border-bottom: 2px solid transparent;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.he-nav__link:hover { border-color: var(--color-gold); }
.he-nav__link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }

.he-nav__cta { margin-left: 0.5rem; }

.he-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--color-heading);
}
.he-nav:not(.is-scrolled):not(.is-open) .he-nav__toggle { color: var(--color-chalk); }
@media (min-width: 56rem) {
  .he-nav__toggle { display: none; }
}

.he-mobile-menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: 49;
  background: var(--color-chalk);
  padding: 2rem var(--gutter);
  display: none;
  flex-direction: column;
  gap: 1.75rem;
}
.he-mobile-menu.is-open { display: flex; }
.he-mobile-menu .he-nav__link {
  font-size: 1.25rem;
  color: var(--color-heading);
}
@media (min-width: 56rem) {
  .he-mobile-menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */

.he-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-forest);
}
@media (min-width: 64rem) {
  .he-hero { min-height: 78vh; align-items: center; }
}

.he-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.he-hero__media img,
.he-hero__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.he-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(20, 26, 22, 0.72) 0%,
    rgba(20, 26, 22, 0.45) 38%,
    rgba(20, 26, 22, 0.05) 70%
  );
  z-index: 1;
}

.he-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 3rem;
  color: var(--color-chalk);
}
.he-hero__content-inner { max-width: 640px; }

.he-hero__title {
  color: var(--color-chalk);
  font-size: var(--text-h1);
  margin-bottom: 0.4em;
}

.he-hero__intro {
  max-width: 46ch;
  font-size: 1.15rem;
  margin-bottom: 1.75em;
  color: var(--color-chalk);
}

.he-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}

/* --------------------------------------------------------------------------
   9. SECTIES
   -------------------------------------------------------------------------- */

.he-themes-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.he-themes-list__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 48rem) {
  .he-themes-list__item {
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: baseline;
  }
}
.he-themes-list__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-heading);
}
.he-themes-list__desc { margin: 0; color: var(--color-text); max-width: 60ch; }

.he-origin__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.he-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

/* --------------------------------------------------------------------------
   10. ACTUELE-BIJEENKOMSTBLOK
   -------------------------------------------------------------------------- */

.he-meeting {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .he-meeting { grid-template-columns: 3fr 2fr; }
  .he-meeting--reverse { grid-template-columns: 2fr 3fr; }
}

.he-meeting__media {
  min-height: 220px;
  background: var(--color-moss);
}
.he-meeting__media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

.he-meeting__body {
  padding: 2.25rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
@media (min-width: 64rem) {
  .he-meeting__body { padding: 3rem; }
}

.he-meeting__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-weight: 600;
  color: var(--color-forest);
}

.he-meeting__program {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.he-meeting__program li {
  padding-left: 1.4rem;
  position: relative;
}
.he-meeting__program li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* --------------------------------------------------------------------------
   11. FORMULIEREN
   -------------------------------------------------------------------------- */

.he-form { max-width: var(--text-col); }
.he-field { margin-bottom: 1.5rem; }
.he-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5em;
}
.he-field input[type="text"],
.he-field input[type="email"],
.he-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid rgba(41, 43, 41, 0.28);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text);
}
.he-field input:focus,
.he-field textarea:focus {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-forest);
}
.he-field--checkbox { display: flex; align-items: flex-start; gap: 0.75em; }
.he-field--checkbox input { margin-top: 0.3em; width: 18px; height: 18px; }
.he-field--checkbox label { font-weight: 400; margin-bottom: 0; }

.he-form__note { font-size: 0.9rem; color: var(--color-moss); }

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */

.he-footer {
  background: var(--color-forest);
  color: var(--color-sand);
  padding-block: 3.5rem 2.5rem;
}
.he-footer a { color: var(--color-chalk); }
.he-footer a:hover { color: var(--color-gold); }
.he-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 48rem) {
  .he-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.he-footer__brand { font-family: var(--font-serif); font-size: 1.4rem; color: var(--color-chalk); }
.he-footer__meta {
  font-size: 0.9rem;
  border-top: 1px solid rgba(247, 244, 238, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(247, 244, 238, 0.7);
}
.he-footer__links { display: grid; gap: 0.6rem; }

/* --------------------------------------------------------------------------
   13. BEWEGING
   -------------------------------------------------------------------------- */

.he-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.he-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .he-reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   14. TOEGANKELIJKHEID
   -------------------------------------------------------------------------- */

.he-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-forest);
  color: var(--color-chalk);
  padding: 1em 1.5em;
  border-radius: 0 0 8px 0;
}
.he-skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.he-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   15. RESPONSIEF — HOOFDCONTENT ONDER VASTE NAV
   -------------------------------------------------------------------------- */

main { display: block; }
