/*
Theme Name: MM Properties
Theme URI: https://mmproperties.nl/
Author: Hugo Leijdekkers
Description: Een custom WordPress theme voor MM Properties
Version: 1.0
*/

/* Algemene opmaak */
body {
    font-family: 'Boomer', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

section {
    scroll-margin-top: 80px; /* Voorkomt dat secties tegen de navbar plakken */
}

h2 {
    text-transform: uppercase;
}

/* ========================= */
/* ======= NAVIGATIE  ====== */
/* ========================= */
/* Algemene styling voor de navigatiebalk */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent; /* Transparant op eerste sectie */
    padding: 15px 0;
    text-align: center;
    transition: background-color 0.5s ease-in-out, padding 0.5s ease-in-out;
    z-index: 1000;
}

/* Vanaf tweede sectie een lichtere achtergrondkleur */
#navbar.scrolled {
    background-color: rgba(50, 50, 50, 0.8); /* Grijze achtergrond na de eerste sectie */
    padding: 8px 0; /* Kleinere padding bij scroll */
}

/* Menu styling */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Navigatie links */
.nav-menu li {
    display: inline;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s ease-in-out;
}

.nav-menu li a:hover {
    color: #E1E471; /* Gele hover kleur */
}

.nav-menu li a.active {
    color: #E1E471;
    border-bottom: 2px solid #E1E471; /* Onderaan lijn als active */
}

.logo {
display: none;
}

#nav-toggle{
    display:none;
}



/* Desktop navigatie container */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Desktop logo verbergen */
.logo {
  display: none;
}

/* Desktop hamburger verbergen */
#nav-toggle {
  display: none;
}

/* Mobile styling */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  
  /* Kleinere navbar padding op mobile */
  #navbar {
    padding: 10px 0;
  }
  
  .nav-container {
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Hide desktop menu on mobile */
  .desktop-menu {
    display: none;
  }

  /* Show mobile menu */
  .mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(50, 50, 50, 1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .mobile-menu.open {
    max-height: 400px;
  }

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

  .mobile-nav-list li {
    display: block;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-nav-list li:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-nav-list li a {
    display: block;
    padding: 5px 10px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
  }

  .mobile-nav-list li a:hover {
    color: #E1E471;
  }

  /* Logo tonen op mobiel */
  .logo {
    display: block;
  }

  .logo img {
    height: 36px;
  }

  /* Hamburger menu tonen op mobiel */
  #nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
  }

  #nav-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
  }

  /* Hamburger animatie wanneer actief */
  #nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  #nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
  }


  /* Navbar achtergrond aanpassing wanneer menu open is */
  #navbar.menu-open {
    background-color: rgba(50, 50, 50, 1) !important;
  }
}





/* ========================= */
/* ====== HERO SECTIE ====== */
/* ========================= */

