/*
Theme Name: Tarifi
Theme URI: https://www.tarifi.nl
Author: Tarifi
Author URI: https://www.tarifi.nl
Description: Marketingwebsite-thema voor Tarifi, offertesoftware voor cursus- en reisaanbieders. Bevat een homepage, functiepagina, tarievenpagina, over-onspagina en contactpagina.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tarifi
*/

/* ==========================================================================
   0. Variabelen & basis reset
   ========================================================================== */
:root {
  --tf-navy: #12163A;
  --tf-navy-2: #1B2150;
  --tf-teal: #17B3A3;
  --tf-teal-dark: #0E8F82;
  --tf-coral: #FF6A4D;
  --tf-coral-dark: #E8552F;
  --tf-bg: #F6F7FB;
  --tf-white: #FFFFFF;
  --tf-text: #1F2333;
  --tf-text-light: #5B607A;
  --tf-border: #E4E7F0;
  --tf-radius-lg: 20px;
  --tf-radius: 14px;
  --tf-radius-sm: 8px;
  --tf-shadow: 0 10px 30px rgba(18, 22, 58, 0.08);
  --tf-shadow-lg: 0 20px 50px rgba(18, 22, 58, 0.14);
  --tf-container: 1160px;
  --tf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--tf-font);
  color: var(--tf-text);
  background: var(--tf-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--tf-teal-dark); text-decoration: none; }
a:hover { color: var(--tf-coral); }

h1, h2, h3, h4 {
  font-family: var(--tf-font);
  color: var(--tf-navy);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 16px; color: var(--tf-text-light); }

ul { padding-left: 0; list-style: none; margin: 0; }

button { font-family: var(--tf-font); cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--tf-container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--tf-navy); color: var(--tf-white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--tf-white); }
.section--dark .eyebrow { color: var(--tf-teal); }
.section--muted { background: var(--tf-bg); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tf-teal-dark);
  background: rgba(23, 179, 163, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   1. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--tf-coral);
  color: var(--tf-white);
  box-shadow: 0 12px 24px rgba(255, 106, 77, 0.28);
}
.btn--primary:hover { background: var(--tf-coral-dark); color: var(--tf-white); }

.btn--secondary {
  background: transparent;
  color: var(--tf-navy);
  border-color: var(--tf-border);
}
.btn--secondary:hover { border-color: var(--tf-navy); color: var(--tf-navy); }

.btn--on-dark {
  background: transparent;
  color: var(--tf-white);
  border-color: rgba(255,255,255,0.35);
}
.btn--on-dark:hover { border-color: var(--tf-white); color: var(--tf-white); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }

/* ==========================================================================
   2. Header / navigatie
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Bewust een dekkende achtergrond i.p.v. backdrop-filter/blur: dat laatste
     zorgt op mobiel (Safari/Chrome) dat een position:fixed-nakomeling (het
     mobiele uitklapmenu) niet meer t.o.v. het scherm maar t.o.v. deze (76px
     hoge) header wordt gepositioneerd, waardoor het menu bijna geen hoogte
     krijgt in plaats van het hele scherm te vullen. */
  background: var(--tf-white);
  border-bottom: 1px solid var(--tf-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--tf-navy); }
.site-logo:hover { color: var(--tf-navy); }
.site-logo img, .site-logo svg { height: 32px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav .mobile-actions { display: none; }
.main-nav a {
  color: var(--tf-text);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 10px 16px;
  border-radius: 999px;
}
.main-nav a:hover { background: var(--tf-bg); color: var(--tf-navy); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn--secondary { border-color: transparent; }

/* NL/EN-taalwisselaar in de header (zie inc/i18n.php, tarifi_lang_switcher()) */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tf-bg); }
.lang-switch a { padding: 5px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--tf-text-light); }
.lang-switch a.is-active { background: var(--tf-white); color: var(--tf-navy); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.main-nav .mobile-actions .lang-switch { align-self: flex-start; margin-bottom: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tf-navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ==========================================================================
   3. Hero
   ========================================================================== */
.hero {
  padding: 76px 0 60px;
  background:
    radial-gradient(circle at 85% 0%, rgba(23, 179, 163, 0.14), transparent 45%),
    radial-gradient(circle at 0% 20%, rgba(255, 106, 77, 0.10), transparent 40%),
    var(--tf-bg);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy p.lead { font-size: 1.15rem; color: var(--tf-text-light); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 0.85rem; color: var(--tf-text-light); }

.hero-visual {
  background: var(--tf-white);
  border-radius: var(--tf-radius-lg);
  box-shadow: var(--tf-shadow-lg);
  padding: 28px;
  border: 1px solid var(--tf-border);
}
.hero-visual .mock-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--tf-border); }
.hero-visual .mock-row:last-child { border-bottom: none; }
.hero-visual .mock-title { font-weight: 700; color: var(--tf-navy); font-size: 0.95rem; }
.hero-visual .mock-sub { font-size: 0.8rem; color: var(--tf-text-light); }
.mock-badge { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.mock-badge--ok { background: rgba(23,179,163,0.14); color: var(--tf-teal-dark); }
.mock-badge--pending { background: rgba(255,106,77,0.14); color: var(--tf-coral-dark); }
.mock-badge--sent { background: rgba(27,33,80,0.08); color: var(--tf-navy); }

/* ==========================================================================
   4. Trustbar
   ========================================================================== */
.trustbar { padding: 28px 0; border-bottom: 1px solid var(--tf-border); }
.trustbar p { text-align: center; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tf-text-light); margin-bottom: 18px; }
.trustbar-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.7; font-weight: 700; color: var(--tf-text-light); }

