/* ====== Global Styles ====== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #FAF3E0;
  scroll-behavior: smooth;
}

/* ====== Navbar ====== */
.navbar {
  background-color: #6B4F3B;
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.navbar h1 { font-size: 1.5rem; }

.nav-links a {
  margin-left: 1.5rem;
  color: white;
  text-decoration: none;
}

.nav-links a:hover { color: #FAF3E0; }

.menu-toggle { 
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ====== Hero Slider ====== */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active { opacity: 1; }

.slide h2 {
  color: white;
  text-align: center;
  font-size: 2rem;
  padding: 10px 20px;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  backdrop-filter: blur(3px);
}

/* ====== Sections ====== */
.section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
  border-bottom: 2px solid #E0D6C3;
}

.light-bg { background: #FAF3E0; }

.section h2 {
  text-align: center;
  color: #3E2723;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 15px;
  color: #6B4F3B;
  font-size: 1.05rem;
}

/* ====== Section Divider with Coffee Icon ====== */
.section-divider {
  text-align: center;
  margin: 1.5rem auto 2rem;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: "";
  display: inline-block;
  width: 70px;
  height: 2px;
  background: #C7A17A;
  vertical-align: middle;
  margin: 0 10px;
  border-radius: 2px;
}

.section-divider i {
  color: #6B4F3B;
  font-size: 1.5rem;
  animation: steam 3s ease-in-out infinite;
}

@keyframes steam {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-4px); opacity: 0.7; }
}

/* ====== Grid ====== */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
}

/* Product & Machine Cards with Shadows + Hover Effects */
.card, .machine-card {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .machine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  border-radius: 0.5rem;
  cursor: pointer;
}

.card h3 {
  color: #3E2723;
  margin-top: 0.5rem;
}

.card.small img { border-radius: 50%; }

/* ====== Machines ====== */
.machine-card .img-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.machine-card .img-row img {
  width: 50%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.machine-card .img-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.machine-card h3 {
  color: #3E2723;
  margin-bottom: 0.5rem;
}

.machine-card ul {
  text-align: left;
  color: #6B4F3B;
  padding-left: 1rem;
}

/* ====== Lightbox for Machine Images ====== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.lightbox:target {
  display: flex;
}

/* ====== Contact Section ====== */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: center;
}

.contact-list li {
  margin: 0.5rem 0;
  color: #3E2723;
}

.whatsapp-btn {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  margin-top: 1rem;
}

/* ====== Floating WhatsApp Button ====== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
}

/* ====== Floating Coffee Bag ====== */
.floating-coffee {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 110px;
  height: auto;
  z-index: 500;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ====== Footer ====== */
.footer {
  background: #3E2723;
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
  border-top: 4px solid #6B4F3B;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1000px;
  margin: auto;
}

.footer-grid div {
  flex: 1;
  min-width: 150px;
  text-align: left;
}

.footer-grid h3 { margin-bottom: 0.5rem; }

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin: 0.25rem 0;
  color: #ccc;
}

.copy {
  margin-top: 1rem;
  color: #aaa;
  font-size: 0.85rem;
}

/* ====== Responsive Design ====== */
@media (max-width:768px){
  .nav-links {
    display: none;
    flex-direction: column;
    background: #6B4F3B;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }

  .nav-links.show { display: flex; }
  .menu-toggle { display: block; }
  .machine-card .img-row { flex-direction: column; }
}
/* ====== Lightbox Image Popup ====== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
