/* ==========================================================================
   Wollongong Mould Removal Masters — Component Library
   Design language: coastal-clinical. Deep teal (trust, remediation, clean
   air) paired with a terracotta accent (Illawarra escarpment warmth) on a
   warm paper ground. Avoids the generic "medical blue" cliché while still
   reading clean / trustworthy / health-focused.
   ========================================================================== */

:root {
  /* ---- Color tokens ---- */
  --bc-primary: #0F5C4F;
  --bc-primary-dark: #0A3F37;
  --bc-primary-light: #1D8A76;
  --bc-primary-tint: #E4EFEC;

  --bc-accent: #C2551F;
  --bc-accent-dark: #9A4118;
  --bc-accent-light: #F4A868;
  --bc-accent-tint: #FBEAE0;

  --bc-paper: #F7F5EF;
  --bc-paper-alt: #EFEAE0;
  --bc-white: #FFFFFF;

  --bc-ink: #16241F;
  --bc-ink-soft: #3E4F49;
  --bc-ink-faint: #5A6A64;

  --bc-line: #D8D2C2;
  --bc-line-dark: #2A3A34;

  --bc-success: #1D8A47;
  --bc-danger: #B3261E;

  /* ---- Type ---- */
  --bc-font-heading: "Outfit", "Segoe UI", Avenir, "Trebuchet MS", sans-serif;
  --bc-font-body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bc-fs-h1: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --bc-fs-h2: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --bc-fs-h3: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --bc-fs-h4: 1.25rem;
  --bc-fs-lede: 1.2rem;
  --bc-fs-body: 1.0625rem;
  --bc-fs-small: 0.875rem;
  --bc-fs-eyebrow: 0.8125rem;

  --bc-lh-tight: 1.15;
  --bc-lh-heading: 1.25;
  --bc-lh-body: 1.65;

  /* ---- Space scale ---- */
  --bc-sp-1: 0.25rem;
  --bc-sp-2: 0.5rem;
  --bc-sp-3: 0.75rem;
  --bc-sp-4: 1rem;
  --bc-sp-5: 1.5rem;
  --bc-sp-6: 2rem;
  --bc-sp-7: 3rem;
  --bc-sp-8: 4rem;
  --bc-sp-9: 6rem;

  /* ---- Misc ---- */
  --bc-radius-sm: 6px;
  --bc-radius-md: 12px;
  --bc-radius-lg: 20px;
  --bc-shadow-sm: 0 1px 3px rgba(15, 31, 26, 0.08), 0 1px 2px rgba(15, 31, 26, 0.06);
  --bc-shadow-md: 0 8px 24px rgba(15, 31, 26, 0.12);
  --bc-shadow-lg: 0 20px 48px rgba(15, 31, 26, 0.18);
  --bc-container-w: 1180px;
  --bc-transition: 180ms ease;
}

/* ==========================================================================
   Base / reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bc-paper);
  color: var(--bc-ink);
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-body);
  line-height: var(--bc-lh-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 {
  font-family: var(--bc-font-heading);
  color: var(--bc-ink);
  line-height: var(--bc-lh-heading);
  margin: 0 0 var(--bc-sp-4);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--bc-fs-h1); line-height: var(--bc-lh-tight); }
h2 { font-size: var(--bc-fs-h2); }
h3 { font-size: var(--bc-fs-h3); }
h4 { font-size: var(--bc-fs-h4); }
p { margin: 0 0 var(--bc-sp-4); }
a { color: var(--bc-primary); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
ul, ol { padding-left: 1.2em; }

/* ==========================================================================
   Container / eyebrow / layout helpers
   ========================================================================== */
.bc-container {
  width: 100%;
  max-width: var(--bc-container-w);
  margin-inline: auto;
  padding-inline: var(--bc-sp-5);
}
.bc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--bc-sp-2);
  font-family: var(--bc-font-heading);
  font-size: var(--bc-fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bc-accent-dark);
  margin-bottom: var(--bc-sp-3);
}
.bc-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--bc-accent);
  display: inline-block;
}
.bc-eyebrow--on-dark { color: var(--bc-accent-light); }