/* ==========================================================================
   5. Feature grids & cards
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--tf-white);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  padding: 32px;
  box-shadow: var(--tf-shadow);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(23,179,163,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--tf-border); }
.feature-row:last-child { border-bottom: none; }
.feature-row.is-reverse .feature-copy { order: 2; }
.feature-row.is-reverse .feature-visual { order: 1; }
.feature-copy .eyebrow { margin-bottom: 14px; }
.feature-list { margin-top: 20px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--tf-text); font-weight: 500; }
.feature-list li svg { flex: none; margin-top: 3px; color: var(--tf-teal-dark); }

.feature-visual {
  background: var(--tf-bg);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 32px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-visual .stat { text-align: center; }
.feature-visual .stat strong { display: block; font-size: 2.6rem; color: var(--tf-navy); font-weight: 800; }
.feature-visual .stat span { color: var(--tf-text-light); font-size: 0.95rem; }

/* ==========================================================================
   6. Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats strong { display: block; font-size: 2.2rem; color: var(--tf-navy); font-weight: 800; }
.stats span { color: var(--tf-text-light); font-size: 0.9rem; }

/* ==========================================================================
   6b. Procesvergelijking (traditioneel vs. Tarifi) + stappenstrip
   ========================================================================== */
.process-compare { text-align: left; }
.process-compare .process-flow { color: var(--tf-text-light); font-size: 0.95rem; line-height: 1.7; margin-top: 8px; }
.process-compare--tarifi { border-color: var(--tf-teal); background: rgba(23, 179, 163, 0.06); }
.process-compare--tarifi .process-flow { color: var(--tf-navy); font-weight: 500; }
.process-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.process-step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 0.85rem; color: var(--tf-text); }
.process-step-num { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tf-navy); color: var(--tf-white); font-weight: 700; font-size: 0.9rem; }

/* ==========================================================================
   7. Testimonials
   ========================================================================== */
