/* Australian Renewable Chemicals */

:root {
  --bg: #fbfaf7;
  --ink: #15171b;
  --text: #3b4048;
  --muted: #6b7079;
  --rule: #e2dfd8;
  --link: #006ba6;
  --brand: linear-gradient(90deg, #0fadff, #fb45ff); /* logo colours, decoration only */

  /* System fonts only: no third-party requests, nothing to license. */
  --serif: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1080px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

h1, h2, h3 { color: var(--ink); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); }

.site-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 2.5rem;
}
.site-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 12px 8px;
  margin-right: -8px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

/* Hero */

.hero { padding: 8rem 0 6rem; border-bottom: 1px solid var(--rule); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin-bottom: 1.75rem;
}

.hero-sub { font-size: 1.125rem; max-width: 36rem; margin-bottom: 2.5rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-size: 0.9375rem;
  color: var(--bg);
  background: var(--ink);
  border-radius: 2px;
  text-decoration: none;
}
.btn:hover { color: var(--bg); background: #33373e; }

/* Sections */

.section { padding: 5rem 0; border-bottom: 1px solid var(--rule); }
.section:last-child { border-bottom: none; }

.section-grid { display: grid; grid-template-columns: 200px 1fr; gap: 3rem; }

.section-label h2 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}
.section-label h2::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-bottom: 0.75rem;
  background: var(--brand);
}

.section-body p { max-width: 38rem; margin-bottom: 1rem; }
.section-body p:last-child { margin-bottom: 0; }

.lead { font-family: var(--serif); font-size: 1.375rem; line-height: 1.45; color: var(--ink); }

/* Capabilities */

.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.capability { border-top: 1px solid var(--ink); padding-top: 1rem; }
.capability h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-bottom: 0.5rem; }
.capability p { font-size: 0.9375rem; }

.focus-list { display: grid; gap: 1.75rem; margin: 2rem 0; }

/* Contact */

.contact-detail { margin-top: 2rem; display: flex; gap: 4rem; }
.contact-detail p { line-height: 1.6; }
.contact-detail strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */

.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0; font-size: 0.8125rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* Legal pages */

.legal-page { padding: 4rem 0 6rem; }
.legal-page .container > * { max-width: 42rem; }
.legal-page h1 { font-family: var(--serif); font-weight: 400; font-size: 2.25rem; line-height: 1.2; margin-bottom: 0.5rem; }
.legal-page .last-updated { font-size: 0.875rem; color: var(--muted); margin-bottom: 2.5rem; }
.legal-page h2 { font-size: 1.0625rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }
.legal-page p, .legal-page ul { margin-bottom: 1rem; }
.legal-page ul { padding-left: 1.25rem; }
.legal-page li { margin-bottom: 0.375rem; }

/* Responsive */

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.5rem 1rem;
    display: none;
    flex-direction: column;
  }
  .site-nav.open { display: flex; }
  .site-nav a { margin-left: 0; font-size: 1rem; padding: 0.75rem 0; }

  .logo span { font-size: 0.9375rem; }

  .hero { padding: 4.5rem 0 4rem; }
  .section { padding: 3.5rem 0; }
  .section-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .section-label h2 { position: static; }
  .capabilities { grid-template-columns: 1fr; gap: 2rem; }
  .contact-detail { flex-direction: column; gap: 1.25rem; }
  .footer-inner { flex-direction: column; }
}
