/* Resaunare Retreat - Extreme Modern Design */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

:root {
	--primary-dark: #0a0e27;
	--primary-blue: #1a237e;
	--accent-blue: #3f51b5;
	--light-blue: #5c6bc0;
	--gradient-primary: linear-gradient(
		135deg,
		#0a0e27 0%,
		#13152a 50%,
		#0c0e1b 100%
	);
	--gradient-secondary: linear-gradient(45deg, #1a237e, #3f51b5);
	--text-primary: #ffffff;
	--text-secondary: #b0bec5;
	--text-accent: #64b5f6;
	--glass-bg: rgba(255, 255, 255, 0.05);
	--glass-border: rgba(255, 255, 255, 0.1);
	--shadow-primary: 0 20px 40px rgba(26, 35, 126, 0.3);
	--shadow-hover: 0 30px 60px rgba(26, 35, 126, 0.4);
	--transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", sans-serif;
	background: var(--gradient-primary);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
	min-height: 100vh;
}

/* Loading Screen */
.loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--gradient-primary);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
	opacity: 0;
	visibility: hidden;
}

.loader {
	width: 80px;
	height: 80px;
	border: 3px solid transparent;
	border-top: 3px solid var(--text-accent);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	position: relative;
}

.loader::before {
	content: "";
	position: absolute;
	top: -3px;
	left: -3px;
	right: -3px;
	bottom: -3px;
	border: 3px solid transparent;
	border-bottom: 3px solid var(--light-blue);
	border-radius: 50%;
	animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Navbar */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(10, 14, 39, 0.95);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--glass-border);
	z-index: 1002;
	transition: var(--transition);
	padding: 1rem 0;
}

.navbar.scrolled {
	background: rgba(10, 14, 39, 0.98);
	box-shadow: var(--shadow-primary);
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo img {
	height: 50px;
	width: auto;
	transition: var(--transition);
}

.logo img:hover {
	transform: scale(1.05);
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-link {
	color: var(--text-primary);
	text-decoration: none;
	font-weight: 500;
	position: relative;
	transition: var(--transition);
	padding: 0.5rem 1rem;
	border-radius: 8px;
}

.nav-link:hover {
	color: var(--text-accent);
	background: var(--glass-bg);
}

.nav-link::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--text-accent);
	transition: var(--transition);
	transform: translateX(-50%);
}

.nav-link:hover::after {
	width: 80%;
}

.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 1001;
	position: relative;
	touch-action: manipulation;
}

.hamburger span {
	width: 25px;
	height: 3px;
	background: var(--text-primary);
	margin: 3px 0;
	transition: var(--transition);
	border-radius: 2px;
	display: block;
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	padding-top: 100px;
}

/* Animated Background Image */
.hero::before {
	content: "";
	position: absolute;
	top: -10%;
	left: -10%;
	width: 120%;
	height: 120%;
	background-image: url("/assets/images/programs/luxury-spa-retreat.jpeg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	animation: heroZoom 15s ease-in-out infinite alternate;
	transition: background-image 1s ease-in-out;
	z-index: -2;
}

/* Gradient Overlay */
.hero::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		rgba(10, 14, 39, 0.8) 0%,
		rgba(26, 35, 126, 0.7) 30%,
		rgba(63, 81, 181, 0.6) 70%,
		rgba(10, 14, 39, 0.9) 100%
	);
	z-index: -1;
}

/* Hero Background Animation */
@keyframes heroZoom {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(1.1);
	}
}

.hero-content {
	text-align: center;
	max-width: 800px;
	padding: 0 2rem;
	animation: fadeInUp 1s ease-out;
	position: relative;
	z-index: 1;
}

