/* ==========================================================================
   Carports Perth Pro — Locked Component Library
   Industry: carports / carpentry construction · Location: Perth, WA
   Palette cues: steel-blue trusses + sun-baked ochre + sandy WA paper
   ========================================================================== */

:root {
  /* ---- Brand colour tokens ---- */
  --bc-primary: #1E4D5C;        /* deep steel-teal — roofing / trussed steel */
  --bc-primary-dark: #123540;   /* pressed shade for hovers / deep bands */
  --bc-primary-tint: #E4EDEF;   /* pale wash of primary for soft panels */
  --bc-accent: #E8871E;         /* sun-baked ochre — WA sun & timber */
  --bc-accent-dark: #C06E12;    /* accent hover / border shade */
  --bc-accent-deep: #A85200;    /* text-safe accent for links on light bg (AA) */
  --bc-accent-tint: #FFC98A;    /* text-safe accent for small text on dark/primary bg (AA) */
  --bc-ink: #1A1F23;            /* near-black body text */
  --bc-ink-soft: #4A5D63;       /* muted secondary text, still AA on paper */
  --bc-paper: #FBF8F3;          /* warm sandy off-white page background */
  --bc-paper-alt: #F1EAE0;      /* deeper sandy band for alternating sections */
  --bc-white: #FFFFFF;
  --bc-line: #DCD3C4;           /* hairline border on paper */
  --bc-line-dark: rgba(255,255,255,0.18);
  --bc-success: #2E7D4F;
  --bc-focus: #0B5FFF;

  /* ---- Type ---- */
  --bc-font-heading: 'Archivo Black', 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bc-font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bc-weight-heading: 800;
  --bc-weight-bold: 700;
  --bc-weight-semi: 600;
  --bc-weight-regular: 400;

  --bc-text-xs: 0.8125rem;
  --bc-text-sm: 0.9375rem;
  --bc-text-base: 1.0625rem;
  --bc-text-lg: 1.25rem;
  --bc-text-xl: 1.5rem;
  --bc-text-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --bc-text-3xl: clamp(2.1rem, 1.6rem + 2.3vw, 3.25rem);
  --bc-text-4xl: clamp(2.5rem, 1.8rem + 3.2vw, 4rem);

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

  /* ---- Spacing scale (8px base) ---- */
  --bc-space-1: 0.5rem;
  --bc-space-2: 1rem;
  --bc-space-3: 1.5rem;
  --bc-space-4: 2rem;
  --bc-space-5: 3rem;
  --bc-space-6: 4rem;
  --bc-space-7: 6rem;

  /* ---- Layout ---- */
  --bc-container-w: 1200px;
  --bc-radius-sm: 6px;
  --bc-radius-md: 12px;
  --bc-radius-lg: 20px;
  --bc-shadow-sm: 0 2px 6px rgba(18, 30, 35, 0.08);
  --bc-shadow-md: 0 12px 28px rgba(18, 30, 35, 0.14);
  --bc-shadow-lg: 0 24px 48px rgba(18, 30, 35, 0.22);
  --bc-border-angle: 4px; /* corrugated-metal cue used on card tops */
}

