/* ==========================================================================
   Bathroom Renovations Cairns — Locked Component Library
   Design intent: tropical Far North Queensland luxury. A deep lagoon-teal
   primary (reef water off Cairns) paired with a warm terracotta/sunset
   accent, on a warm sand paper ground. Serif display type signals bathroom
   renovation "luxury" positioning; humanist sans body for trustworthy,
   easy-to-read service copy.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* ---- Brand colour tokens ---- */
  --bc-primary:        #0B6E76; /* deep lagoon teal */
  --bc-primary-dark:   #05464C; /* shadowed teal, headers/footers */
  --bc-primary-light:  #E3F1F1; /* pale teal tint for surfaces */
  --bc-accent:         #E2874A; /* tropical sunset terracotta */
  --bc-accent-dark:    #8F4A20; /* pressed/hover state — AA-safe on white and paper */
  --bc-accent-onDark:  #FFFBF6; /* accent text tint for use on dark surfaces — AA-safe against primary/primary-dark/hero gradient */
  --bc-accent-light:   #FBE6D4; /* soft accent tint */
  --bc-gold:           #A67C2E; /* restrained luxury highlight (badges, dividers) — AA-safe */

  --bc-paper:          #FBF8F2; /* warm sand background */
  --bc-paper-alt:      #F3ECDF; /* deeper sand for banded sections */
  --bc-surface:        #FFFFFF; /* card surface */
  --bc-ink:             #1C2A2B; /* near-black teal, primary text */
  --bc-ink-soft:        #4A5B5C; /* secondary text */
  --bc-ink-faint:       #7C8C8C; /* muted/meta text */
  --bc-line:            #E1D8C6; /* hairline borders on paper */
  --bc-line-dark:       rgba(255,255,255,0.18); /* hairline on dark surfaces */

  --bc-success:        #2E7D4F;
  --bc-error:          #B3432F;

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

  --bc-fs-sm:   0.875rem;
  --bc-fs-base: 1rem;
  --bc-fs-md:   1.125rem;
  --bc-fs-lg:   1.3rem;
  --bc-fs-xl:   1.65rem;
  --bc-fs-2xl:  2.1rem;
  --bc-fs-3xl:  2.65rem;
  --bc-fs-hero: clamp(2.25rem, 5vw + 1rem, 3.5rem);

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

  /* ---- Spacing 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 2px 8px rgba(28,42,43,0.08);
  --bc-shadow-md: 0 8px 24px rgba(28,42,43,0.12);
  --bc-shadow-lg: 0 16px 48px rgba(28,42,43,0.18);
  --bc-container-w: 1180px;
  --bc-transition: 180ms ease;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-base);
  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);
  font-weight: 600;
  line-height: var(--bc-lh-tight);
  margin: 0 0 var(--bc-sp-4);
  color: var(--bc-ink);
}
h1{ font-size: var(--bc-fs-hero); font-weight: 600; }
h2{ font-size: var(--bc-fs-2xl); }
h3{ font-size: var(--bc-fs-xl); }
h4{ font-size: var(--bc-fs-lg); }
p{ margin: 0 0 var(--bc-sp-4); }
a{ color: var(--bc-primary); text-decoration-thickness: 1.5px; }
a:hover{ color: var(--bc-accent-dark); }
ul,ol{ margin: 0 0 var(--bc-sp-4); padding-left: 1.25em; }

/* ==========================================================================
   Container / 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-body);
  font-size: var(--bc-fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bc-accent-dark);
  margin: 0 0 var(--bc-sp-3);
}
.bc-eyebrow::before{
  content: "";
  width: 22px;
  height: 2px;
  background: var(--bc-accent);
  display: inline-block;
}
.bc-eyebrow--onDark{ color: var(--bc-accent-onDark); }
.bc-eyebrow--onDark::before{ background: var(--bc-accent-onDark); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.bc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bc-sp-2);
  font-family: var(--bc-font-body);
  font-weight: 600;
  font-size: var(--bc-fs-base);
  line-height: 1;
  padding: 0.95em 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--primary{
  background: var(--bc-primary);
  color: #FFFFFF;
  border-color: var(--bc-primary);
}
.bc-btn--primary:hover{ background: var(--bc-primary-dark); border-color: var(--bc-primary-dark); color: #fff; }

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

.bc-btn--ghost{
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.6);
}
.bc-btn--ghost:hover{ background: rgba(255,255,255,0.14); border-color: #fff; color: #fff; }

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

/* ==========================================================================
   Site shell — header / nav / footer
   ========================================================================== */
