/*
Theme Name:  Inland Construction
Theme URI:   https://inlandconstructionco.com
Author:      Inland Construction Company
Description: A responsive theme for Inland Construction Company, carrying over the identity of the original site: the mark, the deep red, the red rule, and the services strip across the footer. Content comes from the Inland Core plugin, so the site can be restyled without touching a word of it.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inland-construction
Tags:        two-columns, custom-menu, translation-ready, block-styles
*/

/* -------------------------------------------------------------- tokens */

:root {
	--ink: #1c1a18;
	--ink-soft: #4a4643;
	--muted: #6f6b66;
	--red: #900;
	--red-bright: #c00;
	--rule: #ddd8d1;
	--rule-soft: #ece8e2;
	--paper: #fff;
	--sand: #f5f3f0;

	--sidebar: 13.5rem;
	--gutter: 2.75rem;
	--measure: 42rem;

	--font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-ui: Verdana, Geneva, "DejaVu Sans", sans-serif;

	--step-0: 1rem;
	--step-1: 1.125rem;
	--step-2: 1.375rem;
	--step-3: 1.75rem;
	--step-4: 2.25rem;
}

/* -------------------------------------------------------------- reset */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
	margin: 0;
}

ul[class],
ol[class] {
	padding: 0;
	list-style: none;
}

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

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* -------------------------------------------------------------- base */

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--sand);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--red);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--red-bright);
}

:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	font-weight: 600;
	line-height: 1.25;
	color: var(--ink);
}

h1 {
	font-size: var(--step-4);
	letter-spacing: -0.015em;
}

h2 {
	font-size: var(--step-2);
	margin-top: 2.25rem;
	margin-bottom: 0.5rem;
}

h3 {
	font-size: var(--step-1);
}

p + p,
p + ul,
p + ol,
ul + p,
ol + p {
	margin-top: 1.1rem;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--paper);
	color: var(--red);
	font-weight: 600;
}

.skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
}

/* -------------------------------------------------------------- shell */

.shell {
	max-width: 68rem;
	margin: 0 auto;
	padding: 0 1.25rem 3rem;
}

.site {
	background: var(--paper);
	border: 1px solid var(--rule-soft);
	border-top: 0;
}

.site-inner {
	display: block;
	padding: 1.5rem 1.5rem 0;
}

/* -------------------------------------------------------------- masthead */

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--rule);
}

.masthead__logo img {
	width: 11rem;
	height: auto;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.9rem;
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: 2px;
	font-family: var(--font-ui);
	font-size: 0.75rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle:hover {
	border-color: var(--red);
	color: var(--red);
}

.nav-toggle__bars {
	position: relative;
	display: block;
	width: 1rem;
	height: 2px;
	background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.nav-toggle__bars::before {
	top: -5px;
}

.nav-toggle__bars::after {
	top: 5px;
}

/* -------------------------------------------------------------- nav */

.primary-nav {
	display: none;
	padding: 1rem 0 0.25rem;
	border-bottom: 1px solid var(--rule);
}

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

.primary-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav li {
	border-bottom: 1px solid var(--rule-soft);
}

.primary-nav li:last-child {
	border-bottom: 0;
}

.primary-nav a {
	display: block;
	padding: 0.7rem 0;
	font-family: var(--font-ui);
	font-size: 0.72rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
}

.primary-nav a:hover,
.primary-nav a:focus {
	color: var(--red-bright);
	text-decoration: underline;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-parent > a {
	color: var(--red);
	font-weight: 700;
}

.nav-rule {
	display: none;
}

/* -------------------------------------------------------------- banner */

.site-banner {
	margin: 1.5rem 0 1.75rem;
}

.site-banner img {
	width: 100%;
	max-width: 27.75rem;
}

/* -------------------------------------------------------------- content */

.content {
	padding-bottom: 2.5rem;
}

.content > * {
	max-width: var(--measure);
}

.page-title {
	margin-bottom: 1.25rem;
	font-size: var(--step-3);
}

.entry-content > p:first-of-type {
	font-size: var(--step-1);
	color: var(--ink-soft);
}

.entry-content ul {
	margin: 0.5rem 0 1.25rem 1.1rem;
	padding: 0;
	list-style: none;
}

.entry-content ul li {
	position: relative;
	padding-left: 1rem;
	margin-bottom: 0.3rem;
}

.entry-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 5px;
	height: 5px;
	background: var(--red);
}

.entry-content .service-intro {
	margin-top: 0.15rem;
	color: var(--muted);
	font-style: italic;
}

.entry-content .award {
	margin-top: 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--sand);
	border-left: 3px solid var(--red);
	font-size: 0.94rem;
}

/* The home page quote, recovered from homeQuote.gif */

.hero-quote {
	margin: 0 0 1.75rem;
	padding: 0 0 1.25rem;
	border-bottom: 1px solid var(--rule);
}

.hero-quote p {
	margin: 0;
	font-size: var(--step-2);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.hero-quote em {
	font-style: italic;
	color: var(--red);
}

/* The mission statement, recovered from mission.gif */

.mission {
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.5rem;
	background: var(--sand);
	border-left: 3px solid var(--red);
}

.mission h2 {
	margin: 0 0 0.4rem;
	font-family: var(--font-ui);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--red);
}

.mission p {
	margin: 0;
	font-size: var(--step-1);
	font-style: italic;
	line-height: 1.55;
	color: var(--ink-soft);
}

.tagline {
	margin: 1.75rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rule);
	font-family: var(--font-ui);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--red);
}

