/*
Theme Name:   Solvian Academy
Theme URI:    https://www.solvian.nl
Description:  Child theme voor veiligheidsopleidingen — VCA, BHV, Heftruck. Gebouwd op Kadence. Volledig aanpasbaar via Elementor.
Author:       IT-Legends
Author URI:   https://www.it-legends.nl
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  solvian-academy
*/

/* ─── Design tokens — worden overschreven door plug-in instellingen ─── */
:root {
  --sa-primary:   #0A2540;
  --sa-accent:    #E67E22;
  --sa-light:     #f8f9fa;
  --sa-border:    #e5e7eb;
  --sa-text:      #1a1a2e;
  --sa-muted:     #6b7280;
  --sa-white:     #ffffff;
  --sa-radius:    6px;
  --sa-radius-lg: 10px;
  --sa-shadow:    0 2px 12px rgba(10,37,64,0.08);
  --sa-font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--sa-font);
  color: var(--sa-text);
  background: var(--sa-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sa-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--sa-primary);
  margin-top: 0;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-top: 0; margin-bottom: 1rem; }

/* ─── Layout helpers ─── */
.sa-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sa-section { padding: 60px 0; }
.sa-section--sm { padding: 36px 0; }
.sa-section--lg { padding: 80px 0; }

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

@media (max-width: 900px) {
  .sa-grid-4 { grid-template-columns: 1fr 1fr; }
  .sa-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sa-grid-4, .sa-grid-3, .sa-grid-2 { grid-template-columns: 1fr; }
  .sa-container { padding: 0 16px; }
}