section { padding-block: var(--bc-sp-9); }
.bc-section--tight { padding-block: var(--bc-sp-7); }
.bc-section--alt { background: var(--bc-paper-alt); }
.bc-section--primary { background: var(--bc-primary); color: var(--bc-white); }
.bc-section--primary h1, .bc-section--primary h2, .bc-section--primary h3 { color: var(--bc-white); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bc-sp-2);
  font-family: var(--bc-font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: var(--bc-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: transform var(--bc-transition), box-shadow var(--bc-transition), background var(--bc-transition), color var(--bc-transition), border-color var(--bc-transition);
}
.bc-btn:hover { transform: translateY(-1px); }
.bc-btn:focus-visible { outline: 3px solid var(--bc-accent-light); outline-offset: 2px; }

.bc-btn--primary {
  background: var(--bc-primary);
  color: var(--bc-white);
  border-color: var(--bc-primary);
}
.bc-btn--primary:hover { background: var(--bc-primary-dark); border-color: var(--bc-primary-dark); box-shadow: var(--bc-shadow-sm); }

.bc-btn--accent {
  background: var(--bc-accent);
  color: var(--bc-white);
  border-color: var(--bc-accent);
}
.bc-btn--accent:hover { background: var(--bc-accent-dark); border-color: var(--bc-accent-dark); box-shadow: var(--bc-shadow-sm); }

.bc-btn--ghost {
  background: transparent;
  color: var(--bc-white);
  border-color: rgba(255,255,255,0.55);
}
.bc-btn--ghost:hover { background: rgba(255,255,255,0.14); border-color: var(--bc-white); }

.bc-btn--outline {
  background: transparent;
  color: var(--bc-primary);
  border-color: var(--bc-primary);
}
.bc-btn--outline:hover { background: var(--bc-primary); color: var(--bc-white); }

/* ==========================================================================
   Site shell — header / nav / footer
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bc-white);
  border-bottom: 1px solid var(--bc-line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-sp-5);
  padding-block: var(--bc-sp-3);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--bc-sp-2);
  font-family: var(--bc-font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--bc-ink);
  text-decoration: none;
}
.site-header__logo-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--bc-radius-sm);
  background: var(--bc-primary);
  color: var(--bc-white);
  display: grid;
  place-items: center;
  font-family: var(--bc-font-heading);
  font-weight: 800;
}
.site-nav { display: flex; align-items: center; gap: var(--bc-sp-6); }
.site-nav__list {
  list-style: none;
  display: flex;
  gap: var(--bc-sp-5);
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  color: var(--bc-ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--bc-primary); }
.site-nav__cta { flex-shrink: 0; }

.site-footer {
  background: var(--bc-line-dark);
  color: #DCE6E2;
  padding-block: var(--bc-sp-8) var(--bc-sp-6);
}
.site-footer a { color: #DCE6E2; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bc-sp-6);
  margin-bottom: var(--bc-sp-7);
}
.site-footer__heading {
  font-family: var(--bc-font-heading);
  color: var(--bc-white);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--bc-sp-3);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--bc-sp-2); font-size: 0.92rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: var(--bc-sp-5);
  font-size: 0.85rem;
  color: #A9BAB4;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--bc-sp-3);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.bc-hero {
  background: linear-gradient(155deg, var(--bc-primary-dark) 0%, var(--bc-primary) 62%, var(--bc-primary-light) 100%);
  color: var(--bc-white);
  padding-block: var(--bc-sp-9);
  position: relative;
  overflow: hidden;
}
.bc-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,121,63,0.35) 0%, rgba(226,121,63,0) 70%);
  pointer-events: none;
}
.bc-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bc-sp-8);
  align-items: center;
  position: relative;
}
.bc-hero__copy h1 { color: var(--bc-white); }
.bc-hero__lede {
  font-size: var(--bc-fs-lede);
  color: #E7F0EC;
  max-width: 46ch;
  margin-bottom: var(--bc-sp-6);
}
.bc-hero__actions { display: flex; gap: var(--bc-sp-4); flex-wrap: wrap; margin-bottom: var(--bc-sp-6); }
.bc-hero__trust {
  display: flex;
  gap: var(--bc-sp-6);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: var(--bc-sp-5) 0 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  color: #D6E5DF;
}
.bc-hero__media {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-lg);
  border: 6px solid rgba(255,255,255,0.14);
}
.bc-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Prose
   ========================================================================== */
.bc-prose {
  max-width: 72ch;
}
.bc-prose--wide { max-width: 100%; }
.bc-prose h2, .bc-prose h3 { margin-top: var(--bc-sp-6); }
.bc-prose p, .bc-prose li { color: var(--bc-ink-soft); }
.bc-prose--has-color {
  background: var(--bc-primary-tint);
  border-left: 4px solid var(--bc-primary);
  padding: var(--bc-sp-6);
  border-radius: 0 var(--bc-radius-md) var(--bc-radius-md) 0;
}
.bc-prose--dark {
  background: var(--bc-line-dark);
  color: var(--bc-paper);
  padding: var(--bc-sp-6);
  border-radius: var(--bc-radius-md);
}
.bc-prose--dark h2, .bc-prose--dark h3, .bc-prose--dark h4 { color: var(--bc-white); }
.bc-prose--dark p, .bc-prose--dark li { color: #C9D6D1; }
.bc-prose--with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-7);
  align-items: center;
  max-width: 100%;
}
.bc-prose--with-image img { border-radius: var(--bc-radius-md); box-shadow: var(--bc-shadow-md); }

