/* Site-owned additions on top of the minified theme in main.css:
   the footer identity block and the layout for interior pages. */


/* --- Footer identity block ------------------------------------------ */

.footer {
	background: #406F05;
	padding-top: 30px;
}

/* main.css sizes .brand for the big hero logo (172px tall, matching
   padding). The footer shows it at 50px wide, so the box is resized to the
   image instead of leaving ~115px of empty space under it. */
.footer .brand {
	width: 150px;
	height: 57px;
	padding-top: 0;
	margin: 0 auto 20px;
}

.footer .legal {
	max-width: 640px;
	margin: 0 auto;
	padding: 0 20px 44px;
	text-align: center;
}

.footer .legal p {
	font-family: nudista-web, sans-serif;
	font-size: 13px;
	line-height: 22px;
	color: rgba(255, 255, 255, .7);
	margin: 0 0 4px;
}

.footer .legal a {
	color: rgba(255, 255, 255, .95);
	text-decoration: underline;
}

.footer .legal a:hover,
.footer .legal a:focus {
	color: #fff;
}


/* --- Interior pages -------------------------------------------------- */

.site-header {
	background: url(../img/hero-texture.jpg) #406F05;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 2px 0 rgba(255, 255, 255, .5), 0 2px 8px rgba(0, 0, 0, .2);
	padding: 22px 0;
	margin-bottom: 52px;
}

.site-header .brand-link {
	display: block;
	width: 50px;
	height: 57px;
	margin: 0 auto;
	background: url(../img/logo-50.png) no-repeat;
	text-indent: -9999em;
	overflow: hidden;
}

.page-content {
	padding: 0 20px;
	margin-bottom: 52px;
}

.page-content .container {
	max-width: 720px;
}

.page-content h1 {
	font-size: 36px;
	font-style: italic;
	color: #426b02;
	margin: 0 0 6px;
}

.page-content .updated {
	font-family: nudista-web, sans-serif;
	font-size: 14px;
	color: #999;
	margin: 0 0 32px;
}

/* main.css styles bare h3 with a logo bullet and rule; interior pages use a
   plain green accent instead, which scales with the heading. */
.page-content h2 {
	font-size: 22px;
	font-weight: 600;
	font-style: italic;
	color: #426b02;
	background: none;
	border-top: 0;
	padding: 0;
	margin: 44px 0 14px;
}

.page-content h2::before {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	background: #89b80d;
	margin-bottom: 16px;
}

/* main.css styles bare h3 as a section head; interior pages use it as a
   plain sub-heading, so the decoration is reset here. */
.page-content h3 {
	font-size: 17px;
	font-weight: 600;
	font-style: normal;
	color: rgba(0, 0, 0, .8);
	background: none;
	border-top: 0;
	padding: 0;
	margin: 28px 0 8px;
}

.page-content p,
.page-content li {
	font-family: nudista-web, sans-serif;
	font-size: 16px;
	line-height: 27px;
	color: #666;
}

.page-content ul {
	margin: 0 0 20px 22px;
}

.page-content li {
	line-height: 26px;
	margin-bottom: 8px;
}

.page-content .contact-details p {
	margin: 0;
}

.table-wrap {
	overflow-x: auto;
	margin: 0 0 24px;
}

.page-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: nudista-web, sans-serif;
	font-size: 15px;
	color: #666;
}

.page-content th,
.page-content td {
	text-align: left;
	vertical-align: top;
	line-height: 22px;
	padding: 10px 16px 10px 0;
	border-bottom: 1px solid #ededed;
}

.page-content thead th {
	border-bottom: 1px solid #dedede;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #999;
	font-weight: 600;
}

.page-content tbody th {
	font-weight: 600;
	color: rgba(0, 0, 0, .8);
}

.page-content .back {
	font-family: nudista-web, sans-serif;
	font-size: 15px;
	margin-top: 44px;
}


/* --- Client grid ----------------------------------------------------- */

/* Cells currently hold the client name as text. To use a real logo, swap
   the text for <img src="img/clients/<name>.svg" alt="<Client>"> -- the
   img rule below caps it to the cell without distorting the aspect. */

/* Grid rather than flex so every cell is the same width, including a
   partly-filled last row. */
.client-grid {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 14px;
}

.client-grid li {
	line-height: normal;
	margin: 0;
}

.client-grid a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 116px;
	padding: 16px 14px;
	text-align: center;
	border: 1px solid #e6e6e6;
	border-radius: 3px;
	background: #fff;
	font-family: nudista-web, sans-serif;
	font-size: 15px;
	line-height: 21px;
	font-weight: 600;
	color: #666;
	-webkit-transition: border-color .15s ease-in-out, color .15s ease-in-out;
	transition: border-color .15s ease-in-out, color .15s ease-in-out;
}

.client-grid a:hover,
.client-grid a:focus {
	border-color: #89b80d;
	color: #426b02;
	text-decoration: none;
}

.client-grid img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 46px;
}

/* Optical sizing. These logos have very different proportions -- a 3.9:1
   wordmark next to a 1.1:1 badge -- so a single max-height would make the
   badge tower over everything. Each cap is tuned so the marks carry roughly
   equal visual weight. */
/* weatherx is an SVG whose natural height is only 24px, so it needs an
   explicit height to scale up rather than a cap that never binds. */
.client-grid .logo-weatherx { height: 30px; max-height: 30px; }
.client-grid .logo-aem      { max-height: 42px; }
.client-grid .logo-imsa     { max-height: 52px; }
.client-grid .logo-atlgac   { max-height: 60px; }
.client-grid .logo-brsr     { max-height: 68px; }


/* --- Clients section heading ---------------------------------------- */

/* main.css hangs the logo bullet off the left edge of h3 via a background
   image, which cannot be centred with the text. Move it to a ::before so
   the mark and the words centre together as one unit. */

.our-clients h3 {
	text-align: center;
	padding-left: 0;
	background: none;
}

.our-clients h3::before {
	content: "";
	display: inline-block;
	width: 25px;
	height: 29px;
	margin-right: 9px;
	vertical-align: -7px;
	background: url(../img/logo-tiny.png) 0 0 no-repeat;
}

.our-clients .lede {
	text-align: center;
}
