:root {
	--bg-main: #0f0f14;
	--bg-secondary: #161621;
	--panel: #12121a;
	--accent-primary: #8b1e3f; /* deep wine */
	--accent-secondary: #c9a24d; /* muted gold */
	--text-primary: #f2f2f2;
	--text-muted: #b6b6bf;
	--border-soft: rgba(255, 255, 255, 0.08);
}

/* Center collapsed navbar items on mobile */
@media (max-width: 991.98px) {
	.navbar-collapse .navbar-nav {
		align-items: center;
	}

	.navbar-collapse .nav-link {
		text-align: center;
	}
}

/* iOS / Mobile tweaks */
html, body {
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
}

.site-body {
	padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
	-webkit-tap-highlight-color: transparent;
}

button, a, .btn {
	-webkit-tap-highlight-color: transparent;
}

/* Disable background-attachment: fixed on touch / smaller screens to avoid iOS performance issues */
@media (max-width: 1024px), (hover: none) {
	.hero::before,
	#details,
	.contact-bg,
	.hero,
	.section-secondary {
		background-attachment: scroll !important;
		background-attachment: initial !important;
	}
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.site-body {
	background: radial-gradient(
			1200px 600px at 50% 0%,
			rgba(139, 30, 63, 0.2),
			transparent 60%
		),
		radial-gradient(
			900px 450px at 20% 20%,
			rgba(201, 162, 77, 0.12),
			transparent 60%
		),
		var(--bg-main);
	color: var(--text-primary);
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
		sans-serif;
}

/* Skip to Main Content Link */
.skip-to-main {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 1rem;
	background: var(--accent-secondary);
	color: var(--bg-main);
	text-decoration: none;
	border-radius: 0 0 4px 0;
}

.skip-to-main:focus {
	left: 0;
	top: 0;
	outline: none;
}

h1,
h2,
h3,
h4,
h5,
.brand-mark {
	font-family: "Playfair Display", serif;
	letter-spacing: 0.02em;
}

/* Ensure proper heading hierarchy for accessibility */
h1 {
	font-size: 2.5rem;
}
h2 {
	font-size: 2rem;
}
h3 {
	font-size: 1.75rem;
}
h4 {
	font-size: 1.5rem;
}
h5 {
	font-size: 1.25rem;
}

.text-muted {
	color: var(--text-muted) !important;
}

.navbar {
	background: rgba(15, 15, 20, 0.55);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-soft);
	transition: all 0.3s ease;
}

.navbar::-webkit-scrollbar {
	width: 8px;
}

/* Glassmorphism Effect */
.glass {
	position: relative;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(2px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 18px;
	box-shadow:
		0 8px 32px rgba(31, 38, 135, 0.2),
		inset 0 4px 20px rgba(255, 255, 255, 0.3);
}

.glass::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	backdrop-filter: blur(1px);
	box-shadow:
		inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
		inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
	opacity: 0.6;
	z-index: -1;
	filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
	pointer-events: none;
}

.nav-link {
	transition: color 0.2s ease;
	position: relative;
}

.nav-link:hover {
	color: var(--accent-secondary) !important;
}

.nav-link::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent-secondary);
	transition: width 0.3s ease;
}

.nav-link:hover::after {
	width: 100%;
}

.nav-link:focus {
	color: var(--accent-secondary) !important;
	outline: 2px solid var(--accent-secondary);
	outline-offset: 2px;
}

.btn:focus-visible {
	outline: 2px solid var(--accent-secondary);
	outline-offset: 2px;
}

.footer-credit {
	font-size: 0.75rem;
}

.hero {
	min-height: 78vh;
	display: grid;
	place-items: center;
	padding: 6rem 0 5rem;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("brendal-shh.png");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	filter: blur(8px);
	opacity: 0.4;
	pointer-events: none;
	z-index: 0;
}

.hero::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(
			circle at 20% 50%,
			rgba(139, 30, 63, 0.2) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 80%,
			rgba(201, 162, 77, 0.1) 0%,
			transparent 50%
		);
	pointer-events: none;
	z-index: 0;
}