.hero {
    position: relative;
    background: url('assets/img/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 20vw; 
    max-width: 300px; 
    min-width: 120px; 
    height: auto;
}

.hero-logo img {
    width: 100%;
    height: auto;
}

.hero h1 {
    font-size: 4.3rem; /* 52pt = ±69px */
    font-weight: bold;
    font-style: italic;    
    margin-top: 1rem;
    margin: 0; /* Verwijdert alle standaard browser-marges */
    color: #E1E471; /* Gele kleur */
}

/* Zorgt ervoor dat de tekst direct onder de H1 staat */
.hero p {
    font-size: 1.45rem; /* 17pt = ±23px */
    font-weight: bold;
    font-style: italic; 
    margin-top: 0.2rem; /* Controleer de afstand */
}

/* ===== RESPONSIVITEIT ===== */
@media (max-width: 1024px) {
    .hero-logo {
        width: 25vw;
        max-width: 250px;
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .hero p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        width: 30vw;
        max-width: 230px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 40vw;
        max-width: 200px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}
/* ============================ */
/* ====== OVER ONS SECTIE ===== */
/* ============================ */

.about-section-container {
    background-color: #E1E471;
    padding: 60px 0;
    position: relative;
}

.about-section {
    display: flex;
    align-items: top;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.about-image-container {
    position: relative;
    width: 50%;
    overflow: hidden;
}

.about-image-container img {
    width: 100%;
    height: auto;
    display: block;
    clip-path: polygon(0 0, 10% 0, 22.5% 20%, 35% 0, 100% 0, 100% 100%, 0 100%);
}

.about-content {
    width: 50%;
    padding: 20px;
    z-index: 2;
}

/* About sectie mobile responsiveness */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        padding: 40px 20px;
    }
    
    .about-image-container,
    .about-content {
        width: 100%;
    }
    
    .about-image-container {
        order: 2;
        margin-top: 20px;
    }
    
    .about-content {
        order: 1;
        padding: 0;
    }
    
    .about-image-container img {
        clip-path: none; /* Verwijder complex clip-path op mobiel */
    }
    
    .about-section-container {
        padding: 0 0 60px 0;
    }
}

/* Extra polygon onderaan */
.about-section-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 70%;
    width: 300px;
    height: 100px;
    background: url("assets/img/m.png") no-repeat center bottom;
    background-size: contain;
    transform: translateX(-50%);
    z-index: 1;
}

/* ============================= */
/* ====== CONTACTFORMULIER ===== */
/* ============================= */

/* Contact sectie algemeen */
.contact-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
}
/* Container en formulier */
.wpcf7 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wpcf7-form {
  background: #fff;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Rijen met twee kolommen */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: nowrap; /* of helemaal weglaten (default = nowrap) */
}


.form-col {
  flex: 1 1 50%;
  box-sizing: border-box;
}

.full-width {
  flex: 1 1 100%;
}

/* Velden */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border 0.3s ease;
}

.wpcf7 textarea {
  height: 120px !important;
  min-height: 120px !important;
  resize: vertical;
}

/* Form row met full-width class - force full width */
.form-row.full-width {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

/* Zorg dat elementen binnen full-width rows ook full-width zijn */
.form-row.full-width textarea,
.form-row.full-width input[type="submit"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #E1E471;
  outline: none;
}

/* Placeholder styling */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  font-family: inherit;
  font-size: 16px;
  color: #999;
}

/* Verzendknop */
.wpcf7 input[type="submit"] {
  background-color: #E1E471;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #d7d95e;
}

.form-row {
  margin-bottom: 0.75rem;
}

.wpcf7-form {
  padding: 1.5rem 2rem;
}

/* Contact Form 7 Response Messages - Override all default styling */
.wpcf7 form .wpcf7-response-output {
  border: none !important;
  border-radius: 8px !important;
  padding: 15px 20px !important;
  margin: 20px 0 !important;
  font-size: 16px !important;
  font-weight: bold !important;
  background-color: #fff !important;
  color: #333 !important;
}

/* Success message */
.wpcf7 form.sent .wpcf7-response-output {
  background-color: #fff !important;
  color: #333 !important;
  border-left: 4px solid #E1E471 !important;
  border-color: transparent !important;
}

/* Error message */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
  background-color: #fff !important;
  color: #333 !important;
  border-left: 4px solid #dc3545 !important;
  border-color: transparent !important;
}

/* Validation error message */
.wpcf7-not-valid-tip {
  color: #dc3545 !important;
  font-size: 14px !important;
  font-weight: normal !important;
  margin-top: 5px !important;
  display: block !important;
}

/* Field with validation error */
.wpcf7-not-valid {
  border-color: #dc3545 !important;
}

/* Responsive (mobiel) */
@media (max-width: 768px) {
  .form-row {
    flex-wrap: wrap;
  }

  .form-col {
    flex: 1 1 100%;
  }
}
/* =========================== */
/* ====== NIEUWS SECTIE ====== */
/* =========================== */

