@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* Reset en basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Kleuren gebaseerd op Molenaar website */
    --primary-color: #0c2248;  /* Donkerblauw */
    --header-color: #ffd700;   /* Geel voor header */
    --secondary-color: #ffffff; /* Wit */
    --accent-color: #f0f0f0;   /* Lichtgrijs */
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --hover-color: #e6c200;    /* Donkerder geel voor hover */
}

body {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f8f8;
}

body > * {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--secondary-color);
}

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

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

.menu-item > a:hover {
    color: var(--hover-color);
    transform: translateY(-3px);
}

h1, h2, h3 {
    font-family: 'Lato', sans-serif;
}

/* Header */
.main-header {
    background-color: var(--header-color);
    padding: 1mm 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    border-top: 10px solid var(--primary-color);
}

.main-header .container {
    max-width: 100%;
    padding: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-left: 1cm;
    padding-right: 20px;
}

.logo img {
    max-height: 50px;
    width: auto;
    margin-top: 2mm;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Navigation */
.main-nav {
    flex: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.menu {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    gap: 30px;
    align-items: center;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    color: var(--text-color);
    font-size: 17px;
    padding: 10px 0;
    display: block;
    transition: all 0.3s ease;
}

.menu-item.has-submenu > a::after {
    content: ' ▾';
    font-size: 12px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    border-bottom: 1px solid var(--border-color);
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
}

.submenu a:hover {
    background-color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
                url('images/hero-bg.jpg') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: flex-start;
    background-color: var(--primary-color);
    z-index: 1;
}

.hero-subpage {
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
    min-height: 120px;
    margin-top: 0;
}

.hero-subpage .hero-content {
    padding-top: 30px;
    padding-bottom: 30px;
}

.hero-subpage .hero-content h1 {
    font-size: 44px;
    letter-spacing: -1px;
    text-transform: capitalize;
    margin: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(12, 34, 72, 0.2) 0%, rgba(12, 34, 72, 0.2) 100%);
}

.hero .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 1cm;
    padding-left: 1cm;
    padding-bottom: 2cm;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-content p {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* Intro Section */
.intro {
    padding: 60px 0;
    background-color: var(--accent-color);
    text-align: center;
}

.intro h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.intro p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 40px;
    text-align: left;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
}

.gallery-item.full-width {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item.full-width {
        grid-column: span 1;
    }
}

/* Zonnepanelen Gallery Layout */
.zonnepanelen-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
}

.zonnepanelen-gallery .gallery-large {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .zonnepanelen-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .zonnepanelen-gallery .gallery-large {
        grid-row: span 1;
    }
}

/* Diensten Section */
.diensten {
    position: relative;
    margin-top: calc(-150px + 2cm - 5mm);
    padding-top: 0;
    padding-bottom: 80px;
    background-color: transparent;
    z-index: 10;
}

.diensten h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 50px;
}

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