.badge-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.badge-row img {
	width: 4.5rem;
	height: auto;
}

.badge-row p {
	font-size: 0.82rem;
	color: var(--muted);
}

/* -------------------------------------------------------------- projects */

.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 2.5rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--rule);
	max-width: none;
}

.section-heading h2 {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.section-heading .count {
	font-size: 0.78rem;
	color: var(--muted);
}

.project-grid {
	display: grid;
	gap: 1.5rem 1.25rem;
	grid-template-columns: 1fr;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	max-width: none;
}

.project-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.project-card__media {
	display: block;
	overflow: hidden;
	background: var(--sand);
	aspect-ratio: 4 / 3;
}

.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.project-card__link:hover .project-card__media img,
.project-card__link:focus .project-card__media img {
	transform: scale(1.04);
}

.project-card__media--empty {
	border: 1px dashed var(--rule);
}

.project-card__body {
	display: block;
	padding-top: 0.6rem;
}

.project-card__title {
	display: block;
	font-weight: 600;
	line-height: 1.35;
}

.project-card__link:hover .project-card__title {
	color: var(--red);
}

.project-card__location {
	display: block;
	margin-top: 0.1rem;
	font-size: 0.85rem;
	color: var(--muted);
}

/* project detail */

.project-header {
	margin-bottom: 1.5rem;
}

.project-header__location {
	margin-top: 0.35rem;
	font-style: italic;
	color: var(--muted);
}

.project-header__scope {
	margin-top: 0.75rem;
	font-size: var(--step-1);
	color: var(--ink-soft);
}

.project-facts {
	display: grid;
	gap: 0.85rem 1.5rem;
	grid-template-columns: 1fr;
	margin: 1.75rem 0;
	padding: 1.25rem 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.project-facts dt {
	font-family: var(--font-ui);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.project-facts dd {
	margin: 0.15rem 0 0;
	font-weight: 500;
}

.project-photos {
	display: grid;
	gap: 1rem;
	margin: 1.75rem 0;
	padding: 0;
	list-style: none;
	max-width: none;
}

.project-photos img {
	width: 100%;
}

.back-link {
	display: inline-block;
	margin-top: 1.5rem;
	font-family: var(--font-ui);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.back-link::before {
	content: "\00ab\00a0";
}

.project-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rule);
	font-size: 0.9rem;
}

/* category filter */

.category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
	max-width: none;
}

.category-filter a {
	display: block;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--rule);
	border-radius: 999px;
	font-family: var(--font-ui);
	font-size: 0.7rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-soft);
}

.category-filter a:hover,
.category-filter a:focus,
.category-filter .is-current a {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}

/* -------------------------------------------------------------- team */

.team-list {
	max-width: none;
}

.team-member {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--rule-soft);
}

.team-member:last-child {
	border-bottom: 0;
}

.team-member__photo img {
	width: 100%;
	max-width: 11rem;
}

.team-member__name {
	font-size: var(--step-1);
}

.team-member__role {
	display: block;
	margin-top: 0.15rem;
	font-family: var(--font-ui);
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--red);
}

