/* =========================================================
   KAS ARCHITECTUUR STUDIO - STIJLSTANDAARD
   ========================================================= */

/* ============================= */
/* RESET & BASIS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f7f7f7;
  color: #000;
  overflow-x: hidden;
  padding-top: 90px;
}

img, iframe {
  display: block;
  max-width: 100%;
}

/* ============================= */
/* NAVIGATIE */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 24px 40px;
  background: rgba(247,247,247,0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
}
nav a {
  margin-left: 32px;
  text-decoration: none;
  color: #000;
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  position: relative;
  padding-bottom: 4px;
}
nav a:hover { opacity: 0.6; }
nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 1px;
}
nav a[href="samen.html"] {
  opacity: 0.75;
}
/* ============================= */
/* HOMEPAGE HERO / SPACING */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 220px 20px 140px; 
  text-align: center;
}
.image-stack.homepage {
  margin-top: 40px; 
}

.hero img {
  max-width: 220px;
  height: auto;
  margin-bottom: 5rem;
}

.hero-text {
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 0.6rem;
}

.hero a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.3);
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  margin-top: 0.5rem;
}
.hero a:hover { border-color: #000; }

/* ============================= */
/* SCROLL ARROW */
.scroll-arrow {
  font-size: 2.2rem;
  opacity: 0.6;
  margin-top: 60px;
  animation: jump 1.2s ease-in-out infinite;
}
@keyframes jump {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* ============================= */
/* STL ROTATOR / ITEMS */
.stl-rotator {
  text-align: center;
  padding: 80px 5vw;
}
.stl-rotator h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.image-stack.homepage .image-item.stl-item {
  background-color: #f0f0f0;
  padding: 6px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-stack.homepage .image-item.stl-item model-viewer {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  max-height: 50vh;
  border-radius: 2px;
}

/* ============================= */
/* IMAGE STACK GRID BASIS */
.image-stack {
  max-width: 1600px;
  margin: 0 auto;
  padding: 80px 5vw 140px;
}
.image-item {
  display: block;
  text-decoration: none;
  color: inherit;
}
.image-item img, .image-item model-viewer {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

/* ============================= */
/* HOMEPAGE GRID */
.image-stack.homepage .image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 32px;
  justify-content: center;
}
.image-stack.homepage .image-item.large { grid-column: span 2; }
.image-stack.homepage .image-item.medium { grid-column: span 1; }
.image-stack.homepage .image-item:nth-child(5n+1) { margin-top: 80px; }
.image-stack.homepage .image-item:nth-child(5n+2) { margin-top: 40px; }
.image-stack.homepage .image-item:nth-child(5n+3) { margin-top: 60px; }
.image-stack.homepage .image-item:nth-child(5n+4) { margin-top: 20px; }
.image-stack.homepage .image-item:nth-child(5n+5) { margin-top: 100px; }

/* ============================= */
/* OVERZICHT & DETAIL GRIDS (projectpagina) */
.image-stack.overview .image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 28px;
  justify-content: center;
}
.image-stack.overview .image-item img { width: 100%; height: auto; border-radius: 2px; }
.image-stack.detail .image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 80px 60px;
  justify-content: center;
}
.image-stack.detail .image-item.large { grid-column: span 2; margin-top: 80px; }
.image-stack.detail .image-item.medium { grid-column: span 1; margin-top: 40px; }
.image-stack.detail .image-item img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* ============================= */
/* CAPTIONS, TEKST, INFO, CONTACT etc. */
.caption { font-size: 0.65rem; text-align: center; margin-top: 6px; color: rgba(0,0,0,0.75); }
.project-text { max-width: 900px; margin: 0 auto 60px auto; padding: 0 5vw; text-align: center; }
.project-text h1 { font-size: 1.6rem; margin-bottom: 20px; font-weight: 500; }
.project-text p { line-height: 1.7; font-size: 0.95rem; }
.project-info { max-width: 900px; margin: 80px auto; padding: 0 5vw; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; }
.info-item { font-size: 0.85rem; line-height: 1.6; color: rgba(0,0,0,0.85); }
.info-item strong { display: block; font-weight: 500; margin-bottom: 4px; }
.contact-section { padding: 0 10% 120px; max-width: 700px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea { border: none; border-bottom: 1px solid #ccc; padding: 10px 0; font-size: 0.9rem; background: transparent; outline: none; }
.contact-form button { margin-top: 20px; padding: 12px 0; border: 1px solid #111; background: transparent; cursor: pointer; transition: 0.25s ease; }
.contact-form button:hover { background: #111; color: #fff; }

/* ============================= */
/* STUDIO SPECIFIEK */
.studio { max-width: 1100px; margin: 0 auto; padding: 40px 5vw 120px; }
.studio-block { max-width: 720px; margin: 0 auto 80px auto; text-align: center; line-height: 1.75; font-size: 0.95rem; }
.studio-media { display: flex; margin: 60px 0 100px; }
.studio-media img { width: 100%; max-width: 420px; border-radius: 2px; }
.studio-media.left { justify-content: flex-start; }
.studio-media.right { justify-content: flex-end; }
.studio-media.center { justify-content: center; }
.studio-media img.portret { max-width: 340px; }
.studio-video { max-width: 900px; margin: 80px auto 0; }
.studio-video iframe { width: 100%; aspect-ratio: 16 / 9; border: none; filter: grayscale(100%) contrast(0.85); border-radius: 2px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: block; margin: 0 auto; }
.studio-portrait { display: flex; justify-content: center; margin: 120px 0 60px; }
.studio-portrait img { width: 100%; max-width: 380px; border-radius: 2px; }

/* ============================= */
/* STUDIO HERO */
/* ============================= */

.studio-hero {
  position: relative;
  min-height: 100vh; 
  overflow: hidden;
}

.studio-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

.studio-hero h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
}

/* STUDIO FLEX ROWS */
.studio-row {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 100px;
}

.studio-row.reverse {
  flex-direction: row-reverse;
}

.studio-row .studio-block {
  flex: 1;
  text-align: left; /* ✨ belangrijk voor afwisseling */
  margin: 0;         /* geen auto margin op desktop */
}

.studio-row .studio-media {
  flex: 1;
  justify-content: center;
  margin: 0;
}

/* Mobiel: alles onder elkaar */
@media (max-width: 1100px) {
  .studio-row, .studio-row.reverse {
    flex-direction: column !important;
    margin-bottom: 60px;
  }
  .studio-row .studio-block,
  .studio-row .studio-media {
    width: 100%;
    text-align: center; /* tekst weer gecentreerd op mobiel */
  }
  .studio-block { margin-bottom: 40px; }
}

/* Portret afbeelding iets kleiner */
.studio-media img.portret {
  max-width: 340px;
}

/* Portret / video speciale styling behouden */
.studio-portrait {
  display: flex;
  justify-content: center;
  margin: 120px 0 60px;
}

.studio-video {
  max-width: 900px;
  margin: 80px auto 0;
}

.studio-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  filter: grayscale(100%) contrast(0.85);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto;
}

/* ============================= */
/* RESPONSIVE STUDIO ROWS */
@media (max-width: 1100px) {
  .studio-row, .studio-row.reverse {
    flex-direction: column !important;
    margin-bottom: 60px;
  }
  .studio-row .studio-block, .studio-row .studio-media {
    width: 100%;
  }
 .studio-block {
  flex: 1 1 0;       /* flex-grow/flex-shrink/basis */
  max-width: none;    /* geen beperking */
  margin: 0;          /* geen auto-centering */
  text-align: left;   /* tekst links */
  line-height: 1.75;
  font-size: 0.95rem;
}
}

/* ============================= */
/* FLEX LAYOUT BREED SCHERM */
@media (min-width: 1100px) {
  .studio-row { display: flex; align-items: flex-start; gap: 60px; margin-bottom: 100px; }
  .studio-row.reverse { flex-direction: row-reverse; }
  .studio-row .studio-block { flex: 1; text-align: left; }
  .studio-row .studio-media { flex: 1; justify-content: center; margin: 0; }
}

/* ============================= */
/* MOBIEL */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .studio-media { justify-content: center !important; margin: 40px 0 80px; }
  .studio-block { margin-bottom: 60px; }
  .image-stack.detail .image-grid { grid-template-columns: 1fr; gap: 60px; }
  .image-stack.detail .image-item { margin-top: 0 !important; }
}
@media (max-width: 600px) {
  .image-stack.homepage .image-item.stl-item model-viewer { max-height: 50vh; }
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* ============================= */
/* CONTACT PAGINA */
.contact-section {
  max-width: 720px;
  margin: 120px auto 120px auto; /* ruimte vanaf nav */
  padding: 0 5vw;
  font-family: 'Inter', sans-serif;
  color: #000;
  text-align: center; /* kop + info gecentreerd */
}
.contact-section .project-text {
  margin-bottom: 60px;
}
.contact-section .project-text h1 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.contact-section .project-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 auto 40px auto;
  max-width: 700px;
}

/* ============================= */
/* CONTACT FORMULIER */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  font-size: 0.95rem;
  background: transparent;
  outline: none;
  width: 100%;
  transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #000;
}

.contact-form button {
  margin-top: 20px;
  padding: 12px 0;
  border: 1px solid #111;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.contact-form button:hover {
  background: #111;
  color: #fff;
}

/* ============================= */
/* CONTACTGEGEVENS */
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  font-size: 0.85rem;
  max-width: 420px; /* zoals afbeeldingen en tekstblok */
  margin: 40px auto 0 auto;
  text-align: left;
}

