/* =============================================================
   services.css — Services page
   Lives in assets/css/. Requires base.css + nav-footer.css.
   ============================================================= */

/* ── Hero ─────────────────────────────────────────────────────── */
.sv-hero {
  padding-top: calc(var(--topbar-h) + var(--nav-h) + 5rem);
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  border-bottom: 1px solid rgba(107, 143, 113, 0.12);
  text-align: center;
}
.sv-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sv-blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}
.sv-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(107,143,113,0.16) 0%, transparent 70%);
  top: -120px; right: -100px;
  animation: morphBlob 14s ease-in-out infinite alternate;
}
.sv-blob-2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(74,144,196,0.1) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation: morphBlob 10s 2s ease-in-out infinite alternate-reverse;
}
.sv-blob-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232,93,122,0.08) 0%, transparent 70%);
  top: 40%; left: 22%;
}
.sv-hero-inner { position: relative; z-index: 1; }

.sv-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  line-height: 1.06;
  color: var(--slate);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}
.sv-h1 em { font-style: italic; color: var(--warm); }

.sv-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.sv-funding-pills {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.sv-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pc, var(--sage));
  background: var(--pbg, var(--sage-pale));
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  letter-spacing: 0.03em;
}

/* ── Quick Nav ────────────────────────────────────────────────── */
.sv-quicknav {
  position: sticky;
  top: calc(var(--topbar-h) + var(--nav-h));
  z-index: 80;
  background: var(--white);
  border-bottom: 1px solid rgba(107, 143, 113, 0.12);
  box-shadow: 0 2px 12px rgba(44, 62, 53, 0.06);
}
.sv-quicknav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0;
  width: min(1200px, 92vw);
  margin-inline: auto;
  justify-content: center;
}
.sv-quicknav-inner::-webkit-scrollbar { display: none; }
.sv-qn-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-mid);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.sv-qn-link:hover { color: var(--slate); border-bottom-color: var(--warm); }
.sv-qn-link.active { color: var(--slate); border-bottom-color: var(--warm); }

/* ── Main cards ───────────────────────────────────────────────── */
.sv-main {
  padding: 4rem 0 5rem;
  background: var(--white);
}
.sv-container {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sv-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid rgba(107, 143, 113, 0.1);
  padding: 3.5rem 0;
  gap: 3rem;
  position: relative;
  transition: background 0.2s;
  scroll-margin-top: 120px;
}
.sv-card::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--ac, var(--sage));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 0 2px 2px 0;
}
.sv-card:hover::before { opacity: 1; }
.sv-card:last-child { border-bottom: none; }

/* Dark card variant */
.sv-card--dark {
  background: var(--slate);
  border-radius: var(--r-md);
  padding: 3.5rem;
  border-bottom: none;
  margin-bottom: 0;
}
.sv-card--dark::before { display: none; }
.sv-card--dark .sv-card-title { color: var(--white); }
.sv-card--dark .sv-card-lead,
.sv-card--dark .sv-card-body-text { color: rgba(255,255,255,0.7); }
.sv-card--dark .sv-list li { color: rgba(255,255,255,0.65); }
.sv-card--dark .sv-list li::before { background: rgba(255,255,255,0.4); }
.sv-card--dark .sv-funding-badge { border: 1px solid rgba(255,255,255,0.15); }

/* Aside */
.sv-card-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  padding-top: 0.25rem;
}
.sv-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sv-card-icon svg { width: 26px; height: 26px; }

.sv-funding-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.22rem 0.75rem;
  white-space: nowrap;
}
.sv-card-stat {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}
.sv-card-stat strong {
  color: var(--slate);
  font-weight: 600;
}
.sv-card--dark .sv-card-stat { color: rgba(255,255,255,0.5); }
.sv-card--dark .sv-card-stat strong { color: var(--white); }

/* Body */
.sv-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sv-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--slate);
  line-height: 1.15;
}
.sv-card-lead {
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
}
.sv-card-body-text {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
}

.sv-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
  margin-top: 0.25rem;
}
.sv-list li {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.sv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ac, var(--sage));
}

/* Tip box */
.sv-card-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--sage-dark);
  background: var(--sage-pale);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  line-height: 1.5;
}

/* CTA link */
.sv-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--lc, var(--sage));
  background: var(--lbg, var(--sage-pale));
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  width: fit-content;
  margin-top: 0.25rem;
  transition: opacity 0.2s, transform 0.2s;
}
.sv-cta-link:hover { opacity: 0.82; transform: translateX(2px); }
.sv-cta-link--light {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
}
.sv-cta-link--light:hover { background: rgba(255,255,255,0.2); opacity: 1; }

/* ── Funding Section ──────────────────────────────────────────── */
.sv-funding {
  padding: 6rem 0;
  background: var(--off-white);
  border-top: 1px solid rgba(107, 143, 113, 0.1);
}
.sv-funding-hdr { text-align: center; margin-bottom: 3.5rem; }

.sv-funding-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.sv-funding-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid rgba(107, 143, 113, 0.1);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.sv-funding-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sv-funding-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.sv-funding-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--slate);
}
.sv-funding-card p {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── CTA (shared) ─────────────────────────────────────────────── */
.cta-sec {
  padding: 7rem 0;
  background: linear-gradient(135deg, var(--warm) 0%, #a85e30 100%);
  position: relative; overflow: hidden;
}
.cta-sec::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='%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/svg%3E");
  pointer-events: none;
}
.cta-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.cta-inner .sec-h    { color: var(--white); }
.cta-inner .sec-h em { color: rgba(255,255,255,0.75); }
.cta-inner > p { font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.8); max-width: 46ch; line-height: 1.7; }
.cta-dots { display: flex; align-items: center; gap: 8px; }
.cta-dot  { width: 10px; height: 10px; border-radius: 50%; opacity: 0.75; }
.cta-acts { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-cw {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--warm); background: var(--white); border: none; cursor: pointer;
  padding: 0.9rem 2.2rem; border-radius: 50px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.btn-cw:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.btn-co {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--white); background: transparent;
  border: 2px solid rgba(255,255,255,0.45); cursor: pointer;
  padding: 0.88rem 2rem; border-radius: 50px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-co:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .sv-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .sv-card-aside { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sv-card--dark { padding: 2rem 1.5rem; }
  .sv-funding-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sv-funding-grid { grid-template-columns: 1fr; }
  .cta-acts { flex-direction: column; }
  .sv-card { padding: 2.5rem 0; }
}