/*
Theme Name: Studio Vincentia
Theme URI: https://studiovincentia.nl
Author: Studio Vincentia
Description: Custom thema voor Studio Vincentia — dansstudio voor openingsdansen bij bruiloften, gala's en events. Warme kleuren, vloeiende lijnen en veel ruimte voor beeld en video.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: studio-vincentia
*/

/* ==========================================================================
   1. Basis & variabelen
   ========================================================================== */
:root {
  --sv-ink: oklch(28% .02 40);
  --sv-cream: oklch(96.5% .018 78);
  --sv-cream-dark: oklch(92% .02 60);
  --sv-card: oklch(98.5% .01 78);
  --sv-border: oklch(88% .02 60);
  --sv-terracotta: oklch(55% .13 15);
  --sv-terracotta-dark: oklch(42% .11 15);
  --sv-blush: oklch(93% .015 70);
  --sv-max-width: 1216px;
  --sv-radius: 4px;
  --sv-font-heading: 'Cormorant Garamond', Georgia, serif;
  --sv-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Kleine, uppercase label boven koppen — zet via het blok-veld "Extra CSS-klasse(n)" in Gutenberg */
.sv-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sv-terracotta);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sv-font-body);
  color: var(--sv-ink);
  background: var(--sv-cream);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* Koppen gebruiken het sans-serif lettertype (net als de referentiesite); Cormorant Garamond
   is bewust gereserveerd voor het logo en citaten (zie .sv-logo-text / .wp-block-quote). */
h1, h2, h3, h4,
.wp-block-heading {
  font-family: var(--sv-font-body);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sv-ink);
}

h1 em, h2 em, h3 em, h4 em,
.wp-block-heading em {
  color: var(--sv-terracotta);
  font-style: italic;
}

h1 { font-size: clamp(2.4rem, 4vw + 1rem, 4.2rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.75rem); margin: 3rem 0 1rem; }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); }

