:root {
    --bg: #f8f5ef;
    --surface: #ffffff;
    --surface-soft: #efe7dc;
    --text: #1d2521;
    --muted: #66706a;
    --accent: #0f6f63;
    --accent-dark: #0a4c44;
    --ink: #10201c;
    --line: rgba(29, 37, 33, 0.14);
    --shadow: 0 24px 60px rgba(16, 32, 28, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
}

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

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus {
    top: 16px;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
}

.custom-logo {
    max-height: 56px;
    width: auto;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 10px 14px;
    font: inherit;
}

.menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: inline-flex;
    padding: 10px 12px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.menu a:hover,
.menu a:focus {
    color: var(--accent-dark);
}

.hero {
    padding: 88px 0 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 48px;
}

.eyebrow,
.section-kicker,
.entry-meta {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: 0;
}

h1 {
    max-width: 780px;
    font-size: clamp(2.6rem, 6vw, 5.25rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
    font-size: 1.35rem;
}

.hero-text {
    max-width: 650px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none;
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-secondary {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
}

.button-light {
    background: #fff;
    color: var(--accent-dark);
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 8px;
    background: var(--surface-soft);
}

.metric-number {
    color: var(--accent-dark);
    font-size: 1.65rem;
    font-weight: 900;
}

.metric-label {
    font-weight: 800;
}

.section {
    padding: 78px 0;
}

.section-muted {
    background: var(--surface-soft);
}

.split {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
    gap: 48px;
}

.split p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.section-head {
    max-width: 720px;
    margin-bottom: 28px;
}

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

.service-card,
.post-card,
.entry {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.service-card,
.post-card a {
    display: block;
    height: 100%;
    padding: 24px;
    text-decoration: none;
}

.service-card p,
.post-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.contact-section {
    padding-bottom: 88px;
}

.contact-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 36px;
    border-radius: 8px;
    background: var(--accent-dark);
    color: #fff;
}

.contact-box h2,
.contact-box .section-kicker {
    color: #fff;
}

.contact-box p {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.content-area {
    max-width: 820px;
}

.entry {
    padding: 32px;
}

.entry + .entry {
    margin-top: 22px;
}

.entry-header a {
    text-decoration: none;
}

.entry-content {
    margin-top: 18px;
}

.entry-content p {
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    color: var(--muted);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-grid p {
    margin: 0;
}

@media (max-width: 820px) {
    .nav-wrap {
        min-height: 68px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: block;
    }

    .menu {
        align-items: stretch;
        flex-direction: column;
    }

    .menu a {
        display: block;
    }

    .hero {
        padding-top: 56px;
    }

    .hero-grid,
    .split,
    .contact-box {
        grid-template-columns: 1fr;
    }

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

    .contact-box {
        padding: 28px;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}

