/* South Jersey Sync Solutions - plain static site, no JavaScript */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #14232e;
  --muted: #4d5f6b;
  --line: #dfe5e8;
  --accent: #0f6b78;
  --accent-ink: #ffffff;
  --accent-soft: #e3f1f3;
  --warm: #c8791f;
  --radius: 0.75rem;
  --shadow: 0 0.0625rem 0.125rem rgba(20,35,46,.06), 0 0.5rem 1.5rem rgba(20,35,46,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e171d;
    --surface: #16232c;
    --ink: #e8eef1;
    --muted: #a3b3bd;
    --line: #26363f;
    --accent: #4cc0cf;
    --accent-ink: #072a30;
    --accent-soft: #14323a;
    --warm: #e0a24d;
    --shadow: 0 0.0625rem 0.125rem rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
/* Desktop matters: step the root size up on big screens so rem-based layout scales */
@media (min-width: 1600px) { html { font-size: 112.5%; } }
@media (min-width: 2200px) { html { font-size: 131.25%; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.125rem; }
:focus-visible { outline: 0.1875rem solid var(--warm); outline-offset: 0.125rem; border-radius: 0.25rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .005em; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: .25rem 0; border-bottom: 0.125rem solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2rem, 4.2vw + .5rem, 3.4rem); line-height: 1.1; margin: 0 0 1.1rem; max-width: 20ch; letter-spacing: -.01em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; margin: 0 0 1.75rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .9rem; }

.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0.125rem solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Sections */
section.block { padding: 3.25rem 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.005em; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; line-height: 1.3; }
.sub { color: var(--muted); max-width: 46rem; margin: 0 0 2rem; font-size: 1.05rem; }

.grid { display: grid; gap: 1.25rem; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card p { margin: .4rem 0 0; color: var(--muted); }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .15rem .6rem; border-radius: 999px; margin-bottom: .7rem; }
.card .more { display: inline-block; margin-top: .9rem; font-weight: 600; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.4rem 1.4rem; position: relative; }
.steps li::before { content: counter(s); display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: .6rem; }
.steps b { display: block; margin-bottom: .2rem; }
.steps span { color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 1rem; height: .55rem; border-left: 0.2rem solid var(--accent); border-bottom: 0.2rem solid var(--accent); transform: rotate(-45deg) scale(.8); transform-origin: left top; }
.checks b { color: var(--ink); }
.checks span { color: var(--muted); }

/* Prose pages (legal, about) */
.page-head { padding-top: 3rem; padding-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.8rem); margin: 0 0 .5rem; line-height: 1.15; }
.page-head p { color: var(--muted); margin: 0; font-size: 1.1rem; max-width: 46rem; }
.prose { max-width: 46rem; padding-bottom: 4rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose blockquote { margin: .8rem 0; padding: .8rem 1.1rem; border-left: 0.25rem solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.updated { color: var(--muted); font-size: .95rem; }

/* Forms */
form.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
label { display: grid; gap: .3rem; font-weight: 600; }
label.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; flex: none; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .5rem;
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 400;
}
textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: .9rem; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list b { display: block; }
.split { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); align-items: start; padding-bottom: 4rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 2rem; padding-top: 2.25rem; }
.foot { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.foot p { margin: 0 0 .75rem; color: var(--muted); }
.foot-name { font-weight: 700; color: var(--ink) !important; }
.foot-head { font-weight: 700; color: var(--ink) !important; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.legal-line { color: var(--muted); font-size: .9rem; padding-top: 1rem; padding-bottom: 1.75rem; border-top: 1px solid var(--line); margin-top: 1rem; }

@media (max-width: 40rem) {
  .hero { padding: 2.75rem 0 2.25rem; }
  .nav { gap: .9rem; }
  .bar { padding-top: .6rem; padding-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
