/* ==========================================================
   DigyFix — Website op maat
   Zelfde kleuren en lettertype als de homepage.
   De three.js-achtergrond staat in website-custom-bg.css.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..800&display=swap');

.website-page {
    --website-text: #edf1f7;
    --website-text-muted: #c5cedc;
    --website-ink: #0f1b2d;
    --website-muted: var(--site-muted);
    --website-line: var(--site-border);
    --website-blue: #1f4fa8;
    --website-blue-deep: #143572;
    --website-tag: #f3c332;
    --website-tag-hover: #ffd75a;
    --website-glass: var(--site-surface-soft);
    --website-glow: 0 1px 2px #0000000f, 0 18px 50px -12px #0000002e;

    padding-top: 0;
    padding-bottom: 96px;
    color: var(--website-text);
    font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

.website-page a:focus-visible {
    outline: 3px solid var(--website-tag);
    outline-offset: 4px;
}

/* ----------------------------------------------------------
   Knoppen
   ---------------------------------------------------------- */

.website-page .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 32px;
    padding: 14px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--website-tag);
    color: var(--website-ink);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 10px 24px -12px #f3c332b3;
    transition: background 160ms ease;
}

.website-page .button:hover {
    background: var(--website-tag-hover);
}

/* ----------------------------------------------------------
   Blok 1: introductie
   ---------------------------------------------------------- */

.website-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    /* Tekst en foto beginnen op dezelfde hoogte (bovenkant van de titel);
       samen staan ze in het midden van het blok. */
    align-items: start;
    align-content: center;
    gap: clamp(24px, 4vw, 56px);
    min-height: min(720px, calc(100vh - 80px));
    padding: 96px 0 72px;
}

.website-heading-copy {
    min-width: 0;
}

.website-heading-image {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 32px #00000040);
}

.website-heading h1 {
    max-width: 15ch;
    margin: 0;
    font-size: clamp(2.6rem, 4vw, 3.5rem);
    font-weight: 700;
    font-stretch: 118%;
    letter-spacing: -0.035em;
    line-height: 1;
    text-wrap: balance;
}