.hero h1 {
	font-size: clamp(3rem, 8vw, 6rem);
	font-weight: 900;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #f8f9fa, #e3f2fd, #f5f5f5);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.1;
	text-shadow: 0 4px 8px rgb(115 211 255 / 2%), 0 8px 16px rgb(74 178 255 / 40%);
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero p {
	font-size: 1.25rem;
	color: white;
	margin-bottom: 2.5rem;
	font-weight: 400;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(10, 14, 39, 0.5);
}

/* Enhanced shadows for hero buttons */
.hero .btn {
	box-shadow: 0 6px 20px rgba(26, 35, 126, 0.5), 0 12px 30px rgba(0, 0, 0, 0.4),
		inset 0 1px 2px rgba(255, 255, 255, 0.15);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero .btn:hover {
	box-shadow: 0 10px 30px rgba(26, 35, 126, 0.7), 0 20px 40px rgba(0, 0, 0, 0.5),
		inset 0 1px 2px rgba(255, 255, 255, 0.25);
	text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.hero .btn-secondary {
	box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4),
		0 12px 30px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(100, 181, 246, 0.15);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	background: rgba(0, 0, 0, 0.2);
	border: white 2px solid;
	color: white;
}

.hero .btn-secondary:hover {
	color: white;
	box-shadow: 0 10px 30px rgba(100, 181, 246, 0.6),
		0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	background: var(--gradient-secondary);
	color: var(--text-primary);
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	transition: var(--transition);
	border: none;
	cursor: pointer;
	font-size: 1rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(26, 35, 126, 0.4), 0 8px 25px rgba(0, 0, 0, 0.3),
		inset 0 1px 2px rgba(255, 255, 255, 0.1);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.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: var(--transition);
}

.btn:hover::before {
	left: 100%;
}

.btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(26, 35, 126, 0.6), 0 15px 35px rgba(0, 0, 0, 0.4),
		inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
	background: transparent;
	border: 2px solid var(--text-accent);
	color: var(--text-accent);
	box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2),
		inset 0 1px 2px rgba(100, 181, 246, 0.1);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
	background: var(--text-accent);
	color: var(--primary-dark);
	box-shadow: 0 8px 25px rgba(100, 181, 246, 0.5),
		0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.2);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Sections */
.section {
	padding: 6rem 0;
	position: relative;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
}

.section-title {
	text-align: center;
	margin-bottom: 4rem;
}

.section-title h2 {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 800;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, var(--text-primary), var(--text-accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-title p {
	font-size: 1.2rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto;
}

/* Cards */
.card {
	background: var(--glass-bg);
	backdrop-filter: blur(20px);
	border: 1px solid var(--glass-border);
	border-radius: 20px;
	padding: 1.5rem;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--gradient-secondary);
	transform: scaleX(0);
	transition: var(--transition);
}

.card:hover::before {
	transform: scaleX(1);
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-hover);
	border-color: var(--text-accent);
}

/* Grid Layouts */
.grid {
	display: grid;
	gap: 2rem;
}

.grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Programs Grid - prevent single cards from expanding to full width */
.programs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

/* Featured Programs Grid */
.featured-programs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.featured-program-card {
	background: var(--glass-bg);
	backdrop-filter: blur(20px);
	border: 1px solid var(--glass-border);
	border-radius: 20px;
	padding: 0;
	transition: var(--transition);
	overflow: hidden;
	position: relative;
}

.featured-program-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-hover);
}

.featured-program-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
}

.featured-program-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.featured-program-card:hover .featured-program-image img {
	transform: scale(1.1);
}

.featured-program-overlay {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(0, 0, 0, 0.8);
	color: var(--text-primary);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.featured-program-content {
	padding: 2rem;
}

.featured-program-content h3 {
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.featured-program-content p {
	color: var(--text-secondary);
	margin-bottom: 2rem;
	line-height: 1.6;
}

.featured-program-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.featured-program-price {
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--text-accent);
}

.featured-program-duration {
	color: var(--text-secondary);
	font-weight: 500;
}

/* Footer */
.footer {
	background: var(--primary-dark);
	padding: 4rem 0 2rem;
	border-top: 1px solid var(--glass-border);
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	margin-bottom: 2rem;
}

.footer-section h3 {
	color: var(--text-accent);
	margin-bottom: 1.5rem;
	font-weight: 700;
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.8rem;
}

.footer-links a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: var(--transition);
}

