/* ==========================================================================
   Greenmotion Ventures — corporate website styles
   GREENMOTION VENTURES PTY LTD · ABN 64 694 230 825
   ========================================================================== */

:root {
  /* Colour */
  --background: #f6f8f7;
  --surface: #ffffff;
  --surface-muted: #edf2ef;
  --text-primary: #14201a;
  --text-secondary: #5d6962;
  --brand: #176b4d;
  --brand-dark: #0e4d36;
  --brand-light: #dcece5;
  --border: #d9e2dd;
  --footer: #10251d;
  --footer-text: #edf5f1;
  --footer-muted: #b6cdc2;
  --focus: #0b6e4f;
  --focus-inverse: #8fd6b6;

  /* Status accents */
  --status-neutral-bg: #e9eef2;
  --status-neutral-text: #38474f;
  --status-neutral-dot: #6b8090;
  --status-dev-bg: #f3ecdf;
  --status-dev-text: #6b4c15;
  --status-dev-dot: #a9782a;

  /* Layout */
  --maxw: 1120px;
  --gutter: clamp(1.125rem, 4vw, 2rem);
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 4.5rem;
  --section-y: clamp(3.5rem, 7vw, 6rem);

  /* Type */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(16, 37, 29, 0.04);
  --shadow-md: 0 6px 24px -12px rgba(16, 37, 29, 0.18);
}

/* ---------- Reset / base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 650;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.012em; }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; }

a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}
a:hover { color: var(--brand); }

address { font-style: normal; }

svg { display: block; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Layout helpers ---------- */

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

/* Keeps the footer at the bottom of short pages (404, legal pages). */
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

.section { padding-block: var(--section-y); }
.section--muted {
  background: var(--surface-muted);
  border-block: 1px solid var(--border);
}

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.section__head h2 { margin-bottom: 0.6rem; }
.section__intro {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 40rem;
}

.legal-name {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  letter-spacing: 0.005em;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.125rem;
  background: var(--surface);
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.6875rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-primary);
}
.btn--secondary:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Brand mark ---------- */