.site-header{
  background: var(--bc-surface);
  border-bottom: 1px solid var(--bc-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.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{
  font-family: var(--bc-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--bc-primary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--bc-sp-2);
}
.site-header__logo span{ color: var(--bc-accent-dark); }

.site-nav{ display: flex; align-items: center; gap: var(--bc-sp-6); }
.site-nav__list{
  display: flex;
  gap: var(--bc-sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a{
  color: var(--bc-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--bc-fs-sm);
  letter-spacing: 0.02em;
}
.site-nav__list a:hover{ color: var(--bc-primary); }
.site-nav__cta{ display: flex; align-items: center; gap: var(--bc-sp-4); }
.site-nav__phone{
  font-weight: 700;
  color: var(--bc-primary-dark);
  text-decoration: none;
  font-size: var(--bc-fs-md);
}

.site-footer{
  background: var(--bc-primary-dark);
  color: #EAF3F2;
  padding-block: var(--bc-sp-8) var(--bc-sp-6);
}
.site-footer a{ color: #EAF3F2; }
.site-footer a:hover{ color: var(--bc-accent); }
.site-footer__grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--bc-sp-6);
  padding-bottom: var(--bc-sp-6);
  border-bottom: 1px solid var(--bc-line-dark);
}
.site-footer__heading{
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bc-accent-onDark);
  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: var(--bc-fs-sm); }
.site-footer__bottom{
  padding-top: var(--bc-sp-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--bc-sp-2);
  font-size: var(--bc-fs-sm);
  color: #BFD6D4;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.bc-hero{
  position: relative;
  background: linear-gradient(155deg, var(--bc-primary-dark) 0%, var(--bc-primary) 62%, #0E8088 100%);
  color: #FFFFFF;
  padding-block: var(--bc-sp-9) var(--bc-sp-8);
  overflow: hidden;
}
.bc-hero::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(600px 400px at 85% 20%, rgba(226,135,74,0.35), transparent 70%);
  pointer-events:none;
}
.bc-hero__grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bc-sp-8);
  align-items: center;
}
.bc-hero__title{ color: #fff; margin-bottom: var(--bc-sp-4); }
.bc-hero__lede{
  font-size: var(--bc-fs-md);
  color: #DDEFEE;
  max-width: 46ch;
  margin-bottom: var(--bc-sp-6);
}
.bc-hero__actions{ display: flex; gap: var(--bc-sp-4); flex-wrap: wrap; }
.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.15);
}
.bc-hero__media img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.bc-hero__badges{
  display:flex; gap: var(--bc-sp-5); margin-top: var(--bc-sp-7);
  padding-top: var(--bc-sp-6); border-top: 1px solid var(--bc-line-dark);
  flex-wrap: wrap;
}
.bc-hero__badge{ font-size: var(--bc-fs-sm); color:#DDEFEE; display:flex; align-items:center; gap: var(--bc-sp-2); }
.bc-hero__badge strong{ color:#fff; font-family: var(--bc-font-display); font-size: var(--bc-fs-lg); }

/* ==========================================================================
   Prose
   ========================================================================== */
.bc-prose{ padding-block: var(--bc-sp-8); }
.bc-prose__inner{ max-width: 72ch; }
.bc-prose--has-color{ background: var(--bc-paper-alt); }
.bc-prose--dark{ background: var(--bc-primary-dark); color: #EAF3F2; }
.bc-prose--dark h2, .bc-prose--dark h3{ color: #fff; }
.bc-prose--dark .bc-eyebrow{ color: var(--bc-accent-onDark); }
.bc-prose--dark .bc-eyebrow::before{ background: var(--bc-accent-onDark); }
.bc-prose--with-image .bc-prose__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-7);
  align-items: center;
  max-width: none;
}
.bc-prose--with-image .bc-prose__img{
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  box-shadow: var(--bc-shadow-md);
}
.bc-prose--with-image .bc-prose__img img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 4/3; }

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

.bc-grid__card{
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-sp-5);
  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-img{
  border-radius: var(--bc-radius-sm);
  overflow: hidden;
  margin-bottom: var(--bc-sp-4);
  aspect-ratio: 16/10;
}
.bc-grid__card-img img{ width:100%; height:100%; object-fit:cover; }
.bc-grid__card h3{ font-size: var(--bc-fs-md); margin-bottom: var(--bc-sp-2); }
.bc-grid__card p{ color: var(--bc-ink-soft); font-size: var(--bc-fs-sm); margin-bottom: 0; }
.bc-grid__icon{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bc-primary-light);
  color: var(--bc-primary);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.3rem;
  margin-bottom: var(--bc-sp-4);
}
.bc-grid--imaged .bc-grid__card{ padding: 0; overflow: hidden; }
.bc-grid--imaged .bc-grid__card-img{ margin-bottom: 0; border-radius: 0; }
.bc-grid--imaged .bc-grid__card-body{ padding: var(--bc-sp-5); }
.bc-grid--text-only .bc-grid__card-img{ display: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.bc-faq{ padding-block: var(--bc-sp-8); background: var(--bc-paper-alt); }
.bc-faq__inner{ max-width: 78ch; margin-inline: auto; }
.bc-faq__list{ display: grid; gap: var(--bc-sp-4); }
.bc-faq__item{
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-sp-5);
}
.bc-faq__q{
  font-family: var(--bc-font-display);
  font-weight: 600;
  font-size: var(--bc-fs-md);
  margin: 0 0 var(--bc-sp-2);
  color: var(--bc-primary-dark);
  display: flex;
  gap: var(--bc-sp-3);
  align-items: baseline;
}
.bc-faq__q::before{ content: "Q."; color: var(--bc-accent); font-weight: 700; }
.bc-faq__a{ margin: 0; color: var(--bc-ink-soft); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.bc-gallery{ padding-block: var(--bc-sp-8); }
.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%; height:100%; object-fit:cover; aspect-ratio: 4/3; }
.bc-gallery__caption{
  position:absolute; left:0; right:0; bottom:0;
  background: linear-gradient(0deg, rgba(5,70,76,0.88), transparent);
  color:#fff;
  padding: var(--bc-sp-4) var(--bc-sp-3) var(--bc-sp-2);
  font-size: var(--bc-fs-sm);
  font-weight: 600;
}

