/* Nilfire website styles. Tokens first, then layout, then components. */
:root {
  --ink: #0E2235;
  --text: #465463;
  --muted: #52606E;
  --ground: #F2F5F8;
  --surface: #FFFFFF;
  --line: #D3DAE2;
  --placeholder: #DCE4EC;
  --accent: #0070B8;
  --accent-dark: #005A94;
  --navy: #004880;
  --sky: #B8E0F8;
  --dark: #0E2235;
  --dark-line: #24405C;
  --on-dark: #B9C8D6;
  --on-dark-strong: #FFFFFF;
  --radius: 6px;
  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) { .wrap { padding-left: 16px; padding-right: 16px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Utility bar */
.utility { background: var(--dark); color: #C6D3E0; font-size: 13px; }
.utility .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.utility a { color: var(--on-dark-strong); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .utility span { display: none; } .utility .wrap { justify-content: flex-end; } }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 4px; font-weight: 600; font-size: 15px; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle[open] .mobile-menu { display: flex; }
  .mobile-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 20px; box-shadow: 0 12px 24px rgba(14, 34, 53, .08); }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
  .mobile-menu .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 15px 24px; border-radius: 4px; border: 1.5px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-small { font-size: 15px; padding: 12px 20px; }
.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: var(--sky); color: var(--ink); }
.btn-outline-light { border-color: #FFFFFF; color: #FFFFFF; }
.btn-outline-light:hover { background: #FFFFFF; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.arrow-link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-white { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head h2 { font-weight: 800; font-size: clamp(32px, 4vw, 42px); line-height: 1.1; }
@media (max-width: 640px) { .section { padding-top: 64px; padding-bottom: 64px; } }

/* Hero */
.hero { background: var(--surface); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: stretch; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.hero p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text); max-width: 560px; }
.hero-media { flex: 1 1 460px; min-width: 0; min-height: 440px; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--placeholder); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .tag { position: absolute; left: 16px; bottom: 16px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .92); padding: 7px 12px; border-radius: 4px; }
@media (max-width: 640px) { .hero .wrap { padding-top: 40px; gap: 32px; } .hero-media { min-height: 280px; } }

/* Audience split */
.audiences { background: var(--surface); padding-bottom: 72px; }
.audiences .wrap { display: flex; flex-wrap: wrap; gap: 20px; }
.audience { flex: 1 1 420px; min-width: 0; color: #FFFFFF; text-decoration: none; border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.audience:hover { color: #FFFFFF; filter: brightness(1.08); }
.audience-bushfire { background: var(--accent); }
.audience-commercial { background: var(--navy); }
.audience .eyebrow { color: #FFFFFF; opacity: .9; }
.audience strong { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; }
.audience span.body { font-size: 17px; line-height: 1.55; max-width: 460px; }
.audience .go { margin-top: auto; padding-top: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .audience { padding: 28px; } .audience strong { font-size: 28px; } }

/* Credentials */
.credentials { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.credentials .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; padding-top: 32px; padding-bottom: 32px; }
.credential { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.credential strong { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.credential span { font-size: 14px; color: var(--muted); }

/* Product cards */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.product-card { flex: 1 1 210px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.product-card:hover { border-color: var(--accent); color: var(--ink); }
.product-card .ph { height: 170px; }
.product-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.product-card .family { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.product-card .name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.rating { font-family: var(--font-mono); font-size: 13px; background: var(--ground); padding: 4px 8px; border-radius: 3px; align-self: flex-start; }
.product-card .summary { font-size: 15px; line-height: 1.5; color: var(--text); }
.ph { background-color: var(--placeholder); background-image: repeating-linear-gradient(135deg, rgba(0, 72, 128, .06) 0 2px, transparent 2px 14px); }

/* Project cards */
.projects-grid { display: flex; flex-direction: column; gap: 28px; }
.projects-row { display: flex; flex-wrap: wrap; gap: 20px; }
.projects-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.project-card { min-width: 0; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.project-card:hover { color: var(--ink); }
.project-card:hover .title { color: var(--accent); }
.project-card img { width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }
.project-card .meta { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.project-card.commercial .meta { color: var(--navy); }
.project-card .title { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.project-card .summary { font-size: 14px; line-height: 1.5; color: var(--text); }
.project-card.feature { flex: 2 1 520px; }
.project-card.feature img { height: 440px; }
.project-card.feature .title { font-size: 24px; }
.project-card.feature .summary { font-size: 15px; max-width: 620px; }
.projects-side .project-card img { height: 180px; }
.project-card.half { flex: 1 1 380px; }
.project-card.half img { height: 280px; }
.project-card .text { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) { .project-card.feature img { height: 280px; } }

/* Testimonial */
.testimonial { background: var(--dark); color: #FFFFFF; }
.testimonial .wrap { max-width: 980px; padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }
.testimonial blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; }
.testimonial .mark { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: .6; color: var(--sky); }
.testimonial figcaption { font-size: 15px; color: var(--on-dark); }
.testimonial figure { margin: 0; display: flex; flex-direction: column; gap: 24px; }

/* Process */
.steps { display: flex; flex-wrap: wrap; border-top: 2px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.steps li { flex: 1 1 240px; padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.steps .num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.steps strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.steps span.body { font-size: 15px; line-height: 1.55; color: var(--text); }

/* Resource cards */
.resource { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.resource:hover { border-color: var(--accent); color: var(--ink); }
.resource.soft { background: var(--ground); border-color: transparent; }
.resource .kind { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.resource .title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.25; }
.resource .summary { font-size: 15px; line-height: 1.55; color: var(--text); }
.resource .go { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; }

/* CTA band */
.cta { background: var(--accent); color: #FFFFFF; }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta .copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.cta h2 { font-weight: 800; font-size: clamp(30px, 4vw, 38px); line-height: 1.1; }
.cta p { margin: 0; font-size: 17px; line-height: 1.5; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark); font-size: 14px; }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.site-footer .company { flex: 2 1 280px; display: flex; flex-direction: column; gap: 12px; }
.site-footer .company img { height: 48px; width: auto; align-self: flex-start; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer .strong { color: #FFFFFF; font-weight: 600; }
.site-footer nav { flex: 1 1 150px; display: flex; flex-direction: column; gap: 10px; }
.site-footer nav .heading { font-weight: 600; color: #FFFFFF; }
.site-footer .bottom { border-top: 1px solid var(--dark-line); padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }

/* Page header (inner pages) */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-weight: 800; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.page-head p { margin: 0; font-size: 18px; color: var(--text); max-width: 720px; }
.breadcrumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }

/* Project detail */
.project-layout { display: flex; flex-wrap: wrap; gap: 48px; }
.project-body { flex: 2 1 520px; min-width: 0; font-size: 17px; line-height: 1.7; color: var(--text); }
.project-body p:first-child { margin-top: 0; }
.project-facts { flex: 1 1 280px; min-width: 0; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.project-facts dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.project-facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.project-facts dd { margin: 2px 0 0; font-weight: 600; }
.project-cover { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 48px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* 404 */
.not-found { padding-top: 120px; padding-bottom: 120px; text-align: left; }
.not-found h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.not-found p { color: var(--text); font-size: 18px; max-width: 560px; }
