/* -------------------------------------- */
/* General Styles */
/* -------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto Slab", serif;
  background-color: #f4f4f4;
}
ul {
  list-style-type: none;
  display: flex;
}
li {
  margin-left: 20px;
}
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: #ffccbc;
}

/* -------------------------------------- */
/* Logo & Branding (Common for Header & Footer) */
/* -------------------------------------- */
.logo-link {
  text-decoration: none;
  color: inherit;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  width: 70px;
  margin-right: 10px;
}
.header-title {
  font-size: 24px;
  font-weight: 700;
  color: #d7ccc8;
}

/* -------------------------------------- */
/* Header */
/* -------------------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #422923;
  padding: 5px 20px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header a {
  text-decoration: none;
  color: #d7ccc8;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s ease;
}

/* -------------------------------------- */
/* Footer */
/* -------------------------------------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #422923;
  padding: 10px 20px;
  color: white;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.footer-contact p {
  margin: 5px 0;
  color: #d7ccc8;
  font-weight: 500;
  font-size: 18px;
}

.footer-contact a {
  color: #d7ccc8;
  text-decoration: none;
}
.footer-contact a:hover {
  color: #ffccbc;
}

/* -------------------------------------- */
/* Hero Section */
/* -------------------------------------- */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.hero p {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
}

