/* Belize Research Site — Shared Styles */

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

:root {
  --teal:       #0e7490;
  --teal-light: #cffafe;
  --teal-mid:   #06b6d4;
  --sand:       #faf7f2;
  --sand-mid:   #f0ebe0;
  --sand-dark:  #d6cfc2;
  --navy:       #1e3a4c;
  --text:       #2d3748;
  --text-light: #5a6778;
  --warn:       #b45309;
  --warn-bg:    #fffbeb;
  --warn-border:#fde68a;
  --good:       #059669;
  --good-bg:    #ecfdf5;
  --radius:     8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--sand);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Nav ── */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-brand {
  color: var(--teal-mid);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: 1rem 1.25rem 1rem 0;
  white-space: nowrap;
  margin-right: .5rem;
  border-right: 1px solid rgba(255,255,255,.15);
  text-decoration: none;
}
.nav-inner a:not(.nav-brand) {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .875rem;
  padding: .9rem 1rem;
  transition: color .15s, background .15s;
  border-radius: 0;
}
.nav-inner a:not(.nav-brand):hover,
.nav-inner a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* ── Page hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.hero p {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Main layout ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Sections ── */
section {
  margin-bottom: 3rem;
}
section + section {
  border-top: 1px solid var(--sand-dark);
  padding-top: 2.5rem;
}

h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 700;
}
h3 {
  font-size: 1.1rem;
  color: var(--teal);
  margin: 1.5rem 0 .6rem;
  font-weight: 600;
}
h4 {
  font-size: .95rem;
  color: var(--text);
  margin: 1rem 0 .4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .8rem;
}
p { margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .9rem;
}
thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: .65rem 1rem;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: var(--sand); }
tbody tr:hover { background: var(--teal-light); transition: background .1s; }
td {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--sand-mid);
  vertical-align: top;
}
td:first-child { font-weight: 500; white-space: nowrap; }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border-top: 4px solid var(--teal);
}
.card.warn-card  { border-top-color: var(--warn); }
.card.good-card  { border-top-color: var(--good); }
.card h3 { margin-top: 0; }
.card p  { font-size: .9rem; }

/* ── Area cards (shortlist) ── */
.area-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 5px rgba(0,0,0,.09);
  margin-bottom: 1.75rem;
  border-left: 5px solid var(--teal);
}
.area-card.bay { border-left-color: var(--warn); }
.area-card h3 {
  font-size: 1.2rem;
  margin: 0 0 .3rem;
  color: var(--navy);
}
.area-card .tagline {
  font-size: .875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.area-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal);
}
.badge.warn { background: var(--warn-bg); color: var(--warn); }

/* ── Callout boxes ── */
.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: .92rem;
}
.callout.info {
  background: var(--good-bg);
  border-color: #6ee7b7;
  border-left-color: var(--good);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: .3rem; font-size: .95rem; }

/* ── Section headers with color ── */
.section-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--teal);
  margin-bottom: .35rem;
}

/* ── Numbered critical issues ── */
.issue-list { counter-reset: issue; }
.issue {
  counter-increment: issue;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.1rem 3.5rem;
  margin-bottom: .85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  position: relative;
}
.issue::before {
  content: counter(issue);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.75rem;
  text-align: center;
}
.issue h4 {
  margin: 0 0 .4rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
}
.issue p { font-size: .9rem; margin-bottom: .4rem; }
.issue p:last-child { margin-bottom: 0; }

/* ── Comparison highlight table ── */
.compare-table thead th:nth-child(2) { background: #1a5276; }
.compare-table thead th:nth-child(3) { background: #1d6b50; }
.compare-table thead th:nth-child(4) { background: #7b5c00; }
.compare-table tbody td.best { font-weight: 700; color: var(--good); }
.compare-table tbody td.warn { color: var(--warn); }

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 1.5rem;
  font-size: .8rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.5rem; }
  main { padding: 1.5rem 1rem 3rem; }
  .nav-brand { font-size: .8rem; padding-right: .75rem; margin-right: .25rem; }
  .nav-inner a:not(.nav-brand) { padding: .8rem .6rem; font-size: .8rem; }
  td { padding: .5rem .75rem; }
  .area-card { padding: 1.1rem 1.2rem; }
}
