/* ==========================================================================
   Commercial Cleaning Newcastle Elite — Locked Component Library (bc-*)
   Industry: Commercial / office cleaning, B2B services
   Location: Newcastle, NSW, Australia
   Brand feel: professional, trustworthy, hygienic, premium ("Elite")
   ========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --bc-primary: #0E4A47;        /* deep teal — trust, hygiene, corporate */
  --bc-primary-dark: #082F2D;   /* darker teal for hovers / dark sections */
  --bc-primary-light: #E4EFEE;  /* tinted teal for soft backgrounds */
  --bc-accent: #C9962E;         /* elite gold — premium CTA accent */
  --bc-accent-dark: #8A6015;    /* gold hover — darkened for AA contrast w/ white text */
  --bc-accent-light: #FBF1DC;   /* tinted gold for badges/highlights */
  --bc-accent-pale: #E9C878;    /* light gold for text on dark backgrounds */

  --bc-ink: #16211F;            /* near-black, warm dark green-grey */
  --bc-ink-soft: #3E4C49;       /* secondary text */
  --bc-paper: #FFFFFF;          /* page background */
  --bc-paper-alt: #F3F7F6;      /* alternating section background */
  --bc-paper-deep: #EAF1EF;     /* deeper tint for cards on alt bg */
  --bc-line: #D8E3E0;           /* borders/dividers */
  --bc-line-strong: #B9CAC6;

  --bc-white: #FFFFFF;
  --bc-success: #2F7A4F;
  --bc-danger: #B3412A;

  /* ---- Typography ---- */
  --bc-font-heading: 'Sora', 'Poppins', 'Segoe UI', Arial, sans-serif;
  --bc-font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --bc-text-xs: 0.75rem;
  --bc-text-sm: 0.875rem;
  --bc-text-base: 1rem;
  --bc-text-lg: 1.125rem;
  --bc-text-xl: 1.375rem;
  --bc-text-2xl: 1.75rem;
  --bc-text-3xl: 2.25rem;
  --bc-text-4xl: 2.875rem;
  --bc-text-5xl: 3.5rem;

  --bc-leading-tight: 1.15;
  --bc-leading-snug: 1.35;
  --bc-leading-normal: 1.6;

  --bc-weight-regular: 400;
  --bc-weight-medium: 500;
  --bc-weight-semibold: 600;
  --bc-weight-bold: 700;

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

  /* ---- Layout ---- */
  --bc-container-w: 1180px;
  --bc-radius-sm: 6px;
  --bc-radius-md: 10px;
  --bc-radius-lg: 16px;
  --bc-shadow-sm: 0 1px 3px rgba(14, 74, 71, 0.08);
  --bc-shadow-md: 0 8px 24px rgba(14, 74, 71, 0.12);
  --bc-shadow-lg: 0 16px 40px rgba(8, 47, 45, 0.18);
  --bc-border-w: 1px;
}

