/* ==========================================================================
   2eN DESIGN - STYLES.CSS 
   ========================================================================== */

/* Lettertype Montserrat (lokaal gehost, variabel gewicht 100-900)
   ========================================================================== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-wght-italic.woff2') format('woff2');
}

/* CSS Variabelen
   ========================================================================== */
:root {
  /* Kleuren */
  --color-primary: #6A6F67;
  --color-secondary: #8eb644;
  --color-light: #D8D2C7;
  --color-background: #EEEEE8;
  --color-white: #FFFFFF;
  --color-dark: #333333;
  
  /* Responsive typografische schaal */
  --font-size-xsmall: clamp(0.7rem, 0.6vw + 0.7rem, 0.8rem);
  --font-size-small: clamp(1rem, 0.5vw + 0.7rem, 1rem);
  --font-size-base: clamp(1rem, 0.8vw + 1rem, 1.2rem);
  --font-size-medium: clamp(1.2rem, 1vw + 1.2rem, 1.5rem);
  --font-size-large: clamp(2rem, 2vw + 1.5rem, 3rem);
  --font-size-xlarge: clamp(3rem, 3vw + 2rem, 4.5rem);

  /* Lijnhoogtes */
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;
}

/* Base Styles
   ========================================================================== */
html {
  font-size: calc(12px + 0.40vw);
  scroll-behavior: smooth;
}

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

body {
  padding-top: 150px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-primary);
  background-color: var(--color-background);
}

/* Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background-color: var(--color-primary);
  padding: 30px 0;
}

.logo-container {
  margin-left: 60px;
  margin-top: 10px;
  margin-bottom: 0;
}

.logo-container img {
  max-width: 100px;
  height: auto;
  margin-bottom: 0;
}

nav {
  display: flex;
  align-items: flex-end;
  margin-right: 20px;
  justify-content: space-between;
  padding: 0;
  white-space: nowrap;
  margin-left: 20px;
}

nav ul {
  display: flex;
  list-style-type: none;
}

nav ul li {
  margin-left: 0;
  margin-top: 0;
}

nav ul li a {
  color: var(--color-light);
  text-decoration: none;
  font-weight: 200;
  font-size: 1rem;
  margin-right: 50px;
  margin-left: 0;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  color: var(--color-secondary);
  outline: none;
}

.hamburger {
  display: none;
  font-size: 1.875rem;
  cursor: pointer;
  color: var(--color-light);
}

/* Typography
   ========================================================================== */
h1 {
  color: var(--color-white);
  text-align: left;
  font-size: var(--font-size-xlarge);
  line-height: var(--line-height-tight);
  font-weight: 300;
  margin-bottom: 20px;
  margin-left: 0;
  position: relative;
}

h2 {
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.2em;
  padding-left: 0;
  padding-top: 0;
  padding-bottom: 20px;
}

/* Links
   ========================================================================== */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.mail-link {
  color: var(--color-primary);
  text-decoration: none;
}

.mail-link:hover {
  color: var(--color-secondary);
}

/* Layout
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding-top: 0;
}

.text-container {
  max-width: 1200px;
  padding-bottom: 10px;
}

/* Image Slider
   ========================================================================== */
.image-slider {
  position: relative;
  overflow: hidden;
  height: 700px;
  max-width: 100%;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: none;
  z-index: 3;
  padding: 0;
}

.slider-logo {
  max-width: calc(100% - 60px);
  max-height: 100%;
  height: auto;
  margin-bottom: 30px;
  margin-right: 30px;
}

.slider-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 2;
}

.slider-image.active {
  opacity: 1;
  z-index: 1;
}

/* Quote Styles
   ========================================================================== */
.quote {
  text-align: center;
  margin: 30px 0;
}

.quote-row {
  display: flex;
  align-items: center;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.quote-row img {
  max-width: 30%;
  height: auto;
  margin-right: 20px;
}

.quote-text {
  flex: 1;
  font-size: 1.7rem;
  font-weight: 400;
  text-align: center;
  display: inline-block;
  padding: 10px;
  margin-top: 10px;
}

/* Hero Section
   ========================================================================== */
#hero,
.interieurontwerp-rotterdam-hoofdsectie {
  background-color: var(--color-background);
  padding: 25px 0;
  padding-left: 0;
  margin-bottom: 40px;
  text-align: center;
  margin-top: 80px;
}

#hero h1 {
  color: var(--color-white);
  text-align: left;
  font-size: var(--font-size-xlarge);
  line-height: var(--line-height-tight);
  font-weight: 400;
  margin-bottom: 20px;
  margin-left: 40px;
  position: relative;
}

