/*
Theme Name: Ernica Mediation & Coaching
Description: Custom theme voor ernica.nl
Author: Caroline Oudakker-Kalis
Version: 1.0.0
Text Domain: ernica
*/

/* ── TOKENS ────────────────────────────────── */
:root {
  --navy:    #002d5c;
  --blue:    #004a97;
  --steel:   #2f7fd1;
  --pale:    #d7e6f5;
  --surface: #FFFFFF;
  --ground:  #eef4fa;
  --border:  #b9d0e8;
  --ink:     #0c1a2b;
  --muted:   #435a75;
  --radius:  6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy:    #001a33;
    --blue:    #2266b8;
    --steel:   #4a97e8;
    --pale:    #0a2340;
    --surface: #0e1e33;
    --ground:  #071426;
    --border:  #183454;
    --ink:     #e2ecf7;
    --muted:   #8aa6c2;
  }
}
:root[data-theme="dark"] {
  --navy:    #001a33;
  --blue:    #2266b8;
  --steel:   #4a97e8;
  --pale:    #0a2340;
  --surface: #0e1e33;
  --ground:  #071426;
  --border:  #183454;
  --ink:     #e2ecf7;
  --muted:   #8aa6c2;
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.25rem; }

/* WordPress (classic theme zonder theme.json) wikkelt elk Group-blok in een
   extra .wp-block-group__inner-container div. Die neutraliseren we hier zodat
   onze eigen grid/flex-classes weer rechtstreeks op hun kind-elementen werken. */
.wp-block-group__inner-container { display: contents; }

/* ── NAV ────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 2px solid var(--blue);
  padding: 0 2.5rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-fallback {
  font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 1rem;
  color: var(--blue); letter-spacing: 0.03em; line-height: 1.1;
  display: none;
}
.nav-logo-fallback small { font-weight: 600; font-size: 0.6em; letter-spacing: 0.1em; display: block; color: var(--muted); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  color: var(--muted); letter-spacing: 0.02em; transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-sw { display: flex; gap: 3px; }
.lang-btn {
  padding: 3px 8px; border: 1px solid var(--border);
  background: none; cursor: pointer;
  font-size: 0.68rem; font-weight: 700; font-family: 'Barlow', sans-serif;
  color: var(--muted); border-radius: 3px;
  transition: all 0.15s; letter-spacing: 0.08em; text-decoration: none; display: inline-block;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 22px; height: 2px; background: var(--blue); border-radius: 2px; display: block; }

/* ── HERO ───────────────────────────────────── */
#home {
  background: linear-gradient(150deg, #1f6fd6 0%, var(--blue) 55%, var(--navy) 100%);
  padding: 5.5rem 2rem 5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
#home::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.eyebrow-pill {
  display: inline-block;
  font-family: 'Barlow', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.3rem 1rem; border-radius: 2px;
  margin-bottom: 1.5rem;
}
#home h1 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.015em; text-wrap: balance;
  color: #fff; margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.02rem; color: rgba(255,255,255,0.88);
  max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.btn {
  display: inline-block; padding: 0.7rem 1.9rem;
  border-radius: 3px; font-size: 0.86rem; font-weight: 700;
  font-family: 'Barlow', sans-serif; letter-spacing: 0.05em;
  text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--pale); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.hero-inner .wp-block-buttons { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }

/* ── SECTIONS ───────────────────────────────── */
section { padding: 5rem 2rem; }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }
.sec-hd { margin-bottom: 3rem; }
.sec-hd.centered { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: block; font-family: 'Barlow', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 0.55rem;
}
h1, h2, h3, h4 { font-family: 'Barlow', sans-serif; color: var(--navy); font-weight: 800; }
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-wrap: balance; letter-spacing: -0.015em;
  line-height: 1.15; margin-bottom: 0.65rem;
}
h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.sec-sub { font-size: 0.97rem; color: var(--muted); max-width: 560px; }
.sec-sub.centered { margin-left: auto; margin-right: auto; }
p { margin-bottom: 1rem; }
.wrap-narrow p, .wrap-narrow li { color: var(--muted); }
.wrap-narrow h1 { color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
.wrap-narrow h2 { margin-top: 2rem; }
.wrap-narrow h3 { margin-top: 1.5rem; }

/* ── TOPIC CARDS (mediation / coaching) ──────── */
#expertise { background: var(--ground); }
.topic-block + .topic-block { margin-top: 3rem; }
.topic-block > h3 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 1.1rem;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.topic-card {
  background: var(--blue); color: #fff;
  border-radius: var(--radius); padding: 1.5rem;
  height: 100%; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.topic-card:hover { box-shadow: 0 8px 26px rgba(0,74,151,0.35); transform: translateY(-2px); }
.topic-card h4 { color: #fff; font-size: 0.98rem; margin-bottom: 0.5rem; }
.topic-card h4 a { color: #fff; text-decoration: none; }
.topic-card p { color: rgba(255,255,255,0.85); font-size: 0.85rem; line-height: 1.55; flex-grow: 1; }
.topic-more { margin-top: auto; padding-top: 0.5rem; }
.topic-more a { color: #fff; font-size: 0.82rem; font-weight: 700; text-decoration: underline; }

/* ── ABOUT ──────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 230px 1fr;
  gap: 3.5rem; align-items: start;
}
.photo-wrap { position: relative; padding: 10px; border: 2px solid var(--border); border-radius: 50%; width: 210px; }
.photo-wrap .wp-block-image { margin: 0; }
.photo-wrap img, .photo-wrap .wp-block-image img {
  width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 50%; display: block;
}
.about-text p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.9rem; }
.about-sub { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.about-sub h4 { color: var(--navy); margin-top: 1.1rem; }
.about-sub p { margin-bottom: 0.5rem; }
.about-links { margin-top: 1.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.about-links a { color: var(--blue); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.about-links a:hover { text-decoration: underline; }

/* ── BADGES / MEMBERSHIPS ────────────────────── */
#erkenningen { background: var(--ground); }
.badges-row {
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center;
}
.badges-row img {
  max-height: 64px; width: auto; object-fit: contain;
}
.badges-row .wp-block-image { margin: 0; }

/* ── CONTACT ────────────────────────────────── */
#contact { background: var(--navy); }
#contact .eyebrow { color: var(--steel); }
#contact h2 { color: #fff; }
#contact .sec-sub { color: rgba(255,255,255,0.55); }
.ct-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; }
.ct-item { display: flex; gap: 1rem; align-items: flex-start; }
.ct-ico {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ct-ico svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ct-label {
  font-family: 'Barlow', sans-serif; font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 0.2rem;
}
.ct-val { font-size: 0.9rem; color: #fff; }
.ct-val a { color: #fff; text-decoration: none; }
.ct-val a:hover { text-decoration: underline; }

/* ── CONTACT FORM (Contact Form 7) ───────────── */
.ct-form .wpcf7-form-control-wrap { display: block; }
.ct-form label,
.ct-form p {
  display: block; font-family: 'Barlow', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}
.ct-form p:has(input, textarea, .wpcf7-form-control-wrap) { margin-bottom: 1rem; }
.ct-form p:has(input[type="submit"]) { text-transform: none; }
.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form input[type="tel"],
.ct-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2); background: #fff;
  color: var(--navy); font-family: 'Inter', sans-serif; font-size: 0.88rem;
}
.ct-form input::placeholder, .ct-form textarea::placeholder { color: rgba(0,45,92,0.45); }
.ct-form input:focus, .ct-form textarea:focus { outline: 2px solid var(--steel); outline-offset: 1px; background: #fff; }
.ct-form textarea { min-height: 120px; resize: vertical; }
.ct-form input[type="submit"] {
  background: var(--steel); color: #fff; border: none;
  padding: 0.75rem 2rem; border-radius: 3px; font-size: 0.86rem; font-weight: 700;
  font-family: 'Barlow', sans-serif; letter-spacing: 0.05em; cursor: pointer; transition: background 0.2s;
}
.ct-form input[type="submit"]:hover { background: #4a97e8; }
.ct-form .req-star { color: #ff5c5c; }
.ct-form .wpcf7-not-valid-tip { color: #ffb4b4; font-size: 0.78rem; margin-top: 0.3rem; }
.ct-form .wpcf7-response-output { color: #fff; border-color: rgba(255,255,255,0.3) !important; font-size: 0.85rem; margin-top: 1rem; border-radius: 4px; }

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: #001729;
  color: rgba(255,255,255,0.35);
  text-align: center; padding: 1.2rem 2rem;
  font-size: 0.73rem; letter-spacing: 0.03em;
}
footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 2px solid var(--blue); padding: 1.25rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  section { padding: 3.5rem 1.25rem; }
  #home { padding: 3.5rem 1.25rem 3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .photo-wrap { margin: 0 auto; }
  .ct-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topic-grid { grid-template-columns: 1fr 1fr; }
}

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