/* ==========================================================================
   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-text-base);
  line-height: var(--bc-leading-normal);
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--bc-font-heading);
  font-weight: var(--bc-weight-bold);
  line-height: var(--bc-leading-tight);
  color: var(--bc-primary-dark);
  margin: 0 0 var(--bc-space-4);
}
p { margin: 0 0 var(--bc-space-4); }
a { color: var(--bc-primary); }
ul, ol { margin: 0 0 var(--bc-space-4); padding-left: 1.25rem; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.bc-container {
  width: 100%;
  max-width: var(--bc-container-w);
  margin-inline: auto;
  padding-inline: var(--bc-space-5);
}

.bc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--bc-space-2);
  font-family: var(--bc-font-heading);
  font-size: var(--bc-text-xs);
  font-weight: var(--bc-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bc-accent-dark);
  background: var(--bc-accent-light);
  border-radius: 999px;
  padding: var(--bc-space-2) var(--bc-space-4);
  margin-bottom: var(--bc-space-4);
}
.bc-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bc-accent);
  display: inline-block;
}
.bc-eyebrow--onDark {
  color: var(--bc-accent-pale);
  background: rgba(255,255,255,0.1);
}
.bc-eyebrow--onDark::before { background: var(--bc-accent-pale); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bc-space-2);
  font-family: var(--bc-font-heading);
  font-weight: var(--bc-weight-semibold);
  font-size: var(--bc-text-base);
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--bc-radius-sm);
  padding: 0.875rem 1.75rem;
  border: var(--bc-border-w) solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  line-height: 1.2;
}
.bc-btn:hover { transform: translateY(-1px); }

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

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

.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.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-white);
  border-bottom: var(--bc-border-w) solid var(--bc-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-space-5);
  padding-block: var(--bc-space-4);
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--bc-space-3);
  font-family: var(--bc-font-heading);
  font-weight: var(--bc-weight-bold);
  font-size: var(--bc-text-lg);
  color: var(--bc-primary-dark);
  text-decoration: none;
}
.site-header__brand img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: var(--bc-space-6); }
.site-nav__list {
  display: flex;
  gap: var(--bc-space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  color: var(--bc-ink);
  text-decoration: none;
  font-weight: var(--bc-weight-medium);
  font-size: var(--bc-text-sm);
}
.site-nav__list a:hover { color: var(--bc-primary); }

.site-footer {
  background: var(--bc-primary-dark);
  color: rgba(255,255,255,0.85);
  padding-block: var(--bc-space-8) var(--bc-space-6);
}
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--bc-white); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--bc-space-6);
  padding-bottom: var(--bc-space-7);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: var(--bc-space-5);
}
.site-footer__heading {
  font-family: var(--bc-font-heading);
  color: var(--bc-white);
  font-size: var(--bc-text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--bc-space-3);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--bc-space-2); font-size: var(--bc-text-sm); overflow-wrap: anywhere; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--bc-space-3);
  font-size: var(--bc-text-xs);
  color: rgba(255,255,255,0.65);
}

@media (max-width: 860px) {
  .site-nav__list { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.bc-hero {
  background: linear-gradient(135deg, var(--bc-primary-dark) 0%, var(--bc-primary) 68%);
  color: var(--bc-white);
  padding-block: var(--bc-space-9);
  position: relative;
  overflow: hidden;
}
.bc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,150,46,0.25), transparent 55%);
  pointer-events: none;
}
.bc-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bc-space-7);
  align-items: center;
  position: relative;
}
.bc-hero__title {
  color: var(--bc-white);
  font-size: var(--bc-text-5xl);
  margin-bottom: var(--bc-space-4);
}
.bc-hero__lede {
  font-size: var(--bc-text-lg);
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
  margin-bottom: var(--bc-space-6);
}
.bc-hero__actions { display: flex; gap: var(--bc-space-4); flex-wrap: wrap; }
.bc-hero__media {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-lg);
  border: 1px solid rgba(255,255,255,0.2);
}
.bc-hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .bc-hero__grid { grid-template-columns: 1fr; }
  .bc-hero__title { font-size: var(--bc-text-3xl); }
}

/* ==========================================================================
   Prose section
   ========================================================================== */
.bc-prose {
  padding-block: var(--bc-space-8);
  background: var(--bc-paper);
}
.bc-prose__inner { max-width: 72ch; }
.bc-prose--has-color { background: var(--bc-paper-alt); }
.bc-prose--dark {
  background: var(--bc-primary-dark);
  color: rgba(255,255,255,0.9);
}
.bc-prose--dark h2, .bc-prose--dark h3 { color: var(--bc-white); }
.bc-prose--with-image .bc-prose__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-space-7);
  align-items: center;
  max-width: none;
}
.bc-prose--with-image .bc-prose__media img {
  border-radius: var(--bc-radius-md);
  box-shadow: var(--bc-shadow-md);
}
@media (max-width: 860px) {
  .bc-prose--with-image .bc-prose__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Grid (services / features / cards)
   ========================================================================== */
.bc-grid { padding-block: var(--bc-space-8); background: var(--bc-paper); }
.bc-grid--alt { background: var(--bc-paper-alt); }
.bc-grid__head { max-width: 60ch; margin-bottom: var(--bc-space-6); }
.bc-grid__cards {
  display: grid;
  gap: var(--bc-space-5);
  grid-template-columns: repeat(3, 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-line);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-5);
  box-shadow: var(--bc-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-3);
}
.bc-grid--text-only .bc-grid__card { padding: var(--bc-space-5); }
.bc-grid--imaged .bc-grid__card { padding: 0; overflow: hidden; }
.bc-grid__card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bc-grid--imaged .bc-grid__card-body { padding: var(--bc-space-5); display: flex; flex-direction: column; gap: var(--bc-space-3); }
.bc-grid__card h3 { font-size: var(--bc-text-lg); margin-bottom: 0; }
.bc-grid__card p { margin-bottom: 0; color: var(--bc-ink-soft); font-size: var(--bc-text-sm); }
.bc-grid__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--bc-radius-sm);
  background: var(--bc-primary-light);
  color: var(--bc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

@media (max-width: 960px) {
  .bc-grid--3col .bc-grid__cards,
  .bc-grid--4col .bc-grid__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .bc-grid__cards,
  .bc-grid--2col .bc-grid__cards,
  .bc-grid--3col .bc-grid__cards,
  .bc-grid--4col .bc-grid__cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.bc-faq { padding-block: var(--bc-space-8); background: var(--bc-paper-alt); }
.bc-faq__list { max-width: 80ch; display: flex; flex-direction: column; gap: var(--bc-space-3); }
.bc-faq__item {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-4) var(--bc-space-5);
}
.bc-faq__q {
  font-family: var(--bc-font-heading);
  font-weight: var(--bc-weight-semibold);
  font-size: var(--bc-text-base);
  color: var(--bc-primary-dark);
  margin: 0 0 var(--bc-space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-space-3);
}
.bc-faq__a { margin: 0; color: var(--bc-ink-soft); font-size: var(--bc-text-sm); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.bc-gallery { padding-block: var(--bc-space-8); background: var(--bc-paper); }
.bc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bc-space-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: 1/1; object-fit: cover; }
.bc-gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--bc-space-3);
  background: linear-gradient(0deg, rgba(8,47,45,0.85), transparent);
  color: var(--bc-white);
  font-size: var(--bc-text-xs);
  font-weight: var(--bc-weight-medium);
}
@media (max-width: 860px) { .bc-gallery__grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Video
   ========================================================================== */
.bc-video { padding-block: var(--bc-space-8); background: var(--bc-paper-alt); }
.bc-video__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-space-7);
  align-items: center;
}
.bc-video__copy { max-width: 46ch; }
.bc-video__player {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-md);
  background: var(--bc-ink);
}
.bc-video__frame {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}
@media (max-width: 860px) { .bc-video__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Map
   ========================================================================== */
.bc-map { padding-block: var(--bc-space-8); background: var(--bc-paper); }
.bc-map__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--bc-space-7);
  align-items: stretch;
}
.bc-map__info {
  background: var(--bc-primary);
  color: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  padding: var(--bc-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-3);
}
.bc-map__info h3 { color: var(--bc-white); }
.bc-map__addr { font-style: normal; color: rgba(255,255,255,0.9); font-size: var(--bc-text-sm); line-height: var(--bc-leading-snug); }
.bc-map__frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow-md);
}
@media (max-width: 860px) { .bc-map__grid { grid-template-columns: 1fr; } .bc-map__frame { min-height: 260px; } }