#hero p {
  max-width: 1200px;
  margin-right: 40px;
  margin-left: 40px;
  text-align: left;
}

/* Projects Section
   ========================================================================== */
#projecten,
.interieurprojecten-rotterdam-portfolios {
  scroll-margin-top: 200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
  margin-right: 40px;
  margin-left: 40px;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
}

.text-content {
  flex: 1;
  min-width: 150px;
}

.project {
  background-color: #fff;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project > a {
  display: block;
}

.project img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project h1,
.project h2,
.project p {
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 0;
}

.project h1 {
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1.6em;
  padding-left: 20px;
  padding-top: 20px;
  padding-bottom: 2px;
}

.project h2 {
  font-size: var(--font-size-small);
  font-weight: 600;
  line-height: 1.2em;
  padding-left: 20px;
  padding-top: 0;
  padding-bottom: 20px;
}

.project p:not(.project-link) {
  font-size: var(--font-size-small);
  padding-bottom: 20px;
  flex-grow: 1;
}

.project-link {
  padding: 10px 20px 20px;
  margin-top: auto;
}

.project-link a {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: var(--font-size-small);
  font-weight: 600;
}

.project-link a:hover,
.project-link a:focus {
  color: var(--color-primary);
}

.project-navigation {
  max-width: 1200px;
  margin-right: 0;
  margin-left: 30px;
}

.next-project,
.prev-project {
  color: var(--color-light);
  text-decoration: none;
}

.next-project:hover,
.prev-project:hover,
.next-project:focus,
.prev-project:focus {
  color: var(--color-secondary);
}

/* Over Ons Section
   ========================================================================== */
#over-ons,
.interieurarchitecten-rotterdam-team {
  scroll-margin-top: 200px;
  margin-right: 40px;
  margin-left: 40px;
  background-color: var(--color-background);
  padding: 0;
  margin-top: 80px;
}

#over-ons h1 {
  color: var(--color-white);
  text-align: left;
  font-size: var(--font-size-xlarge);
  line-height: var(--line-height-tight);
  font-weight: 400;
  margin-bottom: 20px;
  margin-left: 0;
}

.over-ons-beschrijving {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  margin-bottom: 60px;
  padding-left: 0;
  padding-right: 0;
  max-width: 1200px;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0;
}

.column {
  display: flex;
  align-items: flex-start;
  margin: 10px;
}

.team-members {
  display: flex;
  flex-direction: column;
}

.team-member {
  display: flex;
  margin-bottom: 20px;
}

.team-member img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  margin-right: 20px;
}

.team-member .text-container {
  flex-grow: 1;
}

.team-member .text-container p {
  font-size: var(--font-size-small);
  line-height: var(--line-height-normal);
  margin-bottom: 5px;
}

.team-member .text-container p:first-child {
  font-size: var(--font-size-base);
  font-weight: bold;
}

.team-member .text-container p:nth-child(2) {
  font-size: var(--font-size-small);
  line-height: 1.3;
  margin-bottom: 10px;
}

/* Onze Aanpak Section
   ========================================================================== */
#hoe-we-het-doen,
.interieurontwerp-werkwijze-rotterdam {
  scroll-margin-top: 200px;
  margin-top: 40px;
  margin-right: 20px;
  margin-left: 0;
  background-color: var(--color-background);
  padding: 0;
}

#hoe-we-het-doen h1 {
  color: var(--color-white);
  text-align: left;
  font-size: var(--font-size-xlarge);
  line-height: var(--line-height-tight);
  font-weight: 400;
  margin-bottom: 30px;
  margin-left: 0;
  position: relative;
}

.onze-aanpak-beschrijving {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  margin-bottom: 60px;
  padding-left: 0;
  padding-right: 0;
  max-width: 1200px;
}

#hoe-we-het-doen ul {
  margin-right: 4px;
  margin-left: 4px;
  display: flex;
  justify-content: space-around;
  list-style-type: none;
  margin: 40px 0;
}

/* Opdrachtgevers Section
   ========================================================================== */
#opdrachtgevers,
.interieurontwerp-rotterdam-opdrachtgevers {
  scroll-margin-top: 200px;
  margin-top: 90px;
  margin-right: 20px;
  margin-left: 0;
  background-color: var(--color-background);
  padding: 0;
}

