/**
 * SITAARA — Craft Values widget styles.
 *
 * Everything is scoped under .sitaara-values; no selector here touches a
 * bare element (body, h1-h6, p, a, img) so this file cannot leak into the
 * rest of the theme. Colors/spacing are mostly overridden per-instance by
 * Elementor's inline {{WRAPPER}} rules (see class-craft-values.php) — the
 * values below are just the widget's own sensible defaults plus layout
 * mechanics Elementor's simple property selectors can't express (the
 * quatrefoil icon frame, the grid/divider system, the reveal keyframes).
 */

.sitaara-values {
	--sv-ivory: #FAF5ED;
	--sv-burgundy: #8E1230;
	--sv-plum: #321528;
	--sv-text: #181515;
	--sv-gold: #B99A69;
	--sv-sand: #E8D9C7;

	position: relative;
	background-color: var(--sv-ivory);
	overflow: hidden;
}

.sitaara-values__inner {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 48px;
	row-gap: 56px;
	z-index: 1;
}

/* Fine vertical dividers between columns — drawn on the grid container via
   background lines rather than per-item borders, so the line sits exactly
   between two columns regardless of column-gap. */
.sitaara-values__inner--dividers > .sitaara-value:not(:first-child) {
	position: relative;
}

.sitaara-values__inner--dividers > .sitaara-value:not(:first-child)::before {
	content: '';
	position: absolute;
	top: 0.35em;
	bottom: 0.35em;
	left: calc(-1 * (var(--sv-column-gap, 48px) / 2));
	width: var(--sv-divider-width, 1px);
	background-color: var(--sv-divider-color, var(--sv-gold));
	opacity: var(--sv-divider-opacity, 0.6);
}

.sitaara-value {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sitaara-value__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
	width: 100%;
}

/* Icon frame: a subtle quatrefoil/arch silhouette via a rotated-square
   clip, not a plain circle — kept small per "do not use huge circular
   icon containers". */
.sitaara-value__icon {
	--sv-icon-transition: transform 0.35s ease, border-color 0.35s ease;

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 22px;
	border: 1px solid var(--sv-gold);
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	background-color: var(--sv-ivory);
	transition: var(--sv-icon-transition);
}

.sitaara-value__icon::before {
	content: '';
	position: absolute;
	inset: 6px;
	border: 1px solid currentColor;
	opacity: 0.15;
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	transform: rotate(45deg);
	pointer-events: none;
}

.sitaara-value__icon i,
.sitaara-value__icon svg {
	position: relative;
	z-index: 1;
	color: var(--sv-burgundy);
	font-size: 26px;
	line-height: 1;
}

.sitaara-value__eyebrow {
	display: block;
	color: var(--sv-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.sitaara-value__title {
	color: var(--sv-burgundy);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.3px;
	margin: 0 0 18px;
	transition: color 0.35s ease;
}

.sitaara-value__divider {
	display: block;
	width: 1px;
	height: 32px;
	background-color: var(--sv-gold);
	opacity: 0.6;
	margin: 0 0 18px;
}

.sitaara-value__description {
	color: var(--sv-text);
	font-size: 15px;
	line-height: 1.7;
	max-width: 280px;
	margin: 0 auto;
}

/* Hover: icon lifts slightly + its border turns burgundy, heading shifts
   toward burgundy-on-burgundy (a deeper plum) — subtle, no scale/rotate. */
.sitaara-values--hover .sitaara-value:hover .sitaara-value__icon,
.sitaara-values--hover .sitaara-value__link:hover .sitaara-value__icon,
.sitaara-values--hover .sitaara-value__link:focus-visible .sitaara-value__icon {
	transform: translateY(-4px);
	border-color: var(--sv-burgundy);
}

.sitaara-values--hover .sitaara-value:hover .sitaara-value__title,
.sitaara-values--hover .sitaara-value__link:hover .sitaara-value__title,
.sitaara-values--hover .sitaara-value__link:focus-visible .sitaara-value__title {
	color: var(--sv-plum);
}

.sitaara-value__link:focus-visible {
	outline: 1px solid var(--sv-gold);
	outline-offset: 6px;
}

/* Decorative edge motifs — absolutely positioned, aria-hidden, never
   affecting document flow or layout width. */
.sitaara-values__motif {
	position: absolute;
	top: 50%;
	width: 64px;
	height: 64px;
	color: var(--sv-gold);
	opacity: 0.35;
	transform: translateY(-50%);
	pointer-events: none;
	z-index: 0;
}

.sitaara-values__motif svg {
	width: 100%;
	height: 100%;
}

.sitaara-values__motif--left {
	left: 12px;
}

.sitaara-values__motif--right {
	right: 12px;
}

/* Scroll-reveal: craft-values.js toggles .is-visible per item once it
   enters the viewport. Items start at their final state so a page where
   JS never runs (blocked, error) still shows everything immediately. */
.sitaara-values--reveal .sitaara-value {
	opacity: 1;
	transform: none;
}

.sitaara-values--reveal.sitaara-values--js-armed .sitaara-value {
	opacity: 0;
	transform: translateY(15px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.sitaara-values--reveal.sitaara-values--js-armed .sitaara-value.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.sitaara-value__icon,
	.sitaara-value__title,
	.sitaara-values--reveal.sitaara-values--js-armed .sitaara-value {
		transition: none !important;
		transform: none !important;
	}

	.sitaara-values--reveal.sitaara-values--js-armed .sitaara-value {
		opacity: 1 !important;
	}
}

/* Tablet: 2 columns x 2 rows. Vertical dividers between columns no longer
   read cleanly against a 2-column wrap, so the left-column divider (::before
   on 3rd item, aligned against 1st) is suppressed; a horizontal rule
   between rows takes over further below when dividers are enabled. */
@media (max-width: 1024px) {
	.sitaara-values__inner {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 48px;
	}

	.sitaara-values__inner--dividers > .sitaara-value:nth-child(3)::before,
	.sitaara-values__inner--dividers > .sitaara-value:nth-child(2n+1):not(:first-child)::before {
		display: none;
	}

	.sitaara-values__motif {
		width: 44px;
		height: 44px;
		opacity: 0.25;
	}
}

/* Mobile: single column, stacked. No vertical dividers (overridden to a
   horizontal rule between items instead when enabled); no motifs, since
   there is no side margin left for them once the layout is edge-to-edge. */
@media (max-width: 640px) {
	.sitaara-values {
		overflow: hidden;
	}

	.sitaara-values__inner {
		grid-template-columns: 1fr;
		row-gap: 40px;
		max-width: 100%;
	}

	.sitaara-values__inner--dividers > .sitaara-value:not(:first-child)::before {
		display: none;
	}

	.sitaara-values__inner--dividers > .sitaara-value:not(:first-child) {
		position: relative;
		padding-top: 40px;
	}

	.sitaara-values__inner--dividers > .sitaara-value:not(:first-child)::after {
		content: '';
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 48px;
		height: var(--sv-divider-width, 1px);
		background-color: var(--sv-divider-color, var(--sv-gold));
		opacity: var(--sv-divider-opacity, 0.6);
	}

	.sitaara-value__description {
		max-width: 100%;
	}

	.sitaara-values__motif {
		display: none;
	}
}
