/* =========================================================================
   Pergolas Central Coast — Locked Component Library (bc-* namespace)
   Industry: pergolas / outdoor structures / carpentry
   Location: Central Coast, NSW
   Palette: warm timber (cedar/jarrah) + eucalyptus green + sandstone paper
   ========================================================================= */

:root{
  /* ---- Brand colour tokens ---- */
  --bc-primary:        #7A4626;   /* cedar timber brown — headers, nav, primary actions */
  --bc-primary-dark:   #55301A;   /* deep jarrah — hovers, footer, dark bands */
  --bc-primary-light:  #A9744C;   /* light oak — borders, subtle fills */
  --bc-accent:         #A85F1E;   /* burnt-orange stain — CTAs, highlights */
  --bc-accent-dark:    #8F4F17;
  --bc-forest:         #3E5B44;   /* eucalyptus green — secondary accent / dark sections */
  --bc-forest-dark:    #2B4130;
  --bc-ink:            #2A2117;   /* warm near-black — body text */
  --bc-ink-soft:       #5B4E3F;   /* muted body text */
  --bc-paper:          #FAF6EE;   /* warm sand — page background */
  --bc-paper-alt:      #F1E7D4;   /* deeper sand — alternating section bg */
  --bc-paper-card:     #FFFFFF;   /* card surfaces */
  --bc-line:           #E1D3B8;   /* hairlines / borders */
  --bc-line-strong:    #C9B58F;
  --bc-white:          #FFFFFF;
  --bc-shadow:         0 6px 20px rgba(42,33,23,0.12);
  --bc-shadow-sm:      0 2px 8px rgba(42,33,23,0.10);

  /* ---- Typography ---- */
  --bc-font-head: Georgia, "Iowan Old Style", "Palatino Linotype", "URW Palladio L", serif;
  --bc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bc-fs-h1: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --bc-fs-h2: clamp(1.6rem, 1.35rem + 1.2vw, 2.35rem);
  --bc-fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --bc-fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --bc-fs-body: 1rem;
  --bc-fs-small: 0.875rem;
  --bc-lh-head: 1.15;
  --bc-lh-body: 1.65;

  /* ---- Spacing scale ---- */
  --bc-sp-1: 0.25rem;
  --bc-sp-2: 0.5rem;
  --bc-sp-3: 0.875rem;
  --bc-sp-4: 1.25rem;
  --bc-sp-5: 2rem;
  --bc-sp-6: 3rem;
  --bc-sp-7: 4.5rem;
  --bc-sp-8: 6.5rem;

  /* ---- Layout ---- */
  --bc-container: 1180px;
  --bc-radius-sm: 6px;
  --bc-radius: 12px;
  --bc-radius-lg: 20px;
}

/* =========================================================================
   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-body);
  line-height: var(--bc-lh-body);
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: var(--bc-primary); }
h1,h2,h3,h4{
  font-family: var(--bc-font-head);
  line-height: var(--bc-lh-head);
  margin: 0 0 var(--bc-sp-3);
  color: var(--bc-primary-dark);
  font-weight: 700;
}
h1{ font-size: var(--bc-fs-h1); }
h2{ font-size: var(--bc-fs-h2); }
h3{ font-size: var(--bc-fs-h3); }
p{ margin: 0 0 var(--bc-sp-4); }
ul, ol{ margin: 0 0 var(--bc-sp-4); padding-left: 1.25em; }

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

.bc-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: var(--bc-sp-2);
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-small);
  font-weight: 700;
  letter-spacing: 0.09em;
  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;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.bc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bc-sp-2);
  padding: 0.85em 1.7em;
  border-radius: var(--bc-radius-sm);
  font-family: var(--bc-font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  line-height: 1.1;
}
.bc-btn:hover{ transform: translateY(-1px); }
.bc-btn:focus-visible{ outline: 3px solid var(--bc-accent-dark); 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); }

.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); }

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

.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-line);
  position: relative;
  z-index: 40;
}
.site-header__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-sp-4);
  padding: var(--bc-sp-3) 0;
}
.site-header__logo{
  display: flex;
  align-items: center;
  gap: var(--bc-sp-2);
  font-family: var(--bc-font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--bc-primary-dark);
  text-decoration: none;
}
.site-header__logo strong{ color: var(--bc-accent-dark); }

.site-nav{ display: flex; }
.site-nav__list{
  display: flex;
  align-items: center;
  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: 0.95rem;
}
.site-nav__list a:hover{ color: var(--bc-accent-dark); }

.site-footer{
  background: var(--bc-primary-dark);
  color: #EFE3D2;
  padding: var(--bc-sp-7) 0 var(--bc-sp-5);
}
.site-footer a{ color: #F4D9B4; }
.site-footer__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bc-sp-6);
}
.site-footer h4{
  color: var(--bc-white);
  font-family: var(--bc-font-body);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.site-footer__list{ list-style: none; margin: 0; padding: 0; }
.site-footer__list li{ margin-bottom: var(--bc-sp-2); }
.site-footer__bottom{
  margin-top: var(--bc-sp-6);
  padding-top: var(--bc-sp-4);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: var(--bc-fs-small);
  color: #D8C4A6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--bc-sp-2);
}

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

/* =========================================================================
   Hero
   ========================================================================= */
