@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/space-grotesk/SpaceGrotesk.ttf") format("truetype");
    font-weight: 300 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f7f5ef;
    --ink: #252221;
    --night: #252022;
    --muted: #5c534e;
    --rust: #bc351e;
    --rust-hover: #9d2d1b;
    --orange: #ff8c68;
    --rule: #d6cec1;
    --shell: 1290px;
    --gutter: clamp(1rem, 4.75vw, 4.2rem);
    --header-height: 4.5rem;
    --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
    font-family: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.58; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }
:focus-visible { outline: 3px solid #a23721; outline-offset: 4px; }
[hidden] { display: none !important; }

.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; inset: 0.5rem auto auto 0.5rem; padding: .65rem 1rem; color: white; background: var(--rust); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.icon { display: inline-block; width: 1.5rem; height: 1.5rem; flex: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f7f5effa;
    border-bottom: 1px solid var(--rule);
    transition: box-shadow 170ms ease;
}
.site-header.is-scrolled { box-shadow: 0 7px 26px #39261817; }
.header-inner { display: flex; min-height: calc(var(--header-height) - 1px); justify-content: space-between; align-items: center; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .58rem; width: fit-content; text-decoration: none; flex: none; }
.brand img { width: 2.7rem; height: 2.7rem; object-fit: contain; }
.brand-wordmark { display: grid; gap: .12rem; line-height: 1.12; }
.brand-wordmark strong { font-family: var(--display); font-size: 1.04rem; font-weight: 700; letter-spacing: -.025em; }
.brand-wordmark span { color: var(--muted); font-family: var(--mono); font-size: .73rem; letter-spacing: .075em; text-transform: uppercase; }

.site-nav, .site-nav ul { display: flex; align-items: center; }
.site-nav { gap: clamp(.9rem, 3vw, 2.2rem); }
.site-nav ul { margin: 0; padding: 0; list-style: none; gap: clamp(.85rem, 2.2vw, 1.75rem); }
.site-nav li a { display: block; font-size: .91rem; font-weight: 620; text-decoration: none; white-space: nowrap; }
.site-nav li a:hover, .site-nav li a[aria-current] { color: var(--rust); }
.button { display: inline-flex; min-height: 2.95rem; align-items: center; justify-content: center; padding: .66rem 1.13rem; border: 1px solid transparent; font-size: .94rem; font-weight: 680; text-align: center; text-decoration: none; transition: background 170ms ease, color 170ms ease, border-color 170ms ease; }
.button-primary { background: var(--rust); color: white; }
.button-primary:hover { background: var(--rust-hover); }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #f8dccd; }
.header-quote { min-height: 2.5rem; padding: .47rem .9rem; border-color: #ac5c48; color: #97321f; white-space: nowrap; }
.header-quote:hover { background: var(--rust); border-color: var(--rust); color: white; }

.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; align-content: center; justify-items: center; gap: 5px; padding: 0; border: 1px solid var(--rule); background: transparent; cursor: pointer; }
.menu-toggle span { width: 1.15rem; height: 2px; background: var(--ink); transition: transform 150ms ease, opacity 150ms ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.site-footer { color: #ddd0ca; background: var(--night); border-top: 1px solid #ffffff2b; }
.footer-inner { display: flex; min-height: 6rem; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1rem; }
.site-footer .brand-wordmark strong { color: white; }
.site-footer .brand-wordmark span { color: #d1bdb6; }
.footer-inner small, .footer-inner > a:last-child { font-size: .875rem; }
.footer-inner > a:last-child { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer :focus-visible { outline-color: var(--orange); }
.standalone-page { min-height: 50vh; padding-block: 3rem; }
.quick-contact { position: fixed; z-index: 8; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 3.1rem; aspect-ratio: 1; border: 1px solid #ffffff3b; border-radius: 50%; background: #166c45; color: white; box-shadow: 0 5px 20px #0004; }
.quick-contact:hover { background: #0c4c31; }

@media (max-width: 899px) {
    :root { --header-height: 4.125rem; }
    .header-inner { flex-wrap: wrap; padding-block: .55rem; gap: .55rem; }
    .menu-toggle:not([hidden]) { display: grid; }
    .site-nav { width: 100%; flex-wrap: wrap; padding-block: .65rem; border-top: 1px solid var(--rule); }
    .site-nav ul { flex-wrap: wrap; }
    .site-nav.is-enhanced { position: absolute; top: 100%; inset-inline: 0; display: grid; gap: .8rem; max-height: calc(100dvh - var(--header-height)); overflow: auto; padding: .45rem var(--gutter) 1.15rem; background: var(--paper); box-shadow: 0 10px 24px #0002; }
    .site-nav.is-enhanced:not(.is-open) { display: none; }
    .site-nav.is-enhanced ul { display: grid; gap: 0; }
    .site-nav.is-enhanced li a { padding: .66rem .15rem; border-bottom: 1px solid var(--rule); }
    .site-nav .header-quote { justify-self: start; }
}
@media (max-width: 540px) {
    .footer-inner { flex-wrap: wrap; justify-content: space-between; }
    .footer-inner .brand { flex-basis: 100%; }
    .quick-contact { width: 2.8rem; }
}
@media (min-width: 900px) { .menu-toggle { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
