/* 
   Bezo Zonwering B.V. - Stylesheet
*/

:root {
    --primary-color: #262626; /* Deep Anthracite */
    --accent-color: #ffea00;  /* Warm Geel (Sun) */
    --text-color: #333333;
    --light-bg: #f4f6f7;
    --white: #ffffff;
    --danger-color: #ffea00;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --font-main: 'Open Sans', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

main {
    flex: 1;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.mt-2 { margin-top: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.bg-light { background-color: var(--light-bg); }
.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color); 
}

.btn-primary:hover {
    background-color: #e6d200;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1a252f;
}

.link-arrow {
    color: #cca400; 
    font-weight: bold;
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--primary-color);
}

.main-nav a:hover, .main-nav a.active {
    color: #cca400;
}

.main-nav .btn-nav {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 8px 16px;
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #555; 
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-slogan {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* General Sections */
section {
    padding: 60px 0;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.page-header {
    text-align: center;
    padding-bottom: 20px;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Special Markiezen Section */
.special-section {
    background-color: #fdfaf0; /* Warm white/beige */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.special-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.special-content h2 {
    color: #8b5a2b; /* Wood tone */
    font-family: 'Times New Roman', serif; /* More classical look for Markiezen */
    font-style: italic;
}

.special-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Cards */
.card {
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-body p {
    flex: 1;
}

/* Products Detail Page */
.product-detail-section {
    padding-top: 20px;
}

.product-detail-header {
    margin-bottom: 30px;
}

.product-detail-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.detail-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

/* Gallery */
.main-product-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}

.thumb-img:hover, .thumb-img.active {
    opacity: 1;
    border-color: var(--accent-color);
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.specs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    font-weight: 600;
    width: 40%;
    color: var(--primary-color);
}

/* RAL Boxes */
.ral-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ral-box {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent; /* Text hidden unless hover */
    cursor: help;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ral-box:hover {
    color: #fff;
    text-shadow: 0 0 2px #000;
}

/* Logos & PDF */
.logo-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.brand-logo img {
    max-height: 40px;
    width: auto;
}

.pdf-list {
    margin-top: 30px;
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.pdf-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.pdf-icon {
    color: #e74c3c;
    font-weight: bold;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.project-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-thumb:hover img {
    transform: scale(1.05);
}

.project-thumb .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px;
    text-align: center;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 20px;
}

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

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

.full-width {
    width: 100%;
}

.info-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Hidden dynamic fields in contact form */
#offerte-velden {
    background: #fffdf0;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    background-color: #1a252f;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- ADMIN PANEL STYLES --- */

.admin-container {
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 1000px;
}

.admin-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

#login-section {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: #eee;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
}

.tab-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px; /* Wider for new fields */
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

/* Previews in Modal */
.preview-container {
    margin-top: 10px;
    padding: 5px;
    border: 1px dashed #ccc;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.preview-container img {
    max-width: 80px;
    height: 60px;
    object-fit: cover;
    display: block;
}

.key-value-input {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

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

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

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

    .product-grid,
    .special-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}