#opdrachtgevers h1 {
  color: var(--color-white);
  text-align: left;
  font-size: var(--font-size-xlarge);
  line-height: var(--line-height-tight);
  font-weight: 400;
  margin-bottom: 30px;
  margin-left: 0;
  position: relative;
}

/* De grid container aangepast voor 4 kolommen op desktop voor een rustiger beeld */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 20px; /* De marge tussen de gekleurde vlakken */
  margin-top: 20px;
  margin-bottom: 80px;
}

/* De vierkante kleurvlakjes (alleen in opdrachtgevers-grid) */
.grid-container .grid-item {
  background-color: var(--color-white); /* Kleur van het vlakje */
  aspect-ratio: 1 / 1;                  /* Maakt het een perfect vierkant */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;                        /* De marge 'binnen' het vlakje rond het logo */
  transition: transform 0.3s ease;
}


.grid-container .grid-item img {
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;                  /* Zorgt dat logo's niet vervormen */
}

.grid-container .grid-item a {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

/* CTA Section
   ========================================================================== */
#cta-section {
  margin-top: 20px;
  margin-bottom: 10px;
}

.cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.cta-button {
  display: inline-block;
  margin: 90px auto 30px;
  padding: 15px 30px;
  max-width: 900px;
  width: auto;
  background-color: var(--color-background);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
  color: var(--color-secondary); 
  outline: none; 
  background-color: transparent; 
}

/* Footer
   ========================================================================== */
.page-footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  min-height: 0;
  padding: 60px 0 30px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.footer-wrapper {
  padding-left: 0;
  width: 100%;
}

.footer-container {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 60px;
  width: 100%;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 20px;
}

.footer-left .logo-container {
  margin: 0 0 70px 0;
}

.footer-text p {
  font-weight: 200;
  font-size: var(--font-size-small);
  margin: 0 0 0px 0;
}

.footer-right-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 30px;
}

.footer-middle-right img {
  height: 150px;
  width: auto;
}

.footer-nav {
  align-self: flex-start;
  margin-left: 0;
  padding-left: 0;
}

.footer-nav .social-icons {
  padding-top: 30px;
}

.footer-nav .social-icons a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-nav .social-icons img {
  width: 30px;
  height: auto;
}

/* Image Layouts
   ========================================================================== */
.image-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-left: 20px;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 10px;
}

.image-row img {
  flex: 1 1 200px;
  max-width: 100%;
  height: auto;
  margin: 10px;
}

.image-row-project {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  margin-left: 30px;
  margin-right: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.image-row-strategie {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 naast elkaar op desktop */
  gap: 40px; /* Dit is je marge die nooit kleiner wordt */
  align-items: start; /* Zorgt dat de icoontjes bovenin uitlijnen */
}

.image-row-strategie img {
  max-width: 100%;
  height: auto;
 margin: 10px auto 20px auto; /* Centreert het plaatje horizontaal */
  align-self: center;
  display: block;
}

.image-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 10px;
}

.image-text-container img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* Content Grid (Projectpagina's)
   ========================================================================== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.content-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grid item widths */
.full-width {
  flex-basis: 100%;
}

.two-thirds-width {
  flex-basis: calc(66.666% - 20px);
}

.one-third-width {
  flex-basis: calc(33.333% - 20px);
}

.half-width {
  flex-basis: calc(50% - 15px);
}

/* Special row: 2/3 image + 1/3 quote side by side */
.grid-row.two-thirds-with-quote {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  flex-direction: row-reverse;
}

/* Quote block styling */
.quote-block {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  background: none;
  border-left: none;
}

.quote-block.left-quote {
  justify-content: flex-start;
  padding: 0;
}

.quote-block.padded-quote {
  background: none;
  padding: 40px 20px;
  border-left: none;
  text-align: center;
}

.quote-block blockquote {
  margin: 0;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--color-dark);
}

/* Map (Contact page)
   ========================================================================== */
#map {
  height: 700px;
  margin: 0;
  z-index: 1;
}

#map .leaflet-tile-pane {
  filter: grayscale(90%) contrast(85%) brightness(108%);
}

body .leaflet-control-zoom {
  margin-top: 50px !important;
}

/* Utility Classes
   ========================================================================== */
.section-margin {
  margin-right: 40px;
  margin-left: 40px;
}

/* Strategie/Creatie/Realisatie/Regie Items
   ========================================================================== */
