/* =========================================================================
   Decking Wollongong — Locked Component Library (bc-* = "brief component")
   Palette: warm timber tones (spotted-gum brown / cedar amber) grounded with
   a muted Illawarra-coast teal accent. Headings in a slab-serif for a
   crafted, hand-built feel; body in a clean humanist sans for readability.
   ========================================================================= */

:root {
  /* ---- Color tokens ---- */
  --bc-primary: #5C3A21;        /* deep timber brown — header/footer/dark sections */
  --bc-primary-dark: #3B2515;   /* darker brown for hovers / deep panels */
  --bc-primary-light: #8A6440;  /* lighter timber brown for borders/secondary UI */

  --bc-accent: #C97A2C;         /* warm cedar amber — primary CTA */
  --bc-accent-dark: #875014;    /* accent hover — darkened for AA text contrast on paper */
  --bc-accent-light: #E7A85E;   /* accent tint */

  --bc-teal: #1F6F6B;           /* Illawarra coastal teal — secondary accent / links on dark */
  --bc-teal-dark: #154E4B;

  --bc-paper: #FBF7F1;          /* warm sanded-timber off-white — page background */
  --bc-paper-alt: #F1E7D8;      /* deeper warm neutral — alternating section bg */
  --bc-paper-deep: #E7D9C4;     /* card/border-adjacent warm neutral */

  --bc-ink: #2A2118;            /* near-black warm brown — headings/body on paper */
  --bc-ink-soft: #57493A;       /* muted body copy */
  --bc-ink-faint: #6B5A46;      /* captions/meta — darkened post-QA to clear AA on paper bg */

  --bc-white: #FFFFFF;
  --bc-border: #DCC9AC;         /* hairline borders on paper */
  --bc-border-dark: rgba(255,255,255,0.18); /* hairline borders on dark */

  --bc-success: #2E7D4F;
  --bc-focus: #1F6F6B;

  /* ---- Type ---- */
  --bc-font-head: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --bc-font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --bc-fs-xs: 0.8125rem;   /* 13px */
  --bc-fs-sm: 0.9375rem;   /* 15px */
  --bc-fs-base: 1.0625rem; /* 17px */
  --bc-fs-md: 1.25rem;     /* 20px */
  --bc-fs-lg: 1.625rem;    /* 26px */
  --bc-fs-xl: 2.125rem;    /* 34px */
  --bc-fs-2xl: 2.875rem;   /* 46px */
  --bc-fs-3xl: 3.625rem;   /* 58px */

  --bc-lh-tight: 1.15;
  --bc-lh-snug: 1.35;
  --bc-lh-body: 1.65;

  /* ---- Space scale ---- */
  --bc-sp-3xs: 0.25rem;
  --bc-sp-2xs: 0.5rem;
  --bc-sp-xs: 0.75rem;
  --bc-sp-sm: 1rem;
  --bc-sp-md: 1.5rem;
  --bc-sp-lg: 2.25rem;
  --bc-sp-xl: 3.5rem;
  --bc-sp-2xl: 5rem;
  --bc-sp-3xl: 7rem;

  /* ---- Misc ---- */
  --bc-radius-sm: 4px;
  --bc-radius-md: 10px;
  --bc-radius-lg: 18px;
  --bc-shadow-sm: 0 1px 3px rgba(42,33,24,0.10), 0 1px 2px rgba(42,33,24,0.06);
  --bc-shadow-md: 0 8px 24px rgba(42,33,24,0.14);
  --bc-shadow-lg: 0 20px 48px rgba(42,33,24,0.20);
  --bc-container-w: 1180px;
  --bc-transition: 180ms ease;
}

/* =========================================================================
   Reset / base
   ========================================================================= */
*, *::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-base);
  line-height: var(--bc-lh-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--bc-teal-dark); text-decoration-thickness: 1.5px; }
a:hover { color: var(--bc-accent-dark); }
.bc-hero a:not(.bc-btn), .bc-prose--dark a:not(.bc-btn), .bc-formband a:not(.bc-btn), .bc-testimonial a:not(.bc-btn),
.bc-map__info a:not(.bc-btn), .site-footer a:not(.bc-btn) { color: var(--bc-accent-light); }
.bc-hero a:not(.bc-btn):hover, .bc-prose--dark a:not(.bc-btn):hover, .bc-formband a:not(.bc-btn):hover, .bc-testimonial a:not(.bc-btn):hover,
.bc-map__info a:not(.bc-btn):hover, .site-footer a:not(.bc-btn):hover { color: var(--bc-white); }
h1, h2, h3, h4 {
  font-family: var(--bc-font-head);
  color: var(--bc-ink);
  line-height: var(--bc-lh-tight);
  margin: 0 0 var(--bc-sp-sm);
  font-weight: 700;
}
h1 { font-size: var(--bc-fs-3xl); }
h2 { font-size: var(--bc-fs-2xl); }
h3 { font-size: var(--bc-fs-lg); }
h4 { font-size: var(--bc-fs-md); }
p { margin: 0 0 var(--bc-sp-sm); }
:focus-visible { outline: 3px solid var(--bc-focus); outline-offset: 2px; }

