:root {
    --ink: #1a232b;
    --muted: #5a6772;
    --accent: #2b4c65;
    --accent-strong: #1b3142;
    --paper: #f6f3ec;
    --paper-bright: #ffffff;
    --line: #d6d1c6;
    --shadow: 0 18px 45px rgba(16, 24, 35, 0.12);
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Tahoma", sans-serif;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 12% 10%, rgba(43, 76, 101, 0.08), transparent 45%),
        radial-gradient(circle at 82% 0%, rgba(154, 124, 82, 0.08), transparent 40%),
        linear-gradient(90deg, rgba(33, 50, 65, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(33, 50, 65, 0.04) 1px, transparent 1px);
    background-size: auto, auto, 140px 140px, 140px 140px;
    background-position: 0 0, 0 0, -24px -24px, -24px -24px;
}

img {
    display: block;
    max-width: 100%;
}

figure {
    margin: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

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

.page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 24px 72px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 72px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(16, 24, 35, 0.12);
    background: var(--paper-bright);
    padding: 8px;
}

.brand-name {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 26px;
    letter-spacing: 0.2em;
}

.brand-tagline {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
}

.lang-switch a {
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}

.lang-switch a[aria-current="page"] {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.hero {
    padding: 36px 0 24px;
    display: grid;
    gap: 18px;
}

.hero h1 {
    margin: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 40px;
    line-height: 1.1;
}

.hero p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    max-width: 72ch;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--paper-bright);
}

.contact-card {
    margin-top: 12px;
    background: var(--paper-bright);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.contact-card h2 {
    margin: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 20px;
}

.contact-card p {
    margin: 6px 0 0 0;
    font-size: 15px;
    color: var(--muted);
}

.section {
    margin-top: 48px;
}

.section h2 {
    margin: 0 0 12px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 28px;
}

.section h3 {
    margin: 0 0 10px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 20px;
}

.section p {
    margin: 0 0 20px;
    color: var(--muted);
    max-width: 72ch;
}

.tools-preview {
    border: 1px solid #c6d2c9;
    border-left: 5px solid #376a5a;
    border-radius: 8px;
    background: var(--paper-bright);
    padding: 18px 20px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    padding: 10px 14px;
    font-size: 14px;
}

.button-link:hover {
    background: var(--accent-strong);
    color: #ffffff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.service-item {
    background: var(--paper-bright);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.service-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.gallery-item {
    background: var(--paper-bright);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.gallery-item button {
    all: unset;
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.gallery-item button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f8f5ee;
    padding: 12px;
}

.gallery-item figcaption {
    padding: 14px 16px 18px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(12, 16, 22, 0.86);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-content {
    width: min(1100px, 92vw);
    display: grid;
    gap: 16px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #ffffff;
    padding: 18px;
    border-radius: 16px;
}

.lightbox-caption {
    color: #e8e9eb;
    font-size: 14px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}

.lightbox-close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 32px;
    }

    .contact-card {
        padding: 18px 20px;
    }

}

@media (max-width: 600px) {
    .page {
        padding: 28px 18px 64px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .gallery-item img {
        aspect-ratio: 1 / 1;
    }
}

/* Structural tools app: scoped additions after the copied www.easuys.be base CSS. */
.tool-shell {
    margin-top: 32px;
    background: var(--paper-bright);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    overflow: hidden;
}

.tool-nav {
    background: rgba(43, 76, 101, 0.06);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.tool-shell button {
    background: var(--paper-bright);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    min-height: 38px;
    padding: 8px 12px;
}

.tool-shell button:focus-visible,
.tool-shell input:focus-visible,
.tool-shell select:focus-visible,
.tool-shell textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tool-shell button[aria-current="true"],
.tool-shell button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.tool-nav button {
    line-height: 1.3;
    text-align: left;
    width: 100%;
}

.workspace {
    min-width: 0;
    padding: 22px;
}

.workspace-header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.workspace-header h2,
.workspace-header p {
    margin: 0;
}

.workspace-header h2 {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 28px;
    line-height: 1.15;
}

.workspace-header p:not(.eyebrow) {
    color: var(--muted);
    margin-top: 6px;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tool-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(18rem, 0.95fr) minmax(18rem, 1.05fr);
}

.calculator,
.result-panel {
    background: rgba(246, 243, 236, 0.45);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    padding: 16px;
}

.calculator {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calculator label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.friendly-form[hidden] {
    display: none;
}

.friendly-form {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 10px;
    padding-bottom: 14px;
}

.friendly-form-heading {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.friendly-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.friendly-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.friendly-field input,
.friendly-field select {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 38px;
    min-width: 0;
    padding: 8px 10px;
    width: 100%;
}

.friendly-field input[type="checkbox"] {
    height: 18px;
    min-height: 18px;
    width: 18px;
}

.friendly-field-checkbox {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    grid-template-columns: 18px 1fr;
    min-height: 38px;
    padding: 8px 10px;
}

.calculator textarea,
.result-panel pre {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 27rem;
    overflow: auto;
    padding: 12px;
    white-space: pre;
    width: 100%;
}

.calculator textarea {
    background: #ffffff;
    color: var(--ink);
    font: 0.9rem "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    resize: vertical;
}

.result-panel h2 {
    font-size: 1rem;
    margin: 0 0 12px;
}

.result-summary[hidden] {
    display: none;
}

.result-summary {
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.result-summary dl {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.result-summary div {
    min-width: 0;
}

.result-summary dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.result-summary dd {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.result-panel pre {
    background: #101820;
    color: #f2f5f7;
    font-size: 0.88rem;
    margin: 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 960px) {
    .tool-shell,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-nav {
        border-bottom: 1px solid var(--line);
        border-right: 0;
    }
}

@media (max-width: 600px) {
    .workspace {
        padding: 18px;
    }

    .friendly-fields {
        grid-template-columns: 1fr;
    }

    .calculator textarea,
    .result-panel pre {
        min-height: 22rem;
    }

    .result-summary dl {
        grid-template-columns: 1fr;
    }
}
