/*
Theme Name: BabyTracker
Theme URI: https://baby-tracker.nl
Author: JR Online Media
Description: Officiële website van BabyTracker, de rustige baby-app voor Nederlandse ouders. Zelfde kleuren, typografie en toon als de app.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: babytracker
*/

/* =============================================================================
   Ontwerptokens, één-op-één uit de app (packages/ui/src/tokens/colors.ts)
   ========================================================================== */

/* Fraunces (SIL Open Font License), zelf gehost: het karaktervolle
   serif-lettertype voor koppen dat de site zijn eigen gezicht geeft. */
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --bw-tint-groen: #e6efeb;
  --bw-tint-perzik: #f9e9de;
  --bw-tint-lila: #ece7f3;
  --bw-tint-lucht: #e3edf4;
  --bw-tint-zand: #f3ecda;
  --bw-tint-roze: #f7e7ea;
  --bw-background: #fbf8f4;
  --bw-surface: #ffffff;
  --bw-surface-muted: #f3efe8;
  --bw-text: #211f1b;
  --bw-text-secondary: #635c51;
  --bw-text-on-accent: #ffffff;
  --bw-border: #e7e0d5;
  --bw-accent: #35655a;
  --bw-accent-soft: #e6efeb;
  --bw-accent-pressed: #274c44;
  --bw-warning-soft: #f6eede;
  --bw-warning: #8a6524;
  --bw-radius: 16px;
  --bw-radius-small: 10px;
  --bw-maxwidth: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bw-tint-groen: #223530;
    --bw-tint-perzik: #37291f;
    --bw-tint-lila: #2b2635;
    --bw-tint-lucht: #212c34;
    --bw-tint-zand: #322c1d;
    --bw-tint-roze: #34252a;
    --bw-tint-groen: #e6efeb;
    --bw-tint-perzik: #f9e9de;
    --bw-tint-lila: #ece7f3;
    --bw-tint-lucht: #e3edf4;
    --bw-tint-zand: #f3ecda;
    --bw-tint-roze: #f7e7ea;
    --bw-background: #15140f;
    --bw-surface: #1f1d18;
    --bw-surface-muted: #262320;
    --bw-text: #f3efe8;
    --bw-text-secondary: #aba49a;
    --bw-text-on-accent: #12201c;
    --bw-border: #3a362f;
    --bw-accent: #7fb0a4;
    --bw-accent-soft: #223530;
    --bw-accent-pressed: #9cc4ba;
    --bw-warning-soft: #33290f;
    --bw-warning: #d8b36a;
  }
}

/* =============================================================================
   Basis
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bw-background);
  color: var(--bw-text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bw-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--bw-accent-pressed);
}

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

h1,
h2,
.bw-logo {
  font-family: 'Fraunces', Georgia, serif;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 650;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 1.8em 0 0.5em;
}

h3 {
  font-size: 1.1rem;
  margin: 1.4em 0 0.4em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

.bw-wrap {
  max-width: var(--bw-maxwidth);
  margin: 0 auto;
  padding: 0 20px;
}

.bw-narrow {
  max-width: 720px;
}

/* =============================================================================
   Kop en navigatie
   ========================================================================== */

.bw-header {
  background: var(--bw-background);
  border-bottom: 1px solid var(--bw-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--bw-maxwidth);
  margin: 0 auto;
}

.bw-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bw-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bw-logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bw-accent);
  display: inline-block;
}

