* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Ojuju", sans-serif;
  width: 100vw;
  overflow-x: hidden;
  background-color: #f5e6d3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Section */
.hero {
  background-color: #d75f3c;
  color: white;
  padding: 0px 48px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: -56px;
  align-self: stretch;
  position: relative;
}

.hero-logo {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: 2px;
  display: flex; /* Enables Flexbox */
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  width: 100%; /* Ensure container spans the full width */
  min-height: 200px; /* Give the container some height to see vertical centering */
}

.hero-logo svg {
  width: 100%;
  max-width: 138px; /* Control how big the logo actually is */
  height: auto;
}

/* .hero h1 {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 724;
  line-height: 130%;
  margin-bottom: 40px;
  width: 100%;
  /*max-width: 1416px;*/
/*margin-left: auto;
  margin-right: auto;
} */

.hero h1 {
  font-size: clamp(
    3rem,
    6vw,
    6.5rem
  ); /* Slightly reduced the max size from 8rem */
  font-weight: 724;
  line-height: 1.2; /* Tighter line height often helps fit text better */
  margin-bottom: 40px;
  width: 100%;
  max-width: 960px; /* Adjust this number until it snaps to 2 lines */
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  justify-content: center;
}

.coffee-images {
  display: flex;
  margin-top: -86px;
  margin-bottom: 40px;
  justify-content: space-between;
  position: relative;
  height: clamp(300px, 50vw, 44.3rem);
  width: 100%;
}

.coffee-card {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 848/1131;
  /* object-fit: cover; */
}

.coffee-card.left {
  position: absolute;
  top: 0%;
  left: 0%;
  /* width: clamp(100px, 18vw, 380px); */
}

.coffee-card.middle {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translate(-50%);
  /* width: clamp(120px, 18vw, 400px); */
}

.coffee-card.right {
  position: absolute;
  right: 0%;
  bottom: 10%;
  /* width: clamp(100px, 18vw, 380px); */
}

.hero-tagline {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Email Section */
.email-section {
  background-color: #f5e6d3;
  padding: 40px 20px;
  text-align: center;
  margin: 80px;
}

.email-section p {
  color: #8b5a3c;
  font-size: 40px;
  margin-bottom: 24px;
  font-weight: 724;
}

.email-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 400px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border: 1px solid #d4a574;
  border-radius: 25px;
  font-family: "Ojuju", sans-serif;
  font-size: 14px;
  background: white;
}

.email-form button {
  padding: 12px 30px;
  background-color: #d75f3c;
  color: white;
  border: none;
  border-radius: 25px;
  font-family: "Ojuju", sans-serif;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

.email-form button:hover {
  background-color: #c54f2c;
}

/* What We Do Section */
.what-we-do {
  background-color: #8b4513;
  color: white;
  /* padding: 40px 40px; */
  margin: 0px 48px 0px 48px;
  width: max-content;
}

.what-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  padding: 2.5rem 2.5rem;
}

.what-content h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

.what-content p {
  font-size: 14px;
  line-height: 1.8;
}

.what-image {
  max-width: 700px;
  max-height: 487px;
}

/* Products Section */
.products {
  background-color: #f5e6d3;
  padding: 80px 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.product-item {
  text-align: center;
}

.product-image {
  width: 200px;
  height: 280px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 auto 20px;
  border-radius: 8px;
}

.product-item h3 {
  font-size: 16px;
  color: #8b5a3c;
  margin-bottom: 10px;
  font-weight: 600;
}

.product-item p {
  font-size: 13px;
  color: #8b5a3c;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background-color: #f5e6d3;
  padding: 60px 20px 40px;
  text-align: center;
  /* Define the 'set' width here */
  --svg-width: 345px;
  --svg-aspect: 690 / 400;
}

.footer-logo {
  font-size: 48px;
  color: #d75f3c;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: #8b5a3c;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.footer-copyright {
  font-size: 12px;
  color: #8b5a3c;
  opacity: 0.6;
}

/* Tablet Breakpoint */
@media (max-width: 960px) {
  .coffee-card.left,
  .coffee-card.right {
    display: none;
  }

  .coffee-card.middle {
    position: static !important;
    /* left: 0% !important; */
    transform: translateX(0%) !important;
    width: 100% !important;
    max-width: 400px;
  }

  .coffee-images {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .what-container {
    grid-template-columns: 1fr;
  }

  .coffee-images {
    gap: 15px;
    height: auto;
    justify-content: center;
  }

  .coffee-card {
    position: relative !important;
    width: 100% !important;
    max-width: 200px;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }

  .coffee-card.left,
  .coffee-card.middle,
  .coffee-card.right {
    position: relative !important;
    transform: none !important;
  }

  .coffee-card.left,
  .coffee-card.right {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
  .hero {
    padding: 30px 15px 40px;
  }

  .coffee-images {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: auto;
    justify-content: center;
  }

  .coffee-card {
    position: relative !important;
    width: 100% !important;
    max-width: 180px;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }

  .coffee-card.left,
  .coffee-card.middle,
  .coffee-card.right {
    position: relative !important;
    transform: none !important;
  }

  .coffee-card.left,
  .coffee-card.right {
    display: none;
  }

  .email-form {
    flex-direction: column;
    align-items: stretch;
  }

  .email-form input {
    min-width: auto;
  }

  .what-we-do {
    padding: 40px 15px;
  }

  .products {
    padding: 50px 15px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    display: none;
  }

  .footer-logo {
    font-size: 36px;
  }

  .footer svg {
    max-width: var(--svg-width);
    aspect-ratio: var(--svg-aspect);
    max-width: 100%;
    height: auto;
  }

  /* Tablet Breakpoint */
  @media (max-width: 768px) {
    .footer {
      --svg-width: 280px; /* The SVG automatically shrinks to this */
    }
  }

  /* Mobile Breakpoint */
  @media (max-width: 480px) {
    .footer {
      --svg-width: 200px; /* The SVG shrinks further */
    }
  }

  /* Container for the newsletter section */
  .newsletter-container {
    text-align: center;
    margin-top: 40px;
  }

  /* Styling for the text paragraph */
  .newsletter-text {
    color: #8b5a3c;
    font-size: 14px;
    margin-bottom: 20px;
  }
}