/* ==========================================================================
   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-weight: var(--bc-weight-regular);
  font-size: var(--bc-text-base);
  line-height: var(--bc-leading-normal);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--bc-accent-deep); text-decoration-thickness: 2px; }
a:hover { color: var(--bc-primary); }
:focus-visible { outline: 3px solid var(--bc-focus); outline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: var(--bc-font-heading);
  font-weight: var(--bc-weight-heading);
  line-height: var(--bc-leading-tight);
  margin: 0 0 var(--bc-space-2);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--bc-text-4xl); }
h2 { font-size: var(--bc-text-3xl); }
h3 { font-size: var(--bc-text-2xl); }
h4 { font-size: var(--bc-text-lg); }
p { margin: 0 0 var(--bc-space-2); }

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

.bc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--bc-font-body);
  font-weight: var(--bc-weight-bold);
  font-size: var(--bc-text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bc-accent-deep);
  margin-bottom: var(--bc-space-2);
}
.bc-eyebrow::before {
  content: "";
  width: 1.5em;
  height: 3px;
  background: var(--bc-accent);
  border-radius: 2px;
  display: inline-block;
}
.bc-eyebrow--on-dark { color: var(--bc-accent-tint); }
.bc-eyebrow--on-dark::before { background: var(--bc-accent-tint); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--bc-font-body);
  font-weight: var(--bc-weight-bold);
  font-size: var(--bc-text-sm);
  letter-spacing: 0.01em;
  padding: 0.9em 1.7em;
  border-radius: var(--bc-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  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-primary);
  color: var(--bc-white);
  box-shadow: var(--bc-shadow-sm);
}
.bc-btn--primary:hover { background: var(--bc-primary-dark); color: var(--bc-white); }
.bc-btn--accent {
  background: var(--bc-accent);
  color: var(--bc-ink);
  box-shadow: var(--bc-shadow-sm);
}
.bc-btn--accent:hover { background: var(--bc-accent-dark); color: var(--bc-white); }
.bc-btn--ghost {
  background: transparent;
  color: var(--bc-white);
  border-color: var(--bc-line-dark);
}
.bc-btn--ghost:hover { background: rgba(255,255,255,0.12); 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;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-space-3);
  padding-block: var(--bc-space-2);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--bc-font-heading);
  font-size: var(--bc-text-lg);
  color: var(--bc-primary);
  text-decoration: none;
}
.site-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--bc-radius-sm);
  background: linear-gradient(145deg, var(--bc-accent), var(--bc-primary));
  flex-shrink: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--bc-space-3);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav__list a {
  color: var(--bc-ink);
  text-decoration: none;
  font-weight: var(--bc-weight-semi);
  font-size: var(--bc-text-sm);
}
.site-nav__list a:hover { color: var(--bc-accent-deep); }
.site-nav__toggle { display: none; }

.site-footer {
  background: var(--bc-primary-dark);
  color: var(--bc-white);
  padding-block: var(--bc-space-6) var(--bc-space-4);
}
.site-footer a { color: var(--bc-accent); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--bc-space-4);
}
.site-footer__heading {
  font-family: var(--bc-font-body);
  font-weight: var(--bc-weight-bold);
  font-size: var(--bc-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bc-accent);
  margin-bottom: var(--bc-space-2);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6em; }
.site-footer__bottom {
  margin-top: var(--bc-space-5);
  padding-top: var(--bc-space-3);
  border-top: 1px solid var(--bc-line-dark);
  font-size: var(--bc-text-xs);
  color: rgba(255,255,255,0.7);
  display: flex;
  justify-content: space-between;
  gap: var(--bc-space-2);
  flex-wrap: wrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.bc-hero {
  position: relative;
  background: linear-gradient(160deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
  color: var(--bc-white);
  overflow: hidden;
}
.bc-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(232,135,30,0.35), transparent 65%);
  pointer-events: none;
}
.bc-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bc-space-5);
  align-items: center;
  padding-block: var(--bc-space-7) var(--bc-space-6);
}
.bc-hero__title { font-size: var(--bc-text-4xl); color: var(--bc-white); }
.bc-hero__lede {
  font-size: var(--bc-text-lg);
  color: rgba(255,255,255,0.88);
  max-width: 42ch;
  margin-bottom: var(--bc-space-4);
}
.bc-hero__actions { display: flex; gap: var(--bc-space-2); 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__stats {
  position: relative;
  display: flex;
  gap: var(--bc-space-5);
  margin-top: var(--bc-space-5);
  flex-wrap: wrap;
}
.bc-hero__stat-num {
  font-family: var(--bc-font-heading);
  font-size: var(--bc-text-2xl);
  color: var(--bc-accent);
  display: block;
}
.bc-hero__stat-label { font-size: var(--bc-text-xs); color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.08em; }

/* ==========================================================================
   Prose
   ========================================================================== */
.bc-prose {
  padding-block: var(--bc-space-6);
}
.bc-prose__inner { max-width: 72ch; }
.bc-prose--has-color { background: var(--bc-primary-tint); }
.bc-prose--dark { background: var(--bc-primary-dark); color: var(--bc-white); }
.bc-prose--dark .bc-eyebrow { color: var(--bc-accent); }
.bc-prose--dark h2, .bc-prose--dark h3 { color: var(--bc-white); }
.bc-prose--dark a { color: var(--bc-accent); }
.bc-prose--with-image .bc-prose__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-space-5);
  align-items: center;
}
.bc-prose--with-image .bc-prose__inner { max-width: none; }
.bc-prose__img {
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  box-shadow: var(--bc-shadow-md);
}
.bc-prose__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ==========================================================================
   Grid (feature / service cards)
   ========================================================================== */
