/* Base Variables */
:root {
	--primary-color: #d4af37; /* Metallic Gold */
	--primary-dark: #b89628;
	--bg-color: #0b0f19; /* Deep Night Blue */
	--card-bg: #151a28;
	--text-light: #f4f4f4;
	--text-muted: #a0a0a0;
	--accent-color: #c0392b; /* Deep Wine Red */
	--font-heading: "Cinzel", serif;
	--font-body: "Lato", sans-serif;
	--transition: all 0.3s ease;
}

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

body {
	font-family: var(--font-body);
	background-color: var(--bg-color);
	color: var(--text-light);
	line-height: 1.6;
}

h1,
h2,
h3 {
	font-family: var(--font-heading);
	color: var(--primary-color);
	font-weight: 700;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.section {
	padding: 80px 0;
}

.section-title {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.section-subtitle {
	text-align: center;
	color: var(--text-muted);
	margin-bottom: 50px;
	font-size: 1.2rem;
}

/* Header */
.header {
	background-color: rgb(11 15 25 / 0%);
	padding: 20px 0;
	position: fixed;
	width: 100%;
	z-index: 1000;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	/* border-bottom: 1px solid rgba(212, 175, 55, 0.2); */
}

.nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
}

.logo img {
	height: 60px;
	width: auto;
	border-radius: 50px;
}

/* Hamburger Menu */
.hamburger {
	display: none;
	cursor: pointer;
	font-size: 1.8rem;
	color: var(--primary-color);
}

.nav-links {
	display: flex;
	gap: 30px;
	align-items: center;
	transition: var(--transition);
}
.nav-links a {
	color: var(--text-light);
	font-weight: 400;
	text-transform: uppercase;
	font-size: 0.9rem;
	transition: var(--transition);
}

.nav-links a:hover {
	color: var(--primary-color);
}

.btn-nav {
	border: 1px solid var(--primary-color);
	padding: 8px 20px;
	border-radius: 4px;
}

.btn-nav:hover {
	background-color: var(--primary-color);
	color: var(--bg-color) !important;
}

/* Hero Section */
.hero {
	height: 100vh;

	/* Background managed by JS */
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden; /* Ensure images don't overflow */
}

/* Layer 1: Dynamic Background Images */
.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.hero-bg div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.5s ease-in-out;
}

.hero-bg div.active {
	opacity: 1;
}

/* Layer 2: Blur/Overlay */
.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background: linear-gradient(
		to bottom,
		rgba(11, 15, 25, 0.4),
		rgba(11, 15, 25, 0.8)
	);
	backdrop-filter: blur(5px); /* Blur effect requested */
	-webkit-backdrop-filter: blur(5px);
}

/* Layer 3: Content */
.hero-content {
	position: relative;
	z-index: 2; /* Content on top */
	max-width: 800px;
}

.hero-subtitle {
	font-size: 1.2rem;
	text-transform: uppercase;
	letter-spacing: 4px;
	color: var(--text-muted);
	display: block;
	margin-bottom: 20px;
}

.hero-title {
	font-size: 4rem;
	margin-bottom: 20px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	line-height: 1.2;
}

.hero-slogan {
	font-size: 1.5rem;
	margin-bottom: 40px;
	font-style: italic;
	color: #e0e0e0;
}

.btn {
	display: inline-block;
	padding: 15px 40px;
	border-radius: 2px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: var(--transition);
	border: none;
}

.btn-primary {
	background-color: var(--primary-color);
	color: #000;
}

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

/* Services */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.service-card {
	background-color: var(--card-bg);
	padding: 30px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	transition: var(--transition);
}

.service-card:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color);
}

.service-card .icon {
	font-size: 2.5rem;
	margin-bottom: 20px;
}

.service-card h3 {
	margin-bottom: 15px;
	font-size: 1.3rem;
	color: var(--text-light); /* Keep headings light in cards for readability */
}

/* Tours */
.tours-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 40px;
}

.tour-card {
	background-color: var(--card-bg);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	transition: var(--transition);
}

.tour-card:hover {
	transform: scale(1.02);
}

.card-image {
	height: 250px;
	background-color: #2c3e50; /* Fallback */
	background-size: cover;
	background-position: center;
	position: relative;
}

/* Media wrapper for videos and iframes */
.card-media-wrapper {
	width: 100%;
	height: 250px;
	position: relative;
	background-color: #000;
}

.card-media-wrapper iframe,
.card-media-wrapper video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-media-wrapper iframe {
	border: none;
}

/* Hide video controls by default, show on hover */
.card-media-wrapper video {
	opacity: 1;
}

