/* Discreet controls with generous keyboard and touch targets. */
.site-accessibility {
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 1000;
    color: #252525;
    font: 14px/1.5 Inter, system-ui, sans-serif;
}

.site-accessibility summary {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    background: #f7f7f7;
    color: #414141;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 2px 10px #0002;
}

.site-accessibility summary::-webkit-details-marker { display: none; }
.site-accessibility .accessibility-options {
    position: absolute;
    bottom: 54px;
    left: 0;
    display: grid;
    gap: 8px;
    box-sizing: border-box;
    width: 260px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 32px #0003;
}

.site-accessibility strong { padding: 0 4px 8px; font-size: 16px; font-weight: 600; }
.site-accessibility button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 9px;
    background: #fafafa;
    color: #333;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.site-accessibility button:hover { background: #f0f0f0; }
.site-accessibility button[aria-pressed="true"] { background: #e9efeb; border-color: #6c8272; color: #1c3d29; }
.site-accessibility button[aria-pressed="true"]::after { content: "✓"; margin-left: 8px; }
.site-accessibility button[data-reset] { justify-content: center; background: white; margin-top: 4px; }

/* A two-tone focus ring remains visible on light and dark sections. */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid white !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #222 !important;
}

html.a11y-large-text #main .framer-text { font-size: calc(var(--framer-font-size, 16px) * 1.15) !important; }
html.a11y-underline-links #main a { text-decoration: underline !important; text-underline-offset: 3px; }
.accessibility-statement-link {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 20px 20px;
    color: #777;
    font: 14px/1.5 Inter, system-ui, sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Reduced motion preserves positioning and switches only animated controls. */
html.a11y-reduce-motion { scroll-behavior: auto !important; }

html.a11y-reduce-motion #main * { animation: none !important; transition: none !important; }
html.a11y-reduce-motion #main [data-framer-appear-id] { opacity: 1 !important; filter: none !important; }
html.a11y-reduce-motion #main h1 span { opacity: 1 !important; filter: none !important; transform: none !important; }

/* Keep one stationary label instead of the rolling duplicate. */
html.a11y-reduce-motion #main [data-framer-name="Text wrapper"] {
    justify-content: flex-start !important;
    transform: none !important;
}
html.a11y-reduce-motion #main [data-framer-name="Text wrapper"] > :first-child {
    transform: none !important;
    opacity: 1 !important;
}
html.a11y-reduce-motion #main [data-framer-name="Text wrapper"] > :not(:first-child) { display: none !important; }
html.a11y-reduce-motion #main a:has([data-framer-name="Text wrapper"]) { transform: none !important; }

/* Let CSS resolve the menu size immediately, rather than tweening its height. */
html.a11y-reduce-motion #main [data-framer-name="Navbar"] :is(.framer-1PzNS, .framer-KUaw0) {
    height: auto !important;
    width: 100% !important;
    transform: none !important;
}
html.a11y-reduce-motion #main [data-framer-name="Navbar"] [data-framer-name="Mobile"] [data-framer-name="Nav links"] {
    display: none !important;
}
html.a11y-reduce-motion #main [data-framer-name="Navbar"] [data-framer-name="Nav links"] {
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Static end-state hamburger/cross, shown only when reduced motion is enabled. */
html.a11y-reduce-motion #main [data-framer-name="Navbar"] :is(.framer-0dmJB, .framer-BUTOg) > * { display: none !important; }
html.a11y-reduce-motion #main [data-framer-name="Navbar"] :is(.framer-0dmJB, .framer-BUTOg)::before,
html.a11y-reduce-motion #main [data-framer-name="Navbar"] :is(.framer-0dmJB, .framer-BUTOg)::after {
    content: "";
    position: absolute;
    left: 2px;
    top: calc(50% - 4px);
    width: 20px;
    height: 2px;
    background: white;
}
html.a11y-reduce-motion #main [data-framer-name="Navbar"] :is(.framer-0dmJB, .framer-BUTOg)::after { top: calc(50% + 4px); }
html.a11y-reduce-motion #main [data-framer-name="Mobile Opened"] :is(.framer-0dmJB, .framer-BUTOg)::before {
    top: 50%;
    transform: rotate(45deg);
}
html.a11y-reduce-motion #main [data-framer-name="Mobile Opened"] :is(.framer-0dmJB, .framer-BUTOg)::after {
    top: 50%;
    transform: rotate(-45deg);
}
html.a11y-reduce-motion #hero [data-framer-name="Logo's"] ul { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto !important; }

#main * { animation: none !important; transition: none !important; }
#main [data-framer-appear-id] { opacity: 1 !important; filter: none !important; }
#main h1 span { opacity: 1 !important; filter: none !important; transform: none !important; }

/* Keep one stationary label instead of the rolling duplicate. */
#main [data-framer-name="Text wrapper"] {
    justify-content: flex-start !important;
    transform: none !important;
}
#main [data-framer-name="Text wrapper"] > :first-child {
    transform: none !important;
    opacity: 1 !important;
}
#main [data-framer-name="Text wrapper"] > :not(:first-child) { display: none !important; }
#main a:has([data-framer-name="Text wrapper"]) { transform: none !important; }

/* Let CSS resolve the menu size immediately, rather than tweening its height. */
#main [data-framer-name="Navbar"] :is(.framer-1PzNS, .framer-KUaw0) {
    height: auto !important;
    width: 100% !important;
    transform: none !important;
}
#main [data-framer-name="Navbar"] [data-framer-name="Mobile"] [data-framer-name="Nav links"] {
    display: none !important;
}
#main [data-framer-name="Navbar"] [data-framer-name="Nav links"] {
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Static end-state hamburger/cross, shown only when reduced motion is enabled. */
#main [data-framer-name="Navbar"] :is(.framer-0dmJB, .framer-BUTOg) > * { display: none !important; }
#main [data-framer-name="Navbar"] :is(.framer-0dmJB, .framer-BUTOg)::before,
#main [data-framer-name="Navbar"] :is(.framer-0dmJB, .framer-BUTOg)::after {
    content: "";
    position: absolute;
    left: 2px;
    top: calc(50% - 4px);
    width: 20px;
    height: 2px;
    background: white;
}
#main [data-framer-name="Navbar"] :is(.framer-0dmJB, .framer-BUTOg)::after { top: calc(50% + 4px); }
#main [data-framer-name="Mobile Opened"] :is(.framer-0dmJB, .framer-BUTOg)::before {
    top: 50%;
    transform: rotate(45deg);
}
#main [data-framer-name="Mobile Opened"] :is(.framer-0dmJB, .framer-BUTOg)::after {
    top: 50%;
    transform: rotate(-45deg);
}
#hero [data-framer-name="Logo's"] ul { transform: none !important; }

}

/* Reserve space at the page end so the fixed accessibility button cannot cover the footer. */
#main { padding-bottom: 72px; }
