/*
Theme Name: RT Praktijk Doorwerth Onderhoud
Theme URI: https://rt-praktijkdoorwerth.nl
Author: RT Praktijk Doorwerth
Description: Onderhoudspagina thema voor RT Praktijk Doorwerth
Version: 1.1
*/

:root {
    --rt-primary: #4A7C59;
    --rt-primary-dark: #3a6346;
    --rt-secondary: #E8A87C;
    --rt-background: #FBF8F3;
    --rt-surface: #FFFFFF;
    --rt-text: #2E3338;
    --rt-muted: #6B7280;
    --rt-border: #E7E1D6;
    --rt-shadow: 0 18px 48px rgba(46, 51, 56, 0.12);
    --rt-radius: 14px;
    --rt-radius-sm: 8px;
    --rt-font-heading: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
    --rt-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(74, 124, 89, 0.09), rgba(232, 168, 124, 0.12)),
        var(--rt-background);
    color: var(--rt-text);
    font-family: var(--rt-font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover,
a:focus {
    color: var(--rt-primary-dark);
    text-decoration: underline;
}

button,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--rt-secondary);
    outline-offset: 2px;
}

.maintenance-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 1.25rem;
}

.maintenance-hero {
    width: min(1220px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.maintenance-copy {
    max-width: 500px;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--rt-primary);
    font-family: var(--rt-font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    color: var(--rt-text);
    font-family: var(--rt-font-heading);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0;
}

h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 3.4vw, 3.05rem);
}

h2 {
    font-size: 1.7rem;
}

.lead {
    max-width: 460px;
    margin: 1rem 0 1.45rem;
    color: var(--rt-muted);
    font-size: 1.02rem;
}

.contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.contact-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(74, 124, 89, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--rt-primary-dark);
    font-size: 0.94rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(46, 51, 56, 0.06);
}

.contact-strip a:hover,
.contact-strip a:focus {
    background: var(--rt-surface);
    text-decoration: none;
}

.contact-form {
    width: 100%;
    background: var(--rt-surface);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius);
    box-shadow: var(--rt-shadow);
    padding: 1.9rem;
}

.contact-form > p {
    margin: 0.45rem 0 1.4rem;
    color: var(--rt-muted);
    font-size: 1.02rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.field {
    margin: 0 0 1rem;
}

.field label,
.checkbox-field label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--rt-text);
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-radius-sm);
    background: #fff;
    color: var(--rt-text);
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--rt-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
    outline: 0;
}

.field--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.checkbox-field {
    margin: 0 0 1.25rem;
}

.checkbox-field label {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-weight: 500;
    line-height: 1.45;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.25rem;
    accent-color: var(--rt-primary);
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0.85rem 1.55rem;
    border: 0;
    border-radius: 999px;
    background: var(--rt-primary);
    color: #fff;
    cursor: pointer;
    font-family: var(--rt-font-heading);
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus {
    background: var(--rt-primary-dark);
    box-shadow: 0 10px 24px rgba(46, 51, 56, 0.12);
    transform: translateY(-1px);
}

.form-message {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--rt-radius-sm);
    font-weight: 700;
}

.form-message--success {
    background: rgba(74, 124, 89, 0.12);
    color: var(--rt-primary-dark);
}

.form-message--error {
    background: rgba(232, 168, 124, 0.22);
    color: #814b29;
}

@media (min-width: 760px) {
    .maintenance-shell {
        padding: 4rem 2rem;
    }

    .maintenance-hero {
        grid-template-columns: minmax(260px, 0.7fr) minmax(520px, 1.3fr);
        gap: 2.5rem;
    }

    .contact-form {
        padding: 2.35rem;
    }

    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .maintenance-shell {
        align-items: flex-start;
        padding: 2rem 1rem;
    }

    h1 {
        max-width: none;
        font-size: 2.25rem;
    }

    .lead {
        font-size: 1.04rem;
    }

    .contact-strip a,
    .button {
        width: 100%;
    }
}
