/* =========================================================
   LeMay & Associates — Modern Stylesheet
   Mobile-first, single file, no JS dependencies.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
	/* Palette */
	--ink:        #0F1B2D;   /* deep navy — primary text & dark sections */
	--ink-soft:   #1E2A3F;
	--paper:      #F4EFE6;   /* warm off-white — page background */
	--paper-pure: #FBF8F2;
	--slate:      #5A6677;   /* secondary text */
	--brass:      #B08D57;   /* accent — nod to surveyors' brass markers */
	--brass-deep: #8E6F40;
	--rule:       rgba(15, 27, 45, 0.12);
	--rule-light: rgba(244, 239, 230, 0.18);

	/* Type */
	--font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
	--font-body:    'Newsreader', Georgia, 'Times New Roman', serif;
	--font-ui:      'Newsreader', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Scale (mobile baseline) */
	--step--1: 0.875rem;
	--step-0:  1rem;
	--step-1:  1.125rem;
	--step-2:  1.375rem;
	--step-3:  1.75rem;
	--step-4:  2.25rem;
	--step-5:  3rem;
	--step-6:  4rem;

	/* Layout */
	--wrap-max: 76rem;
	--gutter:   1.25rem;
	--radius:   0.5rem;

	/* Motion */
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Larger fluid type from tablet up */
@media (min-width: 48rem) {
	:root {
		--step-3: 2rem;
		--step-4: 2.75rem;
		--step-5: 3.75rem;
		--step-6: 5.5rem;
		--gutter: 2rem;
	}
}

/* ---------- Reset (minimal, modern) ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.55;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--brass-deep); }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }

/* ---------- Layout primitives ---------- */
.wrap {
	width: 100%;
	max-width: var(--wrap-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(244, 239, 230, 0.85);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--rule);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1rem;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--ink);
}
.brand-name {
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 400;
	letter-spacing: -0.005em;
}
.brand-name .amp { font-style: italic; color: var(--brass); padding-inline: 0.05em; }

.tenure {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.35rem 0.75rem 0.35rem 0.65rem;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: var(--paper-pure);
	font-family: var(--font-ui);
	line-height: 1;
}
.tenure-num {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 400;
	font-style: italic;
	color: var(--brass);
	letter-spacing: -0.02em;
	font-variation-settings: "opsz" 72;
}
.tenure-label {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--slate);
	line-height: 1.15;
}

@media (min-width: 30rem) {
	.tenure { padding: 0.4rem 0.95rem 0.4rem 0.8rem; gap: 0.8rem; }
	.tenure-num { font-size: 1.75rem; }
	.tenure-label { font-size: 0.75rem; }
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-ui);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--slate);
}
.eyebrow-rule {
	display: inline-block;
	width: 2.25rem;
	height: 1px;
	background: var(--brass);
}
.eyebrow-light { color: rgba(244, 239, 230, 0.7); }
.eyebrow-light .eyebrow-rule { background: var(--brass); }

/* ---------- Hero ---------- */
.hero {
	padding-block: 3rem 4rem;
	position: relative;
	overflow: hidden;
}
.hero::before {
	/* subtle topographic feel — concentric rings, very faint */
	content: "";
	position: absolute;
	right: -8rem;
	top: -8rem;
	width: 28rem;
	height: 28rem;
	background:
		radial-gradient(circle, transparent 0 6.5rem, var(--rule) 6.5rem 6.55rem, transparent 6.55rem 9rem,
		var(--rule) 9rem 9.05rem, transparent 9.05rem 12rem, var(--rule) 12rem 12.05rem,
		transparent 12.05rem 14rem);
	opacity: 0.6;
	pointer-events: none;
}
@media (min-width: 64rem) {
	.hero { padding-block: 5rem 7rem; }
}

.hero-grid {
	display: grid;
	gap: 2.5rem;
	position: relative;
}
@media (min-width: 64rem) {
	.hero-grid {
		grid-template-columns: 1.1fr 0.9fr;
		gap: 4rem;
		align-items: center;
	}
}

.hero-copy > * + * { margin-top: 1.5rem; }

