/*
Theme Name: Jolanda Huiberts Mondhygiëniste
Theme URI: https://www.jolandahuibertsmondhygieniste.nl
Author: Jolanda Huiberts
Description: Warm, persoonlijk thema voor Jolanda Huiberts Mondhygiëniste in Gorredijk.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: jolanda-huiberts
*/

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  --color-primary:   #132530;
  --color-secondary: #c61189;
  --color-tertiary:  #F2D6E6;
  --color-neutral:   #777778;
  --color-bg:        #fdf5f9;
  --color-white:     #ffffff;
  --font-display:    'Nunito', sans-serif;
  --font-body:       'Nunito Sans', sans-serif;
  --radius-btn:      50px;
  --max-width:       1200px;
  --shadow-card:     0 2px 16px rgba(198,17,137,0.07);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--color-tertiary); color: var(--color-primary); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .6rem; }
p  { font-size: 1rem; color: var(--color-neutral); line-height: 1.8; }

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: .75rem;
  display: block;
}

/* ─── Layout ────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 80px 0; }
.section--alt { background: var(--color-white); }
.section--dark { background: var(--color-primary); }
.section--pink { background: var(--color-bg); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .18s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(198,17,137,.2);
}
.btn-primary:hover {
  background: #a80e74;
  box-shadow: 0 6px 22px rgba(198,17,137,.35);
  transform: translateY(-1px);
  color: var(--color-white);
}
.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.btn-outline:hover { opacity: .8; }
.btn-white {
  background: var(--color-white);
  color: var(--color-secondary);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.btn-white:hover { transform: scale(1.04); }

/* ─── Navigation ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,245,249,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-tertiary);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(19,37,48,.06); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 2rem;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img,
.site-logo .custom-logo { height: 48px; width: auto; display: block; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-menu li a {
  font-size: .93rem;
  font-weight: 600;
  color: var(--color-primary);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}
.nav-cta { margin-left: .5rem; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: .2s;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  display: flex;
  min-height: 560px;
}
.hero__content {
  flex: 1;
  background: var(--color-tertiary);
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero__content h1 { margin-bottom: 1.25rem; color: var(--color-primary); }
.hero__content h1 span { color: var(--color-secondary); }
.hero__content p { font-size: 1.05rem; color: var(--color-primary); opacity: .75; max-width: 460px; margin-bottom: 2.25rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero__image {
  width: 420px;
  flex-shrink: 0;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__pixel-deco {
  position: absolute;
  bottom: -20px;
  right: -12px;
  opacity: .22;
  pointer-events: none;
}

/* ─── Pixel grid decoration (SVG inline) ───────────────── */
.pixel-grid { display: block; }

/* ─── Service Cards ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(198,17,137,.13);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.service-card h3 { color: var(--color-primary); }

/* ─── About Section ─────────────────────────────────────── */
.about-flex {
  display: flex;
  gap: 4.5rem;
  align-items: center;
}
.about-photo {
  width: 300px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-tertiary);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-content { flex: 1; }
.about-content h2 { margin-bottom: .75rem; }
.about-content p { margin-bottom: 1rem; }
.badge-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; margin-bottom: 2rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--color-white);
  border: 1px solid var(--color-tertiary);
  border-radius: 10px;
  padding: .5rem 1rem;
}
.badge__icon {
  width: 30px;
  height: 30px;
  background: var(--color-tertiary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 900;
  color: var(--color-primary);
  font-family: monospace;
  flex-shrink: 0;
}
.badge span { font-size: .75rem; color: var(--color-neutral); }

/* ─── Werkwijze ─────────────────────────────────────────── */
.werkwijze-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
}
.werkwijze-step {
  padding: 0 2rem 0 0;
  border-left: 1px solid var(--color-tertiary);
  padding-left: 2rem;
}
.werkwijze-step:first-child { border-left: none; padding-left: 0; }
.werkwijze-step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-tertiary);
  line-height: 1;
  margin-bottom: .75rem;
}
.werkwijze-step h3 { color: var(--color-primary); }

/* ─── CTA Band ──────────────────────────────────────────── */
.cta-band {
  background: var(--color-secondary);
  padding: 64px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: var(--color-white); margin-bottom: .5rem; }
.cta-band p  { color: rgba(255,255,255,.8); }

