/* ---------------------------
   MeeMetMij — Clean Responsive CSS
   Mobile-first, no horizontal scroll
   --------------------------- */

:root{
  --primary: #3399FF;
  --secondary: #75C7B1;
  --accent: #FFD700;
  --light-green: #ADE4AD;
  --dark-blue: #3A466E;
  --off-white: #FAF9F6;
  --radius: 12px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
}

/* Reset / base */
*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
  font-family:var(--font-sans);
  background:var(--off-white);
  color:var(--dark-blue);
  scroll-behavior:smooth;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden; /* prevents horizontal scroll */
  padding-top: 130px; /* Adjusted for new header height with larger logo and a bit extra for safety */
}
img{max-width:100%;display:block}

/* Layout container */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:1rem;
}
.nav-close {
  display: none !important;
}

/* Header */
.header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:1000;
  background:var(--off-white);
  color:var(--dark-blue);
  padding:0.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Added a more visible shadow */
}
.header .container {
  display: flex;
  align-items: center;
  gap: 2rem; /* ruimte tussen brand en nav */
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.brand img{
  width:140px; /* Even Larger logo */
  height:105px; /* Even Larger logo */
  object-fit:contain;
  border-radius:8px;
}
.brand strong{
  font-size:1.05rem;
  letter-spacing:.2px;
}

/* NAV — default (mobile off-canvas) */
.nav{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:100%;
  max-width:380px;
  background:var(--off-white);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.2,.9,.2,1);
  box-shadow: -6px 0 20px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2rem; /* Increased vertical space between links */
  padding:2.5rem 1.25rem;
  z-index:1000;
  -webkit-overflow-scrolling:touch;
  will-change:transform;
}

/* When active, slide in */
.nav.active{
  transform: translateX(0);
}

/* Nav close button inside nav (visible on mobile) */
.nav-close{
  position:absolute;
  top:1rem;
  right:1rem;
  background:none;
  border:none;
  font-size:2rem;
  color:var(--dark-blue);
  cursor:pointer;
  padding:.25rem;
  line-height:1;
}

/* Nav links (mobile) */
.nav a{
  display:block;
  font-weight:600;
  color:var(--dark-blue);
  text-decoration:none;
  padding:1rem 1rem; /* Increased vertical padding for mobile */
  border-radius:10px;
  width:100%;
  text-align:center;
  transition: background .22s ease, color .22s ease, transform .12s ease;
  line-height: 1.2; /* Added line-height for multi-line text */
}
.nav a:hover,
.nav a:focus,
.nav a.active{
  color:var(--primary);
  background: rgba(51,153,255,0.08);
  outline:none;
}

/* Hamburger (toggle) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: .6rem;
  cursor: pointer;
  z-index: 1001;
  margin-left: auto; /* This will push the hamburger to the right */
}

/* Hamburger icon */
.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark-blue);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--dark-blue);
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hamburger open state */
.hamburger.open {
  background: transparent;
}
.hamburger.open::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Close button inside nav */
.nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size:2rem;
  color:var(--dark-blue);
  cursor:pointer;
  padding:.25rem;
  line-height:1;
}

/* ---------- Page content ---------- */

/* Hero */
.hero{
  text-align:center;
  padding:3rem 1rem;
  background:var(--off-white);
  border-radius:var(--radius);
  margin:1.25rem 0 1.5rem;
  transition:opacity .45s ease, transform .45s ease;
  opacity:0;
  transform:translateY(18px);
}
.hero.show{ opacity:1; transform:none }
.hero h1{
  margin:0 0 .9rem;
  font-size:2.2rem;
  line-height:1.05;
  font-weight:700;
  color:var(--dark-blue);
}
.hero p{
  margin:0 auto 1.15rem;
  max-width:680px;
  color:var(--dark-blue);
  font-size:1rem;
  line-height:1.6;
}
.cta{
  display:inline-block;
  background:var(--primary);
  color:#fff;
  padding:.75rem 1.5rem;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  border:none;
  transition: transform .15s ease, background .18s ease;
}
.cta:hover{ transform:translateY(-3px); background:#2988e6 }

/* Grid / Card system */
.grid{
  display:grid;
  gap:1.25rem;
  grid-template-columns:1fr;
  margin:1.25rem 0 1.5rem;
}
.card{
  background:#fff;
  padding:1.6rem;
  border-radius:var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border:1px solid #eaeef2;
  transition:transform .18s ease, box-shadow .18s ease, opacity .35s ease;
  opacity:0;
  transform:translateY(10px);
}
.card.show{ opacity:1; transform:none }
.card h2{ margin-top:0; color:var(--dark-blue) }
.card p{ color:var(--dark-blue); line-height:1.6 }

/* Solution blocks */
.solution-block {
  background: var(--off-white);
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid #eef2f5;
  margin-bottom: 1.5rem; /* Space between solution blocks */
}
.solution-block:last-child {
  margin-bottom: 0; /* No margin after the last block */
}
.solution-block h3 {
  margin-top: 0;
  color: var(--primary); /* Make headings stand out */
}


/* Values grid */
.values-grid{ display:grid; gap:1rem; grid-template-columns:1fr }

/* Accordion styles */
.value-card .value-title{
  cursor:pointer;
  position:relative;
  padding-right:1.6rem;
  margin:0;
}
.value-card .value-title::after{
  content:"+";
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  transition:transform .18s ease;
}
.value-card.active .value-title::after{ content:"-"; transform:none }

.value-card .value-content{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .28s ease, opacity .22s ease;
}
.value-card.active .value-content{ max-height:800px; opacity:1 }

/* Form styles */
form{ display:flex; flex-direction:column; gap:.85rem }
.form-group{ display:flex; flex-direction:column }
form label{ font-weight:700; margin-bottom:.35rem }
form input, form textarea{
  padding:.75rem .9rem;
  border-radius:10px;
  border:1px solid #d6dbe2;
  font-size:1rem;
}
form input:focus, form textarea:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(51,153,255,0.12);
  border-color:var(--primary);
}