/* ─── Buttons ─── */
.sa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--sa-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.sa-btn--primary {
  background: var(--sa-accent);
  color: var(--sa-white);
  border-color: var(--sa-accent);
}
.sa-btn--primary:hover {
  background: #cf6d17;
  border-color: #cf6d17;
  color: var(--sa-white);
  text-decoration: none;
  transform: translateY(-1px);
}
.sa-btn--outline {
  background: transparent;
  color: var(--sa-white);
  border-color: rgba(255,255,255,0.5);
}
.sa-btn--outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--sa-white);
  text-decoration: none;
}
.sa-btn--dark {
  background: var(--sa-primary);
  color: var(--sa-white);
  border-color: var(--sa-primary);
}
.sa-btn--dark:hover {
  background: #0d2f4f;
  color: var(--sa-white);
  text-decoration: none;
}
.sa-btn--sm { padding: 8px 16px; font-size: 0.8rem; }
.sa-btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ─── Topbar ─── */
.sa-topbar {
  background: var(--sa-primary);
  padding: 8px 0;
  font-size: 0.8rem;
}
.sa-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sa-topbar__left { display: flex; gap: 20px; }
.sa-topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
}
.sa-topbar__item a { color: rgba(255,255,255,0.7); }
.sa-topbar__item a:hover { color: white; text-decoration: none; }
.sa-topbar__rating {
  background: var(--sa-accent);
  color: white;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ─── Header ─── */
.sa-header {
  background: var(--sa-white);
  border-bottom: 3px solid var(--sa-accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sa-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.sa-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.sa-logo__mark {
  width: 44px;
  height: 44px;
  background: var(--sa-primary);
  border-radius: var(--sa-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sa-logo__mark img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sa-logo__text { font-size: 1.1rem; font-weight: 700; color: var(--sa-primary); line-height: 1.1; }
.sa-logo__sub { font-size: 0.7rem; color: var(--sa-muted); font-weight: 400; }
.sa-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sa-nav a {
  font-size: 0.9rem;
  color: var(--sa-text);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.sa-nav a:hover, .sa-nav .current-menu-item a {
  color: var(--sa-primary);
  border-bottom-color: var(--sa-accent);
}
.sa-header__cta { margin-left: 16px; }

/* ─── Hero ─── */
.sa-hero {
  background: var(--sa-primary);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.sa-hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230,126,34,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.sa-hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.sa-hero__kpis {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sa-hero__kpi {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}
.sa-hero__kpi strong { color: white; }
.sa-hero__kpi-icon { color: var(--sa-accent); font-size: 1rem; }
.sa-hero__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 14px;
}
.sa-hero__title span { color: var(--sa-accent); }
.sa-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  max-width: 440px;
  line-height: 1.7;
}
.sa-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Booking widget ─── */
.sa-booking-widget {
  background: white;
  border-radius: var(--sa-radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.sa-booking-widget__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sa-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-booking-widget__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: var(--sa-accent);
  border-radius: 2px;
}
.sa-booking-widget__steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.sa-step label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sa-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.sa-step select {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid var(--sa-border);
  border-radius: var(--sa-radius);
  font-size: 0.85rem;
  color: var(--sa-text);
  background: #fafafa;
  appearance: none;
  cursor: pointer;
}
.sa-step select:focus {
  outline: none;
  border-color: var(--sa-primary);
}
.sa-booking-widget__btn {
  width: 100%;
  background: var(--sa-accent);
  color: white;
  border: none;
  padding: 13px;
  border-radius: var(--sa-radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sa-booking-widget__btn:hover { background: #cf6d17; }
.sa-booking-widget__note {
  font-size: 0.75rem;
  color: var(--sa-muted);
  text-align: center;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.sa-booking-widget__note::before { content: '✓'; color: #27AE60; }

/* ─── USP bar ─── */
.sa-usp-bar {
  background: var(--sa-accent);
  padding: 0;
}
.sa-usp-bar__inner {
  display: flex;
}
.sa-usp {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.sa-usp:last-child { border-right: none; }
.sa-usp__icon { font-size: 1.5rem; color: white; flex-shrink: 0; }
.sa-usp__text { font-size: 0.8rem; color: rgba(255,255,255,0.9); line-height: 1.3; }
.sa-usp__text strong { display: block; font-size: 0.85rem; color: white; }

/* ─── Section header ─── */
.sa-section-header { margin-bottom: 36px; }
.sa-section-header--center { text-align: center; }
.sa-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sa-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.sa-section-title { margin-bottom: 8px; }
.sa-section-sub { font-size: 1rem; color: var(--sa-muted); max-width: 540px; }
.sa-section-header--center .sa-section-sub { margin: 0 auto; }

/* ─── Course cards ─── */
.sa-course-card {
  background: white;
  border: 1.5px solid var(--sa-border);
  border-radius: var(--sa-radius-lg);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.sa-course-card:hover {
  border-color: var(--sa-accent);
  box-shadow: var(--sa-shadow);
  transform: translateY(-2px);
}
.sa-course-card__top { padding: 16px; flex: 1; }
.sa-course-card__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cat--vca    { background: #EBF5FB; color: #1A5276; }
.cat--bhv    { background: #EAFAF1; color: #1E8449; }
.cat--ehbo   { background: #FEF9E7; color: #7D6608; }
.cat--heft   { background: #FEF3C7; color: #92400E; }
.cat--nen    { background: #F3E8FF; color: #6B21A8; }
.cat--overig { background: #F1F5F9; color: #475569; }

.sa-course-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sa-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.sa-course-card__meta { display: flex; flex-direction: column; gap: 4px; }
.sa-course-card__meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--sa-muted);
}
.sa-course-card__bottom {
  padding: 12px 16px;
  background: var(--sa-light);
  border-top: 1px solid var(--sa-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sa-course-card__price { font-size: 1.1rem; font-weight: 700; color: var(--sa-primary); }
.sa-course-card__price-sub { font-size: 0.7rem; color: var(--sa-muted); font-weight: 400; }

/* ─── Review card ─── */
.sa-review-card {
  background: white;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius-lg);
  padding: 20px;
}
.sa-review-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sa-review-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sa-primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sa-review-card__name { font-size: 0.9rem; font-weight: 600; color: var(--sa-text); }
.sa-review-card__role { font-size: 0.75rem; color: var(--sa-muted); }
.sa-review-card__stars { font-size: 0.9rem; color: #F39C12; margin-left: auto; }
.sa-review-card__text { font-size: 0.875rem; color: #444; line-height: 1.6; margin-bottom: 10px; }
.sa-review-card__footer { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--sa-muted); }
.sa-review-card__google { font-weight: 700; color: #4285F4; }

/* ─── CTA banner ─── */
.sa-cta-banner { background: var(--sa-primary); padding: 48px 0; }
.sa-cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.sa-cta-banner__title { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 6px; }
.sa-cta-banner__sub { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.sa-cta-banner__btns { display: flex; gap: 12px; flex-shrink: 0; }

/* ─── Trust badges ─── */
.sa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sa-light);
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sa-text);
}
.sa-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Stats ─── */
.sa-stat { text-align: center; }
.sa-stat__number { font-size: 2.5rem; font-weight: 800; color: var(--sa-primary); line-height: 1; }
.sa-stat__number span { color: var(--sa-accent); }
.sa-stat__label { font-size: 0.85rem; color: var(--sa-muted); margin-top: 4px; }

/* ─── Locatie kaart ─── */
.sa-location-card {
  background: white;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius-lg);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sa-location-card__icon {
  width: 40px; height: 40px;
  background: var(--sa-accent);
  border-radius: var(--sa-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: white;
}
.sa-location-card__city { font-size: 0.95rem; font-weight: 600; color: var(--sa-primary); margin-bottom: 2px; }
.sa-location-card__address { font-size: 0.8rem; color: var(--sa-muted); line-height: 1.5; }
.sa-location-card__courses { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.sa-location-card__course-tag {
  font-size: 0.7rem;
  background: var(--sa-light);
  border: 1px solid var(--sa-border);
  padding: 2px 7px;
  border-radius: 100px;
  color: var(--sa-muted);
}

/* ─── Footer ─── */
.sa-footer { background: #061929; }
.sa-footer__top { padding: 56px 0 40px; }
.sa-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.sa-footer__brand-name { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 10px; }
.sa-footer__brand-desc { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 16px; }
.sa-footer__col-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.sa-footer__link { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.5); padding: 3px 0; text-decoration: none; }
.sa-footer__link:hover { color: white; }
.sa-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sa-footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ─── Over ons pagina ─── */
.sa-team-card {
  background: white;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius-lg);
  overflow: hidden;
  text-align: center;
}
.sa-team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--sa-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--sa-muted);
}
.sa-team-card__body { padding: 16px; }
.sa-team-card__name { font-size: 1rem; font-weight: 600; color: var(--sa-primary); margin-bottom: 2px; }
.sa-team-card__role { font-size: 0.8rem; color: var(--sa-muted); }

/* ─── FAQ ─── */
.sa-faq-item {
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.sa-faq-item__q {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sa-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}
.sa-faq-item__q:hover { background: var(--sa-light); }
.sa-faq-item__a { padding: 0 20px 16px; font-size: 0.875rem; color: #444; line-height: 1.7; background: white; }

/* ─── Contact pagina ─── */
.sa-contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sa-text);
  margin-bottom: 5px;
}
.sa-contact-form input,
.sa-contact-form textarea,
.sa-contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--sa-border);
  border-radius: var(--sa-radius);
  font-size: 0.9rem;
  color: var(--sa-text);
  background: white;
  margin-bottom: 16px;
  font-family: var(--sa-font);
}
.sa-contact-form input:focus,
.sa-contact-form textarea:focus {
  outline: none;
  border-color: var(--sa-primary);
}
.sa-contact-form textarea { min-height: 120px; resize: vertical; }

/* ─── Page hero (inner pages) ─── */
.sa-page-hero {
  background: var(--sa-primary);
  padding: 48px 0;
}
.sa-page-hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sa-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.sa-page-hero__title { color: white; margin-bottom: 8px; }
.sa-page-hero__sub { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 540px; }

/* ─── Kadence overrides ─── */
.site-header { display: none !important; }
.site-footer { display: none !important; }
.entry-title { display: none !important; }
.wp-block-post-title { display: none !important; }

/* ─── Solvian shortcode wrapper ─── */
.sa-shortcode-wrapper {
  padding: 48px 0;
  background: var(--sa-light);
  min-height: 400px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .sa-hero__inner { grid-template-columns: 1fr; }
  .sa-booking-widget { max-width: 520px; }
  .sa-usp-bar__inner { flex-wrap: wrap; }
  .sa-usp { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .sa-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sa-cta-banner__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .sa-nav { display: none; }
  .sa-topbar__left { display: none; }
  .sa-hero { padding: 36px 0 32px; }
  .sa-booking-widget__steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sa-usp { flex: 1 1 100%; }
  .sa-footer__grid { grid-template-columns: 1fr; }
}

/* ─── Header knoppen gelijk op mobiel ─── */
@media (max-width: 768px) {
  .sa-header__cta {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sa-header__cta #sa-cart-btn,
  .sa-header__cta .sa-btn--sm {
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    border-radius: 6px !important;
    height: auto !important;
    line-height: 1 !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
  }
}
