/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif, 'Segoe UI Emoji', 'Apple Color Emoji';
}

body {
  background-color: white;
  color: #000000;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif, 'Segoe UI Emoji', 'Apple Color Emoji';
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 400;
}

h2 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif, 'Segoe UI Emoji', 'Apple Color Emoji';
  margin-bottom: 30px;
  text-align: center;
  font-weight: 400;
}

h3 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif, 'Segoe UI Emoji', 'Apple Color Emoji';
  font-weight: 400;
}

/* Image */
.ig {
  width: 30px;
  padding-top: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  width: 80%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.thumbnail {
  width: 80%;
  max-width: 300px;
  border-radius: 20px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .logo {
    width: 30vw;
    max-width: 1000px;
  }
}

/* Chapter Header */
.chapter-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #000;
  color: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 1200px;
}

.chapter-header h1 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif, 'Segoe UI Emoji', 'Apple Color Emoji';
  margin: 0;
  font-weight: 400;
  white-space: nowrap;
  font-size: 1.8rem;
}

@media (max-width: 380px) {
  .chapter-header h1 {
    font-size: 1.5rem;
  }
}

/* Content Section */
.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}
.email-section,
.event-section,
.gif-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  background-color: #8B5A6B;
  color: #fff;
  border-radius: 20px;
  width: 100%; /* Ensures they take full width of their container */
  max-width: 1200px; /* Ensures both sections are constrained to the same max width */
  margin: 0 auto 20px; /* Adds 20px margin under the section */
}

.vision-text {
  max-width: 600px;
  text-align: center;
  font-size: 1.1rem;
}

.event-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-title {
  font-family: 'Lora', Georgia, 'Times New Roman', serif, 'Segoe UI Emoji', 'Apple Color Emoji';
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 400;
}

.event-date,
.event-time,
.event-price {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.experience-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Menu Section */
.menu-preview {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin: 40px 0;
}

/* Card Layout - Two Cards Per Row */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(139, 90, 107, 0.3);
}
.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Explicitly creates two columns */
  gap: 30px; /* Gap between cards both horizontally and vertically */
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.card {
  width: 100%; /* Each card takes full width of its grid cell */
  background-color: white;
  color: black;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr; /* Switch to a single column on mobile */
    gap: 20px; /* Smaller gap on mobile */
  }
}

/* Button styling for Learn More buttons */
.card .button {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #000;
  background-color: white;
  color: black;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
  margin-top: auto; /* Pushes button to bottom of card */
}

/* Coffee item styling */
.coffee-item {
  background-color: white;
  color: black;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(139, 90, 107, 0.3);
}

.coffee-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(139, 90, 107, 0.3);
}

.coffee-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.coffee-item h3 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif, 'Segoe UI Emoji', 'Apple Color Emoji';
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 400;
}

.coffee-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Buttons */
.button{
  display: inline-block;
  padding: 12px 24px;
  border: 1px white;
  background-color: white;
  color: black;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
}

.form-submit,
.nav-button {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid white;
  background-color: #8B5A6B;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
}


.form-submit:hover,
.nav-button:hover {
  background-color: white; /* Dusty plum background */
  color: black; /* White text */
  border: 1px solid white; /* Match border to background */
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(139, 90, 107, 0.3); /* Subtle dusty plum shadow */
}

.button:hover{
  background-color: #8B5A6B; /* Dusty plum background */
  color: white; /* White text */
  border-color: #8B5A6B; /* Match border to background */
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(139, 90, 107, 0.3); /* Subtle dusty plum shadow */
}

/* Button Layout */
.button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* RSVP Specific */
.button-rsvp {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Form Styles */
.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  width: 100%;
  max-width: 500px;
}

.form-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #8B5A6B;
  font-size: 1rem;
}

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

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #000;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border-radius: 20px;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .menu-preview {
    flex-direction: column;
    align-items: center;
  }

  .menu-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .button-group,
  .button {
    width: 100%;
  }
}

footer {
  color: black;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
}