/**
 * Vastu Architects — mobile-first, performance-conscious UI
 */

:root {
	--va-color-bg: #faf9f6;
	--va-color-surface: #ffffff;
	--va-color-ink: #1a1a1a;
	--va-color-muted: #5c5c5c;
	--va-color-accent: #2d4a3e;
	--va-color-accent-hover: #1f352c;
	--va-color-whatsapp: #25d366;
	--va-color-whatsapp-hover: #1ebe5d;
	--va-font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--va-font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
	--va-space-xs: 0.35rem;
	--va-space-sm: 0.75rem;
	--va-space-md: 1.25rem;
	--va-space-lg: 2rem;
	--va-space-xl: 3.5rem;
	--va-radius: 4px;
	--va-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	--va-header-offset: 0px;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body.vastu-architects-active {
	background-color: var(--va-color-bg);
	color: var(--va-color-ink);
	font-family: var(--va-font-sans);
}

body.vastu-architects-active .site {
	overflow-x: clip;
}

/* Typography */
body.vastu-architects-active h1,
body.vastu-architects-active .va-display {
	font-family: var(--va-font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

body.vastu-architects-active h2,
body.vastu-architects-active h3 {
	font-family: var(--va-font-sans);
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* Header menu WhatsApp item */
.vastu-header-wa {
	list-style: none;
	margin-left: var(--va-space-sm);
}

.vastu-header-wa .va-btn-wa-header {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.9rem;
	background: var(--va-color-whatsapp);
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.vastu-header-wa .va-btn-wa-header:hover,
.vastu-header-wa .va-btn-wa-header:focus-visible {
	background: var(--va-color-whatsapp-hover);
	color: #fff !important;
	outline: 2px solid var(--va-color-ink);
	outline-offset: 2px;
}

.vastu-header-wa .va-btn-wa-header svg {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
}

@media (max-width: 768px) {
	.vastu-header-wa .va-btn-wa-header span.va-btn-text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.vastu-header-wa .va-btn-wa-header {
		padding: 0.5rem;
		border-radius: 50%;
	}
}

/* Floating WhatsApp */
.va-whatsapp-fab {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	background: var(--va-color-whatsapp);
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.va-whatsapp-fab:hover,
.va-whatsapp-fab:focus-visible {
	transform: scale(1.06);
	box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
	color: #fff;
	outline: 2px solid var(--va-color-ink);
	outline-offset: 2px;
}

.va-whatsapp-fab svg {
	width: 1.75rem;
	height: 1.75rem;
}

/* Home hero (fallback + shared CTAs) */
.va-home-hero {
	position: relative;
	min-height: min(100vh, 900px);
	min-height: min(100dvh, 900px);
	background: var(--va-color-ink);
	color: #fff;
	/* Clip Swiper flex/transform bleed so the previous slide never peeks through */
	overflow: hidden;
}

.va-home-hero .swiper {
	position: relative;
	width: 100%;
	height: min(100vh, 900px);
	height: min(100dvh, 900px);
	/* Hard clip — must win over any parent theme resetting Swiper defaults */
	overflow: hidden;
	isolation: isolate;
}

.va-home-hero .swiper-wrapper {
	/* Extra guard: some themes leak sibling slides at sub-pixel widths */
	box-sizing: border-box;
}

.va-home-hero .swiper-slide {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: clamp(1.5rem, 5vw, 4rem);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-sizing: border-box;
	height: 100%;
	min-height: 100%;
	flex-shrink: 0;
}

.va-home-hero .swiper-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.75) 0%,
		rgba(0, 0, 0, 0.2) 45%,
		rgba(0, 0, 0, 0.35) 100%
	);
	z-index: 0;
}

.va-slide-inner {
	position: relative;
	z-index: 1;
	max-width: 52rem;
	padding-bottom: clamp(4rem, 12vh, 7rem);
}

.va-slide-loc {
	font-size: clamp(0.7rem, 1.5vw, 0.8rem);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	opacity: 0.9;
	margin-bottom: var(--va-space-sm);
}

.va-slide-title {
	font-family: var(--va-font-display);
	font-size: clamp(2rem, 6vw, 3.75rem);
	font-weight: 400;
	line-height: 1.1;
	margin: 0 0 var(--va-space-md);
}

.va-home-hero-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--va-space-sm);
	margin-top: var(--va-space-md);
}

.va-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.35rem;
	background: var(--va-color-surface);
	color: var(--va-color-ink) !important;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none !important;
	border-radius: var(--va-radius);
	transition: background 0.2s ease, color 0.2s ease;
}

.va-btn-primary:hover,
.va-btn-primary:focus-visible {
	background: var(--va-color-accent);
	color: #fff !important;
}

.va-btn-outline-wa {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.65rem 1.35rem;
	background: transparent;
	color: #fff !important;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none !important;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--va-radius);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.va-btn-outline-wa:hover,
.va-btn-outline-wa:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
}