/* ==========================================================================
   Video
   ========================================================================== */
.bc-video{ padding-block: var(--bc-sp-8); background: var(--bc-primary-dark); color:#EAF3F2; }
.bc-video__grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-sp-7);
  align-items: center;
}
.bc-video__copy h2{ color:#fff; }
.bc-video__copy .bc-eyebrow{ color: var(--bc-accent-onDark); }
.bc-video__copy .bc-eyebrow::before{ background: var(--bc-accent-onDark); }
.bc-video__player{
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-lg);
}
.bc-video__frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #06282A;
}
.bc-video__frame iframe{ width:100%; height:100%; border:0; display:block; }

/* ==========================================================================
   Map
   ========================================================================== */
.bc-map{ padding-block: var(--bc-sp-8); }
.bc-map__grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--bc-sp-6);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  background: var(--bc-surface);
}
.bc-map__info{ padding: var(--bc-sp-6); }
.bc-map__addr{ font-style: normal; color: var(--bc-ink-soft); margin-bottom: var(--bc-sp-4); line-height: var(--bc-lh-snug); }
.bc-map__frame{ min-height: 320px; }
.bc-map__frame iframe{ width:100%; height:100%; border:0; display:block; min-height:320px; }

/* ==========================================================================
   Testimonial
   ========================================================================== */
