/* ==========================================================================
   Pemberton 24 -- site theme
   Loaded from Topnav.php, so it cascades to every page (public + reports).
   ========================================================================== */

:root {
  --pb-forest: #0b3d2e;
  --pb-forest-2: #0f5240;
  --pb-teal: #0f6657;
  --pb-amber: #f4a825;
  --pb-amber-dark: #c9820d;
  --pb-ink: #17231c;
  --pb-muted: #6b6455;
  --pb-paper: #faf8f3;
  --pb-paper-2: #f1ede1;
  --pb-line: #e3ddcd;
  --pb-white: #ffffff;
  --pb-shadow: 0 10px 26px rgba(15, 30, 22, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--pb-ink);
  background: var(--pb-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--pb-forest);
  letter-spacing: 0.01em;
}

img { max-width: 100%; }

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

/* --------------------------------------------------------------------------
   Header / nav (markup lives in Topnav.php)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pb-forest);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.navbar-brand img {
  max-height: 46px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.navbar-brand .brand-text {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li.active > a,
.nav-links > li.open > a {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav-links .caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7em;
  opacity: 0.8;
}

.nav-user {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(11, 61, 46, 0.22);
  padding: 8px;
  display: none;
  z-index: 120;
}

.nav-links > li.open > .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--pb-ink);
  font-size: 0.9rem;
  text-decoration: none;
}

.dropdown-menu a:hover { background: var(--pb-paper-2); }

.dropdown-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a49c86;
  padding: 8px 12px 2px;
  font-weight: 700;
}

.dropdown-divider {
  height: 1px;
  background: var(--pb-line);
  margin: 6px 4px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: var(--pb-forest-2);
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { width: 100%; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    display: none;
    width: 100%;
  }
  .nav-links > li.open > .dropdown-menu { display: block; }
  .dropdown-menu a { color: rgba(255, 255, 255, 0.92); }
  .dropdown-menu a:hover { background: rgba(255, 255, 255, 0.14); }
  .dropdown-header { color: rgba(255, 255, 255, 0.55); }
  .dropdown-divider { background: rgba(255, 255, 255, 0.16); }
  .nav-user { padding: 6px 4px 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 20px 96px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 168, 37, 0.28), transparent 42%),
    linear-gradient(160deg, var(--pb-forest) 0%, var(--pb-teal) 60%, #16855f 100%);
}

.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pb-amber);
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin: 0 0 18px;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.hero-fact {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--pb-amber);
  color: #241a04;
  box-shadow: 0 10px 22px rgba(244, 168, 37, 0.4);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(244, 168, 37, 0.5); color: #241a04; }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.btn-dark {
  background: var(--pb-forest);
  color: #fff;
}
.btn-dark:hover { background: var(--pb-forest-2); color: #fff; }

.status-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--pb-forest);
  margin-left: 8px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Sections / layout
   -------------------------------------------------------------------------- */

.section {
  padding: 60px 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-alt { background: var(--pb-paper-2); }
.section-alt > .section { padding-top: 60px; }
.section-dark {
  background: var(--pb-forest);
  color: rgba(255, 255, 255, 0.92);
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 10px;
}

.section-sub {
  text-align: center;
  color: var(--pb-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.02rem;
}
.section-dark .section-sub { color: rgba(255, 255, 255, 0.75); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--pb-shadow);
}

.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card p:last-child { margin-bottom: 0; }

.scoring-card { text-align: left; }
.scoring-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.1rem;
  color: var(--pb-amber-dark);
  display: block;
  margin-bottom: 6px;
}

.big-kahuna {
  border: 2px solid var(--pb-amber);
  background: linear-gradient(160deg, #fff8ea, #fff);
}

/* Timeline (schedule) */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
}
.timeline li {
  position: relative;
  padding: 0 0 30px 34px;
  border-left: 2px solid var(--pb-line);
}
.timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pb-amber);
  box-shadow: 0 0 0 4px var(--pb-paper);
}
.timeline .time {
  display: block;
  font-weight: 700;
  color: var(--pb-forest);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.timeline .desc { color: var(--pb-ink); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  padding: 9px 0 9px 30px;
  position: relative;
  border-bottom: 1px solid var(--pb-line);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--pb-teal);
  font-weight: 800;
}

/* Video / livestream wrapper */
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--pb-shadow);
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact list */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 8px 0; }
.contact-list .who { font-weight: 700; color: var(--pb-forest); }

/* --------------------------------------------------------------------------
   Tables (used across every report / admin page)
   -------------------------------------------------------------------------- */

table.pure-table,
table.pure-table-bordered {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--pb-shadow);
  margin: 0 auto 28px;
  font-size: 0.95rem;
}

.pure-table thead { background: var(--pb-forest); }
.pure-table thead th {
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
}

.pure-table td, .pure-table th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--pb-line);
}

.pure-table tbody tr:nth-child(even) { background: var(--pb-paper); }
.pure-table tbody tr:hover { background: #fbeecb; }

/* --------------------------------------------------------------------------
   Legacy admin panel / forms (index.php quick-links, sign up, etc.)
   -------------------------------------------------------------------------- */

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.form_group { padding: 10px; display: block; }

label { float: left; padding-right: 30px; display: block; width: 180px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--pb-forest);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 30px 16px;
  font-size: 0.85rem;
  margin-top: 40px;
}
.site-footer a { color: var(--pb-amber); }
.site-footer a:hover { color: #ffcf70; }
