/**
 * Niramay footer — New Home template.
 *
 * @package Niramay_Child
 */

.niramay-footer {
	--footer-deep: #062a18;
	position: relative;
	overflow: hidden;
	margin-top: 0;
	padding: 0 0 clamp(1.5rem, 3vw, 2rem);
	color: rgb(255 255 255 / 88%);
	background:
		radial-gradient(ellipse 80% 70% at 10% 0%, rgb(140 198 62 / 14%) 0%, transparent 55%),
		radial-gradient(ellipse 60% 50% at 100% 100%, rgb(212 160 23 / 10%) 0%, transparent 48%),
		linear-gradient(165deg, var(--footer-deep) 0%, var(--color-primary-dark) 42%, var(--color-primary) 100%);
}

.niramay-footer__top-accent {
	display: block;
	height: 4px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--color-accent-lime) 18%,
		var(--color-gold) 50%,
		var(--color-accent-lime) 82%,
		transparent 100%
	);
}

.niramay-footer__container {
	position: relative;
	z-index: 1;
	padding-top: clamp(2rem, 4vw, 3rem);
}

.niramay-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 3vw, 2.25rem);
}

@media (min-width: 40rem) {
	.niramay-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.niramay-footer__grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1fr) auto;
		align-items: start;
	}
}

/* Brand */
.niramay-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.niramay-footer__logo-link {
	display: inline-flex;
	width: fit-content;
	text-decoration: none;
}

.niramay-footer__logo {
	display: block;
	line-height: 0;
}

.niramay-footer__logo img {
	display: block;
	width: auto;
	max-width: min(11rem, 70vw);
	height: auto;
	max-height: 3.5rem;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.niramay-footer__logo-text {
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: var(--fw-bold);
	color: var(--color-white);
}

.niramay-footer__brand-name {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.05rem, 1.8vw, 1.2rem);
	font-weight: var(--fw-bold);
	line-height: 1.3;
	color: var(--color-white);
}

.niramay-footer__tagline {
	margin: 0;
	max-width: 16rem;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: rgb(255 255 255 / 72%);
}

/* Headings */
.niramay-footer__heading {
	margin: 0 0 0.85rem;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: var(--fw-bold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-accent-lime);
}

/* Quick links — two columns */
.niramay-footer__menu-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem 1.25rem;
}

.niramay-footer__menu-col {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.niramay-footer__menu-col a {
	display: inline-block;
	font-size: 0.875rem;
	line-height: 1.4;
	color: rgb(255 255 255 / 82%);
	text-decoration: none;
	transition: color 0.25s var(--ease-premium), transform 0.25s var(--ease-premium);
}

.niramay-footer__menu-col a:hover,
.niramay-footer__menu-col a:focus-visible {
	color: var(--color-white);
	transform: translateX(3px);
}

/* Contact */
.niramay-footer__contact-list {
	margin: 0 0 0.85rem;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.niramay-footer__contact-item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.55rem;
	align-items: start;
}

.niramay-footer__contact-item svg {
	flex-shrink: 0;
	margin-top: 0.1rem;
	color: var(--color-accent-lime);
}

.niramay-footer__contact-item a {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: rgb(255 255 255 / 82%);
	text-decoration: none;
	transition: color 0.25s var(--ease-premium);
}

.niramay-footer__contact-item a:hover,
.niramay-footer__contact-item a:focus-visible {
	color: var(--color-white);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.niramay-footer__locations {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.niramay-footer__location-pill {
	display: inline-flex;
	padding: 0.3rem 0.65rem;
	font-size: 0.6875rem;
	font-weight: var(--fw-semibold);
	letter-spacing: 0.03em;
	color: var(--color-white);
	background: rgb(255 255 255 / 10%);
	border: 1px solid rgb(140 198 62 / 28%);
	border-radius: var(--radius-pill);
}

/* Social */
.niramay-footer__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.niramay-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--color-white);
	text-decoration: none;
	background: rgb(255 255 255 / 8%);
	border: 2px solid rgb(255 255 255 / 22%);
	border-radius: 50%;
	transition:
		color 0.25s var(--ease-premium),
		background 0.25s var(--ease-premium),
		border-color 0.25s var(--ease-premium);
}

.niramay-footer__social-link:hover,
.niramay-footer__social-link:focus-visible {
	color: var(--color-white);
	background: transparent;
	border-color: var(--color-accent-lime);
	outline: none;
}

.niramay-footer__social-link:focus-visible {
	box-shadow: 0 0 0 3px rgb(140 198 62 / 30%);
}

/* Bottom bar */
.niramay-footer__bottom {
	margin-top: clamp(1.5rem, 3vw, 2rem);
	padding-top: 1.15rem;
	border-top: 1px solid rgb(255 255 255 / 12%);
}

.niramay-footer__copy {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.5;
	text-align: center;
	color: rgb(255 255 255 / 58%);
}

@media (min-width: 48rem) {
	.niramay-footer__copy {
		text-align: left;
	}
}

@media (max-width: 39.9375rem) {
	.niramay-footer__brand-name {
		font-size: 0.95rem;
	}

	.niramay-footer__heading {
		font-size: 0.8125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.niramay-footer__menu-col a:hover,
	.niramay-footer__menu-col a:focus-visible {
		transform: none;
	}
}
