/* --------------------------------------------------
   FONTS
-------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

/* --------------------------------------------------
   GLOBAL RESETS
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* --------------------------------------------------
   CSS VARIABLES
-------------------------------------------------- */
:root {
  /* Fonts */
  --FF: "Bebas Neue", sans-serif;

  /* Colors */
  --COLOR: #d9aa47;
  --ALT-COLOR: whitesmoke;
  --BGCOL: #0a0b09;
  --ALT-BG-COL: #333;
  --GRAD-COL: #d9aa47;
  --ALT-GRAD-COL: #edc87d;

  /* Font Sizes */
  --font-xs: 0.5rem;
  --font-sm: 0.75rem;
  --font-base: 1rem;
  --font-lg: 1.5rem;
  --font-xl: 2rem;
  --font-xxl: 3rem;
  --font-title: 5rem;
}

/* --------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------- */
body {
  font-family: var(--FF);
  background-color: var(--BGCOL);
  color: var(--COLOR);
  font-size: var(--font-base);
  letter-spacing: 0.1rem;
}

h1 {
  font-size: var(--font-xxl);
}
h2 {
  font-size: var(--font-xl);
}
h3 {
  font-size: var(--font-lg);
}
blockquote {
  font-size: var(--font-lg);
  margin: 0 auto;
  text-wrap: pretty;
  max-width: 60ch;
  width: 90%;
}

.gradient-text {
  background: linear-gradient(
    to bottom,
    var(--GRAD-COL) 30%,
    var(--ALT-GRAD-COL) 50%,
    var(--GRAD-COL) 70%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.bold {
  font-weight: bold;
}

/* --------------------------------------------------
   LAYOUT: HEADER & NAVIGATION
-------------------------------------------------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 100px;
  border-bottom: 1px solid var(--ALT-GRAD-COL);
  position: relative;
}

.main_title {
  font-size: var(--font-title);
  font-weight: bold;
  letter-spacing: 0.5rem;
  text-align: center;
}

.contact-btn {
  background: linear-gradient(
    to bottom,
    var(--GRAD-COL) 30%,
    var(--ALT-GRAD-COL) 50%,
    var(--GRAD-COL) 70%
  );
  color: var(--BGCOL);
  border: 2px solid var(--BGCOL);
  font-size: var(--font-lg);
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
}

.contact-btn:hover {
  background: var(--BGCOL);
  color: var(--COLOR);
  border: 2px solid var(--COLOR);
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--COLOR);
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1100;
}

/* Mobile menu wrapper */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 0;
  background-color: var(--BGCOL);
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  z-index: 1000;
}

.mobile-nav nav a {
  display: block;
  padding: 1rem 0;
  font-size: var(--font-lg);
  border-top: 1px solid var(--ALT-GRAD-COL);
}

.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  padding: 15px;
  gap: 10px 0;
  border-bottom: 1px solid var(--ALT-GRAD-COL);
  background: var(--BGCOL);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav a {
  color: var(--GRAD-COL);
  padding: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  border-left: 1px solid var(--COLOR);
  letter-spacing: 0.1rem;
  font-size: var(--font-lg);
}

nav a:first-child {
  border: none;
}

nav a:hover {
  color: var(--ALT-GRAD-COL);
}

nav a:active {
  text-decoration: underline;
}

.header-link {
  text-decoration: none;
}

/* --------------------------------------------------
   MAIN CONTENT SECTIONS
-------------------------------------------------- */
main {
  text-align: center;
  padding: 5vh 0 10vh 0;
}

section {
  padding-bottom: 5vh;
}

/* Intro Section */
#intro {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0 50px;
}

.profile-picture {
  border-radius: 50%;
}

.intro-text {
  max-width: 50%;
}

.intro-text h1 {
  font-size: var(--font-xxl);
  margin-bottom: 10px;
}

.intro-text blockquote {
  text-align: left;
}

.intro-text em {
  line-height: 200%;
}

/* Services Section */
.slide-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 25px;
}

.service-card {
  position: relative;
  width: 300px;
  height: 400px;
  overflow: hidden;
  border-radius: 3%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}

.service-card-text h4 {
  position: absolute;
  bottom: -85%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--COLOR);
  width: 100%;
  padding: 15px 0 10px 0;
  font-size: var(--font-lg);
  transition: transform 0.3s ease-in-out;
  height: 100%;
}

.service-card-text p {
  position: absolute;
  top: 100%;
  width: 100%;
  color: var(--ALT-COLOR);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  line-height: 2em;
  padding: 5px;
}

.service-card:hover .service-card-text h4 {
  transform: translateY(-200px);
}

.service-card:hover .service-card-text p {
  transform: translateY(-175px);
  opacity: 1;
}

.service-card:hover img {
  transform: scale(1.1);
}

/* Quote Call-To-Action Section */
.get-quote h1 {
  margin-bottom: 40px;
}

.get-quote .contact-btn {
  font-size: var(--font-xl);
  padding: 20px 40px;
}

