:root {
	--ink: #202420;
	--dark: #1b201d;
	--paper: #f7f5ee;
	--white: #fffdf8;
	--muted: #575d54;
	--line: #d9d7cb;
	--accent: #3ca002;
	--accent-hover: #5ab520;
	--brand-ink: #265316;
	--brand-wash: #eef5e8;
	--brand-line: #d3e1cc;
	--max: 80rem;
	--gutter: clamp(1.1rem, 4vw, 4.5rem);
	--sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.05em; text-wrap: balance; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }

.skip-link {
	position: absolute;
	left: 1rem;
	top: 1rem;
	padding: .7rem 1rem;
	background: var(--white);
	color: var(--dark);
	transform: translateY(-200%);
	z-index: 100000;
}
.skip-link:focus { transform: none; }
.screen-reader-text:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.site-footer { background: var(--dark); color: var(--white); }
.site-header { background: #fff; color: var(--brand-ink); border-bottom: 1px solid var(--brand-line); }
.header-inner { min-height: 5.2rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem 2rem; }
.header-action { justify-self: end; }
.brand { justify-self: start; padding-block: .4rem; }
.brand a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 800; }
.brand img { width: clamp(6rem, 10vw, 8.5rem); height: auto; }
.main-nav ul, .footer-inner ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 clamp(.75rem, 3vw, 2.65rem); }
.main-nav a, .footer-inner li a { min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a { text-decoration: none; font-weight: 650; font-size: .91rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .15em; }
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .85rem;
	width: fit-content;
	min-height: 3rem;
	padding: .68rem 1.08rem;
	background: var(--accent);
	color: #111a0e;
	font-weight: 750;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color .2s ease;
}
.button:hover { background: var(--accent-hover); }
.button:focus-visible { outline-color: var(--focus-color, var(--dark)); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: .5em; font-weight: 700; }

.hero { background: var(--brand-wash); color: var(--brand-ink); padding-block: clamp(1.8rem, 3.8vw, 3.9rem); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: clamp(1.7rem, 5vw, 5rem); align-items: center; }
.hero-copy { padding-block: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 4.7vw, 4.7rem); font-weight: 820; }
.hero-intro { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); margin-top: 1.25rem; max-width: 39ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-top: 1.75rem; }
.hero-media { position: relative; background: var(--brand-line); aspect-ratio: 1.42; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.section { padding-block: clamp(3rem, 6.4vw, 6.3rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .9rem 2rem; margin-bottom: clamp(1.35rem, 3vw, 2.65rem); }
.section-heading h2, .interior h1 { font-size: clamp(2.35rem, 4.8vw, 4.6rem); font-weight: 810; }
.service-grid, .work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.1vw, 1.65rem); }
.service { position: relative; background: var(--white); border: 1px solid var(--line); }
.service-media { aspect-ratio: 1.62; background: #e8e3d7; }
.service-media img { height: 100%; width: 100%; object-fit: cover; }
.service-copy { padding: clamp(1rem, 2.2vw, 2rem); border-top: 3px solid var(--accent); }
.service h3 { font-size: clamp(1.3rem, 2.1vw, 2.05rem); }
.service-link { text-decoration: none; }
.service-link::after { content: ""; position: absolute; inset: 0; }
.service-link:hover { text-decoration: underline; }
.service-link:focus-visible::after { outline: 3px solid var(--brand-ink); outline-offset: 3px; }
.service-link span { font-size: .75em; }
.service p { margin-top: .75rem; color: var(--muted); }
.work-section { background: #ebe8de; }
.footer-inner { display: flex; gap: 1.1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.expertise { background: var(--brand-wash); }
.expertise-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.25rem, 5vw, 5rem); }
.expertise h2 { color: var(--brand-ink); font-size: clamp(2rem, 3.65vw, 3.65rem); }
.expertise-copy { max-width: 65ch; }
.expertise-copy p + p, .expertise-copy .button { margin-top: 1rem; }
.footer-inner { padding-block: 2rem; }
.footer-brand { font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.footer-inner p { color: #dadbd3; }

.interior { min-height: 58vh; overflow-wrap: anywhere; }
.interior h1 { margin-bottom: clamp(1.35rem, 3vw, 2.5rem); }
.interior h2 { margin-block: 1.25rem .75rem; font-size: clamp(1.45rem, 3vw, 2.6rem); }
.interior .button { margin-top: 1rem; }
.entry-content > * { margin-bottom: 1rem; }
.entry-content > :where(p, ul, ol, form, .wpcf7, blockquote), .comments { max-width: 48rem; }
.entry-photo img { width: min(100%, 49rem); margin-bottom: 2rem; }
.entry-content .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr)); gap: .65rem; }
.entry-content .gallery-item { margin: 0; text-align: left; }
.entry-content .gallery img { aspect-ratio: 1; width: 100%; object-fit: cover; }
:where(input, textarea, select, button) { font: inherit; }
:where(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"]), textarea, select) {
	max-width: 100%;
	min-height: 44px;
	padding: .45rem .6rem;
	background: var(--white);
	color: var(--ink);
	border: 1px solid var(--muted);
}
:where(button, input[type="submit"]) { min-height: 44px; }
.wpcf7 :where(input[type="text"], input[type="email"], input[type="tel"], textarea) { width: 100%; }
.wpcf7 input[type="submit"] { background: var(--dark); color: var(--white); border: 0; padding: .55rem 1rem; cursor: pointer; }

@media (max-width: 56em) {
	.hero-inner, .expertise-inner { grid-template-columns: 1fr; }
	.hero h1 { max-width: 17ch; }
	.hero-media { aspect-ratio: 1.6; }
}

@media (max-width: 47.99em) {
	.header-inner { grid-template-columns: minmax(0, 1fr) auto; padding-top: .35rem; gap: 0 .5rem; }
	.main-nav { order: 3; grid-column: 1 / -1; border-top: 1px solid var(--brand-line); }
	.header-action { font-size: .86rem; min-height: 44px; }
	.service-grid, .work-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
	.reveal-in { animation: cinar-reveal .65s cubic-bezier(.22, .61, .36, 1) both; }
	@keyframes cinar-reveal {
		from { opacity: .35; transform: translateY(16px); }
		to { opacity: 1; transform: none; }
	}
}

.work-grid img, .photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.photo-grid a { display: block; }
.photo-pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.photo-pagination .page-numbers { display: grid; place-items: center; min-height: 44px; min-width: 44px; padding: .3rem .65rem; }
.photo-pagination .current { background: var(--brand-ink); color: #fff; }
.business-address { font-style: normal; }

@media (max-width: 47.99em) {
	.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
