/* ==========================================================================
   Carports Central Coast Elite — Component Library
   Industry: outdoor steel structures (carports/patios) — Central Coast, NSW
   Palette concept: Colorbond steel navy + sun-baked clay rust, on warm
   sandstone paper — reads as tradesman-grade, coastal, durable steelwork.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root{
  /* ---- Brand tokens ---- */
  --bc-primary: #1F2E3D;        /* steel navy — headers, headings, footer */
  --bc-primary-dark: #16212C;   /* deepest navy — footer bg, hover */
  --bc-primary-light: #33475C;  /* lifted navy — panels on dark */
  --bc-accent: #B8461C;         /* sun-clay rust — CTAs, links, highlights */
  --bc-accent-dark: #8F3614;    /* rust hover/active */
  --bc-accent-light: #E3E7EA;   /* pale accent tint bg (chips) */

  --bc-paper: #F7F4EE;          /* warm sandstone page bg */
  --bc-paper-alt: #EFE8DA;      /* deeper sandstone — alt section bg */
  --bc-white: #FFFFFF;

  --bc-ink: #211D1A;            /* body text on paper */
  --bc-ink-soft: #5B554C;       /* secondary/muted text on paper */
  --bc-ink-on-dark: #F4F1EA;    /* body text on navy */
  --bc-ink-on-dark-soft: #DCE1E6; /* muted text on navy */

  --bc-line: #DED5C2;           /* hairline border on paper */
  --bc-line-dark: #3C4E60;      /* hairline border on navy */

  --bc-ok: #3F7A4E;             /* success accents (form states) */
  --bc-error: #B3261E;

  /* ---- Type scale ---- */
  --bc-font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --bc-font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --bc-fs-eyebrow: 0.8125rem;
  --bc-fs-sm: 0.9375rem;
  --bc-fs-base: 1.0625rem;
  --bc-fs-lg: 1.25rem;
  --bc-fs-h4: 1.375rem;
  --bc-fs-h3: 1.75rem;
  --bc-fs-h2: 2.5rem;
  --bc-fs-h1: 3.25rem;
  --bc-lh-tight: 1.12;
  --bc-lh-head: 1.2;
  --bc-lh-body: 1.6;

  /* ---- Space 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: 4.5rem;
  --bc-sp-9: 6rem;

  --bc-radius-sm: 4px;
  --bc-radius: 8px;
  --bc-radius-lg: 14px;
  --bc-shadow: 0 6px 20px rgba(31,46,61,0.12);
  --bc-shadow-sm: 0 2px 8px rgba(31,46,61,0.10);
  --bc-container: 1180px;
}

/* ==========================================================================
   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);
}
img{ max-width: 100%; display: block; }
a{ color: var(--bc-accent-dark); text-decoration-thickness: 1.5px; }
a:hover{ color: var(--bc-accent); }
h1,h2,h3,h4{
  font-family: var(--bc-font-head);
  font-weight: 700;
  line-height: var(--bc-lh-head);
  margin: 0 0 var(--bc-sp-4);
  color: var(--bc-primary);
  letter-spacing: 0.2px;
}
h1{ font-size: var(--bc-fs-h1); line-height: var(--bc-lh-tight); font-weight: 800; }
h2{ font-size: var(--bc-fs-h2); }
h3{ font-size: var(--bc-fs-h3); }
h4{ font-size: var(--bc-fs-h4); }
p{ margin: 0 0 var(--bc-sp-4); }
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);
  margin: 0 auto;
  padding: 0 var(--bc-sp-5);
}
section{ padding: var(--bc-sp-8) 0; }
@media (max-width: 600px){
  section{ padding: var(--bc-sp-7) 0; }
  :root{ --bc-fs-h1: 2.25rem; --bc-fs-h2: 1.85rem; --bc-fs-h3: 1.4rem; }
}

.bc-eyebrow{
  display: inline-block;
  font-family: var(--bc-font-head);
  font-size: var(--bc-fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bc-accent-dark);
  margin: 0 0 var(--bc-sp-2);
}
.bc-prose--dark .bc-eyebrow,
.bc-hero .bc-eyebrow,
.bc-formband .bc-eyebrow,
.bc-map__info .bc-eyebrow{ color: #F0A879; }

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

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

.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); color: var(--bc-white); }

.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); color: var(--bc-white); 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-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header__bar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-sp-3) var(--bc-sp-5);
  padding: var(--bc-sp-3) 0;
}
.site-header__brand{
  display: flex;
  align-items: center;
  gap: var(--bc-sp-3);
  font-family: var(--bc-font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--bc-primary);
  text-decoration: none;
}
.site-header__brand span{ color: var(--bc-accent); }

.site-nav{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--bc-sp-3) var(--bc-sp-6); }
.site-nav__list{
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: var(--bc-sp-5);
}
.site-nav__list a{
  color: var(--bc-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--bc-fs-sm);
}
.site-nav__list a:hover{ color: var(--bc-accent); }
.site-nav__cta{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--bc-sp-3) var(--bc-sp-4); }
.site-nav__phone{
  font-family: var(--bc-font-head);
  font-weight: 700;
  font-size: var(--bc-fs-lg);
  color: var(--bc-primary);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__toggle{ display: none; }

@media (max-width: 860px){
  .site-nav__list{ display: none; }
  .site-nav__toggle{
    display: inline-flex;
    background: none; border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius-sm);
    padding: var(--bc-sp-2) var(--bc-sp-3);
    color: var(--bc-primary);
  }
}

.site-footer{
  background: var(--bc-primary-dark);
  color: var(--bc-ink-on-dark);
  padding: var(--bc-sp-8) 0 var(--bc-sp-5);
}
.site-footer a{ color: var(--bc-ink-on-dark); }
.site-footer a:hover{ color: #F0A879; }
.site-footer__grid{
  display: grid;
  grid-template-columns: 1.4fr 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-head);
  color: var(--bc-white);
  font-size: var(--bc-fs-lg);
  margin-bottom: var(--bc-sp-3);
}
.site-footer__list{ list-style: none; margin: 0; padding: 0; display: grid; gap: var(--bc-sp-2); }
.site-footer__bottom{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--bc-sp-2);
  padding-top: var(--bc-sp-5);
  font-size: var(--bc-fs-sm);
  color: var(--bc-ink-on-dark-soft);
}
@media (max-width: 760px){
  .site-footer__grid{ grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.bc-hero{
  background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
  color: var(--bc-ink-on-dark);
  padding: var(--bc-sp-9) 0;
  position: relative;
  overflow: hidden;
}
.bc-hero__grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bc-sp-7);
  align-items: center;
}
.bc-hero__title{ color: var(--bc-white); margin-bottom: var(--bc-sp-4); }
.bc-hero__lede{
  font-size: var(--bc-fs-lg);
  color: var(--bc-ink-on-dark-soft);
  max-width: 42em;
  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);
  border: 1px solid var(--bc-line-dark);
}
.bc-hero__media img{ width: 100%; height: 100%; object-fit: cover; }
.bc-hero__badges{
  display: flex; gap: var(--bc-sp-5); margin-top: var(--bc-sp-6);
  flex-wrap: wrap;
}
.bc-hero__badge{
  font-family: var(--bc-font-head);
  font-weight: 700;
  font-size: var(--bc-fs-sm);
  color: var(--bc-white);
  display: flex; align-items: center; gap: var(--bc-sp-2);
}
.bc-hero__badge::before{ content: "✓"; color: var(--bc-accent); font-weight: 800; }

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

/* ==========================================================================
   Prose
   ========================================================================== */