/* Title Sections */
.title-section h1 {
  padding-bottom: 0.5rem;
}

/* Image Gallery */
.gallery-container {
  margin: 1rem;
}

.gallery-section h1 {
  display: flex;
  justify-self: center;
  justify-content: center;
  width: 25%;
  border-bottom: 5px solid var(--GRAD-COL);
}

.gallery-scroll {
  max-height: 70vh;
  overflow-y: auto;
  padding: 0px 1.5rem 0px 1rem;
  margin: 1rem;
}

.scrollbar {
  scrollbar-color: var(--GRAD-COL) transparent;
  scrollbar-width: 0.5rem;
}

.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 100%;
}

.gallery-nav-btn {
  position: relative;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    var(--GRAD-COL) 30%,
    var(--ALT-GRAD-COL) 50%,
    var(--GRAD-COL) 70%
  );
  border: 2px solid var(--BGCOL);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: var(--BGCOL);
}

.gallery-nav-btn:hover {
  background: var(--BGCOL);
  border-color: var(--COLOR);
  color: var(--COLOR);
  transform: scale(1.1);
}

.gallery-nav-btn:active {
  transform: scale(0.95);
}

.gallery-nav-btn svg {
  width: 24px;
  height: 24px;
}

.gallery-slider {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  scroll-behavior: smooth;
  flex: 1;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
}

.gallery-slider > img,
.gallery-slider > .comparison-container {
  height: 50vh;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  border-radius: 8px;
  scroll-snap-align: start;
}

.gallery-slider .comparison-container img {
  height: 50vh;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  border-radius: 8px;
}

.gallery-mosaic {
  column-count: 3;
  column-gap: 1rem;
  padding: 1rem;
}

/* Static images in the gallery */
.gallery img,
.gallery .comparison-container {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
  display: block;
}

/* Hover scaling for gallery images and comparison boxes */
.gallery img:hover,
.gallery-slider img:hover,
.comparison-container:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease-in-out, opacity 0.5s ease-in-out;
}

/* Comparison container (before/after or slideshow) */
.comparison-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.gallery-slider .comparison-container {
  height: 50vh;
  width: auto;
  max-width: 500px;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

/* All images inside the comparison container */
.comparison-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none; /* Prevent accidental hover on invisible images */
}

.project-container {
  max-height: 45vh;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.project-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 100%;
}

.project-images {
  max-height: 100%;
  max-width: 60%;
}

.project-images .gallery-slider {
  padding: 0;
  padding-bottom: 5px;
  height: 100%;
  border-radius: 8px;
}

.project-images .gallery-slider img {
  height: 100%;
  width: auto;
}

.project-subtitle {
  display: flex;
  align-items: center;
}

.project-description ul {
  list-style: disc;
  text-align: start;
}

.project-description li {
  text-align: start;
}

.project-columns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#overlaging-donk, #schoorsteen-adegem {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 60vh;
  height: 60vh;
  gap: 1rem;
  padding: 1rem;
}

#overlaging-donk .project-images, #schoorsteen-adegem .project-images {
  height: 75%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

#overlaging-donk img, #schoorsteen-adegem img {
  border-radius: 8px;
  height: 100%;
  max-height: 500px;
  max-width: 400px;
}

.horizontal-line {
  background-color: var(--COLOR);
  width: 2px;
  height: 50px;
  border-radius: 1px;
}

.location-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='red' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5S13.38 11.5 12 11.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* --------------------------------------------------
   FORM
-------------------------------------------------- */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  border: 4px solid var(--GRAD-COL);
  border-radius: 12px;
}

/* Labels */
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--COLOR);
}

/* Inputs and textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--GRAD-COL);
  border-radius: 8px;
  transition: border-color 0.3s;
}

.contact-form textarea {
  padding-bottom: 5rem;
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus {
  border-style: dashed;
  outline: none;
}

/* Submit button */
.contact-form button {
  cursor: pointer;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  text-align: center;
  padding: 15px 0;
  font-size: var(--font-sm);
  background-color: var(--ALT-BG-COL);
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  padding: 0 1rem;
  font-size: var(--font-base);
  text-align: center;
}

.footer-column h3 {
  letter-spacing: 0.2rem;
  margin-bottom: 1rem;
  color: var(--COLOR);
  text-align: center;
}

ul {
  list-style: none;
  margin: 10px 0 0 0;
}

li {
  text-align: center;
}

li a {
  text-decoration: none;
  color: var(--COLOR);
}

/* Footer Column Specific Styling */
.footer-info,
.footer-contact {
  text-align: center;
}

.footer-info .footer-nap p,
.footer-contact .footer-contact-info p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.footer-contact .footer-contact-info a {
  color: var(--COLOR);
  text-decoration: none;
}

.footer-contact .footer-contact-info a:hover {
  color: var(--ALT-GRAD-COL);
  text-decoration: underline;
}

.business-name {
  font-size: var(--font-xl);
  margin-bottom: 0.5rem !important;
  margin-top: 1.5rem !important;
  color: var(--COLOR);
}