/* Nieuwssectie */
.news-section {
    background-color: #0e1726;
    padding: 60px 0;
    color: white;
    display: flex;
    align-items: stretch;
}

/* Container zorgt dat alles binnen de max-breedte blijft */
.news-container {
    display: flex;
    align-items: stretch; /* Beide elementen even hoog maken */
    max-width: 1200px;
    margin: 0 auto;
}

.news-image {
    width: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto; /* Zorgt dat de afbeelding de juiste hoogte heeft */
}

.news-image img {
    width: 100%;
    height: auto;
    object-fit: cover;  /* Croppen */
    object-position: center center; /* Focus op het midden */
    transition: transform 0.3s ease-in-out; /* Soepel inzoomen */
}

.news-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    min-height: 200px; /* Zorgt ervoor dat het niet te klein wordt */
}

.news-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


.news-item h3 {
    display: flex;
    align-items: center;
    gap: 10px; /* Ruimte tussen titel en datum */
    flex-wrap: wrap; /* Zorgt dat het netjes blijft op kleinere schermen */
}

.news-item h3 a {
    color: #E1E471; /* Kleur zoals eerder ingesteld */
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.news-item .news-date {
    font-size: 16px;
    color: #aaa; /* Maak de datum iets subtieler */
    font-weight: normal;
    white-space: nowrap; /* Voorkomt dat de datum naar een nieuwe regel springt */
}

.news-item p {
    font-size: 16px;
    color: #ddd;
    line-height: 1.6;
}

.news-item {
    position: relative;
}

.news-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% - 120px); /* Pas de breedte van de border aan (knop breedte) */
    border-bottom: 2px dotted #E1E471;
}

.read-more {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #E1E471;
    color: black;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    border-radius: 3px;
    transition: background 0.3s ease-in-out;
    float: right;
}

.read-more:hover {
    background: #d1cc3a;
}

/* News sectie mobile responsiveness */
@media (max-width: 768px) {
    .news-section {
        padding: 40px 0;
    }
    
    .news-container {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .news-image,
    .news-content {
        width: 100%;
    }
    
    .news-image {
        order: 2;
        height: 250px;
        margin-top: 20px;
    }
    
    .news-content {
        order: 1;
        padding: 20px 0;
    }
}


/* =========================== */
/* ====== Footer ====== */
/* =========================== */


.footer-wrapper {
    background-color: #E1E471; /* Gele achtergrond over de volledige breedte */
    padding: 20px 0;
}

.footer {
    max-width: 1200px; /* Houdt de content op 1200px breed */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* Algemene styling van de kolommen */
.footer-column {
    flex: 1;
    padding: 10px;
}

/* Centreer het copyright */
.footer-column.center {
    text-align: center;
    flex: 2;
}

/* LinkedIn knop rechts uitlijnen */
.footer-column.right {
    text-align: right;
    flex: 1;
}

.footer-column.left {
    flex: 1;
    text-align: left;
}

/* Stijl voor bedrijfsnaam */
.footer-column.left h2 {
    font-size: 20px;
    font-weight: bold;
}

/* Stijl voor copyright */
.footer-column.center p {
    font-size: 14px;
    color: #333;
}

/* Stijl voor het footer-menu */
.footer-menu {
    margin-bottom: 10px; /* Ruimte tussen menu en copyright */
}

.footer-nav {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-nav li {
    display: inline;
}

.footer-nav a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.footer-nav a:hover {
    color: #444;
}

/* Stijl voor LinkedIn knop */
.footer-column.right a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    background: black;
    color: white;
    border-radius: 3px;
    transition: background 0.3s ease-in-out;
}

.footer-column.right a:hover {
    background: #444;
}

/* LinkedIn icoon */
.footer-column.right a img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Footer mobile responsiveness */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-column {
        flex: none;
        width: 100%;
    }
    
    .footer-column.left,
    .footer-column.center,
    .footer-column.right {
        text-align: center;
        flex: none;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-column.right a {
        display: inline-flex;
        justify-content: center;
    }
}