/* ================== VARIABLES ================== */
:root {
  --green-dark: #1f3226; /* Dark background green resembling black */
  --green-primary: #2D5A27; /* Forest Green */
  --green-lime: #8cc63f; /* Bright lime accent */
  --green-lime-hover: #7db831;
  --cream-light: #F7F3EC;
  --white: #ffffff;
  --text-dark: #333333;
  --grey-light: #f5f5f5;

  --font-main: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ================== RESET ================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }

.container { width: 90%; max-width: 1250px; margin: 0 auto; }

/* UTILS */
.dark-green-bg { background-color: var(--green-dark); color: var(--white); }
.light-bg { background-color: var(--grey-light); }
.text-lime { color: var(--green-lime); }
.text-lime-dark { color: var(--green-primary); font-weight: 700; }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2.5rem; }
.mb-5 { margin-bottom: 3.5rem; }

h1, h2, h3, h4 { font-family: var(--font-main); line-height: 1.2; font-weight: 800; }
h1 { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--green-dark); text-transform: uppercase; }
h1 span { color: var(--green-primary); }
h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--green-dark); text-transform: uppercase;}
.dark-green-bg h2, .dark-green-bg h3 { color: var(--white); }
p { margin-bottom: 1rem; font-size: 1.05rem; }

.sub-title {
  color: var(--green-primary);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-weight: 700;
  display: block;
}

/* ================== BUTTONS ================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}
.btn-square { clip-path: none; border-radius: 4px; }
.btn-primary { background-color: var(--green-primary); color: var(--white); }
.btn-primary:hover { background-color: var(--green-dark); }

.btn-lime { background-color: var(--green-lime); color: var(--green-dark); }
.btn-lime:hover { background-color: var(--green-lime-hover); }

.btn-outline { background-color: transparent; color: var(--green-primary); border: 2px solid var(--green-primary); clip-path: none; border-radius: 4px; padding: 0.9rem 2rem; }
.btn-outline:hover { background-color: var(--green-primary); color: var(--white); }

.btn-full { width: 100%; display: block; text-align: center; }

/* ================== TOP BAR & HEADER ================== */
.top-bar { background-color: var(--cream-light); color: var(--green-dark); font-size: 0.85rem; font-weight: 600; padding: 0.5rem 0; border-bottom: 1px solid #e0dfdb;}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-contact span { margin-left: 1.5rem; }

.site-header { background-color: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo-wrapper { height: 60px; }
.logo-wrapper img { object-fit: contain; }

.main-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;}
.main-nav a { font-family: var(--font-main); font-weight: 700; font-size: 0.95rem; color: var(--green-dark); padding: 0.5rem 0; position: relative; display: block; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background-color: var(--green-primary); transition: width 0.3s; }
.main-nav a:hover::after { width: 100%; }

/* Dropdown */
.main-nav li { position: relative; }
.main-nav .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 220px; z-index: 200; flex-direction: column; gap: 0; border-radius: 4px;
}
.main-nav .dropdown:hover .dropdown-menu { display: flex; }
.main-nav .dropdown-menu li { width: 100%; }
.main-nav .dropdown-menu a { padding: 1rem 1.5rem; display: block; width: 100%; text-transform: uppercase;}
.main-nav .dropdown-menu a::after { display: none; }
.main-nav .dropdown-menu a:hover { background-color: var(--grey-light); color: var(--green-primary); }

.mobile-toggle { display: none; background: none; border: none; width: 30px; height: 21px; position: relative; z-index: 110; cursor: pointer;}
.mobile-toggle span { display: block; width: 100%; height: 3px; background: var(--green-dark); position: absolute; transition: var(--transition); }
.mobile-toggle span:nth-child(1) { top: 0; } .mobile-toggle span:nth-child(2) { top: 9px; } .mobile-toggle span:nth-child(3) { top: 18px; }

/* ================== HERO SECTION ================== */
.hero-poly { padding: 4rem 0 10rem 0; position: relative; background-image: radial-gradient(circle at top right, var(--cream-light) 0%, var(--white) 60%); }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 4rem; }

