/* ============================================
   CHARM-IN-BRC — Belize Rural Central
   ============================================ */

:root {
  --red-bright: #e31c2d;
  --red-mid: #a3172f;
  --red-deep: #6e1330;
  --maroon-dark: #3a1030;
  --white: #ffffff;
  --ink: #201414;
  --ink-soft: #4a3f3f;
  --slate: #6b6060;
  --gray-bg: #f8f5f4;
  --gray-line: #ece5e3;
  --gold: #f2a93b;
  --green: #2e9e5b;
  --green-bg: #e8f6ee;
  --amber-bg: #fef3e0;
  --blue-bg: #eaf1fb;
  --blue: #2f6fb0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(60, 15, 30, 0.12);
  --font-display: 'Archivo', 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--gray-bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--red-bright); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.85); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-solid-red { background: var(--red-bright); color: var(--white); }
.btn-solid-red:hover { background: var(--red-mid); }
.btn-ghost { background: var(--gray-bg); color: var(--ink); border-color: var(--gray-line); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top navigation ---------- */
.site-header {
  background: linear-gradient(120deg, var(--red-bright), var(--red-mid));
  position: relative;
  z-index: 40;
}
.site-header::after {
  content: '';
  display: block;
  height: 4px;
  background: var(--maroon-dark);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.brand-text .brand-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.02em; }
.brand-text .brand-tagline { font-size: 12px; opacity: 0.85; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  color: rgba(255,255,255,0.92);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.main-nav a:hover { background: rgba(255,255,255,0.12); }
.main-nav a.active { background: rgba(255,255,255,0.22); color: var(--white); }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }

.mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 26px; cursor: pointer; }

@media (max-width: 980px) {
  .main-nav { display: none; flex-direction: column; width: 100%; align-items: stretch; }
  .main-nav.open { display: flex; }
  .nav-row { flex-wrap: wrap; }
  .mobile-toggle { display: block; }
  .main-nav a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red-mid) 45%, var(--maroon-dark) 100%);
  color: var(--white);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero .subhead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 16px;
  opacity: 0.98;
}
.hero .desc {
  font-size: 16.5px;
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.leader-card { position: relative; display: flex; justify-content: center; }
.leader-ring {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 34px;
  position: relative;
  background: rgba(255,255,255,0.03);
}
.leader-photo-wrap {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1010;
  border: 3px solid rgba(255,255,255,0.5);
}
.leader-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.leader-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 2px; }
.leader-title { font-size: 14px; opacity: 0.85; }
.leader-org { font-size: 13px; opacity: 0.7; margin-bottom: 12px; }
.leader-badge {
  background: var(--red-bright);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .leader-card { order: -1; margin-bottom: 12px; }
  .leader-ring { max-width: 260px; }
}

/* ---------- Status tracker (signature element) ---------- */
.tracker {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 28px 0;
}
.tracker-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.tracker-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--gray-line);
  color: var(--slate);
  border: 3px solid var(--gray-bg);
  position: relative;
  z-index: 2;
}
.tracker-line {
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--gray-line);
  z-index: 1;
}
.tracker-step:first-child .tracker-line { display: none; }
.tracker-label { font-size: 12.5px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.03em; }
.tracker-step.done .tracker-dot { background: var(--green); color: var(--white); }
.tracker-step.done .tracker-line { background: var(--green); }
.tracker-step.current .tracker-dot { background: var(--red-bright); color: var(--white); box-shadow: 0 0 0 5px var(--amber-bg); }
.tracker-step.done .tracker-label, .tracker-step.current .tracker-label { color: var(--ink); }
.tracker-step.declined .tracker-dot { background: #b3413f; color: var(--white); }

/* ---------- Sections / cards ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-header { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  color: var(--red-bright);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(28px, 3vw, 38px); }
.section-header p { color: var(--slate); font-size: 16px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-line);
  box-shadow: var(--shadow);
  padding: 28px;
}
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stat-card { text-align: center; padding: 30px 20px; }
.stat-number { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--red-bright); }
.stat-label { color: var(--slate); font-size: 14px; font-weight: 600; margin-top: 4px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.badge-submitted { background: var(--blue-bg); color: var(--blue); }
.badge-in_review { background: var(--amber-bg); color: #b0721b; }
.badge-in_progress { background: var(--amber-bg); color: #b0721b; }
.badge-addressed { background: var(--green-bg); color: var(--green); }
.badge-declined { background: #fbe7e7; color: #b3413f; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; border: 1px solid var(--gray-line); }
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.hint { font-size: 12.5px; color: var(--slate); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=file], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--red-bright); outline: none; }
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; font-size: 14.5px; }
.alert-success { background: var(--green-bg); color: #1f7a45; border: 1px solid #bfe6cd; }
.alert-error { background: #fbe7e7; color: #a3312f; border: 1px solid #f3c1c0; }
.alert-info { background: var(--blue-bg); color: var(--blue); border: 1px solid #cfe0f3; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--gray-line); font-size: 14.5px; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--slate); font-weight: 700; }
tr:hover td { background: var(--gray-bg); }

/* ---------- Gallery ---------- */
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--gray-line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reviews ---------- */
.review-card { border-radius: var(--radius); }
.stars { color: var(--gold); font-size: 15px; margin-bottom: 8px; }
.review-name { font-weight: 800; }
.review-village { color: var(--slate); font-size: 13px; }

/* ---------- Events ---------- */
.event-card { display: flex; gap: 20px; padding: 24px; }
.event-date-box {
  flex-shrink: 0;
  width: 74px; height: 74px;
  border-radius: var(--radius-sm);
  background: var(--red-bright);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.event-date-box .day { font-size: 24px; font-weight: 800; line-height: 1; }
.event-date-box .mon { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-dark); color: rgba(255,255,255,0.82); padding: 48px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,0.75); display: block; padding: 5px 0; font-size: 14px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; font-size: 13px; color: rgba(255,255,255,0.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--slate); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-10 { gap: 10px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--slate); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }

/* ---------- Admin ---------- */
.admin-body { background: var(--gray-bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--maroon-dark);
  color: var(--white);
  padding: 24px 16px;
  flex-shrink: 0;
}
.admin-sidebar .brand-text .brand-name { font-size: 16px; }
.admin-nav { margin-top: 30px; display: flex; flex-direction: column; gap: 3px; }
.admin-nav a { color: rgba(255,255,255,0.78); padding: 11px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-nav a.active { background: var(--red-bright); color: var(--white); }
.admin-main { flex: 1; padding: 32px 36px; max-width: 1200px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 14px; }
.admin-topbar h1 { font-size: 24px; margin: 0; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--red-bright), var(--maroon-dark)); padding: 20px; }
.login-card { background: var(--white); border-radius: var(--radius); padding: 44px; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px; }
}
