/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --border-color: rgba(0, 0, 0, 0.18);
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #414141;
    background-color: #f4f4f4;
}
section{
    margin:4rem 0;
}
img{
    max-width: 100%;
}
header h1 {
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.2;
    color: #845BFF;
}
/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.topsection {
    border: 1px solid var(--border-color);
    background-color: white;
}
.topsection h3{
    padding: 0 1rem 1rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0rem;
}
.maintitle { 
    border-radius: 3px;
    padding: 1rem;
    font-size: 2rem;
    font-weight: 500;
    background-color:#D9F6FF;
}
.logo {
    width: 100px;
    height: auto;
}
/* Services list */
.services-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.services-list li {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    padding: 1rem;
}

/* Avoid double borders: remove top for first row, left for first column */
.services-list li:nth-child(-n+3) {
    border-top: none;
}
.services-list li:nth-child(3n+1) {
    border-left: none;
}
/*PEOPLE section*/
.people {
    display: flex;
    gap: 6rem;
}
.person {
    flex: 1;
}
/*************/
/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}


.reference-img:hover {
    filter: grayscale(0%);
}

/* Form elements */
input, textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }
    
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    .services-list {
        grid-template-columns: 1fr;
    }
}

/* Hairline borders on high-DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .topsection,
    .services-list li,
    a.linkto {
        border-width: 0.5px;
    }
}

.referenties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    padding: 2rem 0;
}

.reference-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

a.linkto {
    padding: 0.5rem;
    border: #404040 dashed 1px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.icon  {
    width:24px;
}
.person-title{
    margin-bottom: 2rem;;
}
h4  {
    background-color: #4AFF56;
}

/* Make person cards full width on mobile */
@media screen and (max-width: 768px) {
    .people {
        flex-direction: column;
    }
    
    .person {
        width: 100%;
    }
}

