/* Bakery Website Styles */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #fceabb, #f8b500);
  color: #5a3e1b;
}

header {
  background: linear-gradient(90deg, #d9b382, #a67c00);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-bottom: 3px solid #a67c00;
}

header h1 {
  font-family: 'Pacifico', cursive;
  font-size: 3rem;
  margin: 0;
  color: #4a2c0a;
  text-shadow: 1px 1px 2px #fff3e6;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #4a2c0a;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 700;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #fff3e6;
  text-shadow: 0 0 5px #fff3e6;
}

.hero {
  background-image: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff3e6;
  text-shadow: 3px 3px 6px #6b4a1a;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  padding: 0 20px;
  border-radius: 0 0 30px 30px;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  background-color: rgba(255, 248, 230, 0.85);
  border-radius: 20px;
  box-shadow: 0 8px 15px rgba(90, 62, 27, 0.3);
}

.featured-products {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.product {
  background-color: #fff3e6;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(90, 62, 27, 0.2);
  flex: 1 1 calc(33% - 20px);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(90, 62, 27, 0.4);
}

.product img {
  max-width: 100%;
  border-radius: 15px;
  border: 3px solid #d9b382;
  box-shadow: 0 2px 8px rgba(166, 124, 0, 0.3);
}

.product h3 {
  margin: 15px 0 10px;
  color: #6b4a1a;
  font-weight: 700;
  font-size: 1.4rem;
}

.custom-cake {
  border: 4px solid #a67c00;
  box-shadow: 0 0 15px #a67c00;
  border-radius: 20px;
}

.testimonials {
  background-color: #d9b382;
  padding: 30px 20px;
  border-radius: 10px;
  color: #4a2c0a;
  font-style: italic;
  margin-top: 40px;
}

footer {
  background: linear-gradient(90deg, #4a2c0a, #2e1b00);
  color: #fff3e6;
  text-align: center;
  padding: 20px 10px;
  margin-top: 60px;
  font-size: 1rem;
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.1);
}

footer a {
  color: #f7e9d7;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
  color: #fff3e6;
}

/* Responsive */

@media (max-width: 768px) {
  .featured-products {
    flex-direction: column;
  }

  nav {
    width: 100%;
    text-align: center;
  }

  nav a {
    display: inline-block;
    margin: 10px 15px;
  }
}

/* Back to top button */

#backToTop {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  font-size: 2rem;
  background-color: #a67c00;
  color: #fff3e6;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(166, 124, 0, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#backToTop:hover {
  background-color: #d9b382;
  box-shadow: 0 8px 25px rgba(217, 179, 130, 0.8);
  color: #4a2c0a;
}

/* Floating Order Now button */

.floating-btn {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 40px;
  z-index: 100;
  background-color: #a67c00;
  color: #fff3e6;
  border: none;
  border-radius: 30px;
  padding: 15px 25px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(166, 124, 0, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
  background-color: #d9b382;
  box-shadow: 0 8px 25px rgba(217, 179, 130, 0.8);
  color: #4a2c0a;
}

/* Fade-in animation */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Contact section styles */

#contact {
  background-color: #f9f1e7;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(166, 124, 0, 0.3);
  margin-top: 40px;
}

#contact h2 {
  color: #a67c00;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 1px 1px 2px #d9b382;
}

#contact form {
  max-width: 600px;
  margin: 0 auto 30px auto;
}

#contact label {
  font-weight: 600;
  color: #6b4a1a;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px 0;
  border: 2px solid #d9b382;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
  border-color: #a67c00;
  outline: none;
}

#contact button {
  background-color: #a67c00;
  color: #fff3e6;
  padding: 12px 30px;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(166, 124, 0, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto;
}

#contact button:hover {
  background-color: #d9b382;
  box-shadow: 0 8px 25px rgba(217, 179, 130, 0.8);
  color: #4a2c0a;
}

/* Special offers box */

.special-offers {
  background-color: #fff3e6;
  border: 2px dashed #a67c00;
  padding: 20px;
  border-radius: 15px;
  max-width: 600px;
  margin: 0 auto 30px auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(166, 124, 0, 0.3);
}

.special-offers h3 {
  color: #a67c00;
  font-weight: 900;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.special-offers p {
  font-size: 1.1rem;
  color: #6b4a1a;
  font-weight: 600;
}
