/* svc-common.css — shared structural styles for all service pages.
   Page-specific hero animations live in /assets/css/pages/svc-<name>.css */

/* ══════════════════════════════════════════════
   HERO SHELL (dark) — shared across all svc pages
   ══════════════════════════════════════════════ */
.svc-hero {
  background: var(--dark);
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.svc-hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background: radial-gradient(ellipse at 85% 35%, rgba(60,234,199,0.09) 0%, transparent 62%);
  pointer-events: none;
}
.svc-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(0,26,21,0.55));
  pointer-events: none;
}
.svc-hero > .container {
  padding-top: calc(var(--nav-h, 80px) + 2.5rem);
  padding-bottom: 3rem;
  width: 100%;
  position: relative; z-index: 1;
}
.svc-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
  align-items: center;
}
.svc-hero .section-label {
  background: transparent;
  color: var(--teal-bright);
  border-color: rgba(60,234,199,0.42);
}
.svc-hero h1 {
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 800;
  line-height: 1.08;
  color: var(--cream);
  margin: 0.85rem 0 0;
}
.svc-hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(246,246,242,0.62);
  margin: 1.15rem 0 0;
  max-width: 48ch;
}
.svc-hero-sub2 {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(246,246,242,0.38);
  margin: 0.75rem 0 0;
  max-width: 54ch;
}
.svc-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}
.svc-hero-cta .btn-ghost {
  color: var(--teal-light);
  border-color: rgba(60,234,199,0.25);
}
.svc-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}
.svc-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(60,234,199,0.18);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: rgba(168,240,227,0.65);
  letter-spacing: 0.03em;
}
.svc-trust-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-bright);
  opacity: 0.7;
  flex-shrink: 0;
}
.svc-ill-wrap {
  position: relative;
  filter: drop-shadow(0 0 60px rgba(60,234,199,0.1)) drop-shadow(0 32px 64px rgba(0,0,0,0.4));
}
.svc-ill-svg { display: block; width: 100%; height: auto; }

/* ══════════════════════════════════════════════
   SECTION SCAFFOLDING
   ══════════════════════════════════════════════ */
.svc-section { padding: 6.5rem 0; }
.svc-section-cream { background: var(--cream); }
.svc-section-cream-soft { background: var(--cream-soft); }
.svc-section-dark { background: var(--dark); position: relative; overflow: hidden; }
.svc-section-dark::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(60,234,199,0.15), transparent);
}
.svc-section-dark::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 40%; height: 60%;
  background: radial-gradient(ellipse at 85% 80%, rgba(60,234,199,0.05), transparent 65%);
  pointer-events: none;
}

.svc-section-header { max-width: 820px; margin-bottom: 3rem; position: relative; z-index: 1; }
.svc-section-header.svc-centered { margin-left: auto; margin-right: auto; text-align: center; }
.svc-section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 0.75rem;
}
.svc-section-p {
  font-size: 1.05rem;
  line-height: 1.875;
  color: var(--ink-60);
  margin-top: 1rem;
  max-width: 72ch;
}
.svc-section-dark .svc-section-h2 { color: var(--cream); }
.svc-section-dark .svc-section-p { color: rgba(246,246,242,0.62); }
.svc-section-dark .section-label {
  background: transparent;
  color: var(--teal-bright);
  border-color: rgba(60,234,199,0.42);
}

/* ══════════════════════════════════════════════
   FEATURE / TECH GRID (cards on cream)
   ══════════════════════════════════════════════ */
.svc-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative; z-index: 1;
}
.svc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.svc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.svc-grid-4 { grid-template-columns: repeat(4, 1fr); }

.svc-card {
  background: var(--cream-soft);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  border-top: 3px solid var(--teal-deep);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.svc-section-cream-soft .svc-card { background: var(--cream); }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(0,26,21,0.08); }
.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.svc-card p {
  font-size: 0.9rem;
  line-height: 1.825;
  color: var(--ink-60);
  margin: 0;
}