/* ─── Praktijk ──────────────────────────────────────────── */
.praktijk-flex { display: flex; gap: 4.5rem; align-items: flex-start; }
.praktijk-info { flex: 1; }
.praktijk-info p { margin-bottom: 1rem; }
.praktijk-map {
  flex: 1;
  border-radius: 16px;
  background: var(--color-tertiary);
  min-height: 280px;
  overflow: hidden;
}
.praktijk-map iframe { width: 100%; height: 100%; border: none; min-height: 280px; border-radius: 16px; }
.openingstijden { margin: 1.5rem 0; }
.openingstijden__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-neutral);
  margin-bottom: .75rem;
}
.openingstijden__row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-tertiary);
  padding: .6rem 0;
  max-width: 300px;
}
.openingstijden__row span:first-child { color: var(--color-neutral); font-size: .95rem; }
.openingstijden__row span:last-child  { font-weight: 700; color: var(--color-primary); font-size: .95rem; }
.openingstijden__row.closed span:last-child { font-weight: 400; color: var(--color-neutral); }

/* ─── Contact Form ──────────────────────────────────────── */
.contact-flex { display: flex; gap: 4.5rem; align-items: flex-start; }
.contact-info { flex: 1; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-phone {
  background: var(--color-secondary);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
  color: var(--color-white);
}
.contact-phone p { color: rgba(255,255,255,.85); font-size: .9rem; margin-top: .4rem; }
.contact-address {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}
.contact-address p { font-size: .95rem; line-height: 2; }
.contact-form { flex: 1; }

/* WP/CF7 form styles */
.wpcf7-form,
.contact-form-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label,
.wpcf7-form label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-neutral);
}
.form-group input,
.form-group textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--color-tertiary);
  border-radius: 10px;
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-white);
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--color-secondary); }
.form-group textarea,
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-submit { margin-top: .5rem; }

/* ─── Privacy Page ──────────────────────────────────────── */
.privacy-content { max-width: 780px; margin: 0 auto; }
.privacy-content h2 { margin-top: 2.5rem; margin-bottom: .75rem; font-size: 1.3rem; }
.privacy-content p { margin-bottom: 1rem; }

/* ─── Page Header ───────────────────────────────────────── */
.page-header {
  background: var(--color-tertiary);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-header__deco {
  position: absolute;
  right: 5%;
  top: 2rem;
  opacity: .2;
  pointer-events: none;
}
.page-header h1 { margin-bottom: .5rem; }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--color-primary); }
.footer-inner {
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand { }
.footer-logo { height: 48px; width: auto; filter: brightness(0) invert(.85); margin-bottom: 1.25rem; }
.footer-tagline { color: rgba(255,255,255,.5); font-size: .9rem; max-width: 300px; line-height: 1.9; }
.footer-badges { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-badge {
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  padding: .5rem .9rem;
  text-align: center;
}
.footer-badge span { display: block; font-family: monospace; font-size: .7rem; font-weight: 800; color: rgba(255,255,255,.7); }
.footer-badge small { font-size: .65rem; color: rgba(255,255,255,.4); }
.footer-grid--extra { grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-extra h4 { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.4); margin-bottom: 1rem; font-family: var(--font-body); }
.footer-extra__text { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.9; }
.footer-extra__text a { color: rgba(255,255,255,.7); text-decoration: underline; }

.footer-nav h4,
.footer-contact h4 {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.footer-nav ul li { margin-bottom: .4rem; }
.footer-nav ul li a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color .15s; }
.footer-nav ul li a:hover { color: var(--color-white); }
.footer-contact address { font-style: normal; color: rgba(255,255,255,.6); font-size: .9rem; line-height: 2; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.3); font-size: .82rem; text-decoration: underline; }

/* ─── WordPress extras ──────────────────────────────────── */
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .werkwijze-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .werkwijze-step { border-left: none; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; }
  .hero__image { width: 100%; height: 260px; }
  .hero__content { padding: 48px 24px; }
  .about-flex,
  .praktijk-flex,
  .contact-flex,
  .cta-band__inner { flex-direction: column; }
  .about-photo { width: 100%; max-width: 320px; align-self: center; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-tertiary); padding: 1.5rem 2rem; gap: 1rem; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .werkwijze-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
