/*
Theme Name: voetjewell
Theme URI: https://voetjewell.nl
Author: BlueCT Site Factory
Description: Maatwerk klassiek PHP-thema voor Voet-je-well, mobiele pedicure aan huis. Layout in PHP, content in SCF-velden.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: voetjewell
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  /* Palette (brand) */
  --cream:        #F6F5EF;
  --tan:          #E3D4B8;
  --tan-2:        #CDC0A7;
  --taupe:        #8E8679;
  --sage:         #B2D4B7;
  --sage-deep:    #9CC4A2;
  --gold:         #A88A63;

  /* Text + contrast-safe tokens (all verified AA against their backgrounds) */
  --ink:          #2E2A24; /* body + headings on light bg (>=13:1 on cream) */
  --ink-strong:   #1F1B16; /* chip/badge text on gold fill (5.2:1) */
  --accent-text:  #6B5638; /* small accent/eyebrow text on light (6.4:1 on cream) */
  --dark:         #3A352E; /* dark band + footer bg (cream text 11:1) */

  /* Buttons */
  --btn-fill:     var(--sage);
  --btn-fill-hov: var(--sage-deep);
  --btn-label:    #2E2A24; /* dark label on sage (8.8:1) */

  /* Layout */
  --maxw:         1280px;
  --measure:      760px;
  --gutter:       clamp(1rem, 5vw, 2rem);
  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 10px 30px rgba(58, 53, 46, .10);
  --shadow-lg:    0 18px 50px rgba(58, 53, 46, .16);

  /* Type */
  --font-head:    "Yeseva One", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --reveal-y:     16px;
  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
p  { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--cream);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  color: var(--cream);
}
.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;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--cream { background: var(--cream); }
.section--tan   { background: var(--tan); }
.section--sage  { background: var(--sage); }
.section--dark  { background: var(--dark); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }

.section-head { max-width: 56ch; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: .9rem;
}
.section--dark .eyebrow { color: var(--sage); }
.lead { font-size: 1.15rem; color: var(--ink); }
.section--dark .lead { color: var(--cream); }

/* Long-form prose: 760px reading measure, CENTERED in its box, text left */
.prose--longform {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: left;
}
.prose--longform > * { text-align: left; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary { background: var(--btn-fill); color: var(--btn-label); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--btn-fill-hov); color: var(--btn-label); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.section--dark .btn--outline { color: var(--cream); border-color: var(--cream); }
.section--dark .btn--outline:hover { background: var(--cream); color: var(--ink); }
.btn .icon { width: 20px; height: 20px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 239, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(142, 134, 121, .25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.site-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.site-brand img { width: auto; height: 46px; }
.site-brand .brand-text { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); }

.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a:not(.btn) {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { border-bottom-color: var(--gold); color: var(--ink); }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
}
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(142, 134, 121, .25);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(142, 134, 121, .2); }
  .primary-nav a:not(.btn) { display: block; padding: .9rem 0; }
  .primary-nav .menu-cta { margin-top: 1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: linear-gradient(180deg, var(--cream), var(--tan) 140%); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-copy { max-width: 38rem; }
.hero-copy h1 { margin-bottom: .8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--gold);
  color: var(--ink-strong); /* near-black on gold fill = 5.2:1 */
  font-weight: 700;
  font-size: .9rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.badge .icon { width: 18px; height: 18px; }
.hero-badge-float {
  position: absolute;
  bottom: 1.25rem; left: -.5rem;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: .9rem 1.15rem;
  display: flex; align-items: center; gap: .7rem;
  max-width: 16rem;
  font-size: .95rem;
}
.hero-badge-float .icon { width: 30px; height: 30px; color: var(--gold); flex: 0 0 auto; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-badge-float { left: .5rem; }
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--cream);
  border: 1px solid rgba(142, 134, 121, .25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.section--tan .card { background: #FCFBF7; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--sage);
  color: var(--ink); /* icon on sage 8.8:1 */
  margin-bottom: 1.1rem;
}
.card-icon .icon { width: 28px; height: 28px; }

/* Service list rows */
.service-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.4rem;
  background: #FCFBF7;
  border: 1px solid rgba(142, 134, 121, .22);
  border-radius: var(--radius);
}
.service-row .row-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--tan); color: var(--accent-text);
}
.service-row .row-icon .icon { width: 24px; height: 24px; }
.service-row h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.service-row p { margin: 0; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--gold); color: var(--ink-strong);
  font-family: var(--font-head); font-size: 1.25rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; }

