/*
Theme Name: 1800 Shutters Child
Theme URI: https://1800shutters.com.au/
Description: Site-specific presentation and theme integrations for 1800shutters.com.au. Parent theme: Hello Elementor.
Author: imexpert
Template: hello-elementor
Version: 1.1.0
Text Domain: 1800shutters-child
*/

/* Single posts ------------------------------------------------------------ */
body.single-post .shutters-post-featured-image {
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
	aspect-ratio: 2 / 1;
	max-height: 460px;
	overflow: hidden;
}

body.single-post .shutters-post-featured-image__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Category archives ------------------------------------------------------- */
.shutters-category-archive {
	padding: 0 0 4rem;
}

.shutters-category-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.shutters-category-container--narrow {
	width: min(900px, calc(100% - 40px));
}

.shutters-category-header {
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.shutters-category-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.08;
}

.shutters-category-intro {
	margin-top: 1rem;
	font-size: 1.08rem;
	line-height: 1.7;
}

.shutters-category-intro > :first-child,
.shutters-category-prose > :first-child {
	margin-top: 0;
}

.shutters-category-intro > :last-child,
.shutters-category-prose > :last-child {
	margin-bottom: 0;
}

.shutters-category-listing {
	padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.shutters-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
	align-items: stretch;
}

.shutters-category-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.shutters-category-card__image {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.04);
}

.shutters-category-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.82);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.shutters-category-card__badge--promotion {
	background: #78be20;
	color: #111;
}

.shutters-category-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.shutters-category-card:hover .shutters-category-card__image img {
	transform: scale(1.025);
}

.shutters-category-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: clamp(1.15rem, 2vw, 1.5rem);
}

.shutters-category-card__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	line-height: 1.25;
}

.shutters-category-card__title a {
	color: inherit;
	text-decoration: none;
}

.shutters-category-card__excerpt {
	margin: 0 0 1.2rem;
	line-height: 1.65;
}

.shutters-category-card__link {
	margin-top: auto;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.shutters-category-pagination {
	margin-top: clamp(2rem, 4vw, 3.5rem);
}

.shutters-category-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

.shutters-category-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.4rem 0.7rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	text-decoration: none;
}

.shutters-category-pagination .page-numbers.current {
	font-weight: 700;
}

.shutters-category-content {
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	background: rgba(0, 0, 0, 0.025);
}

.shutters-category-prose {
	font-size: 1.05rem;
	line-height: 1.75;
}

.shutters-category-prose h2,
.shutters-category-prose h3 {
	margin-top: 1.7em;
	line-height: 1.25;
}

@media (max-width: 900px) {
	body.single-post .shutters-post-featured-image {
		aspect-ratio: 16 / 9;
		max-height: 360px;
	}

	.shutters-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.shutters-category-container,
	.shutters-category-container--narrow {
		width: min(100% - 28px, 1180px);
	}

	.shutters-category-grid {
		grid-template-columns: 1fr;
	}

	.shutters-category-header {
		padding-top: 2.25rem;
	}
}
