:root {
  --primary: #ea8362;
  --accent: #ffd2a6;
  --background: #c8b6f4;
  --text: #222;
  --font-body: 'Saira Semi Condensed', sans-serif;
  --font-headings: 'Saira Semi Condensed', sans-serif;

  /* Font-size variabelen voor consistentie */
  --font-size-base: 1rem;
  --font-size-large: 1.2rem;
  --font-size-small: 0.95rem;
  --font-size-h1: 2rem;
  --font-size-h2: 1.75rem;
  --font-size-h3: 1.4rem;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  margin: 0;
  padding: 0;
  letter-spacing: 0.2px;
  line-height: 1.6;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: var(--font-size-base);
}

main {
  flex: 1;
}

h1, h2, h3 {
  font-family: var(--font-headings);
  color: #4a3f91;
  margin-top: 0;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: var(--font-size-h2);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: var(--font-size-h3);
  margin-bottom: 0.5rem;
}

/* Globale tekststijlen */
body, p, li, a, .about-text, .contact-card, .step p, .testimonial blockquote {
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.intro-text,
.how-it-works .intro-text {
  font-size: var(--font-size-large);
  line-height: 1.6;
}

main h1:first-of-type {
  margin-top: 30px;
}

.testimonial blockquote,
.step p {
  font-size: var(--font-size-small);
  line-height: 1.5;
}

.button {
  font-size: var(--font-size-base);
}

.contact-card h2 {
  font-size: var(--font-size-h2);
}

/* Navigatiebalk */
nav.main-nav {
  background-color: var(--primary);
  padding: 16px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

nav.main-nav li a {
  color: white;
  text-decoration: none;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: 8px 12px;
  position: relative;
  transition: color 0.3s ease;
}

nav.main-nav li a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav.main-nav li a:hover::after,
nav.main-nav li a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav.main-nav li a:hover {
  color: var(--accent);
}

/* Responsive nav */
@media (max-width: 768px) {
  nav.main-nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }
}

/* Container & main */
main, .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* About tekst */
.about-text {
  text-align: left;
  font-size: var(--font-size-base);
  max-width: 600px;
  margin-bottom: 2rem;
}

.intro-text,
.how-it-works .intro-text {
  text-align: center;
  font-size: var(--font-size-large);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Afbeeldingen */
img {
  margin-top: 20px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.home-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 10px auto;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.home-image.rond {
  border-radius: 3%;
}

/* Hero */
.hero {
  display: flex;
  justify-content: center; 
  align-items: center;     
  gap: 40px;
  padding: 20px 20px;
  text-align: center;     
  flex-wrap: wrap;        
}

.hero-text,
.hero-image {
  flex: 1 1 45%;         
  max-width: 500px;       
}

.hero-image {
  flex: 1 1 500px;
  max-width: 800px;     
  display: flex;
  justify-content: center;
}

.hero-image img.home-image {
  width: 100%;
  height: auto;
  max-height: 600px; 
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text,
  .hero-image {
    max-width: 90%;
  }
}

/* Button */
.button {
  background-color: var(--primary);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-size: var(--font-size-base);
}

.button:hover {
  background-color: #d96c48;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 20px 0;
  margin-top: 20px;
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.testimonial {
  position: relative;
  background: #ede9f8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 60px 25px 30px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: var(--font-size-base);
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.testimonial::before {
  content: "“";
  font-size: 6rem;
  color: #c8b6f4;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 100;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial blockquote {
  font-style: normal;
  color: #444;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testimonial .author {
  font-weight: bold;
  color: var(--primary);
  font-size: var(--font-size-base);
  margin-top: 15px;
  z-index: 1;
  position: relative;
}

.testimonial .subtitle {
  font-weight: normal;
  color: var(--primary);
  font-size: var(--font-size-base);
  margin-top: 0px;
  position: relative;
  z-index: 1;
}

/* Contactpagina */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 15px;
  text-align: center;
}

.contact-card {
  background-color: #ede9f8;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  margin-top: 15px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--font-size-base);
}

.contact-card h2 {
  font-family: var(--font-headings);
  color: var(--primary);
  font-size: var(--font-size-h2);
}

.contact-image-wrapper {
  display: flex;
  justify-content: center;
  margin: 15px 0 20px 0;
}

.contact-image-wrapper img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* About / Hero sectie */
.about-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 auto 3rem auto;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.about-text {
  flex: 1 1 60%;
  text-align: left;
  max-width: none;
}

.about-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
}

/* Hero specifiek */
.hero {
  justify-content: space-between;
  gap: 40px;
  padding: 30px 20px;
  text-align: left;
}

.hero-image img.home-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-image {
    justify-content: center;
    margin-top: 20px;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
  }

  .about-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .about-text {
    text-align: center;
    font-size: var(--font-size-base);
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
  }

  .about-text p {
    margin-bottom: 1rem;
  }

  .about-image {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .about-image img {
    max-width: 80%;
    height: auto;
    display: block;
  }

  .how-it-works-steps {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .home-image {
    max-width: 90%;
  }

  .testimonials {
    flex-direction: column;
    align-items: center;
  }

  .intro-text {
    padding: 0 20px;
  }
}

/* Logo */
.logo-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  display: block;
}

.logo {
  height: 20px;
  width: auto;
}

/* Uitdagingen lijst */
.challenges {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
  text-align: left;
}

.challenges h2 {
  color: #4a3f91;
  margin-bottom: 1.5rem;
  font-size: var(--font-size-h2);
  text-align: left;
}

.challenge-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.challenge-list li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 1.8rem;
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.challenge-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--primary);
  font-weight: bold;
  font-size: 1rem;
}

/* How it works*/

.how-it-works-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.step {
  flex: 1 1 45%;
  max-width: 280px;
  background: #ede9f8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: var(--font-size-base);
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.step img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.step h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: var(--font-size-h3);
}

.step p {
  font-size: var(--font-size-small);
  color: #444;
}

/* Responsive voor mobiel */
@media (max-width: 768px) {
  .how-it-works-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .step {
    flex: 1 1 100%;
    max-width: 90%;
  }
}

/* Afsluitende media query voor About afbeelding */
@media (max-width: 768px) {
  .about-image img {
    max-width: 80%;
  }
}