
:root {
	color-scheme: light;
	--color-ink: #342a24;
	--color-muted: #706158;
	--color-paper: #f7f1e7;
	--color-surface: #fffaf0;
	--color-sandal: #ead8bb;
	--color-dawn: #ffe9b8;
	--color-temple: #93452c;
	--color-temple-dark: #693a28;
	--glass-surface: rgb(255 250 238 / 78%);
	--glass-border: rgb(255 255 255 / 78%);
	--shadow-glossy: 0 10px 28px rgb(86 58 34 / 12%);
	--content-width: 72rem;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
	margin: 0;
	background-color: var(--color-paper);
	background-image:
		radial-gradient(ellipse at 12% 8%, rgb(255 218 153 / 32%), transparent 36%),
		radial-gradient(ellipse at 92% 24%, rgb(247 196 173 / 26%), transparent 35%),
		linear-gradient(145deg, var(--color-paper), #fbf6ee 52%, #f3e7d8);
	color: var(--color-ink);
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.6;
}

a {
	color: var(--color-temple-dark);
}

main {
	flex: 1 0 auto;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid #e4b94f;
	outline-offset: 3px;
}

.header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	padding: 0.65rem clamp(1rem, 4vw, 3rem);
	color: var(--color-ink);
	background: var(--glass-surface);
	border-bottom: 1px solid var(--glass-border);
	box-shadow: var(--shadow-glossy);
	-webkit-backdrop-filter: blur(16px) saturate(135%);
	backdrop-filter: blur(16px) saturate(135%);
}

.brand-group {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: wrap;
	min-width: 0;
}

.logo {
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
	color: inherit;
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 700;
	text-decoration: none;
}

.logo-anniversary {
	display: inline-flex;
	padding: 0.2rem 0.5rem;
	border: 1px solid rgb(147 69 44 / 18%);
	border-radius: 999px;
	background: rgb(255 233 184 / 64%);
	color: var(--color-temple);
	font-family: Arial, sans-serif;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.nav a {
	padding: 0.45rem 0.75rem;
	border-radius: 4px;
	color: var(--color-temple-dark);
	font-family: Arial, sans-serif;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease;
}

.nav a[aria-current="page"],
.nav a:hover {
	background: var(--color-dawn);
	color: var(--color-temple-dark);
}

.language-switch {
	display: flex;
	gap: 0.2rem;
	padding: 0.22rem;
	border: 1px solid rgb(105 58 40 / 16%);
	border-radius: 999px;
	background: rgb(255 250 238 / 72%);
}

.language-switch button {
	min-width: 2.6rem;
	min-height: 2.1rem;
	padding: 0.25rem 0.6rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--color-temple-dark);
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 0.86rem;
	font-weight: 700;
	transition: color 160ms ease, background-color 160ms ease;
}

.language-switch button.is-active,
.language-switch button:hover {
	background: var(--color-temple);
	color: white;
}

.slider {
	position: relative;
	width: 100%;
	max-height: 38rem;
	min-height: 15rem;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	background: #372a26;
}

.slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	filter: blur(3px) saturate(0.85);
	transform: scale(1.07);
	transition: opacity 800ms ease, transform 1600ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 1000ms ease;
}

.slide.active {
	opacity: 1;
	filter: blur(0) saturate(1.08);
	transform: scale(1);
}

.slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slider-controls {
	position: absolute;
	z-index: 2;
	right: clamp(1rem, 4vw, 2rem);
	bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem;
	border: 1px solid rgb(255 255 255 / 58%);
	border-radius: 999px;
	background: rgb(255 250 238 / 78%);
	box-shadow: 0 6px 20px rgb(45 30 20 / 22%);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
}

.slider-controls button {
	display: grid;
	width: 2.25rem;
	height: 2.25rem;
	place-items: center;
	padding: 0;
	border: 1px solid rgb(105 58 40 / 16%);
	border-radius: 50%;
	background: rgb(255 255 255 / 74%);
	color: var(--color-temple-dark);
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 0.95rem;
	line-height: 1;
	transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.slider-controls button:hover {
	transform: scale(1.06);
	background: var(--color-temple);
	color: white;
}

.slider-controls .slider-toggle {
	width: 2rem;
	height: 2rem;
	font-size: 0.78rem;
}

.lightbox-close {
	display: grid;
	width: 2.75rem;
	aspect-ratio: 1;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--color-surface);
	color: var(--color-temple-dark);
	cursor: pointer;
	font: inherit;
	font-size: 1.25rem;
}

.hero {
	padding: clamp(2.5rem, 7vw, 5rem) 1rem;
	background: var(--glass-surface);
	border-block: 1px solid var(--glass-border);
	-webkit-backdrop-filter: blur(16px) saturate(135%);
	backdrop-filter: blur(16px) saturate(135%);
	text-align: center;
}

h1,
h2,
h3 {
	line-height: 1.2;
}

h1 {
	margin-top: 0;
	font-size: 2.5rem;
}

.hero p {
	color: var(--color-muted);
	font-size: 1.1rem;
}

