/* =========================================================================
   Ipswich Bathroom Renovations — Component Library
   Design direction: premium tradie / home-renovation trust brand.
   Deep teal-navy (water, tile, depth) + warm brass accent (tapware,
   fixtures) on a warm paper neutral. Serif display type (Fraunces) for
   a crafted, premium feel paired with a clean geometric sans (Inter)
   for legibility in body copy and UI.
   ========================================================================= */

:root {
  /* ---- Colour tokens ---- */
  --bc-primary:        #0E3B49;   /* deep teal-navy — headers, nav, footer */
  --bc-primary-dark:   #082631;   /* darker shade for hover/gradients */
  --bc-primary-light:  #1C5A6E;   /* lighter tint for accents on dark */
  --bc-accent:         #98632A;   /* warm brass — CTAs, highlights (AA on white text) */
  --bc-accent-dark:    #754A1E;   /* brass hover / accent text on light bg */
  --bc-accent-light:   #E4C692;   /* pale brass tint, backgrounds */
  --bc-paper:          #F8F5EF;   /* warm off-white page background */
  --bc-paper-alt:      #EFEAE0;   /* slightly deeper warm neutral, banding */
  --bc-ink:            #16262D;   /* near-black teal for body text */
  --bc-ink-soft:       #46595F;   /* muted secondary text */
  --bc-white:          #FFFFFF;
  --bc-border:         #DCD5C6;   /* warm hairline border */
  --bc-success:        #2E7D53;

  /* ---- Type scale ---- */
  --bc-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --bc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bc-fs-h1: clamp(2.25rem, 1.7rem + 2.2vw, 3.6rem);
  --bc-fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --bc-fs-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --bc-fs-lede: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --bc-fs-body: 1rem;
  --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-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: 1200px;
  --bc-radius-sm: 4px;
  --bc-radius-md: 10px;
  --bc-radius-lg: 18px;
  --bc-shadow-sm: 0 2px 8px rgba(14, 59, 73, 0.08);
  --bc-shadow-md: 0 8px 28px rgba(14, 59, 73, 0.14);
  --bc-shadow-lg: 0 18px 48px rgba(14, 59, 73, 0.22);
}

/* =========================================================================
   Reset / base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-body);
  line-height: var(--bc-lh-body);
  color: var(--bc-ink);
  background: var(--bc-paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--bc-font-display);
  line-height: var(--bc-lh-heading);
  margin: 0 0 var(--bc-space-4);
  color: var(--bc-primary);
  font-weight: 600;
}
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); }
p { margin: 0 0 var(--bc-space-4); }
a { color: var(--bc-primary-light); }
ul, ol { padding-left: 1.25em; }

/* =========================================================================
   Container / eyebrow / buttons
   ========================================================================= */
.bc-container {
  width: 100%;
  max-width: var(--bc-container-w);
  margin: 0 auto;
  padding: 0 var(--bc-space-5);
}

.bc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--bc-space-2);
  font-family: var(--bc-font-body);
  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-space-3);
}
.bc-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--bc-accent);
  display: inline-block;
}

.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bc-space-2);
  font-family: var(--bc-font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.7em;
  border-radius: var(--bc-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.bc-btn:hover { transform: translateY(-2px); }

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

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

.bc-btn--ghost {
  background: transparent;
  color: var(--bc-white);
  border-color: rgba(255,255,255,0.6);
}
.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: 1px solid var(--bc-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-space-5);
  padding: var(--bc-space-4) 0;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--bc-space-3);
  font-family: var(--bc-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bc-primary);
  text-decoration: none;
}
.site-header__brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bc-primary);
  color: var(--bc-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bc-font-display);
  font-weight: 700;
  flex: none;
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--bc-space-6);
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  color: var(--bc-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav__list a:hover { color: var(--bc-accent-dark); }
.site-header__cta { display: flex; align-items: center; gap: var(--bc-space-4); }

.site-footer {
  background: var(--bc-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: var(--bc-space-8) 0 var(--bc-space-6);
  margin-top: var(--bc-space-9);
}
.site-footer a { color: var(--bc-accent-light); }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bc-space-6);
  margin-bottom: var(--bc-space-7);
}
.site-footer h4 {
  color: var(--bc-white);
  font-family: var(--bc-font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--bc-space-5);
  font-size: var(--bc-fs-small);
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--bc-space-3);
}

