/*
Theme Name: Movealytics
Description: Custom theme for Movealytics Inc. — Mobile Motion Lab and Smart Hallway.
Author: Movealytics Inc.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: movealytics
*/

/* ==========================================================
   Product tiles (front page)
   Append to the theme's style.css. Uses existing theme tokens
   (--green, --muted); fallbacks match the Movealytics navy.
   ========================================================== */

.product-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.product-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	padding: 32px;
	text-align: left;
	font: inherit;
	color: var(--navy, #08114F);
	background: #fff;
	border: 2px solid rgba(8, 17, 79, 0.12);
	border-radius: 22px;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-tile:hover {
	border-color: var(--green);
}

.product-tile:focus-visible {
	outline: 3px solid var(--green);
	outline-offset: 3px;
}

.product-tile[aria-expanded="true"] {
	border-color: var(--green);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent);
}

.product-tile-logo {
	height: 64px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	margin-bottom: 6px;
}

.product-tile-name {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.2;
}

.product-tile-tagline {
	color: var(--muted);
	font-size: 1.05rem;
}

.product-tile-traits {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.product-tile-traits span {
	padding: 5px 12px;
	font-size: 0.85rem;
	border-radius: 999px;
	background: rgba(8, 17, 79, 0.06);
}

.product-tile-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 14px;
	font-weight: 600;
	color: var(--green);
}

.product-tile-chevron {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s ease;
}

.product-tile[aria-expanded="true"] .product-tile-chevron {
	transform: rotate(180deg);
}

/* Detail panel */
.product-detail {
	margin-top: 24px;
}

.product-detail[hidden] {
	display: none;
}

.product-detail-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

.product-detail-logo {
	height: 72px;
	width: auto;
	object-fit: contain;
}

.product-detail-head h3 {
	font-size: 1.9rem;
	margin: 0;
}

.product-detail-summary {
	color: var(--muted);
	margin-bottom: 20px;
	max-width: 62ch;
}

.product-detail .cta-row {
	margin-top: 24px;
}

.product-detail-shot {
	margin-bottom: 20px;
}

.product-detail-shot img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 760px) {
	.product-tiles {
		grid-template-columns: 1fr;
	}
	.product-tile {
		padding: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.product-tile,
	.product-tile-chevron {
		transition: none;
	}
}
