body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #e8eceb;
}

header {
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e09e50;
    height: 84px;
    
}

.header-left h1,
.header-left h2 {
    margin: 0;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 10px;
    }
}

.header-left h2 {
    font-size: 0.9rem;
    color: #666;
}

.contact-btn {
    padding: 8px 16px;
    background: #e09e50;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.contact-btn:hover {
    background: #e18f29;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

.container {
    display: flex;
    align-items: stretch;
    /* vertically centers content */
    justify-content: space-between;
    /* space between text and image */
    padding: 20px;
    gap: 20px;
    overflow: visible;
}

img {
    width: 100%;
    border-radius: 6px;
    margin-top: 10px;
}


.image {
    flex-shrink: 0;
    /* prevents image from shrinking */
    max-width: 600px;
    /* adjusts image size */
    height: auto;
    position: sticky;
  top: 20px;
}

.card-container {
    display: flex;
    margin: auto;
    padding: 5px 20px;
    justify-content: center;
    gap: 20px;
    width: 1350px;
    max-width: 100vw;
}

.card {
    background: white;
    flex: 1;
    /* all cards start equal size */
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.card.expanded {
    flex: 3;
    /* expanded card takes 3x space */
    height: 400px;
    z-index: 2;
}

.card-content.extra {
    display: none;
}

.text {
    position: sticky;
    top: 200px;
    /* height of your header */
    align-self: flex-start;
}

.card.expanded .card-content.extra {
    display: block;
    margin-top: 10px;
}

/* Optional: smooth text scaling */
.card-content {
    text-align: center;
    transition: all 0.3s ease;
}

.card img {
    width: 100%;
    /* scale image to card width */
    max-width: 200px;
    height: auto;
    /* maintain aspect ratio */
    flex-shrink: 0;
    /* prevent shrinking when card resizes */
    object-fit: cover;
    /* cover the width without distortion */
    max-height: 150px;
    /* fixed height so it doesn’t grow */
}


.scroll-content {
  flex: 1;          /* take remaining space */
}

.section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* left text, right image */
  align-items: center;
  min-height: 100vh;
  padding: 4rem;
  gap: 3rem;
}

/* Sticky sectietitel */
.section-title {
  position: sticky;
  top: 104px;                 /* exact de hoogte van de header */
  background: #8cbdb9;
  padding: 0.5rem 1rem;
  margin: 0;
  z-index: 900;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-basis: 100%; 
  text-align: center;
  font-weight: 700;
  color: #ffffff;
}

.section-text {
  text-align: left;
  line-height: 1.6;
  color: #374151;
}



/* Left text area */
.section-content {
  max-width: 560px;        /* keeps text readable */
}

/* Right image */
.section-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.card::after {
  content: "Tap for details";
  font-size: 0.75rem;
  color: #666;
}

/* =========================
   MOBILE RESPONSIVE FIXES
   ========================= */
@media (max-width: 768px) {

  /* Header */
  header {
    height: auto;
    padding: 12px;
    text-align: center;
  }

  .contact-btn {
    margin-top: 10px;
  }

  /* Stack text & image */
  .container {
    flex-direction: column;
    padding: 16px;
  }

  /* Disable sticky elements on mobile */
  .image,
  .text,
  .section-title {
    position: static;
  }

  /* Section titles */
  .section-title {
    font-size: 1.2rem;
    padding: 12px;
  }

  /* Cards */
  .card-container {
    flex-direction: column;
    width: 100%;
    padding: 16px;
  }

  .card {
    height: auto;
  }

  .card.expanded {
    height: auto;
  }

  .card-content.extra {
    display: block;
  }

  .card img {
    max-width: 140px;
    margin: 0 auto;
  }

  /* Improve text readability */
  body {
    font-size: 16px;
  }

  section {
    padding: 16px 0;
  }

  footer {
    text-align: center;
    padding: 16px;
    font-size: 0.9rem;
  }
}


