/* ============================================================
   Avestar Audio Visual — site styles (v2, design pass 3 Jul)
   Palette drawn from the Avestar star: vermilion on near-black.
   Fonts SELF-HOSTED (assets/fonts, OFL licences alongside) —
   no external fonts or scripts, fully offline-capable.
   ============================================================ */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --font-display: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --star-red: #d84330;      /* sampled from Avestar_Logo_PMS_FIN — accents, large type, decorative only */
  --star-red-dark: #b53525;
  --star-red-fill: #b53525;     /* fills carrying white text (WCAG 4.5:1) */
  --star-red-fill-hover: #9c2d1f;
  --kicker-on-dark: #ff8f7d;    /* red kickers on ink (8:1) */
  --av-blue: #1e4489;       /* the "av" blue, sampled from the logo */
  --av-blue-dark: #163367;
  --logo-charcoal: #383a35;
  --ink: #16181d;
  --ink-soft: #23262e;
  --paper: #ffffff;
  --paper-soft: #f5f4f2;
  --text: #24262b;
  --text-dim: #5c5f66;
  --text-on-dark: #f2f1ee;
  --text-on-dark-dim: #b9bcc2;
  --radius: 6px;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-text);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

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

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

/* ---------- header (light, carries the full-colour logo) ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--av-blue);
  box-shadow: 0 1px 4px rgba(20,20,25,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: var(--max-w); margin: 0 auto;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 54px; width: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.stat b { font-family: var(--font-display); letter-spacing: -0.015em; }
nav { display: flex; gap: 26px; align-items: center; }
nav a {
  color: var(--text-dim); text-decoration: none; font-size: 0.92rem;
  letter-spacing: 0.02em;
}
nav a:hover, nav a[aria-current="page"] { color: var(--av-blue); }
.nav-cta {
  background: var(--star-red-fill); color: #fff !important;
  padding: 8px 18px; border-radius: var(--radius); font-weight: 600;
}
.nav-cta:hover { background: var(--star-red-fill-hover); }

/* mobile nav toggle (CSS-only checkbox pattern; hidden on desktop) */
.nav-toggle { position: absolute; opacity: 0; }
.nav-burger { display: none; font-size: 30px; line-height: 1; color: var(--av-blue); cursor: pointer; padding: 4px 8px; }
.nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--av-blue); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--text-on-dark);
  background: var(--ink);
  min-height: 72vh; display: flex; align-items: center;
}
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.42;
}
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.08;
  font-weight: 600; letter-spacing: -0.02em; max-width: 17ch;
}
.hero h1 em { color: var(--star-red); font-style: normal; }
.hero p {
  margin-top: 20px; max-width: 54ch; font-size: 1.12rem;
  color: var(--text-on-dark-dim);
}
.hero .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius); font-size: 0.98rem;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav-cta:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
.section-dark .btn:focus-visible, .cta-band .btn:focus-visible, .hero .btn:focus-visible { outline-color: #fff; }
.btn-primary { background: var(--star-red-fill); color: #fff; }
.btn-primary:hover { background: var(--star-red-fill-hover); }
.btn-ghost {
  color: var(--text-on-dark); border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: #fff; }

/* ---------- stats bar ---------- */
.stats {
  background: var(--star-red-fill); color: #fff;
  padding: 34px 0;
}
.stats .wrap { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; }
.stat { text-align: center; min-width: 150px; }
.stat b { display: block; font-size: 3rem; font-weight: 800; line-height: 1.05; }
.stat span { font-size: 0.92rem; opacity: 0.92; letter-spacing: 0.04em; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-soft {
  background-color: var(--paper-soft);
  background-image: radial-gradient(rgba(30,68,137,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}

.kicker {
  color: var(--av-blue); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 0.8rem;
}
.kicker::before {
  content: "★"; color: var(--star-red);
  margin-right: 9px; font-size: 0.95em;
}
.hero .kicker, .section-dark .kicker, .cta-band .kicker, .page-head .kicker { color: var(--kicker-on-dark); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 10px 0 14px; line-height: 1.16; }
.lede { max-width: 62ch; color: var(--text-dim); font-size: 1.05rem; }
.section-dark .lede { color: var(--text-on-dark-dim); }

/* ---------- project cards ---------- */
.cards {
  margin-top: 40px; display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 3px rgba(20,20,25,0.10), 0 8px 24px rgba(20,20,25,0.06);
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
}
.card .thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(165deg, rgba(30,68,137,0.18), rgba(22,24,29,0.16) 70%);
}
.card .body { padding: 20px 22px 24px; }
.card .tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--av-blue);
}
.card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.card p { font-size: 0.94rem; color: var(--text-dim); }

/* ---------- capability strip ---------- */
.caps { margin-top: 40px; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.caps-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cap { border-top: 3px solid var(--star-red); padding-top: 18px; }
.cap .icon { width: 56px; height: 56px; margin-bottom: 14px; color: #d9dce2; }
section:not(.section-dark) .cap .icon { color: var(--av-blue); }
.cap .icon .node-accent { fill: var(--star-red); stroke: none; }

/* signal-path motif */
.trace-divider { display: block; width: 100%; height: 36px; color: rgba(30,68,137,0.45); margin-bottom: 8px; }
.trace-divider .node-accent { fill: var(--star-red); stroke: none; }
.trace-bg {
  position: absolute; right: 0; top: 0; height: 100%; width: min(46%, 560px);
  color: #ffffff; opacity: 0.06; pointer-events: none;
}
.section-dark { position: relative; overflow: hidden; }
.section-dark .wrap { position: relative; }
.section-soft .cap, section:not(.section-dark) .cap { border-top-color: var(--av-blue); }
.cap h3 { font-size: 1.06rem; margin-bottom: 8px; }
.cap p { font-size: 0.93rem; color: var(--text-dim); }
.section-dark .cap p { color: var(--text-on-dark-dim); }

/* ---------- brand wall ---------- */
.brands { margin-top: 36px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: stretch; }
.brands img {
  width: 100%; height: 76px; object-fit: contain;
  opacity: 0.8; transition: all 0.15s ease;
  background: #fff; padding: 16px 22px; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20,20,25,0.06);
}
.brands img:hover { opacity: 1; }

/* ---------- coverage (states) ---------- */
.states {
  margin-top: 36px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.state {
  border: 1px solid rgba(30,68,137,0.25); border-radius: var(--radius);
  padding: 16px 14px; text-align: center; background: var(--paper);
}
.state b { display: block; font-size: 1.3rem; color: var(--av-blue); }
.state span { font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0.04em; }
.state.hq { border-color: var(--star-red); }
.state.hq b { color: var(--star-red); }
.state.future { opacity: 0.45; border-style: dashed; }

/* ---------- CTA band ---------- */
.cta-band, .page-head { position: relative; overflow: hidden; }
.cta-band::before, .page-head::after {
  content: "★"; position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%) rotate(12deg);
  font-size: 380px; line-height: 1; color: #ffffff; opacity: 0.045;
  pointer-events: none;
}
.cta-band { background: var(--ink); color: var(--text-on-dark); text-align: center; }
.cta-band h2 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.cta-band .actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer {
  background: var(--ink-soft); color: var(--text-on-dark-dim);
  padding: 44px 0 30px; font-size: 0.9rem;
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
footer h4 { color: var(--text-on-dark); margin-bottom: 10px; font-size: 0.95rem; }
footer a { color: var(--text-on-dark-dim); text-decoration: none; display: block; margin-bottom: 6px; }
footer a:hover { color: var(--text-on-dark); }
.footer-bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- interior page head ---------- */
.page-head {
  background: var(--ink); color: var(--text-on-dark);
  padding: 64px 0 56px;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15;
  font-weight: 600; letter-spacing: -0.01em; max-width: 24ch;
}
.page-head h1 em { color: var(--star-red); font-style: normal; }
.page-head .lede { color: var(--text-on-dark-dim); margin-top: 14px; }

/* ---------- case studies (projects page) ---------- */
.studies { padding: 24px 0 72px; }
.study {
  display: grid; gap: 44px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid rgba(30,68,137,0.18);
  scroll-margin-top: 90px; /* clear the sticky header on anchor jumps */
}
.study:first-of-type { border-top: none; }
.study figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.study figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.study:nth-of-type(even) figure { order: 2; }
.study .tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--av-blue);
}
.study h2 { margin: 6px 0 4px; }
.study h3 {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--star-red-dark);
  margin: 24px 0 6px;
}
.study p { max-width: 62ch; }
.study.no-photo { grid-template-columns: 1fr; }

@media (max-width: 820px) {
  .study { grid-template-columns: 1fr; gap: 26px; }
  .study:nth-of-type(even) figure { order: 0; }
}

/* ---------- layout moments (v3) ---------- */
.pullquote {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.22;
  letter-spacing: -0.01em; max-width: 26ch; margin-top: 34px;
}
.pullquote em { color: var(--star-red); font-style: normal; }
.section-dark .pullquote, .cta-band .pullquote { color: var(--text-on-dark); }

.record { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.record .big {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(140px, 20vw, 260px); line-height: 0.85;
  color: var(--av-blue); letter-spacing: -0.04em;
}
.record .big::after { content: "★"; font-size: 0.18em; color: var(--star-red); vertical-align: top; margin-left: 6px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.split .states { margin-top: 0; }

@media (max-width: 820px) {
  .record { grid-template-columns: 1fr; gap: 8px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- contact form ---------- */
.enquiry-form { margin-top: 36px; max-width: 720px; }
.enquiry-type { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.enquiry-type input[type="radio"] { position: absolute; opacity: 0; }
.enquiry-type label {
  border: 1px solid rgba(30,68,137,0.35); border-radius: var(--radius);
  padding: 12px 20px; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  color: var(--text-dim); background: var(--paper);
}
.enquiry-type input[type="radio"]:checked + label {
  border-color: var(--star-red); color: var(--star-red-dark);
  background: rgba(216,67,48,0.06);
}
.enquiry-type input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--av-blue); outline-offset: 2px;
}
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-field input, .form-field textarea {
  font: inherit; color: var(--text);
  padding: 12px 14px; border: 1px solid rgba(30,68,137,0.35);
  border-radius: var(--radius); background: var(--paper);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--av-blue); outline-offset: 1px; border-color: var(--av-blue);
}
.form-note { margin-top: 14px; font-size: 0.88rem; color: var(--text-dim); max-width: 60ch; }
.contact-details { margin-top: 40px; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  header { position: sticky; }
  .header-inner { position: relative; }
  .nav-burger { display: block; }
  nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 3px solid var(--av-blue);
    box-shadow: 0 10px 24px rgba(20,20,25,0.12);
  }
  nav a { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  nav .nav-cta { text-align: center; margin-top: 10px; padding: 13px 18px; }
  .nav-toggle:checked ~ nav { display: flex; }
  .hero { min-height: 60vh; }
}

/* ---------- schematic Australia map ---------- */
.aus-map { width: 100%; height: auto; display: block; }
.aus-map .st-active { fill: rgba(30,68,137,0.10); stroke: var(--paper); stroke-width: 1; }
.aus-map .st-hq { fill: rgba(30,68,137,0.22); stroke: var(--paper); stroke-width: 1; }
.aus-map .st-future { fill: rgba(92,95,102,0.08); stroke: var(--paper); stroke-width: 1; }
.aus-map .routes path { stroke: var(--av-blue); stroke-width: 0.8; opacity: 0.5; }
.aus-map .state-label text { font-family: var(--font-text); font-size: 7.5px; font-weight: 700; letter-spacing: 0.12em; fill: var(--av-blue); opacity: 0.75; }
.aus-map .node circle { fill: var(--paper); stroke: var(--av-blue); stroke-width: 1.2; }
.aus-map .node text, .aus-map .hq text { font-family: var(--font-text); font-size: 6.5px; font-weight: 600; letter-spacing: 0.06em; fill: var(--text-dim); }
.aus-map .hq path { fill: var(--star-red); }
.aus-map .hq text { fill: var(--star-red); }
.map-note { margin-top: 10px; font-size: 0.85rem; color: var(--text-dim); letter-spacing: 0.03em; }

