/* C0 Pty Ltd - Melbourne bluestone direction: sharp, quiet, factual */

:root {
  /* Colour */
  --primary: #2E3A40;
  --primary-deep: #1E272B;
  --primary-soft: #3C4A51;
  --accent: #8A5A12;
  --accent-light: #E2B866;
  --accent-tint: #F3E9D6;
  --bg: #F4F5F4;
  --surface: #FFFFFF;
  --stone: #E7EAE9;
  --border: #D3D9D8;
  --text-dark: #1A2124;
  --text-muted: #525D62;
  --text-light: #EEF1F0;
  --text-light-muted: #AEB9BB;
  --line-dark: rgba(255, 255, 255, .14);
  --line-accent: rgba(226, 184, 102, .38);
  --panel: rgba(255, 255, 255, .04);
  --pattern-line: rgba(255, 255, 255, .055);
  --glow: rgba(226, 184, 102, .16);
  --nav-bg: rgba(244, 245, 244, .84);

  /* Type */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-page: clamp(2rem, 4vw, 3.1rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.08rem, 1.6vw, 1.22rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-eyebrow: .78rem;

  /* Spacing */
  --s0: .25rem;
  --s1: .5rem;
  --s2: .75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;

  /* Shape & depth */
  --radius: 3px;
  --radius-sm: 2px;
  --hairline: 1px;
  --rule: 2px;
  --icon-tile: 2.75rem;
  --container: 1140px;
  --gutter: 1.375rem;
  --measure: 66ch;
  --nav-h: 4.25rem;
  --shadow-sm: 0 1px 2px rgba(26, 33, 36, .05);
  --shadow: 0 1px 2px rgba(26, 33, 36, .04), 0 8px 24px rgba(26, 33, 36, .06);
  --shadow-lift: 0 2px 4px rgba(26, 33, 36, .06), 0 14px 32px rgba(26, 33, 36, .12);
  --ease: 180ms ease;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--s3)); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 var(--s3);
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 var(--s3); }
ul, ol { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--text-dark); }
:focus-visible { outline: var(--rule) solid var(--accent); outline-offset: var(--rule); }
svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(-1 * var(--s6));
  z-index: 100;
  padding: var(--s1) var(--s3);
  background: var(--primary);
  color: var(--surface);
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s3); color: var(--surface); }

.eyebrow {
  display: block;
  margin: 0 0 var(--s2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: var(--s2) var(--s4);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: var(--hairline) solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--ease), background-color var(--ease), color var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: var(--s1) var(--s3); font-size: .9375rem; }
.btn-primary { background: var(--primary); color: var(--surface); }
.btn-primary:hover { background: var(--primary-deep); color: var(--surface); box-shadow: var(--shadow-lift); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--surface); }

/* Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--hairline) solid var(--border);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: var(--s4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text-dark);
  text-decoration: none;
}
.brand:hover { color: var(--text-dark); }
.brand-mark {
  display: grid;
  place-items: center;
  width: var(--icon-tile);
  height: var(--icon-tile);
  background: var(--primary);
  color: var(--accent-light);
  font: 600 1.15rem/1 var(--font-display);
  letter-spacing: -.02em;
  border-radius: var(--radius);
}
.brand-name { font: 600 1.15rem/1 var(--font-display); letter-spacing: -.01em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
  padding: 0;
}
.nav-links a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--rule);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { font-weight: 600; }
.nav-cta { margin-left: var(--s1); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--icon-tile);
  height: var(--icon-tile);
  padding: 0;
  background: transparent;
  color: var(--text-dark);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

/* Bluestone background craft (hero, page hero, dark bands) */
.bg-bluestone {
  background-color: var(--primary);
  background-image:
    radial-gradient(ellipse at 85% 8%, var(--glow), transparent 55%),
    repeating-linear-gradient(0deg, var(--pattern-line) 0 var(--hairline), transparent var(--hairline) var(--s5)),
    repeating-linear-gradient(90deg, var(--pattern-line) 0 var(--hairline), transparent var(--hairline) var(--s6)),
    linear-gradient(160deg, var(--primary-soft), var(--primary) 45%, var(--primary-deep));
  color: var(--text-light);
}
.bg-bluestone .eyebrow { color: var(--accent-light); }
.bg-bluestone a:not(.btn) { color: var(--accent-light); }
.bg-bluestone :focus-visible { outline-color: var(--accent-light); }
.bg-bluestone .btn-primary { background: var(--accent-light); color: var(--text-dark); }
.bg-bluestone .btn-primary:hover { background: var(--surface); color: var(--text-dark); }
.bg-bluestone .btn-outline { color: var(--text-light); border-color: var(--text-light-muted); }
.bg-bluestone .btn-outline:hover { background: var(--text-light); color: var(--text-dark); border-color: var(--text-light); }

