/*
 * Halloc Case Studies — default styles.
 * Colors match halloc.com's dark theme; override the variables below in your
 * theme (e.g. on .halloc-cs-grid or :root) to restyle without editing this file.
 */
:root {
	--halloc-cs-accent: #1bb3b3;
	--halloc-cs-text: #ffffff;
	--halloc-cs-muted: rgba(255, 255, 255, 0.72);
	--halloc-cs-card-bg: rgba(255, 255, 255, 0.04);
	--halloc-cs-border: rgba(255, 255, 255, 0.12);
	--halloc-cs-radius: 16px;
}

/* ---------- Grid (shortcode) ---------- */
.halloc-cs-grid {
	display: grid;
	grid-template-columns: repeat(var(--halloc-cs-columns, 3), minmax(0, 1fr));
	gap: 28px;
	margin: 0 auto;
}

@media (max-width: 1024px) {
	.halloc-cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.halloc-cs-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

.halloc-cs-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--halloc-cs-card-bg);
	border: 1px solid var(--halloc-cs-border);
	border-radius: var(--halloc-cs-radius);
	color: var(--halloc-cs-text);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.halloc-cs-card:hover {
	transform: translateY(-4px);
	border-color: var(--halloc-cs-accent);
}

.halloc-cs-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.halloc-cs-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.halloc-cs-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
}

.halloc-cs-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.halloc-cs-card__tags li {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(27, 179, 179, 0.15);
	color: var(--halloc-cs-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.halloc-cs-card__title {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.3;
}

.halloc-cs-card__title a {
	color: inherit;
	text-decoration: none;
}

.halloc-cs-card__client,
.halloc-cs-card__excerpt {
	margin: 0;
	color: var(--halloc-cs-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.halloc-cs-card__client { font-weight: 600; }

.halloc-cs-card__link {
	margin-top: auto;
	padding-top: 8px;
	color: var(--halloc-cs-accent);
	font-weight: 700;
	text-decoration: none;
}

.halloc-cs-card__link:hover { text-decoration: underline; }

.halloc-cs-empty { color: var(--halloc-cs-muted); }

/* ---------- Results (cards + single page) ---------- */
.halloc-cs-results {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.halloc-cs-results li {
	display: flex;
	flex-direction: column;
	min-width: 110px;
	padding: 10px 14px;
	border: 1px solid var(--halloc-cs-border);
	border-radius: 10px;
}

.halloc-cs-results__value {
	color: var(--halloc-cs-accent);
	font-size: 1.35rem;
	line-height: 1.2;
}

.halloc-cs-results__label {
	color: var(--halloc-cs-muted);
	font-size: 0.85rem;
}

/* ---------- Service pills ([halloc_cs_services]) ---------- */
.halloc-cs-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.halloc-cs-tags li {
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--halloc-cs-border);
	border-radius: 999px;
	color: var(--halloc-cs-accent);
	font-size: 0.95rem;
	line-height: 1.3;
}

/* ---------- Single case study details panel ---------- */
.halloc-cs-details {
	display: grid;
	gap: 24px;
	margin: 0 0 40px;
	padding: 28px;
	background: var(--halloc-cs-card-bg);
	border: 1px solid var(--halloc-cs-border);
	border-radius: var(--halloc-cs-radius);
}

.halloc-cs-details__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 20px;
	margin: 0;
}

.halloc-cs-details__facts dt {
	margin: 0 0 4px;
	color: var(--halloc-cs-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.halloc-cs-details__facts dd {
	margin: 0;
	font-weight: 600;
}

.halloc-cs-details__facts a { color: var(--halloc-cs-accent); }

@media (max-width: 640px) {
	.halloc-cs-details { padding: 20px; }
}

/* ---------- Single case study: hide theme post info ----------
 * Blocksy prints author, date, categories, author box, share buttons,
 * prev/next links and related posts on single posts. Case studies don't need them.
 */
.single-halloc_case_study .entry-meta,
.single-halloc_case_study .author-box,
.single-halloc_case_study .ct-share-box,
.single-halloc_case_study .post-navigation,
.single-halloc_case_study .ct-related-posts-container,
.single-halloc_case_study .ct-related-posts,
.single-halloc_case_study .entry-tags {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.halloc-cs-card { transition: none; }
	.halloc-cs-card:hover { transform: none; }
}
