/* ==========================================================================
   Patios Adelaide Elite — locked component library
   Palette: eucalyptus-green primary, timber-terracotta accent, warm cream paper
   Type: Fraunces (display/serif, craft & timber feel) + Inter (body, clean/trustworthy)
   ========================================================================== */

@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 {
  /* ---- colour tokens ---- */
  --bc-primary: #2E4034;
  --bc-primary-dark: #1E2B23;
  --bc-primary-light: #3F5A4A;
  --bc-accent: #D97B3F;
  --bc-accent-dark: #B85C22;
  --bc-paper: #FAF6EF;
  --bc-paper-alt: #F1E9DA;
  --bc-ink: #22201C;
  --bc-ink-soft: #55504A;
  --bc-line: #E1D8C6;
  --bc-white: #FFFFFF;
  --bc-success: #3F6B4C;
  --bc-focus: #1E88C7;

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

  --bc-fs-sm: 0.9375rem;
  --bc-fs-base: 1.0625rem;
  --bc-fs-lg: 1.25rem;
  --bc-fs-xl: 1.625rem;
  --bc-fs-2xl: 2.125rem;
  --bc-fs-3xl: 2.75rem;
  --bc-fs-4xl: 3.5rem;

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

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

  --bc-radius-sm: 6px;
  --bc-radius-md: 12px;
  --bc-radius-lg: 20px;
  --bc-radius-pill: 999px;

  --bc-shadow-sm: 0 2px 8px rgba(34, 32, 28, 0.08);
  --bc-shadow-md: 0 12px 32px rgba(30, 43, 35, 0.16);

  --bc-container-w: 1180px;
}

/* ==========================================================================
   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-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);
  line-height: var(--bc-lh-tight);
  margin: 0 0 var(--bc-sp-4);
  color: var(--bc-ink);
  font-weight: 600;
}
h1 { font-size: var(--bc-fs-4xl); }
h2 { font-size: var(--bc-fs-3xl); }
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); }
ul, ol { padding-left: 1.25em; }

/* ==========================================================================
   Container / eyebrow
   ========================================================================== */
.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.08em;
  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;
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--bc-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  line-height: 1.2;
}
.bc-btn:focus-visible {
  outline: 3px solid var(--bc-focus);
  outline-offset: 2px;
}
.bc-btn:hover { transform: translateY(-1px); }

.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-ink);
  border-color: var(--bc-accent);
}
.bc-btn--accent:hover { background: var(--bc-accent-dark); border-color: var(--bc-accent-dark); color: var(--bc-white); }

.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-paper);
  border-bottom: 1px solid var(--bc-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.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-size: var(--bc-fs-lg);
  font-weight: 700;
  color: var(--bc-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.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);
}
.site-nav__list a:hover { color: var(--bc-accent-dark); }

.site-footer {
  background: var(--bc-primary-dark);
  color: rgba(255,255,255,0.86);
  padding-block: var(--bc-sp-8) var(--bc-sp-6);
}
.site-footer a { color: var(--bc-white); }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bc-sp-6);
}
.site-footer h4 { color: var(--bc-white); font-size: var(--bc-fs-base); }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--bc-sp-2); }
.site-footer__bottom {
  margin-top: var(--bc-sp-7);
  padding-top: var(--bc-sp-5);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: var(--bc-fs-sm);
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--bc-sp-3);
}

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

/* ==========================================================================
   Hero
   ========================================================================== */
.bc-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-dark) 100%);
  color: var(--bc-white);
  padding-block: var(--bc-sp-9);
  overflow: hidden;
}
.bc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(217,123,63,0.35), transparent 55%);
  pointer-events: none;
}
.bc-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--bc-sp-7);
  align-items: center;
}
.bc-hero__eyebrow { color: #F4C79B; }
.bc-hero__eyebrow::before { background: #F4C79B; }
.bc-hero h1 {
  color: var(--bc-white);
  font-size: var(--bc-fs-4xl);
  max-width: 14ch;
}
.bc-hero__lede {
  font-size: var(--bc-fs-lg);
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
  line-height: var(--bc-lh-snug);
}
.bc-hero__actions { display: flex; gap: var(--bc-sp-3); flex-wrap: wrap; margin-top: var(--bc-sp-6); }
.bc-hero__media {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  box-shadow: var(--bc-shadow-md);
  border: 1px solid rgba(255,255,255,0.18);
}
.bc-hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .bc-hero__inner { grid-template-columns: 1fr; }
  .bc-hero h1 { max-width: none; font-size: var(--bc-fs-3xl); }
}

/* ==========================================================================
   Prose
   ========================================================================== */
.bc-prose {
  padding-block: var(--bc-sp-8);
  background: var(--bc-paper);
  color: var(--bc-ink);
}
.bc-prose__inner { max-width: 72ch; }
.bc-prose p { color: var(--bc-ink-soft); }
.bc-prose--has-color { background: var(--bc-paper-alt); }
.bc-prose--dark { background: var(--bc-primary-dark); color: var(--bc-white); }
.bc-prose--dark p { color: rgba(255,255,255,0.82); }
.bc-prose--dark h2, .bc-prose--dark h3 { color: var(--bc-white); }
.bc-prose--with-image .bc-prose__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-7);
  align-items: center;
  max-width: none;
}
.bc-prose--with-image img { border-radius: var(--bc-radius-md); box-shadow: var(--bc-shadow-sm); }
@media (max-width: 820px) {
  .bc-prose--with-image .bc-prose__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Grid
   ========================================================================== */
.bc-grid { padding-block: var(--bc-sp-8); }
.bc-grid__head { max-width: 62ch; 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-md);
  padding: var(--bc-sp-5);
  box-shadow: var(--bc-shadow-sm);
}
.bc-grid--text-only .bc-grid__card { background: transparent; border: none; box-shadow: none; padding: 0; }
.bc-grid--imaged .bc-grid__card { padding: 0; overflow: hidden; }
.bc-grid__card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bc-grid--imaged .bc-grid__card-body { padding: var(--bc-sp-5); }
.bc-grid__card h3 { font-size: var(--bc-fs-lg); }
.bc-grid__card p { color: var(--bc-ink-soft); margin-bottom: 0; }
.bc-grid__card-icon {
  width: 48px; height: 48px;
  border-radius: var(--bc-radius-sm);
  background: var(--bc-paper-alt);
  color: var(--bc-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--bc-sp-3);
}

