/* Stockton Ventures — shared styles for vertical + supporting pages.
   Mirrors the visual system used on index.html (monochrome + green accent).
   Page background: white. Hero, CTA, footer: charcoal. Accent: #10b981. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #1d1d1f;
  --text: #1d1d1f;
  --text-muted: #424245;
  --text-soft: #6e6e73;
  --text-subtle: #86868b;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.18);
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-soft: rgba(16,185,129,0.08);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --t-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px)  { .container { padding: 0 48px; } }
@media (min-width: 1200px) { .container { padding: 0 64px; } }

/* ─── NAV ─── */
/* Default (light) state — used over light sections after the hero */
nav.sv-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--t-smooth), border-bottom-color 0.3s var(--t-smooth);
}
nav.sv-nav.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: var(--border);
}

/* Dark state — applied while the nav is over the dark page-hero */
nav.sv-nav.nav-dark {
  background: linear-gradient(to bottom, rgba(29,29,31,0.95) 0%, rgba(29,29,31,0) 100%);
  border-bottom-color: transparent;
}
nav.sv-nav.nav-dark.scrolled {
  background: rgba(29,29,31,0.97);
  border-bottom-color: rgba(255,255,255,0.08);
}
nav.sv-nav.nav-dark .nav-links a { color: rgba(255,255,255,0.55); }
nav.sv-nav.nav-dark .nav-links a:hover { color: #ffffff; }
nav.sv-nav.nav-dark .nav-cta { background: #ffffff; color: #000000; }
nav.sv-nav.nav-dark .nav-cta:hover { background: #f0f0f0; }

.nav-content { display: flex; justify-content: space-between; align-items: center; }

/* Logo — always Stockton Ventures green (icon + text) */
.logo {
  text-decoration: none; display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--accent);
}
.logo-text { color: var(--accent); }
.logo-text span { color: var(--accent); }

.nav-links { display: none; gap: 36px; list-style: none; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--text-soft); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: #ffffff;
  padding: 10px 20px; border-radius: var(--radius-md);
  text-decoration: none; font-weight: 600; font-size: 0.875rem;
  transition: all 0.3s var(--t-smooth);
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

/* ─── PAGE HERO (smaller than homepage hero) ─── */
.page-hero {
  background: var(--bg-dark); color: #ffffff;
  padding: 160px 0 100px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 880px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 7px 14px; border-radius: var(--radius-sm);
  margin-bottom: 28px;
}
.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.08;
  margin-bottom: 24px;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero .hero-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 680px; line-height: 1.7; margin-bottom: 36px;
}
.page-hero-cta-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #ffffff; color: #000;
  padding: 14px 26px; border-radius: var(--radius-md);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s var(--t-smooth);
}
.btn-primary:hover { background: #f0f0f0; transform: translateY(-2px); }
.btn-primary svg { width: 18px; height: 18px; transition: transform 0.25s var(--t-smooth); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: #ffffff;
  padding: 14px 26px; border-radius: var(--radius-md);
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.25s var(--t-smooth);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* ─── SECTIONS ─── */
.sv-section { padding: 100px 0; }
.sv-section.alt { background: var(--bg-alt); }
.sv-section.dark { background: var(--bg-dark); color: #ffffff; }
.sv-section.dark .section-tag { color: var(--accent); }
.sv-section.dark .section-title { color: #ffffff; }
.sv-section.dark .section-subtitle { color: rgba(255,255,255,0.65); }
.sv-section.dark p { color: rgba(255,255,255,0.7); }

.section-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-header.left { margin-left: 0; text-align: left; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600; margin-bottom: 16px;
}
.section-tag::before, .section-tag::after { content: ''; width: 24px; height: 1px; }
.section-tag::before { background: linear-gradient(90deg, transparent, var(--accent)); }
.section-tag::after  { background: linear-gradient(90deg, var(--accent), transparent); }
.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15; margin-bottom: 18px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-soft);
  line-height: 1.7; max-width: 620px; margin: 0 auto;
}
.section-header.left .section-subtitle { margin: 0; }

/* ─── PROSE BLOCK ─── */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 1.02rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.015em;
  margin: 36px 0 14px;
}
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 14px 0 22px 24px; }
.prose ul li {
  font-size: 1rem; line-height: 1.75; color: var(--text-muted);
  margin-bottom: 8px;
}
.prose strong { color: var(--text); font-weight: 600; }

