/* General Layout */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

header {
    background-color: #2e7d32;
    color: white;
    text-align: center;
    padding: 2.5em 0; /* Increased padding */
}

/* Navigation Menu */
nav {
    background-color: #1c1f26;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav ul li a {
    display: inline-block;
    padding: 6px 14px;
    margin: 8px 4px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
    background-color: #3a3f4b; /* light gray-black hover */
    color: #ffffff;
    transform: translateY(-1px);
}

nav ul li a.active {
    background-color: #2e7d32; /* green for active */
    color: white;
}


/* Sections */
section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #222;
}

/* Product Cards */
.products-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product {
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.product-header {
    color: white;
    padding: 20px;
    font-size: 1.5em;
    text-align: center;
}

.sourdough .product-header {
    background-color: #8e44ad;
}

.granola .product-header {
    background-color: #e91e63;
}

.kombucha .product-header {
    background-color: #00b894;
}

.product-body {
    padding: 20px;
}

.product-body h3 {
    margin-top: 0;
    color: #222;
}

/* Contact Box */
.contact-box {
    background-color: white;
    border-radius: 10px;
    display: inline-block;
    padding: 20px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Footer */
footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
}

/* Smooth Transitions (Global) */
a, button {
    transition: all 0.3s ease;
}
.learn-more-btn {
    background-color: #2e7d32;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
    background-color: #3a3f4b;
}

/* Pulsing star button */
.star-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(45deg, #f7d774, #f5b642);
  color: #222;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  animation: pulse 1.8s infinite ease-in-out;
  box-shadow: 0 0 12px rgba(247, 215, 116, 0.8);
  transition: transform 0.2s;
}
.star-btn:hover {
  transform: scale(1.08);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* --- Carousel --- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(280px, 55vh, 680px);
  overflow: hidden;
  background: #0b6; /* fallback while images load */
}

.hero-carousel .carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
  will-change: opacity;
}

.hero-carousel .carousel-slide.is-active {
  opacity: 1;
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dots */
.hero-carousel .carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-carousel .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #cfcfcf; /* small grey circles */
  opacity: 0.9;
  cursor: pointer;
  padding: 0;
}

.hero-carousel .dot.is-active {
  background: #6b6b6b; /* darker when active */
  transform: scale(1.1);
}

/* Accessibility utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel .carousel-slide {
    transition: none;
  }
}


