/* Layout: left-aligned editorial hero with a network map; alternating full-bleed bands; 1120px max column. */
:root {
  --bg: #F2F4F5;        /* Cloud */
  --surface: #FFFFFF;
  --band: #E7ECEE;
  --ink: #1E2A33;       /* Slate */
  --muted: #52626E;     /* Steel */
  --line: #D3DADF;
  --node: #2A9D8F;      /* Signal Teal (marks, dots) */
  --accent: #1F7A6F;    /* Teal dark enough for white text and links */
  --on-accent: #FFFFFF;
  --deep: #1E2A33;      /* dark band */
  --on-deep: #F2F4F5;
  --on-deep-muted: #C5D0D8;
  --code-bg: #1E2A33;
  --code-fg: #E6EDF1;
  --code-dim: #8FA2AF;
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --s-1: .875rem; --s0: 1.0625rem; --s1: 1.25rem; --s2: 1.625rem; --s3: 2.25rem; --s4: clamp(2.25rem, 4.6vw, 3.6rem);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11191F; --surface: #18232B; --band: #151F26; --ink: #EEF2F4; --muted: #A9B6C0; --line: #2A3842;
    --node: #3CC0AF; --accent: #3CC0AF; --on-accent: #0E1A1F; --deep: #0B1216; --on-deep: #EEF2F4; --on-deep-muted: #A9B6C0;
    --code-bg: #0B1216; --code-fg: #E6EDF1; --code-dim: #7F93A0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11191F; --surface: #18232B; --band: #151F26; --ink: #EEF2F4; --muted: #A9B6C0; --line: #2A3842;
  --node: #3CC0AF; --accent: #3CC0AF; --on-accent: #0E1A1F; --deep: #0B1216; --on-deep: #EEF2F4; --on-deep-muted: #A9B6C0;
  --code-bg: #0B1216; --code-fg: #E6EDF1; --code-dim: #7F93A0; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--s0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--s4); font-weight: 700; }
h2 { font-size: var(--s3); font-weight: 700; }
h3 { font-size: var(--s1); font-weight: 600; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--node); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { font-size: var(--s-1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: var(--s1); color: var(--muted); max-width: 60ch; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; color: var(--ink); }
.logo { height: 44px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding-block: 10px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--node); text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 720px) { .nav .btn-sm { display: none; } .logo { height: 38px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; border: 2px solid var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { color: var(--bg); background: color-mix(in srgb, var(--ink) 86%, var(--node)); border-color: color-mix(in srgb, var(--ink) 86%, var(--node)); }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .95rem; }
.nav .btn-sm { padding-block: 6px; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn-light { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
.btn-light:hover { color: var(--deep); background: var(--on-deep); border-color: var(--node); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: var(--s-1); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--node); }
.facts b { color: var(--ink); font-weight: 600; }
.netmap { width: 100%; height: auto; display: block; font-family: var(--font-body); }
.netmap .links line { stroke: var(--line); stroke-width: 2; }
.netmap .links line.ring { stroke-dasharray: 4 6; }
.netmap .n { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.netmap text { fill: var(--muted); font-size: 14px; font-weight: 500; }
.netmap .hub { fill: var(--node); }
.netmap .hub-t { fill: #0E1A1F; font-size: 13px; font-weight: 700; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 460px; } }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.alt { background: var(--band); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.head p { color: var(--muted); }

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.path h2 { font-size: var(--s2); }
.path > p:not(.eyebrow) { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--node); }
.more { font-weight: 600; margin-top: auto; padding-top: 8px; }
.more::after { content: " \2192"; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc, .card { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.svc .ic { color: var(--accent); width: 28px; height: 28px; }
.svc p, .card p { color: var(--muted); font-size: .98rem; }
.svc:hover { background: var(--bg); color: var(--ink); }
.svc:hover h3 { text-decoration: underline; text-decoration-color: var(--node); }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: "Step " counter(s); font-family: var(--font-mono); font-size: var(--s-1); color: var(--muted); }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 48px; }
.about h2 { margin-top: 10px; }
.about-copy { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; min-width: 0; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--deep); color: var(--on-deep); padding-block: clamp(40px, 6vw, 64px); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta-inner > div:first-child { max-width: 56ch; display: flex; flex-direction: column; gap: 10px; }
.cta-inner p { color: var(--on-deep-muted); }
.cta-actions { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.call { display: inline-flex; align-items: center; gap: 8px; color: var(--on-deep); font-weight: 600; font-size: var(--s1); text-decoration: none; min-height: 44px; }
.call:hover { color: var(--on-deep); text-decoration: underline; }

/* Inner pages */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.svc-list { display: flex; flex-direction: column; padding-block: 16px 56px; }
.svc-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px 48px; padding-block: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-row:last-child { border-bottom: 0; }
.svc-title { display: flex; gap: 14px; align-items: flex-start; }
.svc-title .ic { color: var(--accent); width: 30px; height: 30px; margin-top: 4px; }
.svc-title h2 { font-size: var(--s2); }
.svc-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.svc-body > p { color: var(--muted); font-size: var(--s1); }
@media (max-width: 760px) { .svc-row { grid-template-columns: 1fr; } }

.page-hero .wrap.rock-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.rock-hero > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lava { margin: 0; background: var(--code-bg); color: var(--code-fg); font-family: var(--font-mono); font-size: .9rem; line-height: 1.7; padding: 24px; border-radius: var(--radius); overflow-x: auto; min-width: 0; }
.lava .c { color: var(--code-dim); }
@media (max-width: 860px) { .page-hero .wrap.rock-hero { grid-template-columns: 1fr; } }
.rock-grid .card h3 { font-size: var(--s1); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--node) 30%, transparent); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin-top: 6px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; cursor: pointer; }
.checks input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.form .btn { align-self: flex-start; }
.form-status { min-height: 1.6em; color: var(--muted); }
.form-status.ok { color: var(--accent); font-weight: 600; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-card h2 { font-size: var(--s1); }
.contact-card .big { font-size: var(--s2); font-weight: 700; }
.contact-card .big a { text-decoration: none; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.clist li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); overflow-wrap: anywhere; }
.clist .ic { color: var(--accent); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2, .checks { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep); --muted: var(--on-deep-muted); --node: #3CC0AF; border-top: 1px solid color-mix(in srgb, var(--on-deep) 12%, transparent); }
.site-footer .brand { color: var(--on-deep); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, 1fr); gap: 32px; padding-block: 48px 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand p { color: var(--on-deep-muted); max-width: 36ch; }
.foot-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.foot-col h2 { font-size: var(--s-1); letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-muted); font-weight: 600; margin-bottom: 4px; }
.foot-col a, .foot-col span { color: var(--on-deep); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; color: var(--on-deep); }
.fine { padding-block: 16px 28px; color: var(--on-deep-muted); font-size: var(--s-1); border-top: 1px solid color-mix(in srgb, var(--on-deep) 12%, transparent); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn:disabled { opacity: .6; cursor: wait; }

/* Services page: jump menu, groups, cards, church callout */
.jump { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.jump-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jump-group > span { font-size: var(--s-1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 500; font-size: .95rem; }
.jump-links a:hover { border-color: var(--node); color: var(--ink); }
.svc-group .group-head { display: flex; justify-content: space-between; align-items: end; gap: 8px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.svc-group .group-head p { color: var(--muted); }
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: 96px; }
.svc-card:target { border-color: var(--node); box-shadow: 0 0 0 3px color-mix(in srgb, var(--node) 25%, transparent); }
.svc-card-head { display: flex; align-items: center; gap: 12px; }
.svc-card-head .ic { color: var(--accent); width: 28px; height: 28px; }
.svc-intro { color: var(--muted); }
.svc-card .ticks { font-size: .98rem; }
@media (max-width: 960px) and (min-width: 641px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards-3 > :last-child { grid-column: span 2; } }
@media (max-width: 640px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }
.callout-wrap { padding-block: 0 clamp(48px, 7vw, 80px); }
.svc-group + .callout-wrap { padding-top: clamp(32px, 5vw, 56px); }
.callout { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.callout .ic { color: var(--accent); width: 30px; height: 30px; }
.callout span { min-width: 0; }
.callout .arrow { margin-left: auto; font-size: 1.4rem; color: var(--accent); }
.callout:hover { border-color: var(--node); color: var(--ink); }