/* ─── CARD GRID (3-up reasons / criteria) ─── */
.card-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px)  { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid.two-up { grid-template-columns: repeat(2, 1fr); } }

.sv-card {
  background: #ffffff;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s var(--t-smooth);
}
.sv-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.sv-card .card-num {
  font-size: 2.2rem; font-weight: 800; color: var(--accent);
  line-height: 1; margin-bottom: 12px;
}
.sv-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.sv-card p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.7; }

.sv-section.alt .sv-card { background: #ffffff; }

/* ─── CHECKLIST (criteria list) ─── */
.checklist {
  display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 780px; margin: 0 auto;
}
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
.check-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.check-icon {
  width: 28px; height: 28px;
  background: var(--accent); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.check-icon svg { width: 14px; height: 14px; color: #ffffff; }
.check-item .check-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.check-item .check-desc { color: var(--text-soft); font-size: 0.86rem; line-height: 1.6; }

/* ─── PROCESS STEPS (compact 3-up) ─── */
.steps-row {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 768px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
.step-cell {
  background: #ffffff;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; position: relative;
}
.step-cell .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; font-size: 0.95rem; font-weight: 800;
  border-radius: var(--radius-md); margin-bottom: 18px;
}
.step-cell h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-cell p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.7; }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details.sv-faq {
  background: #ffffff;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color 0.3s ease;
}
details.sv-faq[open] { border-color: var(--border-strong); }
details.sv-faq summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 26px; cursor: pointer;
  font-size: 0.95rem; font-weight: 600;
  list-style: none; user-select: none; gap: 12px;
}
details.sv-faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 18px; height: 18px; color: var(--text-soft); flex-shrink: 0;
  transition: transform 0.3s ease;
}
details.sv-faq[open] .faq-icon { transform: rotate(180deg); color: var(--accent); }
.faq-answer { padding: 0 26px 22px; color: var(--text-soft); font-size: 0.92rem; line-height: 1.8; }

/* ─── CTA SECTION ─── */
.cta-block {
  text-align: center; max-width: 700px; margin: 0 auto;
}
.cta-block h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 18px; color: #ffffff;
}
.cta-block p {
  font-size: 1.05rem; color: rgba(255,255,255,0.65);
  margin-bottom: 36px; line-height: 1.7;
}
.cta-block .cta-contact {
  margin-top: 24px; font-size: 0.88rem; color: rgba(255,255,255,0.45);
}
.cta-block .cta-contact a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.3s ease; }
.cta-block .cta-contact a:hover { color: var(--accent); }

/* ─── INTERNAL LINK STRIP ─── */
.related-row {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  max-width: 980px; margin: 0 auto;
}
@media (min-width: 640px) { .related-row { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  display: block; padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: all 0.3s var(--t-smooth);
}
.related-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(16,185,129,0.08); }
.related-card .related-label {
  font-size: 0.72rem; color: var(--accent);
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
}
.related-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.related-card p { color: var(--text-soft); font-size: 0.86rem; line-height: 1.6; }

/* ─── FOOTER ─── */
footer.sv-footer {
  padding: 56px 0 36px;
  background: var(--bg-dark); color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-top {
  display: flex; flex-direction: column; gap: 36px; margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 12px;
  color: var(--accent);
}
.footer-brand-name {
  font-size: 1rem; font-weight: 600; color: var(--accent); letter-spacing: -0.01em;
}
.footer-brand-name span { color: var(--accent); }
.footer-tagline { font-size: 0.85rem; color: var(--text-soft); max-width: 280px; line-height: 1.65; }
.footer-links-group { display: flex; gap: 56px; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 600; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-soft); text-decoration: none; font-size: 0.86rem; transition: color 0.3s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copy { color: #525252; font-size: 0.78rem; }

/* ─── UTILITIES ─── */
.muted { color: var(--text-soft); }
.tight { max-width: 720px; }
.center { text-align: center; }