p, li { font-size: 1.05rem; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ==========================================================================
   2. Layout helpers
   ========================================================================== */
.sv-content-wrap {
  max-width: var(--sv-max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.sv-container {
  width: 100%;
  max-width: var(--sv-max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.sv-main {
  min-height: 40vh;
  position: relative;
}

/* ==========================================================================
   3. Header & navigatie
   ========================================================================== */
.sv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--sv-cream) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sv-border);
  transition: box-shadow 0.3s ease;
}

/* Houd rekening met de WordPress-adminbalk (alleen zichtbaar voor ingelogde gebruikers),
   anders schuift die met een hoger z-index over de (gekrompen) sticky header heen. */
.admin-bar .sv-header { top: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar .sv-header { top: 46px; }
}

.sv-header-inner {
  max-width: var(--sv-max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: padding 0.25s ease;
}

/* Compactere header na scrollen (max. 1-2 regels) voor betere leesbaarheid */
.sv-header.is-scrolled {
  box-shadow: 0 4px 16px color-mix(in oklab, var(--sv-ink) 8%, transparent);
}

.sv-header.is-scrolled .sv-header-inner {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  gap: 1.25rem;
}

.sv-header.is-scrolled .sv-logo-text { font-size: 1rem; }

.sv-header.is-scrolled .sv-logo img,
.sv-header.is-scrolled .sv-logo .custom-logo {
  height: 32px;
  max-height: 32px;
  width: auto;
}

.sv-header.is-scrolled .sv-nav-menu { gap: 1.1rem; }
.sv-header.is-scrolled .sv-nav-menu a { padding: 0.3rem 0.6rem; font-size: 0.92rem; }

.sv-header.is-scrolled .sv-nav-cta {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

.sv-nav-menu,
.sv-nav-menu a,
.sv-nav-cta {
  transition: gap 0.2s ease, padding 0.2s ease, font-size 0.2s ease;
}

.sv-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  margin-right: auto;
  min-width: 0;
}

.sv-logo a { display: inline-flex; text-decoration: none; }

.sv-logo-text {
  font-family: var(--sv-font-heading);
  font-size: 1.4rem;
  color: var(--sv-ink);
  transition: font-size 0.25s ease;
}

.sv-logo img,
.sv-logo .custom-logo {
  height: 56px;
  width: auto;
  max-width: 180px;
  max-height: 56px;
  object-fit: contain;
  transition: height 0.25s ease, max-height 0.25s ease;
}

@media (max-width: 480px) {
  .sv-logo img,
  .sv-logo .custom-logo {
    height: 42px;
    max-height: 42px;
    max-width: 130px;
  }
}

.sv-logo-text em {
  color: var(--sv-terracotta);
  font-style: normal;
}

.sv-nav-menu {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.sv-nav-menu li {
  flex-shrink: 0;
}

.sv-nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: color-mix(in oklab, var(--sv-ink) 80%, transparent);
  padding: 0.5rem 0.2rem;
  transition: color 0.2s ease;
}

.sv-nav-menu a:hover,
.sv-nav-menu a:focus-visible {
  color: var(--sv-terracotta);
}

.sv-nav-cta {
  background: var(--sv-terracotta-dark);
  color: #fff !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sv-nav-cta:hover { background: var(--sv-terracotta); transform: translateY(-1px); }

.sv-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sv-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--sv-ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobiel menu */
@media (max-width: 860px) {
  .sv-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--sv-cream);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .sv-nav.is-open { max-height: 400px; }
  .sv-nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
  }
  .sv-nav-menu li { border-bottom: 1px solid var(--sv-cream-dark); }
  .sv-nav-menu a { display: block; padding: 0.85rem 0; }

  /* Header-rij mag wrappen zodat logo en hamburger nooit over elkaar/de rand heen gaan */
  .sv-header-inner { flex-wrap: wrap; row-gap: 0.75rem; }
  .sv-nav-toggle { display: flex; order: 0; margin-left: 0; }
  .sv-logo { order: 1; margin-right: auto; margin-left: 0.9rem; }

  /* "Boek een intake" verdwijnt uit de header op mobiel — de vaste knoppenbalk onderaan het scherm dekt dit al */
  .sv-nav-cta { display: none; }
  .sv-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .sv-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .sv-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   4. Hero (featured image banner)
   ========================================================================== */
.sv-hero-image {
  position: relative;
  width: 100%;
  max-height: 560px;
  overflow: hidden;
}

.sv-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   5. Content: koppen, kolommen, knoppen, quotes (Gutenberg-blokken)
   ========================================================================== */
.wp-block-columns { gap: 2rem; align-items: stretch; }

.wp-block-column {
  background: var(--sv-card);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 1.75rem;
  transition: border-color 0.25s ease;
}

.wp-block-column:hover {
  border-color: color-mix(in oklab, var(--sv-terracotta) 50%, var(--sv-border));
}

@media (max-width: 781px) {
  .wp-block-columns { flex-wrap: wrap; }
  .wp-block-column { flex-basis: 100% !important; }
}

.wp-block-button__link,
.wp-element-button {
  background: var(--sv-terracotta-dark);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  background: var(--sv-terracotta);
  transform: translateY(-2px);
}

.wp-block-buttons { gap: 1rem; flex-wrap: wrap; }

.wp-block-quote {
  background: var(--sv-card);
  border-left: 2px solid var(--sv-terracotta);
  border-radius: var(--sv-radius);
  padding: 1.5rem 1.75rem;
  margin: 0;
  font-family: var(--sv-font-heading);
  font-style: italic;
}

.wp-block-quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sv-terracotta-dark);
  margin-top: 0.5rem;
}

.wp-block-list li { margin-bottom: 0.6rem; }

.sv-entry-content a:not(.wp-element-button) {
  color: var(--sv-terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Video-embeds (YouTube via oEmbed / core embed-blok) altijd volledig responsive */
.wp-block-embed__wrapper,
.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--sv-radius);
}

.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper embed,
.wp-block-embed__wrapper object {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.wp-block-embed { margin: 2.5rem 0; }
.wp-block-embed.alignwide,
.wp-block-embed.alignfull { max-width: 100%; }

/* Ruimte voor grote afbeeldingen */
.wp-block-image { margin: 2rem 0; }
.wp-block-image img { border-radius: var(--sv-radius); }
.wp-block-image.alignfull img,
.wp-block-image.alignwide img { border-radius: 0; }
.wp-block-gallery { margin: 2rem 0; }

/* ==========================================================================
   5b. Voorpagina — landingspagina-secties (front-page.php)
   ========================================================================== */
.sv-section { padding-block: 5rem; }
.sv-section--alt { background: var(--sv-card); border-block: 1px solid var(--sv-border); }
.sv-section-head { max-width: 42rem; }
.sv-lede { margin-top: 1.25rem; font-size: 1.1rem; max-width: 34rem; color: color-mix(in oklab, var(--sv-ink) 70%, transparent); }

/* Tekstvelden met enters/witregels (sv_e_rich): ruimte tussen alinea's die de gebruiker zelf typt */
.sv-rich p + p { margin-top: 0.75em; }

.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sv-terracotta-dark);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sv-btn:hover { background: var(--sv-terracotta); transform: translateY(-2px); }

.sv-btn--outline { background: transparent; color: var(--sv-terracotta-dark); border-color: var(--sv-terracotta-dark); }
.sv-btn--outline:hover { background: var(--sv-terracotta-dark); color: #fff; }

.sv-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.sv-btn--outline-light:hover { background: #fff; color: var(--sv-terracotta-dark); }

/* Hero */
.sv-hero { display: grid; gap: 2.5rem; align-items: center; padding-block: 3rem 2rem; }
@media (min-width: 768px) { .sv-hero { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.sv-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.sv-hero-media { position: relative; }
.sv-hero-media .sv-media-frame { aspect-ratio: 4 / 5; border-radius: var(--sv-radius); overflow: hidden; }
.sv-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.sv-hero-card {
  position: absolute;
  left: -1rem; bottom: -1.5rem;
  max-width: 220px;
  background: var(--sv-card);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 1.25rem;
  box-shadow: 0 10px 30px color-mix(in oklab, var(--sv-ink) 12%, transparent);
}
.sv-hero-card p { margin: 0; font-family: var(--sv-font-heading); font-style: italic; font-size: 1.1rem; line-height: 1.4; }
.sv-hero-card cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--sv-terracotta); }

@media (max-width: 767px) { .sv-hero-card { display: none; } }

/* Diensten (3-koloms grid) */
.sv-grid-4 { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 640px) { .sv-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sv-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.sv-service-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--sv-radius); margin-bottom: 1.25rem; }
.sv-service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sv-service:hover .sv-service-media img { transform: scale(1.05); }
.sv-service h3 { margin: 0; }
.sv-service p { margin-top: 0.5rem; color: color-mix(in oklab, var(--sv-ink) 70%, transparent); }

/* Team */
/* Flexibel: past zich vanzelf aan het aantal teamleden aan (zie het "Team"-onderdeel in wp-admin) */
.sv-team-grid { display: grid; gap: 3rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 768px) { .sv-team-grid { gap: 4rem; } }

.sv-team-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--sv-radius); margin-bottom: 1.5rem; }
.sv-team-media img { width: 100%; height: 100%; object-fit: cover; }
.sv-team-member h3 { margin: 0.5rem 0 0; }
.sv-team-member p { margin-top: 1rem; color: color-mix(in oklab, var(--sv-ink) 70%, transparent); }