/* Team grid */
.team-grid{ display:grid; gap:1rem; grid-template-columns:1fr }
.team-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.6rem;
  cursor:pointer;
  text-align:center;
}
.team-card img{ width:120px; height:120px; border-radius:50%; object-fit:cover; border:3px solid var(--secondary) }
.team-member-info .small{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .28s ease, opacity .22s ease;
}
.team-card.active .team-member-info .small{ max-height:600px; opacity:1 }

/* Pain / Gain items */
.pain-gain-item{ padding:1rem 0; border-bottom:1px solid #f0f3f6; position:relative; cursor:pointer; }
.pain-gain-item:last-child{ border-bottom:none }
.pain-gain-item strong{ display:block; padding-right:2rem; position:relative }
.pain-gain-item strong::after{
  content:"▼"; position:absolute; right:0; top:50%; transform:translateY(-50%); transition:transform .22s ease;
}
.pain-gain-item.active strong::after{ transform:translateY(-50%) rotate(180deg) }
.pain-gain-item p{ max-height:0; overflow:hidden; opacity:0; transition:max-height .28s ease, opacity .22s ease; margin-top:.5rem; padding-left:1rem }
.pain-gain-item.active p{ max-height:200px; opacity:1 }

/* Footer */
.footer{ margin-top:2.5rem; padding:1.5rem 0; text-align:center; color:var(--dark-blue); font-size:.92rem; border-top:1px solid #eef2f5 }

/* Preloader */
#preloader{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:var(--off-white); z-index:9999;
}

/* Links */
.link{ color:var(--primary); text-decoration:none }
h1,h2,h3{ color:var(--dark-blue); font-weight:600 }

/* Custom class for line break in navigation */
.nav-break {
  display: block;
}

/* Phone view for Figma prototype */
.phone-view {
  max-width: 400px;
  height: 700px;
  margin: 1rem auto;
  border: 16px solid #333;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.phone-view iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  height: 300px; /* Default height for mobile */
}
.carousel-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 100;
  font-size: 1.5rem;
}
.carousel-control.prev {
  left: 10px;
}
.carousel-control.next {
  right: 10px;
}


/* ---------- Desktop / larger screens ---------- */
@media(min-width:1025px){
  .header .container {
    justify-content: space-between; /* Added to push nav to the right */
  }

  .nav{
    position:static;
    transform:none;
    height:auto;
    background:transparent;
    box-shadow:none;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:2.5rem; /* Increased space between links */
    justify-content:flex-end; /* Align nav items to the end */
    flex-grow: 0; /* voorkomt dat nav alle ruimte inneemt */
    padding:0;
  }

  /* hide the close button on desktop */
  .nav-close{ display:none }

  /* nav links inline */
  .nav a{
    padding:1rem 2rem; /* Adjusted padding to make boxes broader and accommodate two lines */
    text-align:center;
    width:auto;
    border-radius:8px;
    line-height: 1.2; /* Added line-height for multi-line text */
  }

  /* hamburger hidden on desktop */
  .nav-toggle{ display:none }

  /* layout: cards side-by-side */
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)) }
  .values-grid{ grid-template-columns: repeat(2, 1fr) }
  .team-grid{ grid-template-columns: repeat(2, 1fr) }

  .carousel-item {
    height: 500px; /* Taller on desktop */
  }
}

/* large desktops */
@media(min-width:1025px){
  .grid{ gap:1.5rem; grid-template-columns: repeat(2, 1fr) }
  .team-grid{ grid-template-columns: repeat(4, 1fr) }
}

/* small polish */
a:focus{ outline: 3px solid rgba(51,153,255,0.12); outline-offset: 3px }
