/* Rwamagana Food Market - simple HTML + CSS website */
:root {
  --green: #236b45;
  --green-dark: #174b32;
  --green-light: #eaf3e9;
  --cream: #fbfaf4;
  --text: #24332a;
  --muted: #68756c;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(28, 65, 43, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}
.container { width: min(1120px, 90%); margin: 0 auto; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid #e9eee8;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
}
.brand strong { color: var(--green); }
.brand-mark { font-size: 29px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
nav a:hover { color: var(--green); }

.hero {
  min-height: 440px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(18, 54, 35, .91), rgba(18, 54, 35, .55)),
    url("https://images.unsplash.com/photo-1770782912836-82b4d67444d5?auto=format&fit=crop&w=1800&q=85") center/cover;
  color: var(--white);
}
.hero-content { padding-top: 70px; padding-bottom: 70px; }
.eyebrow {
  margin: 0 0 9px;
  color: #8fc99d;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
}
.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}
.hero h1 span { color: #b8e0ae; }
.hero-copy { margin: 18px 0 28px; color: #edf5ed; font-size: 17px; }
.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 7px;
  background: #f4c95d;
  color: #27331e;
  text-decoration: none;
  font-weight: 800;
}
.button:hover { background: #ffda7c; }

.section { padding: 76px 0; }
.section-heading { text-align: center; margin: 0 auto 34px; max-width: 650px; }
.section-heading .eyebrow { color: var(--green); }
.section-heading h2, .contact-content h2 {
  margin: 0 0 9px;
  color: var(--green-dark);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}
.section-heading p:last-child { margin: 0; color: var(--muted); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.category-card {
  padding: 25px 15px;
  background: var(--white);
  border: 1px solid #edf0e9;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: #a8c9ad; }
.category-card span { font-size: 38px; }
.category-card h3 { margin: 9px 0 0; font-size: 16px; }

.products-section { background: #f0f5ed; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.product-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #e9eee0;
}
.product-info { padding: 17px 20px 20px; }
.product-info h3 { margin: 0 0 5px; font-size: 18px; }
.price { margin: 0; color: var(--green); font-size: 19px; font-weight: 800; }
.price small { color: var(--muted); font-size: 13px; font-weight: 400; }

.contact-section { padding: 65px 0; background: var(--green-dark); color: var(--white); }
.contact-content {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 50px;
}
.contact-content .eyebrow { color: #b8e0ae; }
.contact-content h2 { color: var(--white); }
.contact-content p { color: #e0ebe1; }
.contact-details {
  padding: 20px 25px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
}
.contact-details p { margin: 8px 0; }
.contact-details strong { color: #c5e5bd; }

.site-footer { padding: 19px 0; background: #103923; color: #dce9dc; }
.footer-wrap { display: flex; justify-content: space-between; gap: 15px; }
.footer-wrap p { margin: 0; font-size: 13px; }

@media (max-width: 760px) {
  .nav-wrap { padding: 14px 0; flex-direction: column; gap: 12px; }
  nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 12px 20px; }
  .hero { min-height: 390px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-image { height: 145px; }
  .contact-content { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 430px) {
  .brand { font-size: 17px; }
  nav { gap: 9px 14px; }
  nav a { font-size: 13px; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; text-align: center; }
}