.sv-pullquote {
  margin-top: 3rem;
  max-width: 44rem;
  font-family: var(--sv-font-heading);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.4;
}

/* Werkwijze */
.sv-process-grid { display: grid; gap: 1.5rem; margin-top: 3rem; list-style: none; padding: 0; margin-left: 0; }
@media (min-width: 640px) { .sv-process-grid { grid-template-columns: 1fr 1fr; } }

.sv-process-step { background: var(--sv-card); border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 2rem; }
.sv-process-step h3 { margin: 0; }
.sv-process-step p { margin-top: 0.75rem; color: color-mix(in oklab, var(--sv-ink) 70%, transparent); }

.sv-banner-media { margin-top: 3rem; aspect-ratio: 21 / 9; border-radius: var(--sv-radius); overflow: hidden; }
.sv-banner-media img { width: 100%; height: 100%; object-fit: cover; }

.sv-split { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .sv-split { grid-template-columns: 1fr 1fr; } }
.sv-split h3 { margin-top: 0.5rem; }
.sv-split p { margin-top: 0.75rem; color: color-mix(in oklab, var(--sv-ink) 70%, transparent); }

/* Pakketten */
.sv-pricing-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .sv-pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.sv-pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--sv-cream);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 2rem;
  transition: border-color 0.2s ease;
}
.sv-pricing-card:hover { border-color: color-mix(in oklab, var(--sv-terracotta) 50%, var(--sv-border)); }
.sv-pricing-card h3 { margin: 0.75rem 0 0; }
.sv-pricing-card > .sv-rich { margin-top: 0.75rem; color: color-mix(in oklab, var(--sv-ink) 70%, transparent); }

