/* Voorkom dat de elementen onzichtbaar/0px hoog zijn tijdens het laden */
topbar-el:not(:defined) {
    display: block;
    background-color: #1a1a1a;
    height: 3rem;
}

header-el:not(:defined) {
    display: block;
    background-color: #ffffff;
    height: 8rem;
}

:root {
    --primary: #8b1e3f;
    --primary-dark: #4a0f1f;
    --primary-light: #e0556b;
    --accent-red: #c43333;
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-dark: #1a1a1a;
    --text-dark: #2c3e50;
    --text-medium: #6c757d;
    --text-light: #95a5a6;
    --border-light: #e1e8ed;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.top-bar {
    background: var(--bg-dark);
    color: white;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    min-height: 3rem;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-light);
}

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 8rem;
}

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

.logo-area {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo-img {
    height: 120px;
    width: auto;
}

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

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 30, 63, 0.9), rgba(74, 15, 31, 0.95)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a1a1a" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-light);
}

.hero-stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-light);
}

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

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* Service Categories */
.service-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-category {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary);
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-category h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-category .subtitle {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-category p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.learn-more {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.learn-more:hover {
    color: var(--primary-dark);
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    transition: transform 0.3s;
}

.expertise-item:hover {
    transform: translateY(-5px);
}

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

.expertise-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.expertise-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* Approach Section */
.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.approach-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.approach-text p {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.approach-image {
    background: var(--bg-light);
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid white;
}

.btn:hover {
    background: transparent;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

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

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

.tagline-footer {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-light);
    margin: 2rem 0;
    text-align: center;
}

/* ==========================================================================
   Generic page-content utilities
   Used by about / services / expertise / contact (and the matching sections
   embedded in the single-page index) so none of those pages need inline
   styles.
   ========================================================================== */

.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-content--narrow {
    max-width: 800px;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block--lg {
    margin-bottom: 4rem;
}

.block-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.block-title--lg {
    font-size: 2rem;
}

.block-intro {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.lead-text {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* Info cards (experience entries, contact cards, etc.) */
.info-card {
    padding: 2rem;
    background: var(--bg-light);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}

.info-card h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-card .meta {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Small tile grid (technical capabilities, etc.) */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tile {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 4px;
}

.tile h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tile p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Feature / service bullet lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 1rem;
    background: var(--bg-light);
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary);
}

/* Tools panel (software & tools grid) */
.tools-panel {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.tools-panel h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tool-chip {
    padding: 1rem;
    background: white;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

/* Statement box (expertise intro) */
.statement-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.statement-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.statement-box p {
    color: var(--text-medium);
    font-size: 1.15rem;
    line-height: 1.9;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.contact-card h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--text-medium);
    text-decoration: none;
}

.cta-box {
    text-align: center;
    padding: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
}

.cta-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 968px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .service-categories {
        grid-template-columns: 1fr;
    }

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

    .approach-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .tile-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* Page System */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Project Carousel */
.projects-carousel {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-track:hover {
    animation-play-state: paused;
}

.project-slide {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: calc(33.333% - 1.5rem);
}

.project-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.project-sector {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    color: var(--text-medium);
    line-height: 1.8;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.project-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-top: 0.3rem;
}

@media (max-width: 968px) {
    .project-slide {
        flex: 0 0 80%;
        min-width: 80%;
    }
}

@media (max-width: 640px) {
    .project-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}
