/**
 * DOM Remodeling - Main Stylesheet
 *
 * @package Blocksy_Child
 */

:root {
	--dom-bg: #ffffff;
	--dom-text: #1e293b;     /* slate-800 */
	--dom-accent: #0ea5e9;   /* sky-500 */
	--dom-accent-2: #f59e0b; /* amber-500 */
	--dom-muted: #94a3b8;    /* slate-400 */
	--dom-border: #e2e8f0;   /* slate-200 */
}

/* Grid utilities */
.dom-grid {
	display: grid;
	gap: 24px;
}

.dom-grid-3 {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.dom-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.dom-grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Card component */
.dom-card {
	border: 1px solid var(--dom-border);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	background: var(--dom-bg);
}

/* Badge component */
.dom-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 500;
	background: var(--dom-accent);
	color: #ffffff;
}

.dom-badge--secondary {
	background: var(--dom-accent-2);
}

.dom-badge--muted {
	background: var(--dom-muted);
	color: var(--dom-text);
}

/* Responsive image */
.dom-img {
	object-fit: cover;
	width: 100%;
	height: auto;
	display: block;
}

/* Masonry-like grid using CSS columns */
.dom-masonry {
	column-count: 1;
	column-gap: 24px;
}

@media (min-width: 640px) {
	.dom-masonry {
		column-count: 2;
	}
}

@media (min-width: 1024px) {
	.dom-masonry {
		column-count: 3;
	}
}

.dom-masonry > * {
	break-inside: avoid;
	margin-bottom: 24px;
}

/* Before/After gallery styles */
.dom-before-after {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 2rem 0;
}

.dom-before-after__item {
	position: relative;
}

.dom-before-after__label {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(0, 0, 0, 0.7);
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	z-index: 1;
}

.dom-before-after__item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

/* Project card specific styles */
.dom-project-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.dom-project-card__content {
	padding: 1.5rem;
}

.dom-project-card__title {
	margin: 0 0 0.75rem 0;
	font-size: 1.25rem;
	font-weight: 600;
}

.dom-project-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	color: var(--dom-muted);
	font-size: 0.875rem;
}

.dom-project-card__excerpt {
	margin-bottom: 1rem;
	color: var(--dom-text);
}

.dom-project-card__link {
	display: inline-block;
	color: var(--dom-accent);
	text-decoration: none;
	font-weight: 500;
}

.dom-project-card__link:hover {
	text-decoration: underline;
}

/* Filter bar */
.dom-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--dom-border);
}

.dom-filter-bar__link {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	text-decoration: none;
	color: var(--dom-text);
	background: var(--dom-bg);
	border: 1px solid var(--dom-border);
	transition: all 0.2s;
}

.dom-filter-bar__link:hover,
.dom-filter-bar__link--active {
	background: var(--dom-accent);
	color: #ffffff;
	border-color: var(--dom-accent);
}

/* Rating stars */
.dom-rating {
	display: inline-flex;
	gap: 2px;
}

.dom-rating__star {
	color: var(--dom-accent-2);
	font-size: 1.125rem;
}

/* Hero section */
.dom-hero {
	position: relative;
	width: 100%;
	margin-bottom: 2rem;
}

.dom-hero__image {
	width: 100%;
	height: auto;
	display: block;
}

/* CTA section */
.dom-cta {
	margin: 3rem 0;
	padding: 2rem;
	text-align: center;
	background: var(--dom-bg);
	border: 1px solid var(--dom-border);
	border-radius: 12px;
}

.dom-cta__button {
	display: inline-block;
	padding: 0.75rem 2rem;
	background: var(--dom-accent);
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	transition: background 0.2s;
}

.dom-cta__button:hover {
	background: #0284c7; /* sky-600 */
	color: #ffffff;
}