/* ==========================================================================
   Testimonial
   ========================================================================== */
.bc-testimonial { padding-block: var(--bc-space-8); background: var(--bc-primary-dark); color: var(--bc-white); }
.bc-testimonial__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-space-5);
}
.bc-testimonial__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-4);
}
.bc-testimonial__quote { font-size: var(--bc-text-base); color: rgba(255,255,255,0.92); margin: 0; }
.bc-testimonial__stars { color: var(--bc-accent); letter-spacing: 0.15em; font-size: var(--bc-text-sm); }
.bc-testimonial__author { display: flex; align-items: center; gap: var(--bc-space-3); }
.bc-testimonial__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bc-accent);
  color: var(--bc-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--bc-font-heading);
  font-weight: var(--bc-weight-bold);
  font-size: var(--bc-text-sm);
}
.bc-testimonial__name { font-weight: var(--bc-weight-semibold); font-size: var(--bc-text-sm); color: var(--bc-white); }
.bc-testimonial__role { font-size: var(--bc-text-xs); color: rgba(255,255,255,0.65); }
@media (max-width: 860px) { .bc-testimonial__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Form band (lead form section)
   ========================================================================== */
.bc-formband { padding-block: var(--bc-space-9); background: var(--bc-paper-alt); }
.bc-formband__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-space-8);
  align-items: center;
}
.bc-formband__title { margin-bottom: var(--bc-space-3); }
.bc-formband__lede { color: var(--bc-ink-soft); max-width: 44ch; }
.bc-formband__form {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-lg);
  padding: var(--bc-space-6);
  box-shadow: var(--bc-shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-4);
}

.bc-formband--intro { background: var(--bc-paper); }
.bc-formband--intro .bc-formband__form { border-color: var(--bc-line-strong); }

.bc-formband--final {
  background: var(--bc-primary-dark);
  color: var(--bc-white);
}
.bc-formband--final .bc-formband__title,
.bc-formband--final h2, .bc-formband--final h3 { color: var(--bc-white); }
.bc-formband--final .bc-formband__lede { color: rgba(255,255,255,0.82); }

.bc-form-field { display: flex; flex-direction: column; gap: var(--bc-space-2); }
.bc-form-field label {
  font-size: var(--bc-text-sm);
  font-weight: var(--bc-weight-medium);
  color: var(--bc-ink);
}
.bc-form-field input,
.bc-form-field textarea,
.bc-form-field select {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--bc-line-strong);
  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: 2px solid var(--bc-primary);
  outline-offset: 1px;
  border-color: var(--bc-primary);
}
.bc-form-field--required label::after {
  content: " *";
  color: var(--bc-danger);
}

@media (max-width: 860px) { .bc-formband__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Utility
   ========================================================================== */
.bc-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;
}
