/*
Theme Name: Rijschool Apex
Theme URI: https://rijschoolapex.be
Author: Rijschool Apex
Author URI: https://rijschoolapex.be
Description: One-page theme voor Rijschool Apex – Bilzen / Hoeselt. Tesla of manuele Clio, persoonlijke rijlessen.
Version: 1.3.5
Requires at least: 6.0
Tested up to: 6.7
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: rijschool-apex
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --line: #d2d2d7;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Plus Jakarta Sans', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
nav.scrolled { border-bottom-color: var(--line); }

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.logo-text {
  line-height: 1;
}
.logo img.custom-logo {
  max-height: 36px;
  width: auto;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cta-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.75rem;
  box-shadow: 0 6px 28px rgba(0,0,0,0.07);
}

/* Logo left of hero title */
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  margin-bottom: 1.35rem;
  text-align: left;
}
.hero-title-row h1 {
  margin-bottom: 0;
  text-align: left;
}
.hero-logo-mark {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* Prominent brand moment between sections */
.brand-spotlight {
  display: flex;
  justify-content: center;
  padding: 0.5rem 1.5rem 0.25rem;
}
.brand-spotlight-logo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

@media (max-width: 860px) {
  .hero-title-row {
    gap: 0.95rem;
    margin-bottom: 1.15rem;
  }
  .hero-logo-mark {
    width: 80px;
    height: 80px;
  }
  .brand-spotlight-logo {
    width: 120px;
    height: 120px;
  }
  .cta-logo {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 480px) {
  .hero-title-row {
    flex-direction: column;
    text-align: center;
  }
  .hero-title-row h1 {
    text-align: center;
  }
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.45rem 1rem;
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ---------- HERO ---------- */
.hero {
  padding: 9.5rem 1.5rem 4rem;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 1.35rem;
}

.hero-lead {
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.45;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 4.5rem;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.95rem 1.75rem;
  border-radius: 980px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}
.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
}
.btn-secondary:hover {
  background: #e8e8ed;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s, gap 0.2s;
}
.btn-read-more:hover {
  color: var(--text);
  gap: 0.6rem;
}
.btn-read-more svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hero-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16/9;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- SECTION DIVIDERS ---------- */
/* Uniform vertical rhythm: the label sits with equal visual distance
   to the content that follows (new segment). Outside dividers sit
   between sections; inside dividers open a soft/gray block. */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.75rem 1.5rem 0;
  max-width: 920px;
  margin: 0 auto;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-divider span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Inside a soft/gray section – identical bottom spacing to content */
.section-divider--inside {
  padding: 3.75rem 1.5rem 0;
}
.section-divider--inside span {
  color: #5a5a5e;
  background: var(--bg-soft);
  padding: 0 0.85rem;
}

/* ---------- SECTIONS ---------- */
/* Consistent top padding after any divider (= distance label → content) */
section {
  padding: 2.75rem 1.5rem 5.5rem;
}
/* Gray blocks: divider is the first child, so zero extra top padding */
.cars,
.traject {
  padding-top: 0;
  padding-bottom: 5.5rem;
}
/* After an inside-divider the first .wrap needs the same 2.75rem gap */
.cars > .wrap,
.traject > .wrap {
  padding-top: 2.75rem;
}
.wrap {
  max-width: 920px;
  margin: 0 auto;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 3.5rem;
}

/* ---------- CARS ---------- */
.cars {
  background: var(--bg-soft);
}

.car {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5.5rem;
}
.car:last-of-type { margin-bottom: 0; }
.car.reverse { direction: rtl; }
.car.reverse > * { direction: ltr; }

.car-visual {
  border-radius: 18px;
  overflow: hidden;
  background: #e8e8ed;
  aspect-ratio: 4/3;
}
.car-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.car-price {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
}
.car-price span {
  font-weight: 400;
  color: var(--muted);
  font-size: 1rem;
}

.car-body > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.car-body ul {
  list-style: none;
  margin-bottom: 1.75rem;
}
.car-body li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.975rem;
  color: var(--text);
}
.car-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}
.link:hover { gap: 0.55rem; }