.bw-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.bw-nav a {
  color: var(--bw-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 2px;
}

.bw-nav a:hover,
.bw-nav a[aria-current='page'] {
  color: var(--bw-accent);
}

/* =============================================================================
   Held (homepagina)
   ========================================================================== */

.bw-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.bw-hero p.bw-tagline {
  font-size: 1.2rem;
  color: var(--bw-text-secondary);
  max-width: 560px;
  margin: 0 auto 1.6em;
}

.bw-badge {
  display: inline-block;
  background: var(--bw-accent-soft);
  color: var(--bw-accent);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.bw-button {
  display: inline-block;
  background: var(--bw-accent);
  color: var(--bw-text-on-accent);
  border-radius: 999px;
  padding: 14px 30px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  font-size: 1rem;
}

.bw-button:hover {
  background: var(--bw-accent-pressed);
  color: var(--bw-text-on-accent);
}

.bw-button-secondary {
  display: inline-block;
  border: 1.5px solid var(--bw-accent);
  color: var(--bw-accent);
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

/* =============================================================================
   Kaarten en secties
   ========================================================================== */

.bw-section {
  padding: 40px 0;
}

.bw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.bw-card {
  background: var(--bw-surface);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  padding: 26px;
}

.bw-card h3 {
  margin-top: 0;
}

.bw-card p {
  color: var(--bw-text-secondary);
  font-size: 0.97rem;
  margin-bottom: 0.6em;
}

.bw-card a.bw-more {
  font-size: 0.95rem;
  font-weight: 600;
}

.bw-note {
  background: var(--bw-warning-soft);
  color: var(--bw-warning);
  border-radius: var(--bw-radius-small);
  padding: 14px 18px;
  font-size: 0.95rem;
}

.bw-quiet {
  background: var(--bw-surface-muted);
  border-radius: var(--bw-radius);
  padding: 28px;
}

/* =============================================================================
   Inhoudspagina's
   ========================================================================== */

.bw-content {
  padding: 48px 0 64px;
}

.bw-content h1 {
  max-width: 720px;
}

.bw-content .bw-intro {
  font-size: 1.15rem;
  color: var(--bw-text-secondary);
  max-width: 720px;
}

.bw-content ul li {
  margin-bottom: 0.4em;
}

.bw-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.bw-content th,
.bw-content td {
  border: 1px solid var(--bw-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.bw-content th {
  background: var(--bw-surface-muted);
}

/* =============================================================================
   Voettekst
   ========================================================================== */

.bw-footer {
  border-top: 1px solid var(--bw-border);
  margin-top: 48px;
  padding: 40px 0 48px;
  font-size: 0.92rem;
  color: var(--bw-text-secondary);
}

.bw-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.bw-footer h4 {
  margin: 0 0 10px;
  color: var(--bw-text);
  font-size: 0.95rem;
}

.bw-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bw-footer li {
  margin-bottom: 6px;
}

.bw-footer a {
  color: var(--bw-text-secondary);
}

.bw-footer a:hover {
  color: var(--bw-accent);
}

.bw-footer .bw-legal-line {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--bw-border);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .bw-hero {
    padding: 48px 0 36px;
  }

  .bw-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================================================
   Herontwerp: hero met telefoon, secties met ritme, kaarten met iconen
   ========================================================================== */

.bw-eyebrow {
  display: inline-block;
  color: var(--bw-accent);
  font-weight: 650;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bw-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 48px;
}

.bw-hero-split h1 {
  max-width: none;
  margin: 0 0 0.4em;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  letter-spacing: -0.02em;
}

.bw-hero-split .bw-tagline {
  font-size: 1.15rem;
  color: var(--bw-text-secondary);
  margin: 0 0 1.4em;
  max-width: 34em;
}

.bw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.bw-hero-note {
  font-size: 0.85rem;
  color: var(--bw-text-secondary);
  margin-top: 14px;
}

/* De telefoon: de echte app in een kader, geen plaatje. */
.bw-phone-wrap {
  display: flex;
  justify-content: center;
}

.bw-phone {
  width: 320px;
  height: 660px;
  border-radius: 48px;
  border: 11px solid #23211c;
  background: #23211c;
  box-shadow:
    0 30px 60px -20px rgba(33, 31, 27, 0.35),
    0 12px 24px -12px rgba(33, 31, 27, 0.25);
  overflow: hidden;
  position: relative;
}

.bw-phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 37px;
  background: var(--bw-background);
  display: block;
}

.bw-phone-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--bw-text-secondary);
  margin-top: 14px;
}

/* Kaarten met icoon */
.bw-card .bw-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bw-accent-soft);
  color: var(--bw-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.bw-card .bw-icon svg {
  width: 22px;
  height: 22px;
}

/* Afwisselende sectie met beeld en tekst */
.bw-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 40px 0;
}

.bw-feature-row.bw-reverse > .bw-feature-media {
  order: 2;
}

.bw-feature-media .bw-phone {
  width: 280px;
  height: 578px;
}

.bw-checklist {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.bw-checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 0.7em;
}

.bw-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bw-accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335655a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Rustige afsluiter */
.bw-endcap {
  text-align: center;
  padding: 56px 32px;
  background: var(--bw-accent);
  color: var(--bw-text-on-accent);
  border-radius: var(--bw-radius);
  margin: 48px 0 8px;
}

.bw-endcap h2 {
  margin: 0 0 0.4em;
  color: inherit;
}

.bw-endcap p {
  color: inherit;
  opacity: 0.9;
  max-width: 36em;
  margin: 0 auto 1.4em;
}

.bw-endcap .bw-button {
  background: var(--bw-surface);
  color: var(--bw-accent);
}

@media (max-width: 860px) {
  .bw-hero-split,
  .bw-feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bw-feature-row.bw-reverse > .bw-feature-media {
    order: 0;
  }

  .bw-phone {
    width: 280px;
    height: 578px;
  }
}

/* FAQ-accordeon, blog en kruimelpad */
.bw-logo-mark {
  border-radius: 50%;
  display: block;
}

.bw-faq-blok {
  margin-top: 40px;
}

.bw-faq-item {
  background: var(--bw-surface);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-small);
  padding: 0;
  margin-bottom: 10px;
}

