 /* ==========================================================================
   Professional Construction Company CSS
   Moors Chapewerken - Modern & Professional
   ========================================================================== */

/* CSS Variables for consistent theming */
:root {
    /* Construction Color Palette */
    --primary-blue: #093CBF;
    --secondary-blue: #0A4DFF;
    --accent-gray: #737373;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

/* Grid container improvements */
.gridcontainer {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation improvements */
.logo-nav {
    width: 100%;  /* neemt 100% van het viewport in plaats van grid breedte */
    margin: 0;     /* geen auto margin */
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--accent-gray) 0%, #5a5a5a 100%);
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-md);
}

.logo-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;   /* inhoud gecentreerd */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo-nav img {
    height: 78px;
    margin-left: -10px; /* schuif logo dichter naar de rand */
}

.menu {
    background: transparent;
}

.menu ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.menu a:hover {
    color: var(--primary-blue);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero section improvements */
.hero-section {
    color: white;
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: var(--radius-lg);
   margin-top: 70px;
}

.titel {
    grid-column: 1 / -1;
    text-align: center;
   
}

.titel h1 {
    color: var(--primary-blue);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.informatie {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.8;
} 



/* Button improvements */
.offerte {
    grid-column: 1 / -1;
    justify-self: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    display: inline-block;
}

.offerte:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}



/* Service cards improvements */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    flex: 1;
    min-width: 250px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Services section horizontal layout */
.services {
    grid-column: 1 / -1;
    display: flex;
    gap: var(--spacing-lg);
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    margin: var(--spacing-xl) 0;
}

.chef, .werf, .ervaring, .regio {
    margin: 0;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Image gallery improvements */
.image-gallery {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Services content styling - EQUAL HEIGHT/WIDTH GRID */
.services-content {
    grid-column: 1 / -1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.service-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px; /* Adjusted minimum height */
}



/* Tablet specific - single column for stacked cards */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Hero section - larger background for tablet */
    .hero-section {
        padding: 50px;
        margin-top: 60px;
        width: 70vw;
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        max-width: 800px;
    }
    
    .service-item {
        margin-bottom: 0;
        height: 100%;
        min-height: auto;
         transition: all 0.3s ease;
    }

    .contact p{
        font-size: 1rem;
    }
    
    /* 2x2 grid for image gallery in tablet view */
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md); /* Reduced from var(--spacing-xl) */
    }
    
    .gallery-image {
        height: 250px;
    }

    /* Reduced space between image gallery and footer in tablet view */
    .section-divider {
        margin-top: var(--spacing-md); /* Reduced from var(--spacing-xl) */
    }

    /* Fix phone number styling on tablet devices - prevent blue underline */
    .opmaak-blok p {
        color: var(--white) !important;
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
        -moz-text-decoration: none !important;
    }
    
    /* Prevent iOS from auto-styling phone numbers */
    .opmaak-blok p a[href^="tel:"] {
        color: var(--white) !important;
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
        -moz-text-decoration: none !important;
    }
}


.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}



/* Ensure equal content distribution */
.service-item h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    flex-shrink: 0;
}

.service-item p {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.service-item ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

/* Desktop layout - single column for stacked cards */
@media (min-width: 1025px) {
    .services-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        max-width: 800px;
    }
    
    .service-item {
        margin-bottom: 0;
        height: 100%;
    }
}

/* Mobile layout - single column */
@media (max-width: 767px) {
    .services-content {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        margin-bottom: var(--spacing-md);
    }


}

.service-item h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.service-item ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

/* Privacy policy list indentation */
.informatie ul {
    margin-left: 3rem;
    margin-bottom: var(--spacing-sm);
}

.service-item h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.service-item ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