/* =========================================================================
   Container / eyebrow
   ========================================================================= */
.bc-container {
  width: 100%;
  max-width: var(--bc-container-w);
  margin-inline: auto;
  padding-inline: var(--bc-sp-md);
}

.bc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--bc-sp-3xs);
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bc-accent-dark);
  margin-bottom: var(--bc-sp-2xs);
}
.bc-eyebrow::before {
  content: "";
  width: 1.3em;
  height: 2px;
  background: var(--bc-accent);
  display: inline-block;
}
.bc-eyebrow--on-dark { color: var(--bc-paper); }
.bc-eyebrow--on-dark::before { background: var(--bc-paper); }

/* =========================================================================
   Buttons
   ========================================================================= */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bc-sp-2xs);
  font-family: var(--bc-font-body);
  font-weight: 700;
  font-size: var(--bc-fs-sm);
  letter-spacing: 0.01em;
  padding: 0.85em 1.7em;
  border-radius: var(--bc-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--bc-transition), color var(--bc-transition), border-color var(--bc-transition), transform var(--bc-transition);
}
.bc-btn:hover { transform: translateY(-1px); }
.bc-btn:active { transform: translateY(0); }

.bc-btn--primary {
  background: var(--bc-accent);
  color: #2A1600;
  border-color: var(--bc-accent);
}
.bc-btn--primary:hover { background: var(--bc-accent-dark); border-color: var(--bc-accent-dark); color: #FFF; }

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

.bc-btn--ghost {
  background: transparent;
  color: var(--bc-white);
  border-color: var(--bc-border-dark);
}
.bc-btn--ghost:hover { background: rgba(255,255,255,0.12); 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 {
  background: var(--bc-paper);
  border-bottom: 1px solid var(--bc-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-sp-md);
  padding-block: var(--bc-sp-xs);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--bc-sp-2xs);
  font-family: var(--bc-font-head);
  font-weight: 700;
  font-size: var(--bc-fs-md);
  color: var(--bc-primary);
  text-decoration: none;
}
.site-header__logo img { height: 42px; width: auto; }

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--bc-sp-md);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav__list a {
  color: var(--bc-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--bc-fs-sm);
  padding: var(--bc-sp-3xs) 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--bc-transition), color var(--bc-transition);
}
.site-nav__list a:hover,
.site-nav__list a:focus-visible { color: var(--bc-accent-dark); border-color: var(--bc-accent); }

.site-footer {
  background: var(--bc-primary-dark);
  color: #EFE3D2;
  padding-block: var(--bc-sp-xl);
}
.site-footer a { color: var(--bc-accent-light); }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--bc-sp-lg);
}
.site-footer__heading {
  font-family: var(--bc-font-head);
  color: var(--bc-white);
  font-size: var(--bc-fs-md);
  margin-bottom: var(--bc-sp-xs);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--bc-sp-2xs); }
.site-footer__bottom {
  margin-top: var(--bc-sp-xl);
  padding-top: var(--bc-sp-md);
  border-top: 1px solid var(--bc-border-dark);
  font-size: var(--bc-fs-xs);
  color: #C9B79B;
  display: flex;
  flex-wrap: wrap;
  gap: var(--bc-sp-sm);
  justify-content: space-between;
}

/* =========================================================================
   Hero
   ========================================================================= */
.bc-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
  color: var(--bc-white);
  overflow: hidden;
}
.bc-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--bc-sp-xl);
  padding-block: var(--bc-sp-3xl);
}
.bc-hero__title { color: var(--bc-white); font-size: var(--bc-fs-3xl); }
.bc-hero__lede {
  font-size: var(--bc-fs-md);
  color: #EFE3D2;
  max-width: 46ch;
  margin-bottom: var(--bc-sp-md);
}
.bc-hero__actions { display: flex; gap: var(--bc-sp-sm); flex-wrap: wrap; }
.bc-hero__media {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-lg);
  border: 1px solid var(--bc-border-dark);
}
.bc-hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* =========================================================================
   Prose
   ========================================================================= */
