:root {
    --bg: #fbfaf6;
    --panel: #ffffff;
    --ink: #1e2520;
    --muted: #5a645d;
    --line: #d9ded6;
    --forest: #244c37;
    --moss: #6f7d3a;
    --ochre: #bd762f;
    --water: #23616b;
    --shadow: 0 16px 40px rgba(30, 37, 32, 0.09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--water);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 10;
    background: var(--ink);
    color: #fff;
    padding: 8px 12px;
}

.skip-link:focus {
    left: 8px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(251, 250, 246, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    flex: 0 0 auto;
    text-decoration: none;
    min-width: 0;
}

.brand__logo {
    display: block;
    width: clamp(220px, 22vw, 300px);
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
}

.brand__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 4px;
    background: var(--forest);
    color: #fff;
    font-weight: 800;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.primary-nav {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2px;
    min-width: 0;
}

.mobile-nav {
    display: none;
}

.primary-nav a,
.mobile-nav summary,
.mobile-nav a,
.header-cta,
.button {
    border-radius: 4px;
    min-height: 44px;
    padding: 10px 10px;
    text-decoration: none;
    font-weight: 700;
}

.primary-nav a {
    color: var(--ink);
    font-size: 0.9rem;
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    background: #eef1e9;
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--forest);
    color: #fff;
    border: 1px solid var(--forest);
}

.button--secondary {
    background: transparent;
    color: var(--forest);
}