.hero-content { width: 45%; }
.google-rating-widget {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background-color: var(--white); padding: 0.5rem 1rem;
  border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem; font-size: 0.85rem; font-family: var(--font-main);
  border: 1px solid #f0f0f0;
}
.google-icon { width: 18px; height: 18px; }
.rating-stars { color: #fbbc05; letter-spacing: 2px; font-size: 1.1rem;}

.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; }

.hero-image-wrapper { 
  width: 55%; height: 600px; position: relative; 
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  border-bottom: 12px solid var(--green-primary); /* Poly bottom edge */
}
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* ================== MINI HERO (SUBPAGES) ================== */
.mini-hero {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 8px solid var(--green-lime);
}
.mini-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.mini-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.mini-hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(31, 50, 38, 0.75); /* Dark green tint */
  z-index: 2;
}
.mini-hero-content {
  position: relative;
  z-index: 3;
}
.mini-hero-content h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 3rem;
}

/* ================== FLOATING BANNER ================== */
.floating-banner-wrapper { position: relative; z-index: 10; margin-top: -6rem; }
.floating-banner {
  padding: 3rem 4rem; border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
}
.form-banner h3 { color: var(--green-lime); text-transform: uppercase; text-align: center; margin-bottom: 1.5rem; font-size: 1.6rem; }
.banner-form { display: flex; flex-direction: column; gap: 1rem; justify-content: center; width: 100%;}
.form-row { display: flex; gap: 1.5rem; width: 100%; }
.banner-form input {
  flex: 1; padding: 1rem 1.5rem; font-family: var(--font-body);
  border: none; border-radius: 2px;
}
.banner-form .msg-input { flex: 2; }

/* ================== REVIEWS ================== */
.mt-banner { padding-top: 8rem; }
.reviews-section { padding-bottom: 6rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.review-poly-card {
  padding: 2.5rem;
  border-radius: 6px;
  transition: transform 0.3s;
}
.review-poly-card:hover { transform: translateY(-5px); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1);}
.google-g { color: #fff; font-family: 'Open Sans', sans-serif; font-weight: 800; font-size: 1.4rem; }
.review-poly-card p { font-style: italic; font-size: 0.95rem; color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.reviewer { display: flex; align-items: center; gap: 1rem; }
.r-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-lime); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-weight: bold; }
.reviewer span { font-weight: 700; font-family: var(--font-main); text-transform: uppercase; font-size: 0.9rem; }

