/* === THE COMPASS — Nonprofit Landing Page === */

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

:root {
  --bg: #0b1510;
  --surface: #101d17;
  --surface2: #152219;
  --border: #1e3026;
  --text: #f0f7f2;
  --text-muted: #8faf9e;
  --text-dim: #4a6b54;

  /* Brand palette */
  --teal: #14b8a6;
  --teal-dim: rgba(20, 184, 166, 0.12);
  --yellow: #eab308;
  --green: #22c55e;
  --blue: #3b82f6;
  --orange: #f97316;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 21, 16, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--teal);
  color: var(--bg) !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 21, 16, 0.2) 0%,
    rgba(11, 21, 16, 0.5) 50%,
    rgba(11, 21, 16, 0.92) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(240, 247, 242, 0.8);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* === SECTION SPACING === */
.section { padding: 96px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.75;
}

/* === JUSTIN'S STORY === */
.story { background: var(--surface); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}
.story-copy { padding-top: 8px; }
.story-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.story-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.story-text:first-of-type { font-size: 17px; color: var(--text); }
.story-text strong { color: var(--text); }
.story-quote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--surface2);
  border-radius: 0 8px 8px 0;
}
.story-quote p {
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}
.story-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  color: var(--text-muted);
}
.story-photos { display: flex; flex-direction: column; gap: 16px; }
.story-photo-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface2);
}
.story-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.story-photo-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* === PHOENI PROJECT === */
.phoeni { background: var(--bg); }
.phoeni-process {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.process-step {
  background: var(--surface);
  padding: 36px 28px;
  position: relative;
}
.process-step::before {
  content: attr(data-step);
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--border);
  letter-spacing: -2px;
  display: block;
  margin-bottom: 20px;
  line-height: 1;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.process-arrow {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--text-dim);
  font-size: 12px;
}
.phoeni-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.stat-item {
  background: var(--surface);
  padding: 32px 28px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: var(--text-muted); }

/* === GET INVOLVED === */
.involve { background: var(--surface); }
.involve-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.involve-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.involve-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.involve-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.involve-icon.teal { background: var(--teal-dim); color: var(--teal); }
.involve-icon.yellow { background: rgba(234, 179, 8, 0.12); color: var(--yellow); }
.involve-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.involve-icon.blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.involve-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.involve-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.involve-card .btn-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.involve-card .btn-small:hover { background: var(--border); }

/* === FOOTER === */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.footer-logo img { height: 48px; margin-bottom: 14px; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 260px;
}
.footer-contact-item {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 8px; }
.footer-links-list a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-list a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-memorial {
  font-size: 13px;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .phoeni-process { grid-template-columns: repeat(2, 1fr); }
  .process-arrow { display: none; }
  .phoeni-stats { grid-template-columns: 1fr; }
  .involve-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .section { padding: 64px 20px; }
  .hero-content { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .phoeni-process { grid-template-columns: 1fr; }
  .involve-grid { grid-template-columns: 1fr; }
  .hero-headline { letter-spacing: -1px; }
  .footer { padding: 48px 20px; }
}