.header-cta {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (min-width: 1101px) and (max-width: 1220px) {
    .brand__logo {
        width: clamp(220px, 20vw, 250px);
    }

    .primary-nav a {
        font-size: 0.86rem;
        padding-left: 7px;
        padding-right: 7px;
    }

    .header-cta {
        padding-left: 9px;
        padding-right: 9px;
    }
}

.admin-edit-bar {
    align-items: center;
    background: #17231b;
    color: #edf1e8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    min-height: 38px;
    padding: 6px 16px;
    position: relative;
    z-index: 6;
}

.admin-edit-bar span {
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-edit-bar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-edit-bar a {
    align-items: center;
    border: 1px solid rgba(237, 241, 232, 0.22);
    border-radius: 4px;
    color: #edf1e8;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    min-height: 30px;
    padding: 4px 9px;
    text-decoration: none;
}

.admin-edit-bar a:hover,
.admin-edit-bar a:focus {
    background: rgba(237, 241, 232, 0.1);
}

.hero {
    min-height: 420px;
    display: grid;
    align-items: end;
    background:
        linear-gradient(90deg, rgba(18, 35, 25, 0.88), rgba(18, 35, 25, 0.38)),
        radial-gradient(circle at 78% 20%, rgba(238, 200, 124, 0.45), transparent 26%),
        linear-gradient(135deg, #203f32, #24616c 44%, #9c6f30);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 860px);
    align-items: end;
    padding: 86px 0 68px;
    position: relative;
    z-index: 1;
}

.hero--home {
    min-height: 560px;
}

.hero--slideshow::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(10, 20, 14, 0.88), rgba(10, 20, 14, 0.52) 48%, rgba(10, 20, 14, 0.28)),
        linear-gradient(180deg, rgba(10, 20, 14, 0.1), rgba(10, 20, 14, 0.68));
    content: "";
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: heroFadeHome var(--slideshow-duration, 8s) infinite;
    animation-delay: var(--slide-delay, 0s);
}

.hero-slide__image {
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    max-height: 100%;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center;
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.hero-slide::before,
.hero-slide::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: min(18vw, 260px);
    pointer-events: none;
    content: "";
}

.hero-slide::before {
    left: 0;
    background: linear-gradient(90deg, rgba(18, 35, 25, 0.92), rgba(18, 35, 25, 0));
}

.hero-slide::after {
    right: 0;
    background: linear-gradient(270deg, rgba(18, 35, 25, 0.72), rgba(18, 35, 25, 0));
}

.hero-slide:only-child,
.hero-slide:first-child {
    opacity: 1;
}

.hero-slide:only-child {
    animation: none;
}

.hero-card {
    background: rgba(251, 250, 246, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    color: var(--ink);
    padding: 22px;
    box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        animation: none;
    }

    .hero-slide:first-child {
        opacity: 1;
    }
}

.hero-card span,
.hero-card strong {
    display: block;
}

.hero-card span {
    color: var(--ochre);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-card strong {
    margin-top: 8px;
    font-size: 1.32rem;
    line-height: 1.15;
}

.eyebrow {
    margin: 0 0 10px;
    color: #f0d2a8;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.3rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 14px;
    font-size: 1.9rem;
    line-height: 1.15;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.lead {
    max-width: 720px;
    margin: 22px 0 0;
    font-size: 1.17rem;
}

.section {
    padding: 58px 0;
}

.section--muted {
    background: #eef1e9;
}

.section-intro {
    max-width: 820px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1.08rem;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 32px;
    align-items: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card,
.action-panel,
.details-box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.card {
    min-height: 100%;
}

.photo-strip {
    background:
        linear-gradient(180deg, rgba(251, 250, 246, 0.08), rgba(251, 250, 246, 0.08)),
        linear-gradient(90deg, #1b3328, #1f5b66 48%, #8a642e);
    color: #fff;
}

.photo-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.photo-strip__grid div {
    min-height: 140px;
    padding: 22px;
    background: rgba(0, 0, 0, 0.18);
}

.photo-strip__grid strong,
.photo-strip__grid span {
    display: block;
}

.photo-strip__grid strong {
    font-size: 1.25rem;
}

.photo-strip__grid span {
    margin-top: 6px;
    color: #edf1e8;
}

.card__meta {
    margin: 0 0 8px;
    color: var(--ochre);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.action-panel,
.details-box {
    display: grid;
    gap: 12px;
}

.details-box span,
.details-box a,
.site-footer span,
.site-footer a {
    display: block;
}

.details-box a {
    min-height: 44px;
}

.rezdy-frame {
    width: 100%;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.rezdy-frame iframe {
    display: block;
    width: 100%;
    min-height: min(var(--rezdy-height, 1100px), 1800px);
    border: 0;
}

.rezdy-fallback {
    max-width: 720px;
    margin-top: 18px;
}

.content-note {
    color: var(--muted);
    font-size: 0.94rem;
    font-style: italic;
}

.inline-editable {
    display: inline;
    position: relative;
}

.inline-editable__button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ochre);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(30, 37, 32, 0.16);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    line-height: 1;
    margin-left: 8px;
    min-width: 28px;
    padding: 0 7px;
    vertical-align: middle;
}

.inline-editable__button:hover,
.inline-editable__button:focus {
    background: #fff7df;
    outline: 2px solid rgba(189, 118, 47, 0.35);
    outline-offset: 2px;
}

.inline-editor-modal[hidden] {
    display: none;
}

.inline-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
}

.inline-editor-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 14, 0.66);
}

.inline-editor-modal__panel {
    position: relative;
    display: grid;
    gap: 16px;
    width: min(680px, calc(100% - 28px));
    margin: 8vh auto 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.26);
    padding: 22px;
}

.inline-editor-modal__top {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.inline-editor-modal__top h2 {
    color: var(--ink);
    font-size: 1.45rem;
}

.inline-editor-modal__close {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    min-height: 38px;
    min-width: 38px;
}

.inline-editor-modal__field {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.inline-editor-modal__field input,
.inline-editor-modal__field textarea {
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font: inherit;
    padding: 10px 12px;
    width: 100%;
}

.inline-editor-modal__field input {
    min-height: 44px;
}

.inline-editor-modal__field textarea {
    resize: vertical;
}

.inline-editor-modal__status {
    color: var(--muted);
    margin: 0;
}

.inline-editor-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.readable {
    max-width: 760px;
}

code {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    background: #eef1e9;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 10px;
    color: var(--ink);
}

.site-footer {
    background: #17231b;
    color: #edf1e8;
    padding: 44px 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.site-footer a {
    color: #edf1e8;
    margin: 6px 0;
}

.site-footer .footer-admin-link {
    color: #b9c2b5;
    font-size: 0.82rem;
    margin-top: 16px;
    opacity: 0.72;
}

.site-footer .footer-admin-link:hover,
.site-footer .footer-admin-link:focus {
    opacity: 1;
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
}

.footer-logo {
    display: block;
    width: min(330px, 100%);
    max-height: 82px;
    margin-bottom: 14px;
    object-fit: contain;
    object-position: left center;
}

.admin-body {
    background: #eef1e9;
}

.admin-shell {
    display: grid;
    min-height: 100vh;
    padding: 32px 16px;
    place-items: center;
}

.admin-panel {
    width: min(920px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.admin-panel--wide {
    width: min(1040px, 100%);
}

.admin-panel h1 {
    color: var(--ink);
    font-size: 2.4rem;
}

.admin-panel__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-form {
    display: grid;
    gap: 16px;
    margin: 22px 0;
}

.admin-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.admin-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
}

.admin-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    padding: 10px 12px;
    resize: vertical;
}

.admin-form--editor {
    gap: 14px;
    grid-template-columns: 1fr;
    margin-top: 18px;
}

.admin-form--editor label {
    align-content: start;
}

.admin-content-sections {
    display: grid;
    gap: 10px;
}

.admin-content-section {
    background: #f8f9f5;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: clip;
}

.admin-content-section summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    list-style: none;
    padding: 13px 16px;
}

.admin-content-section summary::-webkit-details-marker {
    display: none;
}

.admin-content-section summary::before {
    color: var(--muted);
    content: "▸";
    flex: 0 0 1em;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.admin-content-section[open] summary::before {
    content: "▾";
}

.admin-content-section summary span {
    display: grid;
    gap: 2px;
    margin-right: auto;
}

.admin-content-section summary strong {
    color: var(--ink);
    font-size: 0.98rem;
}

.admin-content-section summary small,
.admin-content-section summary em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.admin-content-hint {
    background: #f8f9f5;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    margin: 10px 0 0;
    padding: 8px 10px;
}

.admin-content-section__grid {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 16px 16px;
}

.admin-content-field {
    color: var(--ink);
    font-size: 0.82rem;
    gap: 5px;
}

.admin-content-field > span:first-child {
    font-weight: 800;
}

.admin-content-field input {
    font-size: 0.92rem;
    min-height: 36px;
    padding: 7px 9px;
}

.admin-content-field textarea {
    font-size: 0.92rem;
    min-height: 78px;
    padding: 8px 9px;
}

.admin-content-field small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
}

.admin-image-preview {
    align-items: center;
    background: #eef1e9;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    min-height: 52px;
    padding: 7px;
}

.admin-image-preview img {
    display: block;
    max-height: 42px;
    max-width: 180px;
    object-fit: contain;
    object-position: left center;
}

.admin-save {
    justify-self: start;
    min-width: 180px;
}

.admin-form button[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

.notice {
    border-radius: 4px;
    margin: 16px 0;
    padding: 14px;
}

.notice--warning {
    background: #fff7df;
    border: 1px solid #e2ba62;
}

.notice--error {
    background: #fdecec;
    border: 1px solid #d98a8a;
}

.notice--success {
    background: #edf8ee;
    border: 1px solid #7ab883;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.admin-action {
    display: grid;
    gap: 8px;
    min-height: 132px;
    align-content: start;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    padding: 20px;
    text-decoration: none;
}

.admin-action span {
    font-size: 1.12rem;
    font-weight: 800;
}

.admin-action small {
    color: var(--muted);
    font-size: 0.94rem;
}

.admin-action--muted {
    background: #f4f5f0;
}

.link-editor {
    display: grid;
    gap: 16px;
}

.link-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(240px, 1fr) minmax(260px, 1.2fr) minmax(110px, 0.35fr);
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0;
    padding: 18px;
}

.link-card legend {
    padding: 0 6px;
    color: var(--muted);
    font-weight: 800;
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    grid-column: 1 / -1;
}

.checkbox-row label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-height: 44px;
}

.checkbox-row input {
    width: auto;
    min-height: auto;
}

@media (max-width: 1100px) {
    .site-header__inner {
        align-items: center;
        padding: 14px 0;
    }

    .admin-edit-bar {
        justify-content: flex-start;
        padding: 8px 12px;
    }

    .primary-nav,
    .header-cta {
        display: none;
    }

    .mobile-nav {
        display: block;
        margin-left: auto;
        position: relative;
    }

    .mobile-nav summary {
        background: var(--forest);
        color: #fff;
        cursor: pointer;
        display: grid;
        list-style: none;
        place-items: center;
    }

    .mobile-nav summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav nav {
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        width: min(82vw, 320px);
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
        display: grid;
        gap: 4px;
        padding: 10px;
    }

    .mobile-nav a {
        color: var(--ink);
        display: flex;
        align-items: center;
    }

    .mobile-nav a.is-active {
        background: #eef1e9;
    }

    .mobile-nav__cta {
        background: var(--forest);
        color: #fff !important;
    }
}

@media (max-width: 900px) {
    .split,
    .site-footer__grid,
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__inner {
        padding: 72px 0 44px;
    }

    .hero--home {
        min-height: 480px;
    }

    .admin-panel__top {
        display: grid;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-strip__grid,
    .admin-actions,
    .admin-content-section__grid,
    .link-card {
        grid-template-columns: 1fr;
    }

    .link-card {
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .primary-nav a {
        padding: 8px 9px;
    }

    .brand__logo {
        width: clamp(180px, 58vw, 230px);
        max-height: 44px;
    }

    .hero {
        min-height: 360px;
    }

    .hero--home {
        min-height: auto;
    }

    .hero__inner {
        padding: 54px 0 34px;
    }

    .hero-card {
        padding: 18px;
    }

    h1 {
        font-size: 2.28rem;
        line-height: 1.04;
    }

    .lead {
        font-size: 1.05rem;
    }

    .section {
        padding: 42px 0;
    }

    .rezdy-frame {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
    }

    .photo-strip__grid div {
        min-height: 112px;
    }

    .admin-shell {
        align-items: start;
        padding: 14px 10px;
    }

    .admin-panel {
        padding: 18px;
    }

    .admin-panel h1 {
        font-size: 2rem;
    }

    .button,
    .admin-save {
        width: 100%;
    }

    .inline-editor-modal__panel {
        margin-top: 18px;
        padding: 18px;
    }

    .inline-editor-modal__actions .button {
        width: 100%;
    }
}
