/*
Theme Name: Epoxology Child
Theme URI: https://epoxology.ca/
Description: Child theme for Epoxology Canada (Blocksy). Safe container for site-specific customizations, security header tweaks, and SEO helper functions. Created per AGENTS.md (keep customizations in child theme only).
Author: Epoxology Canada
Author URI: https://epoxology.ca/
Template: blocksy
Version: 2.9.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: epoxology-child
Tags: flooring, epoxy, child-theme, blocksy
*/

/*
 * This stylesheet intentionally starts almost empty.
 * Blocksy auto-loads its own compiled bundle from static/bundle/; per Blocksy
 * docs the child must NOT enqueue the parent style.css. functions.php enqueues
 * only this child stylesheet. Add project-specific CSS rules below as needed,
 * using the Epoxology brand palette:
 *
 *   Primary dark navy : #283F4D
 *   Primary gold      : #FAB617
 *   Light slate blue  : #819DB1
 *   Deep navy shade   : #21333D
 *   Muted blue gray   : #697C84
 *
 * WordPress Coding Standards:
 * - Mobile-first.
 * - No broad selectors (div {}, * {}) and no !important unless technically required.
 * - Prefer CSS custom properties (variables) for reuse.
 */

:root {
	--epoxology-navy: #283F4D;
	--epoxology-gold: #FAB617;
	--epoxology-slate: #819DB1;
	--epoxology-deep-navy: #21333D;
	--epoxology-muted: #697C84;
}

/* -------------------------------------------------
 * Service page "Where We Install" location grid
 * ------------------------------------------------- */
.entry-content .epx-service-locations {
	padding: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
	background-color: #F8FAFC;
	border: 1px solid rgba(129, 157, 177, 0.25);
	border-radius: 20px;
}

@media (min-width: 768px) {
	.entry-content .epx-service-locations {
		padding: 2rem;
		margin-top: 5rem;
		margin-bottom: 5rem;
	}
}

.epx-service-locations h2 {
	position: relative;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	color: var(--epoxology-navy);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.3;
}

@media (min-width: 768px) {
	.epx-service-locations h2 {
		font-size: 1.75rem;
	}
}

.epx-service-locations h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 4px;
	background-color: var(--epoxology-gold);
	border-radius: 2px;
}

.epx-service-locations > p {
	margin-bottom: 1.5rem;
	color: var(--epoxology-muted);
	font-size: 1rem;
	line-height: 1.6;
}