.sv-pricing-card--featured { background: var(--sv-terracotta-dark); color: #fff; border-color: var(--sv-terracotta-dark); }
.sv-pricing-card--featured > .sv-rich { color: rgba(255,255,255,0.85); }
.sv-pricing-card--featured .sv-pricing-tag { color: rgba(255,255,255,0.7); }
.sv-pricing-card--featured .sv-pricing-list li::before { color: rgba(255,255,255,0.7); }
.sv-pricing-card--featured .sv-pricing-cta { border-top-color: rgba(255,255,255,0.2); }

.sv-pricing-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--sv-terracotta); }

.sv-pricing-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.sv-pricing-list li { display: flex; gap: 0.5rem; }
.sv-pricing-list li::before { content: "\2014"; color: var(--sv-terracotta); }

.sv-pricing-cta { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--sv-border); }

/* Reviews */
.sv-review { display: grid; gap: 2rem; align-items: center; margin-top: 3rem; }
@media (min-width: 768px) { .sv-review { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.sv-review + .sv-review { margin-top: 4rem; }

@media (min-width: 768px) {
  .sv-review--reverse .sv-review-media { order: 2; }
  .sv-review--reverse .sv-review-body { order: 1; }
}

.sv-review-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--sv-radius); }
.sv-review-media img { width: 100%; height: 100%; object-fit: cover; }
.sv-review-mark { font-family: var(--sv-font-heading); color: var(--sv-terracotta); font-size: 3rem; line-height: 1; }
.sv-review-quote { font-family: var(--sv-font-heading); font-size: 1.4rem; line-height: 1.4; margin-top: 0.5rem; }
.sv-review-credit { display: inline-block; margin-top: 1.25rem; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sv-terracotta); }

/* Video's */
.sv-video-box { margin-top: 2rem; border: 1px dashed var(--sv-border); border-radius: var(--sv-radius); padding: 3rem; text-align: center; }
.sv-video-box .sv-video-title { font-family: var(--sv-font-heading); font-style: italic; font-size: 1.3rem; }
.sv-video-box .sv-video-desc { margin-top: 0.75rem; max-width: 28rem; margin-inline: auto; color: color-mix(in oklab, var(--sv-ink) 70%, transparent); }

.sv-video-embed {
  margin-top: 2rem;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--sv-radius);
  overflow: hidden;
  background: var(--sv-ink);
  box-shadow: 0 10px 30px color-mix(in oklab, var(--sv-ink) 15%, transparent);
}
.sv-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Belofte */
.sv-promise { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .sv-promise { grid-template-columns: 5fr 7fr; gap: 3.5rem; } }
.sv-promise-media { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--sv-radius); }
.sv-promise-media img { width: 100%; height: 100%; object-fit: cover; }
.sv-promise-quote { font-family: var(--sv-font-heading); font-size: 1.6rem; line-height: 1.4; }

/* Contact */
.sv-contact-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .sv-contact-grid { grid-template-columns: 2fr 3fr; gap: 3rem; } }

.sv-contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.sv-contact-info dd { margin: 0.4rem 0 0; font-size: 1.05rem; }
.sv-contact-info dd a:hover { color: var(--sv-terracotta); }
.sv-contact-info .sv-note { display: block; margin-top: 0.25rem; font-size: 0.85rem; color: color-mix(in oklab, var(--sv-ink) 65%, transparent); }

.sv-form { background: var(--sv-cream); border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 1.5rem; }
@media (min-width: 640px) { .sv-form { padding: 2rem; } }