@media (max-width: 800px) {
  .site-nav__list { display: none; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header__bar { flex-wrap: wrap; row-gap: var(--bc-space-3); }
  .site-header__brand { font-size: 1.1rem; }
  .site-header__cta { flex-wrap: wrap; gap: var(--bc-space-2); }
  .site-header__cta .bc-btn { padding: 0.7em 1.1em; font-size: 0.9rem; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.bc-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
  color: var(--bc-white);
  padding: var(--bc-space-9) 0;
  overflow: hidden;
}
.bc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(185,132,60,0.28), transparent 55%);
  pointer-events: none;
}
.bc-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bc-space-7);
  align-items: center;
}
.bc-hero__eyebrow { color: var(--bc-accent-light); }
.bc-hero__eyebrow::before { background: var(--bc-accent-light); }
.bc-hero h1 { color: var(--bc-white); }
.bc-hero h2, .bc-hero h3, .bc-hero h4 { color: var(--bc-white); }
.bc-hero a:not(.bc-btn) { color: var(--bc-white); text-decoration: underline; }
.bc-hero .bc-eyebrow { color: var(--bc-accent-light); }
.bc-hero .bc-eyebrow::before { background: var(--bc-accent-light); }
.bc-hero__lede {
  font-size: var(--bc-fs-lede);
  color: rgba(255,255,255,0.85);
  max-width: 44ch;
}
.bc-hero__actions {
  display: flex;
  gap: var(--bc-space-4);
  margin-top: var(--bc-space-6);
  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.15);
}
.bc-hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.bc-hero__stats {
  display: flex;
  gap: var(--bc-space-6);
  margin-top: var(--bc-space-7);
  flex-wrap: wrap;
}
.bc-hero__stat { border-left: 2px solid var(--bc-accent); padding-left: var(--bc-space-3); }
.bc-hero__stat strong { display: block; font-family: var(--bc-font-display); font-size: 1.5rem; color: var(--bc-white); }
.bc-hero__stat span { font-size: var(--bc-fs-small); color: rgba(255,255,255,0.7); }

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

/* =========================================================================
   Prose
   ========================================================================= */
.bc-prose {
  padding: var(--bc-space-8) 0;
}
.bc-prose__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bc-space-6);
}
.bc-prose__body { max-width: 68ch; }
.bc-prose__body p { color: var(--bc-ink-soft); }

.bc-prose--with-image .bc-prose__grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--bc-space-7);
}
.bc-prose--with-image .bc-prose__img {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-md);
}
.bc-prose--with-image .bc-prose__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.bc-prose--has-color {
  background: var(--bc-paper-alt);
}
.bc-prose--dark {
  background: var(--bc-primary);
  color: var(--bc-white);
}
.bc-prose--dark h1, .bc-prose--dark h2, .bc-prose--dark h3, .bc-prose--dark h4 { color: var(--bc-white); }
.bc-prose--dark .bc-prose__body p { color: rgba(255,255,255,0.8); }
.bc-prose--dark a:not(.bc-btn) { color: var(--bc-accent-light); }
.bc-prose--dark .bc-eyebrow { color: var(--bc-accent-light); }
.bc-prose--dark .bc-eyebrow::before { background: var(--bc-accent-light); }

@media (max-width: 800px) {
  .bc-prose--with-image .bc-prose__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Grid (services / features)
   ========================================================================= */
.bc-grid {
  padding: var(--bc-space-8) 0;
}
.bc-grid__head {
  max-width: 62ch;
  margin-bottom: var(--bc-space-7);
}
.bc-grid__cards {
  display: grid;
  gap: var(--bc-space-5);
  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--2col .bc-grid__cards { grid-template-columns: repeat(2, 1fr); }

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

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

.bc-grid--text-only .bc-grid__card { padding: var(--bc-space-6) var(--bc-space-5); }
.bc-grid--imaged .bc-grid__card { padding-top: 0; }

.bc-grid__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bc-accent-light);
  color: var(--bc-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bc-font-display);
  font-weight: 700;
  margin-bottom: var(--bc-space-4);
}

@media (max-width: 900px) {
  .bc-grid--3col .bc-grid__cards,
  .bc-grid--4col .bc-grid__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .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: var(--bc-space-8) 0; background: var(--bc-paper-alt); }
.bc-faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-3);
}
.bc-faq__item {
  background: var(--bc-white);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-5);
}
.bc-faq__q {
  margin: 0;
  font-family: var(--bc-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bc-primary);
  display: flex;
  align-items: baseline;
  gap: var(--bc-space-3);
}
.bc-faq__q::before { content: 'Q.'; color: var(--bc-accent-dark); font-weight: 800; }
.bc-faq__a {
  margin: var(--bc-space-3) 0 0;
  color: var(--bc-ink-soft);
  padding-left: 1.6em;
}

