/* ─── Reset / Base ─────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:'Segoe UI',system-ui,sans-serif;color:#1a1a1a;background:#f5f7f5;line-height:1.6}
a{color:#2E7D32;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
input,select,textarea,button{font-family:inherit;font-size:1rem}

/* ─── Layout ───────────────────────────────────────────────────── */
.container{max-width:1100px;margin:0 auto;padding:0 1.25rem}
.section{padding:3rem 0}
.section-sm{padding:1.5rem 0}
.text-center{text-align:center}
.mt-sm{margin-top:.5rem}
.mt-md{margin-top:1rem}
.mt-lg{margin-top:2rem}
.ml-sm{margin-left:.5rem}

/* ─── Site nav ────────────────────────────────────────────────── */
.site-nav{background:#2E7D32;color:#fff;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.site-nav-inner{display:flex;align-items:center;justify-content:space-between;max-width:1100px;margin:0 auto;padding:.75rem 1.25rem}
.site-nav .brand{color:#fff;font-weight:700;font-size:1.15rem;display:flex;align-items:center;gap:.4rem}
.site-nav .nav-links{display:flex;gap:1.5rem;align-items:center}
.site-nav .nav-links a{color:rgba(255,255,255,.9);font-size:.95rem;font-weight:500}
.site-nav .nav-links a:hover{color:#fff;text-decoration:none}
.site-nav .nav-links a.active{color:#fff;border-bottom:2px solid #A5D6A7}
.nav-donate-btn{background:#fff;color:#2E7D32!important;padding:.35rem .85rem;border-radius:20px;font-weight:700!important}
.nav-donate-btn:hover{background:#E8F5E9!important}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:.25rem}
.nav-toggle span{display:block;width:24px;height:2px;background:#fff;margin:5px 0;transition:.2s}

@media(max-width:700px){
  .site-nav .nav-links{display:none;flex-direction:column;gap:0;position:absolute;top:56px;left:0;right:0;background:#2E7D32;padding:1rem 1.25rem}
  .site-nav .nav-links.open{display:flex}
  .nav-toggle{display:block}
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero{background:linear-gradient(135deg,#1B5E20 0%,#2E7D32 60%,#388E3C 100%);color:#fff;padding:4rem 1.25rem 3rem;text-align:center}
.hero h1{font-size:clamp(1.8rem,5vw,3rem);margin-bottom:.75rem;line-height:1.2}
.hero p{font-size:1.15rem;opacity:.9;max-width:600px;margin:0 auto 1.5rem}
.hero-btns{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn{display:inline-block;padding:.65rem 1.4rem;border-radius:6px;font-weight:600;cursor:pointer;border:none;transition:.15s;text-align:center}
.btn-primary{background:#2E7D32;color:#fff}
.btn-primary:hover{background:#1B5E20;text-decoration:none;color:#fff}
.btn-outline{background:transparent;border:2px solid #2E7D32;color:#2E7D32}
.btn-outline:hover{background:#2E7D32;color:#fff;text-decoration:none}
.btn-white{background:#fff;color:#2E7D32;font-weight:700}
.btn-white:hover{background:#E8F5E9;text-decoration:none}
.btn-sm{padding:.35rem .8rem;font-size:.875rem;border-radius:4px;background:#e0e0e0;color:#333;border:none;cursor:pointer;font-weight:500}
.btn-sm:hover{background:#ccc;text-decoration:none}
.btn:disabled{opacity:.5;cursor:not-allowed}

/* ─── Progress bar ────────────────────────────────────────────── */
.progress-section{background:#fff;padding:2rem 1.25rem;border-bottom:1px solid #e0e0e0}
.progress-wrap{max-width:700px;margin:0 auto}
.progress-labels{display:flex;justify-content:space-between;margin-bottom:.35rem;font-size:.9rem;color:#555}
.progress-bar-outer{background:#E8F5E9;border-radius:999px;height:22px;overflow:hidden}
.progress-bar-inner{background:linear-gradient(90deg,#2E7D32,#66BB6A);height:100%;border-radius:999px;transition:width .8s ease;min-width:4px}
.progress-caption{text-align:center;margin-top:.5rem;font-size:.85rem;color:#666}

/* ─── Stat strip ──────────────────────────────────────────────── */
.stat-strip{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;padding:1.5rem 1.25rem;background:#fff;border-bottom:1px solid #e0e0e0}
.stat-item{text-align:center;min-width:130px}
.stat-item .val{font-size:1.6rem;font-weight:700;color:#2E7D32}
.stat-item .lbl{font-size:.8rem;color:#666;text-transform:uppercase;letter-spacing:.04em}

/* ─── Petal map ───────────────────────────────────────────────── */
.petal-section{padding:2rem 1.25rem;text-align:center}
.petal-section h2{margin-bottom:1rem;color:#2E7D32;font-size:1.4rem}
#petal-canvas{max-width:100%;border-radius:12px;box-shadow:0 2px 16px rgba(0,0,0,.08)}

/* ─── Session cards ───────────────────────────────────────────── */
.sessions-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem;padding:2rem 1.25rem}
.session-card{background:#fff;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.07);padding:1.25rem;border-top:4px solid #ccc;transition:.15s}
.session-card.status-complete{border-top-color:#4CAF50}
.session-card.status-in_progress{border-top-color:#FF9800}
.session-card.status-unlocked,.session-card.status-ready{border-top-color:#2196F3}
.session-card.status-locked{border-top-color:#bbb;opacity:.7}
.session-card h3{font-size:1.05rem;margin-bottom:.35rem}
.session-card .meta{font-size:.85rem;color:#555;margin-bottom:.75rem}
.session-card .card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:.75rem}

/* ─── Badges & tags ───────────────────────────────────────────── */
.badge{display:inline-block;padding:.2rem .6rem;border-radius:20px;color:#fff;font-size:.78rem;font-weight:600}
.tag{display:inline-block;padding:.15rem .5rem;border-radius:4px;background:#E8F5E9;color:#2E7D32;font-size:.78rem;font-weight:600}

/* ─── Unlock progress bar (session cards) ───────────────────── */
.unlock-bar-wrap{margin-top:.5rem}
.unlock-bar-outer{background:#e8e8e8;border-radius:999px;height:7px;overflow:hidden;margin-bottom:.3rem}
.unlock-bar-inner{height:100%;border-radius:999px;transition:width .5s ease;min-width:3px}
.unlock-bar-label{font-size:.75rem;color:#666;line-height:1.4}
.unlock-bar-label strong{color:#333}
.unlock-bar-money{color:#888}
.session-card.next-to-unlock{border-top-color:#FF9800;box-shadow:0 2px 12px rgba(251,140,0,.18)}

/* ─── Page content ────────────────────────────────────────────── */
.page-content{max-width:860px;margin:2rem auto;padding:0 1.25rem}
.page-content h1{color:#2E7D32;margin-bottom:1rem}
.page-content h2{color:#1B5E20;margin:1.5rem 0 .5rem}
.page-content p{margin-bottom:1rem}

/* ─── Map page ────────────────────────────────────────────────── */
#route-map{height:520px;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.1)}

/* ─── Individual session public ──────────────────────────────── */
.session-hero{background:#fff;border-bottom:1px solid #e0e0e0;padding:2rem 1.25rem}
.session-hero h1{color:#2E7D32;font-size:1.6rem}
.session-meta{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}
#session-detail-map{height:340px;border-radius:10px;margin:1.5rem 0}

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer{background:#1B5E20;color:rgba(255,255,255,.8);padding:2rem 1.25rem;text-align:center;font-size:.88rem;margin-top:3rem}
.site-footer a{color:rgba(255,255,255,.9)}
.site-footer p+p{margin-top:.4rem}

/* ─── Donate page ─────────────────────────────────────────────── */
.donate-box{background:#fff;border-radius:12px;box-shadow:0 4px 24px rgba(0,0,0,.09);padding:2rem;max-width:560px;margin:2rem auto}
.donate-box h2{color:#2E7D32;margin-bottom:1rem}
.jg-btn{display:block;background:#FF5A00;color:#fff!important;text-align:center;padding:1rem;border-radius:8px;font-weight:700;font-size:1.1rem;margin:1.5rem 0}
.jg-btn:hover{background:#e04f00;text-decoration:none}

/* ─── About ───────────────────────────────────────────────────── */
.about-cic-note{background:#FFF9C4;border-left:4px solid #F9A825;padding:1rem 1.25rem;border-radius:4px;margin:1.5rem 0;font-size:.95rem}

/* ─── Alert ───────────────────────────────────────────────────── */
.alert{padding:.85rem 1rem;border-radius:6px;margin-bottom:1rem}
.alert-ok{background:#E8F5E9;color:#1B5E20;border:1px solid #A5D6A7}
.alert-err{background:#FFEBEE;color:#B71C1C;border:1px solid #EF9A9A}
.alert-warn{background:#FFF8E1;color:#E65100;border:1px solid #FFE082}

/* ─── Utilities ───────────────────────────────────────────────── */
.text-ok{color:#2E7D32}
.text-warn{color:#E65100}
.hint{color:#777;font-size:.875rem}
code{background:#f4f4f4;padding:.1rem .35rem;border-radius:3px;font-size:.875rem}
hr{border:none;border-top:1px solid #e0e0e0;margin:1.25rem 0}

/* ─── Responsive ──────────────────────────────────────────────── */
@media(max-width:600px){
  .hero{padding:2.5rem 1rem 2rem}
  .hero-btns{flex-direction:column;align-items:center}
  .stat-strip{padding:1rem}
  .sessions-grid{grid-template-columns:1fr}
  #route-map{height:320px}
}