/* Dark variant for cards inside svc-section-dark */
.svc-card-dark {
  background: var(--dark-card);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(60,234,199,0.12);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.svc-card-dark:hover { transform: translateY(-4px); border-color: rgba(60,234,199,0.35); box-shadow: 0 14px 44px rgba(0,0,0,0.45); }
.svc-icon-chip {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: rgba(60,234,199,0.12);
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(60,234,199,0.2);
}
.svc-card-dark h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.svc-card-dark p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(246,246,242,0.62);
  margin: 0;
}

/* ══════════════════════════════════════════════
   NUMBERED LIST / PROCESS STEPS
   ══════════════════════════════════════════════ */
.svc-numbered {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
}
.svc-numbered-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(24,15,6,0.08);
  align-items: flex-start;
  transition: background 0.25s var(--ease-out);
}
.svc-numbered-row:last-child { border-bottom: none; }
.svc-numbered-row:hover { background: rgba(60,234,199,0.04); }
.svc-numbered-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.1em;
  padding-top: 0.25rem;
}
.svc-numbered-row h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.55rem;
}
.svc-numbered-row p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-60);
  margin: 0;
  max-width: 68ch;
}

/* Process grid (4 cards horizontal) */
.svc-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.svc-process-card {
  background: var(--cream-soft);
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid rgba(24,15,6,0.07);
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.svc-section-cream-soft .svc-process-card { background: var(--cream); }
.svc-process-card:hover { transform: translateY(-3px); border-color: rgba(0,107,101,0.25); }
.svc-process-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-deep);
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
}
.svc-process-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.svc-process-card p {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--ink-60);
  margin: 0;
}

/* ══════════════════════════════════════════════
   STATS / PROOF
   ══════════════════════════════════════════════ */
.svc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 2rem;
}
.svc-stats.svc-stats-2 { grid-template-columns: repeat(2, 1fr); }
.svc-stat {
  background: var(--cream-soft);
  border-radius: 14px;
  padding: 2rem 1rem;
  border: 1px solid rgba(24,15,6,0.06);
  text-align: center;
}
.svc-section-cream-soft .svc-stat { background: var(--cream); }
.svc-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--teal-deep);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.svc-stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-60);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════
   CLOSE / NEXT STEP (dark, centered)
   ══════════════════════════════════════════════ */
.svc-close {
  background: var(--dark);
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}
.svc-close::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(60,234,199,0.06), transparent 60%);
  pointer-events: none;
}
.svc-close::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(60,234,199,0.15), transparent);
}
.svc-close-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative; z-index: 1;
}
.svc-close-inner .section-label {
  background: transparent;
  color: var(--teal-bright);
  border-color: rgba(60,234,199,0.42);
}
.svc-close-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cream);
  margin-top: 0.75rem;
}
.svc-close-inner p {
  font-size: 1.05rem;
  line-height: 1.875;
  color: rgba(246,246,242,0.62);
  margin: 1.25rem auto 2rem;
  max-width: 60ch;
}
.svc-close-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .svc-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .svc-hero-sub, .svc-hero-sub2 { max-width: none; }
  .svc-grid-4, .svc-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .svc-process-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .svc-hero { min-height: auto; }
  .svc-hero > .container { padding-top: 6rem; padding-bottom: 3rem; }
  .svc-section, .svc-close { padding: 4rem 0; }
  .svc-grid-2, .svc-grid-3, .svc-grid-4 { grid-template-columns: 1fr; }
  .svc-numbered-row { grid-template-columns: 56px 1fr; gap: 1.25rem; }
  .svc-hero-cta .btn, .svc-close-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .svc-process-grid { grid-template-columns: 1fr; }
  .svc-stats { grid-template-columns: 1fr 1fr; }
  .svc-numbered-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .svc-card, .svc-card-dark { padding: 1.5rem; }
}

/* ══════════════════════════════════════════════
   CTA hover polish (scoped to svc-* pages only)
   ══════════════════════════════════════════════ */