.team-member__credentials {
	margin-top: 0.4rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.team-member__bio {
	margin-top: 0.75rem;
}

/* -------------------------------------------------------------- contact */

.contact-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	margin: 1.75rem 0 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--rule);
	max-width: none;
}

.contact-block h2 {
	margin: 0 0 0.4rem;
	font-family: var(--font-ui);
	font-size: 0.7rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted);
}

.contact-block p {
	margin: 0;
}

/* -------------------------------------------------------------- gallery */

.inland-gallery {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
	max-width: none;
}

.inland-gallery--2 {
	grid-template-columns: repeat(2, 1fr);
}

/* -------------------------------------------------------------- footer */

.site-footer {
	margin-top: 2rem;
	padding: 1.5rem;
	border-top: 3px solid var(--red);
	background: var(--paper);
	text-align: center;
}

.footer-services {
	font-family: var(--font-ui);
	font-size: 0.68rem;
	line-height: 1.9;
	letter-spacing: 0.05em;
	color: var(--ink-soft);
}

.footer-contact {
	margin-top: 0.6rem;
	font-size: 0.8rem;
	color: var(--muted);
}

.footer-contact a {
	color: var(--muted);
}

.footer-copyright {
	margin-top: 0.5rem;
	font-family: var(--font-ui);
	font-size: 0.62rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

/* -------------------------------------------------------------- pagination */

.pagination {
	margin: 2rem 0 0;
	font-size: 0.9rem;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.3rem 0.6rem;
	text-decoration: none;
}

.pagination .current {
	background: var(--red);
	color: #fff;
}

/* -------------------------------------------------------------- search & 404 */

.search-form {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.search-form input[type="search"] {
	flex: 1 1 auto;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--rule);
	border-radius: 2px;
}

.search-form button {
	padding: 0.55rem 1.1rem;
	background: var(--red);
	border: 0;
	border-radius: 2px;
	color: #fff;
	font-size: 0.85rem;
	cursor: pointer;
}

.search-form button:hover {
	background: var(--red-bright);
}

.result-list {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.result-list li {
	padding: 1rem 0;
	border-bottom: 1px solid var(--rule-soft);
}

/* -------------------------------------------------------------- editor */

.entry-content .alignleft {
	float: left;
	margin: 0.35rem 1.25rem 1rem 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.35rem 0 1rem 1.25rem;
}

.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.entry-content .wp-caption-text {
	font-size: 0.82rem;
	color: var(--muted);
}

/* -------------------------------------------------------------- 600px */

@media (min-width: 37.5em) {
	.project-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.project-facts {
		grid-template-columns: repeat(2, 1fr);
	}

	.project-photos {
		gap: 1.25rem;
	}

	.team-member {
		grid-template-columns: 11rem 1fr;
		gap: 1.5rem;
	}

	.contact-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.inland-gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.inland-gallery--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* -------------------------------------------------------------- 900px */

@media (min-width: 56.25em) {
	.shell {
		padding-top: 2rem;
	}

	.site-inner {
		display: grid;
		grid-template-columns: var(--sidebar) 1fr;
		gap: var(--gutter);
		padding: 2rem 2.5rem 0;
	}

	.masthead {
		display: block;
		padding-bottom: 0;
		border-bottom: 0;
	}

	.masthead__logo img {
		width: 100%;
		max-width: 11rem;
	}

	.nav-toggle {
		display: none;
	}

	.primary-nav {
		display: block;
		margin-top: 1.25rem;
		padding: 0;
		border-bottom: 0;
		text-align: right;
	}

	.primary-nav li {
		border-bottom: 0;
	}

	.primary-nav a {
		padding: 0.42rem 0;
		font-size: 0.7rem;
	}

	.nav-rule {
		display: block;
		margin-top: 1rem;
		text-align: right;
	}

	.nav-rule img {
		display: inline-block;
		width: 6.25rem;
		height: auto;
	}

	.site-banner {
		margin-top: 0;
	}

	.project-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.site-footer {
		text-align: left;
		padding: 1.5rem 2.5rem;
	}
}

/* -------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -------------------------------------------------------------- print */

@media print {
	body {
		background: #fff;
	}

	.primary-nav,
	.nav-toggle,
	.site-banner,
	.back-link,
	.project-nav {
		display: none !important;
	}
}
