/* Sherwood ETC site stylesheet — implements Sherwood ETC Brand, Web and Document Standard v1.0 */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-latin-var.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --se-black: #000000;
  --se-surface: #212121;
  --se-surface-2: #333333;
  --se-green: #24A814;
  --se-green-hover: #33BB23;
  --se-green-deep: #00754E;
  --se-white: #FFFFFF;
  --se-gray-100: #EEEEEE;
  --se-gray-300: #BBBBBB;
  --se-gray-500: #999999;
  --se-blue: #28AADC;
  --se-warn: #FFB020;
  --se-error: #FF4D4F;
  --se-font: Roboto, "Helvetica Neue", Arial, sans-serif;
  --se-radius: 0;
  --se-max: 1200px;
  --se-section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--se-black);
  color: var(--se-gray-300);
  font: 400 17px/1.6 var(--se-font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--se-blue); text-underline-offset: 3px; }
a:hover { color: var(--se-white); }
:focus-visible { outline: 2px solid var(--se-green); outline-offset: 2px; }
::selection { background: var(--se-green); color: #000; }

h1, h2, h3, h4 { color: var(--se-white); font-weight: 700; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 500; }
h4 { font-size: 13px; line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--se-gray-500); margin-bottom: 10px; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--se-gray-300); max-width: 680px; }
.hl { color: var(--se-green); }
strong { color: var(--se-white); font-weight: 600; }

.container { max-width: var(--se-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--se-section) 0; }
.section--alt { background: var(--se-surface); }
.section--alt .card { background: var(--se-black); }
.section--bordered { border-top: 1px solid var(--se-surface-2); }