.strategie-item,
.creatie-item,
.realisatie-item,
.regie-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Lijnt de tekstblokken links uit */
  text-align: left;        /* Lijnt de tekstregels links uit */
}

.strategie-bullet,
.creatie-bullet,
.realisatie-bullet,
.regie-bullet {
  font-size: var(--font-size-small);
  margin: 5px 0;
  width: 100%;
  text-align: left;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* 1. Tablet & Large Screens (Vanaf 1100px naar 2 kolommen) */
@media (max-width: 1100px) {
  .image-row-strategie {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px 40px;
    padding: 0 40px;
    margin: 60px auto;
  }

  .image-row-strategie img {
    width: 140px;
    height: auto;
    margin: 10px auto 20px auto; /* Blijft netjes gecentreerd op tablet */
  }

  .image-row-strategie p {
    font-size: 1.1rem;
    max-width: 250px;
    margin: 5px 0; /* Veranderd van 'auto' naar '0' zodat de tekst links blijft */
  }
}

/* 2. Tablet & Medium Screens (768px) */
@media (max-width: 768px) {
  body { padding-top: 100px; }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .content-grid .two-thirds-width,
  .content-grid .one-third-width,
  .content-grid .half-width {
    flex-basis: 100%;
  }

  .image-row-strategie {
    gap: 50px 30px;
  }

  .image-row-strategie img {
    width: 120px;
  }

  /* Alleen deze 3 regels voor de footer: */
  .footer-container {
    flex-direction: column;
  }

  .footer-right-section {
    align-items: flex-start;
    margin-left: 0;
    margin-top: 30px;
  }

  .footer-middle-right img {
    height: auto;
    max-width: 240px;
    width: 100%;
  }
}

/* 3. Mobile (max-width: 600px) */
@media (max-width: 600px) {
  body { padding-top: 90px; }

  

  /* Navigatie */
  .hamburger { display: block; margin-left: 30px; margin-right: 20px; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: var(--color-primary);
    width: 100%;
    z-index: 10;
    padding-bottom: 20px;
    padding-left: 60px;
  }
  nav ul.active { display: flex; }

  
  .team-member {
    flex-direction: column; /* Foto boven, tekst onder */
    align-items: flex-start;
    margin-bottom: 40px;
  }

  .team-member img {
    width: 100%;       /* Foto pakt volledige breedte */
    height: auto;
    margin-right: 0;   /* Geen zijwaartse marge meer */
    margin-bottom: 20px; /* Ruimte tussen foto en tekst */
  }

  .team-member .text-container {
    width: 100%;
  }

  /* --- STRATEGIE SECTIE  --- */
  .image-row-strategie {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
    padding: 0 15px;
  }

  .image-row-strategie img {
    width: 100px; 
    height: auto;
    margin-bottom: 20px;
  }

  .image-row-strategie p {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Algemene marges voor secties */
  #projecten, #over-ons, #hoe-we-het-doen, #opdrachtgevers {
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* 4. Piepkleine schermen (max-width: 350px) */
@media (max-width: 350px) {
  .image-row-strategie {
    gap: 30px 10px;
  }
  
  .image-row-strategie img {
    width: 80px; /* Iets terugschalen alleen op de allerkleinste telefoons */
  }

  .image-row-strategie p {
    font-size: 0.9rem;
  }
}

/* Privacy-link in de footer */
.footer-text a {
  color: inherit;
  font-size: 0.9em;
  text-decoration: underline;
}

.footer-text a:hover {
  color: var(--color-secondary);
}

/* Onze aanpak, CTA en Opdrachtgevers zijn eigen secties naast Over ons (niet meer erin genest).
   Deze marges houden de uitlijning gelijk aan de eerdere opzet. */
#hoe-we-het-doen,
#opdrachtgevers {
  margin-left: 40px;
  margin-right: 60px;
}

#cta-section {
  margin-left: 40px;
  margin-right: 40px;
}

@media (max-width: 600px) {
  #hoe-we-het-doen,
  #opdrachtgevers {
    margin-left: 40px;
    margin-right: 40px;
  }

  #cta-section {
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* Projectpagina's: tekst op één lijn met de foto's.
   De foto-grid heeft 20px zijmarge, de tekst had 40px. */
.project-page #hero h1,
.project-page #hero p {
  margin-left: 20px;
}

.project-page #hero p {
  margin-right: 20px;
}