.cars-note {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- HERMAN ---------- */
.herman-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.herman-photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #e8e8ed;
}
.herman-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.herman-body p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  max-width: 420px;
}

.herman-facts {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.herman-facts span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- TRAJECT ---------- */
.traject {
  background: var(--bg-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.75rem;
}

.step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}
.step h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform 0.25s ease, background 0.2s;
}
.faq-icon::before {
  top: 9px; left: 3px;
  width: 14px; height: 2px;
}
.faq-icon::after {
  top: 3px; left: 9px;
  width: 2px; height: 14px;
}
.faq-item.open .faq-icon::after {
  transform: scaleY(0);
}
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
  background: var(--accent);
}

.faq-answer {
  display: none;
  padding: 0 0 1.35rem 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ---------- REVIEWS ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.review {
  padding: 2.25rem;
  background: var(--bg-soft);
  border-radius: 16px;
}
.review p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.35rem;
  color: var(--text);
}
.review-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 7.5rem 1.5rem;
  background: var(--bg-soft);
}
.cta h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}
.cta p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto 2.25rem;
  line-height: 1.45;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 1.5rem 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}
footer a:hover { color: var(--text); }

.footer-bottom {
  max-width: 920px;
  margin: 2.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  nav { padding: 0 1.25rem; }

  .hero { padding: 7.5rem 1.25rem 3.5rem; }
  .hero-actions { margin-bottom: 3.5rem; }

  section { padding: 2.25rem 1.25rem 4.5rem; }
  .cars,
  .traject { padding-top: 0; padding-bottom: 4.5rem; }
  .cars > .wrap,
  .traject > .wrap { padding-top: 2.25rem; }
  .section-divider,
  .section-divider--inside { padding: 3rem 1.25rem 0; }

  .car,
  .car.reverse,
  .herman-grid,
  .steps,
  .reviews-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .car { margin-bottom: 4rem; }
  .herman-grid { gap: 2.5rem; }
  .steps { gap: 1.75rem; }
  .cta { padding: 5.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.6rem; }
  .btn { width: 100%; }
  .hero-actions-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-read-more { justify-content: center; }
}

/* ---------- INNER PAGES (Lesvoorwaarden e.d.) ---------- */
.page-content {
  padding: 7.5rem 1.5rem 5rem;
}
.page-wrap {
  max-width: 720px;
}
.page-header {
  margin-bottom: 2.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.page-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1.35rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}
.page-header .section-title {
  margin-bottom: 0.85rem;
}
.page-meta {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 2.5rem;
}

.legal-block {
  margin-bottom: 2.25rem;
}
.legal-block h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.legal-block p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}
.legal-block p:last-child {
  margin-bottom: 0;
}
.legal-block ul {
  list-style: none;
  margin: 0.75rem 0 1rem;
}
.legal-block li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
}
.legal-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-block a {
  color: var(--accent);
  text-decoration: none;
}
.legal-block a:hover {
  text-decoration: underline;
}
.legal-block strong {
  color: var(--text);
  font-weight: 600;
}

.legal-closing {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.legal-closing p {
  color: var(--text);
  font-size: 1.05rem;
}
.legal-contact {
  margin-top: 1.5rem !important;
  font-size: 0.95rem !important;
  color: var(--muted) !important;
  line-height: 1.6;
}
.legal-contact a {
  color: var(--accent);
  text-decoration: none;
}
.legal-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .page-content {
    padding: 6.5rem 1.25rem 4rem;
  }
}



/* Mobile navigation: reveal the site links behind an accessible menu button. */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  nav { height: 56px; }
  .nav-cta { margin-left: auto; margin-right: 0.5rem; padding: 0.4rem 0.8rem; }
  .menu-toggle { display: inline-flex; position: relative; z-index: 102; flex: 0 0 44px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li + li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 0.85rem 0; color: var(--text); font-size: 1rem; }
}
