/* Nader Diesel Industries: shared styles. Mobile-first. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}

:root {
  /* Colours taken from the logo */
  --ink: #101112;                     /* black; the page itself uses the texture below */
  --texture: url("/assets/img/texture-black.webp");
  --panel: rgb(255 255 255 / 0.035);  /* translucent so the texture shows through */
  --panel-2: rgb(255 255 255 / 0.055);
  --line: #34383d;
  --cream: #f1e9de;        /* main text on dark (logo cream) */
  --muted: #b9b2a8;        /* secondary text on dark */
  --brand: #cc3d1d;        /* logo red: buttons (white text 4.9:1) */
  --brand-dark: #a93216;
  /* Logo red as text/icons on black is 3.8:1, which only passes for large or bold
     text. Use it for headings, labels and icons (1.2rem bold and up), not body text. */
  --accent: var(--brand);

  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --tap: 3rem;             /* 48px minimum tap target */
  --callbar-h: 4rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink) var(--texture) repeat;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  /* room for the sticky call bar on mobile */
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
}

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

a {
  color: var(--cream);
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 8vw, 4.25rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Highlighted placeholder: check-site.sh fails while any remain */
.todo {
  background: #fff3a0;
  color: #000;
  padding: 0 0.25em;
  font-weight: 700;
}

/* ---------- Hazard stripe ---------- */
.hazard {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--brand) 0 14px, var(--ink) 14px 28px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-call { background: var(--brand); color: #fff; }
.btn-call:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--ink); }
.btn-lg { font-size: 1.6rem; padding: 1rem 1.75rem; min-height: 3.75rem; }

/* ---------- Header ---------- */
.site-header { background: rgb(0 0 0 / 0.35); border-bottom: 1px solid var(--line); }

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--cream);
  text-decoration: none;
}
.brand img { width: 56px; height: 56px; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1;
  text-transform: uppercase;
  display: none;
}
.brand-name b { display: block; color: var(--accent); font-size: 1.5em; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { background: var(--brand-dark); color: #fff; }
.header-phone svg { width: 1.1em; height: 1.1em; }
.header-phone-label { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0.5rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cream);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.site-nav { display: none; border-top: 1px solid var(--line); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin-block: 0; padding-block: 0.5rem 1rem; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.5rem 0;
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 1.35rem;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Sticky call bar (mobile) ---------- */
.call-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--callbar-h);
  padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 -4px 16px rgb(0 0 0 / 0.4);
}
.call-bar:hover { background: var(--brand-dark); color: #fff; }
.call-bar svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 5rem); }
.section-dark { background: var(--panel); }
.section-intro { max-width: 44rem; margin-bottom: 2rem; }

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero { padding-block: 2rem 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.motto {
  margin: -0.1em 0 0.9em;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}
.motto-sm { font-size: 1.3rem; margin: 0 0 0.5em; }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.5rem; }
.hero-actions .btn { flex: 1 1 16rem; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 1rem;
}
.hero-facts li { display: flex; align-items: center; gap: 0.4rem; }
.hero-facts svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex: none; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; border-radius: var(--radius); }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px 0;
  height: 6px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: repeating-linear-gradient(-45deg, var(--brand) 0 14px, var(--ink) 14px 28px);
}