.epx-service-locations ul {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.epx-service-locations ul {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.epx-service-locations ul {
		grid-template-columns: repeat(4, 1fr);
	}
}

.epx-service-locations li {
	margin: 0;
}

.epx-service-locations a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0.75rem 1.25rem;
	background-color: #FFFFFF;
	border: 2px solid transparent;
	border-radius: 9999px;
	color: var(--epoxology-deep-navy);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
	text-decoration: none;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.epx-service-locations a:hover {
	background-color: var(--epoxology-gold);
	border-color: var(--epoxology-gold);
	color: var(--epoxology-deep-navy);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.epx-service-locations a:focus-visible {
	outline: 2px solid var(--epoxology-gold);
	outline-offset: 2px;
}

.epx-service-locations a:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

/* -------------------------------------------------
 * Comparison table: desktop table, mobile cards/tabs
 * ------------------------------------------------- */
.entry-content .epx-compare-table {
	--epx-table-border: rgba(129, 157, 177, 0.28);
	margin: 2.5rem 0;
}

.entry-content .epx-compare-lead {
	max-width: 68rem;
	margin: 0 0 1.25rem;
	color: var(--epoxology-navy);
	font-size: 1.05rem;
	line-height: 1.7;
}

.entry-content .epx-compare-table .epx-table {
	width: 100%;
	margin: 0;
	border: 1px solid var(--epx-table-border);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	overflow: hidden;
	color: var(--epoxology-navy);
	font-size: 1rem;
	box-shadow: 0 10px 28px rgba(33, 51, 61, 0.08);
}

.entry-content .epx-compare-table .epx-table th {
	background-color: var(--epoxology-navy) !important;
	color: #fff;
	font-weight: 700;
	line-height: 1.35;
}

.entry-content .epx-compare-table .epx-table td,
.entry-content .epx-compare-table .epx-table th {
	border-color: var(--epx-table-border);
}

.entry-content .epx-compare-table .epx-table tbody tr:nth-child(even) {
	background-color: #f7f9fb;
}

.entry-content .epx-compare-table .epx-table tbody tr:hover {
	background-color: rgba(250, 182, 23, 0.1);
}

.entry-content .epx-compare-table--systems .epx-table thead th:nth-child(3) {
	background-color: var(--epoxology-gold) !important;
	color: var(--epoxology-deep-navy);
}

.entry-content .epx-compare-table--systems .epx-table tbody td:nth-child(3) {
	background-color: rgba(250, 182, 23, 0.08);
	box-shadow: inset 1px 0 rgba(250, 182, 23, 0.28), inset -1px 0 rgba(250, 182, 23, 0.28);
}

.epx-mobile-tabs {
	display: none;
}

.entry-content .epx-compare-takeaway {
	border-left: 5px solid var(--epoxology-gold);
	background-color: rgba(250, 182, 23, 0.14) !important;
	color: var(--epoxology-deep-navy) !important;
	box-shadow: 0 6px 18px rgba(33, 51, 61, 0.08);
	font-size: 0.98rem;
	line-height: 1.65;
}

@media (max-width: 767px) {
	.entry-content .epx-compare-table {
		margin: 2rem 0;
	}

	.entry-content .epx-compare-lead {
		font-size: 1rem;
	}

	.entry-content .epx-compare-table .epx-table {
		font-size: 0.95rem;
	}

	.epx-mobile-tabs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.5rem;
		margin-bottom: 0.75rem;
	}

	.epx-mobile-tab {
		min-height: 44px;
		padding: 0.65rem 0.5rem;
		border: 1px solid var(--epoxology-slate);
		border-radius: 10px;
		background: #fff;
		color: var(--epoxology-navy);
		font-size: 0.78rem;
		font-weight: 700;
		line-height: 1.25;
		cursor: pointer;
		transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
	}

	.epx-mobile-tab.is-active,
	.epx-mobile-tab:hover {
		border-color: var(--epoxology-navy);
		background: var(--epoxology-navy);
		color: #fff;
	}

	.epx-mobile-tab:focus-visible {
		outline: 3px solid rgba(250, 182, 23, 0.65);
		outline-offset: 2px;
	}

	.entry-content .epx-compare-table--systems .epx-table {
		display: block;
		border-radius: 12px;
		box-shadow: 0 6px 18px rgba(33, 51, 61, 0.08);
	}

	.entry-content .epx-compare-table--systems .epx-table thead,
	.entry-content .epx-compare-table--systems .epx-table tbody,
	.entry-content .epx-compare-table--systems .epx-table tr {
		display: block;
	}

	.entry-content .epx-compare-table--systems .epx-table thead tr {
		display: grid;
		grid-template-columns: 1fr;
	}

	.entry-content .epx-compare-table--systems .epx-table thead th {
		display: none;
	}

	.entry-content .epx-compare-table--systems .epx-table thead th:first-child {
		display: block;
		padding: 0.85rem 1rem !important;
		font-size: 0.8rem;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.entry-content .epx-compare-table--systems .epx-table tbody tr {
		display: grid;
		grid-template-columns: 1fr 1.2fr;
	}

	.entry-content .epx-compare-table--systems .epx-table tbody td {
		display: none;
		min-height: 44px;
		padding: 0.75rem 0.85rem !important;
		line-height: 1.45;
	}

	.entry-content .epx-compare-table--systems .epx-table tbody td:nth-child(3) {
		background-color: transparent;
		box-shadow: none;
	}

	.entry-content .epx-compare-table--systems .epx-table tbody td:first-child,
	.entry-content .epx-compare-table--systems .epx-table.epx-active-column-1 tbody td:nth-child(2),
	.entry-content .epx-compare-table--systems .epx-table.epx-active-column-2 tbody td:nth-child(3),
	.entry-content .epx-compare-table--systems .epx-table.epx-active-column-3 tbody td:nth-child(4) {
		display: block;
	}

	.entry-content .epx-compare-table--systems .epx-table.epx-active-column-1 tbody td:nth-child(2),
	.entry-content .epx-compare-table--systems .epx-table.epx-active-column-2 tbody td:nth-child(3),
	.entry-content .epx-compare-table--systems .epx-table.epx-active-column-3 tbody td:nth-child(4) {
		grid-column: 2;
	}

	.entry-content .epx-compare-table--systems .epx-table tbody td:first-child {
		grid-column: 1;
		color: var(--epoxology-muted);
		font-size: 0.82rem;
		font-weight: 700;
	}

	.entry-content .epx-compare-takeaway {
		margin-top: 1rem !important;
		padding: 1rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.epx-mobile-tab {
		transition: none;
	}
}

/* -------------------------------------------------
 * Warehouse case study: editorial layout
 * ------------------------------------------------- */
.entry-content .epx-warehouse-section {
	--epx-warehouse-border: rgba(129, 157, 177, 0.28);
	--epx-warehouse-surface: #F4F7F8;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-block: clamp(2.5rem, 6vw, 5rem);
	padding: clamp(1.25rem, 4vw, 2.5rem);
	border: 1px solid var(--epx-warehouse-border);
	border-radius: 20px;
	background:
		linear-gradient(
			145deg,
			#F4F7F8 0%,
			#FFFFFF 62%,
			rgba(129, 157, 177, 0.10) 100%
		);
	box-shadow: 0 18px 48px rgba(33, 51, 61, 0.10);
}

.entry-content .epx-warehouse-section > * {
	width: 100%;
	max-width: none;
	margin-block: 0;
}

.entry-content .epx-warehouse-section > p:first-child {
	color: var(--epoxology-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.35;
}

.entry-content .epx-warehouse-section > h2 {
	position: relative;
	padding-bottom: 0.9rem;
	color: var(--epoxology-navy);
	font-size: clamp(1.75rem, 4vw, 2.65rem);
	line-height: 1.15;
}

.entry-content .epx-warehouse-section > h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 3.25rem;
	height: 0.25rem;
	border-radius: 999px;
	background-color: var(--epoxology-gold);
}

.entry-content .epx-warehouse-section > h2 + p,
.entry-content .epx-warehouse-section > h2 + p + p {
	color: var(--epoxology-navy);
	font-size: 1rem;
	line-height: 1.7;
}

.entry-content .epx-warehouse-section > h2 + p + p {
	color: var(--epoxology-muted);
}

.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type > .wp-block-column {
	min-width: 0;
}

.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type figure {
	height: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: 14px;
	background-color: var(--epoxology-slate);
}

.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type > .wp-block-column:first-child {
	min-height: clamp(15rem, 72vw, 24rem);
}

.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type > .wp-block-column:last-child > .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	height: clamp(20rem, 92vw, 30rem);
}

.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type > .wp-block-column:last-child > .wp-block-columns > .wp-block-column {
	display: contents;
}

.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type > .wp-block-column:last-child > .wp-block-columns > .wp-block-column:last-child > figure {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.entry-content .epx-warehouse-section > .wp-block-group {
	padding: 1.25rem;
	border: 1px solid rgba(129, 157, 177, 0.22);
	border-radius: 16px;
	background-color: var(--epoxology-deep-navy);
	box-shadow: 0 12px 30px rgba(33, 51, 61, 0.16);
}

.entry-content .epx-warehouse-section > .wp-block-group h3 {
	margin: 0 0 1rem;
	color: var(--epoxology-gold);
	font-size: 1.15rem;
	line-height: 1.3;
}

.entry-content .epx-warehouse-section > .wp-block-group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-content .epx-warehouse-section > .wp-block-group li {
	padding: 0.75rem 0;
	border-top: 1px solid rgba(129, 157, 177, 0.22);
	color: #FFFFFF;
	font-size: 0.94rem;
	line-height: 1.55;
}

.entry-content .epx-warehouse-section > .wp-block-group li:first-child {
	padding-top: 0;
	border-top: 0;
}

.entry-content .epx-warehouse-section > .wp-block-group li:last-child {
	padding-bottom: 0;
}

.entry-content .epx-warehouse-section > .wp-block-group li strong {
	display: block;
	margin-bottom: 0.15rem;
	color: var(--epoxology-slate);
	font-size: 0.72rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.entry-content .epx-warehouse-section > #operational-considerations {
	margin-top: 0.75rem;
	color: var(--epoxology-navy);
	font-size: clamp(1.4rem, 3vw, 1.85rem);
	line-height: 1.25;
}

.entry-content .epx-warehouse-section > #operational-considerations + ul {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0;
	list-style: none;
}

.entry-content .epx-warehouse-section > #operational-considerations + ul li {
	position: relative;
	min-height: 100%;
	padding: 3.9rem 1.25rem 1.25rem;
	border: 1px solid var(--epx-warehouse-border);
	border-radius: 14px;
	background-color: #FFFFFF;
	color: var(--epoxology-muted);
	line-height: 1.6;
	box-shadow: 0 8px 22px rgba(33, 51, 61, 0.07);
}

.entry-content .epx-warehouse-section > #operational-considerations + ul li::before {
	position: absolute;
	top: 1.15rem;
	left: 1.25rem;
	padding-left: 1rem;
	color: var(--epoxology-navy);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.entry-content .epx-warehouse-section > #operational-considerations + ul li::after {
	content: "";
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	width: 0.3rem;
	height: 1.4rem;
	border-radius: 999px;
	background-color: var(--epoxology-gold);
}

