/* ============================================================
   Rentak Rimba Bazaar 2026 — Stylesheet
   Brand palette derived from logo + official colour world.
   ============================================================ */

:root {
  --forest:    #2e4a30;  /* dark green ring / text */
  --forest-2:  #3c5e3e;
  --green:     #61a358;  /* secondary */
  --gold:      #dbaa06;  /* secondary */
  --terracotta:#b8513a;  /* roots */
  --teal:      #55ada1;  /* secondary */
  --brown:     #9b7253;  /* primary */
  --cream:     #f5f2e8;  /* page background */
  --cream-2:   #efeadb;  /* alt sections */
  --paper:     #fffdf8;  /* cards */
  --ink:       #2c352a;  /* body text */
  --muted:     #6f7a6a;

  --maxw: 1100px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(46, 74, 48, 0.08);
  --shadow-lg: 0 14px 40px rgba(46, 74, 48, 0.14);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--forest); line-height: 1.15; font-weight: 600; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--forest); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--terracotta); color: #fff;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-family: var(--font-body);
  border: 2px solid var(--terracotta); cursor: pointer; transition: transform .12s ease, background .2s, box-shadow .2s;
  text-align: center; font-size: 16px; line-height: 1.2;
}
.btn:hover { background: #a3442f; border-color: #a3442f; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-lg { padding: 15px 34px; font-size: 17px; margin-top: 8px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 242, 232, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(46,74,48,.10);
}
.nav-wrap { display: flex; align-items: center; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); color: var(--forest); font-size: 19px; font-weight: 600; }
.brand-text em { font-style: normal; color: var(--terracotta); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--forest); font-weight: 500; padding: 8px 12px; border-radius: 8px; font-size: 15.5px; }
.nav-links a:hover { background: var(--cream-2); text-decoration: none; }
.nav-cta-li a { color: #fff; }
.nav-cta-li a:hover { background: #a3442f; }

.nav-toggle { display: none; }

.lang-switch { display: flex; gap: 4px; flex: 0 0 auto; background: var(--cream-2); border-radius: 999px; padding: 4px; }
.lang-switch button {
  border: none; background: transparent; cursor: pointer; font-family: var(--font-body);
  font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 6px 11px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.lang-switch button.is-active { background: var(--forest); color: #fff; }
.lang-switch button:not(.is-active):hover { color: var(--forest); }

.lang-notice {
  background: var(--gold); color: var(--forest); text-align: center;
  padding: 8px 16px; font-size: 14px; font-weight: 500;
}

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 64px 0 72px; overflow: hidden; }
.hero-art {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(85,173,161,.18), transparent 70%),
    radial-gradient(40% 40% at 12% 85%, rgba(219,170,6,.16), transparent 70%),
    radial-gradient(40% 40% at 88% 80%, rgba(97,163,88,.18), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: 168px; height: 168px; margin-bottom: 6px; filter: drop-shadow(0 8px 18px rgba(46,74,48,.16)); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--brown); margin: 8px 0 6px; }
.hero-title { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 4px 0; font-weight: 600; color: var(--forest); }
.hero-title span { color: var(--terracotta); }
.hero-theme { font-family: var(--font-head); font-style: italic; font-size: clamp(1.15rem, 3vw, 1.6rem); color: var(--green); margin: 2px 0 14px; font-weight: 500; }
.hero-cause { max-width: 600px; color: var(--ink); font-size: 1.08rem; margin: 0 auto 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 22px; }
.hero-supported { font-size: 14px; color: var(--muted); letter-spacing: .03em; margin: 4px 0 14px; text-transform: uppercase; font-weight: 600; }
.hero-ig { display: inline-flex; align-items: center; gap: 7px; color: var(--forest); font-weight: 600; font-size: 15px; }
.hero-ig:hover { color: var(--terracotta); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--cream-2); }
.section-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--brown); margin: 0 0 6px; }
.section-title { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 18px; }
.section-lead { max-width: 680px; font-size: 1.08rem; color: var(--ink); margin: 0 0 28px; }
.mini-heading { font-size: 1.25rem; margin: 30px 0 16px; color: var(--forest-2); }

.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose h4 { font-size: 1.12rem; margin: 22px 0 8px; color: var(--terracotta); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Three C's */
.three-c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 30px; }
.c-card { background: var(--paper); border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(46,74,48,.06); }
.c-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.c-card h3 { margin: 0; font-size: 1.25rem; }