/* ---------- Emergency strip ---------- */
.emergency {
  background: var(--brand);
  color: #fff;
}
.emergency .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}
.emergency p { margin: 0; font-size: 1.15rem; }
.emergency strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.emergency .btn { background: #0b0b0c; color: #fff; }
.emergency .btn:hover { background: #000; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.card-body p { color: var(--muted); font-size: 1.05rem; }
.card h3 a { color: var(--cream); text-decoration: none; }
/* whole card is clickable via the heading link */
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card-more {
  margin-top: auto;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 1.2rem;
  text-transform: uppercase;
}
.card:hover { border-color: var(--accent); }
.card:hover h3 a { color: var(--accent); }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }

/* ---------- Audience list ---------- */
.audience {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.audience li {
  padding: 1.25rem;
  background: var(--panel-2);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
}
.audience h3 { font-size: 1.4rem; margin-bottom: 0.3em; }
.audience p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 1.5rem;
  background: var(--panel-2);
  border-radius: var(--radius);
  border-top: 4px solid var(--brand);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 2.5rem;
  line-height: 1;
}
.steps p { margin: 0; color: var(--muted); }

/* ---------- Area ---------- */
/* two columns: text + photo */
.split { display: grid; gap: 2rem; align-items: center; }
.split img { border-radius: var(--radius); }
.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.region-list li { display: flex; }
.region-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--cream);
  font-size: 1rem;
  text-decoration: none;
}
.region-list a:hover { border-color: var(--brand); color: #fff; }

/* ---------- Inner page hero + breadcrumb ---------- */
.page-hero { padding-block: 2rem 3rem; }
.page-hero .hero-actions { max-width: 40rem; }
.breadcrumb { margin-bottom: 1rem; color: var(--muted); font-size: 0.95rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Service area regions ---------- */
.regions { padding-block: 1rem 3rem; }
.region {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.region:last-child { border-bottom: 0; }
.region > p { max-width: 48rem; color: var(--muted); }
.suburbs-label {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 1.5rem 0 0.75rem;
}
.suburbs {
  columns: 2 10rem;
  column-gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.suburbs li {
  break-inside: avoid;
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
  font-size: 1.05rem;
}
.suburbs li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 0.45rem; height: 0.45rem;
  background: var(--brand);
}

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trust svg { width: 1.75rem; height: 1.75rem; flex: none; color: var(--accent); }
.trust strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.trust span { color: var(--muted); font-size: 1rem; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; }
.cta-final p { color: var(--muted); max-width: 36rem; margin-inline: auto; }
.cta-final .hero-actions { justify-content: center; max-width: 36rem; margin-inline: auto; }

.more-link { margin: 1rem 0 0; font-size: 1rem; }
.service-block { scroll-margin-top: 1rem; }
#about { scroll-margin-top: 1rem; }

/* ---------- Tick list ---------- */
.ticks { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0.35rem 0 0.35rem 1.9rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem; top: 0.7em;
  width: 0.5rem; height: 0.95rem;
  border: solid var(--brand);
  border-width: 0 0.2rem 0.2rem 0;
  transform: rotate(45deg);
}
.area-note { margin: 2rem 0 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
.contact-card {
  padding: 1.5rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
}
.contact-card .btn { width: 100%; }
.contact-urgent { color: var(--muted); }
.contact-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-block: 0.6rem;
  border-top: 1px solid var(--line);
  overflow-wrap: break-word;
  min-width: 0;
}
.contact-list svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.2rem; color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- Form ---------- */
.enquiry { display: grid; gap: 1.25rem; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label:not(.choice), .field legend {
  display: block;
  margin-bottom: 0.4rem;
  padding: 0;
  font-weight: 700;
}
.req { color: var(--accent); }
.optional { color: var(--muted); font-weight: 400; }
.help { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }
.enquiry input[type="text"], .enquiry input[type="tel"], .enquiry select, .enquiry textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.7rem 0.85rem;
  border: 2px solid #5a6068;
  border-radius: var(--radius);
  background: #0b0c0d;
  color: var(--cream);
  font: inherit;          /* 18px: stops iOS zooming into fields */
}
.enquiry textarea { resize: vertical; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { border-color: var(--cream); }
.enquiry input[type="file"] { width: 100%; font: inherit; font-size: 1rem; color: var(--muted); }
.enquiry input[type="file"]::file-selector-button {
  min-height: var(--tap);
  margin-right: 0.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--cream);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cream);
  font: inherit;
  cursor: pointer;
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap);
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: rgb(204 61 29 / 0.12); }
.enquiry button { width: 100%; }
.hp { display: none; }

/* ---------- FAQ ---------- */
.faq-list > * { max-width: 52rem; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq {
  margin-bottom: 0.75rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
}
.faq[open] summary::after { content: "\2212"; }
.faq summary h3 { margin: 0; font-size: 1.35rem; }
.faq p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq[open] { border-color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer {
  background: rgb(0 0 0 / 0.45);
  color: var(--muted);
  font-size: 1rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.site-footer h2 {
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a, .footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--cream);
  text-decoration: none;
}
.site-footer li a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brand); }
.footer-contact svg { width: 1.2rem; height: 1.2rem; color: var(--accent); flex: none; }
.footer-brand img { width: 96px; height: 96px; margin-bottom: 1rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.footer-legal p { margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 30em) {
  .brand-name { display: block; }
}

@media (min-width: 48em) {
  .header-phone-label { display: inline; }
  .hero { padding-block: 3.5rem 4.5rem; }
  .page-hero { padding-block: 3rem 4rem; }
  .suburbs { columns: 4 10rem; }
  .contact-grid { grid-template-columns: 22rem 1fr; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64em) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .menu-toggle { display: none; }
  .brand img { width: 72px; height: 72px; }
  .site-nav, .site-nav.is-open { display: block; }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.75rem;
    padding-block: 0;
  }
  .site-nav a { border-bottom: 0; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .header-phone, .call-bar { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}