.bc-prose{ padding: var(--bc-sp-8) 0; }
.bc-prose__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bc-sp-6);
}
.bc-prose--with-image .bc-prose__grid{
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.bc-prose__media img{
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow-sm);
}
.bc-prose--has-color{ background: var(--bc-paper-alt); }
.bc-prose--dark{ background: var(--bc-primary); color: var(--bc-ink-on-dark); }
.bc-prose--dark h2, .bc-prose--dark h3, .bc-prose--dark h4{ color: var(--bc-white); }
.bc-prose--dark .bc-ink-soft, .bc-prose--dark p{ color: var(--bc-ink-on-dark-soft); }
.bc-prose--dark a:not(.bc-btn), .bc-hero a:not(.bc-btn), .bc-formband a:not(.bc-btn), .bc-map__info a:not(.bc-btn){ color: #F0A879; }
.bc-prose--dark a:not(.bc-btn):hover, .bc-hero a:not(.bc-btn):hover, .bc-formband a:not(.bc-btn):hover, .bc-map__info a:not(.bc-btn):hover{ color: var(--bc-white); }
.bc-prose__body p:last-child{ margin-bottom: 0; }

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

/* ==========================================================================
   Grid (services/features)
   ========================================================================== */
.bc-grid{ padding: var(--bc-sp-8) 0; }
.bc-grid__head{ max-width: 46em; margin-bottom: var(--bc-sp-6); }
.bc-grid__list{
  display: grid;
  gap: var(--bc-sp-5);
  grid-template-columns: repeat(2, 1fr);
}
.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-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  padding: var(--bc-sp-5);
  box-shadow: var(--bc-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--bc-sp-3);
}
.bc-grid--text-only .bc-grid__card{ padding: var(--bc-sp-5); }
.bc-grid__card-img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--bc-radius-sm);
  margin: calc(var(--bc-sp-5) * -1) calc(var(--bc-sp-5) * -1) 0;
  width: calc(100% + var(--bc-sp-5) * 2);
}
.bc-grid--imaged .bc-grid__card-img{ display: block; }
.bc-grid--text-only .bc-grid__card-img{ display: none; }
.bc-grid__card-icon{
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bc-accent-light);
  color: var(--bc-accent);
  border-radius: var(--bc-radius-sm);
  font-size: 1.4rem;
  font-weight: 800;
}
.bc-grid__card h3, .bc-grid__card h4{ margin-bottom: var(--bc-sp-2); }
.bc-grid__card p{ color: var(--bc-ink-soft); margin-bottom: 0; }