.hero-inner {
	max-width: 980px;
	position: relative;
	z-index: 1;
	animation: fadeInUp 0.8s ease-out;
}
.hero-kicker {
	display: inline-block;
	font-size: 0.95rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 1rem;
	position: relative;
	padding-bottom: 0.75rem;
	animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-kicker::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 2px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--accent-secondary),
		transparent
	);
	animation: shimmerLine 3s ease-in-out infinite,
		glowPulse 3s ease-in-out infinite;
}

.hero-title {
	margin-bottom: 1rem;
	animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
	color: var(--text-muted);
	max-width: 720px;
	margin: 0 auto 2rem;
	animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.section {
	padding: 8rem 0;
}
.section-secondary {
	position: relative;
	background: 
		/* Diagonal linen texture lines */
		repeating-linear-gradient(
			45deg,
			transparent,
			transparent 2px,
			rgba(201, 162, 77, 0.04) 2px,
			rgba(201, 162, 77, 0.04) 4px
		),
		repeating-linear-gradient(
			-45deg,
			transparent,
			transparent 2px,
			rgba(201, 162, 77, 0.03) 2px,
			rgba(201, 162, 77, 0.03) 4px
		),
		/* Subtle highlight accent */
		radial-gradient(
			ellipse 800px 600px at 50% 0%,
			rgba(201, 162, 77, 0.08),
			transparent 70%
		),
		/* Base color */
		rgba(22, 22, 33, 0.55);
	border-top: 1px solid var(--border-soft);
	border-bottom: 1px solid var(--border-soft);
	margin-top: 2rem;
	margin-bottom: 2rem;
}

#details {
	position: relative;
	background-image: url("brendal_approach.png");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

#details::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 15, 20, 0.7);
	backdrop-filter: blur(8px);
	z-index: 1;
	pointer-events: none;
}

#details > * {
	position: relative;
	z-index: 2;
}

#areas {
	position: relative;
	background: 
		/* Contour lines - curved mountain elevation lines */
		repeating-linear-gradient(
			0deg,
			transparent 0px,
			transparent 8px,
			rgba(201, 162, 77, 0.08) 8px,
			rgba(201, 162, 77, 0.08) 10px
		),
		repeating-linear-gradient(
			0deg,
			transparent 0px,
			transparent 16px,
			rgba(201, 162, 77, 0.04) 16px,
			rgba(201, 162, 77, 0.04) 18px
		),
		/* Mountain peaks - major ridgelines */
		radial-gradient(
			ellipse 600px 400px at 30% 40%,
			rgba(201, 162, 77, 0.15),
			transparent 60%
		),
		radial-gradient(
			ellipse 500px 300px at 70% 50%,
			rgba(139, 30, 63, 0.12),
			transparent 70%
		),
		radial-gradient(
			ellipse 400px 250px at 50% 20%,
			rgba(201, 162, 77, 0.1),
			transparent 50%
		),
		/* Ridge shadows */
		linear-gradient(
			45deg,
			transparent 0%,
			rgba(139, 30, 63, 0.08) 30%,
			transparent 60%
		),
		linear-gradient(
			225deg,
			transparent 0%,
			rgba(201, 162, 77, 0.06) 35%,
			transparent 65%
		),
		/* Valley depths */
		radial-gradient(
			ellipse 550px 350px at 45% 65%,
			transparent 0%,
			rgba(0, 0, 0, 0.15) 50%,
			transparent 100%
		),
		/* Base gradient */
		linear-gradient(135deg, rgba(15, 15, 20, 0.95), rgba(22, 22, 33, 0.95));
	background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
	border-top: 1px solid var(--border-soft);
	border-bottom: 1px solid var(--border-soft);
	margin-top: 2rem;
	margin-bottom: 2rem;
}
	border-bottom: 1px solid var(--border-soft);
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.section-title {
	margin-bottom: 1rem;
	font-size: 2.5rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	background: linear-gradient(
		135deg,
		var(--text-primary) 0%,
		var(--accent-secondary) 100%
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-text {
	font-size: 1.08rem;
	line-height: 1.8;
	letter-spacing: 0.005em;
}

.btn-accent {
	background: linear-gradient(135deg, var(--accent-primary), #5d1228);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	transition: all 0.3s ease;
}
.btn-accent:hover {
	background: linear-gradient(135deg, var(--accent-secondary), #b68e3e);
	color: #0b0b10;
	box-shadow: 0 8px 20px rgba(139, 30, 63, 0.3);
	transform: translateY(-2px);
}
.btn-accent:focus-visible {
	outline: 2px solid var(--accent-secondary);
	outline-offset: 2px;
}

.badge-soft {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border-soft);
	color: var(--text-muted);
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	margin: 0 0.25rem;
	transition: all 0.2s ease;
}

.badge-soft:hover {
	background: rgba(201, 162, 77, 0.15);
	border-color: rgba(201, 162, 77, 0.5);
	color: var(--accent-secondary);
}

.card-dark {
	background: rgba(35, 35, 50, 0.9);
	border: 2px solid rgba(201, 162, 77, 0.4);
	border-radius: 18px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}

.card-dark::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(201, 162, 77, 0.1),
		transparent
	);
	transition: left 0.6s ease;
}

.card-dark:hover::before {
	left: 100%;
}

.card-title {
	color: var(--text-primary);
	font-weight: 600;
	font-family: "Playfair Display", serif;
	margin-bottom: 0.5rem;
}

.card-hover:hover {
	box-shadow: 0 24px 60px rgba(139, 30, 63, 0.25);
	transform: translateY(-4px);
	border-color: rgba(201, 162, 77, 0.3);
}

.card-icon {
	color: var(--accent-secondary);
	transition: transform 0.3s ease, color 0.3s ease;
}

.card-hover:hover .card-icon {
	transform: scale(1.1);
	color: var(--accent-primary);
}

.callout {
	background: rgba(18, 18, 26, 0.55);
	border: 1px solid var(--border-soft);
	border-left: 3px solid var(--accent-primary);
	border-radius: 18px;
	padding: 1.25rem 1.25rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.callout::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3px;
	height: 100%;
	background: linear-gradient(
		180deg,
		var(--accent-primary),
		var(--accent-secondary)
	);
	transition: width 0.3s ease;
}

.callout:hover {
	box-shadow: 0 12px 30px rgba(139, 30, 63, 0.15);
	border-color: rgba(201, 162, 77, 0.3);
	transform: translateX(4px);
}

.hr-soft {
	border-color: rgba(255, 255, 255, 0.12);
}

.bullet {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--accent-secondary);
	box-shadow: 0 0 22px rgba(201, 162, 77, 0.35);
}