.footer-links a:hover {
	color: var(--text-accent);
	padding-left: 5px;
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid var(--glass-border);
	color: var(--text-secondary);
}

/* Cookie Popup */
.cookie-popup {
	position: fixed;
	bottom: 2rem;
	left: 2rem;
	right: 2rem;
	background: var(--glass-bg);
	backdrop-filter: blur(20px);
	border: 1px solid var(--glass-border);
	border-radius: 15px;
	padding: 2rem;
	z-index: 9999;
	transform: translateY(0);
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	max-width: 500px;
	margin: 0 auto;
	display: none;
}

.cookie-popup.hidden {
	display: none;
}

.cookie-popup.show {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
	display: block;
}

.cookie-buttons {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}

.cookie-buttons .btn {
	padding: 0.8rem 1.5rem;
	font-size: 0.9rem;
}

/* Go to Top Button */
.go-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 50px;
	height: 50px;
	background: var(--gradient-secondary);
	border: none;
	border-radius: 50%;
	color: var(--text-primary);
	cursor: pointer;
	transition: var(--transition);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	box-shadow: var(--shadow-primary);
}

.go-top.hide {
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
}

.go-top:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.animate-on-scroll {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
	.nav-menu {
		position: fixed;
		top: 80px;
		left: -100%;
		width: 100%;
		height: calc(100vh - 80px);
		background: rgba(10, 14, 39, 0.98);
		backdrop-filter: blur(20px);
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		padding-top: 2rem;
		transition: var(--transition);
		z-index: 1000;
	}

	.nav-menu.active {
		left: 0;
	}

	.hamburger {
		display: flex;
		min-width: 40px;
		min-height: 40px;
		justify-content: center;
		align-items: center;
		background: rgba(255, 255, 255, 0.1);
		border-radius: 5px;
	}

	.hamburger.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	.hamburger.active span:nth-child(2) {
		opacity: 0;
	}

	.hamburger.active span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -7px);
	}

	.hero {
		padding-top: 120px;
	}

	.hero::before {
		top: -5%;
		left: -5%;
		width: 110%;
		height: 110%;
		animation: heroZoom 12s ease-in-out infinite alternate;
	}

	.section {
		padding: 4rem 0;
	}

	.container {
		padding: 0 1rem;
	}

	.footer-content {
		text-align: center;
	}

	.cookie-popup {
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
	}

	.cookie-buttons {
		justify-content: center;
	}

	/* Center About Us section in mobile */
	.grid-2 {
		text-align: center;
	}
	
	.grid-2 .btn {
		display: block !important;
		text-align: center !important;
		margin: 2rem auto 0 auto !important;
		width: fit-content !important;
	}
}

@media (max-width: 480px) {
	.nav-container {
		padding: 0 1rem;
	}

	.hero-content {
		padding: 0 1rem;
	}

	.card {
		padding: 1rem;
	}

	.featured-programs-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.featured-program-content {
		padding: 1.5rem;
	}

	.featured-program-image {
		height: 180px;
	}

	/* Center About Us section in mobile */
	.grid-2 {
		text-align: center;
	}
	
	.grid-2 .btn {
		display: block !important;
		text-align: center !important;
		margin: 2rem auto 0 auto !important;
		width: fit-content !important;
	}

	/* Ensure all buttons in sections are centered */
	.section .btn {
		display: block !important;
		text-align: center !important;
		margin-left: auto !important;
		margin-right: auto !important;
		width: fit-content !important;
	}
}

.btn {
	padding: 0.8rem 2rem;
	font-size: 0.9rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
	background: var(--gradient-secondary);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--text-accent);
}

/* Selection */
::selection {
	background: var(--text-accent);
	color: var(--primary-dark);
}

/* Focus States */
.btn:focus,
.nav-link:focus {
	outline: 2px solid var(--text-accent);
	outline-offset: 2px;
}
