/* Certified Homes Australia: dark base, silver type, blue accents */
:root {
  --bg: #07090d;
  --paper: #07090d;
  --panel: #0f131a;
  --soft: #141a23;
  --line: #222b38;
  --ink: #eef2f6;
  --muted: #9aa5b4;
  --silver: #c9d0d8;
  --black: #05070a;
  --accent: #2f6fe6;
  --accent-2: #6aa6ff;
  --accent-ink: #ffffff;
  --radius: 18px;
  --max: 1200px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, #2f6fe6 0%, #1c4fb8 100%);
  --silver-grad: linear-gradient(120deg, #ffffff 0%, #c9d0d8 45%, #8d96a3 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 111, 230, 0.18), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-2); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 10, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img.logo { height: 46px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.93rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: #fff; background: rgba(47, 111, 230, 0.22); }
.nav a.nav-cta { background: var(--grad); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { filter: brightness(1.1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: var(--accent-ink);
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(47, 111, 230, 0.35);
  transition: transform 0.15s, filter 0.2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--silver);
  border: 1px solid rgba(201, 208, 216, 0.4);
  box-shadow: none;
}
.btn-outline:hover { border-color: var(--silver); color: #fff; }

/* Type */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); color: #fff; margin-bottom: 14px; }
h3 { font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 700px; }
.disclaimer { font-size: 0.85rem; color: var(--muted); }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Sections */
section { padding: 96px 0; position: relative; }
section.alt { background: linear-gradient(180deg, var(--panel), var(--bg)); }
section.band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; max-width: 760px; }

/* Modular line art behind the hero. It fades out to the left so the headline stays clear */
.art-hero { position: relative; overflow: hidden; isolation: isolate; }
.art-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/art/modular-lines.svg") 78% 40% / 1400px auto no-repeat;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 42%, #000 62%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 42%, #000 62%, #000 92%, transparent 100%);
  pointer-events: none;
}
.art-hero > .wrap, .art-hero > .wrap * { position: relative; }

/* Hero */
.hero { padding: 88px 0 72px; overflow: hidden; }
.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero .lead { margin: 22px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 1.6rem; color: #fff; }
.hero-stats span { font-size: 0.85rem; color: var(--muted); }

/* Photo collage used as the hero visual */
.collage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 540px;
}
.collage figure {
  position: relative;
  margin: 0;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--soft);
}
.collage figure img { width: 100%; height: 100%; object-fit: cover; }
.collage figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(5, 7, 10, 0.78);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.collage .c1 { grid-row: 1 / span 2; }
@media (max-width: 760px) {
  .art-hero::before { display: none; }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; height: auto; margin-top: 8px; }
  .collage figure { aspect-ratio: 1 / 1; }
  .collage .c1 { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .hero-grid { gap: 36px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats span { font-size: 0.78rem; }
}
@media (max-width: 560px) {
  .collage { grid-template-rows: 240px 180px; gap: 10px; }
  .collage figcaption { font-size: 0.75rem; }
}

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(800px 360px at 10% 0%, rgba(47,111,230,0.2), transparent 60%), var(--bg); }
.page-hero .lead { margin-top: 18px; }

/* Cards */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(47, 111, 230, 0.15); }
.card .tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-weight: 700;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .more { margin-top: auto; color: var(--silver); font-size: 0.9rem; font-weight: 600; }

/* Model tiles with photos */
.model-card { padding: 0; overflow: hidden; }
.model-card .thumb { border-radius: 0; aspect-ratio: 4 / 3; }
.model-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.model-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Photo box. Shows the photo if one loads, otherwise a branded placeholder */
.thumb {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120px 80px at 70% 30%, rgba(47,111,230,0.25), transparent 70%),
    linear-gradient(160deg, #161d28, #0b0f15);
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb span { position: relative; }

/* Steps list (home page process) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 22px 80px;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.steps p { margin: 4px 0 0; color: var(--muted); }
.steps-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step-tile .n { font-size: 0.8rem; color: var(--accent-2); font-weight: 700; letter-spacing: 0.12em; }
.step-tile h3 { margin: 12px 0 8px; }
.step-tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 36px; }
.filters button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--silver);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.filters button:hover { border-color: var(--silver); color: #fff; }
.filters button[aria-pressed="true"] {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* Product page */
.product { display: grid; gap: 48px; padding: 56px 0 64px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .product { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.product .gallery { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.product .gallery .thumb { border-radius: 0; aspect-ratio: 4 / 3; }
.spec-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: sticky;
  top: 100px;
}
.facts { list-style: none; padding: 0; margin: 20px 0 28px; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { color: #fff; font-weight: 600; }

/* Forms */
form.quote { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--silver); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0d12;
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.field textarea { min-height: 120px; resize: vertical; }
.row { display: grid; gap: 16px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--soft);
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
  color: var(--ink);
}
.notice.show { display: block; }
.notice.error { border-left-color: #e5484d; }

/* Trust and lists */
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--silver); font-size: 0.95rem; }
.trust li::before { content: "✓ "; color: var(--accent-2); font-weight: 800; }
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* CTA band */
.cta {
  background: linear-gradient(120deg, #13244a, #0b1220 60%);
  border: 1px solid rgba(47, 111, 230, 0.35);
  border-radius: 24px;
  padding: 56px 40px;
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow);
}
@media (min-width: 800px) { .cta { grid-template-columns: 1fr auto; padding: 64px 56px; } }
.cta h2 { margin: 0; }
.cta p { margin: 10px 0 0; color: var(--silver); }

/* Footer */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr; } }
.site-footer img { height: 52px; width: auto; margin-bottom: 14px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; }
.site-footer nav a { color: var(--silver); text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; font-size: 0.82rem; }

/* Menu button: hidden on desktop, shown on phones */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  display: block;
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle .bars { top: 21px; }
.menu-toggle .bars::before { content: ""; top: -6px; left: 0; }
.menu-toggle .bars::after { content: ""; top: 6px; left: 0; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Mobile */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 4px 0 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1rem; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .site-header .wrap { min-height: 68px; }
  .brand img.logo { height: 38px; }
  .nav a { padding: 8px 10px; font-size: 0.88rem; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hero-stats strong { font-size: 1.2rem; }
  .spec-panel { position: static; }
  .cta { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .btn { padding: 13px 20px; font-size: 0.95rem; }
}