.testimonial { background: var(--tf-white); border: 1px solid var(--tf-border); border-radius: var(--tf-radius); padding: 28px; box-shadow: var(--tf-shadow); }
.testimonial p.quote { color: var(--tf-navy); font-size: 1.02rem; font-weight: 500; margin-bottom: 20px; }
.testimonial .person { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--tf-navy-2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.testimonial .who strong { display: block; font-size: 0.9rem; color: var(--tf-navy); }
.testimonial .who span { font-size: 0.8rem; color: var(--tf-text-light); }

/* ==========================================================================
   8. Pricing
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--tf-white);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--featured {
  border-color: var(--tf-navy);
  box-shadow: var(--tf-shadow-lg);
  transform: translateY(-8px);
}
.price-card .badge {
  position: absolute;
  top: -14px; left: 30px;
  background: var(--tf-coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-card h3 { margin-bottom: 6px; }
.price-card .price-tagline { color: var(--tf-text-light); font-size: 0.9rem; margin-bottom: 20px; }
.price-card .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.price-card .price strong { font-size: 2.4rem; color: var(--tf-navy); font-weight: 800; }
.price-card .price span { color: var(--tf-text-light); font-size: 0.9rem; }
.price-card .price-features { margin-bottom: 28px; flex-grow: 1; }
.price-card .price-features li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.92rem; color: var(--tf-text); }
.price-card .price-features li svg { flex: none; margin-top: 2px; color: var(--tf-teal-dark); }
.price-note { text-align: center; margin-top: 32px; color: var(--tf-text-light); font-size: 0.9rem; }

/* Uitbreidingen (branchemodules/integraties): bewust visueel lichter dan de abonnementscards
   hierboven, kleiner "+"-bedrag i.p.v. een grote prijs, geen badge/featured-styling. */
.module-price-card { text-align: left; }
.module-price-card .module-price,
.feature-copy .module-price {
  font-weight: 800;
  color: var(--tf-navy);
  font-size: 1.05rem;
  margin: 2px 0 12px;
}

/* ==========================================================================
   9. FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--tf-border); padding: 6px 0; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--tf-navy);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--tf-text-light); font-weight: 400; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* ==========================================================================
   10. CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--tf-navy) 0%, var(--tf-navy-2) 100%);
  border-radius: var(--tf-radius-lg);
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .hero-cta { justify-content: center; }

/* ==========================================================================
   11. Contactformulier
   ========================================================================== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info-card { background: var(--tf-bg); border-radius: var(--tf-radius); padding: 32px; border: 1px solid var(--tf-border); }
.contact-info-card ul li { margin-bottom: 16px; }
.contact-info-card ul li strong { display: block; color: var(--tf-navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--tf-navy); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-sm);
  font-family: var(--tf-font);
  font-size: 0.96rem;
  background: var(--tf-white);
  color: var(--tf-text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--tf-teal);
  box-shadow: 0 0 0 3px rgba(23,179,163,0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-notice { padding: 14px 18px; border-radius: var(--tf-radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.form-notice--success { background: rgba(23,179,163,0.12); color: var(--tf-teal-dark); }
.form-notice--error { background: rgba(255,106,77,0.12); color: var(--tf-coral-dark); }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: var(--tf-navy); color: rgba(255,255,255,0.8); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .site-logo { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ==========================================================================
   13. Overige paginakoppen (Functies, Over ons, etc.)
   ========================================================================== */
.page-hero { padding: 64px 0 48px; background: var(--tf-bg); text-align: center; }
.page-hero .eyebrow { }
.page-hero p.lead { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.team-note { background: var(--tf-bg); border: 1px dashed var(--tf-border); border-radius: var(--tf-radius); padding: 28px; text-align: center; color: var(--tf-text-light); }

.team-card { text-align: center; }
.team-card .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--tf-navy-2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin: 0 auto 16px; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { display: block; font-size: 0.85rem; color: var(--tf-teal-dark); font-weight: 600; margin-bottom: 12px; }
.team-card p { color: var(--tf-text-light); font-size: 0.92rem; }

/* Zichtbare "nog niet juridisch getoetst"-melding bovenaan de juridische pagina's
   (algemene voorwaarden, privacyverklaring, verwerkersovereenkomst) */
.legal-notice { background: #FFF7ED; border: 1px solid #FDBA74; border-radius: var(--tf-radius); padding: 18px 22px; margin-bottom: 32px; font-size: 0.95rem; color: #7C2D12; }
.legal-notice strong { display: block; margin-bottom: 4px; }

/* Basistypografie voor lange juridische tekst */
.legal-content h2 { margin-top: 40px; }
.legal-content h3 { margin-top: 28px; }
.legal-content p, .legal-content li { color: var(--tf-text); }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 12px 0; }
.legal-content li { margin-bottom: 6px; }

/* ==========================================================================
   14. Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  /* Kop en tekst eerst, voorbeeldkaart daarna (volgt de HTML-volgorde) */
  .grid--3, .grid--4, .pricing-grid, .contact-wrap, .footer-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.is-reverse .feature-copy { order: 1; }
  .feature-row.is-reverse .feature-visual { order: 2; }
  .price-card--featured { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }

  /* Op smalle schermen concentreren de radial-gradients (die op desktop
     subtiel zijn over een brede 1160px-container) zich te veel, waardoor de
     hero-achtergrond te roze/verzadigd oogt. Vervang door de vlakke basiskleur. */
  .hero { background: var(--tf-bg); padding: 48px 0 36px; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--tf-white); flex-direction: column; align-items: stretch; padding: 20px; transform: translateY(-110%); transition: transform 0.25s ease; overflow-y: auto; z-index: 99; }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; }
  .header-actions { display: none; }
  .main-nav .mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--tf-border); }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4, .pricing-grid, .contact-wrap, .footer-grid, .values-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 40px 24px; }
  .section { padding: 48px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .price-card--featured { order: -1; }

  .hero-visual { padding: 20px; }
  .hero-visual .mock-row { flex-wrap: wrap; row-gap: 6px; padding: 14px 0; }
  .hero-visual .mock-row > div:first-child { flex: 1 1 100%; }
  .hero-visual .mock-title { font-size: 0.9rem; }
}
