/* ============================================================
   ToadVille Bay Archives — Global Stylesheet
   ============================================================ */

:root {
  --navy:      #1a3c6e;
  --teal:      #1a6b5a;
  --green:     #1d5c3a;
  --green-mid: #2a7a50;
  --light-bg:  #f0f5f2;
  --card-bg:   #ffffff;
  --border:    #c8ddd4;
  --text:      #1a2a22;
  --muted:     #5a7a68;
  --white:     #ffffff;
  --shadow:    0 2px 12px rgba(26,60,110,0.10);
  --radius:    10px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a   { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text); }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--white);
}

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-brand span {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav-brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  text-decoration: none;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--green) 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.04'%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-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(26,60,110,0.14);
}

.stat-card .stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-card .stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

/* ── Content Cards / Grid ─────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(26,60,110,0.14);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
}

/* ── Section Heading ──────────────────────────────────────── */
.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
}

.section-heading .overline {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--navy), var(--teal), var(--green));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.05rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 3px solid var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(26,107,90,0.15);
}

.timeline-item.era-start::before {
  border-color: var(--navy);
  width: 18px;
  height: 18px;
  left: -2.15rem;
  top: 0.2rem;
  background: var(--navy);
}

.timeline-year {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.4rem;
}

.timeline-item h3 {
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 680px;
}

.era-banner {
  background: linear-gradient(90deg, var(--navy), var(--teal));
  color: var(--white);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  margin: 3rem 0 2rem -2.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Charts ───────────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (max-width: 520px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.chart-card h3 {
  margin-bottom: 0.25rem;
}

.chart-card .chart-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.chart-wrapper {
  position: relative;
  height: 280px;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ── Pill Tag ─────────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-green { background: #d4f0e0; color: var(--green); }
.pill-navy  { background: #d6e4f5; color: var(--navy);  }
.pill-teal  { background: #d0ede7; color: var(--teal);  }

/* ── About Sections ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-logo {
  width: 180px;
  margin: 0 auto;
}

.info-list {
  list-style: none;
  margin-top: 1rem;
}

.info-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.info-list li:last-child { border-bottom: none; }

.info-list .label { color: var(--muted); font-weight: 600; }
.info-list .value { color: var(--navy); font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  margin-top: auto;
}

.site-footer p {
  color: rgba(255,255,255,0.92);
}

.site-footer strong {
  color: var(--white);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.75);
}

.breadcrumb a:hover { color: var(--white); }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Responsive Nav ───────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-brand small { display: none; }
  .nav-links a { padding: 0.45rem 0.6rem; font-size: 0.82rem; }
}