.va-home-hero .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.45;
}

.va-home-hero .swiper-pagination-bullet-active {
	opacity: 1;
}

.va-home-hero .swiper-button-prev,
.va-home-hero .swiper-button-next {
	color: #fff;
	opacity: 0.85;
}

.va-home-hero .swiper-button-prev:hover,
.va-home-hero .swiper-button-next:hover {
	opacity: 1;
}

@media (max-width: 480px) {
	.va-home-hero .swiper-button-prev,
	.va-home-hero .swiper-button-next {
		display: none;
	}
}

/* SR wrapper — constrain if theme bleeds */
.va-rev-slider-wrap {
	line-height: 0;
}

/* Intro band below hero */
.va-intro-band {
	padding: var(--va-space-xl) clamp(1rem, 4vw, 2rem);
	max-width: 72rem;
	margin: 0 auto;
	text-align: center;
}

.va-intro-band p {
	font-size: clamp(1rem, 2vw, 1.15rem);
	color: var(--va-color-muted);
	max-width: 40rem;
	margin: 0 auto var(--va-space-md);
	line-height: 1.65;
}

.va-tagline {
	font-family: var(--va-font-display);
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	color: var(--va-color-accent);
	margin: 0 0 var(--va-space-sm);
}

/* Project grid archive */
.va-archive-projects {
	padding: var(--va-space-lg) clamp(1rem, 4vw, 2rem) var(--va-space-xl);
	max-width: 1200px;
	margin: 0 auto;
}

.va-archive-header {
	margin-bottom: var(--va-space-lg);
}

.va-archive-header h1 {
	margin: 0 0 var(--va-space-sm);
}

.va-archive-intro {
	color: var(--va-color-muted);
	max-width: 42rem;
	line-height: 1.65;
}

.va-filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--va-space-sm);
	margin: var(--va-space-md) 0 var(--va-space-lg);
	list-style: none;
	padding: 0;
}

.va-filter-list a {
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: var(--va-color-surface);
	color: var(--va-color-ink);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	box-shadow: var(--va-shadow);
	transition: background 0.2s ease, color 0.2s ease;
}

.va-filter-list a:hover,
.va-filter-list a:focus-visible {
	background: var(--va-color-accent);
	color: #fff;
}

.va-filter-list a.va-active-filter {
	background: var(--va-color-accent);
	color: #fff;
}

.va-project-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--va-space-md);
}

@media (min-width: 600px) {
	.va-project-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.va-project-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.va-project-card {
	background: var(--va-color-surface);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: var(--va-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.va-project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.va-project-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.va-project-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.va-project-card-body {
	padding: var(--va-space-md);
}

.va-project-card-body h2 {
	font-size: 1.1rem;
	margin: 0 0 0.25rem;
}

.va-project-meta {
	font-size: 0.8rem;
	color: var(--va-color-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Single project */
.va-single-project {
	padding-bottom: var(--va-space-xl);
}

.va-single-hero {
	position: relative;
	min-height: 45vh;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	padding: var(--va-space-xl) clamp(1rem, 4vw, 2rem);
}

.va-single-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
}

.va-single-hero-inner {
	position: relative;
	z-index: 1;
	color: #fff;
	max-width: 72rem;
	margin: 0 auto;
	width: 100%;
}

.va-single-hero-inner h1 {
	font-family: var(--va-font-display);
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0 0 var(--va-space-sm);
}

.va-single-content {
	max-width: 42rem;
	margin: 0 auto;
	padding: var(--va-space-lg) clamp(1rem, 4vw, 2rem);
}

.va-single-content .entry-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--va-color-muted);
}

.va-single-content .entry-content p {
	color: var(--va-color-ink);
}

/* Footer NAP strip (child adds via hook) */
.va-site-footer-nap {
	background: var(--va-color-ink);
	color: rgba(255, 255, 255, 0.88);
	padding: var(--va-space-lg) clamp(1rem, 4vw, 2rem);
	margin-top: var(--va-space-xl);
}

.va-site-footer-nap-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	gap: var(--va-space-md);
}

@media (min-width: 768px) {
	.va-site-footer-nap-inner {
		grid-template-columns: 2fr 1fr 1fr;
		align-items: start;
	}
}

.va-site-footer-nap a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.va-footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--va-space-sm) var(--va-space-md);
	list-style: none;
	padding: 0;
	margin: var(--va-space-sm) 0 0;
}

.va-footer-nav a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-size: 0.9rem;
}

.va-footer-nav a:hover {
	text-decoration: underline;
}

.va-rating-badge {
	display: inline-block;
	margin-top: var(--va-space-sm);
	font-size: 0.9rem;
	opacity: 0.95;
}

/* Utility */
.va-skip-content:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 999999;
	padding: 0.5rem 1rem;
	background: var(--va-color-accent);
	color: #fff;
	clip: auto;
	width: auto;
	height: auto;
}