.bc-grid { padding-block: var(--bc-space-6); }
.bc-grid__head { max-width: 60ch; margin-bottom: var(--bc-space-4); }
.bc-grid__cells {
  display: grid;
  gap: var(--bc-space-3);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.bc-grid--2col .bc-grid__cells { grid-template-columns: repeat(2, 1fr); }
.bc-grid--3col .bc-grid__cells { grid-template-columns: repeat(3, 1fr); }
.bc-grid--4col .bc-grid__cells { grid-template-columns: repeat(4, 1fr); }

.bc-grid__card {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-top: var(--bc-border-angle) solid var(--bc-accent);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-3);
  box-shadow: var(--bc-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bc-grid__card:hover { transform: translateY(-4px); box-shadow: var(--bc-shadow-md); }
.bc-grid__card-img {
  border-radius: var(--bc-radius-sm);
  overflow: hidden;
  margin: calc(var(--bc-space-3) * -1) calc(var(--bc-space-3) * -1) var(--bc-space-2);
}
.bc-grid__card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.bc-grid__card h3 { font-size: var(--bc-text-lg); margin-bottom: 0.4em; }
.bc-grid__card p { color: var(--bc-ink-soft); margin-bottom: 0; font-size: var(--bc-text-sm); }
.bc-grid--text-only .bc-grid__card { border-top: 1px solid var(--bc-line); border-left: var(--bc-border-angle) solid var(--bc-accent); }
.bc-grid--imaged .bc-grid__card { padding-bottom: var(--bc-space-3); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.bc-faq { padding-block: var(--bc-space-6); background: var(--bc-paper-alt); }
.bc-faq__head { max-width: 60ch; margin-bottom: var(--bc-space-4); }
.bc-faq__list { display: grid; gap: var(--bc-space-2); max-width: 78ch; }
.bc-faq__item {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-2) var(--bc-space-3);
}
.bc-faq__q {
  font-family: var(--bc-font-body);
  font-weight: var(--bc-weight-bold);
  font-size: var(--bc-text-base);
  margin: 0 0 0.4em;
  display: flex;
  gap: 0.6em;
  align-items: baseline;
}
.bc-faq__q::before { content: "Q."; color: var(--bc-accent-deep); }
.bc-faq__a { margin: 0; color: var(--bc-ink-soft); display: flex; gap: 0.6em; }
.bc-faq__a::before { content: "A."; color: var(--bc-primary); font-weight: var(--bc-weight-bold); flex-shrink: 0; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.bc-gallery { padding-block: var(--bc-space-6); }
.bc-gallery__head { max-width: 60ch; margin-bottom: var(--bc-space-4); }
.bc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--bc-space-2);
}
.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.25s ease; }
.bc-gallery__cell:hover img { transform: scale(1.06); }
.bc-gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(18,53,64,0.88), transparent);
  color: var(--bc-white);
  font-size: var(--bc-text-xs);
  padding: var(--bc-space-2) var(--bc-space-1) var(--bc-space-1);
}

/* ==========================================================================
   Video
   ========================================================================== */
.bc-video { padding-block: var(--bc-space-6); background: var(--bc-primary-tint); }
.bc-video__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-space-5);
  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);
}
.bc-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bc-primary-dark);
}
.bc-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Map
   ========================================================================== */
.bc-map { padding-block: var(--bc-space-6); }
.bc-map__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--bc-space-4);
  align-items: stretch;
}
.bc-map__info {
  background: var(--bc-primary);
  color: var(--bc-white);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bc-map__info h3 { color: var(--bc-white); }
.bc-map__addr { list-style: none; margin: var(--bc-space-2) 0 0; padding: 0; display: grid; gap: 0.6em; font-size: var(--bc-text-sm); color: rgba(255,255,255,0.9); }
.bc-map__addr a { color: var(--bc-accent-tint); }
.bc-map__frame {
  border-radius: var(--bc-radius-md);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--bc-shadow-sm);
}
.bc-map__frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ==========================================================================
   Testimonial
   ========================================================================== */
