/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
ul { list-style: none; }
img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Header ===== */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c7a7b; /* greenish brand color */
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #333;
  font-weight: 500;
}
.nav-links a.active {
  color: #2c7a7b;
}
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== Hero Sections ===== */
.hero {
  background: url("https://cablevey.com/wp-content/uploads/2020/11/The-Complete-Guide-on-Snack-Foods.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  border-radius: 0 0 30px 30px;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.page-hero.small {
  background: #f6f6f6;
  text-align: center;
  padding: 3rem 1rem;
}
.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ===== Buttons ===== */
.btn, .btn-small, .btn-outline {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.3s;
}
.btn {
  background: #2c7a7b;
  color: #fff;
}
.btn:hover { background: #256667; }
.btn-small {
  background: #2c7a7b;
  color: #fff;
  padding: 0.5rem 1rem;
}
.btn-outline {
  border: 2px solid #2c7a7b;
  color: #2c7a7b;
  background: transparent;
}
.btn-outline:hover {
  background: #2c7a7b;
  color: #fff;
}

/* ===== About Page ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}
.about-image-card img {
  border-radius: 20px;
}
.ticks li::before {
  content: "✔ ";
  color: #2c7a7b;
  font-weight: bold;
}
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.value-card {
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 15px;
  background: #fafafa;
  text-align: center;
}

/* ===== Products Grid ===== */
.products-preview, .products-page {
  padding: 3rem 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.product-card {
  border: 1px solid #eee;
  border-radius: 15px;
  padding: 1rem;
  background: #fff;
  text-align: center;
  transition: transform 0.2s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.card-body h3 { margin: 0.5rem 0; }

/* ===== Product Detail Pages ===== */
.product-hero {
  padding: 3rem 0;
  background: #f9f9f9;
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}
.card {
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 15px;
  background: #fafafa;
}
.nutrition {
  width: 100%;
  border-collapse: collapse;
}
.nutrition td {
  border-bottom: 1px solid #ddd;
  padding: 0.5rem;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, textarea {
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
textarea { resize: vertical; }

/* ===== Footer ===== */
footer {
  background: #2c7a7b;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
}
.footer-links {
  margin-top: 0.5rem;
}
.footer-links a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 1rem;
    width: 200px;
    padding: 1rem;
    border: 1px solid #eee;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .about-grid,
  .product-hero-grid,
  .details-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
