/*
Theme Name: Praxislicht
Author: Praxislicht
Description: Theme für Arztpraxen mit Hero-Slider, Kontaktbuttons, Praxisteam, Leistungen, Karriere und Kontakt. Beispielinhalte werden beim ersten Aktivieren angelegt.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: praxislicht
Tags: custom-logo, custom-menu, featured-images
*/

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/source-sans-3-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/outfit-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/outfit-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/outfit-latin-600-normal.woff2") format("woff2");
}

:root {
    --ink: #1c2430;
    --ink-soft: color-mix(in srgb, var(--ink) 62%, var(--paper));
    --forest: #0a4843;
    --forest-deep: color-mix(in srgb, var(--forest) 78%, black);
    --copper: #0f766e;
    --copper-deep: color-mix(in srgb, var(--copper) 82%, black);
    --note: #0f766e;
    --mist: #f4f7f9;
    --sage: color-mix(in srgb, var(--forest) 14%, var(--mist));
    --paper: #ffffff;
    --line: color-mix(in srgb, var(--ink) 12%, transparent);
    --sans: "Source Sans 3", "Segoe UI", sans-serif;
    --header-h: 4.5rem;
    --shadow: 0 10px 28px color-mix(in srgb, var(--ink) 6%, transparent);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    text-rendering: optimizeLegibility;
}

main {
    flex: 1 0 auto;
}

.admin-bar {
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a {
    color: var(--forest);
    text-underline-offset: 0.18em;
}

strong,
b {
    font-weight: 600;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 80;
    background: #fff;
    color: var(--ink);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

.sr-only,
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main:focus {
    outline: none;
}

.wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.wrap.wrap--narrow {
    width: min(44rem, calc(100% - 2.5rem));
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--copper);
}

.eyebrow::before {
    content: "";
    width: 1.1rem;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 38rem;
}

.icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 600 1rem/1 var(--sans);
    text-decoration: none;
    cursor: pointer;
    background: transparent;
}

.btn--primary {
    background: var(--copper);
    color: #fff;
}

.btn--primary:hover {
    background: var(--copper-deep);
    color: #fff;
}

.btn--forest {
    background: var(--forest);
    color: #fff;
}

.btn--forest:hover {
    background: var(--forest-deep);
    color: #fff;
}

.btn--ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.btn--ghost:hover {
    border-color: var(--forest);
    color: var(--forest);
}

.btn--line {
    color: var(--forest);
    border-color: var(--forest);
}

.btn--line:hover {
    background: var(--forest);
    color: #fff;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--forest);
    text-decoration: none;
}

.link-arrow:hover {
    color: var(--copper);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    min-height: var(--header-h);
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
    top: 32px;
}

.site-header__inner {
    width: min(1280px, calc(100% - 2.5rem));
    margin-inline: auto;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    max-width: 16rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.brand__logo {
    width: auto;
    height: 2.6rem;
    max-width: 4.5rem;
}

.site-nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    gap: 1.15rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__list a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a {
    color: var(--forest);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--forest);
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--forest) 35%, transparent);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.header-phone:hover {
    border-color: var(--forest);
    background: color-mix(in srgb, var(--forest) 8%, white);
}

.nav-toggle,
.nav-contact {
    display: none;
}

.nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.nav-toggle__box {
    position: relative;
    width: 1rem;
    height: 0.75rem;
}

