/* ============================================================
   Tag Guard — Electrical Testing & Compliance, Perth WA
   Palette (per brief):
   Charcoal  #2F3A44  headings
   Forest    #2F6F4E  primary accent
   Gold      #C8A24A  CTAs / highlights
   Soft Grey #F5F6F7  section backgrounds
   Type: Barlow Condensed (display) / Inter (body) / IBM Plex Mono (tag data)
   ============================================================ */

:root {
  --charcoal: #2F3A44;
  --ink: #55616C;
  --forest: #2F6F4E;
  --forest-dark: #245A3F;
  --forest-tint: #EAF2ED;
  --gold: #C8A24A;
  --gold-dark: #AA8636;
  --grey: #F5F6F7;
  --line: #E3E7EA;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(47, 58, 68, 0.06), 0 8px 24px rgba(47, 58, 68, 0.07);
  --shadow-lift: 0 4px 12px rgba(47, 58, 68, 0.10), 0 12px 32px rgba(47, 58, 68, 0.12);
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--charcoal); color: #fff; padding: 0.6rem 1rem;
  z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  color: var(--charcoal);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { color: var(--charcoal); font-size: 1.05rem; }

.lede { font-size: 1.125rem; max-width: 62ch; }

/* Tag-shaped eyebrow — the signature motif (an appliance test tag) */
.tag-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--forest);
  background: var(--forest-tint);
  border: 1px solid rgba(47, 111, 78, 0.25);
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border-radius: 4px 999px 999px 4px;
  margin-bottom: 1rem;
}
.tag-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--forest); background: var(--white);
  flex: none;
}

/* ---------- Layout ---------- */
.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: 5rem 0; }
.section--grey { background: var(--grey); }
.section--tight { padding: 3.5rem 0; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { margin-top: 0.75rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; }
@media (max-width: 560px) { .logo img { height: 38px; } }
.footer-logo img { height: 44px; width: auto; margin-bottom: 1rem; opacity: 0.95; }

.main-nav ul { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.main-nav a {
  text-decoration: none; color: var(--charcoal); font-weight: 500; font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--forest); border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.5rem 0.65rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--charcoal); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 4%; }
  .main-nav li { border-bottom: 1px solid var(--grey); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 0.9rem 0.25rem; border-bottom: none; }
  .header-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.5rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { background: var(--gold-dark); color: var(--white); box-shadow: var(--shadow); }

.btn--forest { background: var(--forest); color: var(--white); }
.btn--forest:hover { background: var(--forest-dark); color: var(--white); box-shadow: var(--shadow); }

.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--forest); color: var(--forest); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 5.5rem; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
}
.hero h1 { margin: 0.75rem 0 1.25rem; max-width: 16ch; }
.hero .lede { font-size: 1.2rem; }
.hero-note {
  margin-top: 1.5rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
}
.hero-note svg { width: 18px; height: 18px; stroke: var(--forest); flex: none; }

/* The signature: a rendered appliance test tag */
.test-tag {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px 28px 28px 10px;
  box-shadow: var(--shadow-lift);
  padding: 1.75rem 1.75rem 1.75rem 3.25rem;
  position: relative;
  max-width: 400px;
  margin-inline: auto;
  transform: rotate(-2deg);
}
.test-tag::before {
  /* punched hole */
  content: ""; position: absolute; left: 1.1rem; top: 50%;
  width: 18px; height: 18px; transform: translateY(-50%);
  border-radius: 50%; background: var(--grey);
  border: 3px solid var(--charcoal);
}
.test-tag-band {
  position: absolute; inset: 0 auto 0 0; width: 10px;
  background: var(--forest); border-radius: 10px 0 0 10px;
}
.test-tag h2 {
  font-size: 1.4rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 1rem;
}
.test-tag dl {
  font-family: var(--mono); font-size: 0.8rem;
  display: grid; gap: 0.6rem;
}
.test-tag dt {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.62rem; color: var(--ink);
}
.test-tag dd { color: var(--charcoal); border-bottom: 1px dashed var(--line); padding-bottom: 0.35rem; }
.test-tag-stamp {
  margin-top: 1.15rem; display: inline-block;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--gold-dark); border: 2px solid var(--gold);
  padding: 0.3rem 0.7rem; border-radius: 6px; text-transform: uppercase;
  transform: rotate(-3deg);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.section--grey .card { border-color: transparent; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; }
.card .icon {
  width: 44px; height: 44px; margin-bottom: 1.1rem;
  color: var(--forest);
}
.card .icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; }
.card .std {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--forest); text-transform: uppercase; display: block; margin-top: 0.85rem;
}

/* Trust strip */
.trust-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2rem; }
@media (max-width: 860px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-list { grid-template-columns: 1fr; } }
.trust-list li {
  display: flex; align-items: flex-start; gap: 0.65rem; font-weight: 500; color: var(--charcoal);
}
.trust-list svg { width: 20px; height: 20px; stroke: var(--forest); flex: none; margin-top: 3px; }

/* Industries + areas pills */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-list li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.9rem; color: var(--charcoal);
}
.section--grey .pill-list li { border-color: transparent; box-shadow: 0 1px 3px rgba(47,58,68,0.08); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal); color: #D7DDE2;
  padding: 4rem 0; border-radius: 0;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: #C4CCD3; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.25rem 1.5rem;
  font-weight: 600; color: var(--charcoal);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--display); font-size: 1.5rem; color: var(--forest); flex: none;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.5rem 1.4rem; }
.faq-item .faq-body p + p { margin-top: 0.75rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.25rem; }
.form-field label {
  display: block; font-weight: 600; color: var(--charcoal);
  font-size: 0.9rem; margin-bottom: 0.4rem;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; color: var(--charcoal);
  padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid rgba(200, 162, 74, 0.5); border-color: var(--gold);
}
.form-note { font-size: 0.85rem; }
.form-status { font-weight: 600; margin-top: 0.75rem; }
.form-status.ok { color: var(--forest); }
.form-status.err { color: #A34141; }

/* Contact info cards */
.contact-line { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-line svg { width: 20px; height: 20px; stroke: var(--forest); flex: none; margin-top: 4px; }
.contact-line strong { color: var(--charcoal); display: block; }

.map-placeholder {
  background: var(--grey); border: 2px dashed var(--line); border-radius: var(--radius);
  min-height: 300px; display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-family: var(--mono); font-size: 0.85rem; text-align: center; padding: 1rem;
}

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin: 2.25rem 0 0.75rem; }
.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul { padding-left: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal); color: #B9C2CA; padding: 4rem 0 2rem; font-size: 0.92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--white); font-family: var(--body); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #B9C2CA; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem;
}
.footer-abn { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 4rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0.75rem 0 1rem; }
.page-hero .lede { max-width: 68ch; }

/* Steps (process) */
.step { position: relative; padding-left: 0; }
.step-num {
  font-family: var(--mono); color: var(--gold-dark); font-size: 0.75rem;
  letter-spacing: 0.15em; display: block; margin-bottom: 0.5rem;
}
