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

:root {
    --color-primary: hsl(210, 60%, 20%);
    --color-primary-foreground: hsl(0, 0%, 100%);
    --color-secondary: hsl(210, 35%, 45%);
    --color-accent: hsl(32, 95%, 56%);
    --color-accent-foreground: hsl(0, 0%, 100%);
    --color-muted: hsl(0, 0%, 90%);
    --color-muted-foreground: hsl(210, 15%, 40%);
    --color-background: hsl(0, 0%, 100%);
    --color-foreground: hsl(210, 25%, 25%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
}

body.about-page,
body.contact-page {
    background-color: hsl(210, 40%, 98%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: hsla(210, 60%, 20%, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsla(32, 95%, 56%, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-primary-foreground);
}

.logo-image {
    height: 2.5rem;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-primary-foreground);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.4rem, 0.4rem);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

.nav-link {
    color: var(--color-primary-foreground);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-accent);
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-cta:hover {
    background-color: hsl(32, 95%, 50%);
    box-shadow: 0 4px 12px hsla(32, 95%, 56%, 0.3);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px - 200px); /*calc(100vh - 80px - 200px); */
    margin-top: 80px;
    overflow: hidden;
}

#animatedBackground {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        hsla(210, 100%, 20%, 0.4),
        hsla(210, 35%, 45%, 0.3),
        hsla(210, 35%, 45%, 0.4)
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    max-width: 56rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: bold;
    color: var(--color-primary-foreground);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 2rem;
}

/* Services Section */
.services-section {
    padding: 3rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .service-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
}

.service-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.service-card-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
}

.service-card-muted {
    background-color: var(--color-muted);
    color: var(--color-muted-foreground);
}

.service-accent {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 6rem;
    height: 6rem;
    background-color: var(--color-accent);
    border-radius: 0 0 0 100px;
}

.service-icon {
    position: relative;
    z-index: 10;
    margin-bottom: 1.5rem;
}

.service-card-primary .service-icon {
    stroke: var(--color-primary-foreground);
}

.service-card-muted .service-icon {
    stroke: var(--color-muted-foreground);
}

.service-title {
    position: relative;
    z-index: 10;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.service-description {
    position: relative;
    z-index: 10;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* About Section */
.about-section {
    padding: 3rem 0;
}

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

.about-mission h2,
.about-team h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.about-mission p {
    color: var(--color-foreground);
    opacity: 0.8;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid hsla(32, 95%, 56%, 0.2);
    margin: 0 auto 0.75rem;
    display: block;
}

.team-member h3 {
    font-size: 0.875rem;
    font-weight: 600;
}

.team-member p {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

/* Values Section */
.values-section {
    margin-top: 4rem;
}

.values-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

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

.value-card {
    text-align: center;
}

.value-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--color-accent);
    border-radius: 50%;
    transform: rotate(45deg);
}

.value-icon svg {
    transform: rotate(-45deg);
    stroke: var(--color-accent);
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
}

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

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-muted-foreground);
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid hsl(214, 32%, 91%);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.875rem;
    background-color: var(--color-background);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px hsla(32, 95%, 56%, 0.1);
}

.g-recaptcha {
    margin: 1rem 0;
}

.contact-form textarea {
    resize: vertical;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: hsl(142, 71%, 95%);
    color: hsl(142, 71%, 25%);
    display: block;
}

.form-message.error {
    background-color: hsl(0, 84%, 95%);
    color: hsl(0, 84%, 35%);
    display: block;
}

.contact-info-card {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    border-radius: 1rem;
    padding: 2rem;
}

.contact-info-section {
    margin-bottom: 2rem;
}

.contact-info-section h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.contact-info-section p {
    font-size: 0.875rem;
}

.contact-info-section p.mb {
    margin-bottom: 1rem;
}

.map-container {
    background-color: var(--color-background);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 16rem;
}

/* Blog Section */
.blog-section {.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}
    padding: 3rem 0;
    text-align: center;
}

.coming-soon {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.footer-info {
    font-size: 0.875rem;
    color: var(--color-primary-foreground);
}
.footer-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    color: var(--color-primary-foreground);
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: hsla(210, 60%, 20%, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        display: none;
        border-top: 1px solid hsla(32, 95%, 56%, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid hsla(32, 95%, 56%, 0.1);
    }

    .nav-links .btn {
        margin-top: 0.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Form Message Styling (voor succes/foutmeldingen na redirect) --- */

.form-message {
    /* Standaard is de melding verborgen, wordt door JS getoond na redirect */
    display: none; 
    
    /* Basisstijlen */
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    border: 1px solid transparent; /* Zorgt voor consistente layout */
}

.form-message.success {
    /* Groene stijl voor succesmelding */
    background-color: hsl(120, 40%, 90%); /* Lichtgroen */
    color: hsl(120, 60%, 30%); /* Donkergroene tekst */
    border-color: hsl(120, 50%, 75%);
}

.form-message.error {
    /* Rode stijl voor foutmeldingen */
    background-color: hsl(0, 80%, 90%); /* Lichtrood */
    color: hsl(0, 80%, 40%); /* Donkerrode tekst */
    border-color: hsl(0, 70%, 75%);
}