/* ==========================================================================
   Siyon: shared stylesheet for siyon.co.za and siyoncapital.co.za
   Brand colours come from the current site:
   teal #4cb19f (fills), teal #01b1a1, yellow #ffe60d, purple #7b4fa1, grey #6e6f71. Font: Quicksand.
   Teal fills carry dark text because white on #4cb19f is too faint to read.
   ========================================================================== */
:root {
  --bg: #ffffff; --bg-2: #eef6f4; --fg: #111111; --muted: #4f5b59; --line: #d3e3df;
  --brand: #4cb19f; --brand-strong: #3a9a88; --on-brand: #0b1f1c;
  --link: #1d7a6a; --link-strong: #145a4e;
  --teal: #01b1a1; --accent: #ffe60d; --purple: #7b4fa1; --grey: #6e6f71;
  --focus: #7b4fa1;
  --band: #4cb19f; --on-band: #0b1f1c; --on-band-muted: #143a33; --band-line: rgba(11, 31, 28, .25);
  --band-num: #0b1f1c; --band-btn-bg: #0b1f1c; --band-btn-fg: #ffffff; --band-btn-hover: #1c403a; --band-btn-hover-fg: #ffffff;
  --footer-bg: #1f2423; --footer-fg: #c4cecb; --input-bg: #ffffff; --input-line: #9db3ae;
  --logo-ring: #6e6f71; --logo-text: #6e6f71;

  --font: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --step--1: clamp(.86rem, .84rem + .1vw, .92rem); --step-0: clamp(1.02rem, .98rem + .18vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.8vw, 3.8rem); --step-4: clamp(2.6rem, 1.4rem + 6vw, 6.5rem);
  --gutter: clamp(1rem, 4vw, 3rem); --max: 1180px; --radius: 8px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e1716; --bg-2: #142120; --fg: #e8f0ee; --muted: #9fb3af; --line: #27403c;
  --brand-strong: #6cc7b6; --link: #6cc7b6; --link-strong: #9adccf; --focus: #ffe60d;
  --band: #0f3a34; --on-band: #eaf4f2; --on-band-muted: #bcd3ce; --band-line: rgba(255, 255, 255, .2);
  --band-num: #ffe60d; --band-btn-bg: #ffe60d; --band-btn-fg: #0b1f1c; --band-btn-hover: #ffffff; --band-btn-hover-fg: #0b1f1c;
  --footer-bg: #080f0e; --footer-fg: #a9bbb7; --input-bg: #142120; --input-line: #3c5a55;
  --logo-ring: #b9bbbd; --logo-text: #b9bbbd; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0e1716; --bg-2: #142120; --fg: #e8f0ee; --muted: #9fb3af; --line: #27403c;
  --brand-strong: #6cc7b6; --link: #6cc7b6; --link-strong: #9adccf; --focus: #ffe60d;
  --band: #0f3a34; --on-band: #eaf4f2; --on-band-muted: #bcd3ce; --band-line: rgba(255, 255, 255, .2);
  --band-num: #ffe60d; --band-btn-bg: #ffe60d; --band-btn-fg: #0b1f1c; --band-btn-hover: #ffffff; --band-btn-hover-fg: #0b1f1c;
  --footer-bg: #080f0e; --footer-fg: #a9bbb7; --input-bg: #142120; --input-line: #3c5a55;
  --logo-ring: #b9bbbd; --logo-text: #b9bbbd; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--step-0)/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--link-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--step-3); font-weight: 500; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -.005em; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 8vw, 6.5rem); }
.section--tint { background: var(--bg-2); }
.section--dark { background: var(--band); color: var(--on-band); }
.section--dark a:not(.btn) { color: inherit; }
.section--dark p { color: var(--on-band-muted); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 40ch; font-weight: 400; }
.section--dark .lede { color: var(--on-band-muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--bg); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand img, .logo { height: 3rem; width: auto; }
@media (max-width: 480px) { .brand img, .logo { height: 2.5rem; } }
/* The logo is a grey line on transparent: flip its lightness on dark backgrounds, keep hues */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header .brand img { filter: invert(1) hue-rotate(180deg); } }
:root[data-theme="dark"] .site-header .brand img { filter: invert(1) hue-rotate(180deg); }
.l-ring { fill: none; stroke: var(--logo-ring); stroke-width: 2.4; }
.l-dot-a { fill: var(--teal); } .l-dot-b { fill: var(--accent); }
.l-text { fill: var(--logo-text); font-family: var(--font); font-weight: 500; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .8rem; font: inherit; font-weight: 600; color: var(--fg); cursor: pointer; }
.nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a { text-decoration: none; color: var(--fg); font-weight: 500; font-size: var(--step--1); padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brand); }
.nav .btn { color: var(--on-brand); border: 2px solid var(--brand); }
.nav .btn:hover { color: var(--on-brand); border-color: var(--brand-strong); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .nav li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-0); }
  .nav li:last-child a { margin-top: 1rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 600; padding: .85rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--brand); transition: background .15s, color .15s; cursor: pointer; font-family: inherit; font-size: var(--step-0); }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.btn--ghost { background: transparent; color: var(--link); }