.mark { flex: none; }
.mark__bg { fill: var(--brand); }
.mark__route { stroke: #ffffff; }
.mark__node,
.mark__arrow { fill: #ffffff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 680;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--brand-dark); }
.wordmark__text { hyphens: none; -webkit-hyphens: none; min-width: 0; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand-dark); }

.nav-toggle__icon {
  position: relative;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle__icon::before { top: -5.5px; }
.nav-toggle__icon::after { top: 5.5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-5.5px) rotate(-45deg); }

.primary-nav__list { list-style: none; }

.primary-nav__list a:not(.btn) {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
}
.primary-nav__list a:not(.btn):hover { color: var(--brand-dark); }

/* Mobile navigation */
@media (max-width: 899px) {
  .primary-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open { display: block; }

  .primary-nav__list {
    display: flex;
    flex-direction: column;
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .primary-nav__list li + li { border-top: 1px solid var(--border); }
  .primary-nav__list a:not(.btn) { padding: 0.875rem 0; font-size: 1rem; }
  .primary-nav__cta { border-top: 0 !important; padding-top: 1rem; }
  .primary-nav__cta .btn { width: 100%; }
}

/* Very small screens: the menu button becomes icon-only. Its label stays in
   the accessibility tree, so the accessible name is still "Menu" / "Close". */
@media (max-width: 400px) {
  .wordmark { font-size: 0.9375rem; min-width: 0; }
  .nav-toggle { gap: 0; padding-inline: 0.8125rem; }
  .nav-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* Desktop navigation */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.4vw, 2rem);
  }
  .primary-nav__cta { margin-left: 0.25rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 6.5vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(64rem 30rem at 88% -12%, var(--brand-light) 0%, transparent 62%),
    var(--background);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero__content { max-width: 40rem; }
.hero h1 { margin-bottom: 1rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem 1.75rem;
  list-style: none;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.hero__facts-label {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Hero visual — connected routes */

.hero__visual { justify-self: center; width: 100%; max-width: 32rem; }

.routes { width: 100%; height: auto; }

.routes__grid path {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
  opacity: 0.65;
}

.routes__line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.32;
}
.routes__lines .routes__line:nth-child(2) { opacity: 0.5; stroke-width: 2.5; }

.routes__pulse {
  fill: none;
  stroke: var(--brand-dark);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 44 460;
  animation: route-travel 9s linear infinite;
}

@keyframes route-travel {
  from { stroke-dashoffset: 504; }
  to { stroke-dashoffset: 0; }
}

.routes__nodes circle {
  fill: var(--surface);
  stroke: var(--brand);
  stroke-width: 2.5;
}
.routes__nodes .routes__node--key { fill: var(--brand); stroke: var(--surface); stroke-width: 3; }

/* ---------- About ---------- */

.prose-columns {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 62rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}
@media (min-width: 820px) {
  .prose-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.focus-list li {
  padding: 0.4375rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-secondary);
}

/* ---------- Ventures ---------- */

.cards {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { border-color: #c3d4cb; box-shadow: var(--shadow-md); }

/* Align the head / body / supporting rows across all three cards, so the
   dividers line up even when a status label wraps. Falls back to the plain
   flex column above where subgrid is unsupported. */
@supports (grid-template-rows: subgrid) {
  .cards { grid-template-rows: repeat(3, auto); }
  .card {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
}

.card__head {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.card__title { margin-bottom: 0.625rem; color: var(--text-primary); }
.card p { font-size: 0.9375rem; }
.card__support {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px dashed var(--border);
  font-size: 0.875rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  margin: 0;
  padding: 0.3125rem 0.6875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.status::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status--operating { background: var(--brand-light); color: var(--brand-dark); }
.status--concept { background: var(--status-neutral-bg); color: var(--status-neutral-text); }
.status--development { background: var(--status-dev-bg); color: var(--status-dev-text); }

/* ---------- Company details ---------- */

.details-card {
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.details { margin: 0; }

.details__row { padding: 1rem clamp(1.125rem, 3vw, 1.75rem); }
.details__row + .details__row { border-top: 1px solid var(--border); }

.details dt {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.details dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 550;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .details__row {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: baseline;
  }
  .details dd { margin-top: 0; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.1875rem 0.625rem;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
}
.badge::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--brand);
}

.address { line-height: 1.55; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.contact-block {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-block h3 {
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.contact-block p,
.contact-block address { font-size: 1rem; font-weight: 550; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding-block: clamp(2.75rem, 5vw, 3.75rem) 0;
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}
@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
  }
}

.site-footer a {
  color: var(--footer-text);
  text-decoration-color: rgba(237, 245, 241, 0.4);
}
.site-footer a:hover { color: #ffffff; text-decoration-color: currentColor; }
.site-footer :focus-visible { outline-color: var(--focus-inverse); }

.mark--footer { margin-bottom: 0.875rem; }

.site-footer__name {
  margin: 0 0 0.25rem;
  font-weight: 650;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}
.site-footer__abn { margin: 0; color: var(--footer-muted); font-size: 0.9375rem; }

.site-footer__heading {
  margin: 0 0 0.875rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.site-footer__list { list-style: none; display: grid; gap: 0.625rem; font-size: 0.9375rem; }

.site-footer__bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(237, 245, 241, 0.14);
}
.site-footer__bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--footer-muted);
}

/* ---------- Legal pages ---------- */

.page-header {
  padding-block: clamp(2.75rem, 6vw, 4.25rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(56rem 24rem at 90% -30%, var(--brand-light) 0%, transparent 60%),
    var(--background);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header .lead { margin-bottom: 0; }
.page-meta {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.legal { padding-block: clamp(2.5rem, 5vw, 4rem); }
/* Keep the container's own width/gutters so the text starts on the same
   left edge as the header and footer, and cap the measure on the children. */
.legal__inner > * { max-width: 46rem; }
.legal h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: 1.75rem; font-size: 1.0625rem; }
.legal p,
.legal li { color: var(--text-secondary); }
.legal ul { margin: 0 0 1rem 1.25rem; padding-left: 0; list-style: disc; }
.legal li { margin-bottom: 0.375rem; }
.legal li::marker { color: var(--brand); }

.callout {
  margin: 1.5rem 0;
  padding: 1.125rem 1.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}
.callout p { color: var(--text-primary); font-weight: 550; }

.legal-contact {
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 0.75rem;
}
.legal-contact div { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.legal-contact dt {
  min-width: 7.5rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.legal-contact dd { margin: 0; font-weight: 550; }

.back-link { display: inline-block; margin-top: 2.5rem; font-weight: 600; }

/* ---------- 404 ---------- */

.error-page {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 20rem);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  background:
    radial-gradient(56rem 26rem at 85% -20%, var(--brand-light) 0%, transparent 62%),
    var(--background);
}
.error-page__inner > * { max-width: 38rem; }
.error-code {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
