/* Aequitas Network: values from the Aequitas Network brand guide (tokens.json) */
:root {
  --surface: #ffffff;
  --surface-alt: #f5f6f0;
  --surface-inverse: #414042;
  --ink: #414042;
  --ink-strong: #232227;
  --ink-muted: #6a696c;
  --on-inverse: #ffffff;
  --green: #94ba33;
  --green-text: #5b7a14;
  --on-green: #232227;
  --green-tint: #eef4dc;
  --blue: #01aaec;
  --blue-deep: #1b639a;
  --on-blue-deep: #ffffff;
  --indigo: #2c3892;
  --blue-tint: #e3f4fc;
  --border: #dfe2d8;
  --focus: #2c3892;
  --shadow-1: 0 1px 2px rgba(35,34,39,0.08), 0 4px 12px rgba(35,34,39,0.06);

  /* Accent: green on Network pages; IT Services pages switch to blue */
  --accent-fill: var(--green);
  --on-accent: var(--on-green);
  --accent-text: var(--green-text);
  --accent-tint: var(--green-tint);
  --node: var(--green);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --max: 1120px;
  --display: "Righteous", "Lexend", system-ui, sans-serif;
  --sans: "Lexend", "Segoe UI", Calibri, system-ui, sans-serif;
}
body.it {
  --accent-fill: var(--blue-deep);
  --on-accent: var(--on-blue-deep);
  --accent-text: var(--blue-deep);
  --accent-tint: var(--blue-tint);
  --node: var(--blue);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 26px; color: var(--ink); background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Type scale */
.display-xl { font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.07; letter-spacing: -0.01em; color: var(--ink-strong); margin: 0 0 16px; }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; color: var(--ink-strong); margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; color: var(--ink); margin: 0 0 8px; }
h1 { font-size: 32px; line-height: 40px; }
h2 { font-size: 24px; line-height: 32px; }
h3 { font-size: 18px; line-height: 26px; }
p { margin: 0 0 16px; max-width: 72ch; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; display: block; }
.lead { font-size: 18px; line-height: 30px; }
small, .caption { font-size: 12px; line-height: 18px; color: var(--ink-muted); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { width: 180px; height: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: var(--radius-md); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-text); background: var(--green-tint); }
.nav .btn { margin-left: 8px; color: var(--on-green); background: var(--green); border-color: var(--green); }
.nav-toggle { display: none; background: none; border: 1px solid #8a8f80; border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .brand img { width: 150px; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; background: var(--accent-fill); color: var(--on-accent); text-decoration: none; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; font-size: 16px; line-height: 24px; border: 2px solid var(--accent-fill); }
.btn:hover { filter: brightness(1.06); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.on-dark { background: var(--surface); color: var(--ink-strong); border-color: var(--surface); }

/* Hero */
.hero { padding: 64px 0; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .nodes { width: 100%; max-width: 380px; justify-self: end; }
.hero .sub-logo { width: 220px; height: auto; box-sizing: content-box; justify-self: end; background: var(--surface); border-radius: var(--radius-lg); padding: 16px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero .nodes { display: none; } .hero .sub-logo { justify-self: start; width: 160px; } }
.endorse { font-size: 14px; color: var(--ink-muted); margin-top: 16px; }

/* Sections */
section { padding: 48px 0; }
section.alt { background: var(--surface-alt); }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--ink-muted); }

.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid.two { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; }
section:not(.alt) .card { box-shadow: var(--shadow-1); }
.card p { color: var(--ink); margin-bottom: 12px; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--accent-text); }
.card .more.it { color: var(--blue-deep); }
.icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent-tint); color: var(--ink); display: grid; place-items: center; margin-bottom: 16px; }
.icon.it { background: var(--blue-tint); }
.icon svg { width: 24px; height: 24px; }

.tag { display: inline-block; align-self: flex-start; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--green-tint); color: var(--ink); margin-bottom: 12px; }
.tag.it { background: var(--blue-tint); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 999px; background: var(--node); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 14px; line-height: 22px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); background: var(--surface-alt); font-weight: 600; }
tbody tr:nth-child(even) td { background: var(--surface-alt); }
tr:last-child td { border-bottom: none; }

/* Steps: numbered nodes joined by a connector line */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 18px; left: 18px; right: 18px; height: 2px; background: var(--ink); opacity: .25; }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font-weight: 600; margin-bottom: 12px; position: relative; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }

/* Team */
.person { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: start; }
.avatar { width: 160px; height: 160px; border-radius: 999px; object-fit: cover; background: var(--green-tint); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: 44px; }
.person .role { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } .avatar { width: 120px; height: 120px; } }

/* CTA band: one strong accent block */
.cta { background: var(--accent-fill); color: var(--on-accent); border-radius: var(--radius-lg); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta .display { color: var(--on-accent); margin-bottom: 4px; }
.cta p { margin: 0; }
.cta .btn { background: var(--ink-strong); color: #fff; border-color: var(--ink-strong); }
body.it .cta .btn { background: #fff; color: var(--blue-deep); border-color: #fff; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--green-tint); color: var(--ink); padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; }

/* Footer */
.site-footer { background: var(--surface-inverse); color: var(--on-inverse); padding: 48px 0 32px; font-size: 14px; line-height: 22px; }
.site-footer a { color: var(--on-inverse); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; font-weight: 600; }
.site-footer .tagline { font-family: var(--display); font-size: 28px; line-height: 34px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.25); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Consult form */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.consult-form, .form-thanks { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.consult-form .display { margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } .consult-form { padding: 24px 16px; } }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 14px; color: var(--ink); padding: 0; }
.req { color: #b8364a; }
.opt { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #8a8f80; border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }
.field .choice { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; font-weight: 500 !important; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green-text); background: var(--green-tint); }
.choice input { accent-color: var(--green-text); width: 18px; height: 18px; }
.form-error { color: #b8364a; font-weight: 600; }
.form-note { margin-top: 12px; }
.consult-form .btn { cursor: pointer; }
.contact-side .label { margin-top: 4px; }
.contact-side p { margin-bottom: 20px; }