.business-address,
.business-phone,
.business-email,
.business-vat,
.business-region {
  margin: 0.5rem 0;
  color: var(--COLOR);
  line-height: 1.6;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--BGCOL);
  color: var(--COLOR);
  transition: all 0.3s ease;
  border: 2px solid var(--COLOR);
}

.social-links a:hover {
  background: linear-gradient(
    135deg,
    var(--GRAD-COL),
    var(--ALT-GRAD-COL)
  );
  color: var(--BGCOL);
  border-color: var(--ALT-GRAD-COL);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(217, 170, 71, 0.3);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

li a:hover {
  text-decoration: underline;
}

.credits {
  font-size: var(--font-xs);
  text-align: right;
  padding: 0px 10px;
  color: rgba(255, 255, 255, 0.4);
}
/* -------------------------------------------
   RESPONSIVE DESIGN: MOBILE OPTIMIZATIONS
-------------------------------------------- */

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .logo {
    display: block;
    margin: 0 auto;
  }

  .main_title,
  #header-btn {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* Mobile nav wrapper slides in from the right */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -250px; /* hidden off screen */
    height: 100vh;
    width: 250px;
    background-color: var(--BGCOL, #0a0b09);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding-top: 50px; /* space for the header */
    transition: right 0.3s ease-in-out;
    z-index: 1500;
    border: 1px solid var(--COLOR);
  }

  .mobile-nav img {
    padding: 0 1.5rem;
    margin: 0 0 2rem 0;
  }

  /* Show menu by sliding it in */
  .mobile-nav.show {
    display: flex;
    right: 0;
  }

  /* Mobile nav links styling */
  .mobile-nav nav a {
    padding: 1.5rem 2rem;
    font-size: var(--font-lg, 1.5rem);
    border-bottom: 1px solid var(--ALT-GRAD-COL, #edc87d);
    color: var(--COLOR, #d9aa47);
    text-decoration: none;
  }

  .mobile-nav nav a:hover {
    color: var(--ALT-GRAD-COL, #edc87d);
  }
  nav.desktop-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }

  .nav-container {
    display: none;
  }

  nav a {
    font-size: var(--font-base);
    border: none;
    padding: 0.5rem 0;
  }

  #intro {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .intro-text {
    max-width: 90%;
  }

  h1 {
    font-size: var(--font-xl);
  }

  h2 {
    font-size: var(--font-lg);
  }

  h3 {
    font-size: var(--font-base);
  }

  blockquote {
    font-size: var(--font-base);
  }

  .service-card {
    width: 90%;
    height: auto;
  }

  .gallery-mosaic {
    column-count: 2;
    padding: 0;
  }

  .gallery-scroll {
    padding: 0 0.75rem 0 0;
  }

  .scrollbar {
    scrollbar-width: 0.75rem;
  }

  .contact-form {
    padding: 1rem;
    width: 90%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .footer-column {
    padding: 0;
    width: 100%;
    max-width: 400px;
  }

  .footer-column h3 {
    font-size: var(--font-lg);
  }

  .get-quote {
    padding: 0 2rem;
  }

  /* Project containers - mobile layout */
  .project-container {
    flex-direction: column;
    max-height: none;
    padding: 2.5rem 1rem;
    gap: .25rem;
  }

  .project-text {
    max-height: none;
    width: 100%;
    text-align: center;
    display: contents; /* Makes children direct children of project-container */
  }

  .project-text h2 {
    order: 1; /* Title first */
    width: 100%;
    margin-bottom: 0.15rem;
  }

  .project-subtitle {
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem 0;
    order: 2; /* Location second */
    width: 100%;
  }

  .project-images {
    max-width: 100%;
    width: 100%;
    max-height: none;
    order: 3; /* Images third */
  }

  .project-description {
    text-align: center;
    padding: 1.5rem 1.5rem 0;
    order: 4; /* Description last */
    width: 100%;
    text-align: left;
  }

  .project-description ul {
    list-style: disc;
    text-align: left;
  }

  .project-description li {
    text-align: left;
  }

  .project-images .gallery-slider {
    height: auto;
    max-height: 50vh;
  }

  .project-images .gallery-slider img {
    height: 45vh;
    width: auto;
  }

  /* Special layout for small projects */
  .project-columns {
    flex-direction: column;
  }

  #overlaging-donk, #schoorsteen-adegem {
    max-height: none;
    height: auto;
    padding: 2rem 1rem;
    gap: 0.25rem;
  }

  #overlaging-donk .project-images, #schoorsteen-adegem .project-images {
    height: auto;
    flex-direction: column;
    width: 100%;
  }

  #overlaging-donk img, #schoorsteen-adegem img {
    height: auto;
    width: 100%;
    max-height: none;
    max-width: 100%;
  }

  .horizontal-line {
    display: none;
  }

  /* Gallery navigation buttons - smaller on mobile */
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
  }

  .gallery-nav-btn svg {
    width: 20px;
    height: 20px;
  }

  .gallery-wrapper {
    gap: 0.5rem;
  }
}