/* =========================================================================
   Gallery
   ========================================================================= */
.bc-gallery { padding: var(--bc-space-8) 0; }
.bc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 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; transition: transform 0.3s ease; }
.bc-gallery__cell:hover img { transform: scale(1.05); }
.bc-gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--bc-space-3) var(--bc-space-4);
  background: rgba(8,38,49,0.92);
  color: var(--bc-white);
  font-size: var(--bc-fs-small);
  font-weight: 600;
}
@media (max-width: 700px) {
  .bc-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   Video
   ========================================================================= */
.bc-video { padding: var(--bc-space-8) 0; }
.bc-video__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-space-7);
  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);
  background: var(--bc-ink);
}
.bc-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.bc-video__frame iframe,
.bc-video__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
@media (max-width: 860px) {
  .bc-video__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Map
   ========================================================================= */
.bc-map { padding: var(--bc-space-8) 0; background: var(--bc-paper-alt); }
.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;
  justify-content: center;
}
.bc-map__info h2, .bc-map__info h3, .bc-map__info h4 { color: var(--bc-white); }
.bc-map__info a:not(.bc-btn) { color: var(--bc-accent-light); }
.bc-map__info .bc-eyebrow { color: var(--bc-accent-light); }
.bc-map__info .bc-eyebrow::before { background: var(--bc-accent-light); }
.bc-map__addr {
  font-style: normal;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--bc-space-5);
  line-height: 1.7;
}
.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%; border: 0; min-height: 320px; }
@media (max-width: 860px) {
  .bc-map__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Testimonial
   ========================================================================= */
.bc-testimonial { padding: var(--bc-space-8) 0; }
.bc-testimonial__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-space-5);
}
.bc-testimonial__card {
  background: var(--bc-white);
  border-top: 3px solid var(--bc-accent);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-6);
  box-shadow: var(--bc-shadow-sm);
}
.bc-testimonial__quote {
  font-family: var(--bc-font-display);
  font-size: 1.1rem;
  color: var(--bc-ink);
  margin-bottom: var(--bc-space-4);
}
.bc-testimonial__stars { color: var(--bc-accent-dark); letter-spacing: 0.15em; margin-bottom: var(--bc-space-3); font-size: 0.9rem; }
.bc-testimonial__author { font-weight: 700; color: var(--bc-primary); font-size: var(--bc-fs-small); }
.bc-testimonial__role { color: var(--bc-ink-soft); font-size: var(--bc-fs-small); }
@media (max-width: 860px) {
  .bc-testimonial__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Form band
   ========================================================================= */
.bc-formband {
  padding: var(--bc-space-9) 0;
  background: var(--bc-primary);
  color: var(--bc-white);
}
.bc-formband__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-space-8);
  align-items: start;
}
.bc-formband__title { color: var(--bc-white); }
.bc-formband__lede { color: rgba(255,255,255,0.82); max-width: 42ch; }
.bc-formband h1, .bc-formband h2, .bc-formband h3, .bc-formband h4 { color: var(--bc-white); }
.bc-formband a:not(.bc-btn) { color: var(--bc-accent-light); }
.bc-formband .bc-eyebrow { color: var(--bc-accent-light); }
.bc-formband .bc-eyebrow::before { background: var(--bc-accent-light); }
.bc-formband__form {
  background: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  padding: var(--bc-space-6);
  box-shadow: var(--bc-shadow-lg);
  display: grid;
  gap: var(--bc-space-4);
}

.bc-form-field { display: flex; flex-direction: column; gap: var(--bc-space-2); }
.bc-form-field label {
  font-size: var(--bc-fs-small);
  font-weight: 700;
  color: var(--bc-ink);
}
.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-family: var(--bc-font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1px 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: 2px solid var(--bc-accent);
  outline-offset: 1px;
  border-color: var(--bc-accent);
}

.bc-formband--intro { padding-top: var(--bc-space-7); }
.bc-formband--final {
  background: linear-gradient(135deg, var(--bc-primary-dark), var(--bc-primary));
  text-align: center;
}
.bc-formband--final .bc-formband__grid { grid-template-columns: 1fr; justify-items: center; }
.bc-formband--final .bc-formband__form { width: 100%; max-width: 560px; }
.bc-formband--final .bc-formband__lede { margin-left: auto; margin-right: auto; }

@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;
}
