html, body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
margin: 0;
display: flex;
flex-direction: column;
}

.default-color {
  color: #787878 !important;
}

.space{
  margin-top: 40px !important;
}

header{
   padding-top: var(--bs-navbar-height, 100px);
}

header button {
  color: #787878 !important; /* Grey links */
}

/* Navbar background */
.navbar {
  background-color: #2f2f2f !important; /* Override Bootstrap defaults */
}

.navbar-brand img {
  display: block;
}

/* Navbar links */
.navbar .nav-link {
  color: #787878 !important; /* Grey links */
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #ffffff !important; /* White on hover for contrast */
}

/* Brand logo */
.navbar-brand img {
  max-height: 75px;
  height: auto;
}

/* Mobile menu background */
.navbar-collapse {
  background-color: #2f2f2f;
  text-align: center;
}

/* Hamburger icon */
.navbar-toggler {
  border: none;
}

/* Default hamburger color */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(120,120,120,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/ %3E%3C/svg%3E");
}

/* Change color on hover */
.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/ %3E%3C/svg%3E");
}

/* Default hamburger color */
.navbar-toggler .navbar-toggler-icon {
    background-color: #787878; /* This works if you replace the SVG with a simple background color */
    mask: url("data:image/svg+xml;charset=UTF-8,<svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'><path stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>") no-repeat center;
    -webkit-mask: url("data:image/svg+xml;charset=UTF-8,<svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'><path stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>") no-repeat center;
}

/* Hover effect */
.navbar-toggler:hover .navbar-toggler-icon {
    background-color: #ffffff;
}


section {
padding: 20px;
max-width: 1000px;
margin: auto;
}
h2 {
color: #2f2f2f;
border-bottom: 2px solid #ccc;
padding-bottom: 10px;
}
.service-img {
width: 100%;
margin: 20px 0;
}
form input, form textarea, form button {
display: block;
width: 100%;
margin-bottom: 15px;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
form button {
background-color: #2f2f2f;
color: white;
border: none;
cursor: pointer;
}
form button:hover {
background-color: #2f2f2f;
}

/* Footer background to match header */
footer {
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: #2f2f2f !important;
  color: #ffffff; /* Keep text readable */
}

/* Footer links (phone & socials) */
footer a {
  color: #787878; /* Grey links to match navbar */
  transition: color 0.3s ease;
  text-decoration: none;
}

footer p {
    color: #787878; /* Grey links to match navbar */
}

footer p a {
    color: #787878; /* Grey links to match navbar */
}

footer a:hover {
  color: #ffffff; /* White on hover */
}

/* SVG icons */
footer svg {
  fill: #787878;
  transition: fill 0.3s ease;
}

footer a:hover svg {
  fill: #ffffff;
}

/* Responsiveness */
@media (max-width: 768px) {
  .container {
  flex-direction: column;
  }

  /* Footer styling stays the same */
  footer {
    background-color: #2f2f2f;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
  }

}

 .tiles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
  }

  /* Place 2 tiles on second row spanning columns */
  .tile:nth-child(4),
  .tile:nth-child(5) {
    grid-column: span 1;
  }

  @media (max-width: 900px) {
    .tiles-container {
      grid-template-columns: repeat(2, 1fr);
    }
    .tile:nth-child(4),
    .tile:nth-child(5) {
      grid-column: span 1;
    }

      .navbar-collapse {
    padding: 1rem 0;
  }
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }


  }

  @media (max-width: 600px) {
    .tiles-container {
      grid-template-columns: 1fr;
    }
  }

  .tile {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .tile img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
  }

  .tile-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: opacity 0.3s;
  }

  .tile:hover .tile-text {
    opacity: 1;
  }

  .tile-text h3 {
    margin: 0 0 10px;
  }

  .tile-text p {
    margin: 0;
    font-size: 0.95rem;
  }

/* ------------------- */
/* Extra Fancy Styling */
/* ------------------- */
.container.my-5 h2::after {
  content: "";
  display: block;
  width: 60px; /* or 50px in the professional version */
  height: 4px; /* thickness of the line */
  margin-top: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, #787878);
}

/* Remove unnecessary pseudo-elements */
.container.my-5 h2::before {
  content: none;
}

