:root {
  --herbal-green: #4F7A5A;
  --deep-green: #2F4F3A;
  --earthy-brown: #8A5A3B;
  --terracotta: #C65D3B;
  --warm-cream: #F5F1E8;
  --off-white: #FAFAF7;
  --text-dark: #2B2B2B;
  --text-muted: #6B6B66;
  --divider: #E5E5E5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .serif {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--deep-green);
}

h1 { line-height: 1.05; }
h2 { line-height: 1.1; }

a { color: var(--deep-green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--herbal-green); }

.text-brand { color: var(--herbal-green) !important; }
.text-deep { color: var(--deep-green) !important; }
.text-terracotta { color: var(--terracotta) !important; }
.text-muted-soft { color: var(--text-muted) !important; }

.bg-cream { background-color: var(--warm-cream) !important; }
.bg-off-white { background-color: var(--off-white) !important; }
.bg-deep { background-color: var(--deep-green) !important; color: var(--warm-cream); }
.bg-deep h1, .bg-deep h2, .bg-deep h3 { color: var(--warm-cream); }

/* Navbar */
.navbar-brand-amancur {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--deep-green);
  letter-spacing: -0.01em;
}
.navbar-am {
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar-am .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem 1rem;
  position: relative;
}
.navbar-am .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.25rem;
  height: 2px;
  background: var(--herbal-green);
  border-radius: 2px;
}
.navbar-am .nav-link:hover { color: var(--herbal-green); }

/* Language switch */
.am-lang-switch {
  display: inline-flex;
  background: rgba(47,79,58,.06);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
}
.am-lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .35rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.am-lang-btn:hover { color: var(--deep-green); }
.am-lang-btn.active {
  background: var(--deep-green);
  color: var(--warm-cream);
}

/* Buttons */
.btn-am-primary {
  background: var(--herbal-green);
  color: var(--warm-cream);
  border: 1px solid var(--herbal-green);
  border-radius: 999px;
  padding: .65rem 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
}
.btn-am-primary:hover {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: var(--warm-cream);
  transform: translateY(-1px);
}
.btn-am-outline {
  background: transparent;
  color: var(--deep-green);
  border: 1px solid rgba(47,79,58,.25);
  border-radius: 999px;
  padding: .65rem 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
}
.btn-am-outline:hover {
  background: var(--deep-green);
  color: var(--warm-cream);
  border-color: var(--deep-green);
}
.btn-am-terracotta {
  background: var(--terracotta);
  color: var(--warm-cream);
  border: none;
  border-radius: 999px;
  padding: .75rem 1.6rem;
  font-weight: 600;
  transition: all .2s ease;
}
.btn-am-terracotta:hover {
  background: #a94d31;
  color: var(--warm-cream);
  transform: translateY(-1px);
}

/* Eyebrow / pill */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--herbal-green);
  background: rgba(79,122,90,.1);
  padding: .4rem 1rem;
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  background: var(--warm-cream);
  overflow: hidden;
  padding: 6rem 0 5rem;
}
.hero-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -30px rgba(47,79,58,0.35);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  margin-bottom: 1.25rem;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--herbal-green);
  font-weight: 400;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32rem;
}

/* Trust band */
.trust-band {
  background: var(--deep-green);
  color: var(--warm-cream);
  padding: 1.25rem 0;
  font-size: .9rem;
}
.trust-band .trust-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  opacity: .9;
}
.trust-band .trust-item i { color: #C9D9CA; }

/* Section */
section.am-section { padding: 5rem 0; }
section.am-section.compact { padding: 3.5rem 0; }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: .5rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

/* Cards */
.am-card {
  background: var(--off-white);
  border: 1px solid var(--divider);
  border-radius: 18px;
  overflow: hidden;
  transition: all .25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.am-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,122,90,.3);
  box-shadow: 0 20px 40px -25px rgba(47,79,58,.25);
}
.am-card .card-img-wrap {
  aspect-ratio: 4/3;
  background: var(--warm-cream);
  overflow: hidden;
}
.am-card .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.am-card:hover .card-img-wrap img { transform: scale(1.05); }
.am-card .card-body { padding: 1.5rem; }
.am-card .card-cat {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--herbal-green);
  font-weight: 700;
  margin-bottom: .5rem;
}
.am-card h3 {
  font-size: 1.2rem;
  margin: 0 0 .5rem;
  font-family: 'Fraunces', serif;
  color: var(--deep-green);
}
.am-card p {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0 0 1rem;
  flex-grow: 1;
}
.am-card .price {
  font-weight: 700;
  color: var(--deep-green);
  font-size: 1.05rem;
}

/* Category cards */
.cat-card {
  display: block;
  background: var(--warm-cream);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid transparent;
  transition: all .25s ease;
  height: 100%;
}
.cat-card:hover {
  background: var(--off-white);
  border-color: rgba(79,122,90,.3);
  transform: translateY(-3px);
}
.cat-card .cat-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(79,122,90,.12);
  color: var(--herbal-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.cat-card h4 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--deep-green);
  font-family: 'Fraunces', serif;
}

/* Quiz */
.quiz-wrap {
  background: var(--off-white);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 2.5rem;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeUp .35s ease; }