.bc-testimonial{ padding-block: var(--bc-sp-8); }
.bc-testimonial__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-sp-5);
}
.bc-testimonial__card{
  background: var(--bc-surface);
  border-radius: var(--bc-radius-md);
  border: 1px solid var(--bc-line);
  padding: var(--bc-sp-5);
  box-shadow: var(--bc-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--bc-sp-3);
}
.bc-testimonial__stars{ color: var(--bc-gold); letter-spacing: 0.15em; font-size: var(--bc-fs-md); }
.bc-testimonial__quote{ color: var(--bc-ink); font-style: italic; margin: 0; }
.bc-testimonial__author{ display:flex; align-items:center; gap: var(--bc-sp-3); margin-top:auto; }
.bc-testimonial__avatar{
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bc-primary-light); color: var(--bc-primary-dark);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-family: var(--bc-font-display);
}
.bc-testimonial__name{ font-weight: 700; font-size: var(--bc-fs-sm); color: var(--bc-ink); }
.bc-testimonial__loc{ font-size: var(--bc-fs-sm); color: var(--bc-ink-faint); }

/* ==========================================================================
   Form band
   ========================================================================== */
.bc-formband{ padding-block: var(--bc-sp-9); background: var(--bc-primary-dark); color: #EAF3F2; }
.bc-formband--intro{ background: linear-gradient(155deg, var(--bc-primary-dark), var(--bc-primary)); }
.bc-formband--final{ background: var(--bc-ink); }
.bc-formband__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-8);
  align-items: start;
}
.bc-formband__title{ color: #fff; margin-bottom: var(--bc-sp-3); }
.bc-formband__lede{ color: #DDEFEE; max-width: 44ch; }
.bc-formband__form{
  background: var(--bc-surface);
  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: var(--bc-fs-sm);
  font-weight: 600;
  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: inherit;
  padding: 0.7em 0.9em;
  border-radius: var(--bc-radius-sm);
  border: 1.5px solid var(--bc-line);
  background: var(--bc-paper);
  color: var(--bc-ink);
  transition: border-color var(--bc-transition);
}
.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-light);
}
.bc-form-field textarea{ min-height: 110px; resize: vertical; }

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

@media (max-width: 640px){
  .site-nav__list{ display: none; }
  .bc-grid__row,
  .bc-grid--2col .bc-grid__row,
  .bc-grid--3col .bc-grid__row,
  .bc-grid--4col .bc-grid__row{ grid-template-columns: 1fr; }
  .bc-gallery__grid{ grid-template-columns: 1fr; }
  .site-footer__grid{ grid-template-columns: 1fr; gap: var(--bc-sp-5); }
  .bc-hero{ padding-block: var(--bc-sp-8) var(--bc-sp-7); }
  .bc-hero__badges{ gap: var(--bc-sp-4); }
  .bc-container{ padding-inline: var(--bc-sp-4); }
}

/* ==========================================================================
   Dark-context safety net — post-QA fix (2026-08-09).
   Any heading/link authored inside a dark-background section (hero, video,
   prose--dark, formband) without an explicit light-text class must still
   clear AA contrast. These overrides win on specificity over the global
   h3/h4/a rules without needing per-page authoring discipline.
   ========================================================================== */
.bc-hero h2, .bc-hero h3, .bc-hero h4,
.bc-video h3, .bc-video h4,
.bc-prose--dark h4,
.bc-formband h2, .bc-formband h3, .bc-formband h4{ color: #fff; }

.bc-hero a:not(.bc-btn),
.bc-video a:not(.bc-btn),
.bc-prose--dark a:not(.bc-btn),
.bc-formband a:not(.bc-btn){ color: var(--bc-accent-onDark); text-decoration-color: currentColor; }
.bc-hero a:not(.bc-btn):hover,
.bc-video a:not(.bc-btn):hover,
.bc-prose--dark a:not(.bc-btn):hover,
.bc-formband a:not(.bc-btn):hover{ color: #fff; }