.container.my-5 h2,
.container.my-5 p {
  border: none; /* remove any borders */
  box-shadow: none; /* remove shadows if any */
  background: none; /* remove background colors */
}

/* HERO CONTAINER */
.hero-container {
  position: relative;
  width: 100%;
  min-height: 85vh;
  background: url('../welkom.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* align content to the right side */
  overflow: hidden;
  animation: fadeInBg 3s ease-in-out forwards;
  padding-right: 16vw; /* space from right edge */
}


/* RESPONSIVE TEXT SCALING */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* BACKGROUND ZOOM ANIMATION */
@keyframes fadeInBg {
  0% {
    opacity: 0.6;
    background-size: 105%;
  }
  100% {
    opacity: 1;
    background-size: 115%;
  }
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* TEXT CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: right; /* align text to the right */
  max-width: 40%; /* limit width for balance next to logo */
}

.hero-content h1,
.hero-content p {
  margin: 25px;
}

.hero-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.5s ease forwards;
}

.hero-fade:nth-child(1) { animation-delay: 0.3s; }
.hero-fade:nth-child(2) { animation-delay: 0.6s; }
.hero-fade:nth-child(3) { animation-delay: 0.9s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* QUOTE STYLE */
.hero-quote {
  font-style: italic;
  font-weight: 400;
}

/* TEXT SIZE */
h1 {
  font-size: 3rem;
}

p {
  font-size: 1.2rem;
}

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */
/* 1080p */
@media (max-width: 1920px) {
  .hero-content h1 {
        margin: 0px 5px 10px 5px;
  }
  .hero-content p {
    margin: 20px 5px 5px 5px
  }
}


/* Tablets */
@media (max-width: 1024px) {
  .hero-container {
        background-position: top center; /* align image to top */
    justify-content: center; /* center text on smaller screens */
    padding-right: 0;
min-height: 68vh;
  }

  .hero-content {
    text-align: center;
    max-width: 80%;
  }

  .hero-content h1{
    font-size: 10;
  }

  h1 {
    margin:0;
    font-size: 2.2rem;
  }

  #overons {
    width: 100%;
  padding: 80px 0px 80px 0px !important;
  }
}


@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* Phones */
@media (max-width: 768px) {
  .hero-container {
        background-position: top center; /* align image to top */
    justify-content: center;
min-height: 49vh;
    background-position: center top;
  }

  

  .hero-content {
    text-align: right;
    max-width: 90%;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }

    .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-container {
    min-height: 40vh;
    background-position: top center; /* align image to top */
  }

  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 0.9rem;
  }

    .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }

    #overons {
    width: 100%;
  padding: 30px 0px 80px 0px !important;
  }
}

#sendButton {
  background-color: #787878;
  color: white;
}
/* Section backgrounds */

#overons {
  width: 100%;
  padding: 150px 0px 80px 0px; /* enough vertical space for smooth scrolling */
}


#watdoenwe, #contact {
  width: 100%;
  padding: 80px 0; /* enough vertical space for smooth scrolling */
}

/* Alternating background colors */

#overons {
  background-color: white;
  color: #787878; /* white text for readability */
}

#watdoenwe {
  background-color: #787878;
  color: white;
}

#contact {
  background-color: white;
  color: #787878; /* dark text for readability */
}

/* start hidden */
.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

/* visible state */
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Wat we doen tile styling --- */
#onzediensten {
  background-color: #787878;
  color: white;
  padding: 80px 0 120px 0; /* extra bottom space added */
}

/* Tiles with border and spacing */
#onzediensten .tile {
  border: 1px solid rgba(255, 255, 255, 0.2); /* subtle light border */
  border-radius: 12px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2); /* slight overlay for contrast */
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 40px; /* space between rows */
}

/* Tile hover effect */
#onzediensten .tile:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Images inside tiles */
#onzediensten .tile img {
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Tile titles */
#onzediensten .tile h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: #787878;
}

/* Tile text */
#onzediensten .tile p {
  color: #787878;
  font-weight: 300;
  line-height: 1.6;
}

  /* Button styling */
  #sendButton {
    background-color: #787878;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  #sendButton:hover {
    background-color: #5f5f5f;
  }

