/* Barrack Electrical - shared stylesheet for every page.
   Matches the current barrackelectrical.com.au design (Josh, 11 Sep 2026): Anton headings, Inter body,
   photo heroes with a 50% black overlay, black / white / light-grey bands, square grey buttons,
   grey service cards, floating call / SMS / email buttons.
   Contrast checked: #000 on #BFBFBF 11.4:1, #212020 on #DEDEDE 12.1:1, #fff on 50% black overlay >= 7:1 on the hero photos used,
   #555 on #fff 7.5:1, #111 on #FFD500 13.9:1. */

:root {
  --black: #000000;
  --ink: #212020;
  --white: #ffffff;
  --grey-btn: #bfbfbf;
  --grey-card: #dedede;
  --grey-soft: #f2f2f2;
  --grey-text: #555555;
  --line: #8d8d8d;
  --yellow: #ffd500;
  --display: Anton, Impact, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--black); }

.skip { position: absolute; left: 0.5rem; top: -5rem; background: var(--yellow); color: var(--black); padding: 0.75rem 1rem; font-weight: 700; z-index: 200; }
.skip:focus { top: 0.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 50rem; }
.center { text-align: center; }
.center .narrow, .center.narrow { margin-left: auto; margin-right: auto; }

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 7.5vw, 4rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h4 { font-family: var(--body); font-size: 1.0625rem; font-weight: 700; margin: 1.25rem 0 0.375rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.1875rem; }
.eyebrow { font-family: var(--body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.75rem; }
.muted { color: var(--grey-text); }

/* ---------- Buttons: square, uppercase, as on the current site ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.875rem 1.5rem;
  font-family: var(--body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer; line-height: 1.2;
  background: var(--grey-btn); color: var(--black);
}
.btn:hover { background: #d4d4d4; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2b2b2b; }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.center .btn-row { justify-content: center; }
.text-link { font-weight: 600; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.03em; }

/* ---------- Header: transparent over the hero photo ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: var(--white); }
.site-header.solid { position: relative; background: var(--black); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 150px; height: auto; }
.header-nav { display: flex; align-items: center; gap: 0.5rem; }
.header-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.5rem; }
.header-links a { font-family: var(--display); font-size: 1.125rem; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.header-links a:hover, .header-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-cta { display: none; }

.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-width: 48px; min-height: 48px; padding: 0 0.875rem; background: rgba(0,0,0,0.35);
  border: 2px solid var(--white); color: var(--white);
  font-family: var(--display); font-size: 1.125rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(24rem, calc(100vw - 2.5rem));
  max-height: calc(100vh - 7rem); overflow-y: auto; background: var(--white); color: var(--black);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35); padding: 1rem;
}
.menu-panel p { margin: 1rem 0 0.25rem; font-family: var(--display); font-size: 1.25rem; }
.menu-panel p:first-child { margin-top: 0; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 0.5rem; text-decoration: none; font-size: 1rem; }
.menu-panel a:hover { background: var(--grey-soft); }
.menu-panel a[aria-current="page"] { font-weight: 700; box-shadow: inset 4px 0 0 var(--black); }
.menu-panel .all { font-weight: 600; text-decoration: underline; }

/* ---------- Hero: full-bleed photo, 50% black overlay, white centred text ---------- */
.hero { position: relative; color: var(--white); background: var(--black); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.hero-inner { position: relative; padding: 7.5rem 0 3rem; text-align: center; }
.hero h1 { color: var(--white); max-width: 58rem; margin-left: auto; margin-right: auto; }
.hero .sub { font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2.25rem); line-height: 1.15; margin: -0.25rem auto 1rem; max-width: 50rem; }
.hero .lede { max-width: 46rem; margin: 0 auto; font-size: 1.0625rem; }
.hero .btn-row { justify-content: center; margin-top: 1.5rem; }
.hero-note { margin: 1rem auto 0; font-size: 0.9375rem; max-width: 40rem; }
.hero-note a { color: var(--white); }
.breadcrumb { font-size: 0.875rem; margin: 0 0 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.25rem; opacity: 0.7; }
.breadcrumb a { color: var(--white); }

/* ---------- Bands ---------- */
section { padding: 3.5rem 0; }
.sec-dark { background: var(--black); color: var(--white); }
.sec-dark a { color: var(--white); }
.sec-grey { background: var(--grey-card); }
.sec-soft { background: var(--grey-soft); }
.section-head { text-align: center; max-width: 52rem; margin: 0 auto 2rem; }

/* Proof strip */
.proof { background: var(--black); color: var(--white); border-top: 1px solid #333; padding: 0; }
.proof ul { list-style: none; margin: 0; padding: 1.25rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; text-align: center; }
.proof strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.proof span { font-size: 0.875rem; color: #d6d6d6; }
.proof a { color: #fff; }

/* Cards, as on the current site */
.grid { display: grid; gap: 1.25rem; }
.card { background: var(--grey-card); padding: 1.5rem; }
.card h3 { margin-bottom: 0.75rem; }
.card p:last-child { margin-bottom: 0; }
.sec-grey .card { background: var(--white); }
.card .icon { width: 64px; height: 64px; border: 2px solid var(--black); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card .icon svg { width: 36px; height: 36px; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { outline: 2px solid var(--black); outline-offset: -2px; }
.read-more { display: inline-block; margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; text-decoration: underline; letter-spacing: 0.03em; }
.card ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.card li { margin-bottom: 0.25rem; }

.split { display: grid; gap: 2rem; align-items: center; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

.local-fact { border-left: 8px solid var(--black); background: var(--grey-soft); padding: 1.5rem 1.5rem 0.5rem; }
.sec-grey .local-fact { background: var(--white); }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.75rem; height: 0.75rem; background: var(--black); }
.sec-dark .checklist li::before { background: var(--yellow); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3.5rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.2rem; width: 2.5rem; height: 2.5rem; background: var(--black); color: var(--white); font-family: var(--display); font-size: 1.375rem; display: flex; align-items: center; justify-content: center; }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 0 1.5rem; }
.stat { background: var(--black); color: var(--white); padding: 1rem; text-align: center; }
.stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.25rem; line-height: 1; }
.stat span { font-size: 0.875rem; }

/* FAQ */
.faq details { border-bottom: 1px solid #c8c8c8; }
.faq summary { cursor: pointer; list-style: none; position: relative; min-height: 48px; padding: 1rem 2.25rem 1rem 0; font-weight: 700; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.6rem; font-family: var(--display); font-size: 1.75rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1rem; }
.faq h2 { text-align: center; }

/* Reviews */
.review { margin: 0; background: var(--white); padding: 1.5rem; border-left: 8px solid var(--black); }
.review p { font-size: 1.0625rem; }
.review footer { font-family: var(--display); font-size: 1.25rem; }
.review footer span { display: block; font-family: var(--body); font-size: 0.875rem; color: var(--grey-text); }
.stars { color: var(--yellow); letter-spacing: 0.1em; }

/* Photos */
figure { margin: 0; }
figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--grey-card); }
figcaption { font-size: 0.875rem; color: var(--grey-text); margin-top: 0.5rem; }
.sec-dark figcaption { color: #d6d6d6; }
.placeholder { border: 3px dashed var(--line); background: repeating-linear-gradient(45deg, #fafafa, #fafafa 10px, #efefef 10px, #efefef 20px); padding: 1rem; color: var(--ink); font-size: 0.9375rem; }
.placeholder strong { display: block; color: var(--black); }

.badges { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; }
.badges img { height: 88px; width: auto; }

.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; background: var(--white); border: 2px solid var(--black); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.link-list a:hover { background: var(--black); color: var(--white); }
.sec-dark .link-list a { background: transparent; border-color: var(--white); }
.link-list a.minor { border-width: 1px; border-color: var(--line); font-weight: 400; min-height: 44px; padding: 0 0.8rem; background: transparent; }
.link-list a.minor:hover { border-color: var(--black); background: var(--white); color: var(--black); }
.plain-list { columns: 2; column-gap: 1.5rem; padding-left: 1.1rem; }

/* Tagline band */
.tagline-band { background: var(--black); color: var(--white); text-align: center; }
.tagline-band h2 { max-width: 52rem; margin: 0 auto 1rem; }
.tagline-band p { max-width: 46rem; margin: 0 auto; }

/* Call to action band */
.cta-band { background: var(--grey-card); text-align: center; }
.cta-band p { max-width: 42rem; margin: 0 auto 1.25rem; }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.375rem; }
.field .hint { display: block; font-weight: 400; font-size: 0.875rem; color: var(--grey-text); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 0.625rem 0.75rem; font: inherit; color: var(--black); background: var(--white); border: 2px solid var(--line); border-radius: 0; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--black); }
.hp-field { position: absolute; left: -9999px; }

/* Footer, as on the current site */
.site-footer { background: radial-gradient(ellipse at 20% 0%, #2a2a2a 0%, #000 60%); color: var(--white); padding: 3.5rem 0 7rem; font-size: 0.9375rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
.footer-tagline { font-family: var(--display); font-size: 1.75rem; line-height: 1.15; margin: 1.25rem 0; max-width: 20rem; }
.footer-col h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-col li a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid #333; margin-top: 2rem; padding-top: 1.25rem; font-size: 0.8125rem; color: #cfcfcf; }
.footer-legal p { margin-bottom: 0.375rem; }
.socials { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.socials a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* Floating contact buttons, as on the current site */
/* Phones: a labelled two-button bar instead of the unlabelled circles (Josh, 12 Sep 2026).
   The header scrolls away, so this is the only thing on screen that opens the form or rings us. */
.callbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 101; gap: 0.5rem; padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,0.18); }
.callbar a { flex: 1 1 0; min-height: 56px; justify-content: center; text-align: center; }
.fab { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--black); color: var(--white); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.fab a.fab-call { width: 64px; height: 64px; background: var(--yellow); color: var(--black); }
.fab svg { width: 24px; height: 24px; fill: currentColor; }
/* Phones get the labelled bar; the circles are for desktop only. */
@media (max-width: 64rem) {
  .callbar { display: flex; }
  .fab { display: none; }
  body { padding-bottom: 5rem; }
}

@media (min-width: 40rem) {
  .proof ul { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .plain-list { columns: 3; }
}
@media (min-width: 64rem) {
  .header-links { display: flex; }
  .header-cta { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.2fr 1fr; gap: 3.5rem; }
  .split.reverse > :first-child { order: 2; }
  .hero-inner { padding: 10rem 0 5rem; }
  section { padding: 5rem 0; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .plain-list { columns: 4; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .card, .link-list a { transition: background-color .15s, color .15s, outline-color .15s; } }
/* ---------- Visual storytelling ---------- */
.story-card h3 { margin: 1rem 0 0.5rem; }
.story-card p { margin-bottom: 0.5rem; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 50%; background: #3a3a3a; }
/* Shape rules: headshots and tall subjects keep their faces and plates in frame. */
.shot.headshot img { aspect-ratio: 4 / 5; object-position: 50% 12%; }
.shot.portrait img { aspect-ratio: 4 / 5; object-position: 50% 50%; }
.shot.focus-top img { object-position: 50% 22%; }
.shot.focus-bottom img { object-position: 50% 92%; }
.hero-bg.focus-top img, .hero-bg.headshot img { object-position: 50% 18%; }
.hero-bg.focus-bottom img { object-position: 50% 90%; }
.hero-bg.focus-center img { object-position: 50% 50%; }
.hero-bg.focus-left img { object-position: 22% 50%; }
.hero-bg.focus-right img { object-position: 80% 50%; }
/* Only shown in SHOW_PLACEHOLDERS mode, for the crew's shot list. Never on the live site. */
.photo-brief { font-size: 0.75rem; line-height: 1.4; color: #333; background: #fff4b8; border: 1px dashed #a88c00; padding: 0.375rem 0.5rem; margin-top: 0.375rem; }
/* A row or card with no photo uses the full width instead of leaving a gap. */
.split:not(:has(figure)) { grid-template-columns: 1fr; }
/* Buttons on dark grounds: the footer button is white, so its label must be black. */
.site-footer a.btn { color: var(--black); }
/* A black button disappears against a dark hero photo, so outline it in white there. */
.hero .btn-dark, .sec-dark .btn-dark { background: transparent; border: 2px solid var(--white); color: var(--white); }
.hero .btn-dark:hover, .sec-dark .btn-dark:hover { background: rgba(255,255,255,0.16); }
.row { margin-bottom: 3rem; }
.row:last-child { margin-bottom: 0; }
.row h3 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
.steps-row li h3 { margin-bottom: 0.5rem; }
.sec-dark .steps li::before { background: var(--yellow); color: var(--black); }
.area-block { margin-bottom: 2rem; }
.area-block h3 { margin-bottom: 0.75rem; }
.area-block h3 a { text-decoration: none; }
.small { font-size: 0.8125rem; color: #cfcfcf; margin: 0; }
.callback .field label { color: var(--white); }
.callback .field .hint { color: #d6d6d6; }
.callback .btn { width: 100%; }

@media (min-width: 64rem) {
  .steps-row { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .callback .btn { width: auto; }
}
@media print { .site-header, .fab, .cta-band, .callback { display: none; } }

/* ---------- Call to action band: the next step, right where the problem has been recognised ---------- */
.cta-band { background: var(--yellow); color: var(--black); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.cta-band h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 0.25rem; }
.cta-band p { margin: 0; font-size: 1.0625rem; max-width: 34rem; }
.cta-band .btn { background: var(--black); color: var(--white); }
.cta-band .btn:hover { background: #2b2b2b; }
.cta-band .btn-dark { background: transparent; border: 2px solid var(--black); color: var(--black); }
.cta-band .btn-dark:hover { background: rgba(0,0,0,0.08); }
@media (max-width: 40rem) { .cta-band .btn-row, .cta-band .btn { width: 100%; } }
/* Third-party proof beside the decision, not three screens away. */
.form-proof { margin: 0.75rem 0 0; font-size: 0.9375rem; }
.form-proof .stars { color: var(--yellow); letter-spacing: 0.05em; }
.form-proof a { color: inherit; }
