/* Senet LLC — site styles */

:root {
	--bg: #faf9f6;
	--ink: #161616;
	--muted: #5d5b56;
	--rule: #dedbd3;
	--accent: #005594;
	--max: 1040px;
	--font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
	color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding-inline: 24px;
}

/* ---------- Header ---------- */

html { scroll-padding-top: 80px; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--bg);
	border-bottom: 1px solid var(--rule);
	padding-top: env(safe-area-inset-top, 0px);
}

.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 14px;
}

.menu-toggle {
	display: none;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: 2px;
	padding: 8px 16px;
	min-height: 44px;
	cursor: pointer;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	font-weight: 600;
	font-size: 19px;
	letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); }
.brand-logo {
	flex: none;
	width: 90px;
	height: 30px;
	object-fit: cover;
	object-position: 50% 48.5%; /* the artwork sits in the middle band of a square canvas */
}
.brand small { font-weight: 400; color: var(--muted); font-size: 15px; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .nav-cta {
	color: #fff;
	background: var(--accent);
	padding: 8px 16px;
	border-radius: 2px;
	font-weight: 500;
}
.site-nav .nav-cta:hover { color: #fff; background: #054061; }

/* Phones: collapse the navigation behind the Menu button */
@media (max-width: 760px) {
	html { scroll-padding-top: 76px; }
	.js .menu-toggle { display: block; }
	.js .site-nav { display: none; }
	.js .site-header.open .site-nav {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		padding-bottom: 8px;
	}
	.js .site-nav a {
		font-size: 18px;
		color: var(--ink);
		padding: 14px 0;
		border-top: 1px solid var(--rule);
	}
	.js .site-nav a[aria-current="page"] { text-decoration: none; color: var(--accent); }
	.js .site-nav .nav-cta {
		margin-top: 12px;
		padding: 14px 16px;
		text-align: center;
		border-top: 0;
		color: #fff;
	}
	.brand-logo { width: 72px; height: 24px; }
}

/* ---------- Type ---------- */

h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0; }

.lede {
	font-size: clamp(26px, 3.6vw, 38px);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.01em;
	max-width: 30ch;
	margin: 0;
}

.label {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 500;
	margin: 0 0 8px;
}

.muted { color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding-block: 64px; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: 0; }
.hero { padding-block: 88px 72px; }
.hero p.sub { max-width: 60ch; color: var(--muted); margin: 24px 0 0; }

.section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 24px;
	margin-bottom: 32px;
}
.section-head h2 { font-size: 24px; }

/* Two-column: heading left, content right */
.split {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 24px 48px;
}
@media (max-width: 760px) {
	.split { grid-template-columns: 1fr; }
}

/* ---------- Service areas ---------- */

.areas {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border-top: 1px solid var(--rule);
}
.area {
	padding: 28px 28px 32px 0;
	border-bottom: 1px solid var(--rule);
}
.area:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--rule); }
.area h3 { font-size: 19px; margin-bottom: 8px; }
.area h3 .num { color: var(--muted); font-weight: 400; margin-right: 10px; }
.area p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.area ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.area li { padding: 3px 0; }
.area li::before { content: "—"; color: var(--rule); margin-right: 8px; }
@media (max-width: 760px) {
	.areas { grid-template-columns: 1fr; }
	.area, .area:nth-child(2n) { padding: 24px 0; border-left: 0; }
}

/* ---------- Project table (home) ---------- */

.table-scroll { overflow-x: auto; }
table.projects {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}
.projects th {
	text-align: left;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 0 16px 10px 0;
	border-bottom: 1px solid var(--ink);
}
.projects td {
	padding: 14px 16px 14px 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}
.projects td:first-child { color: var(--muted); width: 4.5em; font-variant-numeric: tabular-nums; }
.projects td a { text-decoration: none; font-weight: 500; }
.projects td a:hover { text-decoration: underline; }
@media (max-width: 600px) {
	.projects .hide-sm { display: none; }
}

/* ---------- Services page ---------- */

.service-group { padding-block: 56px; border-bottom: 1px solid var(--rule); }
.service-group:last-of-type { border-bottom: 0; }
.service-group h2 { font-size: 26px; margin-bottom: 12px; }
.service-group .intro { color: var(--muted); margin: 0; max-width: 40ch; }

.service-list { margin: 0; }
.service-list > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.service-list > div:first-child { border-top: 0; padding-top: 0; }
.service-list dt { font-weight: 600; margin-bottom: 4px; }
.service-list dd { margin: 0; color: var(--muted); }

