/* Premium Tailwind-aligned UI layer for Shri Ram Jewellers */

:root {
	--srj-black: #fdf1cd;
	--srj-gold-1: #e1cb9a;
	--srj-gold-2: #bd9a5f;
	--srj-white: #ffffff;
	--srj-success: #3fd07d;
	--srj-danger: #ff6b6b;
}

html {
	margin: 0;
	padding: 0;
}

body {
	background: var(--srj-black);
	color: #1f1f1f;
	margin: 0;
	padding-bottom: 0;
}

/* No stray strip of page background below the footer */
#colophon.site-footer {
	margin-bottom: 0;
}

.srj-glass {
	background: rgba(255, 255, 255, 0.42);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(189, 154, 95, 0.35);
	box-shadow: 0 8px 22px rgba(189, 154, 95, 0.2);
}

.srj-gold-gradient {
	background: linear-gradient(135deg, var(--srj-gold-1), var(--srj-gold-2));
}

.srj-gold-text {
	background: linear-gradient(90deg, #caa86f, #e9d6ad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.srj-luxury-card {
	border-radius: 1rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.srj-luxury-card:hover {
	transform: translateY(-4px);
	border-color: rgba(189, 154, 95, 0.45);
	box-shadow: 0 16px 34px rgba(189, 154, 95, 0.24);
}

.srj-pricing-hero {
	background: radial-gradient(circle at top right, rgba(225, 203, 154, 0.35), transparent 40%), #fdf1cd;
}

.srj-price-up {
	color: var(--srj-success);
}

.srj-price-down {
	color: var(--srj-danger);
}

.srj-sparkline svg {
	width: 100%;
	height: 40px;
}

.srj-sparkline polyline {
	fill: none;
	stroke: #b7904c;
	stroke-width: 2;
}

.srj-ripple {
	position: relative;
	overflow: hidden;
}

/* Elementor: let full-width sections use the viewport (theme .entry-content is often constrained). */
.srj-elementor-page .entry-content,
body.elementor-page .site-main .entry-content {
	max-width: none;
}

.srj-ripple::after {
	content: "";
	position: absolute;
	left: var(--x, 50%);
	top: var(--y, 50%);
	width: 0;
	height: 0;
	background: rgba(189, 154, 95, 0.25);
	border-radius: 9999px;
	transform: translate(-50%, -50%);
	transition: width 0.45s ease, height 0.45s ease, opacity 0.45s ease;
	opacity: 0;
	pointer-events: none;
}

.srj-ripple:active::after {
	width: 220px;
	height: 220px;
	opacity: 1;
	transition: 0s;
}

[data-srj-animate] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-srj-animate].is-visible {
	opacity: 1;
	transform: translateY(0);
}

.srj-instagram-grid .srj-ig-cell {
	border-radius: 0.75rem;
	overflow: hidden;
	min-height: 0;
}

.srj-instagram-grid .srj-ig-img img {
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 0.75rem;
	width: 100%;
	height: auto;
	display: block;
}

.srj-instagram-grid .srj-ig-from-post a {
	display: block;
	line-height: 0;
}

.srj-instagram-grid .srj-ig-embed {
	aspect-ratio: 1/1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.35);
}

.srj-instagram-grid .srj-ig-embed iframe {
	width: 100% !important;
	max-width: 100%;
	min-height: 280px;
	border: 0;
	border-radius: 0.75rem;
}

.srj-instagram-grid .srj-ig-link {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1/1;
	background: rgba(255, 255, 255, 0.35);
	padding: 1rem;
	text-align: center;
}

.srj-instagram-grid .srj-instagram-fallback-link {
	font-weight: 600;
	text-decoration: underline;
	color: inherit;
}

/* Legacy: direct <img> in grid (if any) */
.srj-instagram-grid > img {
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 0.75rem;
}

.srj-sticky-buy {
	display: none;
}

@media (max-width: 768px) {
	.srj-sticky-buy {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 9999;
		background: #f8ebc5;
		padding: 0.6rem;
		gap: 0.5rem;
		border-top: 1px solid rgba(189, 154, 95, 0.35);
	}

	.srj-sticky-buy a,
	.srj-sticky-buy button {
		flex: 1;
		border: 0;
		border-radius: 0.65rem;
		font-weight: 600;
		padding: 0.65rem 0.6rem;
		text-align: center;
		text-decoration: none;
	}
}

/* Footer Builder → “Keep footer at bottom on short pages” + remove body bg strip under footer */
body.srj-sticky-footer {
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	padding-bottom: 0;
	display: flex;
	flex-direction: column;
}

body.admin-bar.srj-sticky-footer {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar.srj-sticky-footer {
		min-height: calc(100vh - 46px);
		min-height: calc(100dvh - 46px);
	}
}

body.srj-sticky-footer #page {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	width: 100%;
	box-sizing: border-box;
}

body.srj-sticky-footer #colophon.site-footer {
	margin-top: auto;
	flex-shrink: 0;
}