.bw-faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.bw-faq-item summary::-webkit-details-marker {
  display: none;
}

.bw-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bw-accent);
  font-size: 1.3rem;
  font-weight: 500;
}

.bw-faq-item[open] summary::after {
  content: '\2212';
}

.bw-faq-item p {
  padding: 0 18px 16px;
  margin: 0;
  color: var(--bw-text-secondary);
}

.bw-card h3 a {
  color: var(--bw-text);
  text-decoration: none;
}

.bw-card h3 a:hover {
  color: var(--bw-accent);
}

.bw-crumb {
  font-size: 0.85rem;
  color: var(--bw-text-secondary);
  margin-bottom: 4px;
}

.bw-content article p,
.bw-content .bw-wrap > p {
  max-width: 46em;
}

/* =============================================================================
   Premium details en de speelse functieblokken
   ========================================================================== */

.bw-card {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.bw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(33, 31, 27, 0.25);
}

.bw-button {
  box-shadow: 0 10px 22px -12px rgba(53, 101, 90, 0.55);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

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

.bw-hero-split {
  background:
    radial-gradient(48rem 30rem at 85% 0%, var(--bw-accent-soft) 0%, transparent 60%),
    radial-gradient(36rem 24rem at 0% 100%, var(--bw-tint-perzik) 0%, transparent 55%);
  border-radius: var(--bw-radius);
  padding: 56px 40px;
  margin-top: 24px;
}

/* Functieblokken: elk een eigen zachte kleur, groot icoon, punten en link */
.bw-tegels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin: 28px 0 8px;
}

.bw-tegel {
  border-radius: var(--bw-radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease;
}

.bw-tegel:hover {
  transform: translateY(-3px);
}

.bw-tegel .bw-icon {
  background: rgba(255, 255, 255, 0.65);
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bw-accent);
}

@media (prefers-color-scheme: dark) {
  .bw-tegel .bw-icon {
    background: rgba(0, 0, 0, 0.25);
    color: var(--bw-text);
  }
}

.bw-tegel .bw-icon svg {
  width: 24px;
  height: 24px;
}

.bw-tegel h2 {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.bw-tegel p {
  margin: 0;
  color: var(--bw-text-secondary);
}

.bw-tegel ul {
  margin: 6px 0 4px;
  padding-left: 0;
  list-style: none;
}

.bw-tegel li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--bw-text-secondary);
}

.bw-tegel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bw-accent);
  opacity: 0.6;
}

.bw-tegel a.bw-more {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 650;
}

.bw-tegel-groen {
  background: var(--bw-tint-groen);
}
.bw-tegel-perzik {
  background: var(--bw-tint-perzik);
}
.bw-tegel-lila {
  background: var(--bw-tint-lila);
}
.bw-tegel-lucht {
  background: var(--bw-tint-lucht);
}
.bw-tegel-zand {
  background: var(--bw-tint-zand);
}
.bw-tegel-roze {
  background: var(--bw-tint-roze);
}

.bw-duo-telefoons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  justify-items: center;
  padding: 40px 0 12px;
}

/* Schermafbeeldingen in het telefoonkader en de storebadges */
.bw-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 37px;
}

/* Het kader volgt de beeldverhouding van de schermafbeelding, zodat er
   nooit een rand van het scherm wordt afgesneden. */
.bw-phone {
  height: auto;
}

.bw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bw-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #211f1b;
  color: #fbf8f4;
  border-radius: 14px;
  padding: 10px 20px 10px 16px;
  text-decoration: none;
  line-height: 1.15;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.bw-store-badge:hover {
  transform: translateY(-1px);
  color: #fbf8f4;
  opacity: 0.92;
}

.bw-store-badge svg {
  width: 26px;
  height: 26px;
}

.bw-store-badge small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.8;
}

.bw-store-badge strong {
  font-size: 1.05rem;
}

.bw-endcap .bw-badges {
  justify-content: center;
}
