/* CozyCrochetStitches brand layer — typography, color tokens, subtle motion */

:root {
	--ccs-primary: #b5613f;
	--ccs-primary-dark: #8f4a2f;
	--ccs-accent: #c89b3c;
	--ccs-bg: #faf5ef;
	--ccs-surface: #ffffff;
	--ccs-text: #2b2420;
	--ccs-text-secondary: #6e6259;
	--ccs-border: #e8ddd1;
	--ccs-font-heading: "Fraunces", Georgia, "Times New Roman", serif;
	--ccs-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
	background: var(--ccs-bg);
	color: var(--ccs-text);
	font-family: var(--ccs-font-body);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.7;
}

.site-header {
	background: var(--ccs-bg);
	border-bottom: 1px solid var(--ccs-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header .wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 22px 24px;
}

.nav-primary .wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.nav-primary ul.genesis-nav-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-primary .menu-item {
	list-style: none;
}

.nav-primary .genesis-nav-menu a {
	display: inline-block;
	padding: 14px 16px;
	color: var(--ccs-text);
	font-family: var(--ccs-font-body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	position: relative;
	transition: color 0.2s ease;
}

.nav-primary .genesis-nav-menu a span {
	position: relative;
}

.nav-primary .genesis-nav-menu a span::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -4px;
	height: 1px;
	background: var(--ccs-primary);
	transition: right 0.25s ease;
}

.nav-primary .genesis-nav-menu a:hover,
.nav-primary .genesis-nav-menu a.aria-current,
.nav-primary .genesis-nav-menu a[aria-current="page"] {
	color: var(--ccs-primary);
	opacity: 1;
}

.nav-primary .genesis-nav-menu a:hover span::after,
.nav-primary .genesis-nav-menu a[aria-current="page"] span::after {
	right: 0;
}

.site-header.ccs-scrolled {
	box-shadow: 0 2px 16px rgba(43, 36, 32, 0.08);
}

.site-title,
.site-title a {
	font-family: var(--ccs-font-heading);
	font-weight: 600;
	font-size: 28px;
	letter-spacing: 0.01em;
	color: var(--ccs-text);
}

.site-description {
	font-family: var(--ccs-font-body);
	color: var(--ccs-text-secondary);
	font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ccs-font-heading);
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	color: var(--ccs-text);
}

a {
	color: var(--ccs-primary);
}

a:hover,
a:focus {
	opacity: 1;
	color: var(--ccs-primary-dark);
}

.entry-title a {
	color: var(--ccs-text);
	transition: color 0.2s ease;
}

.entry-title a:hover {
	color: var(--ccs-primary);
}

.site-footer {
	background: var(--ccs-text);
	color: #f3ece3;
}

.site-footer a {
	color: #f3ece3;
	opacity: 0.85;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.site-footer a:hover {
	opacity: 1;
	text-decoration: underline;
}

.site-footer .wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 24px 28px;
}

.ccs-footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(243, 236, 227, 0.15);
}

.ccs-footer-brand {
	font-family: var(--ccs-font-heading);
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 8px;
}

.ccs-footer-col h3 {
	font-family: var(--ccs-font-body);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #f3ece3;
	opacity: 0.7;
	margin: 0 0 14px;
}

.ccs-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ccs-footer-col li {
	margin-bottom: 10px;
}

.ccs-footer-bottom {
	padding-top: 20px;
	font-size: 13px;
	opacity: 0.7;
}

.ccs-footer-bottom p {
	margin: 0;
}