.website-heading-copy > p {
    max-width: 48ch;
    margin: 28px 0 0;
    color: var(--website-text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ----------------------------------------------------------
   Blok 2: werkwijze
   ---------------------------------------------------------- */

.website-process-title,
.website-details > h2,
.website-contact > h2 {
    max-width: 20ch;
    margin: 0 0 32px;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 700;
    font-stretch: 115%;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
}

.website-page .website-process-title {
    margin-top: 24px;
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    scroll-margin-top: 96px;
}

.website-card {
    position: relative;
    color: var(--website-text);
    padding: 28px 24px 30px;
    border: 1px solid var(--website-line);
    border-radius: 16px;
    background: var(--website-glass);
    box-shadow: var(--website-glow);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Gele lijn bovenaan: de stappen lezen als één route. */
.website-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    width: 40px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--website-tag);
}

.website-card h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 700;
    font-stretch: 112%;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.website-card p {
    margin: 0;
    color: var(--website-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ----------------------------------------------------------
   Blok 3: uitklapbare websitecategorieën
   ---------------------------------------------------------- */

.website-details {
    margin-top: 120px;
}

.website-details > h2 {
    margin-bottom: 16px;
}

.website-details-intro {
    max-width: 60ch;
    margin: 0 0 32px;
    color: var(--website-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.website-categories {
    display: grid;
    gap: 16px;
}

.website-category {
    min-width: 0;
    border: 1px solid var(--website-line);
    border-radius: 16px;
    background: var(--website-glass);
    box-shadow: var(--website-glow);
    color: var(--website-text);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.website-category-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    cursor: pointer;
    list-style: none;
}

.website-category-summary::-webkit-details-marker {
    display: none;
}

.website-category-summary:focus-visible {
    outline: 3px solid var(--site-link);
    outline-offset: -5px;
}

.website-category-heading {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.website-category-label {
    color: var(--site-link);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.5;
}

.website-category-title {
    font-size: clamp(1.3rem, 2.4vw, 1.65rem);
    font-weight: 700;
    font-stretch: 112%;
    letter-spacing: -0.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.website-category-teaser {
    color: var(--website-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.website-category-pricing {
    display: grid;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid #c99e224d;
    border-radius: 10px;
    background: #f3c33226;
    color: var(--website-text);
    font-size: 0.8rem;
    line-height: 1.5;
}

.website-category-pricing strong {
    font-size: 1.125rem;
    font-weight: 700;
    white-space: nowrap;
}

.website-price-note {
    max-width: 76ch;
    margin: 20px 0 0;
    color: var(--website-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.website-category-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--site-border);
    border-radius: 50%;
    color: var(--site-link);
    transition: background 180ms ease;
}

.website-category-toggle svg {
    width: 22px;
    height: 22px;
    transition: transform 220ms ease;
}

.website-category-summary:hover .website-category-toggle,
.website-category[open] .website-category-toggle {
    border-color: var(--website-tag);
    background: var(--website-tag);
    color: var(--website-ink);
}

.website-category[open] .website-category-toggle svg {
    transform: rotate(180deg);
}

.website-category-content {
    margin: 0 24px;
    padding: 24px 0;
    border-top: 1px solid var(--site-border);
}

.website-category-description {
    max-width: 78ch;
    margin: 0 0 24px;
    color: var(--website-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.website-category-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.website-category-comparison > section {
    padding: 24px;
    border-radius: 12px;
    background: #ffffff0a;
}

.website-category-comparison h3 {
    margin: 0 0 16px;
    color: var(--site-link);
    font-size: 1.05rem;
    line-height: 1.4;
}

.website-category-drawbacks h3 {
    color: var(--website-tag);
}

.website-category-comparison ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
    color: var(--website-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.website-category-benefits li::marker {
    color: var(--site-link);
}

.website-category-drawbacks li::marker {
    color: var(--website-tag);
}

/* ----------------------------------------------------------
   Blok 4: onderhoud van bestaande websites
   ---------------------------------------------------------- */

.website-maintenance {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
    align-items: center;
    gap: 40px;
    margin-top: 120px;
    padding: 48px;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background: var(--site-surface);
}

.website-maintenance-copy {
    min-width: 0;
}

.website-maintenance h2 {
    max-width: 22ch;
    margin: 0 0 24px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-wrap: balance;
}

.website-maintenance-copy > p {
    margin: 0 0 16px;
    color: var(--website-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.website-maintenance-copy > p:last-child {
    margin-bottom: 0;
}

/* Kader over het verhuizen van een website naar ons */
.website-migration {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 3px solid var(--website-tag);
    border-radius: 0 12px 12px 0;
    background: var(--site-surface-soft);
}

.website-migration p {
    margin: 0;
    color: var(--website-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.website-migration .website-migration-title {
    margin-bottom: 4px;
    color: var(--website-text);
    font-size: 1rem;
    font-weight: 650;
}

.website-migration a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--website-tag);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.website-migration a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.website-migration svg {
    width: 16px;
    height: 16px;
}

.website-maintenance-rate {
    padding: 32px 24px;
    border: 1px solid var(--website-line);
    border-radius: 16px;
    background: var(--website-glass);
    color: var(--website-text);
    text-align: center;
}

.website-maintenance-rate-label {
    margin: 0 0 20px;
    color: var(--site-link);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.5;
}

.website-maintenance-amount {
    display: grid;
    gap: 8px;
    margin: 0;
}

.website-maintenance-amount strong {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.website-maintenance-amount span,
.website-maintenance-rate-note {
    color: var(--website-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.website-maintenance-rate-note {
    margin: 20px 0 0;
}

.website-maintenance-rate .button {
    width: 100%;
    margin-top: 24px;
}

/* ----------------------------------------------------------
   Blok 5: contact
   ---------------------------------------------------------- */

.website-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 48px;
    margin-top: 120px;
    padding: 64px;
    border-radius: 20px;
    background:
        linear-gradient(to right, #ffffff0f 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(to bottom, #ffffff0f 1px, transparent 1px) 0 0 / 24px 24px,
        var(--website-blue-deep);
    box-shadow: 0 2px 4px #00000014, 0 30px 70px -18px #00000059;
}

.website-contact > h2 {
    grid-column: 1;
    margin: 0;
    color: #fff;
}

.website-contact > p {
    grid-column: 1;
    max-width: 52ch;
    margin: 0;
    color: #d5e1f7;
    font-size: 1.05rem;
    line-height: 1.7;
}

.website-contact > .button {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .website-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .website-maintenance {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .website-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        min-height: 0;
        padding: 64px 0;
    }

    .website-heading-image {
        max-width: 600px;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .website-page {
        padding-bottom: 64px;
    }

    .website-heading {
        min-height: 0;
        padding: 56px 0 48px;
    }

    .website-heading-copy > p {
        font-size: 1.02rem;
    }

    .website-page .button {
        width: 100%;
    }

    .website-grid,
    .website-category-comparison {
        grid-template-columns: minmax(0, 1fr);
    }

    .website-details,
    .website-maintenance,
    .website-contact {
        margin-top: 80px;
    }

    .website-card {
        padding: 24px;
    }

    .website-maintenance {
        padding: 32px 24px;
    }

    .website-maintenance-rate {
        padding: 28px 20px;
    }

    .website-category-summary {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 20px 16px;
        padding: 20px;
    }

    .website-category-pricing {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }

    .website-category-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .website-category-content {
        margin: 0 20px;
        padding: 20px 0;
    }

    .website-category-comparison > section {
        padding: 20px;
    }

    .website-contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 36px 24px 32px;
    }

    .website-contact > .button {
        grid-column: 1;
        grid-row: auto;
        margin-top: 16px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .website-page * {
        transition: none !important;
    }
}