.btn {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.7rem 1.2rem;
	border-radius: 4px;
	background: var(--color-temple);
	color: white;
	font-family: Arial, sans-serif;
	text-decoration: none;
	transition: background-color 180ms ease, transform 180ms ease;
}

.btn:hover {
	transform: translateY(-2px);
	background: var(--color-temple-dark);
}

.cards,
.page {
	width: min(100% - 2rem, var(--content-width));
	margin-inline: auto;
}

.cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: 1rem;
	padding-block: 2rem;
}

.info-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 1.15rem;
}

.info-card h2,
.info-card p {
	margin: 0;
}

.info-card h2 {
	font-size: 1.2rem;
}

.info-card p {
	line-height: 1.5;
}

.info-card a {
	font-family: Arial, sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
}

.map-card {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.map-card h2,
.map-card p {
	margin-block: 0;
}

.location-map {
	display: block;
	width: 100%;
	height: clamp(11rem, 19vw, 15rem);
	border: 0;
	border-radius: 4px;
	background: var(--color-sandal);
}

.map-link {
	font-family: Arial, sans-serif;
	font-weight: 700;
}

.contact-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	max-width: 62rem;
}

.contact-location {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
	gap: 1rem;
	max-width: 62rem;
	margin-top: 1rem;
}

.address-card h2 {
	margin-top: 0;
}

.address-list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
}

.address-list > div {
	display: grid;
	grid-template-columns: minmax(7.5rem, 0.8fr) minmax(0, 1.2fr);
	gap: 0.75rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid rgb(105 58 40 / 12%);
}

.address-list > div:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.address-list dt {
	color: var(--color-muted);
	font-family: Arial, sans-serif;
	font-size: 0.9rem;
}

.address-list dd {
	margin: 0;
	font-weight: 700;
}

.contact-method {
	display: flex;
	min-width: 0;
	min-height: 6rem;
	align-items: center;
	gap: 0.9rem;
	padding: 1rem;
	border: 1px solid var(--glass-border);
	border-radius: 6px;
	background: var(--glass-surface);
	box-shadow: var(--shadow-glossy);
	color: var(--color-ink);
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-method:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgb(86 58 34 / 18%);
}

.contact-method > span:last-child {
	min-width: 0;
}

.contact-method strong,
.contact-label {
	display: block;
}

.contact-method strong {
	overflow-wrap: anywhere;
	color: var(--color-temple-dark);
	font-weight: 600;
}

.contact-label {
	margin-bottom: 0.2rem;
	color: var(--color-muted);
	font-family: Arial, sans-serif;
	font-size: 0.82rem;
}

.contact-icon {
	display: grid;
	width: 2.8rem;
	height: 2.8rem;
	flex: none;
	place-items: center;
	border-radius: 50%;
	background: var(--color-dawn);
	color: var(--color-temple-dark);
	font-family: Arial, sans-serif;
	font-size: 1.1rem;
}

.social-youtube .contact-icon {
	background: #c62c26;
	color: white;
}

.social-facebook .contact-icon {
	background: #1877f2;
	color: white;
	font-size: 1.35rem;
	font-weight: 700;
}

.card,
.textcard {
	padding: clamp(1.2rem, 3vw, 2rem);
	border: 1px solid var(--glass-border);
	border-radius: 6px;
	background: var(--glass-surface);
	box-shadow: var(--shadow-glossy);
	-webkit-backdrop-filter: blur(16px) saturate(135%);
	backdrop-filter: blur(16px) saturate(135%);
}

.card h2,
.textcard h2 {
	color: var(--color-temple-dark);
	font-size: 1.35rem;
}

.card p,
.textcard p {
	color: var(--color-muted);
}

.page {
	min-height: 60vh;
	padding-block: clamp(1.5rem, 5vw, 3rem);
}

.page > h1 {
	font-size: 2.3rem;
}

.textcard {
	max-width: 62rem;
}

.temple-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 42rem;
	margin-bottom: 1.5rem;
	border-radius: 6px;
	object-fit: cover;
}

.gallery {
	column-count: 3;
	column-gap: 1rem;
}

.gallery-item {
	position: relative;
	display: inline-block;
	width: 100%;
	margin: 0 0 1rem;
	overflow: hidden;
	padding: 0;
	break-inside: avoid;
	border: 1px solid var(--glass-border);
	border-radius: 6px;
	background: var(--glass-surface);
	box-shadow: var(--shadow-glossy);
	cursor: zoom-in;
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: inherit;
	transition: transform 300ms ease;
}

.gallery-item:hover img {
	transform: scale(1.025);
}

.gallery-item::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(145deg, rgb(255 255 255 / 24%), transparent 55%);
	content: "";
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
}

.gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgb(86 58 34 / 20%);
}

.gallery-item:hover::after {
	opacity: 1;
}

.lightbox {
	position: fixed;
	width: min(92vw, 72rem);
	max-width: none;
	max-height: 90vh;
	padding: 3.5rem 1rem 1rem;
	border: 0;
	border-radius: 6px;
	background: #171514;
	color: white;
}

.lightbox::backdrop {
	background: rgb(0 0 0 / 78%);
}