/* Media + text split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 5 / 4; }
.split--reverse .split-media { order: 2; }

.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { width: 22px; height: 22px; color: var(--accent-text); flex: 0 0 auto; margin-top: .15rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-detail { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.contact-detail li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-detail .icon { width: 24px; height: 24px; color: var(--accent-text); flex: 0 0 auto; margin-top: .2rem; }
.contact-detail a { color: var(--accent-text); }
.contact-detail a:hover { color: var(--ink); }
.contact-card {
  background: #FCFBF7;
  border: 1px solid rgba(142, 134, 121, .25);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
.form-placeholder {
  border: 2px dashed var(--taupe);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--ink);
  background: var(--cream);
}

/* CTA band */
.cta-band { text-align: center; }
.cta-band .container { max-width: 52rem; }
.cta-band .btn { margin-top: 1.6rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: var(--cream); padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--sage); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 48px; width: auto; margin-bottom: 1rem; }
.footer-brand .brand-text { font-family: var(--font-head); font-size: 1.4rem; color: var(--cream); display: block; margin-bottom: .75rem; }
.footer-col h3 { color: var(--cream); font-size: 1.15rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { width: 20px; height: 20px; color: var(--sage); flex: 0 0 auto; margin-top: .2rem; }
.footer-cta { margin-top: 1.25rem; }
/* Re-assert button label so footer's generic a-color cannot clobber it */
.site-footer .btn--primary { color: var(--btn-label); }
.site-footer .btn--primary:hover { color: var(--btn-label); }

.social-row { display: flex; gap: .65rem; margin-top: 1.1rem; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px;
  background: rgba(246, 245, 239, .12);
  color: var(--cream);
}
.social-row a:hover { background: var(--sage); color: var(--ink); }
.social-row .icon { width: 20px; height: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(246, 245, 239, .18);
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--cream);
}

/* ==========================================================================
   404 / generic page
   ========================================================================== */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
.error-404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.page-body { padding-block: clamp(2.5rem, 6vw, 5rem); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  .grid--3, .grid--2, .split, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .split--reverse .split-media { order: -1; }
  .section-head { text-align: left; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   Reduced motion — cut all motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* === FORMINATOR FORM (theme-native styling) === */
.forminator-ui.forminator-custom-form { font-family: var(--font-body); color: var(--ink); }
.forminator-custom-form .forminator-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.forminator-custom-form .forminator-col { flex: 1 1 220px; }
.forminator-custom-form .forminator-label,
.forminator-custom-form label { font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .35rem; display: inline-block; }
.forminator-custom-form .forminator-input,
.forminator-custom-form input[type="text"],
.forminator-custom-form input[type="email"],
.forminator-custom-form input[type="tel"],
.forminator-custom-form input[type="url"],
.forminator-custom-form input[type="number"],
.forminator-custom-form textarea,
.forminator-custom-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(142, 134, 121, .45);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.forminator-custom-form textarea { min-height: 140px; resize: vertical; }
.forminator-custom-form .forminator-input:focus,
.forminator-custom-form input:focus,
.forminator-custom-form textarea:focus,
.forminator-custom-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 138, 99, .18);
}
.forminator-custom-form .forminator-button,
.forminator-custom-form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  background: var(--btn-fill); color: var(--btn-label);
  border: 2px solid transparent; border-radius: 999px;
  padding: .9rem 1.8rem; cursor: pointer; box-shadow: var(--shadow);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.forminator-custom-form .forminator-button:hover,
.forminator-custom-form button[type="submit"]:hover {
  background: var(--btn-fill-hov); color: var(--btn-label); transform: translateY(-2px);
}
.forminator-custom-form .forminator-label--required,
.forminator-custom-form .forminator-required { color: var(--accent-text); }
.forminator-custom-form .forminator-error-message { color: #9a2c2c; font-size: .9rem; }
.forminator-custom-form .forminator-success,
.forminator-custom-form .forminator-response-message { border-radius: var(--radius); padding: 1rem 1.25rem; }
/* === /FORMINATOR FORM === */