.card-media-wrapper video::-webkit-media-controls {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card-media-wrapper:hover video::-webkit-media-controls {
	opacity: 1;
}

/* Firefox */
.card-media-wrapper video::-moz-media-controls {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card-media-wrapper:hover video::-moz-media-controls {
	opacity: 1;
}

.badge {
	position: absolute;
	top: 20px;
	right: 20px;
	background-color: var(--primary-color);
	color: #000;
	padding: 5px 15px;
	font-weight: 700;
	border-radius: 20px;
	font-size: 0.8rem;
	text-transform: uppercase;
}

.card-content {
	padding: 30px;
}

.card-content h3 {
	margin-bottom: 10px;
	color: var(--primary-color);
}

.card-content p {
	color: var(--text-muted);
	margin-bottom: 20px;
}

.card-features li {
	margin-bottom: 8px;
	position: relative;
	padding-left: 20px;
	color: #ccc;
}

/* Tour Card Specifics */
.tour-subtitle {
	color: var(--primary-color);
	font-weight: 700;
	margin-bottom: 10px;
	font-size: 1.1rem;
}

.card-price {
	margin: 20px 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.price-value {
	display: block;
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
}

.price-currency {
	font-size: 1rem;
	color: var(--text-muted);
}

.price-info {
	display: block;
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-top: 5px;
}

.btn-tour-details {
	width: 100%;
	background-color: transparent;
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
}

.btn-tour-details:hover {
	background-color: var(--primary-color);
	color: #000;
}

/* Text Modal (Tour Details) */
.modal {
	position: fixed;
	z-index: 2000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	backdrop-filter: blur(5px);
}

.modal.active {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background-color: var(--card-bg);
	width: 90%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--primary-color);
	position: relative;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.modal-close {
	position: absolute;
	top: 20px;
	right: 25px;
	font-size: 2rem;
	cursor: pointer;
	color: var(--text-muted);
	transition: var(--transition);
	z-index: 10;
}

.modal-close:hover {
	color: var(--primary-color);
}

.modal-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 40px;
	margin-top: 20px;
}

.modal-info h2 {
	margin-bottom: 20px;
	font-size: 2rem;
	border-bottom: 1px solid rgba(212, 175, 55, 0.3);
	padding-bottom: 15px;
}

.modal-info h3 {
	color: var(--text-light);
	margin-bottom: 15px;
}

.modal-description {
	margin-bottom: 30px;
	font-size: 1.1rem;
	line-height: 1.8;
}

.menu-section {
	background-color: rgba(0, 0, 0, 0.2);
	padding: 20px;
	border-radius: 8px;
	border-left: 3px solid var(--primary-color);
}

.menu-section h4 {
	color: var(--primary-color);
	margin-bottom: 15px;
	font-size: 1.2rem;
}

/* Wineries Section in Modal */
.wineries-section {
	margin-bottom: 30px;
}

.wineries-section h4 {
	color: var(--primary-color);
	margin-bottom: 15px;
	font-size: 1.2rem;
}

.wineries-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.winery-card {
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.winery-image {
	width: 100%;
	height: 100px;
	background-size: cover;
	background-position: center;
}

.winery-info {
	padding: 15px;
}

.winery-info h5 {
	font-size: 1rem;
	margin-bottom: 10px;
	color: var(--text-light);
}

.winery-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.btn-icon {
	font-size: 0.8rem;
	color: var(--text-muted);
	text-decoration: none;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 8px;
}

.btn-icon:hover {
	color: var(--primary-color);
}

.menu-steps li {
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-steps li:last-child {
	border-bottom: none;
}

.modal-image img {
	width: 100%;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.modal-actions {
	margin-top: 30px;
	text-align: right;
}

@media (max-width: 768px) {
	.modal-grid {
		grid-template-columns: 1fr;
	}

	.modal-content {
		padding: 30px 20px;
	}

	.modal-image {
		order: -1; /* Image on top on mobile */
		max-height: 300px;
		overflow: hidden;
	}

	.modal-image img {
		height: 100%;
		object-fit: cover;
	}

	.wineries-grid {
		grid-template-columns: 1fr;
	}
}

/* Gallery */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 15px;
}

.gallery-item {
	height: 250px;
	border-radius: 8px;
	cursor: pointer;
	transition: var(--transition);
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.gallery-item:hover {
	transform: scale(1.03);
	border-color: var(--primary-color);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Booking */
.booking {
	background: linear-gradient(rgba(11, 15, 25, 0.8), rgba(11, 15, 25, 0.8)),
		url("assets/img/hero-reference.png") center/cover;
	background-attachment: fixed;
}

.booking-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	background-color: rgba(21, 26, 40, 0.95);
	padding: 50px;
	border-radius: 12px;
	border: 1px solid var(--primary-color);
}

.booking-content {
	flex: 1;
	min-width: 300px;
	margin-right: 40px;
}

.booking-content h2 {
	text-align: left;
	margin-bottom: 20px;
}

.contact-info {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-top: 20px;
	font-weight: 700;
}

.booking-form-wrapper {
	flex: 1;
	min-width: 300px;
}

.booking-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: var(--text-muted);
	font-size: 0.9rem;
	text-transform: uppercase;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 12px;
	background-color: rgba(0, 0, 0, 0.3);
	border: 1px solid #444;
	border-radius: 4px;
	color: var(--text-light);
	font-family: var(--font-body);
	font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
	outline: none;
	border-color: var(--primary-color);
}

/* Date input calendar icon - make it visible */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
}

.btn-whatsapp {
	background-color: #25d366;
	color: white;
	font-size: 1.1rem;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.btn-whatsapp:hover {
	background-color: #128c7e;
}

/* Footer */
.footer {
	background-color: #05070a;
	padding: 50px 0 20px;
	text-align: center;
	border-top: 1px solid #222;
}

.footer-brand .footer-logo {
	height: 80px; /* Slightly larger in footer */
	width: auto;
	margin-bottom: 15px;
}

.footer-logo {
	border-radius: 50px;
}

.social-links {
	margin: 20px 0;
}

.social-links a {
	color: var(--text-muted);
	font-size: 1.5rem;
	margin: 0 10px;
	transition: var(--transition);
}

.social-links a:hover {
	color: var(--primary-color);
}

.footer-contact {
	margin: 30px 0;
	color: var(--text-muted);
}

.footer-copyright {
	font-size: 0.9rem;
	color: #555;
	margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
	.header {
		position: relative; /* Unstick header on mobile to avoid covering content if menu is long */
	}

	.hamburger {
		display: block;
	}

	.nav-links {
		position: fixed;
		top: 80px; /* Adjust based on header height */
		left: -100%;
		width: 100%;
		height: calc(100vh - 80px);
		background-color: rgba(11, 15, 25, 0.98);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 40px;
		transition: 0.4s ease;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

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

	.nav-links a {
		font-size: 1.5rem;
	}

	.hero-title {
		font-size: 2.5rem;
	}

	.booking-container {
		padding: 30px;
		flex-direction: column;
		gap: 40px;
	}

	.booking-content {
		margin-right: 0;
		text-align: center;
	}

	.booking-content h2 {
		text-align: center;
	}
}

/* Lightbox Modal */
.lightbox {
	position: fixed;
	z-index: 2000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
}

.lightbox.active {
	opacity: 1;
	visibility: visible;
}

.lightbox-content {
	max-width: 90%;
	max-height: 90%;
	border: 2px solid var(--primary-color);
	border-radius: 4px;
	box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: var(--text-light);
	font-size: 3rem;
	cursor: pointer;
	transition: var(--transition);
}

.lightbox-close:hover {
	color: var(--primary-color);
}

/* Booking Popup */
.booking-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	animation: fadeIn 0.3s ease;
}

.booking-popup {
	background: linear-gradient(
		135deg,
		rgba(30, 30, 40, 0.98),
		rgba(20, 20, 30, 0.98)
	);
	border: 1px solid rgba(212, 175, 55, 0.3);
	border-radius: 16px;
	padding: 30px;
	max-width: 400px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.booking-popup h3 {
	color: var(--primary-color);
	font-family: var(--font-heading);
	margin-bottom: 10px;
	font-size: 1.4rem;
}

.booking-popup h3 i {
	margin-right: 8px;
}

.popup-tour-name {
	color: var(--text-light);
	font-size: 1.1rem;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-form-group {
	margin-bottom: 20px;
}

.popup-form-group label {
	display: block;
	color: var(--text-muted);
	margin-bottom: 8px;
	font-size: 0.9rem;
}

.popup-input {
	width: 100%;
	padding: 12px 15px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: var(--text-light);
	font-size: 1.1rem;
	text-align: center;
	transition: border-color 0.3s ease;
}

.popup-input:focus {
	outline: none;
	border-color: var(--primary-color);
}

.popup-price-info,
.popup-price-total {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.popup-price-info span,
.popup-price-total span {
	color: var(--text-muted);
}

.popup-price-info .price-value,
.popup-price-total .total-value {
	color: var(--text-light);
	font-weight: 600;
}

.popup-price-total .total-value {
	color: var(--primary-color);
	font-size: 1.2rem;
}

.popup-actions {
	display: flex;
	gap: 12px;
	margin-top: 25px;
}

.popup-actions .btn-secondary {
	flex: 1;
	padding: 12px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--text-muted);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.popup-actions .btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-light);
}

.popup-actions .btn-whatsapp {
	flex: 2;
}