/* Home hero */
.hero {
  padding: var(--s7) 0 calc(var(--s7) + var(--s5));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s6)), 0 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--s6);
  align-items: center;
  min-height: 52vh;
}
.hero h1 { font-size: var(--fs-hero); line-height: 1.06; max-width: 17ch; margin-bottom: var(--s4); }
.lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 46ch; margin-bottom: var(--s5); }
.bg-bluestone .lead { color: var(--text-light-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(var(--s4), var(--s4));
  border: var(--hairline) solid var(--line-accent);
  border-radius: var(--radius);
}
.register-card {
  position: relative;
  padding: var(--s5);
  background: var(--primary-deep);
  border: var(--hairline) solid var(--line-dark);
  border-radius: var(--radius);
}
.monogram { width: 100%; max-width: 15rem; height: auto; margin-bottom: var(--s4); }
.m-c { stroke: var(--accent-light); }
.m-o { stroke: var(--text-light); }
.register-list { margin: 0; display: grid; gap: 0; }
.register-list div {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-top: var(--hairline) solid var(--line-dark);
  font-size: var(--fs-small);
}
.register-list dt { color: var(--text-light-muted); }
.register-list dd { margin: 0; color: var(--text-light); font-weight: 600; text-align: right; }

/* Inner page hero */
.page-hero {
  padding: var(--s6) 0 calc(var(--s6) + var(--s4));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s5)), 0 100%);
}
.page-hero h1 { font-size: var(--fs-page); max-width: 22ch; margin-bottom: var(--s3); }
.page-hero .lead { margin-bottom: 0; }

/* Sections */
.section { padding: var(--s7) 0; }
.section-alt { background: var(--surface); border-top: var(--hairline) solid var(--border); border-bottom: var(--hairline) solid var(--border); }
.section-head { max-width: 40rem; margin-bottom: var(--s5); }
.section-head p { color: var(--text-muted); max-width: 60ch; margin-bottom: 0; }
.section-foot { margin-top: var(--s5); }
.text-link { font-weight: 600; }

/* Value props: hairline columns, no cards */
.props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  list-style: none;
  padding: 0;
}
.prop { padding-top: var(--s4); border-top: var(--rule) solid var(--primary); }
.prop p { color: var(--text-muted); margin-bottom: 0; max-width: 40ch; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--s4);
  list-style: none;
  padding: 0;
}
.service-card {
  padding: var(--s5) var(--s4) var(--s4);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-top: var(--rule) solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.service-card p { color: var(--text-muted); margin-bottom: 0; }
.icon-tile {
  display: grid;
  place-items: center;
  width: var(--icon-tile);
  height: var(--icon-tile);
  margin-bottom: var(--s3);
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--radius);
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.split-copy p { color: var(--text-muted); max-width: 58ch; }
.split-visual {
  padding: var(--s5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-visual svg { width: 100%; height: auto; }
.sv-line { stroke: var(--line-dark); }
.sv-road { stroke: var(--text-light-muted); }
.sv-pin { fill: var(--accent-light); }
.sv-dot { fill: var(--primary-deep); }
.sv-text { fill: var(--text-light); font-family: var(--font-display); }
.sv-sub { fill: var(--text-light-muted); font-family: var(--font-body); }

/* Credentials strip */
.credentials { padding: var(--s5) 0; background: var(--stone); border-bottom: var(--hairline) solid var(--border); }
.cred-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
}
.cred-list div { padding: var(--s1) var(--s4); border-left: var(--hairline) solid var(--border); }
.cred-list div:first-child { border-left: 0; padding-left: 0; }
.cred-list dt { font-size: var(--fs-small); color: var(--text-muted); }
.cred-list dd { margin: 0; font: 600 1.1rem/1.3 var(--font-display); color: var(--text-dark); }

/* Dark CTA band */
.band-dark { padding: var(--s6) 0; }
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}
.band-inner h2 { margin-bottom: var(--s1); }
.band-inner p { color: var(--text-light-muted); margin-bottom: 0; max-width: 52ch; }

/* Facts table */
.facts { margin: 0 0 var(--s5); border-top: var(--hairline) solid var(--border); }
.facts div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: var(--hairline) solid var(--border);
}
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Steps (genuine sequence) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.step { counter-increment: step; padding-top: var(--s4); border-top: var(--hairline) solid var(--border); }
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: var(--s2);
  font: 600 2rem/1 var(--font-display);
  color: var(--accent);
}
.step p { color: var(--text-muted); margin-bottom: 0; }

