/* ==========================================================================
   Spath Jewelers - custom widget styles
   Paste this entire file into Punchmark Site Manager under
   Design > Theme Settings > Global CSS. Do not paste it into the page editor.

   Contents:
   1. Reusable category / brand intro band  (.sj-cat-intro)
   ========================================================================== */


/* ==========================================================================
   1. CATEGORY / BRAND INTRO BAND
   Sits between the category or brand title and the "Showing X of XX" row.
   Reusable on any category, brand, or collection page. To recolor a single
   instance, add a modifier class alongside .sj-cat-intro and override the
   custom properties (see the example at the end of this section).
   ========================================================================== */

.sj-cat-intro {
	--sj-primary: #906d58;
	--sj-primary-dark: #75563f;
	--sj-secondary: #9d0009;
	--sj-bg: #eeeeee;
	--sj-ink: #2b2b2b;
	--sj-ink-muted: #5a5450;
	--sj-rule: rgba(43, 43, 43, 0.14);

	/* Horizontal alignment. --sj-max mirrors the Bootstrap 5 .container
	   max-width at each breakpoint (set in the media queries below) and
	   --sj-gutter mirrors its 0.75rem side padding, so the intro copy lines
	   up with the page H1 above it. If the theme uses a custom container
	   width, override --sj-max. To nudge alignment by a few pixels without
	   touching the container math, use --sj-align-nudge. */
	--sj-max: 100%;
	--sj-gutter: 0.75rem;
	--sj-align-nudge: 0px;

	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	margin-top: 0.5rem;
	margin-bottom: 2rem;
	padding: 3rem 0 0;
	background-color: var(--sj-bg);
	color: var(--sj-ink);
	font-family: europa, "Helvetica Neue", Helvetica, Arial, sans-serif;
	overflow: hidden;
}

.sj-cat-intro__inner {
	width: 100%;
	max-width: var(--sj-max);
	margin: 0 auto;
	padding-left: calc(var(--sj-gutter) + var(--sj-align-nudge));
	padding-right: var(--sj-gutter);
}

/* Bootstrap 5 .container breakpoints, mirrored so the widget's left edge
   tracks the page title at every screen size. */

@media (min-width: 576px) {
	.sj-cat-intro { --sj-max: 540px; }
}

@media (min-width: 768px) {
	.sj-cat-intro { --sj-max: 720px; }
}

@media (min-width: 992px) {
	.sj-cat-intro { --sj-max: 960px; }
}

@media (min-width: 1200px) {
	.sj-cat-intro { --sj-max: 1140px; }
}

@media (min-width: 1400px) {
	.sj-cat-intro { --sj-max: 1320px; }
}

/* ---------- Eyebrow ---------- */

.sj-cat-intro__eyebrow {
	margin: 0 0 0.85rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sj-secondary);
}

/* The accent rule sits under the eyebrow when the widget has no heading of
   its own, which is the default: the category/brand template already renders
   the page H1 above this band. When .sj-cat-intro__title IS used, the rule
   moves to the title instead so the two never stack. */

.sj-cat-intro__eyebrow::after {
	content: "";
	display: block;
	width: 68px;
	height: 2px;
	margin-top: 0.85rem;
	background-color: var(--sj-primary);
}

.sj-cat-intro__title ~ .sj-cat-intro__copy .sj-cat-intro__eyebrow::after,
.sj-cat-intro__inner:has(.sj-cat-intro__title) .sj-cat-intro__eyebrow::after {
	display: none;
}

/* ---------- Optional title ----------
   Only use this when a page genuinely needs a second heading inside the band,
   for example a landing page with no template H1. On standard category and
   brand pages, omit it so the H1 is not duplicated. */

.sj-cat-intro__title {
	margin: 0 0 1.1rem;
	font-family: europa, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: clamp(1.6rem, 3.2vw, 2.35rem);
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: 0.01em;
	color: var(--sj-ink);
}

.sj-cat-intro__title::after {
	content: "";
	display: block;
	width: 68px;
	height: 2px;
	margin-top: 1rem;
	background-color: var(--sj-primary);
}

