/*
Theme Name: Groenwerken Monsecour
Theme URI: https://groenwerken-monsecour.be
Author: Groenwerken Monsecour
Description: Professioneel WordPress thema voor Groenwerken Monsecour - tuinonderhoud en landschapsarchitectuur.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monsecour
Tags: landscaping, garden, green, business, responsive
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark-green: #2d5016;
    --color-mid-green: #4a7c21;
    --color-light-green: #82c341;
    --color-pale-green: #e8f5e9;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-bg-light: #f8f9fa;
    --color-border: #e0e0e0;
    --color-error: #d32f2f;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --max-width: 1200px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.15);
    --radius: 10px;
    --transition: 0.3s ease;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    transition: color var(--transition);
}

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

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-wrap {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-dark-green);
    margin-bottom: 1rem;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.cta-button {
    display: inline-block;
    background: var(--color-light-green);
    color: #fff;
    padding: 1rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #6ba535;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
#site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#site-header nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding var(--transition);
}

#site-header.scrolled nav {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

/* Tekst-logo (fallback) */
.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-dark-green);
    text-decoration: none;
    transition: font-size var(--transition), color var(--transition);
}

.site-logo:hover {
    color: var(--color-mid-green);
}

#site-header.scrolled .site-logo {
    font-size: 1.1rem;
}

/* Afbeelding-logo */
.custom-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-logo {
    height: var(--logo-height, 70px);
    width: auto;
    display: block;
    transition: height var(--transition);
}

#site-header.scrolled .custom-logo {
    height: calc(var(--logo-height, 70px) * 0.6);
}

#primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

#primary-menu li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color var(--transition);
}

#primary-menu li a:hover {
    color: var(--color-mid-green);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark-green);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    #primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: var(--shadow-md);
        gap: 1rem;
    }

    #primary-menu.active {
        display: flex;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-dark-green) 0%, var(--color-mid-green) 100%);
}

.hero-carousel {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

/* Achtergrondvideo */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-video-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(45, 80, 22, 0.55);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

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

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background var(--transition);
    border: none;
}

.dot.active {
    background: #fff;
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-section { height: 450px; }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--color-bg-light);
    padding: 2rem;
}

.trust-items {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.trust-item h3 {
    color: var(--color-dark-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--color-text-light);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

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

.service-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--color-mid-green), var(--color-light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

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

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--color-dark-green);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.service-content > p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.service-features li {
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-light-green);
    font-weight: bold;
}

/* ============================================
   PROJECTS GALLERY
   ============================================ */
.projects-section {
    background: var(--color-bg-light);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: #fff;
    border: 2px solid var(--color-mid-green);
    color: var(--color-mid-green);
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-mid-green);
    color: #fff;
}

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

.project-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition);
}

.project-card:hover {
    transform: scale(1.03);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--color-dark-green), #659435);
    position: relative;
    overflow: hidden;
}

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

.before-after {
    display: flex;
    height: 100%;
}

.before,
.after {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    position: relative;
}

.before {
    background: linear-gradient(135deg, #8b7355, #a0826d);
}

.after {
    background: linear-gradient(135deg, var(--color-mid-green), var(--color-light-green));
}

.label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--color-dark-green);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.project-tag {
    display: inline-block;
    background: var(--color-pale-green);
    color: var(--color-mid-green);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: var(--color-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-light-green);
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.reviewer-info strong {
    color: var(--color-dark-green);
    display: block;
}

.reviewer-info span {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--color-bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.contact-info-box {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.contact-info-box h3 {
    color: var(--color-dark-green);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

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

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-mid-green);
    flex-shrink: 0;
}

.contact-method h4 {
    color: var(--color-dark-green);
    margin-bottom: 0.3rem;
}

.contact-method p,
.contact-method a {
    color: var(--color-text-light);
}

.contact-method a {
    color: var(--color-mid-green);
    text-decoration: none;
    font-weight: 500;
}

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

.service-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.map-placeholder,
.map-embed {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--color-pale-green), #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mid-green);
    font-size: 1.2rem;
}

.map-embed {
    border: none;
    display: block;
}

/* ============================================
   QUOTE FORM
   ============================================ */
.quote-form-wrap {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.quote-form-wrap h3 {
    color: var(--color-dark-green);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    color: var(--color-dark-green);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.required {
    color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--color-border);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: #fff;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.error-message {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.success-message {
    background: var(--color-pale-green);
    color: var(--color-dark-green);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
    text-align: center;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
    background: var(--color-dark-green);
    color: #fff;
    padding: 3rem 2rem 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--color-light-green);
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

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

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

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-credit {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-credit a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-credit a:hover {
    color: #fff;
}

/* ============================================
   BACK TO TOP
   ============================================ */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-mid-green);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition), background var(--transition), transform var(--transition);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--color-dark-green);
    transform: translateY(-3px);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: var(--color-dark-green);
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text);
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-caption {
    max-width: 100%;
}

.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip link */
.skip-link {
    background: var(--color-dark-green);
    color: #fff;
    font-weight: bold;
    left: 0;
    padding: 4px;
    position: absolute;
    top: -40px;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}
