/* Wronsky Consulting site styles. No frameworks, no web fonts, no tracking. */
:root {
  color-scheme: light;
  --ink: #14302e;
  --text: #1d2726;
  --muted: #4f5d5a;
  --brand: #0f6e66;
  --brand-dark: #0a4f49;
  --accent: #c8873a;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --line: #dcdcd4;
  --focus: #c8873a;
  --radius: 10px;
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 10;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 0.35rem 0; display: inline-block; }
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--accent); }

/* Sections */
main { display: block; }
.hero { padding: 4rem 0 3.5rem; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.75rem; }
.page-head { padding: 3rem 0 1.5rem; }
.page-head .lede { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.section { padding: 2.5rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.narrow { max-width: 44rem; }

/* Dark brand band at the top of every page, with a faint W mark on the right */
.hero, .page-head {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpolyline points='8,11 13,25 18,15 23,25 28,11' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='28' cy='27' r='2.4' fill='%23c8873a' fill-opacity='0.35'/%3E%3C/svg%3E") no-repeat right -3rem center / auto 150%;
  color: #c9d4d2;
}
.page-head { padding-bottom: 2.5rem; }
.hero h1, .page-head h1 { color: #fff; }
.hero .lede, .page-head .lede { color: #c9d4d2; }
.hero .eyebrow, .page-head .eyebrow { color: var(--accent); }
.hero .notice, .page-head .notice { color: #a9b8b5; }
.hero a:not(.btn), .page-head a:not(.btn) { color: #fff; }
.hero .btn, .page-head .btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hero .btn:hover, .page-head .btn:hover { background: #e0a35c; border-color: #e0a35c; color: var(--ink); }
.hero .btn.secondary, .page-head .btn.secondary { background: transparent; border-color: #5c7a76; color: #fff; }
.hero .btn.secondary:hover, .page-head .btn.secondary:hover { border-color: #fff; color: #fff; }
/* On phones the mark would sit behind the text and buttons, so leave it out */
@media (max-width: 40rem) { .hero, .page-head { background-image: none; } }

.btn {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
  padding: 0.75rem 1.3rem; border-radius: var(--radius); border: 2px solid var(--brand); cursor: pointer;
  font: inherit; font-weight: 600;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--brand); }
.btn.secondary:hover { background: var(--brand); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid.four { grid-template-columns: repeat(4, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) and (max-width: 59.99rem) { .grid.four, .grid.three { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .mark { display: block; width: 2.25rem; height: 4px; background: var(--accent); border-radius: 2px; margin-bottom: 1rem; }

.service { padding: 2rem 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
@media (min-width: 48rem) { .service { display: grid; grid-template-columns: 18rem 1fr; gap: 2rem; } }
.service ul { margin: 0 0 1em; padding-left: 1.2rem; }
.service li { margin-bottom: 0.35em; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.25rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}

.cta { background: var(--ink); color: #e9efee; border-radius: var(--radius); padding: 2rem; }
.cta h2 { color: #fff; }
.cta .btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cta .btn:hover { background: #e0a35c; border-color: #e0a35c; color: var(--ink); }

/* Forms */
form .field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid #a9b3b0; border-radius: 8px; padding: 0.65rem 0.75rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--brand); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { font-size: 0.92rem; color: var(--muted); }
.alert { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; border: 1px solid; }
.alert.error { background: #fbeceb; border-color: #e3a9a4; color: #6b1d16; }
.alert.ok { background: #e8f3f1; border-color: #9fcbc4; color: var(--brand-dark); }

/* Legal pages */
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose ul { padding-left: 1.2rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.25rem; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 0.55rem 0.75rem 0.55rem 0; }
.prose th { color: var(--ink); width: 34%; }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { margin-top: 3rem; background: var(--ink); color: #c9d4d2; font-size: 0.93rem; }
.site-footer .wrap { padding-top: 2.5rem; padding-bottom: 2rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.legal-line { border-top: 1px solid #2f4b48; margin-top: 2rem; padding-top: 1.25rem; font-size: 0.85rem; color: #a9b8b5; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header nav, .site-footer, .skip-link { display: none; } body { background: #fff; } }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--surface); border-top: 2px solid var(--brand);
  box-shadow: 0 -4px 16px rgba(20, 48, 46, 0.12);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .wrap { padding-top: 1rem; padding-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.cookie-banner p { margin: 0; flex: 1 1 22rem; font-size: 0.97rem; }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media print { .cookie-banner { display: none !important; } }
