/* styles.css */

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #fffaf6;
  color: #2e2e2e;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem; /* Reduced horizontal padding */
  background-color: #f4e8e1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem; /* Slightly reduced gap */
}

.nav-links a {
  text-decoration: none;
  color: #3e2c29;
  font-weight: 700;
}

.hero {
  background: url('images/bgheader-2.PNG') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px; /* Prevent content overlap with sticky navbar */
}

.hero .overlay {
  background-color: rgba(255, 250, 246, 0.8);
  padding: 2rem;
  text-align: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #3e2c29;
  margin-bottom: 1rem;
}

.btn, .btn-outline {
  padding: 0.75rem 1.5rem;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.btn {
  background-color: #c69476;
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: #c69476;
  border: 2px solid #c69476;
}

section {
  padding: 4rem 1rem; /* Reduced horizontal padding */
  text-align: center;
}

.features, .products, .reviews {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem; /* Slightly reduced gap */
  margin-top: 2rem;
}

.features div, .product, .review {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 250px;
}

.products {
  display: flex;
  gap: 15px; /* Further reduced gap */
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product {
  text-align: center;
  max-width: 300px;
}

.image-container {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.products img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.newsletter {
  background-color: #f4e8e1;
  padding: 4rem 1rem; /* Reduced horizontal padding */
  text-align: center; /* Ensure text is centered */
}

.newsletter form {
  display: flex;
  flex-direction: column; /* Stack elements on smaller screens */
  align-items: center; /* Center items horizontally */
  gap: 0.5rem; /* Space between elements */
}

.newsletter input[type="email"] {
  padding: 0.75rem;
  width: 100%; /* Make input take full width of its container */
  max-width: 250px; /* But don't exceed this width */
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 0; /* Remove right margin */
}

.newsletter form input[type="submit"] {
  padding: 0.75rem 1.5rem;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  color: white;
  background-color: #c69476;
  text-decoration: none;
  font-size: 1rem;
}

.connect-us {
  text-align: center;
  padding: 3rem 1rem; /* Reduced horizontal padding */
  background-color: #fff; /* Optional: Add a background color */
}

.connect-us h2 {
  margin-bottom: 1.5rem;
  color: #3e2c29;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px; /* Slightly reduced gap */
}

.social-icons a {
  color: #c69476;
  font-size: 2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #3e2c29;
}

.footer {
  text-align: center;
  padding: 2rem 1rem; /* Reduced horizontal padding */
  background-color: #e6d7cf;
  font-size: 0.9rem;
  color: #5a4a45;
}

.footer a {
  color: #5a4a45;
  text-decoration: underline;
  margin: 0 0.5rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
  max-width: 400px;
}

.modal-box p {
  font-size: 1.1rem;
  color: #333;
}

/* Modal backdrop */
#confirmationModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* dim background */
  justify-content: center;
  align-items: center;
}

/* Modal message box */
#confirmationModal #modalMessage {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  max-width: 90%;
  width: 400px;
}

#confirmationModal > div {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  font-size: 1.1rem;
}