/*
Theme Name: Ontwaken
Theme URI: https://ontwaken-gemeente.nl
Author: Gemeente Ontwaken
Description: Thema voor kerkgemeente Ontwaken — warm, hoopvol design rond het thema eindtijd en verwachting.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ontwaken
*/

/* ==========================================================================
   Ontwaken — kerkwebsite over de eindtijd
   Design tokens
   ========================================================================== */

:root {
  /* Kleuren */
  --cream:      #F7F2E8;   /* achtergrond */
  --cream-2:    #F1EADA;   /* iets dieper, voor kaarten */
  --ink:        #2B2620;   /* hoofdtekst */
  --ink-soft:   #5B5346;   /* secundaire tekst */
  --dusk:       #2E3A55;   /* diepe avondblauw — nav/footer */
  --dusk-2:     #3C4B6B;   /* lichtere avondtint voor verlopen */
  --dawn-gold:  #D3A15C;   /* opkomend licht — accent */
  --dawn-gold-soft: #E8C892;
  --sage:       #7E8F72;   /* hoop / nieuw begin */
  --rose-mist:  #E7D6C8;   /* zachte kaartrand */
  --line:       #DDD2BE;

  /* Typografie */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0 ;
  background: var(--cream-2);
  color: var(--dusk);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
	  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
 
html {
  background: #FFFFFF;
}

main,
main#main {
  flex: 1 0 auto;
}

footer.site-footer {
  flex-shrink: 0;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  color: var(--dusk);
}

h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: inline-block;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.narrow { max-width: 720px; }

/* -- Signature device: de "dageraadlijn" ------------------------------- */
.dawnline {
  height: 3px;
  width: 100%;
  border: none;
  background: linear-gradient(90deg, var(--dusk) 0%, var(--dawn-gold) 55%, var(--dawn-gold-soft) 100%);
  margin: 0;
}

.dawnline--section {
  height: 2px;
  width: 64px;
  background: linear-gradient(90deg, var(--dusk), var(--dawn-gold));
  border: none;
  margin: 0 0 1.4em 0;
}

/* -- Navigatie ----------------------------------------------------------- */
header.site-header {
  background: var(--dusk);
  color: var(--cream);
}

.nav-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dawn-gold);
  display: inline-block;
  transform: translateY(-2px);
}

.brand .brand-logo {
  height: 100px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.0rem;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  opacity: 0.85;
  transition: opacity 0.15s, border-color 0.15s;
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible {
  opacity: 1;
  border-bottom-color: var(--dawn-gold);
}

nav.main-nav a.active {
  opacity: 1;
  border-bottom-color: var(--dawn-gold);
}

/* -- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--dusk) 0%, var(--dusk-2) 55%, var(--dawn-gold) 145%);
  color: var(--cream);
  overflow: hidden;
  padding: 0;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0px 28px 0px 28px;
  position: relative;
  z-index: 2;
}


.hero h1 { color: var(--dawn-gold); max-width: 720px; transform: translateY(40px) translateX(150px); }

.hero .lede {
  max-width: 560px;
  font-size: 1.12rem;
  color: #EDE6D6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: 1;
}

@media (max-width: 600px) {
  .hero-inner {
    padding-top: 4px;
  }

  .hero h1 {
    transform: translateY(5px);
  }
}
@media (max-width: 600px) {
  .hero h1 {
    margin-bottom: -1em;
  }
}

/* -- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--dawn-gold);
  color: var(--dusk);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(211, 161, 92, 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(247, 242, 232, 0.5);
}
.btn-ghost:hover { border-color: var(--cream); }

.btn-dark {
  background: var(--dusk);
  color: var(--cream);
}
.btn-dark:hover { box-shadow: 0 6px 18px rgba(46, 58, 85, 0.3); }

/* -- Sections ------------------------------------------------------------ */
section { padding: 40px 0; }
section.tight { padding: 56px 0; }
section.on-cream-2 { background: var(--cream-2); }

.section-head {
  max-width: 620px;
  margin-bottom: 46px;
}

/* -- Cards grid ------------------------------------------------------ */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream);
  border: 1px solid var(--rose-mist);
  border-radius: var(--radius);
  padding: 30px;
}

.card h3 { margin-bottom: 0.5em; }

.card .meta {
  font-size: 0.82rem;
  color: var(--sage);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.7em;
}

/* -- Quote / verse block ------------------------------------------------- */
.verse {
  border-left: 3px solid var(--dawn-gold);
  padding: 6px 0 6px 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--dusk);
  margin: 1.6em 0;
}
.verse cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 10px;
  font-weight: 600;
}

/* -- Lists / info rows ---------------------------------------------------- */
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--ink-soft); }
.info-row .value { font-weight: 600; color: var(--dusk); text-align: right; }

/* -- Footer --------------------------------------------------------------- */
footer.site-footer {
  background: var(--dusk);
  color: #C9D0DE;
  padding: 56px 0 30px 0;
}

footer.site-footer h4 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 0.9em;
}

footer.site-footer a {
  color: #C9D0DE;
  text-decoration: none;
  font-size: 0.92rem;
}
footer.site-footer a:hover { color: var(--dawn-gold); }

footer.site-footer {
  text-align: center;
}

.footer-links {
  align-items: center;
}

.footer-bottom {
  justify-content: center;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid p { color: #AEB6C7; font-size: 0.92rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.8rem;
  color: #8D97AC;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

/* -- Forms ----------------------------------------------------------------- */
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dusk);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--rose-mist);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--dawn-gold);
}

/* -- Utility --------------------------------------------------------- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dusk);
  background: var(--dawn-gold-soft);
  padding: 5px 12px;
  border-radius: 100px;
  margin-right: 8px;
  margin-bottom: 8px;
}

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

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

/* ==========================================================================
   WordPress-specifieke aanvullingen
   ========================================================================== */

/* Admin bar ruimte */
body.admin-bar header.site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar header.site-header { top: 46px; }
}

/* Gutenberg content styling binnen .entry-content */
.entry-content > * { max-width: 720px; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote {
  border-left: 3px solid var(--dawn-gold);
  padding: 5px 0 6px 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--dusk);
  margin: 1.6em 0;
}
.entry-content figure { margin: 1.6em 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-block-columns { gap: 24px; }
.entry-content .wp-block-column {
  background: var(--cream-2);
  border: 1px solid var(--rose-mist);
  border-radius: var(--radius);
  padding: 26px;
}
.entry-content > .tvdt-block {
  max-width: 100%;
}
/* Alignment helpers */
.alignwide { max-width: 900px; }
.alignfull { max-width: none; width: 100%; }

/* Page hero (gebruikt op elke pagina behalve home) */
.page-hero .hero-inner { padding-bottom: 70px; }

header.site-header {
  background: var(--dusk);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 200px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--dusk);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 999;
}
.wpcf7 {
  margin-left: 30px;
}
.skip-link:focus { left: 10px; top: 10px; }