.contact-info a {
  text-decoration: none;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info i {
  font-size: 1rem;
}

/* ============================= */
/* FADE-IN ANIMATIE */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================= */
/* RESPONSIVE MOBIEL */
@media (max-width: 900px) {
  .contact-section {
    margin: 80px 5vw 80px 5vw;
  }
  .contact-form {
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .contact-info {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px 0;
  }
}
/* RESPONSIVE FORMULIER */

#formResponse {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  font-size: 0.95rem;
  color: #111;
}

#formResponse.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================= */
/* Formulier response meldingen */
#formResponse {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 700px;
  margin: 20px auto 0 auto;
}

#formResponse.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#formResponse.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#formResponse i {
  font-size: 1.2rem;
}

/* ============================= */
/* MINIMALISTISCH MOBIEL MENU */
@media (max-width: 768px) {

  nav {
    padding: 14px 6vw;
  }

  nav a {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    font-weight: 400;
  }

  nav .logo {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    font-weight: 500;
  }

}

@media (max-width: 768px) {

  nav a.active {
    opacity: 0.6;
  }

  nav a:not(.logo) {
    opacity: 0.85;
  }

}

/* ============================= */
/* SAMEN PAGINA */
.samen-hero {
  max-width: 800px;
  margin: 120px auto 80px;
  text-align: center;
}

