:root {
    --blue-dark: #0b2b4c;
    --blue: #1c497e;
    --blue-light: #2d89ef;
    --white: #ffffff;
    --gray: #f4f6f9;
    --gray-dark: #4E4E4E;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: var(--gray);
    color: #0b2b4c;
}

header {
    background: var(--blue-dark);
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
}

.logo {
    position: absolute;
    top: 20px;
    left: 30px;
}

.logo img {
    height: 50px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-style: italic;
    letter-spacing: 0.2em;
    color: var( --gray-dark);
    margin: 0;
    margin-top: -25px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 10px 0 30px;
    color: white;
}

.hero h3 {
    font-size: 1.8rem;
    color: white;
    margin: 20px 0 10px;
}

.hero h5 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    letter-spacing: 0.1em;
    color: var( --gray-dark);
    margin: 0;
    margin-bottom: 2.5rem;
}

.hero p {
    font-size: 1rem;
    color: #cbd6e2;
    margin-bottom: 20px;
}

.hero a {
    background: var(--blue-light);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

.grid {
    max-width: 960px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.card {
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 240px;
    background-image: url('../images/Logo_R_B_watermerk_transparant_large.png');
    z-index: 1;
}

.card h4 {
    margin: 0;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.white-card {
    background-color: var(--white);
    color: var(--blue-dark);
}

.blue-card {
    background-color: #1976d2;
    color: white;
}

.dark-card {
    background-color: var(--blue);
    color: white;
}

footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.8rem;
    color: #777;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.intro-section {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.intro-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #0b2b4c;
}

.intro-section p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (min-width: 769px) {
    .intro-section {
        grid-column: span 2;
    }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    padding: 0 20px;
}

.over-itqm-card {
    grid-column: span 2;
    position: relative;
    background-color: #ffffff;
    background-image: url('../images/Logo_R_B_watermerk_transparant_large.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    z-index: 1;
}

.over-itqm-card .container {
    position: relative;
    z-index: 2;
}

.over-itqm-card h2 {
    font-size: 1.5rem;
    color: #0b2b4c;
    margin-bottom: 20px;
}

.over-itqm-card p {
    font-size: 1rem;
    color: #222;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (min-width: 769px) {
    .over-itqm-card {
        grid-column: 1 / span 2;
    }
}

.over-itqm-card {
    grid-column: span 2;
    position: relative;
    background-color: #ffffff;
    background-image: url('../images/Logo_R_B_watermerk_transparant_large.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    z-index: 1;
    padding: 60px 20px;
    margin: 20px;
    border-radius: 20px;
}

.over-itqm-card .container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.over-itqm-card h2 {
    font-size: 1.5rem;
    color: #0b2b4c;
    margin-bottom: 20px;
}

.over-itqm-card p {
    font-size: 1rem;
    color: #222;
    line-height: 1.6;
    margin-bottom: 15px;
}

.over-itqm-card {
    grid-column: span 2;
    background-color: #ffffff;
    background-image: url('../images/Logo_R_B_watermerk_transparant_large.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    border-radius: 20px;
    padding: 60px 20px;
}

.over-itqm-card .container {
    max-width: 900px;
    margin: 0 auto;
}

.over-itqm-card h2 {
    font-size: 1.5rem;
    color: #0b2b4c;
    margin-bottom: 20px;
}

.over-itqm-card p {
    font-size: 1rem;
    color: #222;
    line-height: 1.6;
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "mij   diensten"
    "waarom itqm"
    "contact contact";
    gap: 20px;
    padding: 40px 20px;
}

.grid .card:nth-of-type(1) {
    grid-area: mij;
}

.grid .card:nth-of-type(2) {
    grid-area: diensten;
}

.grid .card:nth-of-type(3) {
    grid-area: itqm;
}

.grid .card:nth-of-type(4) {
    grid-area: waarom;
}

.grid .card:nth-of-type(5) {
    grid-area: contact;
}

.over-itqm-card {
    background-color: #ffffff;
    background-image: url('../images/Logo_R_B_watermerk_transparant_large.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    border-radius: 20px;
    padding: 60px 20px;
}

.grid-layout {
    display: grid;
    grid-template-areas: "top-left top-right"
    "bottom-left center bottom-right";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 40px 20px;
    justify-items: center;
}

.over-itqm-card {
    background-color: #ffffff;
    background-image: url('../images/Logo_R_B_watermerk_transparant_large.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    border-radius: 20px;
    padding: 60px 20px;
    width: 100%;
    grid-column: 2 / 3;
}

.grid-mockup {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    padding: 40px 20px;
    grid-template-areas: "top-left . top-right"
    "bottom-left center bottom-right"
    ". . .";
}

.tile {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.tile h4 {
    margin: 0;
    font-size: 1.2rem;
}

.center-tile {
    grid-area: center;
    background-color: #ffffff;
    background-image: url('../images/Logo_R_B_watermerk_transparant_large.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    padding: 60px 20px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.center-tile .container {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.centered-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr auto 1fr;
    gap: 30px;
    justify-items: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}

.centered-grid .tile {
    width: 250px;
    height: 250px;
    background-color: #ffffff;
    border-radius: 20px;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.centered-grid .center-tile {
    grid-column: 2;
    grid-row: 2;
    width: 540px;
    background-color: #ffffff;
    background-image: url('../images/Logo_R_B_watermerk_transparant_large.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.center-tile .container {
    max-width: 90%;
    margin: 0 auto;
}

.tile h4 {
    font-size: 1.2rem;
    color: #0b2b4c;
}