.bc-prose {
  padding-block: var(--bc-sp-2xl);
  background: var(--bc-paper);
  color: var(--bc-ink);
}
.bc-prose__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bc-sp-lg);
}
.bc-prose__grid.bc-prose--with-image { grid-template-columns: 1fr 1fr; align-items: center; }
.bc-prose__grid.bc-prose--with-image .bc-prose__media {
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  box-shadow: var(--bc-shadow-md);
}
.bc-prose__grid.bc-prose--with-image .bc-prose__media img { aspect-ratio: 4/3; object-fit: cover; }
.bc-prose__body p { color: var(--bc-ink-soft); }
.bc-prose__body ul { color: var(--bc-ink-soft); padding-left: 1.25em; }
.bc-prose__body li { margin-bottom: var(--bc-sp-3xs); }

.bc-prose--has-color { background: var(--bc-paper-alt); }
.bc-prose--dark { background: var(--bc-primary); color: var(--bc-white); }
.bc-prose--dark h2, .bc-prose--dark h3 { color: var(--bc-white); }
.bc-prose--dark .bc-prose__body p,
.bc-prose--dark .bc-prose__body ul { color: #EFE3D2; }

/* =========================================================================
   Grid (services / feature cards)
   ========================================================================= */
.bc-grid { padding-block: var(--bc-sp-2xl); background: var(--bc-paper); }
.bc-grid__head { max-width: 62ch; margin-bottom: var(--bc-sp-lg); }
.bc-grid__cards {
  display: grid;
  gap: var(--bc-sp-md);
  grid-template-columns: 1fr;
}
.bc-grid--2col .bc-grid__cards { grid-template-columns: repeat(2, 1fr); }
.bc-grid--3col .bc-grid__cards { grid-template-columns: repeat(3, 1fr); }
.bc-grid--4col .bc-grid__cards { grid-template-columns: repeat(4, 1fr); }

.bc-grid__card {
  background: var(--bc-white);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-sp-md);
  box-shadow: var(--bc-shadow-sm);
  transition: transform var(--bc-transition), box-shadow var(--bc-transition);
}
.bc-grid__card:hover { transform: translateY(-3px); box-shadow: var(--bc-shadow-md); }
.bc-grid__card h3 { font-size: var(--bc-fs-md); margin-bottom: var(--bc-sp-2xs); }
.bc-grid__card p { color: var(--bc-ink-soft); margin-bottom: 0; font-size: var(--bc-fs-sm); }

.bc-grid__card-img {
  margin: calc(var(--bc-sp-md) * -1) calc(var(--bc-sp-md) * -1) var(--bc-sp-sm);
  border-radius: var(--bc-radius-md) var(--bc-radius-md) 0 0;
  overflow: hidden;
}
.bc-grid__card-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.bc-grid--text-only .bc-grid__card { padding: var(--bc-sp-lg) var(--bc-sp-md); }
.bc-grid--imaged .bc-grid__card { padding-top: 0; }

/* =========================================================================
   FAQ
   ========================================================================= */
.bc-faq { padding-block: var(--bc-sp-2xl); background: var(--bc-paper-alt); }
.bc-faq__list { max-width: 820px; margin-inline: auto; display: grid; gap: var(--bc-sp-sm); }
.bc-faq__item {
  background: var(--bc-white);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-sp-sm) var(--bc-sp-md);
}
.bc-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-sp-sm);
  font-family: var(--bc-font-head);
  font-weight: 700;
  font-size: var(--bc-fs-md);
  color: var(--bc-primary);
  margin: 0;
  cursor: pointer;
  list-style: none;
}
.bc-faq__q::-webkit-details-marker { display: none; }
.bc-faq__q::after {
  content: "+";
  font-size: 1.4em;
  color: var(--bc-accent);
  flex-shrink: 0;
  transition: transform var(--bc-transition);
}
details[open] .bc-faq__q::after { transform: rotate(45deg); }
.bc-faq__a { color: var(--bc-ink-soft); margin-top: var(--bc-sp-xs); }

/* =========================================================================
   Gallery
   ========================================================================= */
.bc-gallery { padding-block: var(--bc-sp-2xl); background: var(--bc-paper); }
.bc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-sp-sm);
}
.bc-gallery__cell {
  position: relative;
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  box-shadow: var(--bc-shadow-sm);
}
.bc-gallery__cell img { aspect-ratio: 1/1; object-fit: cover; width: 100%; 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(42,33,24,0.85), rgba(42,33,24,0));
  color: var(--bc-white);
  font-size: var(--bc-fs-xs);
  padding: var(--bc-sp-md) var(--bc-sp-xs) var(--bc-sp-2xs);
}