.footer {
	border-top: 1px solid var(--border-soft);
	background: rgba(10, 10, 13, 0.65);
	margin-top: 4rem;
	position: relative;
}

.footer p {
	transition: all 0.3s ease;
}

.footer:hover p {
	color: var(--accent-secondary);
}

/* Age Gate */
.no-scroll {
	overflow: hidden;
}

.age-gate {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: radial-gradient(
			900px 500px at 50% 15%,
			rgba(139, 30, 63, 0.35),
			transparent 65%
		),
		rgba(0, 0, 0, 0.78);
	z-index: 9999;
}

.age-gate.is-visible {
	display: flex;
}

.age-gate-card {
	width: min(560px, 100%);
	background: rgba(18, 18, 26, 0.92);
	border: 1px solid var(--border-soft);
	border-radius: 22px;
	padding: 1.75rem;
	box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.age-gate-kicker {
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.age-gate-title {
	margin: 0.25rem 0 0.75rem;
}
.age-gate-text {
	color: var(--text-muted);
	line-height: 1.7;
}

.age-gate-fineprint {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.9rem;
}

/* Focus states and accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--accent-secondary);
	outline-offset: 3px;
	box-shadow: 0 0 0 4px rgba(201, 162, 77, 0.2);
}

/* High contrast mode support */
@media (prefers-contrast: more) {
	:root {
		--text-primary: #ffffff;
		--text-muted: #d4d4d4;
		--border-soft: rgba(255, 255, 255, 0.16);
	}

	.section-title {
		font-weight: 700;
	}
}

.btn-outline-light {
	transition: all 0.3s ease;
}

.btn-outline-light:hover {
	box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

.btn-outline-light:focus-visible {
	outline: 2px solid var(--accent-secondary);
	outline-offset: 2px;
}

/* Link styling improvements */
a {
	transition: color 0.2s ease;
}

a:not(.btn):not(.nav-link) {
	color: var(--accent-secondary);
	text-decoration: none;
	border-bottom: 1px dotted var(--accent-secondary);
}

a:not(.btn):not(.nav-link):hover {
	color: var(--accent-primary);
	border-bottom-color: var(--accent-primary);
}

/* Ensure links are distinguishable */
a:visited:not(.btn) {
	color: #c9a24d;
	opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes shimmerLine {
	0% {
		opacity: 0.5;
		width: 0;
		left: 50%;
		transform: translateX(-50%);
	}
	50% {
		opacity: 1;
		width: 60px;
	}
	100% {
		opacity: 0.5;
		width: 60px;
		left: 50%;
		transform: translateX(-50%);
	}
}

@keyframes glowPulse {
	0%,
	100% {
		box-shadow: 0 0 8px rgba(201, 162, 77, 0.3);
	}
	50% {
		box-shadow: 0 0 16px rgba(201, 162, 77, 0.6);
	}
}

.section {
	animation: fadeInUp 0.6s ease-out;
}

/* Enhanced navbar brand */
.brand-mark {
	font-weight: 650;
	transition: color 0.2s ease;
}

.brand-mark:hover {
	color: var(--accent-secondary);
}

/* Improved button transitions */
.btn {
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.2),
		transparent
	);
	transition: left 0.6s ease;
	pointer-events: none;
}

.btn:hover::before {
	left: 100%;
}

/* Hero section improvements */
.hero-badges {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Location Tabs Styling */
.location-tab {
	transition: all 0.3s ease;
	font-size: 0.9rem;
	font-weight: 500;
}

.location-tab:hover {
	background: rgba(201, 162, 77, 0.2);
	border-color: var(--accent-secondary);
	color: var(--accent-secondary);
}

.location-tab.active {
	background: linear-gradient(135deg, var(--accent-primary), #5d1228);
	border-color: var(--accent-secondary);
	color: #fff;
	box-shadow: 0 4px 12px rgba(139, 30, 63, 0.3);
}

.location-content {
	opacity: 1;
	transition: opacity 0.4s ease;
}

.location-content[style*="display: none"] {
	opacity: 0;
}

/* Disclaimer styling */
.disclaimer {
	font-size: 0.8rem !important;
	font-style: italic;
	letter-spacing: 0.01em;
	color: rgba(182, 182, 191, 0.7) !important;
	line-height: 1.6;
	margin-top: 2rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll to Top Button */
.scroll-to-top {
	position: fixed;
	bottom: -60px;
	right: 2rem;
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, var(--accent-primary), #5d1228);
	border: 1px solid rgba(201, 162, 77, 0.3);
	border-radius: 50%;
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 8px 24px rgba(139, 30, 63, 0.2);
	z-index: 999;
}

.scroll-to-top:hover {
	background: linear-gradient(135deg, var(--accent-secondary), #b68e3e);
	box-shadow: 0 12px 32px rgba(139, 30, 63, 0.3);
	transform: translateY(-4px);
}

.scroll-to-top:focus-visible {
	outline: 2px solid var(--accent-secondary);
	outline-offset: 2px;
}

.scroll-to-top.visible {
	bottom: 2rem;
}

/* Contact Section Background */
.contact-bg {
	background: radial-gradient(
			ellipse at center,
			rgba(22, 22, 33, 0.4) 0%,
			rgba(22, 22, 33, 0.95) 100%
		),
		linear-gradient(
			135deg,
			rgba(139, 30, 63, 0.75) 0%,
			rgba(22, 22, 33, 0.85) 100%
		),
		url("bedroom-bg.png") center / cover no-repeat;
	background-attachment: fixed;
	backdrop-filter: blur(2px);
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
	.contact-bg {
		animation: subtleShift 20s ease-in-out infinite;
	}
}

@keyframes subtleShift {
	0%,
	100% {
		background-position: center;
	}
	50% {
		background-position: center 2px;
	}
}

/* Location Section Styling */
.location-map-container {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	border-radius: 12px;
	overflow: hidden;
}

.location-photo {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	display: block;
	max-width: 100%;
	height: auto;
}