.entry-content .epx-warehouse-section > #operational-considerations + ul li:nth-child(1)::before {
	content: "Slab Assessment";
}

.entry-content .epx-warehouse-section > #operational-considerations + ul li:nth-child(2)::before {
	content: "Facility Demands";
}

.entry-content .epx-warehouse-section > #operational-considerations + ul li:nth-child(3)::before {
	content: "Return to Service";
}

.entry-content .epx-warehouse-section > #operational-considerations + ul + p {
	margin-top: 0.75rem;
	padding: 1.5rem 1.5rem 0.6rem;
	border-radius: 16px 16px 0 0;
	background-color: var(--epoxology-deep-navy);
	color: #FFFFFF;
	font-size: 1rem;
	line-height: 1.65;
}

.entry-content .epx-warehouse-section > .wp-block-buttons {
	margin-top: -1rem;
	padding: 0.6rem 1.5rem 1.5rem;
	border-radius: 0 0 16px 16px;
	background-color: var(--epoxology-deep-navy);
}

.entry-content .epx-warehouse-section > .wp-block-buttons .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.8rem 1.25rem;
	border: 2px solid var(--epoxology-gold);
	border-radius: 999px;
	background-color: var(--epoxology-gold);
	color: var(--epoxology-deep-navy);
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	transition:
		transform 200ms ease,
		background-color 200ms ease,
		border-color 200ms ease,
		color 200ms ease,
		box-shadow 200ms ease;
}