@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: 600px) {
  .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-block: var(--bc-sp-8); background: var(--bc-paper-alt); }
.bc-faq__inner { max-width: 78ch; }
.bc-faq__list { display: grid; gap: var(--bc-sp-3); list-style: none; padding: 0; margin: var(--bc-sp-6) 0 0; }
.bc-faq__item {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-sp-4) var(--bc-sp-5);
}
.bc-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-sp-3);
  font-weight: 700;
  font-size: var(--bc-fs-base);
  cursor: pointer;
  list-style: none;
}
.bc-faq__q::-webkit-details-marker { display: none; }
.bc-faq__q::after {
  content: "+";
  color: var(--bc-accent-dark);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
details[open] .bc-faq__q::after { content: "\2212"; }
.bc-faq__a { color: var(--bc-ink-soft); margin-top: var(--bc-sp-3); padding-top: var(--bc-sp-3); border-top: 1px solid var(--bc-line); }

/* ==========================================================================
   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;
  aspect-ratio: 4 / 3;
  background: var(--bc-paper-alt);
}
.bc-gallery__cell img { width: 100%; height: 100%; object-fit: cover; }
.bc-gallery__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--bc-sp-3) var(--bc-sp-4);
  background: linear-gradient(0deg, rgba(30,43,35,0.86), transparent);
  color: var(--bc-white);
  font-size: var(--bc-fs-sm);
  font-weight: 600;
}
@media (max-width: 820px) {
  .bc-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bc-gallery__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Video
   ========================================================================== */
.bc-video { padding-block: var(--bc-sp-8); 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 { border-radius: var(--bc-radius-lg); overflow: hidden; box-shadow: var(--bc-shadow-md); background: #000; }
.bc-video__frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
@media (max-width: 820px) {
  .bc-video__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   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);
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
}
.bc-map__info { padding: var(--bc-sp-7); }
.bc-map__addr { color: var(--bc-ink-soft); list-style: none; padding: 0; margin: var(--bc-sp-4) 0 0; display: grid; gap: var(--bc-sp-2); }
.bc-map__frame { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 820px) {
  .bc-map__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.bc-testimonial { padding-block: var(--bc-sp-8); background: var(--bc-primary); color: var(--bc-white); }
.bc-testimonial__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bc-sp-5);
}
.bc-testimonial__card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--bc-radius-md);
  padding: var(--bc-sp-5);
}
.bc-testimonial__quote { font-size: var(--bc-fs-base); color: var(--bc-white); margin-bottom: var(--bc-sp-4); }
.bc-testimonial__stars { color: #F4C79B; letter-spacing: 0.1em; margin-bottom: var(--bc-sp-3); }
.bc-testimonial__author { display: flex; align-items: center; gap: var(--bc-sp-3); font-weight: 700; }
.bc-testimonial__author span { display: block; font-weight: 400; color: rgba(255,255,255,0.7); font-size: var(--bc-fs-sm); }
.bc-testimonial__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bc-accent);
  color: var(--bc-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .bc-testimonial__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Form band + fields
   ========================================================================== */
.bc-formband { padding-block: var(--bc-sp-8); background: var(--bc-paper-alt); }
.bc-formband__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-sp-7);
  align-items: start;
}
.bc-formband__title { font-size: var(--bc-fs-2xl); }
.bc-formband__lede { color: var(--bc-ink-soft); max-width: 44ch; }
.bc-formband__form {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-lg);
  padding: var(--bc-sp-6);
  display: grid;
  gap: var(--bc-sp-4);
  box-shadow: var(--bc-shadow-sm);
}

.bc-formband--intro { background: var(--bc-primary-dark); color: var(--bc-white); }
.bc-formband--intro .bc-formband__lede { color: rgba(255,255,255,0.82); }
.bc-formband--intro .bc-formband__title { color: var(--bc-white); }

.bc-formband--final { background: var(--bc-primary); color: var(--bc-white); }
.bc-formband--final .bc-formband__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.bc-formband--final .bc-formband__lede { color: rgba(255,255,255,0.85); }
.bc-formband--final .bc-formband__title { color: var(--bc-white); }
.bc-formband--final .bc-formband__form { max-width: 560px; width: 100%; }

.bc-form-field { display: grid; gap: var(--bc-sp-2); text-align: left; }
.bc-form-field label { font-size: var(--bc-fs-sm); font-weight: 700; color: var(--bc-ink); }
.bc-form-field input,
.bc-form-field textarea,
.bc-form-field select {
  font: inherit;
  padding: 0.75em 0.9em;
  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-focus);
  outline-offset: 1px;
  border-color: var(--bc-focus);
}
.bc-form-field--required label::after {
  content: " *";
  color: var(--bc-accent-dark);
}

@media (max-width: 820px) {
  .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;
}