/* -------------------------------------- */
/* CTA Button */
/* -------------------------------------- */
.cta-button {
  padding: 10px 20px;
  background-color: #ff6f61;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}
.cta-button:hover {
  background-color: #ff8a65;
}

/* -------------------------------------- */
/* Promotions */
/* -------------------------------------- */
.promotions {
  background-color: #f8f4f0;
  padding: 20px;
  text-align: center;
}
.promotions h2 {
  font-size: 36px;
  color: #422923;
  margin-bottom: 40px;
}
.promotion {
  background-color: #d7ccc8;
  border-radius: 10px;
  padding: 20px;
  margin: 15px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.promotion:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.promotion h3 {
  font-size: 22px;
  color: #422923;
  margin-bottom: 10px;
}
.promotion p {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

/* -------------------------------------- */
/* Coffee Education Section */
/* -------------------------------------- */
.coffee-education {
  background-color: #f8f4f0;
  padding: 40px 20px;
  text-align: center;
}
.coffee-education h2 {
  font-size: 36px;
  color: #422923;
  margin-bottom: 40px;
}
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.education-item {
  background-color: #d7ccc8;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.coffee-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}
.education-item h3 {
  font-size: 22px;
  color: #422923;
  margin-bottom: 10px;
}
.education-item p {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}
.education-item a {
  text-decoration: none;
  color: inherit;
}
.education-item a:hover h3 {
  color: #ffab91;
}

/* -------------------------------------- */
/* Gallery */
/* -------------------------------------- */
.gallery {
  text-align: center;
  margin: 40px 0;
  position: relative;
}
.gallery h2 {
  font-size: 36px;
  color: #422923;
  margin-bottom: 40px;
}
.gallery-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 65%;
  margin: 0 auto;
  overflow: hidden;
}
.gallery-slide {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}
.gallery-slide img {
  min-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}
.prev-arrow {
  left: 10px;
}
.next-arrow {
  right: 10px;
}
.arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* -------------------------------------- */
/* Newsletter Section (Same width & background as About Us, centered items) */
/* -------------------------------------- */
.newsletter-section {
  background-color: #e6dedb; /* Same as other forms */
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  max-width: 800px; /* Matches about-us section width */
  text-align: center;
}

.newsletter-section h2 {
  font-size: 36px;
  color: #422923;
  margin-bottom: 20px;
}
.newsletter-section p {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Center newsletter form items */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.newsletter-form .form-group {
  margin-bottom: 15px;
  width: 100%;
}
.newsletter-form label {
  font-size: 16px;
  color: #422923;
  margin-bottom: 5px;
  display: block;
}

/* -------------------------------------- */
/* Menu Suggestion Section */
/* -------------------------------------- */
.menu-suggestion-section {
  background-color: #e6dedb;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}
.menu-suggestion-section h2 {
  font-size: 36px;
  color: #422923;
  margin-bottom: 20px;
}
.menu-suggestion-section p {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Suggestion Form */
.suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.suggestion-form .form-group {
  margin-bottom: 15px;
}
.suggestion-form label {
  font-size: 16px;
  color: #422923;
  margin-bottom: 5px;
  display: block;
}
.suggestion-form textarea {
  resize: vertical;
}

/* -------------------------------------- */
/* Feedback Section */
/* -------------------------------------- */
.feedback-section {
  background-color: #d7ccc8;
  padding: 40px 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  max-width: 800px;
}
.feedback-section h2 {
  font-size: 36px;
  color: #422923;
  margin-bottom: 20px;
}
.feedback-section p {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
}

/* Feedback Form */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feedback-form .form-group {
  text-align: left;
  margin-bottom: 15px;
}
.feedback-form label {
  font-size: 16px;
  color: #422923;
  margin-bottom: 5px;
  display: block;
}
.feedback-form textarea {
  resize: none;
}

/* Shared form input styling for multiple sections */
.newsletter-form input,
.newsletter-form select,
.suggestion-form input,
.suggestion-form textarea,
.suggestion-form select,
.feedback-form input,
.feedback-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  border: 1px solid #d7ccc8;
  border-radius: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus states for shared form elements */
.newsletter-form input:focus,
.newsletter-form select:focus,
.suggestion-form input:focus,
.suggestion-form textarea:focus,
.suggestion-form select:focus,
.feedback-form input:focus,
.feedback-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.dropdown-group select:focus {
  border-color: #ff6f61;
  box-shadow: 0 0 5px rgba(255, 111, 97, 0.5);
}

/* Hover states for some forms */
.newsletter-form input:hover,
.newsletter-form select:hover,
.feedback-form input:hover,
.feedback-form textarea:hover {
  border-color: #ffab91;
}

/* Error messages across forms */
.newsletter-form small.error-message,
.suggestion-form small.error-message,
.feedback-form small.error-message,
.error-message {
  display: none;
  font-size: 14px;
  color: #ff6f61;
}

/* Hover and interaction for form elements */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid #ff6f61;
}

/* Password strength indicators */
.password-strength {
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
}
.password-strength.weak {
  color: #ff6f61;
}
.password-strength.moderate {
  color: #f0ad4e;
}
.password-strength.strong {
  color: #4caf50;
}

/* Character counter */
#charCounter {
  font-size: 12px;
  color: #4caf50;
  margin-top: 5px;
}

/* Dropdown group styling */
.dropdown-group {
  text-align: left;
  margin-bottom: 20px;
}
.dropdown-group label {
  font-size: 16px;
  color: #422923;
  margin-bottom: 5px;
  display: block;
}
.dropdown-group select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  border: 1px solid #d7ccc8;
  border-radius: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* -------------------------------------- */
/* Menu Section */
/* -------------------------------------- */
.menu {
  padding: 50px;
  text-align: center;
}
.menu h2 {
  font-size: 36px;
  color: #422923;
  margin-bottom: 40px;
}
.menu table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 50px;
  border-collapse: collapse;
  text-align: left;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.menu th,
.menu td {
  padding: 15px;
  border-bottom: 1px solid #ddd;
}
.menu th {
  background-color: #ffdab9;
  color: #333;
  font-size: 22px;
  text-align: center;
}
.menu td {
  vertical-align: middle;
}
.menu tbody tr {
  transition: box-shadow 0.3s ease;
}
.menu tbody tr:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.menu-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

/* -------------------------------------- */
/* Contact Us Section */
/* -------------------------------------- */
.contact-us {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  color: #422923;
  text-align: center;
}
.contact-us h2 {
  font-size: 36px;
  color: #422923;
  margin-bottom: 40px;
}
.contact-us p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
  text-align: center;
  color: #422923;
}
.contact-info,
.hours,
.social-media,
.visit-us {
  background-color: #e6dedb;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  width: 80%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.contact-info h3,
.hours h3,
.social-media h3,
.visit-us h3 {
  font-size: 24px;
  color: #422923;
  margin-bottom: 20px;
}
.contact-info ul,
.hours ul,
.social-media ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  margin: 0 20px;
}
.contact-info li,
.hours li,
.social-media li {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  margin-left: 0;
}
.contact-info a,
.social-media a {
  color: #ff6f61;
  text-decoration: none;
  transition: color 0.3s;
}
.contact-info a:hover,
.social-media a:hover {
  color: #d7ccc8;
}
.contact-info li i,
.social-media li i {
  margin-right: 10px;
  color: #ff6f61;
}
.social-media ul li a {
  display: flex;
  align-items: center;
}
.social-media i {
  font-size: 24px;
  margin-right: 10px;
  color: #ff6f61;
  transition: color 0.3s;
}
.social-media i:hover {
  color: #d7ccc8;
}
.visit-us iframe {
  width: 100%;
  max-width: 600px;
  height: 450px;
  border: 0;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form {
  background-color: #e6dedb;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  width: 80%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.contact-form h3 {
  font-size: 24px;
  color: #422923;
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  font-size: 18px;
  color: #422923;
  margin: 10px 0 5px;
}

/* -------------------------------------- */
/* Order Section */
/* -------------------------------------- */
.order-section {
  background-color: #e6dedb;
  padding: 20px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.order-section h2 {
  font-family: "Roboto Slab", serif;
  font-size: 2rem;
  color: #422923;
  text-align: center;
  margin-bottom: 15px;
}
.order-form {
  display: flex;
  flex-direction: column;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  font-weight: bold;
  color: #422923;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  padding: 10px;
  border: 1px solid #ff6f61;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}
.form-group textarea {
  resize: vertical;
}
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
}
.radio-group label,
.checkbox-group label {
  margin-bottom: 5px;
}
.cta-button:disabled {
  background-color: #cfcfcf;
  cursor: not-allowed;
}

/* -------------------------------------- */
/* About Us Section */
/* -------------------------------------- */
.about-us {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin: 20px auto;
  max-width: 800px;
}
.about-box {
  background-color: #d7ccc8;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.about-image {
  width: 100%;
  border-radius: 10px;
  margin-top: 20px;
}
.about-us p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #422923;
}
.about-us strong {
  color: #ff6f61;
}
.about-us ol {
  text-align: left;
  margin: 20px auto;
  max-width: 800px;
  padding-left: 20px;
  list-style-position: inside;
}
.about-us li {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.5;
}
.about-us h2 {
  font-size: 36px;
  font-weight: 700;
}
.about-us h3 {
  font-size: 28px;
  margin-top: 30px;
  margin-bottom: 15px;
}
.about-box h4 {
  font-size: 1.5em;
  color: #422923;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.callout {
  background-color: #ffccbc;
  border-left: 5px solid #ff6f61;
  padding: 15px;
  margin: 20px 0;
  font-weight: 600;
}
.about-us ol li::marker {
  color: #ff6f61;
}
.button-container {
  display: flex;
  justify-content: center;
}

/* -------------------------------------- */
/* Responsive Adjustments */
/* -------------------------------------- */
/* Reduce font sizes and paddings on smaller screens, ensure horizontal scroll where needed */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 18px;
  }
  .cta-button {
    font-size: 14px;
    padding: 8px 12px;
  }

  .promotions h2,
  .coffee-education h2,
  .gallery h2,
  .newsletter-section h2,
  .menu-suggestion-section h2,
  .feedback-section h2,
  .menu h2,
  .contact-us h2,
  .about-us h2 {
    font-size: 28px;
  }

  .newsletter-section {
    padding: 20px 10px;
  }
  .newsletter-section p,
  .menu-suggestion-section p,
  .feedback-section p,
  .contact-us p,
  .about-us p {
    font-size: 16px;
  }

  .menu table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 10px;
  }
  .menu th,
  .menu td {
    padding: 10px;
    font-size: 16px;
  }
  .menu-image {
    width: 60px;
    height: 60px;
  }

  .contact-info,
  .hours,
  .social-media,
  .visit-us,
  .contact-form,
  .feedback-section,
  .newsletter-section,
  .about-us,
  .promotions,
  .coffee-education {
    padding: 20px 10px;
  }

  .order-section h2 {
    font-size: 1.5rem;
  }

  .contact-info li,
  .hours li,
  .social-media li,
  .suggestion-form label,
  .newsletter-form label,
  .feedback-form label,
  .contact-form label {
    font-size: 14px;
  }

  .hero {
    padding: 0 10px;
  }
}