.entry-content .epx-warehouse-section > .wp-block-buttons .wp-block-button__link:hover {
	border-color: #FFFFFF;
	background-color: #FFFFFF;
	color: var(--epoxology-deep-navy);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
}

.entry-content .epx-warehouse-section > .wp-block-buttons .wp-block-button__link:focus-visible {
	outline: 3px solid #FFFFFF;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(250, 182, 23, 0.45);
}

@media (min-width: 768px) {
	.entry-content .epx-warehouse-section {
		grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
		column-gap: clamp(1.5rem, 3vw, 2.5rem);
		padding: clamp(2rem, 4vw, 3.5rem);
		border-radius: 24px;
	}

	.entry-content .epx-warehouse-section > p:first-child,
	.entry-content .epx-warehouse-section > h2,
	.entry-content .epx-warehouse-section > h2 + p,
	.entry-content .epx-warehouse-section > h2 + p + p {
		grid-column: 1;
	}

	.entry-content .epx-warehouse-section > .wp-block-group {
		grid-column: 2;
		grid-row: 1 / span 4;
	}

	.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type,
	.entry-content .epx-warehouse-section > #operational-considerations,
	.entry-content .epx-warehouse-section > #operational-considerations + ul {
		grid-column: 1 / -1;
	}

	.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		height: clamp(29rem, 46vw, 38rem);
		margin-top: 1rem;
	}

	.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type > .wp-block-column:first-child,
	.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type > .wp-block-column:last-child > .wp-block-columns {
		min-height: 0;
		height: 100%;
	}

	.entry-content .epx-warehouse-section > #operational-considerations + ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}

	.entry-content .epx-warehouse-section > #operational-considerations + ul + p {
		grid-column: 1;
		margin-top: 1rem;
		padding: 1.5rem 0.75rem 1.5rem 1.5rem;
		border-radius: 16px 0 0 16px;
	}

	.entry-content .epx-warehouse-section > .wp-block-buttons {
		grid-column: 2;
		align-items: center;
		margin-top: 1rem;
		padding: 1.5rem;
		border-radius: 0 16px 16px 0;
	}
}

@media (hover: hover) {
	.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type figure:hover img {
		transform: scale(1.025);
	}
}

@media (prefers-reduced-motion: reduce) {
	.entry-content .epx-warehouse-section > .wp-block-columns:first-of-type img,
	.entry-content .epx-warehouse-section > .wp-block-buttons .wp-block-button__link {
		transition: none;
	}
}
