:root {
  --bg-warm: #F7F2EA;
  --surface: #FFFFFF;
  --local-green: #315C4B;
  --shopfront-blue: #305F7A;
  --market-orange: #C77949;
  --soft-yellow: #E2B960;
  --charcoal: #222A2B;
  --muted: #66706B;
  --border: #D8CCC0;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(34,42,43,0.08);
}

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

body {
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg-warm);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--shopfront-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1,h2,h3,h4 { line-height: 1.25; color: var(--charcoal); margin-bottom: 0.5em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1em; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: background .2s, transform .1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--local-green); color: #fff; }
.btn-primary:hover { background: #26483a; color: #fff; }
.btn-orange { background: var(--market-orange); color: #fff; }
.btn-orange:hover { background: #b0663a; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--local-green); color: var(--local-green); }
.btn-outline:hover { background: var(--local-green); color: #fff; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--local-green); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; background: var(--local-green);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.main-nav ul { list-style: none; display: flex; gap: 20px; align-items: center; }
.main-nav a { color: var(--charcoal); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--local-green); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--charcoal); }

/* Hero */
.hero {
  background: linear-gradient(rgba(49,92,75,0.82), rgba(48,95,122,0.82)),
    url('images/photo-1560969184-10fe8719e047.png');
  background-size: cover; background-position: center;
  color: #fff; padding: 80px 0; text-align: center;
}
.hero h1 { color: #fff; font-size: 2.8rem; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 30px; }
.hero-search {
  display: flex; max-width: 700px; margin: 0 auto; background: #fff;
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); flex-wrap: wrap;
}
.hero-search input, .hero-search select {
  border: none; padding: 16px; font-size: 1rem; flex: 1; min-width: 140px;
  border-right: 1px solid var(--border);
}
.hero-search button { border-radius: 0; }

/* Sections */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

/* Category Mosaic */
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><rect width="40" height="40" fill="none" stroke="%23D8CCC0" stroke-width="0.5"/></svg>');
  padding: 20px; border-radius: var(--radius);
}
.mosaic-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 180px; color: #fff; display: flex; align-items: flex-end;
}
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mosaic-tile span {
  position: relative; z-index: 2; padding: 14px; font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(transparent, rgba(34,42,43,0.85)); width: 100%;
}
.mosaic-tile:hover { text-decoration: none; }
.mosaic-tile:hover img { transform: scale(1.05); transition: transform .3s; }

/* Filter tools */
.filter-bar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; flex-wrap: wrap;
  align-items: end;
}
.filter-group { flex: 1; min-width: 180px; }
.filter-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.filter-group input, .filter-group select {
  width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem;
}

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card-img { height: 190px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 0.8rem; color: var(--market-orange); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.card h3 { margin: 6px 0; }
.card-addr { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.stars { color: var(--soft-yellow); font-weight: 700; }

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.badge-sponsored { background: var(--soft-yellow); color: var(--charcoal); }
.badge-featured { background: var(--market-orange); color: #fff; }
.badge-verified { background: var(--local-green); color: #fff; }
.badge-feedback { background: var(--shopfront-blue); color: #fff; }
.card-img .badge { position: absolute; top: 10px; left: 10px; z-index: 2; }

/* Popular categories list */
.cat-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 14px; text-align: center; font-weight: 600; color: var(--charcoal);
}
.cat-chip:hover { border-color: var(--local-green); text-decoration: none; color: var(--local-green); }
.cat-chip small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; padding: 20px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--local-green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem;
  margin: 0 auto 12px;
}

/* Articles */
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.article-card img { height: 170px; width: 100%; object-fit: cover; }
.article-card .card-body { padding: 16px; }

/* CTA banner */
.cta-banner {
  background: var(--shopfront-blue); color: #fff; border-radius: var(--radius);
  padding: 44px; text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { max-width: 560px; margin: 0 auto 22px; }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.faq-q { padding: 16px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; }
.faq-item.open .faq-a { padding: 0 20px 16px; max-height: 500px; }
.faq-item.open .faq-q .toggle { transform: rotate(45deg); }
.faq-q .toggle { transition: transform .2s; font-size: 1.3rem; color: var(--local-green); }

/* Split view */
.split { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.sidebar h3 { font-size: 1.1rem; }
.sidebar label { display: block; margin: 8px 0; font-size: 0.95rem; cursor: pointer; }

/* Profile */
.profile-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.profile-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-gallery img { border-radius: 10px; height: 160px; width: 100%; object-fit: cover; }
.profile-gallery img:first-child { grid-column: 1 / -1; height: 280px; }
.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.info-box dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; }
.info-box dt { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.review {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; margin-bottom: 14px;
}
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; font-family: inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--shopfront-blue); border-color: transparent;
}
.required { color: var(--market-orange); }

/* Page header band */
.page-band { background: var(--local-green); color: #fff; padding: 50px 0; }
.page-band h1 { color: #fff; }
.page-band p { color: #e6efe9; max-width: 640px; margin-bottom: 0; }

/* Content prose */
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.prose h2 { margin-top: 1.2em; }
.prose ul { margin: 0 0 1em 1.4em; }

.last-verified { display: inline-block; background: var(--bg-warm); border: 1px solid var(--border); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--charcoal); color: #cdd4d2; padding: 50px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.site-footer a { color: #cdd4d2; }
.site-footer a:hover { color: var(--soft-yellow); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #3a4344; margin-top: 30px; padding-top: 18px; font-size: 0.85rem; text-align: center; color: #9aa4a1; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface);
  border-top: 3px solid var(--local-green); padding: 20px; z-index: 2000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15); display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookie-inner p { margin: 0; flex: 1; min-width: 260px; font-size: 0.92rem; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-prefs { margin-top: 14px; display: none; }
.cookie-prefs.show { display: block; }
.cookie-prefs label { display: flex; gap: 8px; align-items: center; margin: 6px 0; }

/* Responsive */
@media (max-width: 1200px) {
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .cat-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; } .hero h1 { font-size: 2.1rem; }
  .main-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 16px; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .grid, .steps, .mosaic, .cat-list { grid-template-columns: repeat(2, 1fr); }
  .split, .profile-hero, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .info-box dl { grid-template-columns: 110px 1fr; }
}
@media (max-width: 480px) {
  .grid, .steps, .mosaic, .cat-list { grid-template-columns: 1fr; }
  .hero { padding: 50px 0; }
  .hero-search input, .hero-search select { border-right: none; border-bottom: 1px solid var(--border); }
  .cta-banner, .prose { padding: 24px 18px; }
  .info-box dl { grid-template-columns: 1fr; }
  .info-box dt { margin-top: 8px; }
}