.dienst-card {
    background-color: var(--secondary-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 20px solid var(--secondary-color);
    display: block;
    text-decoration: none;
    color: inherit;
}

.dienst-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dienst-image {
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.dienst-content {
    padding: 0;
}

.dienst-content h3 {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px;
    margin: 0;
    border-radius: 0 0 6px 6px;
    text-align: center;
}

.dienst-content h3 a {
    color: var(--secondary-color);
    text-decoration: none;
}

.dienst-card h3 {
    color: var(--secondary-color);
}

.dienst-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details a {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background-color: var(--accent-color);
    padding: 30px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.btn-submit {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--accent-color);
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 0;
}

.main-footer .container {
    max-width: 100%;
    padding: 0;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-left: 1cm;
    padding-right: 1cm;
}

.footer-info {
    text-align: left;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-info > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-contact {
    margin-top: 10px;
    text-align: left;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.3;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

/* Contact Page */
.contact-page {
    padding-top: 60px;
    padding-bottom: 80px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.contact-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.contact-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card-content {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 30px;
    border-radius: 0 0 8px 8px;
}

.contact-card-content h2 {
    color: var(--secondary-color);
    font-size: 24px;
    margin-bottom: 5px;
}

.contact-availability {
    font-size: 15px !important;
    font-weight: bold !important;
    margin-bottom: 40px;
    letter-spacing: 1px;
    color: #ffffff !important;
}

.contact-card-content .contact-availability {
    font-size: 15px !important;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.25;
}

.contact-detail:first-of-type {
    margin-top: 30px;
}

.contact-icon {
    font-size: 18px;
    margin-right: 20px;
    margin-left: 3px;
    min-width: 28px;
    display: inline-flex;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon.address-icon {
    margin-right: 0px;
}

.address-text {
    display: block;
}

.address-text::after {
    content: '';
}

.contact-detail .address-text {
    line-height: 1.5;
}

.contact-detail a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-business-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
}

.contact-business-info p {
    margin-bottom: 5px;
}

.contact-info-section h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.contact-info-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info-section a:hover {
    text-decoration: underline;
}

.contact-form-section {
    background-color: var(--secondary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

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

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

.submit-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: #2c5f8d;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-message p {
    margin: 0;
    font-size: 16px;
}

/* Privacy Page */
.privacy-page {
    padding-top: 60px;
    padding-bottom: 80px;
    text-align: left;
}

.privacy-page h2 {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 15px;
    text-align: left;
}

.privacy-page p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: left;
    margin-left: 20px;
    font-size: 14px;
}

.privacy-page ul {
    margin-bottom: 20px;
    margin-left: 40px;
    line-height: 1.8;
    text-align: left;
    font-size: 14px;
}

.privacy-page a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-page a:hover {
    text-decoration: underline;
}

/* FAQ Page */
.faq-page {
    padding-top: 60px;
    padding-bottom: 80px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question h3 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding-right: 20px;
}

.faq-toggle {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 300;
    line-height: 1;
    min-width: 30px;
    text-align: center;
}

.faq-answer {
    background-color: #f9f9f9;
    display: none !important;
}

.faq-item.active .faq-answer {
    display: block !important;
}

.faq-answer p {
    margin: 0;
    padding: 20px 25px;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 1000px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 840px) {
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 1cm;
    }

    .main-nav .menu {
        position: fixed;
        top: 90px;
        right: -100%;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        max-width: 220px;
        padding: 0;
        padding-left: 20px;
        padding-right: 20px;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        height: calc(100vh - 90px);
        overflow-y: auto;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .main-nav .menu.active {
        right: 0;
    }

    .menu-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }

    .menu-item:first-child {
        margin-top: 0;
        padding-top: 0;
    }

    .menu-item a,
    .menu-item > a {
        color: var(--secondary-color) !important;
        padding: 12px 0;
        display: block;
        text-align: left;
    }

    .menu-item:first-child > a {
        padding-top: 12px;
    }

    .menu-separator {
        height: 1px;
        background-color: rgba(255, 255, 255, 0.1);
        margin: 10px 0;
        width: 80%;
        align-self: center;
    }

    .menu-item.has-submenu > a::after {
        color: var(--secondary-color) !important;
    }

    .main-nav .menu a {
        color: var(--secondary-color) !important;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu-item.active .submenu {
        max-height: 300px;
    }

    .submenu a {
        color: var(--secondary-color) !important;
    }

    .submenu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .hero-content h1 {
        font-size: 36px;
    }

    .diensten-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .diensten h2,
    .contact h2,
    .faq h2 {
        font-size: 28px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 5mm;
        padding-right: 5mm;
    }

    .footer-info {
        text-align: left;
    }

    .footer-copy {
        text-align: right;
        align-self: flex-end;
    }
}

/* Content Layout with Sidebar */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 60px 0;
    align-items: start;
}

.content-text h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.content-text h2:first-child {
    margin-top: 0;
}

.content-text h3 {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: normal;
    font-style: italic;
}

.content-text p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-text ul {
    margin-bottom: 20px;
    margin-left: 20px;
    line-height: 1.8;
}

/* Sidebar Cards */
.sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sidebar-card-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.sidebar-card-content {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
}