.bc-hero{
  position: relative;
  background: linear-gradient(135deg, var(--bc-primary-dark) 0%, var(--bc-primary) 55%, var(--bc-forest-dark) 130%);
  color: var(--bc-white);
  padding: var(--bc-sp-8) 0;
  overflow: hidden;
}
.bc-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(201,122,43,0.35), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.bc-hero__inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bc-sp-6);
  align-items: center;
}
.bc-hero__eyebrow{ color: #F4D9B4; }
.bc-hero__eyebrow::before{ background: #F4D9B4; }
.bc-hero h1{ color: var(--bc-white); }
.bc-hero__lead{
  font-size: var(--bc-fs-lead);
  color: #F0E4D3;
  max-width: 46ch;
}
.bc-hero__actions{
  display: flex;
  gap: var(--bc-sp-3);
  flex-wrap: wrap;
  margin-top: var(--bc-sp-5);
}
.bc-hero__media{
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow);
  border: 1px solid rgba(255,255,255,0.25);
}
.bc-hero__media img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

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

/* =========================================================================
   Prose
   ========================================================================= */
.bc-prose{
  padding: var(--bc-sp-7) 0;
}
.bc-prose__inner{ max-width: 74ch; }
.bc-prose--has-color{
  background: var(--bc-paper-alt);
}
.bc-prose--dark{
  background: var(--bc-forest-dark);
  color: #EAF1E7;
}
.bc-prose--dark h2, .bc-prose--dark h3{ color: var(--bc-white); }
.bc-prose--dark a{ color: #C9E4C5; }
.bc-prose--with-image .bc-prose__inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-6);
  align-items: center;
  max-width: none;
}
.bc-prose--with-image .bc-prose__img{
  border-radius: var(--bc-radius);
  overflow: hidden;
  box-shadow: var(--bc-shadow-sm);
}
.bc-prose--with-image .bc-prose__img img{ width: 100%; height: 100%; object-fit: cover; }

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

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

.bc-grid__card{
  background: var(--bc-paper-card);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  padding: var(--bc-sp-5);
  box-shadow: var(--bc-shadow-sm);
}
.bc-grid--imaged .bc-grid__card{ padding: 0; overflow: hidden; }
.bc-grid__card-img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.bc-grid--imaged .bc-grid__card-body{ padding: var(--bc-sp-4) var(--bc-sp-5) var(--bc-sp-5); }
.bc-grid--text-only .bc-grid__card{ background: transparent; border: none; box-shadow: none; padding: 0; }

.bc-grid__icon{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bc-paper-alt);
  color: var(--bc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--bc-sp-3);
}
.bc-grid__card h3{ font-size: 1.15rem; margin-bottom: var(--bc-sp-2); }
.bc-grid__card p{ color: var(--bc-ink-soft); margin-bottom: 0; font-size: 0.97rem; }

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

/* =========================================================================
   FAQ
   ========================================================================= */
.bc-faq{ padding: var(--bc-sp-7) 0; background: var(--bc-paper-alt); }
.bc-faq__head{ max-width: 60ch; margin-bottom: var(--bc-sp-6); }
.bc-faq__list{ max-width: 800px; display: flex; flex-direction: column; gap: var(--bc-sp-3); }
.bc-faq__item{
  background: var(--bc-paper-card);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  padding: var(--bc-sp-4) var(--bc-sp-5);
}
.bc-faq__q{
  margin: 0;
  font-family: var(--bc-font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--bc-primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-sp-3);
  cursor: pointer;
}
.bc-faq__q::after{
  content: "+";
  color: var(--bc-accent);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.bc-faq__a{
  margin: var(--bc-sp-2) 0 0;
  color: var(--bc-ink-soft);
  font-size: 0.97rem;
}

/* =========================================================================
   Gallery
   ========================================================================= */
.bc-gallery{ padding: var(--bc-sp-7) 0; }
.bc-gallery__head{ max-width: 60ch; margin-bottom: var(--bc-sp-6); }
.bc-gallery__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bc-sp-3);
}
.bc-gallery__cell{
  position: relative;
  border-radius: var(--bc-radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bc-paper-alt);
}
.bc-gallery__cell img{ width: 100%; height: 100%; object-fit: cover; }
.bc-gallery__caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--bc-sp-2) var(--bc-sp-3);
  background: linear-gradient(0deg, rgba(42,33,23,0.85), transparent);
  color: var(--bc-white);
  font-size: var(--bc-fs-small);
  font-weight: 600;
}
@media (max-width: 860px){ .bc-gallery__grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){ .bc-gallery__grid{ grid-template-columns: repeat(2, 1fr); } }