.svc-hero-cta .btn,
.svc-close-cta .btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.svc-hero-cta .btn-primary:hover,
.svc-close-cta .btn-primary:hover {
  background: var(--teal-bright);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(60,234,199,0.28);
}
.svc-hero-cta .btn-ghost:hover,
.svc-close-cta .btn-ghost:hover {
  background: rgba(60,234,199,0.08);
  border-color: rgba(60,234,199,0.5);
  color: var(--cream);
  transform: translateY(-2px);
}
.svc-hero-cta .btn .arrow-icon,
.svc-close-cta .btn .arrow-icon {
  transition: transform 0.3s var(--ease-out);
}
.svc-hero-cta .btn:hover .arrow-icon,
.svc-close-cta .btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════
   Section alignment polish (scoped to svc-* pages)
   ══════════════════════════════════════════════ */
.svc-section .svc-section-header { width: 100%; }
.svc-section .svc-section-header.svc-centered .svc-section-h2,
.svc-section .svc-section-header.svc-centered .svc-section-p {
  margin-left: auto;
  margin-right: auto;
}
.svc-section .svc-section-header.svc-centered .section-label {
  display: inline-flex;
}
.svc-close-cta { align-items: center; }

/* ══════════════════════════════════════════════
   REDUCE MOTION (applies to all svc-* animations)
   ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .svc-ill-svg * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .svc-hero-cta .btn,
  .svc-close-cta .btn,
  .svc-hero-cta .btn .arrow-icon,
  .svc-close-cta .btn .arrow-icon { transition: none !important; transform: none !important; }
}


/* Cream-section tag color override (dark green on white bg) — section-cream-tag-fix */
.svc-section-cream .section-label,
.svc-section-cream-soft .section-label {
  color: var(--dark-mid);
  border-color: rgba(0,46,34,0.45);
  background: transparent;
}

/* ════════════════════════════════════════════════════
   GLOBAL SVC-* PAGE OVERRIDES (match svc-web-app.html)
   ════════════════════════════════════════════════════ */

/* Hero h1: kill colored em / italic */
.svc-hero h1 em { font-style: normal !important; color: inherit !important; font-weight: inherit !important; }

/* Hero balanced 50/50 columns + content full width on large */
@media (min-width: 1280px) {
  .svc-hero-grid { grid-template-columns: 1fr 1fr !important; gap: 3rem !important; align-items: center !important; }
  .svc-hero-content { max-width: 100% !important; }
  .svc-hero-sub, .svc-hero-sub2 { max-width: 100% !important; }
  .svc-ill-wrap { max-width: 560px !important; width: 100% !important; margin: 0 0 0 auto !important; }
}
@media (min-width: 1600px) {
  .svc-ill-wrap { max-width: 640px !important; }
}

/* Section headers full width on large */
@media (min-width: 1280px) {
  .svc-section-header { max-width: 100% !important; }
  .svc-section-header .svc-section-p, .svc-section-p { max-width: 100% !important; }
  .svc-numbered-row p { max-width: 100% !important; }
}

/* Architecture Patterns / cream section paragraphs as bordered cards */
.svc-section-cream .svc-section-header .svc-section-p {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-sm);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  color: var(--ink-80);
  font-size: 1rem;
  line-height: 1.8;
}
.svc-section-cream .svc-section-header .svc-section-p:first-of-type { margin-top: 1.5rem; }

/* Scaling Principles -> card grid */
.svc-section-dark .svc-numbered { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.25rem !important; margin-top: 2.5rem !important; }
.svc-section-dark .svc-numbered-row { display: flex !important; flex-direction: column !important; align-items: flex-start !important; background: var(--dark-mid) !important; border: 1px solid rgba(60, 234, 199, 0.1) !important; border-radius: var(--r-md) !important; padding: 1.75rem !important; gap: 0.5rem !important; transition: transform 0.25s, background 0.25s, border-color 0.25s; }
.svc-section-dark .svc-numbered-row:last-child { border-bottom: 1px solid rgba(60, 234, 199, 0.1) !important; }
.svc-section-dark .svc-numbered-row:hover { background: rgba(60, 234, 199, 0.04) !important; border-color: rgba(60, 234, 199, 0.25) !important; transform: translateY(-3px); }
.svc-section-dark .svc-numbered-row:hover p, .svc-section-dark .svc-numbered-row:hover h3 { color: var(--cream) !important; }
.svc-section-dark .svc-numbered-num { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; padding-top: 0 !important; margin-bottom: 0.5rem; }
@media (max-width: 768px) {
  .svc-section-dark .svc-numbered { grid-template-columns: 1fr !important; }
}