.philosophy {
  border-left: 4px solid var(--gold); margin: 0 0 30px; padding: 6px 0 6px 22px;
  font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--forest-2); font-weight: 500;
}
.about-school { background: var(--paper); border-radius: var(--radius); padding: 30px; margin-top: 30px; box-shadow: var(--shadow); border: 1px solid rgba(46,74,48,.06); }
.about-school h3 { margin: 0 0 12px; font-size: 1.4rem; }
.link-arrow { display: inline-block; margin-top: 10px; font-weight: 600; }

/* Cards */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 5px solid var(--green); }
.feature-card:nth-child(2) { border-top-color: var(--gold); }
.feature-card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.feature-card p { margin: 0; }

.pill-card { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow); }
.pill-card span { font-size: 1.4rem; flex: 0 0 auto; }
.pill-card p { margin: 0; font-weight: 500; }

.eco-note { display: flex; gap: 14px; align-items: center; background: rgba(85,173,161,.14); border: 1px solid rgba(85,173,161,.4); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; }
.eco-note .eco-icon { font-size: 1.6rem; }
.eco-note p { margin: 0; }

.logistics { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; margin-top: 14px; }
.logistics-text h3 { font-size: 1.4rem; margin: 0 0 10px; }
.address { font-style: normal; color: var(--forest-2); font-weight: 500; margin-top: 14px; }
.logistics-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 280px; }
.logistics-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

/* ---------- Forms ---------- */
.form-wrap { background: var(--paper); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); margin: 28px 0; border: 1px solid rgba(46,74,48,.06); }
.form-title { font-size: 1.6rem; margin: 0 0 6px; }
.form-sub { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }

.rr-form fieldset { border: none; border-top: 1px solid rgba(46,74,48,.12); padding: 22px 0 4px; margin: 0; }
.rr-form fieldset:first-of-type { border-top: none; padding-top: 0; }
.rr-form legend { font-family: var(--font-head); font-weight: 600; color: var(--terracotta); font-size: 1.1rem; padding: 0; margin-bottom: 8px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.span-2 { grid-column: 1 / -1; }
.field > span, .field-label { font-weight: 600; font-size: 14.5px; color: var(--forest-2); }
.field-label { display: block; margin: 6px 0 10px; }

.rr-form input[type="text"], .rr-form input[type="email"], .rr-form input[type="tel"],
.rr-form textarea, .rr-form select {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid rgba(46,74,48,.22); border-radius: var(--radius-sm);
  background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.rr-form input:focus, .rr-form textarea:focus, .rr-form select:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(97,163,88,.18); outline: none;
}
.rr-form input[type="file"] { font-size: 15px; }
.rr-form textarea { resize: vertical; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }

.checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; cursor: pointer; }
.checks input { margin-top: 4px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--green); }
.check-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; cursor: pointer; margin: 6px 0 8px; }
.check-agree input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--terracotta); flex: 0 0 auto; }
.link-inline { font-weight: 600; }

/* honeypot hidden from humans */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Terms */
.terms { margin: 8px 0 30px; }
.terms details { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(46,74,48,.08); overflow: hidden; }
.terms summary { cursor: pointer; padding: 20px 26px; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--forest); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.terms summary::-webkit-details-marker { display: none; }
.terms summary::after { content: "+"; font-size: 1.6rem; color: var(--terracotta); font-weight: 400; line-height: 1; }
.terms details[open] summary::after { content: "–"; }
.terms-body { padding: 0 26px 26px; }

