/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --dark-color: #2c1810;
    --light-color: #f5f5f5;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: rgba(240, 234, 231, 0.587);
    backdrop-filter: blur(10px);
    color: var(--black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 20px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.logo h1 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0;
}

.logo .tagline {
    font-size: 0.7rem;
    color: var(--secondary-color);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 3px;
    background: #000;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active::after {
    width: 100%;
    background: #000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    background: url('../images/gestructureerde-achtergrond.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 9rem 0 6rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Sections */
section {
    padding: 4rem 0;
}

.intro, .about-content, .contact-section {
    background-color: var(--light-color);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.intro-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Services Grid */
.services h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.service-card h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Projects Grid on Homepage */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.projects-grid .project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.projects-grid .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.projects-grid .project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.projects-grid .project-info {
    padding: 1.5rem;
}

.projects-grid .project-info h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.projects-grid .project-info p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Stages Grid (Homepage) */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stages-grid .stage-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.stages-grid .stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.stages-grid .stage-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.stages-grid .stage-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.stages-grid .stage-card:hover .stage-image-wrapper img {
    transform: scale(1.05);
}

.stages-grid .stage-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stages-grid .stage-info h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stages-grid .stage-role {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stages-grid .stage-period {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stages-grid .stage-period::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.stages-grid .stage-description {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: auto;
}

/* Page Header */
.page-header {
    background: url('../images/gestructureerde-achtergrond.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 7rem 0 4rem 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.5);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    background-color: var(--light-color);
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-content p {
    color: var(--text-color);
    line-height: 1.6;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.about-image .placeholder-image {
    background-color: var(--light-color);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Social Section */
.social-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.social-section h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.social-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.social-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.social-card i {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.social-card h4 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--dark-color);
}

.social-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.social-card.instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-card.instagram:hover {
    border: 2px solid #e1306c;
}

.social-card.facebook i {
    color: #1877f2;
}

.social-card.facebook:hover {
    border: 2px solid #1877f2;
}

.social-card.linkedin i {
    color: #0a66c2;
}

.social-card.linkedin:hover {
    border: 2px solid #0a66c2;
}

.stage {
    background-color: var(--white);
}

.stage h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stage-item {
    text-align: center;
    padding: 2rem;
}

.stage-item h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 0rem;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

footer .social-links a {
    color: var(--white);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

footer .social-links a:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

footer p {
    margin: 0;
}

/* CMS Content Styling */
.page-content {
    padding: 4rem 0;
    background: var(--white);
}

.cms-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cms-content h1 { font-size: 2.5rem; }
.cms-content h2 { font-size: 2rem; }
.cms-content h3 { font-size: 1.5rem; }

.cms-content p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.cms-content ul,
.cms-content ol {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
}

.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.cms-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.cms-content a:hover {
    text-decoration: underline;
}

.cms-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

/* Responsive Design */
/* Tablet & Mobile Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    .projects-grid,
    .stage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    /* Container & Spacing */
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 30px 0;
    }
    
    .intro,
    .about-content,
    .contact-section,
    .services {
        padding: 30px 0;
    }
    
    /* Navigation */
    nav .container {
        padding: 8px 15px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo img {
        max-height: 35px;
        height: 35px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 80px 0 30px;
        box-shadow: -4px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a {
        padding: 18px 30px;
        display: block;
        font-size: 1.05rem;
        transition: all 0.3s;
        position: relative;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: #f8f9fa;
        color: var(--dark-color);
    }

    /* Hero Section */
    .hero {
        padding: 60px 0 40px;
        min-height: 300px;
    }
    
    .hero h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero2 {
        padding: 50px 0 30px;
        min-height: auto;
    }
    
    .page-header {
        padding: 50px 0 30px;
    }
    
    .page-header h2 {
        font-size: 1.6rem;
    }

    /* Grids */
    .services-grid,
    .projects-grid,
    .stage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Project Cards */
    .project-card,
    .service-card {
        margin-bottom: 0;
    }
    
    .project-card img {
        height: 250px;
    }
    
    /* Stage Cards */
    .stage-card {
        padding: 20px;
    }
    
    .stage-card h4 {
        font-size: 1.3rem;
    }
    
    /* Buttons */
    .btn,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
        display: block;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Typography */
    h3 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    h4 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Contact Form */
    .contact-info {
        padding: 25px;
    }
    
    .contact-info h4 {
        font-size: 1.2rem;
    }
    
    form input,
    form textarea {
        font-size: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 20px 0 15px;
        margin-top: 2rem;
        text-align: center;
    }
    
    footer .container {
        flex-direction: column;
        gap: 12px;
    }
    
    footer .social-links {
        justify-content: center;
        gap: 1rem;
        margin-bottom: 0.8rem;
    }
    
    footer .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    footer p {
        font-size: 0.85rem;
        margin: 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    nav .container {
        padding: 6px 10px;
    }
    
    .logo img {
        max-height: 30px;
        height: 30px;
    }
    
    .hero {
        padding: 50px 0 30px;
        min-height: 250px;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero2,
    .page-header {
        padding: 40px 0 25px;
    }
    
    section {
        padding: 25px 0;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .project-card img {
        height: 200px;
    }
    
    .btn,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 15px 0 12px;
        margin-top: 1.5rem;
    }
    
    footer .social-links {
        gap: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    footer .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    footer p {
        font-size: 0.8rem;
    }
}