.nav-toggle__box span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__box span:nth-child(1) { top: 0; }
.nav-toggle__box span:nth-child(2) { top: 50%; }
.nav-toggle__box span:nth-child(3) { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.site-header.is-open {
    color: var(--ink);
    background: var(--paper);
    border-bottom-color: var(--line);
}

.hero {
    position: relative;
    color: var(--ink);
    background: color-mix(in srgb, var(--copper) 14%, white);
    padding: calc(var(--header-h) + 2.5rem) 0 5.75rem;
}

.hero__media {
    position: absolute;
    top: calc(var(--header-h) + 2.5rem);
    right: max(1.25rem, calc((100% - 1120px) / 2));
    width: min(26rem, 40%);
    height: 24rem;
    border: 3px solid var(--copper);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px color-mix(in srgb, var(--copper) 18%, transparent);
}

.hero__veil {
    display: none;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero__slide img,
.hero__img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

.hero__layout {
    position: relative;
    z-index: 2;
    min-height: 24rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.75rem;
}

.hero__content {
    max-width: 32rem;
}

.hero h1 {
    margin: 0.4rem 0 0.8rem;
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero .eyebrow {
    color: var(--copper);
}

.hero__lead {
    max-width: 32rem;
    margin: 0 0 1.4rem;
    font-size: 1.2rem;
    color: var(--ink-soft);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.hero__controls {
    position: absolute;
    z-index: 2;
    top: calc(var(--header-h) + 2.5rem + 24rem + 0.9rem);
    right: max(1.25rem, calc((100% - 1120px) / 2));
    width: min(26rem, 40%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.slider-btn,
.dots button {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    min-width: 2.75rem;
    min-height: 2.75rem;
}

.slider-btn {
    width: 2.75rem;
    padding: 0;
    display: grid;
    place-items: center;
}

.slider-btn:hover,
.dots button:hover {
    border-color: var(--forest);
    color: var(--forest);
}

.dots {
    display: flex;
    gap: 0.15rem;
}

.dots button {
    position: relative;
    width: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    background: transparent;
    border-color: transparent;
}

.dots button::after {
    content: "";
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    margin: auto;
    border-radius: 99px;
    background: color-mix(in srgb, var(--ink) 28%, transparent);
}

.dots button[aria-current="true"]::after {
    width: 1.35rem;
    background: var(--copper);
}

.reach {
    padding: 1.5rem 0 0;
}

.reach__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.reach-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
    padding: 1.25rem 1.3rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.reach-card h2 {
    margin: 0;
    font-size: 1.45rem;
}

.reach-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reach-list li,
.reach-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: flex-start;
}

.reach-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--mist);
    color: var(--forest);
}

.reach-label {
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper);
}

.reach-value,
.reach-note {
    margin: 0;
}

.reach-value a {
    color: inherit;
    text-decoration: none;
}

.reach-value a:hover {
    text-decoration: underline;
}

.reach-note {
    color: var(--ink-soft);
}

.reach-route {
    margin: 0;
}

.reach-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.55rem;
    margin-top: auto;
}

.reach-photos img {
    width: 100%;
    height: 9rem;
    object-fit: cover;
    border-radius: 8px;
}

.reach-card .welcome__note {
    max-width: none;
}

.section {
    padding: clamp(2.25rem, 4vw, 3.5rem) 0;
}

.section--white {
    background: #fff;
}

.section--mist {
    background: var(--mist);
}

.section--forest {
    background: color-mix(in srgb, var(--forest) 7%, white);
    color: var(--ink);
}

.section--forest .eyebrow {
    color: var(--forest);
}

.section--forest .lede {
    color: var(--ink-soft);
}

.section__head {
    max-width: 40rem;
    margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.section__head h2,
.welcome h2 {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.section__foot {
    margin: 1.6rem 0 0;
}

.welcome__text {
    max-width: 42rem;
    font-size: 1.125rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 100%;
    padding: 1.35rem 1.25rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.section--white .card {
    background: var(--paper);
}

.card:hover {
    border-color: var(--forest);
}

.card__index {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--copper);
}

.card h3 {
    margin: 0;
    font-size: 1.45rem;
}

.card p {
    margin: 0;
    color: var(--ink-soft);
}

.card .link-arrow {
    margin-top: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.team-grid--full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
}

.person__media {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--mist);
}

.team-grid--full .person {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    align-items: start;
}

.person__img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.monogram {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--sage);
    color: var(--forest);
    font-weight: 600;
    font-size: 2.4rem;
}

.person h3 {
    margin: 0.85rem 0 0.2rem;
    font-size: 1.35rem;
}

.team-grid--full .person h3 {
    margin-top: 0;
}

.person h3 a {
    color: inherit;
    text-decoration: none;
}

.person h3 a:hover {
    color: var(--copper);
}

.person__role {
    margin: 0 0 0.45rem;
    color: var(--copper);
    font-size: 0.92rem;
    font-weight: 600;
}

.person__body > p {
    margin: 0;
    color: var(--ink-soft);
}

.cta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.cta h2 {
    margin: 0.35rem 0 0.7rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.cta__text {
    max-width: 36rem;
}

.job {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 2rem;
    align-items: start;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}

.job h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.job__meta {
    margin: 0 0 0.8rem;
    color: var(--copper);
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-facts h2,
.contact-card h2 {
    margin-top: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.contact-facts dt {
    margin-top: 1.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper);
}

.contact-facts dd {
    margin: 0.25rem 0 0;
}

.emergency {
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--mist);
}

.contact-card {
    position: relative;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.contact-card--form {
    max-width: 42rem;
    margin-top: 1.25rem;
}

.form {
    display: grid;
    gap: 1rem;
}

.form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

.form .check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-weight: 400;
}

.form .check input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.25rem;
    flex: none;
}

.form .check p {
    margin: 0;
}

.form input,
.form textarea,
.search-form input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.form textarea {
    min-height: 9rem;
    resize: vertical;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.notice {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--mist);
}

.notice--error {
    background: color-mix(in srgb, var(--copper) 16%, white);
}

.prose > * + * {
    margin-top: 0.9em;
}

.prose h2,
.prose h3 {
    margin-top: 1.4em;
}

.prose ul,
.prose ol {
    padding-left: 1.2rem;
}

.prose a {
    color: var(--forest);
}

.prose a:hover {
    color: var(--copper);
}

.prose img {
    height: auto;
    border-radius: 12px;
}

.prose blockquote {
    margin: 1.4rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--copper);
    font-size: 1.15rem;
    line-height: 1.45;
}

