/* SG MediaTech — public site.
   Light, calm, unhurried: a site a church board reads and trusts.
   Navy is punctuation, not paint. Whitespace is the brand. */

:root {
  --ground: #F5F7FA;
  --ground-2: #ECF0F5;
  --surface: #FFFFFF;
  --ink: #121722;
  --ink-2: #3A4657;
  --muted: #5F6E84;
  --rule: #DDE3EC;
  --accent: #1D3F73;
  --accent-deep: #12294D;
  --wash: #E5EBF5;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 23, 34, .04), 0 6px 24px rgba(18, 23, 34, .05);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.68;
  font-optical-sizing: auto;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }   /* 18px */

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .55em; text-wrap: balance; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); letter-spacing: -0.025em; font-weight: 700; max-width: 20ch; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem); max-width: 26ch; }
h3 { font-size: 1.22rem; letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 50; border-radius: 6px; font-family: var(--display); }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */
.site-header { background: rgba(245, 247, 250, .94); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(8px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { width: 80px; height: auto; border-radius: 8px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav-link { font-family: var(--display); font-weight: 500; font-size: .98rem; color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.btn-nav { padding: 10px 18px; font-size: .95rem; }
.nav-toggle { display: none; }

@media (max-width: 959px) {
  .js .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px;
    font: 600 .95rem var(--display); color: var(--ink); background: var(--surface);
    border: 1px solid var(--rule); border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer;
  }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .js .site-nav li { border-bottom: 1px solid var(--rule); }
  .js .site-nav li:last-child { border-bottom: 0; padding-top: 14px; }
  .js .nav-link { display: block; padding: 14px 0; border-bottom: 0; font-size: 1.05rem; }
  .js .nav-link[aria-current="page"] { color: var(--accent); }
  .js .btn-nav { width: 100%; justify-content: center; }
  .site-header { position: relative; }
  .header-row { min-height: 68px; }
  .site-nav ul { gap: 4px 16px; }
}

/* -------------------------------------------------------------- sections */
.sec { padding: clamp(52px, 7vw, 96px) 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-shaded { background: var(--ground-2); }
.sec-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(52px, 7vw, 96px); }
.sec-hero h1 { margin-bottom: .45em; }
.sec-hero .prose { font-size: 1.15em; max-width: 60ch; }
.sec-closing { background: var(--wash); border-top: 0 !important; }
.sec:has(> .wrap > .facts:only-child) { padding: clamp(28px, 4vw, 44px) 0; }
.sec-closing h2 { font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem); }
.sec > .wrap > * + .cards, .sec > .wrap > * + .ptable-wrap, .sec > .wrap > * + .steps,
.sec > .wrap > * + .quote, .sec > .wrap > * + .highlight, .sec > .wrap > * + .facts,
.sec > .wrap > * + .contact-grid, .sec > .wrap > * + .img { margin-top: 28px; }
.sec > .wrap > .cards + *, .sec > .wrap > .steps + *, .sec > .wrap > .quote + *,
.sec > .wrap > .ptable-wrap + *, .sec > .wrap > .highlight + * { margin-top: 28px; }

.eyebrow { font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1em; }
.chip { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .06em; color: var(--accent); background: var(--wash); border-radius: 999px; padding: 5px 12px; margin: 0 0 1em; }

.prose { max-width: 68ch; }
.prose p:last-child, .prose ul:last-child, .prose ol:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1em; list-style: none; }
.prose li { position: relative; padding-left: 1.5em; margin-bottom: .55em; }
.prose ul > li::before { content: ""; position: absolute; left: .2em; top: .72em; width: .45em; height: .45em; border-radius: 50%; background: var(--accent); opacity: .85; }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; font-family: var(--display); font-weight: 600; color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: 999px; padding: 14px 24px; min-height: 48px;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); border-color: #B9C6DA; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-deep); background: rgba(29, 63, 115, .04); }

/* ------------------------------------------------------------ fact strip */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts li { padding: 22px 24px 22px 0; font-family: var(--display); font-weight: 500; font-size: 1.02rem; line-height: 1.38; color: var(--ink); }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--rule); }
}

/* ----------------------------------------------------------------- steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.step-num { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--accent); width: 38px; height: 38px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: .4em; }
.steps p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- quote */
.quote { margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(28px, 4vw, 48px); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.2; color: var(--accent); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.page-support .quote blockquote p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.55; color: var(--ink); letter-spacing: 0; text-wrap: pretty; }
.quote figcaption { margin-top: 18px; max-width: 68ch; }