/* Next Step left-align + full body */
.svc-close-inner { max-width: 100% !important; margin: 0 !important; text-align: left !important; }
.svc-close-inner p { max-width: 100% !important; margin: 1.25rem 0 2rem !important; }
.svc-close-cta { justify-content: flex-start !important; }

/* Hero text rhythm: tldr breathing room + airy line-height */
.svc-hero .page-tldr { margin: 1.5rem 0 1.5rem !important; line-height: 1.75 !important; padding: 0.4rem 0 0.4rem 1.1rem !important; max-width: 60ch !important; }
@media (min-width: 1280px) { .svc-hero .page-tldr { max-width: 100% !important; } }
.svc-hero .svc-hero-sub { margin-top: 1.25rem !important; line-height: 1.85 !important; }
.svc-hero .svc-hero-sub2 { margin-top: 1rem !important; line-height: 1.85 !important; }

/* page-faq -> match faq.html visual + Questions label via pseudo */
.page-faq { padding: 6.5rem 0 !important; background: var(--cream) !important; }
.page-faq > .container { max-width: none !important; }
.page-faq h2 { display: inline-block; font-family: var(--font-display); font-size: clamp(1.85rem, 3.5vw, 2.5rem) !important; font-weight: 800 !important; color: var(--ink) !important; line-height: 1.2 !important; letter-spacing: -0.025em !important; margin: 0 0 0.75rem !important; position: relative; }
.page-faq h2::before { content: "Questions"; display: block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dark-mid); border: 1px solid rgba(0, 46, 34, 0.42); padding: 5px 14px; border-radius: 100px; background: transparent; width: fit-content; margin-bottom: 1rem; }
.page-faq .pf-sub { color: var(--ink-60) !important; margin-bottom: 2.5rem !important; font-size: 1rem !important; line-height: 1.75 !important; max-width: 680px; }
.page-faq details { border: 1px solid var(--ink-10) !important; background: var(--white) !important; border-radius: var(--r-md) !important; padding: 1rem 1.25rem !important; margin: 0 0 0.65rem !important; transition: box-shadow 0.25s ease, border-color 0.25s ease !important; }
.page-faq details[open] { box-shadow: 0 4px 16px rgba(0, 26, 21, 0.06) !important; border-color: rgba(0, 133, 125, 0.25) !important; }
.page-faq summary { cursor: pointer; font-weight: 600 !important; font-family: var(--font-display) !important; font-size: 1.05rem !important; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: var(--ink) !important; padding: 0.25rem 0; }
.page-faq summary::-webkit-details-marker { display: none; }
.page-faq summary::after { content: '+' !important; font-weight: 400 !important; font-size: 1.5rem !important; line-height: 1 !important; color: var(--teal-deep) !important; transition: transform 0.2s ease; flex: 0 0 auto; }
.page-faq details[open] summary::after { content: '\2212' !important; }
.page-faq .pf-a { margin-top: 1rem !important; color: var(--ink-80) !important; line-height: 1.75 !important; font-size: 0.98rem !important; padding-bottom: 0.5rem; }
.page-faq .pf-cta { margin-top: 2.25rem !important; text-align: left; color: var(--ink-60) !important; font-size: 0.95rem; }
.page-faq .pf-cta a { color: var(--teal-deep) !important; text-decoration: underline; font-weight: 600; }

/* FAQ footer pf-cta on faqp-section — matches svc-web-app.html exactly */
.faqp-section .pf-cta { margin-top: 2.25rem !important; text-align: left !important; color: var(--ink-60) !important; font-size: 0.95rem !important; }
.faqp-section .pf-cta a { color: var(--teal-deep) !important; text-decoration: underline !important; font-weight: 600 !important; }
.faqp-section .pf-cta a:hover { color: var(--ink) !important; }
