:root {
    --green-950: #052d1b;
    --green-900: #073b24;
    --green-800: #0b4f31;
    --green-700: #12643f;
    --green-100: #e8f3ec;
    --brown-800: #4b2d1c;
    --brown-700: #684027;
    --gold-600: #c99a2e;
    --gold-100: #fff3d2;
    --cream: #fbfaf5;
    --white: #ffffff;
    --ink: #17211b;
    --muted: #637066;
    --line: #dfe6df;
    --danger: #b42318;
    --shadow: 0 14px 40px rgba(5, 45, 27, .12);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

a {
    color: var(--green-800);
    text-decoration: none;
}

a:hover {
    color: var(--brown-700);
}

h1,
h2,
h3 {
    margin: 0 0 .6rem;
    color: var(--green-950);
    line-height: 1.15;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 2.35rem;
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1rem;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 20;
    padding: .7rem 1rem;
    color: var(--white);
    background: var(--green-900);
}

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

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

.top-strip {
    color: rgba(255, 255, 255, .88);
    background: var(--green-950);
    font-size: .9rem;
}

.top-strip a {
    color: var(--white);
}

.top-strip__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .45rem 0;
}

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

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--green-950);
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--white);
    background: linear-gradient(145deg, var(--green-800), var(--brown-700));
    border: 2px solid var(--gold-600);
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 800;
}

.brand__mark--image {
    width: 64px;
    height: 64px;
    padding: 4px;
    overflow: hidden;
    background: var(--white);
    border-color: rgba(201, 154, 46, .55);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(5, 45, 27, .14);
}

.brand__mark--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand__text {
    display: grid;
}

.brand__text strong {
    color: var(--green-950);
    font-size: 1.05rem;
}

.brand__text small {
    color: var(--muted);
    font-size: .78rem;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .15rem;
}

.nav-menu a {
    padding: .7rem .72rem;
    color: var(--green-950);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .92rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--green-950);
    background: var(--green-100);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--green-950);
}

.hero {
    min-height: 690px;
    color: var(--white);
    background-position: center;
    background-size: cover;
}

.hero__inner {
    display: grid;
    align-content: center;
    min-height: 690px;
    max-width: 1060px;
    margin-left: max(16px, calc((100vw - var(--container)) / 2));
    margin-right: auto;
    padding: 5rem 0;
}

.hero h1 {
    max-width: 780px;
    color: var(--white);
}

.hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.25rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .7rem;
    color: var(--gold-600);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    background: currentColor;
}

.eyebrow--light {
    color: var(--gold-100);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .76rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--green {
    color: var(--white);
    background: var(--green-800);
}

.button--brown {
    color: var(--white);
    background: var(--brown-700);
}

.button--gold {
    color: var(--green-950);
    background: var(--gold-600);
}

.button--light {
    color: var(--green-950);
    background: var(--white);
    border-color: var(--line);
}

.button--outline-light {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .5);
}

.button--danger {
    color: var(--white);
    background: var(--danger);
}

.section {
    padding: 5rem 0;
}

.section--tint {
    background: var(--green-100);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-action {
    margin-top: 2rem;
}

.intro-grid,
.support-grid,
.contact-grid,
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 2.4rem;
    align-items: center;
}

.stat-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-panel div {
    padding: 1.4rem;
    background: var(--white);
}

.stat-panel strong {
    display: block;
    color: var(--green-800);
    font-size: 2rem;
    line-height: 1;
}

.stat-panel span {
    color: var(--muted);
    font-size: .9rem;
}

.card-grid,
.notice-grid,
.service-grid,
.process-grid,
.gallery-grid,
.admin-stat-grid {
    display: grid;
    gap: 1rem;
}

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

.factory-card,
.notice-card,
.service-grid article,
.process-grid article,
.prose-block,
.contact-form,
.service-cards article,
.admin-card,
.admin-stat-grid article,
.message-list article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(5, 45, 27, .06);
}

.factory-card {
    padding: 1.2rem;
}

.factory-card__top {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
    align-items: start;
}

.status {
    padding: .2rem .55rem;
    color: var(--green-950);
    background: var(--gold-100);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
}

.status--closed {
    color: var(--danger);
    background: #fee4e2;
}

.meta-list {
    display: grid;
    gap: .55rem;
    margin: 1rem 0;
}

