/*
 * Awash Valley Technologies: one stylesheet for every page. Light and dark follow the visitor's device.
 * Colours from the logo (brand/README.md): teal #117785 (links, buttons: 5.0:1 on the paper colour), green #16AA7B
 * (decoration only on light, too faint for text), dark grey #35393F (text), paper #F9FAF4 (background).
 */
:root {
  --bg: #f9faf4;
  --surface: #ffffff;
  --text: #35393f;
  --muted: #5d636a;
  --border: #e1e4da;
  --accent: #117785;
  --accent-strong: #0e5f6a;
  --accent-soft: #e4f1f2;
  --green: #16aa7b;
  --eyebrow: #117785;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(28 42 46 / 0.06), 0 6px 24px rgb(28 42 46 / 0.06);
  --max: 1040px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a1c;
    --surface: #182427;
    --text: #e8eeee;
    --muted: #a3b2b4;
    --border: #2a3a3d;
    --accent: #5cc3cd;
    --accent-strong: #8fd8de;
    --accent-soft: #17363a;
    --green: #16aa7b;
    --eyebrow: #16aa7b;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: 'Source Serif 4', Georgia, serif; line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; }
/* The real logo (brand/svg/logo-horizontal.svg; the light-words version in dark mode), 44 px high. */
.brand-logo { height: 44px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.25rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* Sections */
main { display: block; }
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 46rem; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 0.8rem; }
/* A short green line under the big title: the logo's circuit green, as decoration only. */
.hero h1::after { content: ""; display: block; width: 3.5rem; height: 4px; border-radius: 2px; background: var(--green); margin-top: 1rem; }
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section + .section { border-top: 1px solid var(--border); }
.muted { color: var(--muted); }
.space-top { margin-top: 1.2rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: 0.3rem; }
.card .tag { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; }
.card ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.card li { margin-bottom: 0.3rem; }
.card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0.55rem 1.1rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .button.primary, .button.primary:hover { color: #0f1a1c; } }
.button.ghost { color: var(--accent); background: transparent; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin: 0; }
.facts div { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.1rem; }
.facts dt { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-weight: 500; }

table.prices { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.95rem; }
table.prices th, table.prices td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.prices th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Legal and long pages */
.doc { max-width: 46rem; }
.doc h2 { font-size: 1.3rem; margin-top: 2rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.updated { font-size: 0.9rem; color: var(--muted); }

address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 2rem; padding: 2rem 0; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer strong { color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 1rem; }