/* =========================================================================
   Video
   ========================================================================= */
.bc-video { padding-block: var(--bc-sp-2xl); background: var(--bc-paper-alt); }
.bc-video__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-xl);
  align-items: center;
}
.bc-video__copy p { color: var(--bc-ink-soft); }
.bc-video__player { border-radius: var(--bc-radius-lg); overflow: hidden; box-shadow: var(--bc-shadow-md); }
.bc-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.bc-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================================
   Map
   ========================================================================= */
.bc-map { padding-block: var(--bc-sp-2xl); background: var(--bc-paper); }
.bc-map__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-sp-xl);
  align-items: stretch;
}
.bc-map__info {
  background: var(--bc-primary);
  color: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  padding: var(--bc-sp-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bc-map__info h2, .bc-map__info h3 { color: var(--bc-white); }
.bc-map__addr { color: #EFE3D2; font-style: normal; margin-bottom: var(--bc-sp-sm); line-height: var(--bc-lh-snug); }
.bc-map__frame { border-radius: var(--bc-radius-lg); overflow: hidden; box-shadow: var(--bc-shadow-md); min-height: 320px; }
.bc-map__frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* =========================================================================
   Testimonial
   ========================================================================= */
.bc-testimonial { padding-block: var(--bc-sp-2xl); background: var(--bc-primary-dark); color: var(--bc-white); }
.bc-testimonial__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-sp-md);
}
.bc-testimonial__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--bc-border-dark);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-sp-md);
}
.bc-testimonial__stars { color: var(--bc-accent-light); letter-spacing: 0.15em; margin-bottom: var(--bc-sp-2xs); font-size: var(--bc-fs-sm); }
.bc-testimonial__quote { color: #F3E9DA; margin-bottom: var(--bc-sp-sm); font-size: var(--bc-fs-sm); }
.bc-testimonial__author { font-weight: 700; color: var(--bc-white); font-size: var(--bc-fs-sm); }
.bc-testimonial__role { color: #C9B79B; font-size: var(--bc-fs-xs); }

/* =========================================================================
   Form band
   ========================================================================= */
.bc-formband { padding-block: var(--bc-sp-2xl); background: var(--bc-accent); color: #2A1600; }
.bc-formband__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-xl);
  align-items: start;
}
.bc-formband__title { color: #2A1600; }
.bc-formband__lede { color: #331F02; max-width: 46ch; }
.bc-formband__form {
  background: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow-lg);
  padding: var(--bc-sp-lg);
  display: grid;
  gap: var(--bc-sp-sm);
}

.bc-formband--intro { background: var(--bc-primary); color: var(--bc-white); }
.bc-formband--intro .bc-formband__title { color: var(--bc-white); }
.bc-formband--intro .bc-formband__lede { color: #EFE3D2; }

.bc-formband--final { background: var(--bc-teal); color: var(--bc-white); }
.bc-formband--final .bc-formband__title { color: var(--bc-white); }
.bc-formband--final .bc-formband__lede { color: #DCEEEC; }

.bc-form-field { display: grid; gap: var(--bc-sp-3xs); text-align: left; }
.bc-form-field label { font-size: var(--bc-fs-xs); font-weight: 700; color: var(--bc-ink); letter-spacing: 0.02em; }
.bc-form-field input,
.bc-form-field textarea,
.bc-form-field select {
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-sm);
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--bc-border);
  border-radius: var(--bc-radius-sm);
  background: var(--bc-paper);
  color: var(--bc-ink);
}
.bc-form-field input:focus,
.bc-form-field textarea:focus,
.bc-form-field select:focus { outline: 3px solid var(--bc-focus); outline-offset: 1px; border-color: var(--bc-teal); }
.bc-form-field--required label::after { content: " *"; color: var(--bc-accent-dark); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .bc-hero__grid,
  .bc-prose__grid.bc-prose--with-image,
  .bc-video__grid,
  .bc-map__grid,
  .bc-formband__grid { grid-template-columns: 1fr; }
  .bc-grid--3col .bc-grid__cards,
  .bc-grid--4col .bc-grid__cards { 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) {
  h1 { font-size: var(--bc-fs-2xl); }
  h2 { font-size: var(--bc-fs-xl); }
  .bc-grid--2col .bc-grid__cards,
  .bc-grid--3col .bc-grid__cards,
  .bc-grid--4col .bc-grid__cards { grid-template-columns: 1fr; }
  .bc-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .site-header__bar { flex-wrap: wrap; }
  .site-nav__list { gap: var(--bc-sp-sm); }
  .bc-hero__title { font-size: var(--bc-fs-2xl); }
}