.samen-hero h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.samen-hero p {
  line-height: 1.7;
  opacity: 0.8;
}

.samen-content {
  max-width: 800px;
  margin: 0 auto 120px;
}

.samen-block {
  margin-bottom: 80px;
}

.samen-block h2 {
  font-size: 1rem;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.samen-block p {
  line-height: 1.7;
  opacity: 0.85;
}

/* ============================= */
/* PARTNER LOGO GRID */
.partners {
  padding: 80px 5vw 120px;
  text-align: center;
}

.partners h2 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 60px;
  opacity: 0.6;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.partners-grid img {
  max-height: 40px;
  width: auto;
  margin: 0 auto;
  display: block;
  filter: grayscale(100%) contrast(1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.partners-grid a:hover img {
  opacity: 1;
}

/* ============================= */
/* SAMENWERKING FOTO'S GRID */
.samen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  justify-items: center;
  margin: 0 auto 80px;
  max-width: 1100px;
}

.samen-item {
  width: 100%;
  aspect-ratio: 1 / 1; 
  overflow: hidden;
  border-radius: 2px;
}

.samen-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0;
  transform: scale(1.05) translateY(20px);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.samen-item.fade-in.visible img {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ============================= */
/* LOGOS PARTNERS */
.samen-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 40px;
  margin: 0 auto 120px;
  max-width: 900px;
}

.samen-logos img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.samen-logos a:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* MOBIEL */
@media (max-width: 700px) {
  .samen-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .samen-logos {
    gap: 20px 24px;
  }
}

/* fade-in zichtbaar */
.samen-item.fade-in.visible img {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ============================= */
/* MOBIEL */
@media (max-width: 700px) {
  .samen-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}