/* ==========================================================================
   BCA Consultants — bcareport.com.au
   Design tokens + components. Single stylesheet, no build step.
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #123252;
  --navy-hover:  #1a4470;
  --navy-deep:   #0d2439;
  --gold:        #8a6d2f;

  /* Text */
  --ink:         #101c29;
  --body:        #17202b;
  --text:        #3c4a5a;
  --muted:       #5a6879;
  --faint:       #8593a3;
  --link:        #1a5fa8;
  --on-navy:     #b9c7d6;
  --on-navy-lnk: #dfe7ee;

  /* Surfaces */
  --bg:          #f6f7f9;
  --card:        #ffffff;
  --card-alt:    #fbfcfd;
  --line:        #e3e7ec;
  --line-soft:   #edf0f4;
  --border:      #c6cfd9;

  /* Type */
  --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --gutter: clamp(20px, 5vw, 72px);

  /* Elevation & shape */
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow:    0 1px 2px rgba(16, 28, 41, 0.04);
}

/* --- Base ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

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

h1, h2, h3 {
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; color: #fff; }

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

/* --- Layout -------------------------------------------------------------- */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

/* Full-bleed bands (nav, footer) whose content still aligns to the container */
.bleed { padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }

/* --- Typography ---------------------------------------------------------- */

.eyebrow {
  display: block;
  font-size: 13px;
  line-height: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 12px;
}

.page-title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin-left: -0.052em; /* optical alignment of the leading cap */
}

.lede {
  font-size: 16px;
  line-height: 24px;
  max-width: 60ch;
  margin: 24px 0 0;
  color: var(--text);
}

.prose { font-size: 15px; line-height: 24px; margin: 0; color: var(--text); }
.prose + .prose { margin-top: 18px; }

.rule { height: 1px; border: 0; margin: 0 0 12px; background: var(--line); }

.cta-link { font-size: 15px; font-weight: 600; margin: 20px 0 0; }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-hover); color: #fff; }

.btn--outline {
  background: var(--card);
  color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 11px 26px;
}
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }

.btn--on-navy { background: #fff; color: var(--navy); }
.btn--on-navy:hover { background: #e8edf3; color: var(--navy); }

.btn--ghost-on-navy {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 11px 26px;
}
.btn--ghost-on-navy:hover { border-color: #fff; color: #fff; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Nav ----------------------------------------------------------------- */

.nav {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 8px;
}

.nav__brand {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  margin-right: auto;
}
.nav__brand:hover { text-decoration: none; color: var(--navy); }

.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.nav__link:hover { color: var(--navy); text-decoration: none; }
.nav__link[aria-current="page"] { font-weight: 600; color: var(--navy); }

.nav__cta {
  background: var(--navy);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav__cta:hover { background: var(--navy-hover); color: #fff; text-decoration: none; }

@media (max-width: 560px) {
  .nav { gap: 16px 18px; }
  .nav__brand { margin-right: 0; flex-basis: 100%; }
}

/* --- Hero (home) --------------------------------------------------------- */

.hero { position: relative; background: var(--bg); overflow: hidden; }

.hero__media {
  position: absolute;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1920px;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) sepia(0.18) saturate(1.6) contrast(1.15) brightness(1.05);
  opacity: 0.6;
}
/* Desaturates the photo everywhere except a soft focal ellipse */
.hero__desat {
  position: absolute;
  inset: 0;
  backdrop-filter: grayscale(1) contrast(0.87) brightness(0.95);
  -webkit-backdrop-filter: grayscale(1) contrast(0.87) brightness(0.95);
  -webkit-mask-image: radial-gradient(ellipse 18% 60% at 70% 33%, transparent 45%, #000 95%);
  mask-image: radial-gradient(ellipse 18% 60% at 70% 33%, transparent 45%, #000 95%);
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(246, 247, 249, 0.90) 0%,
    rgba(246, 247, 249, 0.60) 45%,
    rgba(246, 247, 249, 0.12) 75%,
    rgba(246, 247, 249, 0.02) 100%);
  pointer-events: none;
}
/* Gutter fills for viewports wider than the 1920px image */
.hero__edge { position: absolute; top: 0; bottom: 0; width: max(0px, calc(50% - 960px)); pointer-events: none; }
.hero__edge--l { left: 0; background: #edeef0; }
.hero__edge--r { right: 0; background: #e1e1e3; }

.hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter) 72px;
}

.hero__title {
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin-left: -0.052em;
}
.hero__title span { display: block; }

.hero__lede { margin-top: 32px; }
.hero .btn-row { margin-top: 24px; }

@media (max-width: 640px) {
  .hero__inner { padding-top: 56px; padding-bottom: 48px; }
}

/* --- Cards --------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card--pad { padding: 24px 28px; }
.card--flush { overflow: hidden; }

.card__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.card__title { font-size: 22px; line-height: 24px; }

.card__body { font-size: 15px; line-height: 24px; margin: 12px 0 0; color: var(--muted); }

/* --- Panel header strip -------------------------------------------------- */

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--card-alt);
}
.panel-head__main,
.panel-head__meta {
  padding: 12px 28px;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.panel-head__main { flex: 1; min-width: 16ch; color: var(--navy); }
.panel-head__meta { border-left: 1px solid var(--line); white-space: nowrap; color: var(--faint); }

@media (max-width: 700px) {
  .panel-head__meta { border-left: 0; border-top: 1px solid var(--line); flex-basis: 100%; }
}

/* --- Service index rows (home) ------------------------------------------- */

.srow {
  display: grid;
  grid-template-columns: 64px minmax(180px, 3fr) minmax(260px, 7fr) max-content;
  align-items: baseline;
  column-gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line-soft);
}
.srow:last-child { border-bottom: 0; }

.srow__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-feature-settings: "tnum" 1;
}
.srow__title { font-size: 22px; line-height: 24px; }
.srow__body { font-size: 15px; line-height: 24px; margin: 0; color: var(--muted); }
.srow__link { font-size: 14px; font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .srow {
    grid-template-columns: 44px 1fr;
    align-items: start;
    row-gap: 10px;
  }
  .srow__body,
  .srow__link { grid-column: 2; }
}

/* --- Split section (what-is, service detail) ----------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(24px, 5vw, 96px);
  align-items: start;
}
.split--pad { padding: 28px; gap: 24px clamp(24px, 4vw, 72px); }
.split__title { font-size: 32px; line-height: 36px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* --- Media placeholder (awaiting real photography) ----------------------- */

.media {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
  background: var(--bg);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

.media--empty {
  display: grid;
  place-items: center;
  text-align: center;
  border: 1.5px dashed var(--border);
  color: var(--faint);
  font-size: 13px;
  line-height: 20px;
  padding: 16px;
}

/* --- Sections ------------------------------------------------------------ */

.section { padding: 0 0 60px; }
.section--hero { padding: 72px 0 48px; }
.section--anchor { scroll-margin-top: 80px; }
.section--what { padding: 36px 0 24px; }
.section--trust { padding: 0 0 72px; }
.section--testimonials { padding: 48px 0 24px; }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.placeholder-note {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 24px;
  color: var(--faint);
}

/* --- Contact CTA band ---------------------------------------------------- */

.cta {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px);
  margin: 48px 0 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
}
.cta--tight { margin-top: 24px; }
.cta--flush { margin-top: 0; }
.cta__text { flex: 1; min-width: 280px; }
.cta__title { font-size: 30px; line-height: 32px; color: #fff; }
.cta__body { font-size: 15px; line-height: 24px; margin: 12px 0 0; max-width: 52ch; color: var(--on-navy); }

/* --- FAQ ----------------------------------------------------------------- */

.faq-list { padding: 0 0 64px; display: flex; flex-direction: column; gap: 14px; }

.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 28px;
}
.faq__q {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 22px;
  line-height: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg) translateY(-25%);
  transition: transform 0.18s ease;
}
.faq[open] .faq__q::after { transform: rotate(-135deg) translateY(-25%); }
.faq__a { font-size: 15px; line-height: 24px; margin: 0; padding: 0 0 24px; color: var(--text); }

/* --- Contact form -------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(24px, 4vw, 64px);
  padding: 0 0 80px;
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 560px) { .form__pair { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--body);
  background: var(--card);
  width: 100%;
  min-width: 0;
}
.field textarea { line-height: 24px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); }

.form__submit { align-self: flex-start; padding: 13px 30px; }

.form-status {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 32px;
  text-align: center;
}
.form-status h2 { font-size: 28px; line-height: 32px; }
.form-status p { font-size: 15px; line-height: 24px; margin: 12px 0 0; color: var(--muted); }
.form-status .btn { margin-top: 24px; }

.aside-stack { display: flex; flex-direction: column; gap: 14px; }

/* --- Footer -------------------------------------------------------------- */

.footer {
  background: var(--navy-deep);
  color: var(--on-navy);
  padding-block: 40px;
  font-size: 13px;
  line-height: 24px;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; }
.footer__brand {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.footer__links { display: flex; gap: 24px; margin-left: auto; }
.footer__links a { color: var(--on-navy-lnk); }
.footer__links a:hover { color: #fff; }

@media (max-width: 620px) {
  .footer__links { margin-left: 0; }
}

/* --- Utility ------------------------------------------------------------- */

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

/* --- Section spacing variants -------------------------------------------- */

.section--hero-tight { padding: 72px 0 40px; }
.section--hero-404   { padding: 72px 0 64px; }

/* Service detail panels stack with a tighter rhythm than .section */
.section--svc       { padding: 0 0 36px; }
.section--svc-first { padding: 24px 0 36px; }
.section--svc-last  { padding: 0 0 48px; }

.split--offset { padding-top: 12px; }

.btn-row--spaced { margin-top: 24px; }

.cta--end { margin-bottom: 80px; }

/* --- Form messaging ------------------------------------------------------ */

.form__error { color: #b3261e; }
.form__error:not([hidden]) { display: block; }

.placeholder-text { color: var(--faint); }

/* The what-is column sets its paragraphs a little looser than panel copy */
.prose--loose + .prose--loose { margin-top: 24px; }
