/* Global Styles */
:root {
	--primary: #6F4E37;
	--secondary: #C4A484;
	--light: #F5F5DC;
	--dark: #3E2723;
	--white: #FFFFFF;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background-color: var(--light);
	color: var(--dark);
	line-height: 1.6;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Header Styles */
header {
	background-color: var(--white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
}

.logo {
	font-size: 24px;
	font-weight: 700;
	color: var(--primary);
	text-decoration: none;
}

.logo span {
	color: var(--secondary);
}

.logo img {
	max-width: 10%;
	/* control logo size */
	< !-- margin-bottom: 5px;
	/* spacing below logo */
	-->
}

.nav-links {
	display: flex;
	list-style: none;
}

.nav-links li {
	margin-left: 30px;
}

.nav-links a {
	text-decoration: none;
	color: var(--dark);
	font-weight: 500;
	transition: color 0.3s;
}

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

.mobile-menu {
	display: none;
	font-size: 24px;
	cursor: pointer;
}

/* Hero Section */
.hero {
	background-size: cover;
	background-position: center;
	height: 80vh;
	display: flex;
	align-items: center;
	text-align: center;
	color: var(--white);
	margin-top: 70px;
	position: relative;
}

.hero-slides {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

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

.hero-slide.active {
	opacity: 1;
}

.hero-slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

.hero h1 {
	font-size: 48px;
	margin-bottom: 20px;
}

.hero p {
	font-size: 20px;
	margin-bottom: 30px;
}

.btn {
	display: inline-block;
	background-color: var(--primary);
	color: var(--white);
	padding: 12px 30px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.3s;
	border: none;
	cursor: pointer;
}

.btn:hover {
	background-color: var(--dark);
}

.btn:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
}

/* Products Section */
.products {
	padding: 80px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 50px;
}

.section-title h2 {
	font-size: 36px;
	color: var(--primary);
	margin-bottom: 15px;
}

.section-title p {
	color: var(--dark);
	max-width: 700px;
	margin: 0 auto;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.product-card {
	background-color: var(--white);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
}

.product-card:hover {
	transform: translateY(-10px);
}

.product-img {
	height: 400px;
	overflow: hidden;
}

.product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.product-card:hover .product-img img {
	transform: scale(1.1);
}

.product-info {
	padding: 20px;
}

.product-info h3 {
	font-size: 22px;
	margin-bottom: 10px;
	color: var(--primary);
}

.product-info p {
	color: var(--dark);
	margin-bottom: 15px;
}

.product-info .price {
	font-size: 20px;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 20px;
}

/* Features Section */
.features {
	padding: 80px 0;
	background-color: var(--white);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 30px;
}

.feature-card {
	text-align: center;
	padding: 30px 20px;
	border-radius: 10px;
	background-color: var(--light);
	transition: transform 0.3s;
}

.feature-card:hover {
	transform: translateY(-10px);
}

.feature-icon {
	font-size: 50px;
	color: var(--primary);
	margin-bottom: 20px;
}

.feature-card h3 {
	font-size: 22px;
	margin-bottom: 15px;
	color: var(--primary);
}

/* Contact Section */
.contact {
	padding: 80px 0;
}

.contact-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
}

.contact-info h3 {
	font-size: 24px;
	margin-bottom: 20px;
	color: var(--primary);
}

.contact-info p {
	margin-bottom: 15px;
}

.contact-info .info-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.contact-info .info-item i {
	margin-right: 15px;
	color: var(--primary);
	font-size: 20px;
}

.contact-form {
	background-color: var(--white);
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
	font-size: 24px;
	margin-bottom: 20px;
	color: var(--primary);
}

.form-group {
	margin-bottom: 20px;
	position: relative;
	/* For error messages */
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(111, 78, 55, 0.2);
}

.form-group .error-message {
	color: #e74c3c;
	font-size: 14px;
	margin-top: 5px;
	display: none;
}

.form-group input.invalid,
.form-group textarea.invalid {
	border-color: #e74c3c;
}

.form-group textarea {
	height: 150px;
	resize: vertical;
}

#map {
	height: 400px;
	width: 100%;
	border-radius: 10px;
	margin-top: 30px;
	border: 1px solid #ddd;
}

#map iframe {
	height: 400px;
	width: 100%;
	border-radius: 10px;
	border: 1px solid #ddd;
}

/* Footer */
footer {
	background-color: var(--dark);
	color: var(--white);
	padding: 50px 0 20px;
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}

.footer-col h3 {
	font-size: 20px;
	margin-bottom: 20px;
	color: var(--secondary);
}

.footer-col ul {
	list-style: none;
}

.footer-col ul li {
	margin-bottom: 10px;
}

.footer-col ul li a {
	color: var(--light);
	text-decoration: none;
	transition: color 0.3s;
}

.footer-col ul li a:hover {
	color: var(--secondary);
}

.social-links {
	display: flex;
	gap: 15px;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: var(--white);
	transition: background-color 0.3s;
}

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

.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 14px;
}

/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
	background-color: var(--white);
	margin: 10% auto;
	padding: 30px;
	border-radius: 10px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
	position: relative;
	animation: modalopen 0.5s;

	max-height: 80vh;
	/* modal won't exceed 80% of viewport height */
	overflow-y: auto;
	/* enable vertical scroll inside */

}

@keyframes modalopen {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.close-modal {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 24px;
	color: var(--dark);
	cursor: pointer;
	transition: color 0.3s;
}

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

.modal h3 {
	font-size: 24px;
	margin-bottom: 20px;
	color: var(--primary);
	text-align: center;
}

.modal .loading-spinner {
	display: none;
	border: 4px solid rgba(0, 0, 0, 0.1);
	border-left-color: var(--primary);
	border-radius: 50%;
	width: 24px;
	height: 24px;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive Styles */
@media (max-width: 768px) {
	.nav-links {
		display: flex;
		flex-direction: column;
		align-items: center;
		background-color: var(--white);
		position: absolute;
		top: 70px;
		left: 0;
		width: 100%;
		max-height: 0;
		/* hidden by default */
		overflow: hidden;
		/* hide links when collapsed */
		transition: max-height 0.4s ease-in-out;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
		z-index: 1500;
	}

	.nav-links.active {
		max-height: 300px;
		/* enough space for menu items */
	}

	.nav-links li {
		margin: 15px 0;
	}

	.mobile-menu {
		display: block;
		cursor: pointer;
	}

	.hero h1 {
		font-size: 36px;
	}

	.hero p {
		font-size: 18px;
	}

	.contact-container {
		grid-template-columns: 1fr;
		/* Stack columns on small screens */
	}


	/* Default: two columns */
	.details-row,
	.details-header {
		display: grid;
		grid-template-columns: 40% 60%;
		gap: 10px;
	}

	/* On mobile screens (max 600px) → stack vertically */
	@media (max-width: 600px) {

		.details-row,
		.details-header {
			grid-template-columns: 1fr;
			/* single column */
			text-align: left;
		}

		.details-header span {
			display: block;
			font-weight: bold;
			padding: 5px 0;
		}

		.details-row span:first-child {
			font-weight: 600;
			color: var(--primary);
		}
	}


}
}