.quiz-options { display: grid; gap: .75rem; }
.quiz-option {
  background: var(--warm-cream);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  color: var(--text-dark);
  transition: all .2s ease;
  width: 100%;
}
.quiz-option:hover {
  border-color: var(--herbal-green);
  background: var(--off-white);
}
.quiz-option.selected {
  border-color: var(--herbal-green);
  background: rgba(79,122,90,.08);
  color: var(--deep-green);
}
.quiz-progress {
  display: flex; gap: .35rem;
  margin-bottom: 1.5rem;
}
.quiz-dot {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--divider);
}
.quiz-dot.active { background: var(--herbal-green); }

/* Testimonial */
.testimonial-card {
  background: var(--warm-cream);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  border: 1px solid transparent;
  transition: border-color .2s ease;
}
.testimonial-card:hover { border-color: rgba(79,122,90,.2); }
.testimonial-card .quote-mark {
  color: var(--herbal-green);
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: .5rem;
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.testimonial-card .author {
  font-weight: 700;
  color: var(--deep-green);
}
.testimonial-card .meta {
  font-size: .85rem;
  color: var(--text-muted);
}

/* Footer */
footer.am-footer {
  background: var(--deep-green);
  color: rgba(245,241,232,.85);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
footer.am-footer h5 {
  color: var(--warm-cream);
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
footer.am-footer a { color: rgba(245,241,232,.75); }
footer.am-footer a:hover { color: var(--warm-cream); }
footer.am-footer .brand {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--warm-cream);
  font-weight: 600;
}
footer.am-footer .copyright {
  border-top: 1px solid rgba(245,241,232,.15);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: .85rem;
  opacity: .65;
}

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 1040;
  display: none;
}
.mobile-cta a {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--terracotta);
  color: var(--warm-cream);
  padding: .9rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 25px -10px rgba(198,93,59,.5);
}
@media (max-width: 768px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 5rem; }
}

/* Page hero (compact) */
.page-hero {
  background: var(--warm-cream);
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: .75rem 0 .75rem;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

/* Filter chips */
.chip {
  background: transparent;
  border: 1px solid var(--divider);
  color: var(--text-dark);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--herbal-green); color: var(--herbal-green); }
.chip.active {
  background: var(--deep-green);
  color: var(--warm-cream);
  border-color: var(--deep-green);
}

/* Product detail */
.pd-img {
  width: 100%;
  border-radius: 24px;
  background: var(--warm-cream);
  aspect-ratio: 1/1;
  object-fit: cover;
}
.benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(79,122,90,.1);
  color: var(--deep-green);
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  margin: .25rem .25rem .25rem 0;
}
.ingredient-card {
  background: var(--warm-cream);
  border-radius: 16px;
  padding: 1.25rem;
  height: 100%;
}
.ingredient-card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--herbal-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .75rem;
}
.ingredient-card h5 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--deep-green);
  margin-bottom: .25rem;
}
.ingredient-card p {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Article prose */
.article-prose {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-dark);
}
.article-prose p { margin-bottom: 1.25rem; }
.article-prose h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
}
.article-prose h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 .75rem;
}
.article-prose blockquote {
  border-left: 3px solid var(--herbal-green);
  padding: .5rem 0 .5rem 1.25rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--deep-green);
  font-size: 1.2rem;
  margin: 1.5rem 0;
}

/* Marketplace card */
.market-card {
  background: var(--warm-cream);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: block;
  border: 1px solid transparent;
  transition: all .25s ease;
  height: 100%;
}
.market-card:hover {
  background: var(--off-white);
  border-color: rgba(79,122,90,.25);
  transform: translateY(-3px);
}
.market-card .market-name {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: var(--deep-green);
  margin: .75rem 0 .25rem;
}
.market-card .market-desc {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.market-card .market-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(79,122,90,.12);
  color: var(--herbal-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: .25rem;
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: .5rem;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(79,122,90,.25);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: .35rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--herbal-green);
  border: 3px solid var(--off-white);
  box-shadow: 0 0 0 2px var(--herbal-green);
}
.timeline-item .year {
  font-family: 'Fraunces', serif;
  color: var(--herbal-green);
  font-size: 1.25rem;
  font-weight: 600;
}
.timeline-item h4 {
  font-family: 'Fraunces', serif;
  color: var(--deep-green);
  font-size: 1.1rem;
  margin: .25rem 0 .35rem;
}
.timeline-item p { color: var(--text-muted); margin: 0; }

/* Form */
.form-control, .form-select {
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: .8rem 1rem;
  background: var(--off-white);
  font-family: inherit;
}
.form-control:focus, .form-select:focus {
  border-color: var(--herbal-green);
  box-shadow: 0 0 0 3px rgba(79,122,90,.15);
}
.form-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--deep-green);
  margin-bottom: .4rem;
}

/* Toast */
.am-toast {
  position: fixed;
  top: 5rem; right: 1rem;
  background: var(--deep-green);
  color: var(--warm-cream);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
  z-index: 1080;
  transform: translateY(-1rem);
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
}
.am-toast.show { opacity: 1; transform: translateY(0); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Utility */
.divider-soft { height: 1px; background: var(--divider); }
.rounded-2xl { border-radius: 20px; }
.shadow-soft { box-shadow: 0 20px 40px -25px rgba(47,79,58,.2); }