/* Payment */
.pay-box { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); text-align: center; border: 1px dashed rgba(184,81,58,.5); }
.pay-box h3 { margin: 0 0 8px; font-size: 1.35rem; }
.pay-box p { margin: 0 auto 18px; max-width: 520px; }
.qr-placeholder {
  width: 180px; height: 180px; margin: 8px auto 14px; border: 2px dashed var(--brown);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--brown); font-weight: 600; background: var(--cream-2);
}
.qr-placeholder.small { width: 130px; height: 130px; font-size: 13px; }
.qr-img { width: 240px; max-width: 100%; height: auto; margin: 8px auto 10px; border-radius: 14px; box-shadow: var(--shadow); display: block; background: #fff; }
.qr-img.small { width: 160px; margin: 0; flex: 0 0 auto; }
.pay-payee { font-weight: 700; color: var(--forest); letter-spacing: .03em; margin: 0 0 2px; font-size: 15px; }
.pay-acct { font-weight: 600; color: var(--brown); margin: 0 0 10px; font-size: 14px; }
.pay-box.inline { display: flex; gap: 18px; align-items: center; text-align: left; margin-top: 22px; border-style: dashed; }
.pay-box.inline p { margin: 0; }

/* Community */
.community-corner { background: rgba(219,170,6,.12); border: 1px solid rgba(219,170,6,.4); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 6px; }
.community-corner h3 { margin: 0 0 8px; font-size: 1.35rem; }
.community-corner p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.contact-aside { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 5px solid var(--teal); }
.contact-aside h3 { font-size: 1.1rem; margin: 0 0 4px; }
.contact-aside h3:not(:first-child) { margin-top: 20px; }
.contact-aside p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #e8e6d8; padding: 50px 0 36px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { width: 64px; height: 64px; }
.footer-theme { font-family: var(--font-head); font-style: italic; color: #f0e7c9; font-size: 1.15rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 6px 0; }
.footer-nav a { color: #e8e6d8; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-meta a { color: var(--gold); }
.footer-credit { font-size: 13.5px; color: #b9c4af; margin: 6px 0 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 14px 22px 22px; gap: 2px;
    box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .28s ease;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 10px; font-size: 17px; border-bottom: 1px solid rgba(46,74,48,.08); border-radius: 0; }
  .nav-cta-li { margin-top: 10px; }
  .nav-cta-li a { text-align: center; border-radius: 999px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { display: block; height: 2.5px; background: var(--forest); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .main-nav { margin-left: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .hero { padding: 44px 0 54px; }
  .three-c { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .logistics { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-wrap { padding: 24px 20px; }
  .pay-box.inline { flex-direction: column; text-align: center; }
  .brand-text em { display: none; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero-cta .btn { width: 100%; }
  .lang-switch button { padding: 6px 9px; font-size: 12.5px; }
  .brand-text strong { font-size: 17px; }
}

/* ============================================================
   SVG icons
   ============================================================ */
.c-icon { display: inline-flex; margin-bottom: 8px; }
.c-icon svg { width: 42px; height: 42px; }
.c-card:nth-child(1) .c-icon { color: var(--green); }
.c-card:nth-child(2) .c-icon { color: var(--gold); }
.c-card:nth-child(3) .c-icon { color: var(--teal); }
.eco-note .eco-icon { display: inline-flex; color: var(--teal); flex: 0 0 auto; }
.eco-note .eco-icon svg { width: 30px; height: 30px; }
.pill-ic { display: inline-flex; color: var(--green); flex: 0 0 auto; }
.pill-ic svg { width: 28px; height: 28px; }
.pill-card:nth-child(2) .pill-ic { color: var(--brown); }
.pill-card:nth-child(3) .pill-ic { color: var(--gold); }

/* ============================================================
   Vendor wizard
   ============================================================ */
.wizard-progress, .wizard-count { display: none; }      /* no-JS fallback: hidden */
.wz-back, .wz-next { display: none; }
.wizard-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.wizard-bar { height: 7px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.wizard-bar-fill { display: block; height: 100%; width: 25%; background: var(--green); border-radius: 999px; transition: width .35s ease; }
.wizard-steps-list { display: flex; justify-content: space-between; list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); gap: 6px; }
.wizard-steps-list li { flex: 1; text-align: center; transition: color .25s; }
.wizard-steps-list li.is-done { color: var(--green); }
.wizard-steps-list li.is-current { color: var(--forest); }
.wizard-count { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brown); margin: 18px 0 2px; }

/* JS-on stepped mode */
.wizard.wz-on .wizard-progress,
.wizard.wz-on .wizard-count { display: block; }
.wizard.wz-on .wizard-step { display: none; }
.wizard.wz-on .wizard-step.is-active { display: block; animation: wzfade .3s ease; }
.wizard.wz-on .wz-back,
.wizard.wz-on .wz-next { display: inline-block; }
.wizard.wz-on .wz-submit { display: none; }
.wizard.wz-on .wz-next, .wizard.wz-on .wz-submit { margin-left: auto; }
.wizard.wz-on.is-first .wz-back { visibility: hidden; }
.wizard.wz-on.is-last .wz-next { display: none; }
.wizard.wz-on.is-last .wz-submit { display: inline-block; }
.review-hint { margin: 0 0 14px; }
@keyframes wzfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Validation states
   ============================================================ */
.rr-form .field.has-error input,
.rr-form .field.has-error textarea,
.rr-form .field.has-error select { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(184,81,58,.16); }
.err-msg { display: flex; align-items: flex-start; gap: 6px; color: #a3442f; font-size: 13.5px; font-weight: 600; margin-top: 7px; }
.err-msg::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--terracotta); color: #fff; font-size: 12px; flex: 0 0 auto; line-height: 1; }
.checks.has-error, .check-agree.has-error { border-left: 3px solid var(--terracotta); padding-left: 12px; margin-left: -15px; }
.field-label.label-error { color: #a3442f; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
