/* ==========================================================================
   Arbor Genie — Shared Design System v2
   Extracted from index.html (2026-05-28). Used by all pages for visual consistency.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --deep-teal: #143652;
  --deep-teal-darker: #0D1F2D;
  --forest-green: #3B6D48;
  --teal-light: #1E4A6B;
  --teal-accent: #2A5D7A;
  --green-bright: #4A8B5E;
  --green-soft: #5DA872;

  /* Neutrals */
  --dark-gray: #1F2937;
  --mid-gray: #6B7280;
  --soft-gray: #4B5563;
  --border-gray: #E5E7EB;
  --light-gray: #F8F9FA;
  --light-platform: #F8FAFB;
  --light-platform-border: #EAEEF2;

  /* Layout */
  --content-max: 1100px;
  --content-padding: 10vw;
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-light); text-decoration: none; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* --------------------------------------------------------------------------
   Nav (matches index.html .main-nav exactly)
   -------------------------------------------------------------------------- */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(20,54,82,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.main-nav-brand {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}
.main-nav-links { display: flex; gap: 1.75rem; }
.main-nav-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.main-nav-links a:hover,
.main-nav-links a.active { color: white; }
.main-nav-cta {
  font-size: 0.82rem;
  color: white;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Sub-page hero (no full-bleed image; clean dark hero on deep teal)
   -------------------------------------------------------------------------- */
.subpage-hero {
  background: linear-gradient(135deg, var(--deep-teal-darker) 0%, var(--deep-teal) 100%);
  color: white;
  padding: 9rem var(--content-padding) 5rem;
  position: relative;
  overflow: hidden;
}
.subpage-hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle at top right, rgba(93,168,114,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.subpage-hero-content {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.subpage-hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-soft);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.subpage-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: white;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.subpage-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 580px;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: 5.5rem 0 5rem;
  background: white;
}
.section-alt {
  padding: 5.5rem 0 5rem;
  background: var(--light-platform);
  border-top: 1px solid var(--light-platform-border);
  border-bottom: 1px solid var(--light-platform-border);
}
.section-dark {
  padding: 5.5rem 0 5rem;
  background: var(--deep-teal-darker);
  color: white;
}
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255,255,255,0.65); }

/* Section label with green accent line */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-green);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--forest-green);
}
.section-dark .section-label { color: var(--green-soft); }
.section-dark .section-label::before { background: var(--green-soft); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.section h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 800;
  color: var(--deep-teal-darker);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.section-dark h2 {
  color: white;
}
.section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-teal-darker);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}
.section-dark h3 { color: white; }
.section p {
  font-size: 1.05rem;
  color: var(--soft-gray);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 1.1rem;
}
.section-dark p { color: rgba(255,255,255,0.65); }
.section ul, .section ol {
  font-size: 1.02rem;
  color: var(--soft-gray);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  max-width: 640px;
}
.section li { margin-bottom: 0.4rem; }
.section strong { color: var(--deep-teal-darker); font-weight: 600; }
.section em { color: var(--soft-gray); font-style: italic; }

.text-center { text-align: center; }
.text-muted { color: var(--mid-gray); }
.text-small { font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   Cards (used by integrations, pathway-genie sub-pages)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 1rem;
  max-width: 100%;
}
@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 1.6rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--forest-green);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20,54,82,0.07);
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-teal-darker);
  margin: 0 0 0.5rem;
}
.card p {
  font-size: 0.92rem;
  color: var(--mid-gray);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}
.card .card-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0.85rem;
  color: var(--forest-green);
}

/* --------------------------------------------------------------------------
   Buttons / CTA
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--forest-green);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59,109,72,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--forest-green);
  border: 2px solid var(--forest-green);
}
.btn-outline:hover { background: var(--forest-green); color: white; }

/* --------------------------------------------------------------------------
   CTA section (bottom CTA on every page)
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--deep-teal-darker);
  padding: 6.5rem 0 6.5rem;
  text-align: center;
}
.cta-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-soft);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.cta-section h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Footer (matches index.html .site-footer exactly)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--deep-teal);
  color: white;
  padding: 2rem 0;
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.site-footer__logo {
  height: 40px;
  filter: brightness(0) invert(1);
}
.site-footer__text {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  margin: 0;
}
.site-footer__nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.site-footer__link {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  text-decoration: none;
}
.site-footer__link:hover { color: white; }

/* --------------------------------------------------------------------------
   Content wrapper (constrains long-form prose on utility pages)
   -------------------------------------------------------------------------- */
.content {
  max-width: 720px;
  margin: 0 auto;
}
.content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .main-nav { padding: 0.85rem 1.25rem; }
  .main-nav-links { display: none; }
  .subpage-hero { padding: 7rem var(--content-padding) 3.5rem; }
  .section, .section-alt, .section-dark { padding: 4rem 0; }
  :root { --content-padding: 6vw; }
}