/* ==========================================================================
   Grid (feature / service cards)
   ========================================================================== */
.bc-grid {
  display: grid;
  gap: var(--bc-sp-6);
  grid-template-columns: repeat(2, 1fr);
}
.bc-grid--2col { grid-template-columns: repeat(2, 1fr); }
.bc-grid--3col { grid-template-columns: repeat(3, 1fr); }
.bc-grid--4col { grid-template-columns: repeat(4, 1fr); }

.bc-grid__card {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-sp-6);
  box-shadow: var(--bc-shadow-sm);
  transition: box-shadow var(--bc-transition), transform var(--bc-transition);
}
.bc-grid__card:hover { box-shadow: var(--bc-shadow-md); transform: translateY(-2px); }
.bc-grid__card h3 { font-size: 1.2rem; margin-bottom: var(--bc-sp-2); }
.bc-grid__card p { color: var(--bc-ink-soft); margin-bottom: 0; font-size: 0.97rem; }
.bc-grid__card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--bc-radius-sm);
  background: var(--bc-primary-tint);
  color: var(--bc-primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--bc-sp-4);
  font-size: 1.4rem;
}

.bc-grid--imaged .bc-grid__card { padding: 0; overflow: hidden; }
.bc-grid--imaged .bc-grid__card-body { padding: var(--bc-sp-5); }
.bc-grid__card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.bc-grid--text-only .bc-grid__card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: var(--bc-sp-4) 0;
  border-bottom: 1px solid var(--bc-line);
}
.bc-grid--text-only .bc-grid__card:hover { transform: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.bc-faq__list { display: grid; gap: var(--bc-sp-3); max-width: 78ch; }
.bc-faq__item {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  padding: 0;
  overflow: hidden;
}
.bc-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-sp-4);
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--bc-font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--bc-ink);
  padding: var(--bc-sp-5);
  cursor: pointer;
}
.bc-faq__q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--bc-accent);
  flex-shrink: 0;
  line-height: 1;
}
.bc-faq__item[open] .bc-faq__q::after { content: "\2212"; }
.bc-faq__a { padding: 0 var(--bc-sp-5) var(--bc-sp-5); color: var(--bc-ink-soft); margin: 0; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.bc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-sp-4);
}
.bc-gallery__cell {
  position: relative;
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  box-shadow: var(--bc-shadow-sm);
}
.bc-gallery__cell img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform var(--bc-transition); }
.bc-gallery__cell:hover img { transform: scale(1.05); }
.bc-gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(10,26,22,0.85), rgba(10,26,22,0));
  color: var(--bc-white);
  padding: var(--bc-sp-5) var(--bc-sp-3) var(--bc-sp-2);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   Video
   ========================================================================== */
