/* ========================================
   Modern Website Brouwer Grondverzetbedrijf
   Clean, responsive design
   ======================================== */

:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary-color: #f57c00;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 1rem 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img,
.site-logo img {
    height: 80px;
    width: auto;
    max-width: min(400px, 70vw);
    display: block;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
}

button.btn {
    appearance: none;
    -webkit-appearance: none;
}

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

.btn-primary:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

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

.btn-secondary:hover {
    background: #e65100;
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Call to Action Bar */
.cta-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.cta-bar h2 {
    margin-bottom: 1.5rem;
}

.cta-bar .phone {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Services */
.services-list {
    background: var(--bg-light);
}

.service-card {
    background: var(--white);
    text-align: center;
}

/* USP Section */
.usp-section {
    background: var(--bg-light);
}

.usp-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.usp-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
}

/* Contact Page */
.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Form Styles */
form {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="file"] {
    padding: 0.6rem;
    background: var(--white);
}

.captcha-group .captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 8px;
}

.captcha-question {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.captcha-group input[type="number"] {
    width: auto;
    min-width: 7rem;
    min-height: 3.5rem;
    padding: 0.75rem;
    margin: 0;
    text-align: center;
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid #ccc;
    background: var(--white);
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.captcha-group input[type="number"]::-webkit-outer-spin-button,
.captcha-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-group input[type="number"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.captcha-hint {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem;
        gap: 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        border-bottom: 1px solid #eee;
        padding: 0.75rem 0;
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-bar .phone {
        font-size: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .grid {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
    }
    
    .btn-large {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.bg-light { background: var(--bg-light); }

/* Extra styles for Flask site */
.nav-active { color: var(--primary-color); font-weight: 700; }
.rich-content img { max-width: 100%; height: auto; border-radius: 8px; }
.rich-content ul, .rich-content ol { margin: 0 0 1rem 1.5rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.catalog-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.catalog-card:hover { transform: translateY(-4px); }
.catalog-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.catalog-card-body { padding: 1.25rem; }
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.photo-gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.badge { display: inline-block; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--bg-light); font-size: 0.85rem; }
.badge-published { background: #e8f5e9; color: #2e7d32; }
.badge-draft { background: #fff3e0; color: #ef6c00; }
.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-bar a { padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid #ddd; color: var(--text-dark); }
.filter-bar a.active, .filter-bar a:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.price-tag { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); }
.page-hero-small { padding: 3rem 0; }
.map-container { height: 320px; border-radius: 8px; overflow: hidden; margin-top: 1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-light); }

@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #ececec;
        --text-light: #b0b0b0;
        --bg-light: #1e1e1e;
        --white: #121212;
    }
    header, form, .catalog-card, .card { background: #1a1a1a; }
    input, textarea, select { background: #222; color: #eee; border-color: #444; }
    .captcha-group .captcha-box { background: #2a2a2a; border-color: #444; }
    .captcha-group input[type="number"] { background: #222; border-color: #555; }
    nav ul { background: #1a1a1a; }
    .filter-bar a { border-color: #444; color: #eee; }
}