/* =========================================================================
   Video
   ========================================================================= */
.bc-video{ padding: var(--bc-sp-7) 0; background: var(--bc-forest-dark); color: #EAF1E7; }
.bc-video h2{ color: var(--bc-white); }
.bc-video__grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--bc-sp-6);
  align-items: center;
}
.bc-video__copy p{ color: #D6E4D2; }
.bc-video__frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--bc-radius);
  overflow: hidden;
  box-shadow: var(--bc-shadow);
  background: #14201A;
}
.bc-video__frame iframe, .bc-video__frame img{
  width: 100%; height: 100%; border: 0; object-fit: cover;
}
@media (max-width: 820px){ .bc-video__grid{ grid-template-columns: 1fr; } }

/* =========================================================================
   Map
   ========================================================================= */
.bc-map{ padding: var(--bc-sp-7) 0; }
.bc-map__grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--bc-sp-6);
  align-items: stretch;
}
.bc-map__info{
  background: var(--bc-paper-card);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  padding: var(--bc-sp-5);
}
.bc-map__addr{
  font-style: normal;
  color: var(--bc-ink-soft);
  line-height: 1.8;
}
.bc-map__addr strong{ display: block; color: var(--bc-primary-dark); font-size: 1.05rem; }
.bc-map__frame{
  border-radius: var(--bc-radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--bc-line);
}
.bc-map__frame iframe{ width: 100%; height: 100%; min-height: 320px; border: 0; }
@media (max-width: 820px){ .bc-map__grid{ grid-template-columns: 1fr; } }

/* =========================================================================
   Testimonial
   ========================================================================= */
.bc-testimonial{ padding: var(--bc-sp-7) 0; background: var(--bc-paper-alt); }
.bc-testimonial__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-sp-5);
}
.bc-testimonial__card{
  background: var(--bc-paper-card);
  border-radius: var(--bc-radius);
  padding: var(--bc-sp-5);
  box-shadow: var(--bc-shadow-sm);
  border-top: 4px solid var(--bc-accent);
}
.bc-testimonial__quote{
  margin: 0 0 var(--bc-sp-4);
  color: var(--bc-ink);
  font-size: 1rem;
}
.bc-testimonial__stars{ color: var(--bc-accent); margin-bottom: var(--bc-sp-3); letter-spacing: 0.15em; }
.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); color: var(--bc-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--bc-font-head);
}
.bc-testimonial__name{ font-weight: 700; color: var(--bc-primary-dark); font-size: 0.95rem; }
.bc-testimonial__loc{ font-size: var(--bc-fs-small); color: var(--bc-ink-soft); }

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

/* =========================================================================
   Form band (lead capture)
   ========================================================================= */
.bc-formband{
  padding: var(--bc-sp-7) 0;
  background: var(--bc-primary-dark);
  color: var(--bc-white);
}
.bc-formband--intro{ background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-forest-dark) 100%); }
.bc-formband--final{ background: var(--bc-forest-dark); }

.bc-formband__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-6);
  align-items: center;
}
.bc-formband__title{ color: var(--bc-white); }
.bc-formband__lede{ color: #EBD9C2; max-width: 46ch; }

.bc-formband__form{
  background: var(--bc-paper-card);
  color: var(--bc-ink);
  border-radius: var(--bc-radius);
  padding: var(--bc-sp-5);
  box-shadow: var(--bc-shadow);
  display: grid;
  gap: var(--bc-sp-4);
}

.bc-form-field{ display: flex; flex-direction: column; gap: var(--bc-sp-1); }
.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: inherit;
  padding: 0.7em 0.85em;
  border: 1px solid var(--bc-line-strong);
  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-form-field textarea{ resize: vertical; min-height: 90px; }

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