.display {
	font-size: clamp(2.25rem, 6vw + 0.5rem, 4.5rem);
	font-weight: 350;
	line-height: 1.02;
	letter-spacing: -0.02em;
	font-variation-settings: "opsz" 144, "SOFT" 30;
}
.display em {
	font-style: italic;
	color: var(--brass);
	font-weight: 300;
}
.display .accent {
	font-style: italic;
	font-weight: 300;
	color: var(--slate);
}

.lede {
	max-width: 32rem;
	font-size: var(--step-1);
	line-height: 1.55;
	color: var(--ink-soft);
}
.lede strong { color: var(--ink); font-weight: 600; }

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding-top: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1.4rem;
	font-family: var(--font-ui);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	border-radius: 999px;
	transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
	border: 1px solid transparent;
	cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
	background: var(--ink);
	color: var(--paper);
}
.btn-primary:hover { background: var(--brass-deep); color: var(--paper); }

/* ---------- Hero figure ---------- */
.hero-figure {
	position: relative;
	margin: 0;
}
.hero-image {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink);
	aspect-ratio: 4 / 5;
	box-shadow:
		0 1px 0 var(--rule),
		0 30px 60px -30px rgba(15, 27, 45, 0.35);
}
.hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.92) contrast(1.03);
}
.hero-meta {
	display: flex;
	justify-content: space-between;
	margin-top: 0.85rem;
	font-family: var(--font-ui);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--slate);
}

/* ---------- Services ---------- */
.services {
	background: var(--ink);
	color: var(--paper);
	padding-block: 4rem;
	position: relative;
}
@media (min-width: 64rem) {
	.services { padding-block: 6.5rem; }
}

.section-head {
	display: grid;
	gap: 1rem;
	max-width: 42rem;
	margin-bottom: 3rem;
}
@media (min-width: 64rem) {
	.section-head { margin-bottom: 4.5rem; }
}

.section-title {
	font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
	font-weight: 350;
	letter-spacing: -0.02em;
	font-variation-settings: "opsz" 144, "SOFT" 30;
}

.services-grid {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--rule-light);
}
@media (min-width: 56rem) {
	.services-grid {
		grid-template-columns: repeat(3, 1fr);
		border-top: 1px solid var(--rule-light);
	}
}

.service-card {
	padding-block: 2.25rem;
	border-bottom: 1px solid var(--rule-light);
	display: grid;
	gap: 1.25rem;
	position: relative;
}
@media (min-width: 56rem) {
	.service-card {
		padding: 2.5rem 2rem;
		border-bottom: none;
		border-right: 1px solid var(--rule-light);
	}
	.service-card:first-child { padding-left: 0; }
	.service-card:last-child  { padding-right: 0; border-right: none; }
}

.service-num {
	font-family: var(--font-ui);
	font-size: 0.8125rem;
	letter-spacing: 0.2em;
	color: var(--brass);
}
.service-title {
	font-size: var(--step-3);
	font-weight: 400;
	font-style: italic;
	font-variation-settings: "opsz" 72;
}
.service-list {
	display: grid;
	gap: 0;
	font-family: var(--font-ui);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgba(244, 239, 230, 0.85);
	border-top: 1px solid var(--rule-light);
}
.service-list li {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--rule-light);
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--paper);
	color: var(--ink);
	padding-block: 3.5rem 2.5rem;
	border-top: 1px solid var(--rule);
}

.footer-grid {
	display: grid;
	gap: 2.5rem;
	font-family: var(--font-ui);
	font-size: 0.9375rem;
}
@media (min-width: 56rem) {
	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
		gap: 3rem;
	}
}

.footer-brand { display: grid; gap: 0.5rem; }
.footer-mark {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: -0.005em;
}
.footer-mark .amp { font-style: italic; color: var(--brass); }
.footer-tag {
	color: var(--slate);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
}

.footer-col h4 {
	font-family: var(--font-ui);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--slate);
	font-weight: 600;
	margin-bottom: 0.75rem;
}
.footer-col address { font-style: normal; line-height: 1.6; }
.footer-col p { line-height: 1.6; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.muted { color: var(--slate); font-size: 0.8125rem; letter-spacing: 0.02em; }

.footer-meta {
	grid-column: 1 / -1;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
	font-size: 0.8125rem;
	color: var(--slate);
}

/* ---------- Accessibility ---------- */
:focus-visible {
	outline: 2px solid var(--brass);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