/* Onzichtbaar honeypot-veld (zie functions.php) — nooit tonen aan echte bezoekers */
.sv-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact Form 7-opmaak laten aansluiten bij de rest van het design */
.sv-form .wpcf7-form p { margin: 0 0 1rem; }
.sv-form .wpcf7-form p:last-child { margin-bottom: 0; }

.sv-form .wpcf7-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; color: color-mix(in oklab, var(--sv-ink) 70%, transparent); }

.sv-form input.wpcf7-form-control,
.sv-form select.wpcf7-form-control,
.sv-form textarea.wpcf7-form-control {
  width: 100%;
  background: var(--sv-card);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--sv-ink);
}
.sv-form input.wpcf7-form-control:focus,
.sv-form select.wpcf7-form-control:focus,
.sv-form textarea.wpcf7-form-control:focus { outline: none; border-color: var(--sv-terracotta); }

.sv-form input.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sv-terracotta-dark);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.sv-form input.wpcf7-submit:hover { background: var(--sv-terracotta); transform: translateY(-2px); }

.sv-form .wpcf7-not-valid-tip { display: block; margin-top: 0.35rem; font-size: 0.8rem; color: #b3261e; }

.sv-form .wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--sv-radius);
  font-size: 0.9rem;
  border: 1px solid var(--sv-border);
  background: var(--sv-card);
}
.sv-form .wpcf7-form[data-status="mail-sent"] .wpcf7-response-output {
  background: color-mix(in oklab, var(--sv-terracotta) 12%, var(--sv-cream));
  color: var(--sv-terracotta-dark);
  border-color: transparent;
}
.sv-form .wpcf7-form[data-status="validation-failed"] .wpcf7-response-output,
.sv-form .wpcf7-form[data-status="mail-failed"] .wpcf7-response-output,
.sv-form .wpcf7-form[data-status="aborted"] .wpcf7-response-output,
.sv-form .wpcf7-form[data-status="spam"] .wpcf7-response-output {
  background: color-mix(in oklab, #b3261e 12%, var(--sv-cream));
  color: #8c1d17;
  border-color: transparent;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.sv-footer {
  background: var(--sv-cream);
  color: var(--sv-ink);
  border-top: 1px solid var(--sv-border);
  margin-top: 4rem;
}

.sv-footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 1.5rem 2.5rem;
}

@media (min-width: 768px) {
  .sv-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.sv-footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sv-footer-brand-row img,
.sv-footer-brand-row .custom-logo { height: 40px; width: auto; }

.sv-footer-brand {
  font-family: var(--sv-font-heading);
  font-size: 1.2rem;
}
.sv-footer-brand em { color: var(--sv-terracotta); font-style: normal; }

.sv-footer-desc {
  margin-top: 1rem;
  max-width: 26rem;
  font-size: 0.95rem;
  color: color-mix(in oklab, var(--sv-ink) 70%, transparent);
}

.sv-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.sv-footer-links a { color: var(--sv-ink); text-decoration: none; }
.sv-footer-links a:hover { color: var(--sv-terracotta); }

.sv-footer-bottom { border-top: 1px solid var(--sv-border); }

.sv-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.8rem;
  color: color-mix(in oklab, var(--sv-ink) 65%, transparent);
}

/* ==========================================================================
   6b. Vaste mobiele knoppenbalk (app-stijl)
   ========================================================================== */
.sv-mobile-bar {
  display: none;
}

@media (max-width: 860px) {
  .sv-mobile-bar {
    display: flex;
    gap: 0.6rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in oklab, var(--sv-cream) 96%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--sv-cream-dark);
    box-shadow: 0 -4px 16px color-mix(in oklab, var(--sv-ink) 8%, transparent);
  }

  /* Ruimte onderaan de pagina zodat de vaste balk niets bedekt */
  .sv-footer { padding-bottom: 4.25rem; }
}

.sv-mobile-bar-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sv-mobile-bar-btn--primary {
  background: var(--sv-terracotta-dark);
  color: #fff;
}

.sv-mobile-bar-btn--ghost {
  background: var(--sv-cream-dark);
  color: var(--sv-ink);
}

/* ==========================================================================
   7. Scroll-reveal animatie
   ========================================================================== */
.sv-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sv-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .sv-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   8. Toegankelijkheid
   ========================================================================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sv-terracotta);
  outline-offset: 2px;
}