/* ================== ABOUT SECTION ================== */
.about-section { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image-poly {
  position: relative; height: 500px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  padding: 10px; background-color: var(--green-primary);
}
.about-image-poly img {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.about-content p { color: #555; }

/* ================== SERVICES ================== */
.services-section { padding: 6rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; margin-top: 3rem; }
.services-grid .service-cut-card:nth-child(1),
.services-grid .service-cut-card:nth-child(2),
.services-grid .service-cut-card:nth-child(3) { grid-column: span 2; }
.services-grid .service-cut-card:nth-child(4) { grid-column: 2 / span 2; }
.services-grid .service-cut-card:nth-child(5) { grid-column: 4 / span 2; }

.service-cut-card {
  display: flex; flex-direction: column; overflow: hidden;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
  transition: transform 0.3s;
}
.service-cut-card:hover { transform: translateY(-10px); }
.service-img-wrap { height: 200px; }
.service-details { padding: 2rem 1.5rem; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.service-details h3 { font-size: 1.1rem; color: var(--green-lime); letter-spacing: 1px; }
.service-details p { font-size: 0.9rem; color: rgba(255,255,255,0.7); flex: 1; }
.service-link { font-family: var(--font-main); font-weight: 700; font-size: 0.85rem; color: var(--white); margin-top: 1rem; }
.service-link:hover { color: var(--green-lime); }

/* ================== GALLERY ================== */
.gallery-section { padding: 6rem 0; }
.poly-gallery-grid {
  column-count: 3; column-gap: 1.5rem;
}
.gallery-item-sq { display: inline-block; overflow: hidden; position: relative; border-radius: 4px; width: 100%; margin-bottom: 1.5rem; }
.gallery-item-sq.portrait { }
.gallery-item-sq img { transition: transform 0.5s; width: 100%; height: auto; display: block; }
.gallery-item-sq:hover img { transform: scale(1.02); }

/* ================== FEATURES / WHY CHOOSE US ================== */
.features-split-section { padding: 5rem 0; background-image: radial-gradient(circle at center, var(--cream-light) 0%, var(--white) 100%); }
.features-poly-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-poly-card {
  padding: 4rem 2.5rem 2.5rem 2.5rem; position: relative; text-align: center;
  border-radius: 6px; border-bottom: 4px solid var(--green-lime);
}
.feature-icon {
  position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 60px; border-radius: 50%; 
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; border: 4px solid var(--white);
}
.feature-poly-card h3 { color: var(--green-lime); margin-top: 1rem; font-size: 1.2rem; }
.feature-poly-card p { font-size: 0.95rem; color: rgba(255,255,255,0.8); }

/* ================== CONTACT SECTION ================== */
.contact-section { padding: 6rem 0; }
.poly-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-form-card {
  padding: 4.5rem 3.5rem 3.5rem 3.5rem;
  border-radius: 6px;
}
.main-form input, .main-form select, .main-form textarea {
  width: 100%; padding: 1rem; margin-bottom: 1rem;
  border: none; font-family: var(--font-body);
}

.contact-details { margin-top: 2rem; }
.contact-details li { margin-bottom: 1rem; font-size: 1.05rem; }

/* ================== FOOTER ================== */
.site-footer { background-color: var(--grey-light); padding-top: 4rem; border-top: 1px solid #ddd; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-logo { height: 60px; object-fit: contain; mix-blend-mode: multiply; }
.footer-brand p { color: #666; font-size: 0.95rem; max-width: 350px;}
.footer-nav h3, .footer-diensten h3 { color: var(--green-dark); margin-bottom: 1.5rem; text-transform: uppercase; font-size: 1.1rem; }
.site-footer ul li { margin-bottom: 0.8rem; }
.site-footer ul a { color: #555; }
.site-footer ul a:hover { color: var(--green-primary); }

.footer-bottom { background-color: var(--green-dark); color: var(--white); padding: 1.5rem 0; font-size: 0.85rem; }
.fb-flex { display: flex; justify-content: space-between; align-items: center; }
.fb-flex a { color: var(--green-lime); margin-left: 1rem; }

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
  .hero-container, .about-grid, .poly-contact-grid { flex-direction: column; grid-template-columns: 1fr; gap: 2rem; }
  .hero-content, .hero-image-wrapper { width: 100%; }
  .hero-image-wrapper { height: 400px; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
  .floating-banner-wrapper { margin-top: -3rem; }
  .banner-form, .form-row { flex-direction: column; width: 100%; }
  .floating-banner { padding: 2rem 1.5rem; }
  .reviews-grid, .features-poly-grid, .services-grid { grid-template-columns: 1fr; }
  .review-poly-card, .service-cut-card, .feature-poly-card, .floating-banner, .btn, .contact-form-card { clip-path: none; }
  .contact-form-card { padding: 2.5rem 1.5rem; }
  .poly-gallery-grid { column-count: 1; }
  .gallery-item-poly { clip-path: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .fb-flex { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 768px) {
  .top-bar, .nav-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 90px; left: 0; right: 0; background: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.1); padding: 1.5rem 0; z-index: 150;}
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 1rem; }
  .main-nav .dropdown-menu { position: relative; top: 0; background: transparent; box-shadow: none; min-width: 100%; text-align: center; display: none; }
  .main-nav .dropdown:hover .dropdown-menu { display: block; }
  .mobile-toggle { display: block; }
  .logo-wrapper { position: relative; z-index: 200; }
  .hero-poly { padding-top: 2rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .contact-form-card h2 { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
}

.mobile-only-cta { display: none; }
@media (max-width: 768px) {
    .mobile-only-cta { display: block; width: 80%; text-align: center; margin-top: 1rem; }
    .mobile-only-cta .btn { width: 100%; display: inline-block; padding: 12px 20px; font-size: 14px; color: #ffffff !important; }
}


@media (max-width: 768px) {
    .mini-hero-content h1 {
        font-size: 1.8rem;
    }
}

/* FIX OVERFLOW */
.floating-banner-wrapper,
.floating-banner {
    overflow: hidden;
}

/* FIX MINI HERO TITEL MOBIEL */
@media (max-width: 768px) {
    .mini-hero-content h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
        word-break: break-word;
    }
    
    .mini-hero {
        height: 250px;
    }
}

/* FIX TABLET */
@media (max-width: 1024px) {
    .mini-hero-content h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .floating-banner-wrapper {
        margin-top: 0;
    }
    
    .floating-banner {
        border-radius: 0;
    }
}




@media (max-width: 768px) {
    .dropdown-menu.open {
        display: block !important;
    }
}

.gallery-item-sq {
    cursor: default;
    pointer-events: none;
}

/* WERKGEBIED GRID - eigen structuur, los van service-cut-card */
.werkgebied-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.werkgebied-card {
    background-color: #1f3a2b; /* dark-green */
    color: #c8e85a; /* lime */
    text-decoration: none;
    padding: 1.75rem 1rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.werkgebied-card:hover {
    background-color: #2a4d3a;
    transform: translateY(-3px);
}

.werkgebied-card span {
    line-height: 1.2;
    word-break: break-word;
}

/* Tablet */
@media (max-width: 992px) {
    .werkgebied-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobiel */
@media (max-width: 600px) {
    .werkgebied-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .werkgebied-card {
        padding: 1.25rem 0.5rem;
        font-size: 0.8rem;
        min-height: 55px;
    }
}

/* FORCE: services 1 per rij op mobiel */
@media (max-width: 768px) {
    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .services-grid .service-cut-card,
    .services-grid .service-cut-card:nth-child(1),
    .services-grid .service-cut-card:nth-child(2),
    .services-grid .service-cut-card:nth-child(3),
    .services-grid .service-cut-card:nth-child(4),
    .services-grid .service-cut-card:nth-child(5) {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
}

/* FIX: voorkom horizontaal scrollen op mobiel */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .container {
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    img, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .top-bar-inner,
    .header-container,
    .hero-container,
    .about-grid,
    .services-grid,
    .features-poly-grid,
    .poly-contact-grid,
    .footer-grid {
        max-width: 100% !important;
    }
}

/* ===== FIX LOGO MOBIEL ===== */
.logo-wrapper {
    display: inline-block;
    flex-shrink: 0;
}

.logo-wrapper img {
    width: auto !important;
    height: 100% !important;
    max-height: 60px;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .logo-wrapper {
        height: 50px;
        max-width: 140px;
    }
    
    .logo-wrapper img {
        width: auto !important;
        height: 100% !important;
        max-height: 50px !important;
        max-width: 140px !important;
    }
    
    .header-container {
        height: 70px;
        padding: 0 0.5rem;
    }
}

/* ===== FIX HERO MOBIEL ===== */
@media (max-width: 1024px) {
    .hero-poly {
        padding: 2rem 0 2rem 0;
    }
    
    .hero-image-wrapper {
        clip-path: none;
        border-bottom: 8px solid var(--green-primary);
        height: auto;
        max-height: 450px;
    }
    
    .hero-image-wrapper img {
        height: auto;
        max-height: 450px;
    }
    
    .floating-banner-wrapper {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-poly {
        padding: 1.5rem 0 1.5rem 0;
    }
    
    .hero-image-wrapper {
        height: auto;
        max-height: 320px;
        border-bottom: 6px solid var(--green-primary);
    }
    
    .hero-image-wrapper img {
        max-height: 320px;
    }
    
    .floating-banner-wrapper {
        margin-top: 1.5rem;
    }
    
    .floating-banner {
        clip-path: none;
        padding: 2rem 1.5rem;
    }
}

/* ===== FIX ABOUT IMAGE MOBIEL ===== */
@media (max-width: 1024px) {
    .about-image-poly {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-image-poly img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

@media (max-width: 768px) {
    .about-image-poly {
        height: 320px;
        max-width: 100%;
        clip-path: none;
        padding: 0;
        background-color: transparent;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .about-image-poly img {
        clip-path: none !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px;
    }
}

/* ===== FIX SERVICE IMAGES POSITIE MOBIEL ===== */
@media (max-width: 768px) {
    .service-img-wrap {
        height: 250px;
    }
    
    .service-img-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center bottom !important;
    }
}
/* Footer: knoppen naar Facebook en Google */
.footer-social { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; border: 2px solid var(--green-primary); border-radius: 4px; color: var(--green-primary); font-family: var(--font-main); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
.footer-social-btn:hover { background-color: var(--green-primary); color: var(--white); }
