:root {
    --ink: #17201b;
    --muted: #66746c;
    --paper: #f6f3ec;
    --panel: #ffffff;
    --line: #d9d2c3;
    --brand: #1f6f5b;
    --brand-dark: #124639;
    --accent: #d7953b;
    --shadow: 0 24px 70px rgba(23, 32, 27, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(31, 111, 91, 0.08), transparent 35%),
        linear-gradient(0deg, var(--paper), #fffaf1);
    font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 243, 236, 0.9);
    border-bottom: 1px solid rgba(217, 210, 195, 0.8);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 22px;
}

.brand img {
    max-height: 42px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 15px;
}

.site-nav a:hover {
    color: var(--brand);
}

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

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(18, 70, 57, 0.92), rgba(18, 70, 57, 0.68)),
        url("../images/hero-pattern.svg");
    color: #fffaf1;
}

.hero-inner {
    padding: 92px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 1.05;
}

.hero-copy,
.page-hero p {
    max-width: 640px;
    margin: 22px 0 0;
    color: rgba(255, 250, 241, 0.82);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-ghost {
    color: #fffaf1;
    border-color: rgba(255, 250, 241, 0.45);
}

.section {
    padding: 84px 0;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h2,
.split h2,
.prose h2,
.contact-info h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
}

.section-heading p,
.split p,
.prose p,
.contact-info p {
    color: var(--muted);
}

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

.service-card {
    min-height: 240px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.service-card span {
    color: var(--accent);
    font-family: Arial, sans-serif;
    font-weight: 800;
}

.service-card h3,
.service-card h2 {
    margin: 28px 0 12px;
    line-height: 1.25;
}

.service-card p {
    color: var(--muted);
}

.service-card.large {
    min-height: 280px;
}

.split-band {
    background: var(--brand-dark);
    color: #fffaf1;
}

.split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.split p {
    margin-top: 0;
    color: rgba(255, 250, 241, 0.78);
    font-size: 20px;
}

.page-hero {
    padding: 96px 0;
    color: #fffaf1;
    background:
        linear-gradient(90deg, rgba(18, 70, 57, 0.92), rgba(31, 111, 91, 0.76)),
        url("../images/hero-pattern.svg");
}

.prose {
    max-width: 820px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 36px;
    align-items: start;
}

.contact-info,
.contact-form {
    padding: 30px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form label,
.contact-form span {
    display: grid;
    gap: 8px;
}

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

.errorlist {
    margin: 0;
    padding: 0;
    color: #b42318;
    list-style: none;
    font-size: 14px;
}

.flash-list {
    padding-top: 20px;
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    background: #e7f4ee;
    border: 1px solid #b7dec9;
    color: #14523e;
}

.site-footer {
    padding: 48px 0;
    color: rgba(255, 250, 241, 0.78);
    background: #111916;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 30px;
}

.footer-grid strong,
.footer-grid span {
    display: block;
    color: #fffaf1;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-grid p {
    margin: 6px 0;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    display: none;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    cursor: pointer;
}

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 72px;
        display: none;
        padding: 18px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero {
        min-height: 520px;
    }

    .card-grid,
    .split,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }
}
