* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-dark: #3a3a3a;
  --green: #bdd631;
  --green-light: #a8c024;
  --green-bg: #f4f8d9;
  --cream: #fafaf5;
  --brown: #3a3a3a;
  --brown-light: #666;
  --text: #3a3a3a;
  --text-light: #666;
  --border: #e5e5e0;
  --white: #fff;
  --red: #c0392b;
  --orange: #e67e22;
  --blue: #2980b9;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --brand-dark: #3a3a3a;
  --brand-accent: #bdd631;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* Header */
header {
  background: var(--white);
  color: var(--green-dark);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--green-dark);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
  font-weight: 500;
}

nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-btn:hover {
  background: var(--green-bg);
  color: var(--green-dark);
}

.nav-btn.active {
  background: var(--green);
  color: var(--green-dark);
  font-weight: 700;
}

/* Main */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tab-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

h1 {
  font-size: 1.6rem;
  color: var(--green-dark);
}

h2 {
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1rem;
  color: var(--brown);
  margin: 1rem 0 0.5rem;
}

h4 {
  font-size: 0.95rem;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 600px;
}

.hero-stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* How it works */
.how-it-works {
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.step-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.step-number {
  width: 28px;
  height: 28px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Buttons */
.btn-primary {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--green-light);
}

.btn-secondary {
  background: var(--border);
  color: var(--text);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #ccc;
}

.btn-danger {
  background: none;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: var(--red);
  color: var(--white);
}

.btn-edit {
  background: none;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.btn-edit:hover {
  background: var(--green);
  color: var(--white);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}

.stat-card.ffh-stat {
  border-left-color: var(--orange);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Recent sections */
.recent-section {
  margin-bottom: 2rem;
}

.recent-list {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.empty-msg {
  color: var(--text-light);
  text-align: center;
  padding: 2rem 1rem;
  font-style: italic;
}

/* About page */
.about-content {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.about-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.about-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.mission-card {
  border-left: 4px solid var(--green);
}

.ffh-card {
  border-left: 4px solid var(--orange);
}

.info-list {
  display: grid;
  gap: 1rem;
}

.info-item {
  padding: 0.75rem;
  background: var(--green-bg);
  border-radius: 8px;
}

.info-item strong {
  display: block;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}

.info-item p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-light);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.location-tag {
  background: var(--green-bg);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  text-align: center;
}

.growth-list {
  list-style: none;
  padding: 0;
}

.growth-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  line-height: 1.5;
  padding-left: 1.2rem;
  position: relative;
}

.growth-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.growth-list li:last-child {
  border-bottom: none;
}

/* Filter */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-bar select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--white);
}

/* Product list */
.product-list, .demo-list {
  display: grid;
  gap: 1rem;
}

.product-card, .demo-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  transition: transform 0.15s;
}

.product-card:hover, .demo-card:hover {
  transform: translateY(-1px);
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.product-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.product-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green-bg);
  color: var(--green-dark);
}

.badge-restaurant {
  background: #fef3e2;
  color: var(--orange);
}

.badge-ffh {
  background: #fde8d0;
  color: #c0392b;
}

.badge-type {
  background: #e8f0fe;
  color: var(--blue);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: var(--green-bg);
  border-radius: 6px;
  font-size: 0.85rem;
}

.price-item .region-name {
  color: var(--text-light);
}

.price-item .price-value {
  font-weight: 600;
  color: var(--green-dark);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Demo card */
.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.demo-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brown);
}

.demo-badges {
  display: flex;
  gap: 0.4rem;
}

.demo-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.demo-description {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0.5rem 0;
}

.demo-products-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.demo-product-tag {
  background: var(--green-bg);
  color: var(--green-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.4rem;
}

.form-group textarea {
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.region-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.region-price-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.region-price-input label {
  font-size: 0.85rem;
  min-width: 100px;
  color: var(--text);
  font-weight: 500;
}

.region-price-input input {
  width: 90px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Checklist */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.3rem;
  border-radius: 4px;
  cursor: pointer;
}

.checklist label:hover {
  background: var(--green-bg);
}

/* Footer */
footer {
  background: var(--green-dark);
  color: var(--white);
  margin-top: 3rem;
  padding: 2rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-col p {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.footer-col ul {
  list-style: none;
  margin-top: 0.5rem;
}

.footer-col ul li {
  padding: 0.2rem 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-col a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem;
    gap: 0.5rem;
  }

  .logo-tagline {
    display: none;
  }

  nav {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .hero-stats-row {
    gap: 1rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .tab-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .region-prices {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}
