/* 
   Gen-Technics B.V. - Hoofd Stylesheet 
   Kleurenpalet:
   - Wit #FFFFFF (Achtergrond)
   - Zwart #000000 (Headings, Footer)
   - Grijs #4b5861 (Tekst, Borders)
   - Oranje #fe924c (Accenten, Buttons)
*/

:root {
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-grey: #4b5861;
    --color-orange: #fe924c;
    --color-orange-hover: #e07b38;
    --color-light-grey: #f4f4f4;
    
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --max-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-grey);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Typografie --- */
h1, h2, h3, h4 {
    color: var(--color-black);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: var(--color-orange);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-orange-hover);
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

/* --- Layout Components --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: var(--color-light-grey);
}

/* --- Header & Navigatie --- */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
}

.logo {
    /*font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-black);
    text-transform: uppercase;
    border-left: 5px solid var(--color-orange);
    padding-left: 10px;*/
	
}

.logo img {
	height: 100px;
}


.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: var(--color-grey);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-orange);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
}

/* --- Hero Sectie --- */
.hero {
    background-color: var(--color-black); /* Fallback */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://picsum.photos/1920/800?grayscale');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #e0e0e0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--color-orange-hover);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-orange);
    color: var(--color-orange);
}

.btn-outline:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
}

/* --- Diensten / Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-grey);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top-color: var(--color-orange);
}

/* --- Waarom Gen-Technics (Feature Cards) --- */
.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 6px solid var(--color-orange);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(254, 146, 76, 0.1) 50%);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-card:hover::before {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, transparent 50%, rgba(254, 146, 76, 0.2) 50%);
}

.feature-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--color-grey);
}

/* --- Projecten --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative; /* Voor positionering delete knop */
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--color-light-grey);
}

.project-content {
    padding: 1.5rem;
}

.project-tag {
    display: inline-block;
    background-color: var(--color-light-grey);
    color: var(--color-grey);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* --- Over Ons --- */
.about-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-split {
        flex-direction: row;
        align-items: center;
    }
    .about-image {
        flex: 1;
    }
    .about-text {
        flex: 1;
    }
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Contact Formulier --- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-item {
	margin-top: 2rem;
}

.contact-item iframe {
	background-color: #eee; 
	width: 100%; 
	height: 250px; 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	border-radius: 6px;
	border:0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input[type="file"] {
    padding: 10px;
    background: #f9f9f9;
}

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

/* --- Footer --- */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: var(--color-orange);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: var(--color-orange);
}

.certs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cert-badge {
    background: #fff;
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 2px;
    font-size: 0.8rem;
}

.cert-badge img {
	width: 70px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}

/* --- Responsief --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

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

/* --- CMS Styles --- */
.cms-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    border-top: 3px solid var(--color-orange);
}

.cms-brand {
    font-weight: bold;
    color: var(--color-orange);
    margin-right: 1rem;
}

.cms-editable {
    outline: 2px dashed rgba(254, 146, 76, 0.5);
    cursor: text;
    transition: all 0.2s;
}

.cms-editable:hover {
    background-color: rgba(254, 146, 76, 0.05);
}

.cms-editable:focus {
    outline: 2px solid var(--color-orange);
    background: #fff;
    color: #000;
}

/* Bewerkbare afbeeldingen stijl */
.cms-editable-img {
    cursor: pointer;
    border: 4px dashed rgba(254, 146, 76, 0.5);
    box-sizing: border-box;
}

.cms-editable-img:hover {
    opacity: 0.8;
    border-color: var(--color-orange);
}

.cms-btn {
    background: var(--color-orange);
    border: none;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 10px;
    font-size: 0.9rem;
}

.cms-btn:hover {
    background: var(--color-orange-hover);
}

.cms-btn-danger {
    background: #dc3545;
}

.cms-btn-danger:hover {
    background: #a71d2a;
}

.cms-delete-project {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    font-size: 0.8rem;
}

#cms-login-btn {
	color: #444; 
	font-size: 0.8em; 
	text-decoration: none;
}
