/* ===== CSS Reset & Variables ===== */
:root {
    --black: #000000;
    --white: #ffffff;
    --grey-light: #f5f5f5;
    --grey-border: #e0e0e0;
    --text-main: #111111;
    --text-muted: #444444;
    --font-stack: 'Inter', sans-serif;
    --transition: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 85%;
}

body {
    font-family: var(--font-stack);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--black);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ===== Utilities ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

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

.mt-4 {
    margin-top: 2rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-black {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

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

.btn-outline {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--black);
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--grey-border);
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.logo,
.chameleon-text {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: chameleon 5s linear infinite;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--black);
    color: var(--white);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

@keyframes chameleon {
    to {
        background-position: 200% center;
    }
}

.chameleon-shadow {
    position: relative;
    box-shadow: none !important;
}

.chameleon-shadow::after {
    content: '';
    position: absolute;
    top: 6px;
    bottom: -10px;
    left: 6px;
    right: -10px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% auto;
    animation: chameleon 5s linear infinite;
    z-index: -1;
    border-radius: inherit;
}

.chameleon-border-left {
    position: relative;
    border-left: none !important;
}

.chameleon-border-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% auto;
    animation: chameleon 5s linear infinite;
    border-top-left-radius: inherit;
    border-bottom-left-radius: inherit;
}

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

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-btn {
    padding: 0.6rem 1.5rem;
}

/* ===== Hero Section ===== */
.hero {
    padding: 4rem 0 3rem 0;
    background-color: #f5f5f5;
}

.hero-content {
    max-width: 100%;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* ===== Diensten Section ===== */
.section-subtitle {
    font-size: 1.25rem;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.service-card {
    border: 2px solid var(--black);
    padding: 3rem 2.5rem;
    background: var(--white);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 8px 8px 0px 0px var(--black);
    transform: translate(-4px, -4px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-text {
    margin-bottom: 1.5rem;
    min-height: 120px;
}

.card-list {
    list-style: none;
}

.card-list li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.card-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: bold;
}

/* ===== Visie Section ===== */
#visie {
    background-color: var(--grey-light);
}

.visie-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

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

.footer-grid:has(#footer-contact-col[style*="display: none"]) {
    display: flex;
    justify-content: center;
    gap: 8rem;
}


.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-col p {
    color: #cccccc;
}

.footer-heading {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-list li {
    margin-bottom: 0.8rem;
}

.footer-list a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333333;
    padding-top: 2rem;
}

.footer-bottom p {
    color: #888888;
    font-size: 0.9rem;
}

/* ===== Contact Form Layout ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    filter: grayscale(100%);
}

.contact-form-wrapper {
    background: transparent;
}

.contact-title {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

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

.form-group {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: var(--white);
    border: 2px solid var(--black);
    border-radius: 0;
    font-family: var(--font-stack);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-control::placeholder {
    color: #888;
}

.form-control:focus {
    outline: none;
    box-shadow: 4px 4px 0px 0px var(--black);
}

.textarea-large {
    min-height: 180px;
    resize: vertical;
    border-radius: 0;
}

.mt-3 {
    margin-top: 1.5rem;
}

.form-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-feedback {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    display: none;
    padding: 0.75rem;
    border: 2px solid;
    font-weight: 700;
}

.form-feedback.success {
    border-color: #2e7d32;
    color: #2e7d32;
    background: #e8f5e9;
}

.form-feedback.error {
    border-color: #c62828;
    color: #c62828;
    background: #ffebee;
}

/* ===== Dashboard Widgets ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.dashboard-widget {
    background-color: var(--white);
    border: 2px solid var(--black);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dashboard-widget:hover {
    box-shadow: 8px 8px 0px 0px var(--black);
    transform: translate(-4px, -4px);
}

.widget-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.widget-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid:has(#footer-contact-col[style*="display: none"]) {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* Can implement hamburger later if needed */
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .container {
        padding: 0 1.2rem;
    }
}

/* ===== Tooltip Styles ===== */
.tooltip-trigger {
    position: relative;
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--black);
    color: var(--black);
    font-weight: 600;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--black);
    color: var(--white);
    text-align: left;
    padding: 1rem;
    border-radius: 6px;
    width: max-content;
    max-width: 280px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    z-index: 1000;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    /* Prevent tooltip from blocking clicks */
}

/* Tooltip arrow */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--black) transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-content,
.tooltip-trigger:focus .tooltip-content,
.tooltip-trigger:active .tooltip-content {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .tooltip-content {
        max-width: 240px;
        white-space: normal;
    }
}