.meta-list div {
    display: grid;
    gap: .05rem;
}

.meta-list dt {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.meta-list dd {
    margin: 0;
    font-size: .95rem;
}

.rounded-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 1.3rem 0;
}

.feature-list span {
    padding: .5rem .7rem;
    color: var(--green-950);
    background: var(--green-100);
    border-radius: 999px;
    font-weight: 700;
}

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

.notice-card {
    overflow: hidden;
}

.notice-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.notice-card__body {
    padding: 1.2rem;
}

.notice-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: .65rem;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700;
}

.text-link {
    color: var(--green-800);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--gold-600);
    text-underline-offset: 4px;
}

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

.service-cards article {
    padding: 1.1rem;
}

.cta-band {
    color: var(--white);
    background: linear-gradient(135deg, var(--green-950), var(--brown-800));
    padding: 3rem 0;
}

.cta-band h2 {
    color: var(--white);
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.page-hero {
    padding: 4.5rem 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-950), var(--green-800));
}

.page-hero h1,
.page-hero p {
    color: var(--white);
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .86);
}

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

.prose-block {
    padding: 1.5rem;
}

.prose-block--wide {
    max-width: 820px;
}

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

.check-list li {
    position: relative;
    padding-left: 1.55rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: .55rem;
    height: .55rem;
    background: var(--gold-600);
    border-radius: 50%;
}

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

.process-grid article {
    padding: 1.25rem;
}

.process-grid span {
    color: var(--gold-600);
    font-size: .82rem;
    font-weight: 900;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
}

.service-grid article {
    padding: 1.2rem;
}

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

.download-list a {
    padding: 1rem;
    color: var(--green-950);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 800;
}

.notice-detail {
    display: grid;
    justify-items: center;
    gap: 2rem;
}