/* ----------------------------------------------------------------- cards */
.cards { display: grid; gap: 20px; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 34px); min-width: 0; }
.card h3 { margin-bottom: .6em; }
.cards.cols-1 .card { padding: clamp(26px, 4vw, 44px); }
.cards.cols-1 .card .prose { max-width: 70ch; }
.card-label { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9em; }
@media (max-width: 860px) { .cards.cols-2, .cards.cols-3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- highlight */
.highlight { background: var(--wash); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); }
.sec-shaded .highlight { background: var(--surface); box-shadow: var(--shadow); }
.highlight h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin-bottom: .6em; }

/* ------------------------------------------------------------ price table */
.ptable-wrap { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: .97em; }
.ptable thead th { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 18px 24px 14px; border-bottom: 1px solid var(--rule); }
.ptable tbody th, .ptable td { text-align: left; vertical-align: top; padding: 20px 24px; border-bottom: 1px solid var(--rule); }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.ptable tbody th { font-family: var(--display); font-weight: 600; color: var(--ink); width: 26%; line-height: 1.3; }
.ptable .num { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; width: 1%; }
.ptable thead .num { color: var(--muted); font-family: var(--mono); font-weight: 500; }
.ptable tr.sub th { font-weight: 500; color: var(--ink-2); padding-left: 48px; position: relative; }
.ptable tr.sub th::before { content: ""; position: absolute; left: 26px; top: 26px; width: 12px; height: 9px; border-left: 1.5px solid #B9C6DA; border-bottom: 1.5px solid #B9C6DA; border-bottom-left-radius: 3px; }
.ptable tr.sub > * { background: #FAFBFD; padding-top: 14px; padding-bottom: 14px; font-size: .95em; }
.ptable tr.sub .num { font-weight: 500; }
@media (max-width: 720px) {
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: auto !important; }
  .ptable tr { padding: 18px 20px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
  .ptable tbody tr:last-child { border-bottom: 0; }
  .ptable tbody th, .ptable td { padding: 0; border: 0; }
  .ptable tbody th { grid-column: 1; grid-row: 1; }
  .ptable td.num { grid-column: 2; grid-row: 1; text-align: right; }
  .ptable td:not(.num) { grid-column: 1 / -1; grid-row: 2; }
  .ptable tr.sub { padding-left: 38px; position: relative; }
  .ptable tr.sub > * { padding: 0; background: none; }
  .ptable tr.sub th { padding-left: 0; position: static; }
  .ptable tr.sub th::before { left: 18px; top: 22px; }
  .ptable tr.sub { background: #FAFBFD; }
}

/* --------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-form { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--ink); margin-bottom: 7px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .help { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--ground);
  border: 1px solid #C9D2DF; border-radius: 10px; padding: 13px 14px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(29, 63, 115, .25); outline-offset: 0; border-color: var(--accent); background: #fff; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-details dl { margin: 0; display: grid; gap: 18px; }
.contact-details dt { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.contact-details .note { margin-top: 22px; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- image */
.img { margin: 0; }
.img img { border-radius: var(--radius); width: 100%; }
.img-narrow { max-width: 560px; }
.img-wide { max-width: 880px; }
.img figcaption { font-size: .92rem; color: var(--muted); margin-top: 10px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); padding: 56px 0 28px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 32px; }
.footer-brand img { width: 68px; border-radius: 7px; margin-bottom: 16px; }
.footer-brand p { max-width: 40ch; }
.footer-contact p { margin: 0 0 .45em; overflow-wrap: anywhere; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.footer-links a, .footer-contact a { color: var(--ink-2); }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--muted); }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* --------------------------------------------- terms page: long reading */
.page-terms .sec:not(.sec-hero) h2 { font-size: 1.3rem; max-width: none; margin-top: 1.6em; }
.page-terms .sec:not(.sec-hero) .wrap > h2:first-child { margin-top: 0; }
.page-terms .sec:not(.sec-hero) .wrap { max-width: 860px; }
.page-terms .ptable tbody th { width: 40%; }

/* ---------------------------------------------------------- draft banner */
.preview-bar { position: sticky; top: 0; z-index: 60; background: #FFF4D6; color: #5A4300; border-bottom: 1px solid #E8D18F; padding: 10px var(--gutter); font-family: var(--display); font-size: .95rem; text-align: center; }
.preview-bar a { color: #5A4300; font-weight: 600; }
.preview-bar + .skip + .site-header { top: 42px; }

@media print {
  .site-header, .site-footer, .btns, .preview-bar { display: none; }
  body { background: #fff; }
  .card, .quote, .ptable-wrap, .steps li, .contact-form { box-shadow: none; border: 1px solid var(--rule); }
}