.lightbox img {
	display: block;
	max-width: 100%;
	max-height: calc(90vh - 5rem);
	margin-inline: auto;
	object-fit: contain;
}

.lightbox-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
}

.invitation-dialog {
	position: fixed;
	width: min(92vw, 40rem);
	max-width: none;
	max-height: 94vh;
	padding: 3rem 0.75rem 0.75rem;
	overflow: auto;
	border: 1px solid var(--glass-border);
	border-radius: 8px;
	background: var(--color-surface);
	box-shadow: 0 18px 50px rgb(0 0 0 / 35%);
}

.invitation-dialog::backdrop {
	background: rgb(0 0 0 / 72%);
}

.invitation-dialog img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: calc(94vh - 4rem);
	margin-inline: auto;
	object-fit: contain;
}

.invitation-close {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	display: grid;
	width: 2.25rem;
	aspect-ratio: 1;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--color-temple);
	color: white;
	cursor: pointer;
	font: inherit;
	font-size: 1.5rem;
	line-height: 1;
}

.qr-float {
	position: fixed;
	left: clamp(0.75rem, 2vw, 1.5rem);
	bottom: clamp(0.75rem, 2vh, 1.5rem);
	z-index: 9;
	width: clamp(9rem, 18vw, 13rem);
}

.qr-toggle {
	display: block;
	margin: 0 0 0.4rem auto;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--glass-border);
	border-radius: 999px;
	background: var(--color-surface);
	box-shadow: var(--shadow-glossy);
	color: var(--color-temple-dark);
	cursor: pointer;
	font: inherit;
	font-size: 0.8rem;
}

.qr-card {
	margin: 0;
	padding: 0.45rem;
	border: 1px solid var(--glass-border);
	border-radius: 8px;
	background: var(--glass-surface);
	box-shadow: 0 12px 32px rgb(86 58 34 / 22%);
	-webkit-backdrop-filter: blur(16px) saturate(135%);
	backdrop-filter: blur(16px) saturate(135%);
	animation: qr-glow 4s ease-in-out infinite;
}

.qr-card img {
	display: block;
	width: 100%;
	max-height: min(40vh, 24rem);
	border-radius: 5px;
	object-fit: contain;
}

.qr-card figcaption {
	padding: 0.3rem 0.15rem 0.1rem;
	color: var(--color-temple-dark);
	font-family: Arial, sans-serif;
	font-size: 0.78rem;
	line-height: 1.3;
	text-align: center;
}

.upi-payment {
	display: flex;
	min-height: 2.4rem;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.45rem;
	padding: 0.35rem 0.45rem;
	border-radius: 5px;
	background: var(--color-temple);
	color: white;
	font-family: Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.upi-payment:hover {
	transform: translateY(-1px);
	background: var(--color-temple-dark);
	color: white;
}

.upi-icon {
	font-size: 1rem;
}

.upi-id {
	margin: 0.35rem 0 0;
	color: var(--color-muted);
	font-family: Arial, sans-serif;
	font-size: 0.65rem;
	line-height: 1.3;
	text-align: center;
	word-break: break-word;
}

@keyframes qr-glow {
	0%,
	100% {
		box-shadow: 0 12px 32px rgb(86 58 34 / 22%);
	}
	50% {
		box-shadow: 0 12px 34px rgb(86 58 34 / 30%), 0 0 16px rgb(228 185 79 / 24%);
	}
}

.js .reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 450ms ease, transform 450ms ease;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

footer {
	margin-top: auto;
	padding: 1.25rem;
	background: #292522;
	color: white;
	text-align: center;
}

@media (max-width: 640px) {
	.header {
		justify-content: center;
		gap: 0.4rem 0.75rem;
		padding-inline: 0.75rem;
	}

	.brand-group {
		justify-content: center;
		gap: 0.35rem;
	}

	.logo {
		font-size: 1.05rem;
	}

	.logo-anniversary {
		padding: 0.15rem 0.4rem;
		font-size: 0.62rem;
	}

	.nav {
		justify-content: center;
		width: 100%;
	}

	.nav a {
		padding: 0.35rem 0.48rem;
		font-size: 0.75rem;
	}

	.language-switch {
		margin-inline: auto;
		padding: 0.25rem;
	}

	.language-switch button {
		min-width: 2.45rem;
		min-height: 2rem;
		padding: 0.2rem 0.5rem;
		font-size: 0.8rem;
	}

	.slider {
		aspect-ratio: 4 / 3;
	}

	.slider-controls {
		right: 0.75rem;
		bottom: 0.75rem;
	}

	h1 {
		font-size: 2rem;
	}

	.page > h1 {
		font-size: 1.8rem;
	}
}

@media (max-width: 1000px) {
	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.location-map {
		height: 16rem;
	}

	.contact-options {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-location {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.gallery {
		column-count: 2;
	}
}

@media (max-width: 560px) {
	.gallery {
		column-count: 1;
	}

	.qr-float {
		width: clamp(8rem, 38vw, 10rem);
	}

	.qr-card img {
		max-height: 30vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.qr-float {
		animation: none;
	}

	.qr-card {
		animation: none;
	}
}
