/* ============================================================
   Blue Leopards — NJ Flag Color Palette
   Blue:  #1B3A8B (NJ coat-of-arms blue, Pantone 286 C approx)
   Buff:  #C9973A (NJ flag buff/gold, Pantone 7509 C approx)
   ============================================================ */

:root {
  --blue:        #1B3A8B;
  --blue-dark:   #0F2560;
  --blue-light:  #2E54C0;
  --buff:        #C9973A;
  --buff-light:  #F2E4C0;
  --buff-pale:   #FAF4E6;
  --white:       #FFFFFF;
  --gray-100:    #F7F5F0;
  --gray-200:    #EAE6DC;
  --gray-500:    #6B6453;
  --gray-800:    #2C2A25;
  --text:        #1E1C17;
  --radius:      6px;
  --shadow-sm:   0 1px 3px rgba(27,58,139,.12);
  --shadow-md:   0 4px 16px rgba(27,58,139,.14);
  --transition:  0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

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

h1, h2, h3 {
  font-family: 'Crimson Pro', Georgia, serif;
  line-height: 1.2;
  color: var(--blue-dark);
}

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

/* ---- Header ---- */
.site-header {
  background: var(--blue-dark);
  border-bottom: 3px solid var(--buff);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 2px solid var(--buff);
  object-fit: cover;
}

.logo-text {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--buff);
  letter-spacing: 0.01em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--buff-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--buff);
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--buff);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 1; }

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--buff);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--buff-light);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--buff);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* ---- Pillars (home) ---- */
.pillars {
  padding: 4rem 0;
  background: var(--buff-pale);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--buff);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.pillar-card h3 {
  font-size: 1.2rem;
  color: var(--blue-dark);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--buff);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue-dark);
}

/* ---- Page header ---- */
.page-header {
  background: var(--blue-dark);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  border-bottom: 3px solid var(--buff);
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-header p {
  color: var(--buff-light);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* ---- Content sections ---- */
.content-section {
  padding: 3rem 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--gray-200);
}

.prose {
  max-width: 720px;
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-800);
}

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

/* ---- Document list ---- */
.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.doc-list li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--buff);
  border-radius: var(--radius);
  color: var(--blue);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.doc-list li a:hover {
  background: var(--buff-pale);
  border-left-color: var(--blue);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.doc-list li a .doc-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---- Events ---- */
.events-section { padding: 3rem 0; }

.events-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--buff);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--buff-light);
}

.event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.event-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue);
  border-radius: var(--radius) 0 0 var(--radius);
}

.event-card.completed::before { background: var(--gray-500); }
.event-card.completed { opacity: 0.75; }

.event-card p { color: var(--gray-800); font-size: 1rem; line-height: 1.6; }
.event-card a { color: var(--blue); font-weight: 500; }
.event-card a:hover { color: var(--buff); }

.event-notice {
  background: var(--buff-pale);
  border: 1px solid var(--buff-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--gray-500);
  font-size: 0.95rem;
  font-style: italic;
}

/* ---- Resources ---- */
.resource-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-list li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--blue);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.resource-list li a:hover {
  background: var(--buff-pale);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--blue-dark);
}

.resource-list li a::before {
  content: '→';
  color: var(--buff);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--blue-dark);
  border-top: 3px solid var(--buff);
  color: var(--buff-light);
  padding: 2.5rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.5rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--buff);
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--buff);
  object-fit: cover;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: center;
}

.footer-nav a {
  color: var(--buff-light);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--buff); }


.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(201,151,58,0.2);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    border-top: 1px solid rgba(201,151,58,0.3);
    padding: 1rem;
    z-index: 99;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.6rem 1rem;
  }

  .site-header { position: relative; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand { justify-content: center; }

  .resource-list { grid-template-columns: 1fr; }
}