/* Prose & legal */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.45rem; margin-top: var(--s5); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: var(--s4); margin-bottom: var(--s3); }
.prose li { margin-bottom: var(--s1); }
.legal-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: var(--s6);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s4));
  padding-left: var(--s3);
  border-left: var(--rule) solid var(--primary);
  font-size: var(--fs-small);
}
.toc ol { padding-left: var(--s3); }
.toc li { margin-bottom: var(--s1); }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s6);
  align-items: start;
}
.contact-email {
  display: inline-block;
  margin: var(--s1) 0 var(--s4);
  font: 600 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--font-display);
  letter-spacing: -.01em;
  word-break: break-word;
}
.contact-panel {
  padding: var(--s5);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: var(--s1); }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font: inherit;
  color: var(--text-dark);
  background: var(--bg);
  border: var(--hairline) solid var(--text-muted);
  border-radius: var(--radius-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.form-note { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }

/* Footer */
.footer {
  background: var(--primary-deep);
  color: var(--text-light-muted);
  border-top: var(--hairline) solid var(--line-dark);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--s5);
  padding: var(--s6) var(--gutter);
}
.footer a { color: var(--text-light); text-decoration: none; }
.footer a:hover { color: var(--accent-light); text-decoration: underline; }
.footer :focus-visible { outline-color: var(--accent-light); }
.footer-brand .brand { color: var(--text-light); margin-bottom: var(--s3); }
.footer-brand .brand-mark { background: var(--primary-soft); }
.footer-brand p { margin-bottom: var(--s1); max-width: 34ch; }
.footer-heading {
  margin: 0 0 var(--s3);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.footer-links { list-style: none; padding: 0; display: grid; gap: var(--s1); }
.footer-bottom { background: var(--primary); border-top: var(--hairline) solid var(--line-dark); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  font-size: var(--fs-small);
}
.footer-bottom-inner p { margin: 0; }
.footer-legal { display: flex; gap: var(--s4); list-style: none; padding: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .cred-list { grid-template-columns: repeat(3, 1fr); row-gap: var(--s3); }
  .cred-list div:nth-child(4) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: var(--s6) 0; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--gutter) var(--s4);
    background: var(--surface);
    border-bottom: var(--hairline) solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: var(--hairline) solid var(--stone); }
  .nav-links li:last-child { border-bottom: 0; padding-top: var(--s3); }
  .nav-links a:not(.btn) { display: block; padding: var(--s2) 0; }
  .nav-links a:not(.btn)::after { right: auto; width: var(--s5); }
  .nav-cta { margin-left: 0; width: 100%; }

  .hero { padding: var(--s6) 0 calc(var(--s6) + var(--s5)); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { display: none; }
  .page-hero { padding: var(--s5) 0 calc(var(--s5) + var(--s4)); }

  .props, .steps { grid-template-columns: 1fr; gap: var(--s4); }
  .split, .contact-grid, .legal-layout { grid-template-columns: 1fr; gap: var(--s5); }
  .toc { position: static; }
  .cred-list { grid-template-columns: 1fr 1fr; }
  .cred-list div, .cred-list div:nth-child(4) { border-left: 0; padding-left: 0; }
  .band-inner { flex-direction: column; align-items: flex-start; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
  .contact-panel, .register-card, .split-visual { padding: var(--s4); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s5); padding-bottom: var(--s5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
}
