/* -------------------------
   Header / Navigation (Coffee Theme)
   ------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #4b2e1e;      /* rich coffee brown */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Logo */
header .logo {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #ffce91;           /* latte/cream accent */
  font-family: 'Georgia', serif;
}

/* Navigation links */
header nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

header nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s, border-bottom 0.3s;
  padding-bottom: 3px;
}

header nav ul li a:hover {
  color: #ffce91;           /* cream accent on hover */
  border-bottom: 2px solid #ffce91;
}

/* Hamburger menu (hidden on desktop) */
.menu-toggle {
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  color: #ffce91;
}

/* -------------------------
   Mobile Responsive Nav
   ------------------------- */
@media (max-width: 768px) {
  header nav ul {
    display: none;
    flex-direction: column;
    background: #4b2e1e;
    position: absolute;
    top: 65px;
    right: 0;
    width: 220px;
    padding: 16px;
    border-radius: 0 0 0 8px;
    box-shadow: -2px 4px 8px rgba(0,0,0,0.25);
  }

  header nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  header nav ul li {
    margin-bottom: 12px;
  }
}

/* -------------------------
   Hero Section
   ------------------------- */
.hero {
  background: url('./images/bannermine.png') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  min-height: 90vh; /* almost full screen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Dark overlay for readability */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Content sits above overlay */
.hero h1,
.hero p,
.hero button {
  position: relative;
  z-index: 2;
}

/* Title */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffce91;   /* coffee cream */
  font-family: 'Georgia', serif;
}

/* Subtitle */
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
}

/* Button */
.hero button {
  background-color: #ffce91;
  color: #4b2e1e;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.hero button:hover {
  background-color: #e6b87d;
  transform: scale(1.05);
}

/* -------------------------
   Hero Text + Images Section
   ------------------------- */
.hero-text-card {
  padding: 3rem 2rem;  /* reduced from 4rem for smaller height */
  background: url("./images/new/coffee-bg.jpg") no-repeat center center/cover;
  position: relative;
  color: #3e2723;
}

.hero-text-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 245, 230, 0.85);
  z-index: 1;
}

.hero-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-card-text {
  flex: 1 1 45%;
  font-size: 1.05rem;
  color: #3e2723;
  line-height: 1.6;
}

.hero-card-text h2 {
  font-size: 2rem;
  color: #4b2e1e;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* CTA Button */
.hero-card-text .cta-btn {
  display: inline-block;
  margin-top: 1.2rem;
  background: #ffce91;
  color: #4b2e1e;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero-card-text .cta-btn:hover {
  background: #e6b87d;
  transform: translateY(-2px);
}

/* Images */
.hero-card-images {
  flex: 1 1 45%;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-card-images img {
  width: 100%;
  max-width: 250px;   /* controls width */
  max-height: 180px;  /* reduces height */
  border-radius: 10px;
  object-fit: cover;  /* prevents distortion */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.hero-card-images img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-card {
    flex-direction: column;
    text-align: center;
  }

  .hero-card-images {
    justify-content: center;
  }
}

/* -------------------------
   About Section
   ------------------------- */
#about {
  padding: 4rem 2rem;
  background: #fffaf5;
  color: #3e2723;
}

#about h2 {
  text-align: center;
  font-size: 2rem;
  color: #4b2e1e;
  margin-bottom: 2rem;
  font-weight: bold;
}

.about-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 50%;
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-text strong {
  color: #6f4e37;
}

/* Image area with slideshow + dots stacked */
.about-image {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Slideshow container */
/* Base styles for slideshow images */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 450px;      /* desktop size */
  aspect-ratio: 4 / 3;   /* nice ratio for desktop */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* keeps image from stretching */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;   /* stack text and images */
    align-items: center;
    text-align: center;
  }

  .about-text {
    flex: 1 1 100%;
  }

  .slideshow {
    max-width: 100%;          /* take full width of screen */
    aspect-ratio: 16 / 9;     /* wide look for phones */
  }

  .slideshow img {
    object-fit: cover;        /* ensures it crops instead of stretches */
  }

  .slideshow-dots {
    justify-content: center;
    margin-top: 0.8rem;
  }
}

/* -------------------------
   Products Section
   ------------------------- */
#products {
  padding: 4rem 2rem;
  background: #fffaf5; /* light cream background */
  color: #3e2723;      /* deep coffee brown */
  text-align: center;
}

#products h2 {
  font-size: 2.2rem;
  color: #4b2e1e; /* dark roast */
  margin-bottom: 1rem;
  font-weight: bold;
}

#products p {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Grid layout for grinder cards */
.grinder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Individual grinder card */
.grinder-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grinder-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Card title */
.grinder-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #4b2e1e;
  font-weight: bold;
}

/* Card list */
.grinder-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.grinder-card ul li {
  margin-bottom: 0.6rem;
}

/* Coffee image */
.coffee-image {
  display: block;
  margin: 1rem auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.coffee-image:hover {
  transform: scale(1.05);
}

/* Contact Section */
#contact {
  padding: 60px 20px;
  background-color: #f5f2ed; /* light coffee cream */
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  color: #4e342e; /* dark coffee brown */
  margin-bottom: 10px;
}

.contact-intro {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #6d4c41;
}

/* Contact Layout */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #d7ccc8;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #795548; /* coffee highlight */
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .cta-btn {
  background-color: #6d4c41;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form .cta-btn:hover {
  background-color: #4e342e;
}

/* Contact Info */
.contact-info {
  flex: 1;
  min-width: 250px;
  text-align: left;
  font-size: 1rem;
  color: #4e342e;
}

.contact-info h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #3e2723;
}

/* Footer */
footer {
  background-color: #3e2723; /* dark coffee brown */
  color: #f5f2ed; /* light cream */
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Company Info */
.footer-about h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #ffcc80; /* soft coffee accent */
}

.footer-about p {
  margin: 5px 0;
}

/* Links */
.footer-links h4 {
  margin-bottom: 10px;
  color: #ffcc80;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 6px 0;
}

.footer-links ul li a {
  color: #f5f2ed;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #ffcc80;
}

/* Social Media */
.footer-social h4 {
  margin-bottom: 10px;
  color: #ffcc80;
}

.social-icons a img {
  width: 28px;
  margin-right: 10px;
  transition: transform 0.3s;
}

.social-icons a img:hover {
  transform: scale(1.2);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid #6d4c41;
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #d7ccc8;
}

.hero-carousel {
  position: relative;
  height: 100vh; /* can change to 600px */
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.hero-content .btn {
  display: inline-block;
  padding: 12px 24px;
  background: #d2691e;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 3;
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dots .dot {
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
}
.hero-dots .dot.active {
  background: #fff;
}

/* Core Values Section */
.values-section {
  background: #f8f5f2; /* light coffee cream */
  padding: 60px 20px;
  text-align: center;
}

.values-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #4b2e2e; /* dark coffee brown */
  text-transform: uppercase;
  letter-spacing: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.value-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

.value-card h3 {
  color: #6f4e37; /* coffee brown */
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.value-card p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

/* Mobile Responsive Fixes for Hero */
@media (max-width: 768px) {
  .hero-carousel {
    height: 100vh; /* still full screen */
  }

  .hero-content {
    max-width: 90%;
    padding: 0 15px;
    bottom: 12%; /* push text a little lower */
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content .btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    bottom: 10%; /* even lower for tiny phones */
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-content .btn {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}


