:root {
    --bg-top: #f5f7fa;
    --bg-bottom: #f2f4f7;
    --surface: #ffffff;
    --surface-soft: #f8f9fb;
    --text-main: #222d3b;
    --text-muted: #657181;
    --line: #e3e7ec;
    --accent: #2f63b8;
    --shadow-soft: 0 10px 34px -24px rgba(34, 45, 59, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Lato", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(1000px 420px at 50% -10%, #ffffff 0%, transparent 65%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    line-height: 1.5;
    scroll-behavior: smooth;
}

.site-container {
    width: min(1120px, 100%);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 5vw, 4.5rem);
}

@media (min-width: 901px) {
    .site-main section:not(#home) > .site-container {
        width: 75%;
        max-width: 75%;
    }
}

section {
    width: 100%;
}

h1,
h2,
h3 {
    font-family: "Merriweather", "Times New Roman", serif;
    line-height: 1.25;
    margin-top: 0;
}

a {
    color: var(--accent);
}

a:hover {
    color: color-mix(in srgb, var(--accent), #000 16%);
}

.hero-banner {
    min-height: 450px;
    background-image:
        linear-gradient(rgba(20, 30, 44, 0.42), rgba(20, 30, 44, 0.42)),
        url("/images/hero-image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
}

.hero-overlay {
    min-height: 450px;
    display: grid;
    place-items: center;
}

.hero-content {
    text-align: center;
    color: #ffffff;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2.15rem, 5vw, 3.8rem);
    text-shadow: 0 4px 20px rgba(14, 18, 25, 0.45);
}

.hero-content p {
    margin: 0.7rem 0 0;
    font-size: clamp(1.02rem, 2.2vw, 1.35rem);
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(14, 18, 25, 0.45);
}

.hero-cta {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #223448;
    font-weight: 700;
    text-decoration: none;
}

.hero-cta:hover {
    color: #111b28;
    transform: translateY(-1px);
}

.about-block {
    padding-top: 1.5rem;
}

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.about-copy,
.about-photo,
.service-card,
.post-row,
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.about-copy {
    border-radius: 0.8rem;
    padding: 1.2rem;
    height: 100%;
}

.about-copy p {
    margin: 0;
    color: var(--text-muted);
}

.about-copy p + p {
    margin-top: 0.8rem;
}

.about-value-list {
    margin: 1rem 0 0;
    padding-left: 1rem;
    color: var(--text-muted);
    display: grid;
    gap: 0.42rem;
}

.about-value-list strong {
    color: var(--text-main);
}

.about-facts {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.about-facts span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.66rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #284974;
    background: color-mix(in srgb, var(--accent), white 89%);
    border: 1px solid color-mix(in srgb, var(--accent), white 74%);
}

.about-process {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.about-process article {
    border: 1px solid var(--line);
    border-radius: 0.62rem;
    background: var(--surface-soft);
    padding: 0.7rem;
}

.about-process h3 {
    margin: 0;
    font-size: 0.95rem;
}

.about-process p {
    margin-top: 0.38rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.about-cta {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    font-weight: 700;
    color: var(--text-main);
}

.about-cta a {
    margin-left: 0.35rem;
    font-weight: 700;
}

.about-photo {
    margin: 0;
    width: 100%;
    justify-self: stretch;
    border-radius: 0.8rem;
    padding: 0.8rem;
    height: 100%;
    display: flex;
}

.about-photo img {
    height: 100%;
    width: 100%;
    border-radius: 0.5rem;
    display: block;
    object-fit: cover;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.service-card {
    border-radius: 0.7rem;
    padding: 1rem;
}

.service-icon {
    margin: 0 0 0.75rem;
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    background: color-mix(in srgb, var(--surface-soft), #eef3f9 35%);
    border: 1px solid color-mix(in srgb, var(--line), #d6e0ef 25%);
}

.service-icon img {
    width: 120px;
    max-width: 100%;
    height: auto;
    display: block;
}

.service-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.service-card p {
    margin: 0.55rem 0 0;
    color: var(--text-muted);
}

.clients-section {
    padding: 0.5rem 0 1.5rem;
}

.clients-panel {
    background: linear-gradient(135deg, #5b606a 0%, #4d535d 100%);
    border-radius: 0.9rem;
    padding: clamp(1.2rem, 2.6vw, 2rem);
    border: 1px solid #6a707b;
    box-shadow: 0 12px 34px -24px rgba(17, 20, 27, 0.45);
}

.clients-panel h2 {
    color: #f8fafc;
    text-align: center;
}

.clients-section h2,
.posts-list h2,
.contact-card h2,
.about-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 0.7rem;
}

.clients-intro {
    margin: 0 0 1rem;
    color: #cbd3df;
    text-align: center;
}

.client-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    align-items: center;
}

.client-logo-item {
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    flex: 0 1 150px;
}

.client-logo-item img {
    width: auto;
    max-width: 160px;
    height: 46px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) invert(1) opacity(0.92);
}

.client-logo-diabeter {
    transform: scale(1.75);
    transform-origin: center;
}

.client-logo-heijmans {
    transform: scale(1.95);
    transform-origin: center;
}

.client-logo-starion {
    transform: scale(2.05);
    transform-origin: center;
}

.posts-list {
    display: grid;
    gap: 1rem;
}

.post-row {
    display: grid;
    grid-template-columns: 235px 1fr;
    gap: 1rem;
    border-radius: 0.55rem;
    padding: 1rem;
}

.post-row img {
    width: 100%;
    height: 100%;
    max-height: 190px;
    object-fit: cover;
    border-radius: 0.4rem;
}

.post-date {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.post-content h3 {
    margin: 0.2rem 0 0.3rem;
    font-size: 1.3rem;
}

.post-content p {
    color: var(--text-muted);
}

.post-link {
    font-weight: 700;
    text-decoration: none;
}

.contact-section {
    padding: 0.4rem 0 2.5rem;
}

.contact-card {
    border-radius: 0.8rem;
    padding: 1.1rem;
}

.contact-card p {
    margin: 0 0 0.55rem;
    color: var(--text-muted);
}

.section-animate {
    animation: slideIn 560ms ease both;
}

.section-animate.delayed {
    animation-delay: 120ms;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff0be;
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.7rem 1.2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 7rem;
    height: 7rem;
    inset: 16vh 0 auto;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #d4dee8;
    stroke-width: 0.58rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    inset: calc(16vh + 2.95rem) 0 auto;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

@media (max-width: 900px) {
    .about-section,
    .services-grid,
    .post-row {
        grid-template-columns: 1fr;
    }

    .client-logo-grid {
        justify-content: center;
    }

    .client-logo-item {
        flex: 0 1 140px;
    }

    .post-row img {
        max-height: 220px;
    }

    .hero-banner,
    .hero-overlay {
        min-height: 320px;
    }

    .about-photo {
        justify-self: center;
        height: auto;
    }

    .about-photo img {
        width: 100%;
        height: auto;
        max-width: 420px;
    }

    .about-process {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-container {
        padding-inline: 1.1rem;
    }
}