/* ---------- Work page ---------- */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.filters button {
	font: inherit;
	font-size: 14px;
	background: transparent;
	color: var(--muted);
	border: 1px solid var(--rule);
	padding: 8px 14px;
	min-height: 40px;
	cursor: pointer;
	border-radius: 2px;
	white-space: nowrap;
}
.filters button:hover { color: var(--ink); border-color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.filters .count { margin-left: 8px; opacity: 0.6; font-variant-numeric: tabular-nums; }

/* Phones: filters in a two-column grid so all of them are visible */
@media (max-width: 760px) {
	.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.filters button { width: 100%; text-align: left; white-space: normal; display: flex; justify-content: space-between; align-items: center; }
}

#project-list { margin-bottom: 64px; }
#project-list .project:first-of-type { border-top: 1px solid var(--ink); }

.project { border-bottom: 1px solid var(--rule); }

/* The row people see in the list */
.project summary {
	display: grid;
	grid-template-columns: 4.5em 1fr 14em 24px;
	gap: 4px 16px;
	align-items: baseline;
	padding: 18px 0;
	cursor: pointer;
	list-style: none;
}
.project summary::-webkit-details-marker { display: none; }
.project summary::after {
	content: "+";
	font-size: 22px;
	line-height: 1;
	color: var(--muted);
	text-align: right;
	align-self: center;
}
.project details[open] summary::after { content: "−"; }
.project summary:hover h2 { color: var(--accent); }
.project summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.p-year { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 15px; }
.p-main { display: block; }
.p-main h2 { font-size: 18px; display: block; }
.p-line { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.p-type { color: var(--muted); font-size: 14px; }

/* The details that open under it */
.project-detail {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 16px 48px;
	padding: 8px 0 36px 0;
}
@media (min-width: 761px) { .project-detail { padding-left: calc(4.5em + 16px); } }
.project .meta { font-size: 15px; color: var(--muted); }
.project .meta dl { margin: 0; }
.project .meta dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 10px; }
.project .meta dt:first-child { margin-top: 0; }
.project .meta dd { margin: 0; color: var(--ink); }
.project .body p { margin: 0 0 14px; }
.project .body ul { margin: 0 0 14px; padding-left: 20px; }
.project .body li { margin-bottom: 4px; }
.project .links { font-size: 15px; }

.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}
.gallery img {
	height: 150px;
	width: auto;
	max-width: 100%;
	object-fit: cover;
	background: var(--rule);
}
@media (max-width: 760px) {
	.project summary { grid-template-columns: 3.2em 1fr 20px; gap: 2px 12px; }
	.p-type { display: none; }
	.project-detail { grid-template-columns: 1fr; padding-left: calc(3.2em + 12px); }
	.gallery img { height: 96px; }
}

/* ---------- Contact ---------- */

.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; margin: 0; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
@media (max-width: 480px) {
	.contact-list { grid-template-columns: 1fr; gap: 2px; }
	.contact-list dd { margin-bottom: 12px; }
}

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--rule);
	font-size: 14px;
	color: var(--muted);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 28px;
}
.site-footer a { color: var(--muted); }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.button {
	display: inline-block;
	padding: 11px 20px;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	border: 1px solid var(--accent);
	border-radius: 2px;
}
.button:hover { color: #fff; background: #054061; border-color: #054061; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
.button.secondary:hover { color: var(--ink); border-color: var(--muted); background: transparent; }

/* ---------- Featured service area ---------- */

.area h3 a { text-decoration: none; }
.area h3 a::after { content: " →"; color: var(--accent); }
.area h3 a:hover { text-decoration: underline; }

/* ---------- Schools page ---------- */

.equipment {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border-top: 1px solid var(--rule);
}
.equipment li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 600px) { .equipment { grid-template-columns: 1fr; } }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
	counter-increment: step;
	position: relative;
	padding: 0 0 20px 44px;
	color: var(--muted);
}
.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	border: 1px solid var(--accent);
	color: var(--accent);
	border-radius: 50%;
	font-size: 14px;
	display: grid;
	place-items: center;
}
.steps strong { color: var(--ink); font-weight: 600; }

.cta { background: #eef3f7; }

/* ---------- Trust line and company facts ---------- */

.trust { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

.facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 32px;
	margin: 24px 0;
	padding: 16px 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	font-size: 15px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; background: #eceae4; padding: 1px 4px; border-radius: 2px; }

/* ---------- Free video call offer ---------- */

.offer-band { padding-block: 0 8px; }
.offer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	background: #eef3f7;
	border-left: 4px solid var(--accent);
	padding: 28px 32px;
	margin-block: 8px 48px;
}
.offer > div { flex: 1 1 420px; }
.offer h2 { font-size: 22px; margin-bottom: 8px; }
.offer p { margin: 0; color: var(--muted); max-width: 62ch; }
.offer .button { flex: none; }
@media (max-width: 600px) {
	.offer { padding: 22px 20px; }
	.offer .button { width: 100%; text-align: center; }
}