.bar { width: 48px; height: 4px; background: var(--se-green); margin-bottom: 16px; }
.eyebrow { color: var(--se-green); font: 600 13px/1 var(--se-font); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 14px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--se-gray-300); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--se-green); color: #000; padding: 12px 16px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { left: 0; color: #000; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--se-black); border-bottom: 1px solid var(--se-surface-2); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--se-white); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px; }
.logo:hover { color: var(--se-white); }
.logo-mark { width: 30px; height: 30px; background: var(--se-green); color: #000; display: grid; place-items: center; font-weight: 900; font-size: 17px; letter-spacing: 0; }
.logo b { color: var(--se-green); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--se-gray-300); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--se-white); }
.nav a[aria-current="page"] { color: var(--se-white); border-bottom-color: var(--se-green); }
.nav .btn { padding: 11px 20px; border-bottom: 0; }
.nav .btn-primary, .nav .btn-primary:hover { color: #000; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--se-surface-2); color: var(--se-white); width: 44px; height: 44px; font: inherit; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--se-white); position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Buttons */
.btn { display: inline-block; padding: 15px 28px; border-radius: var(--se-radius); font: 600 14px/1 var(--se-font); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .18s, border-color .18s, color .18s; }
.btn-primary { background: var(--se-green); color: #000; }
.btn-primary:hover { background: var(--se-green-hover); color: #000; }
.btn-primary:active { background: var(--se-green-deep); color: #fff; }
.btn-secondary { border-color: var(--se-white); color: var(--se-white); background: transparent; }
.btn-secondary:hover { border-color: var(--se-green); color: var(--se-white); }
.more { font-weight: 500; text-decoration: none; color: var(--se-blue); }
.more::after { content: " \2192"; }
.more:hover { color: var(--se-white); }

/* Hero */
.hero { padding: 88px 0 80px; border-bottom: 1px solid var(--se-surface-2);
  background-image: linear-gradient(#0f0f0f 1px, transparent 1px), linear-gradient(90deg, #0f0f0f 1px, transparent 1px);
  background-size: 48px 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero .lead { margin-top: 8px; }
.actions { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
.hero-visual { border: 1px solid var(--se-surface-2); background: rgba(0,0,0,.6); padding: 20px; }
.flow-line { stroke-dasharray: 6 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) { .flow-line { animation: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--se-surface-2);
  background-image: linear-gradient(#0f0f0f 1px, transparent 1px), linear-gradient(90deg, #0f0f0f 1px, transparent 1px); background-size: 48px 48px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); max-width: 900px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--se-surface-2); }
.stat { padding: 36px 24px; border-right: 1px solid var(--se-surface-2); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; color: var(--se-green); font-size: 44px; line-height: 1; font-weight: 700; margin-bottom: 10px; }
.stat-label { color: var(--se-gray-300); font-size: 15px; line-height: 1.4; }
.stats-note { padding: 14px 0 0; color: var(--se-gray-500); font-size: 14px; }

/* Platforms row */
.platforms { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0; padding: 0; list-style: none; }
.platforms li { border: 1px solid var(--se-surface-2); padding: 8px 14px; font-size: 14px; color: var(--se-gray-300); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--se-surface); border: 1px solid var(--se-surface-2); padding: 28px; border-radius: var(--se-radius); display: flex; flex-direction: column; transition: border-color .18s; }
.card:hover { border-color: var(--se-green); }
.card p { color: var(--se-gray-300); flex: 1; }
.card .more { margin-top: 8px; }
.tag { align-self: flex-start; font: 600 12px/1 var(--se-font); text-transform: uppercase; letter-spacing: 0.12em; padding: 6px 9px; margin-bottom: 18px; }
.tag--green { background: var(--se-green); color: #000; }
.tag--ghost { border: 1px solid var(--se-surface-2); color: var(--se-gray-300); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--se-surface-2); }
.step { padding: 28px; border-right: 1px solid var(--se-surface-2); }
.step:last-child { border-right: 0; }
.step-num { color: var(--se-green); font: 600 13px/1 var(--se-font); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15.5px; margin-bottom: 10px; }
.step .out { color: var(--se-gray-500); font-size: 14px; }

/* Lists */
ul.dash { list-style: none; padding: 0; margin: 0 0 16px; }
ul.dash li { padding-left: 24px; position: relative; margin: 8px 0; }
ul.dash li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--se-green); }

/* Services detail */
.subnav { position: sticky; top: 72px; z-index: 40; background: var(--se-black); border-bottom: 1px solid var(--se-surface-2); }
.subnav ul { display: flex; gap: 8px 26px; list-style: none; margin: 0; padding: 14px 0; overflow-x: auto; white-space: nowrap; }
.subnav a { color: var(--se-gray-300); text-decoration: none; font-size: 14px; font-weight: 500; }
.subnav a:hover { color: var(--se-white); }
.svc { padding: 72px 0; border-top: 1px solid var(--se-surface-2); display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.svc:first-of-type { border-top: 0; }
.svc-head .lead { font-size: 19px; }
.svc-body > div { margin-bottom: 28px; }
.svc-body p:last-child, .svc-body ul:last-child { margin-bottom: 0; }

/* Spacing utilities */
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; } .mt-48 { margin-top: 48px; }
ol.plain { list-style: none; padding: 0; }
ol.plain li { padding-left: 0; }
ol.plain li::before { display: none; }

/* Two-column text */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.panel { background: var(--se-surface); border: 1px solid var(--se-surface-2); padding: 28px; }
.note { border-left: 4px solid var(--se-green); background: var(--se-surface); padding: 20px 24px; color: var(--se-gray-300); }
.note strong { color: var(--se-white); }

/* FAQ */
details { border-bottom: 1px solid var(--se-surface-2); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--se-surface-2); }
summary { cursor: pointer; color: var(--se-white); font-weight: 500; font-size: 18px; list-style: none; position: relative; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--se-green); font-size: 26px; font-weight: 400; }
details[open] summary::after { content: "\2013"; }
details p { margin: 14px 0 0; max-width: 760px; }

/* CTA band */
.cta-band { background: var(--se-surface); border-top: 4px solid var(--se-green); padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 8px; max-width: 700px; }
.cta-inner p { margin: 0; max-width: 640px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
label { display: block; font-weight: 500; color: var(--se-white); margin: 0 0 6px; font-size: 15px; }
.opt { color: var(--se-gray-500); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; background: var(--se-surface); border: 1px solid var(--se-surface-2); color: var(--se-white);
  padding: 14px; font: inherit; border-radius: var(--se-radius); }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--se-green); outline-offset: 0; border-color: var(--se-green); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--se-green); flex: none; }
.check label { font-weight: 400; color: var(--se-gray-300); margin: 0; }
.form-status { margin-top: 16px; color: var(--se-gray-300); min-height: 1.5em; }
.help { color: var(--se-gray-500); font-size: 14px; margin-top: 6px; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 48px; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose li { margin: 6px 0; }

/* Footer */
.site-footer { background: var(--se-surface); border-top: 1px solid var(--se-surface-2); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--se-gray-300); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--se-white); text-decoration: underline; }
.footer-blurb { font-size: 15px; color: var(--se-gray-300); max-width: 340px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--se-surface-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--se-gray-500); }

/* Responsive */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--se-surface-2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --se-section: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--se-black); border-bottom: 1px solid var(--se-surface-2); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--se-surface-2); }
  .nav a[aria-current="page"] { border-bottom-color: var(--se-green); }
  .nav .btn { margin-top: 16px; text-align: center; }
  .hero { padding: 56px 0; }
  .hero-grid, .split, .svc { grid-template-columns: 1fr; gap: 32px; }
  .svc { padding: 48px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--se-surface-2); }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .subnav { top: 72px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--se-surface-2); }
  .step:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .actions .more { width: 100%; }
}

/* v1 additions */
.platforms-wrap { padding: 32px 0 0; }
.platforms-h { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--se-gray-500); margin: 0 0 14px; line-height: 1.2; }
.profile { display: flex; gap: 20px; align-items: center; margin-top: 32px; padding: 20px; border: 1px solid var(--se-surface-2); background: var(--se-surface); }
.monogram { width: 72px; height: 72px; background: var(--se-black); border: 2px solid var(--se-green); color: var(--se-green); display: grid; place-items: center; font-size: 26px; font-weight: 700; flex: none; }
.muted { color: var(--se-gray-500); }
.serif { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: 0; }
.page-hero h1.serif { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; }
.label { font-size: 13px; line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--se-gray-500); margin: 0 0 10px; }
.nowrap { white-space: nowrap; }
.site-footer .label { margin-bottom: 14px; }
.logo img { display: block; height: 52px; width: auto; }
.site-footer .logo img { height: 52px; }
@media (max-width: 560px) { .logo img { height: 40px; } }