.btn--ghost:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.section--dark .btn, .path--dark .btn { background: var(--band-btn-bg); border-color: var(--band-btn-bg); color: var(--band-btn-fg); }
.section--dark .btn:hover, .path--dark .btn:hover { background: var(--band-btn-hover); border-color: var(--band-btn-hover); color: var(--band-btn-hover-fg); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { font-size: var(--step-4); font-weight: 300; letter-spacing: -.035em; line-height: 1; margin-bottom: 0; }
.hero-line { position: relative; margin-block: clamp(1.25rem, 3vw, 2.25rem); padding-right: 11px; }
.hero-line svg { width: 100%; height: clamp(70px, 12vw, 140px); overflow: visible; }
.hero-line path { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero-dot { position: absolute; right: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--grey); }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr; align-items: end; }
.hero-grid > * { min-width: 0; }
.hero-grid .lede { margin: 0; max-width: 34ch; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 16ch; }
.page-head .lede { margin: 0; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split > :first-child h2 { position: sticky; top: calc(6rem + env(safe-area-inset-top, 0px)); }
@media (max-width: 860px) { .split > :first-child h2 { position: static; } }

.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1rem 2rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .rows > li { grid-template-columns: 1fr; } }

/* Numbered process: used only where the content is a real sequence */
.steps { counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(step); font-weight: 600; font-size: var(--step-2); line-height: 1; color: var(--link); }
.steps h3 { margin: 0 0 .35em; }
.steps p { margin: 0; color: var(--muted); }
.section--dark .steps > li { border-color: var(--band-line); }
.section--dark .steps > li::before { color: var(--band-num); }
.section--dark .steps p { color: var(--on-band-muted); }

.claim { font-size: var(--step-3); line-height: 1.05; letter-spacing: -.03em; font-weight: 300; max-width: 18ch; margin: 0; }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.paths > * { min-width: 0; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.path { background: var(--bg); padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; }
.path p { color: var(--muted); }
.path ul { margin: .5rem 0 1.75rem; }
.path li { padding: .5rem 0; border-top: 1px solid var(--line); }
.path .btn { align-self: flex-start; margin-top: auto; }
.path--dark { background: var(--band); color: var(--on-band); }
.path--dark p { color: var(--on-band-muted); }
.path--dark li { border-color: var(--band-line); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chips li { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: .3rem .9rem; font-size: var(--step--1); font-weight: 500; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.1rem; max-width: 560px; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: var(--step--1); }
.form input, .form textarea, .form select { font: inherit; padding: .8rem .9rem; border: 1px solid var(--input-line); border-radius: var(--radius); background: var(--input-bg); color: var(--fg); width: 100%; }
.form textarea { min-height: 9rem; resize: vertical; }
.form-note { font-size: var(--step--1); color: var(--muted); margin: 0; }
.form-ok { font-weight: 600; color: var(--link); margin: 0; }
.details dt { font-weight: 700; margin-top: 1.25rem; }
.details dd { margin: .15rem 0 0; color: var(--muted); }
.mail { user-select: all; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding-block: 3rem 2rem; font-size: var(--step--1); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand img { filter: invert(1) hue-rotate(180deg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid > * { min-width: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: var(--step-0); color: #fff; margin-bottom: .8em; letter-spacing: 0; }
.site-footer li { margin-bottom: .45rem; }
.legal { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); max-width: none; }

/* ---------- Slogan strip ---------- */
.slogan { border-block: 1px solid var(--line); padding-block: clamp(1rem, 2.5vw, 1.6rem); }
.slogan p { margin: 0; max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(.9rem, 3vw, 1.75rem); font-size: var(--step-1); font-weight: 300; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sep { display: inline-block; width: .5em; height: .5em; border-radius: 50%; flex: none; }
.sep--purple { background: var(--purple); }
.sep--teal { background: var(--teal); }
