/* Shape At Home - gedeelde stijl voor tijdelijke site en juridische pagina's */

:root {
    --olive: #687a45;
    --olive-dark: #55663a;
    --olive-deep: #333d1e;
    --olive-light: #a8bd82;
    --black: #000000;
    --white: #ffffff;
    --ink: #1a1a1a;
    --hero-ink: #14170e;
    --muted: #555555;
    --line: #e6e6e6;
    --content-width: 760px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    background: var(--olive);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 0;
}

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
}

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

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

a:hover {
    color: var(--olive-dark);
}

:focus-visible {
    outline: 3px solid var(--olive);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---------- Hero split-frame (tijdelijke pagina) ---------- */

.hero-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--hero-ink);
}

.hero {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    color: var(--white);
}

.hero__photo-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    transform: scaleX(-1);
}

.hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 45%;
    transform: scale(1.08);
    transform-origin: 68% 45%;
    animation: kenburns 26s ease-in-out infinite alternate;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(20, 23, 14, 0.62) 0%, rgba(20, 23, 14, 0.08) 40%, rgba(20, 23, 14, 0) 62%);
    pointer-events: none;
}

@keyframes kenburns {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.panel {
    position: relative;
    z-index: 2;
    width: min(44%, 600px);
    min-height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(155deg, rgba(104, 122, 69, 0.88) 0%, rgba(51, 61, 30, 0.88) 78%, rgba(20, 23, 14, 0.9) 130%);
    backdrop-filter: blur(10px) saturate(1.08);
    -webkit-backdrop-filter: blur(10px) saturate(1.08);
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
    filter: drop-shadow(14px 0 34px rgba(0, 0, 0, 0.38));
    padding: clamp(2rem, 4vw, 4.5rem) clamp(1.75rem, 5vw, 4rem) clamp(2rem, 4vw, 4.5rem) clamp(1.75rem, 6vw, 5rem);
}

.panel__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    max-width: 30rem;
}

.panel__content > * {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__logo { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.2s; }
.hero__body { animation-delay: 0.46s; }
.hero .cta { animation-delay: 0.62s; }

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

.hero__logo {
    width: clamp(190px, 20vw, 280px);
    height: auto;
}

.hero h1 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.98;
    font-size: clamp(2.5rem, 1.6rem + 4vw, 4.6rem);
    text-wrap: balance;
}

.hero__body {
    margin: 0;
    max-width: 34ch;
    font-size: clamp(1rem, 0.94rem + 0.25vw, 1.12rem);
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- Knop (hero CTA) ---------- */

.cta {
    display: inline-flex;
    align-items: center;
    margin-top: 0.4rem;
    padding: 0.95rem 1.8rem;
    border: 2px solid var(--white);
    border-radius: 999px;
    color: var(--white);
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cta:hover {
    background: var(--white);
    color: var(--olive-deep);
    transform: translateY(-2px);
}

.cta:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 4px;
    border-radius: 999px;
}

/* Hero mobiel: gestapeld, geen diagonaal op het paneel */
@media (max-width: 860px) {
    .hero {
        display: flex;
        flex-direction: column;
    }

    .hero__photo-wrap {
        position: relative;
        inset: auto;
        height: 36vh;
        clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
    }

    .hero__photo {
        animation: none;
        transform: none;
    }

    .hero__scrim {
        display: none;
    }

    .panel {
        width: 100%;
        min-height: 0;
        clip-path: none;
        filter: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        justify-content: center;
        padding: 2.25rem 1.5rem 2.75rem;
    }

    .panel__content {
        max-width: 34rem;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 1.5rem + 5vw, 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__photo {
        animation: none !important;
        transform: none !important;
    }

    .panel__content > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .cta {
        transition: none;
    }
}

/* ---------- Header (juridische pagina's) ---------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-top: 4px solid var(--olive);
    border-bottom: 1px solid var(--line);
}

.site-header__logo {
    display: inline-block;
    line-height: 0;
}

.site-header__logo img {
    height: 46px;
    width: auto;
}

.back-link {
    font-weight: 600;
    text-decoration: none;
    color: var(--olive);
}

.back-link:hover {
    text-decoration: underline;
}

.nav-arrow {
    margin-right: 0.35em;
}

/* ---------- Juridische content ---------- */

.legal {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
}

.legal h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.legal h2 {
    margin: 2.5rem 0 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--olive);
    font-size: 1.3rem;
    line-height: 1.3;
}

.legal h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 1.5rem;
}

.legal h3 {
    margin: 1.5rem 0 0.4rem;
    font-size: 1.05rem;
    color: var(--ink);
}

.legal p {
    margin: 0 0 1rem;
}

.legal ul {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}

.legal li {
    margin: 0.35rem 0;
}

.legal li::marker {
    color: var(--olive);
}

.legal dl {
    margin: 0 0 1rem;
}

.legal dt {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.legal dd {
    margin: 0.15rem 0 0;
}

.legal address {
    font-style: normal;
    line-height: 1.8;
}

.legal .back-bottom {
    display: inline-block;
    margin-top: 2.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--olive);
}

.legal .back-bottom:hover {
    text-decoration: underline;
}

/* ---------- Footer (alle pagina's) ---------- */

.site-footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 1.75rem 1.5rem;
    font-size: 0.9rem;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin-bottom: 0.85rem;
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--olive-light);
    text-decoration: underline;
}

.site-footer :focus-visible {
    outline-color: var(--olive-light);
}

.site-footer__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

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