@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-8) 0; background: var(--bc-paper-alt); }
.bc-faq__head{ max-width: 44em; margin-bottom: var(--bc-sp-6); }
.bc-faq__list{ display: grid; gap: var(--bc-sp-3); max-width: 52em; }
.bc-faq__item{
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  padding: 0;
  overflow: hidden;
}
.bc-faq__q{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-sp-3);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--bc-font-head);
  font-weight: 700;
  font-size: var(--bc-fs-lg);
  color: var(--bc-primary);
  padding: var(--bc-sp-4) var(--bc-sp-5);
  cursor: pointer;
}
.bc-faq__q::after{
  content: "+";
  font-size: 1.6rem;
  color: var(--bc-accent);
  line-height: 1;
  flex: none;
}
.bc-faq__item[open] .bc-faq__q::after{ content: "\2212"; }
.bc-faq__a{
  padding: 0 var(--bc-sp-5) var(--bc-sp-5);
  color: var(--bc-ink-soft);
  margin: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.bc-gallery{ padding: var(--bc-sp-8) 0; }
.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);
  overflow: hidden;
  box-shadow: var(--bc-shadow-sm);
}
.bc-gallery__cell img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bc-gallery__caption{
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(22,33,44,0.86), rgba(22,33,44,0));
  color: var(--bc-white);
  font-size: var(--bc-fs-sm);
  font-weight: 600;
  padding: var(--bc-sp-5) var(--bc-sp-3) var(--bc-sp-2);
  margin: 0;
}
@media (max-width: 760px){
  .bc-gallery__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .bc-gallery__grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Video
   ========================================================================== */
.bc-video{ padding: var(--bc-sp-8) 0; background: var(--bc-paper-alt); }
.bc-video__grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-sp-7);
  align-items: center;
}
.bc-video__copy p{ color: var(--bc-ink-soft); }
.bc-video__player{
  position: relative;
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow);
  background: var(--bc-primary-dark);
}
.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: var(--bc-sp-8) 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-primary);
  color: var(--bc-ink-on-dark);
  border-radius: var(--bc-radius-lg);
  padding: var(--bc-sp-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--bc-sp-3);
}
.bc-map__info h2, .bc-map__info h3, .bc-map__info h4{ color: var(--bc-white); }
.bc-map__addr{
  font-style: normal;
  color: var(--bc-ink-on-dark-soft);
  line-height: 1.7;
}
.bc-map__frame{
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow-sm);
}
@media (max-width: 860px){
  .bc-map__grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.bc-testimonial{ padding: var(--bc-sp-8) 0; }
.bc-testimonial__list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-sp-5);
}
.bc-testimonial__card{
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  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-accent); letter-spacing: 0.15em; font-size: var(--bc-fs-lg); }
.bc-testimonial__quote{ margin: 0; color: var(--bc-ink); }
.bc-testimonial__author{
  font-family: var(--bc-font-head);
  font-weight: 700;
  color: var(--bc-primary);
  font-size: var(--bc-fs-sm);
  margin-top: auto;
}
@media (max-width: 900px){
  .bc-testimonial__list{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Form band
   ========================================================================== */
.bc-formband{
  padding: var(--bc-sp-8) 0;
  background: var(--bc-primary);
  color: var(--bc-ink-on-dark);
}
.bc-formband--intro{ background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%); }
.bc-formband--final{ background: var(--bc-primary-dark); }
.bc-formband__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-7);
  align-items: start;
}
.bc-formband__title{ color: var(--bc-white); }
.bc-formband__lede{ color: var(--bc-ink-on-dark-soft); font-size: var(--bc-fs-lg); max-width: 34em; }
.bc-formband__form{
  background: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  padding: var(--bc-sp-6);
  box-shadow: var(--bc-shadow);
  display: grid;
  gap: var(--bc-sp-4);
}
@media (max-width: 860px){
  .bc-formband__grid{ grid-template-columns: 1fr; }
}

.bc-form-field{ display: grid; gap: var(--bc-sp-2); }
.bc-form-field label{
  font-weight: 600;
  font-size: var(--bc-fs-sm);
  color: var(--bc-ink);
}
.bc-form-field--required label::after{
  content: " *";
  color: var(--bc-accent);
}
.bc-form-field input,
.bc-form-field textarea,
.bc-form-field select{
  font: inherit;
  font-family: var(--bc-font-body);
  padding: 0.7em 0.85em;
  border: 1px solid var(--bc-line);
  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-accent-light);
  outline-offset: 1px;
  border-color: var(--bc-accent);
}
.bc-form-field textarea{ resize: vertical; min-height: 7em; }