.prose--intro {
    max-width: 42rem;
    margin-bottom: 2.2rem;
}

.preline {
    white-space: pre-line;
}

.page-hero {
    padding: calc(var(--header-h) + 2.75rem) 0 1.6rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(2.2rem, 4vw, 3.1rem);
}

.back-link {
    margin: 0 0 0.8rem;
}

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

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

.profile {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
}

.profile .person__media {
    max-width: 28rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 100%;
    padding: 1.15rem 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.news-card:hover {
    border-color: var(--forest);
}

.news-card time {
    color: var(--copper);
    font-size: 0.85rem;
    font-weight: 600;
}

.news-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.news-card p {
    margin: 0;
    color: var(--ink-soft);
}

.post-card {
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
}

.post-card h2 {
    margin: 0.2rem 0 0.45rem;
    font-size: 1.8rem;
}

.post-card h2 a {
    color: inherit;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--copper);
}

.meta,
.edit-link {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.edit-link a {
    color: var(--copper);
}

.nav-links,
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pagination {
    margin-top: 2rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    background: #fff;
}

.page-numbers.current {
    border-color: var(--forest);
    color: var(--forest);
    font-weight: 600;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
    max-width: 36rem;
    margin-top: 1rem;
}

.search-form label {
    display: grid;
    gap: 0.4rem;
    flex: 1 1 14rem;
    font-weight: 600;
}

.site-footer {
    background: var(--forest);
    color: color-mix(in srgb, white 92%, var(--paper));
    padding: 3.25rem 0 1.4rem;
}

.site-footer a {
    color: inherit;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer :focus-visible {
    outline-color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.footer-label {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--copper) 42%, white);
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, white 24%, transparent);
    font-size: 0.92rem;
}

::selection {
    background: color-mix(in srgb, var(--copper) 32%, white);
    color: var(--ink);
}

.welcome__note {
    max-width: 42rem;
    margin: 1.6rem 0 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--note);
    border-radius: 0 8px 8px 0;
    background: color-mix(in srgb, var(--note) 12%, white);
    color: var(--ink);
}

.page-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.page-link {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 100%;
    padding: 1.2rem 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--forest);
}

.page-link h3 {
    margin: 0;
    font-size: 1.35rem;
}

.page-link p {
    margin: 0;
    color: var(--ink-soft);
}

.page-link .link-arrow {
    margin-top: auto;
    padding-top: 0.8rem;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-grid;
        margin-left: auto;
    }

    .header-actions {
        display: none;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        margin: 0;
        padding: 1.25rem 1.25rem 2rem;
        overflow: auto;
        background: var(--paper);
        color: var(--ink);
        visibility: hidden;
        pointer-events: none;
    }

    .admin-bar .site-nav {
        top: calc(var(--header-h) + 32px);
    }

    .site-nav.is-open {
        visibility: visible;
        pointer-events: auto;
        z-index: 30;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        font-size: 1.35rem;
    }

    .nav__list a {
        display: inline-block;
        padding: 0.45rem 0;
    }

    .nav-contact {
        display: grid;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    body.nav-open {
        overflow: hidden;
    }

    .cards,
    .team-grid,
    .page-links,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid,
    .footer-grid,
    .profile,
    .team-grid--full,
    .team-grid--full .person {
        grid-template-columns: 1fr;
    }

    .job,
    .cta {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        display: flex;
        flex-direction: column;
        padding-bottom: 2rem;
    }

    .hero__layout {
        order: 1;
        min-height: 0;
        padding-bottom: 1.5rem;
    }

    .hero__media {
        order: 2;
        position: relative;
        top: auto;
        right: auto;
        width: min(1120px, calc(100% - 2.5rem));
        height: 24rem;
        margin: 0 auto;
    }

    .hero__controls {
        order: 3;
        position: static;
        width: min(1120px, calc(100% - 2.5rem));
        margin: 0.9rem auto 0;
    }
}

@media (max-width: 782px) {
    .admin-bar {
        min-height: calc(100vh - 46px);
        min-height: calc(100dvh - 46px);
    }

    .admin-bar .site-header {
        top: 46px;
    }

    .admin-bar .site-nav {
        top: calc(var(--header-h) + 46px);
    }
}

@media (max-width: 680px) {
    .cards,
    .team-grid,
    .reach__grid,
    .page-links,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero__actions .btn {
        width: 100%;
    }
}

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

    .hero__slide,
    .nav-toggle__box span {
        transition: none;
    }
}

@media print {
    .site-header,
    .hero__controls,
    .hero__media,
    .hero__veil,
    .site-footer,
    .nav-toggle {
        display: none !important;
    }

    .hero,
    .hero__layout {
        min-height: 0;
        color: #000;
        background: #fff;
    }

    body {
        background: #fff;
    }
}