@media (max-width: 700px) {
	.ccs-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

/* Cards, buttons, images: subtle premium motion */
.entry-image img,
.entry img,
.wp-block-image img {
	transition: transform 0.35s ease;
}

a:hover .entry-image img,
a:hover.entry-image img {
	transform: scale(1.03);
}

.button,
button,
input[type="submit"],
.wp-block-button__link {
	border-radius: 3px;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(43, 36, 32, 0.15);
}

.site-header {
	transition: box-shadow 0.25s ease;
}

.site-header.is-sticky {
	box-shadow: 0 2px 12px rgba(43, 36, 32, 0.08);
}

/* Animated hero */
.ccs-hero {
	position: relative;
	overflow: hidden;
	min-height: 620px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 8px;
}

.ccs-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	animation: ccsHeroFade 18s infinite, ccsHeroZoom 18s ease-in-out infinite alternate;
	will-change: opacity, transform;
}

.ccs-hero-bg:nth-child(2) {
	animation-delay: 9s, 9s;
}

.ccs-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(43, 36, 32, 0.6) 0%, rgba(43, 36, 32, 0.38) 45%, rgba(43, 36, 32, 0.68) 100%);
}

.ccs-hero-content {
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin: 0 auto;
	padding: 64px 24px;
	text-align: center;
}

.ccs-hero-eyebrow {
	font-family: var(--ccs-font-heading);
	font-style: italic;
	color: #f0dfce;
	margin: 0 0 12px;
}

.ccs-hero-title {
	font-family: var(--ccs-font-heading);
	font-weight: 600;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.1;
	color: #faf5ef;
	margin: 0 0 18px;
}

.ccs-hero-sub {
	color: rgba(250, 245, 239, 0.92);
	font-size: 17px;
	max-width: 560px;
	margin: 0 auto 28px;
}

.ccs-hero-search {
	display: flex;
	max-width: 480px;
	margin: 0 auto;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	border-radius: 3px;
	overflow: hidden;
}

.ccs-hero-search-field {
	flex: 1;
	border: none;
	padding: 16px 18px;
	font-size: 15px;
	font-family: var(--ccs-font-body);
	background: #faf5ef;
	color: var(--ccs-text);
}

.ccs-hero-search-field:focus {
	outline: 2px solid var(--ccs-accent);
	outline-offset: -2px;
}

.ccs-hero-search-submit {
	border: none;
	padding: 16px 26px;
	background: var(--ccs-text);
	color: #faf5ef;
	font-family: var(--ccs-font-body);
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ccs-hero-search-submit:hover {
	background: var(--ccs-primary);
}

@keyframes ccsHeroFade {
	0% { opacity: 0; }
	6% { opacity: 1; }
	44% { opacity: 1; }
	50% { opacity: 0; }
	100% { opacity: 0; }
}

@keyframes ccsHeroZoom {
	0% { transform: scale(1); }
	100% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
	.ccs-hero-bg {
		animation: none !important;
		opacity: 1 !important;
	}

	.ccs-hero-bg:nth-child(2) {
		opacity: 0 !important;
	}
}

@media (max-width: 700px) {
	.ccs-hero {
		min-height: 520px;
	}
}

/* Category photography */
.ccs-category-photo {
	margin: 0 0 20px;
}

.ccs-category-photo img {
	width: 100%;
	height: 340px;
	object-fit: cover;
	border-radius: 4px;
	filter: saturate(0.92) sepia(0.05);
}

.ccs-faq-item {
	border-bottom: 1px solid var(--ccs-border);
	padding: 18px 0;
}

.ccs-faq-item summary {
	cursor: pointer;
	display: block;
	font-family: var(--ccs-font-heading);
	font-size: 19px;
	font-weight: 600;
	color: var(--ccs-text);
	list-style: none;
	position: relative;
	padding-right: 28px;
}

.ccs-faq-item summary::-webkit-details-marker {
	display: none;
}

.ccs-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0;
	font-family: var(--ccs-font-body);
	font-size: 20px;
	color: var(--ccs-primary);
	transition: transform 0.2s ease;
}

.ccs-faq-item[open] summary::after {
	transform: rotate(45deg);
}

.ccs-faq-item p {
	margin: 12px 0 0;
	color: var(--ccs-text-secondary);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