/* Contact form styling */
.contact-content {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.contact-icon img {
    margin: 0;
    flex-shrink: 0;
}

.contact-icon h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

/* Active navigation state */
.menu a.active {
    color: var(--primary-blue);
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

/* Responsive image sizing */
@media (max-width: 768px) {
    .gallery-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-image {
        height: 150px;
    }
}

/* Standaard (desktop/web) → niet klikbaar */
.kaartjes a {
    color: #fff !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #fff;
    pointer-events: none;
    cursor: default;
}

/* Op apparaten met touch (smartphones & tablets) → wél klikbaar */
@media (hover: none) and (pointer: coarse) {
    .kaartjes a {
        pointer-events: auto;
        cursor: pointer;
    }
}


/* Contact section improvements - Stacked vertical layout for web */
.contact {
    grid-column: 1 / -1;
    margin: var(--spacing-xl) 0;
}

.kaartjes {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.opmaak-blok {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
}

.opmaak-blok:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}



/* Mobile: 1 column */
@media (max-width: 768px) {
    .kaartjes {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Contact section improvements - Side-by-side layout for web */
.contact-section-container {
    grid-column: 1 / -1;
    display: flex;
    gap: 200px;
    align-items: flex-start;
    margin: var(--spacing-xl) 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cards-wrapper {
    flex: 1;
    max-width: 350px;
}

.contact-form-wrapper {
    flex: 1.2;
    min-width: 450px;
    max-width: 550px;
}

.contact {
    margin: 0;
}

.kaartjes {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.opmaak-blok {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
}

.opmaak-blok:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive layout for tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .contact-section-container {
        flex-direction: row;
        gap: 170px;
        align-items: flex-start;
        max-width: 800px;
    }
    
    .contact-cards-wrapper {
        flex: 1;
        max-width: 220px;
    }
    
    .contact-form-wrapper {
        flex: 1;
        min-width: 300px;
        max-width: 380px;
    }
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .contact-section-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .contact-cards-wrapper,
    .contact-form-wrapper {
        max-width: 100%;
    }
}

/* iPhone specific centering (portrait orientation) */
@media (max-width: 430px) {
    .contact-section-container {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .contact-cards-wrapper {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    
    .kaartjes {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        justify-items: center;
    }
    
    .opmaak-blok {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        color: white;
    }
}

/* Additional iPhone landscape orientation */
@media (max-width: 932px) and (max-height: 430px) and (orientation: landscape) {
    .contact-section-container {
        flex-direction: row;
        gap: var(--spacing-lg);
        justify-content: center;
        align-items: flex-start;
    }
    
    .contact-cards-wrapper {
        max-width: 250px;
        margin: 0;
    }
    
    .contact-form-wrapper {
        max-width: 400px;
        margin: 0;
    }
}

/* Form improvements */
.contact-form {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}



/* Tablet Navigation - Logo Left, Menu Right (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .gridcontainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 var(--spacing-md);
        width: 100%;
    }
    


    .logo-nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 var(--spacing-md);
    }
    
    .logo-nav img {
        height: 50px;
        margin-left: 0;
      
    }
    
    .contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .kaartjes {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        width: 100%;
        max-width: 500px;
    }
}

/* Mobile Navigation - Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 80px 0 0 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 20px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.no-scroll {
    overflow: hidden;
}

/* Updated mobile navigation styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .menu {
        display: none;
    }
    
    .logo-nav-content {
        padding: 0 var(--spacing-md);
        justify-content: space-between;
    }
    
    .logo-nav img {
        margin-left: 0;
        height: 50px;
    }
    
    .mobile-menu {
        display: block;
    }
}


/* Responsive layout for mobile */
@media (max-width: 768px) {
    .contact-section-container {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
        padding: 0 var(--spacing-sm);
    }
    
    .contact-cards-wrapper,
    .contact-form-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: auto; /* Fix: verwijdert desktop min-width */
        margin: 0 auto;
    }
    
    .contact-form {
        width: 100%;
        padding: var(--spacing-md);
        box-sizing: border-box;
    }
    
    .kaartjes {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        justify-items: center;
    }

    .opmaak-blok {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}

/* iPhone specific centering (portrait orientation) */
@media (max-width: 430px) {
    .contact-section-container {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .contact-cards-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    
    .kaartjes {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .opmaak-blok {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        color: white;
    }
}


.section-divider {
    grid-column: 1 / -1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    margin: var(--spacing-xl) 0;
}

/* Make telefoon.png and e-mail.png images white using CSS filter */
img[src*="telefoon.png"],
img[src*="e-mail.png"] {
    filter: brightness(0) invert(1);
}

/* Email block specific styling for better centering */
.opmaak-blok.Email {
    gap: var(--spacing-sm);
}

.opmaak-blok.Email .contact-icon {
    margin-bottom: var(--spacing-xs);
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