/* ---------- Body copy ---------- */

.sj-cat-intro__copy {
	max-width: 78ch;
}

.sj-cat-intro__copy p {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.72;
	color: var(--sj-ink);
}

.sj-cat-intro__copy p:last-child {
	margin-bottom: 0;
}

/* ---------- Button row ---------- */

.sj-cat-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.75rem;
}

.sj-cat-intro__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.7rem 1.5rem;
	border: 1px solid var(--sj-primary);
	border-radius: 2px;
	background-color: transparent;
	color: var(--sj-primary-dark);
	font-size: 0.83rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sj-cat-intro__btn:hover,
.sj-cat-intro__btn:focus {
	background-color: var(--sj-primary);
	border-color: var(--sj-primary);
	color: #ffffff;
	text-decoration: none;
}

.sj-cat-intro__btn:focus-visible {
	outline: 3px solid var(--sj-secondary);
	outline-offset: 2px;
}

.sj-cat-intro__btn--primary {
	background-color: var(--sj-primary);
	border-color: var(--sj-primary);
	color: #ffffff;
}

.sj-cat-intro__btn--primary:hover,
.sj-cat-intro__btn--primary:focus {
	background-color: var(--sj-primary-dark);
	border-color: var(--sj-primary-dark);
	color: #ffffff;
}

.sj-cat-intro__btn--accent {
	background-color: var(--sj-secondary);
	border-color: var(--sj-secondary);
	color: #ffffff;
}

.sj-cat-intro__btn--accent:hover,
.sj-cat-intro__btn--accent:focus {
	background-color: #7d0007;
	border-color: #7d0007;
	color: #ffffff;
}

.sj-cat-intro__btn--ghost {
	border-color: rgba(43, 43, 43, 0.35);
	color: var(--sj-ink);
}

.sj-cat-intro__btn--ghost:hover,
.sj-cat-intro__btn--ghost:focus {
	background-color: var(--sj-ink);
	border-color: var(--sj-ink);
	color: #ffffff;
}

/* ---------- Trust / highlight strip ---------- */

.sj-cat-intro__strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 1.5rem 0;
	border-top: 1px solid var(--sj-rule);
}

.sj-cat-intro__strip-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.35rem 1.35rem;
	border-left: 1px solid var(--sj-rule);
}

.sj-cat-intro__strip-item:first-child {
	padding-left: 0;
	border-left: 0;
}

.sj-cat-intro__strip-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--sj-primary);
}

.sj-cat-intro__strip-icon svg {
	width: 26px;
	height: 26px;
}

.sj-cat-intro__strip-text {
	display: block;
	line-height: 1.4;
}

.sj-cat-intro__strip-text strong {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--sj-ink);
}

.sj-cat-intro__strip-text em {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.8rem;
	font-style: normal;
	color: var(--sj-ink-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
	.sj-cat-intro {
		padding-top: 2.25rem;
	}

	.sj-cat-intro__strip {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 1.5rem;
	}

	.sj-cat-intro__strip-item:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}
}

@media (max-width: 575.98px) {
	.sj-cat-intro {
		--sj-gutter: 1.1rem;
		padding: 1.85rem 0 0;
		margin-bottom: 1.5rem;
	}

	.sj-cat-intro__copy p {
		font-size: 0.95rem;
		line-height: 1.68;
	}

	.sj-cat-intro__actions {
		gap: 0.55rem;
	}

	.sj-cat-intro__btn {
		flex: 1 1 100%;
	}

	.sj-cat-intro__strip {
		grid-template-columns: 1fr;
		row-gap: 1.15rem;
		margin-top: 2rem;
	}

	.sj-cat-intro__strip-item {
		padding-left: 0;
		border-left: 0;
	}
}

/* ---------- Optional per-page recolor example ----------
   Add the modifier class in the widget HTML next to .sj-cat-intro:
   <div class="sj-cat-intro sj-cat-intro--bridal">

.sj-cat-intro--bridal {
	--sj-primary: #9d0009;
	--sj-primary-dark: #7d0007;
	--sj-bg: #f6f4f2;
}
--------------------------------------------------------- */