.bc-video__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-sp-8);
  align-items: center;
}
.bc-video__player { position: relative; }
.bc-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-lg);
  border: 0;
}
.bc-video__frame iframe, .bc-video__frame img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.bc-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bc-accent);
  color: var(--bc-white);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--bc-shadow-md);
}

/* ==========================================================================
   Map
   ========================================================================== */
.bc-map__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--bc-sp-8);
  align-items: stretch;
}
.bc-map__info {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-sp-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--bc-sp-3);
}
.bc-map__addr { font-style: normal; color: var(--bc-ink-soft); line-height: 1.7; }
.bc-map__frame {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  box-shadow: var(--bc-shadow-sm);
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.bc-testimonial__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-sp-5);
}
.bc-testimonial {
  background: var(--bc-white);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-sp-6);
  border: 1px solid var(--bc-line);
  box-shadow: var(--bc-shadow-sm);
}
.bc-testimonial__stars { color: var(--bc-accent); letter-spacing: 0.1em; margin-bottom: var(--bc-sp-3); }
.bc-testimonial__quote { color: var(--bc-ink-soft); margin-bottom: var(--bc-sp-4); }
.bc-testimonial__author { display: flex; align-items: center; gap: var(--bc-sp-3); }
.bc-testimonial__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bc-primary-tint);
  color: var(--bc-primary);
  display: grid;
  place-items: center;
  font-family: var(--bc-font-heading);
  font-weight: 700;
}
.bc-testimonial__name { font-weight: 700; font-size: 0.92rem; color: var(--bc-ink); }
.bc-testimonial__meta { font-size: 0.82rem; color: var(--bc-ink-faint); }

/* ==========================================================================
   Form band + form fields
   ========================================================================== */
.bc-formband {
  background: var(--bc-paper-alt);
}
.bc-formband--intro {
  background: linear-gradient(155deg, var(--bc-primary-dark), var(--bc-primary));
  color: var(--bc-white);
}
.bc-formband--intro h2 { color: var(--bc-white); }
.bc-formband--final {
  background: var(--bc-line-dark);
  color: var(--bc-paper);
}
.bc-formband--final h2 { color: var(--bc-white); }
.bc-formband__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-8);
  align-items: start;
}
.bc-formband__title { margin-bottom: var(--bc-sp-3); }
.bc-formband__lede { font-size: var(--bc-fs-lede); max-width: 46ch; opacity: 0.92; }
.bc-formband__form {
  background: var(--bc-white);
  color: var(--bc-ink);
  border-radius: var(--bc-radius-lg);
  padding: var(--bc-sp-6);
  box-shadow: var(--bc-shadow-lg);
  display: grid;
  gap: var(--bc-sp-4);
}

.bc-form-field { display: grid; gap: var(--bc-sp-2); }
.bc-form-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bc-ink);
  font-family: var(--bc-font-heading);
}
.bc-form-field--required label::after {
  content: " *";
  color: var(--bc-accent-dark);
}
.bc-form-field input,
.bc-form-field textarea,
.bc-form-field select {
  font: inherit;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--bc-line);
  border-radius: var(--bc-radius-sm);
  background: var(--bc-white);
  color: var(--bc-ink);
}
.bc-form-field input:focus,
.bc-form-field textarea:focus,
.bc-form-field select:focus {
  outline: none;
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px var(--bc-primary-tint);
}
.bc-form-field textarea { resize: vertical; min-height: 100px; }
.bc-form-hint { font-size: 0.8rem; color: var(--bc-ink-faint); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .bc-hero__grid,
  .bc-prose--with-image,
  .bc-video__grid,
  .bc-map__grid,
  .bc-formband__grid { grid-template-columns: 1fr; }
  .bc-grid--3col, .bc-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .bc-testimonial__grid { grid-template-columns: 1fr; }
  .bc-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section { padding-block: var(--bc-sp-7); }
  .bc-grid, .bc-grid--2col, .bc-grid--3col, .bc-grid--4col { grid-template-columns: 1fr; }
  .site-nav__list { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .bc-gallery__grid { grid-template-columns: 1fr; }
  .bc-hero__trust { flex-direction: column; gap: var(--bc-sp-2); }
  .bc-container { padding-inline: var(--bc-sp-4); }
}