.bc-testimonial { padding-block: var(--bc-space-6); background: var(--bc-primary-dark); color: var(--bc-white); }
.bc-testimonial__head { max-width: 60ch; margin: 0 auto var(--bc-space-4); text-align: center; }
.bc-testimonial__head .bc-eyebrow { justify-content: center; }
.bc-testimonial__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--bc-space-3);
}
.bc-testimonial__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--bc-line-dark);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-space-3);
}
.bc-testimonial__stars { color: var(--bc-accent); letter-spacing: 0.15em; margin-bottom: var(--bc-space-1); }
.bc-testimonial__quote { color: rgba(255,255,255,0.92); font-size: var(--bc-text-base); }
.bc-testimonial__author { display: flex; align-items: center; gap: 0.8em; margin-top: var(--bc-space-2); }
.bc-testimonial__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(145deg, var(--bc-accent), var(--bc-primary));
  flex-shrink: 0;
}
.bc-testimonial__name { font-weight: var(--bc-weight-bold); font-size: var(--bc-text-sm); }
.bc-testimonial__role { font-size: var(--bc-text-xs); color: rgba(255,255,255,0.65); }

/* ==========================================================================
   Form band
   ========================================================================== */
.bc-formband { padding-block: var(--bc-space-6); background: var(--bc-paper-alt); }
.bc-formband__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--bc-space-5);
  align-items: center;
}
.bc-formband__title { margin-bottom: var(--bc-space-2); }
.bc-formband__lede { color: var(--bc-ink-soft); max-width: 44ch; }
.bc-formband__form {
  background: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  border: 1px solid var(--bc-line);
  box-shadow: var(--bc-shadow-md);
  padding: var(--bc-space-4);
  display: grid;
  gap: var(--bc-space-2);
}
.bc-formband--intro { background: var(--bc-primary); color: var(--bc-white); }
.bc-formband--intro .bc-formband__title { color: var(--bc-white); }
.bc-formband--intro .bc-formband__lede { color: rgba(255,255,255,0.85); }
.bc-formband--intro .bc-eyebrow { color: var(--bc-accent); }
.bc-formband--final { background: var(--bc-primary-dark); color: var(--bc-white); text-align: center; }
.bc-formband--final .bc-formband__grid { grid-template-columns: 1fr; justify-items: center; }
.bc-formband--final .bc-formband__title { color: var(--bc-white); }
.bc-formband--final .bc-formband__lede { color: rgba(255,255,255,0.85); margin-inline: auto; }
.bc-formband--final .bc-formband__form { max-width: 560px; width: 100%; }

.bc-form-field { display: grid; gap: 0.4em; text-align: left; }
.bc-form-field label {
  font-size: var(--bc-text-xs);
  font-weight: var(--bc-weight-semi);
  color: var(--bc-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bc-form-field input,
.bc-form-field textarea,
.bc-form-field select {
  font: inherit;
  font-size: var(--bc-text-sm);
  padding: 0.75em 0.9em;
  border-radius: var(--bc-radius-sm);
  border: 1.5px solid var(--bc-line);
  background: var(--bc-paper);
  color: var(--bc-ink);
}
.bc-form-field input:focus,
.bc-form-field textarea:focus,
.bc-form-field select:focus {
  border-color: var(--bc-primary);
  outline: 3px solid rgba(30,77,92,0.25);
  outline-offset: 0;
}
.bc-form-field--required label::after { content: " *"; color: var(--bc-accent-dark); }
.bc-formband__form .bc-btn { justify-self: start; margin-top: var(--bc-space-1); }

/* ==========================================================================
   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--3col .bc-grid__cells,
  .bc-grid--4col .bc-grid__cells { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .bc-grid--2col .bc-grid__cells,
  .bc-grid--3col .bc-grid__cells,
  .bc-grid--4col .bc-grid__cells { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .bc-hero__stats { gap: var(--bc-space-3); }
  .site-nav__list { gap: var(--bc-space-2); }
  .bc-formband__form .bc-btn { justify-self: stretch; }
}