/* ==========================================================================
   2. FAQ ACCORDION SECTION
   Reusable on any brand, category, or service page. Uses native
   <details>/<summary>, so no JavaScript is required and it stays accessible
   and keyboard operable with no extra markup.
   Pair with FAQPage JSON-LD in the page meta schema field.
   ========================================================================== */

.sj-faq {
	--sj-primary: #906d58;
	--sj-primary-dark: #75563f;
	--sj-secondary: #9d0009;
	--sj-bg: #eeeeee;
	--sj-ink: #2b2b2b;
	--sj-ink-muted: #5a5450;
	--sj-rule: rgba(43, 43, 43, 0.14);
	--sj-max: 100%;
	--sj-gutter: 0.75rem;
	--sj-align-nudge: 0px;

	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin: 2.5rem -50vw 2.5rem;
	padding: 3rem 0;
	background-color: var(--sj-bg);
	color: var(--sj-ink);
	font-family: europa, "Helvetica Neue", Helvetica, Arial, sans-serif;
	overflow: hidden;
}

.sj-faq--plain {
	background-color: transparent;
}

.sj-faq__inner {
	width: 100%;
	max-width: var(--sj-max);
	margin: 0 auto;
	padding-left: calc(var(--sj-gutter) + var(--sj-align-nudge));
	padding-right: var(--sj-gutter);
}

@media (min-width: 576px) {
	.sj-faq { --sj-max: 540px; }
}

@media (min-width: 768px) {
	.sj-faq { --sj-max: 720px; }
}

@media (min-width: 992px) {
	.sj-faq { --sj-max: 960px; }
}

@media (min-width: 1200px) {
	.sj-faq { --sj-max: 1140px; }
}

@media (min-width: 1400px) {
	.sj-faq { --sj-max: 1320px; }
}

.sj-faq__eyebrow {
	margin: 0 0 0.6rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sj-secondary);
}

.sj-faq__title {
	margin: 0 0 1.75rem;
	font-size: clamp(1.45rem, 2.8vw, 2rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--sj-ink);
}

.sj-faq__item {
	border-bottom: 1px solid var(--sj-rule);
}

.sj-faq__item:first-of-type {
	border-top: 1px solid var(--sj-rule);
}

.sj-faq__q {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 0;
	cursor: pointer;
	list-style: none;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--sj-ink);
	transition: color 0.16s ease;
}

.sj-faq__q::-webkit-details-marker {
	display: none;
}

.sj-faq__q:hover {
	color: var(--sj-primary-dark);
}

.sj-faq__q:focus-visible {
	outline: 3px solid var(--sj-secondary);
	outline-offset: 3px;
}

.sj-faq__q::after {
	content: "";
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	margin-top: 0.4rem;
	border-right: 2px solid var(--sj-primary);
	border-bottom: 2px solid var(--sj-primary);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.sj-faq__item[open] > .sj-faq__q::after {
	transform: rotate(-135deg);
	margin-top: 0.7rem;
}

.sj-faq__a {
	padding: 0 0 1.35rem;
	max-width: 72ch;
}

.sj-faq__a p {
	margin: 0 0 0.85rem;
	font-size: 0.97rem;
	line-height: 1.72;
	color: var(--sj-ink);
}

.sj-faq__a p:last-child {
	margin-bottom: 0;
}

.sj-faq__a a {
	color: var(--sj-primary-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sj-faq__a a:hover,
.sj-faq__a a:focus {
	color: var(--sj-secondary);
}

@media (max-width: 575.98px) {
	.sj-faq {
		--sj-gutter: 1.1rem;
		padding: 2rem 0;
		margin-top: 1.75rem;
		margin-bottom: 1.75rem;
	}

	.sj-faq__q {
		font-size: 0.96rem;
	}

	.sj-faq__a p {
		font-size: 0.93rem;
	}
}