.notice-detail__image {
    width: min(100%, 900px);
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.filter-tabs a {
    padding: .62rem .9rem;
    color: var(--green-950);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
}

.filter-tabs a.active {
    color: var(--white);
    background: var(--green-800);
}

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

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(5, 45, 27, .06);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-grid figcaption {
    padding: 1rem;
}

.gallery-grid figcaption span {
    display: block;
    color: var(--gold-600);
    font-size: .82rem;
    font-weight: 800;
}

.empty-state {
    padding: 1.2rem;
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

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

.report-stats article {
    padding: 1.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(5, 45, 27, .06);
}

.report-stats strong {
    display: block;
    color: var(--green-800);
    font-size: 1.75rem;
    line-height: 1.1;
}

.report-stats span,
.table-note {
    color: var(--muted);
}

.report-filter {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 1.4rem;
    align-items: end;
}

.report-filter__form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: .85rem;
    align-items: end;
}

.table-note {
    display: block;
    margin-top: .35rem;
    font-size: .9rem;
}

.contact-grid {
    align-items: start;
}

.contact-list {
    display: grid;
    gap: .4rem;
    margin: 1.2rem 0;
}

.map-panel,
.factory-contact-panel {
    padding: 1.2rem;
    margin-top: 1rem;
    background: var(--green-100);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.map-panel {
    display: grid;
    min-height: 210px;
    place-content: center;
    text-align: center;
}

.map-panel span,
.map-panel small {
    color: var(--muted);
}

.contact-form,
.stack-form,
.admin-form {
    display: grid;
    gap: 1rem;
}

.contact-form {
    padding: 1.4rem;
}

label {
    display: grid;
    gap: .35rem;
    color: var(--green-950);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    padding: .78rem .85rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #cfd8cf;
    border-radius: var(--radius);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(201, 154, 46, .28);
    border-color: var(--gold-600);
}

.alert {
    margin: 1rem 0;
    padding: .95rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.alert--success {
    color: var(--green-950);
    background: #e7f8ed;
    border-color: #b9e5c7;
}

.alert--error {
    color: var(--danger);
    background: #fff0ee;
    border-color: #ffd2cc;
}

.alert--warning {
    color: #6a4300;
    background: var(--gold-100);
    border-color: #eed18b;
}

.site-footer {
    color: rgba(255, 255, 255, .82);
    background: var(--green-950);
    padding: 3.5rem 0 1.2rem;
}

.site-footer h2,
.site-footer strong,
.site-footer a {
    color: var(--white);
}

.brand--footer {
    margin-bottom: 1rem;
}

.brand--footer .brand__mark:not(.brand__mark--image) {
    background: var(--gold-600);
    color: var(--green-950);
}

.brand--footer .brand__text strong,
.brand--footer .brand__text small {
    color: var(--white);
}

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

.footer-links {
    display: grid;
    gap: .5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .9rem;
}

.muted,
.small-note {
    color: var(--muted);
}

.small-note {
    font-size: .9rem;
}

/* Admin */
.admin-login-page,
.admin-page {
    background: #f4f7f4;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1.5rem;
}

.login-card {
    width: min(100%, 460px);
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin-top: 1.4rem;
    font-size: 2rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem max(1rem, calc((100vw - 1320px) / 2));
    color: var(--white);
    background: var(--green-950);
}

.admin-header .brand__text strong,
.admin-header .brand__text small {
    color: var(--white);
}

.admin-header__actions {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.admin-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 1.2rem;
    gap: 1.2rem;
}

.admin-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-sidebar a,
.admin-link-list a {
    display: block;
    padding: .72rem .8rem;
    color: var(--green-950);
    border-radius: var(--radius);
    font-weight: 800;
}

.admin-sidebar a.active,
.admin-sidebar a:hover,
.admin-link-list a.active,
.admin-link-list a:hover {
    background: var(--green-100);
}

.admin-main {
    min-width: 0;
}

.admin-title {
    margin-bottom: 1rem;
}

.admin-title h1 {
    font-size: 2.3rem;
}

.admin-card {
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.admin-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 1rem;
}

.admin-stat-grid article {
    padding: 1.2rem;
}

.admin-stat-grid strong {
    display: block;
    color: var(--green-800);
    font-size: 2rem;
    line-height: 1;
}

.admin-list,
.message-list {
    display: grid;
    gap: .8rem;
}

.admin-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: #f9fbf9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-list article span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}

.admin-list__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 800;
}

.checkbox-label input {
    width: auto;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: .94rem;
}

th,
td {
    padding: .85rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--green-950);
    background: var(--green-100);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

tr:last-child td {
    border-bottom: 0;
}

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

.admin-thumb-grid article {
    display: grid;
    gap: .55rem;
    padding: .8rem;
    background: #f9fbf9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-thumb-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.message-list article {
    padding: 1.1rem;
}

.message-list article.unread {
    border-color: var(--gold-600);
    box-shadow: 0 0 0 3px rgba(201, 154, 46, .12);
}

.message-list__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
}

.message-list__top strong {
    display: block;
    color: var(--green-950);
}

code {
    padding: .12rem .28rem;
    background: rgba(5, 45, 27, .08);
    border-radius: 4px;
}

@media (max-width: 1100px) {
    .card-grid--four,
    .admin-thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notice-grid,
    .gallery-grid,
    .process-grid,
    .service-grid,
    .download-list,
    .report-stats,
    .report-filter,
    .report-filter__form,
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.12rem;
    }

    .top-strip__inner,
    .footer-bottom,
    .cta-band__inner,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: .8rem;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .hero,
    .hero__inner {
        min-height: 590px;
    }

    .hero__inner {
        margin-inline: auto;
        width: min(100% - 32px, var(--container));
    }

    .intro-grid,
    .support-grid,
    .contact-grid,
    .split,
    .content-grid,
    .footer-grid,
    .admin-shell,
    .admin-two-col,
    .report-stats,
    .report-filter,
    .report-filter__form,
    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .container {
        width: min(100% - 24px, var(--container));
    }

    .navbar {
        min-height: 74px;
    }

    .brand__mark {
        width: 48px;
        height: 48px;
    }

    .brand__mark--image {
        width: 52px;
        height: 52px;
    }

    .brand__text small {
        display: none;
    }

    .hero,
    .hero__inner {
        min-height: 560px;
    }

    .section,
    .page-hero {
        padding: 3.2rem 0;
    }

    .stat-panel,
    .service-cards,
    .card-grid--four,
    .notice-grid,
    .gallery-grid,
    .process-grid,
    .service-grid,
    .download-list,
    .admin-stat-grid,
    .admin-thumb-grid {
        grid-template-columns: 1fr;
    }

    .admin-header__actions,
    .admin-list article,
    .message-list__top {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
