/* =========================================
   BASE & RESET
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1B3A6B;
  --blue:    #2E86AB;
  --sky:     #D6EAF8;
  --light:   #F7F9FC;
  --white:   #FFFFFF;
  --ink:     #1A202C;
  --muted:   #4A5568;
  --border:  #E2E8F0;
  --accent:  #E8F4FD;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --radius: 10px;
  --shadow: 0 2px 16px rgba(27,58,107,.08);
  --shadow-lg: 0 8px 40px rgba(27,58,107,.13);

  --max-w: 1100px;
  --section-gap: 96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--light);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; }

p { color: var(--muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.8;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}

/* =========================================
   LAYOUT HELPERS
   ========================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-gap) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 28px; }
.guide-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid .guide-card { grid-column: 1 / -1 !important; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }

.text-center { text-align: center; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 700;
}
.nav-brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); text-decoration: none; }

.nav-links a.active { border-bottom: 2px solid var(--blue); padding-bottom: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--navy);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5298 60%, var(--blue) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  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-content { position: relative; }

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: .75rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .lead { color: rgba(255,255,255,.8); margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
}
.btn-primary:hover { background: var(--sky); text-decoration: none; color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; color: var(--white); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: #236f8f; text-decoration: none; color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover { background: var(--accent); text-decoration: none; }

/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: box-shadow .2s, transform .2s;
}

.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.icon-navy  { background: var(--accent); color: var(--navy); }
.icon-blue  { background: var(--sky);    color: var(--blue); }

/* =========================================
   SKILL BARS
   ========================================= */
.skill-item { margin-bottom: 1.25rem; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: .4rem; font-size: .875rem; font-weight: 600; }
.skill-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* =========================================
   EVIDENCE CARDS
   ========================================= */
.evidence-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

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

.evidence-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.evidence-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.evidence-body h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.evidence-body p  { font-size: .875rem; flex: 1; }

.evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tag {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.tag-navy   { background: var(--accent); color: var(--navy); }
.tag-blue   { background: var(--sky);    color: #1a6894; }
.tag-green  { background: #e8f8f5;       color: #1a6b5e; }
.tag-orange { background: #fef5ec;       color: #9a5c0a; }

/* =========================================
   RUBRIC GRID
   ========================================= */
.rubric-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}

.rubric-card h3 { margin-bottom: .75rem; }
.rubric-card ul { list-style: none; padding: 0; }
.rubric-card ul li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.rubric-card ul li:last-child { border-bottom: none; }
.rubric-card ul li::before { content: '→'; color: var(--blue); font-weight: 700; }

/* =========================================
   TIMELINE
   ========================================= */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}

.timeline-date {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: .25rem;
}

.timeline-item h3 { margin-bottom: .5rem; }

/* =========================================
   QUOTE BLOCK
   ========================================= */
.quote-block {
  border-left: 4px solid var(--blue);
  background: var(--accent);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.quote-block p { font-style: italic; font-size: 1.05rem; color: var(--navy); margin: 0; }

/* =========================================
   REFLECTION SECTIONS
   ========================================= */
.reflection-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.reflection-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5298 100%);
  padding: 64px 0 56px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-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");
}

.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 600px; margin: 0; }

/* =========================================
   CHECKLIST
   ========================================= */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
}
.checklist li:last-child { border-bottom: none; }
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f8f5;
  color: #1a6b5e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 48px 0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; }
.footer-links a:hover { color: var(--white); text-decoration: none; }

/* =========================================
   DIVIDER
   ========================================= */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* =========================================
   PLACEHOLDER NOTICE
   ========================================= */
.placeholder {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: 6px;
  padding: .6rem 1rem;
  font-size: .8rem;
  color: #92400e;
  font-style: italic;
  margin-bottom: .5rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  :root { --section-gap: 64px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 24px;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-inner { position: relative; }

  .hero { padding: 72px 0 56px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .reflection-section { padding: 24px; }
  .card { padding: 24px; }
}
