/* =============================================================
   BIG RIVER GROUP — Shared Prototype Stylesheet
   Source of truth: prototype-styleguide-1.txt
   ============================================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #182E2A;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
ul, ol { list-style: none; }
input, select, button { font-family: inherit; }

/* ===== COLOUR VARIABLES ===== */
:root {
  --forest-green: #182E2A;
  --muted-gold: #B4A471;
  --off-white: #F5F7F8;
  --off-white-footer: #F8F8F8;
  --border: rgba(0,0,0,0.1);
  --mid-grey: #5A6B68;
  --light-grey: #737373;
  --black: #000000;
  --white: #FFFFFF;
  --gold-tint: rgba(180,164,113,0.08);
  --charcoal: #2D2D2D;
  --off-white-stat: #FAFAFA;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  font-size: 12.8px;
  font-weight: 700;
  letter-spacing: 1.024px;
  text-transform: uppercase;
  color: var(--muted-gold);
  margin-bottom: 8px;
  line-height: normal;
}
h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: var(--forest-green);
}
h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--forest-green);
  margin-bottom: 8px;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--black);
}
.gold-underline {
  width: 56px;
  height: 3px;
  background: var(--muted-gold);
  margin-bottom: 20px;
}
.gold-underline--center {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}
.body-small {
  font-size: 14px;
  line-height: 24px;
  color: var(--black);
}
.body-caption {
  font-size: 12px;
  line-height: 16px;
  color: var(--black);
}

/* ===== UTILITY ===== */
.text-mid-grey { color: var(--mid-grey); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest-green);
  color: var(--white);
  border: 1px solid var(--forest-green);
}
.btn-outline {
  background: transparent;
  color: var(--forest-green);
  border: 1px solid var(--forest-green);
}
.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--border);
}

/* ===== CARDS ===== */
.card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== SECTION CONTAINER ===== */
.section {
  padding: 48px 0;
}
.section-alt {
  background: var(--off-white);
}
.section-header {
  margin-bottom: 32px;
}
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.view-all {
  font-size: 14px;
  font-weight: 400;
  color: var(--forest-green);
  text-decoration: underline;
  white-space: nowrap;
  margin-top: 28px;
}

/* ===== GRID LAYOUTS ===== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ===== COMPLIANCE BADGE ===== */
.compliance-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--off-white);
  color: var(--forest-green);
  border: 1px solid var(--border);
}

/* ===== COMPARISON TABLE ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--forest-green);
  border-bottom: 2px solid var(--forest-green);
  background: var(--off-white);
}
.compare-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--forest-green);
  vertical-align: middle;
}
.compare-table tbody tr:hover {
  background: var(--gold-tint);
}
.compare-table .table-link {
  color: var(--forest-green);
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.filter-select {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--forest-green);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23182E2A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.filter-spacer { flex: 1; }
.view-toggle {
  display: flex;
  gap: 4px;
}
.view-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--light-grey);
}
.view-toggle-btn.active {
  background: var(--forest-green);
  color: var(--white);
  border-color: var(--forest-green);
}

/* ===== RESOURCE CARDS ===== */
.resource-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resource-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.file-badge-pdf { background: #FEE2E2; color: #DC2626; }
.file-badge-bim { background: #DBEAFE; color: #2563EB; }

/* ===== TRUST BADGES ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  border-bottom: 1px solid var(--border);
}
.breadcrumb .container {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
  color: var(--forest-green);
}
.breadcrumb a { color: var(--forest-green); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .separator { margin: 0 8px; color: var(--light-grey); }
.breadcrumb .current { font-weight: 700; }

/* ===== GUIDE SECTION ===== */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.guide-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--forest-green);
  margin-top: 20px;
  margin-bottom: 8px;
}
.guide-content p {
  margin-bottom: 12px;
  color: var(--mid-grey);
  font-size: 15px;
  line-height: 24px;
}

/* =============================================================
   HEADER — Top Bar + Main Nav
   ============================================================= */
.site-topbar {
  background: var(--white);
  height: 40px;
}
.site-topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  height: 100%;
  font-size: 12px;
}
.site-topbar__link {
  color: var(--black);
  text-decoration: none;
}
.site-topbar__link--bordered {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 12px;
}
.site-topbar__btn {
  color: var(--white);
  background: var(--forest-green);
  border: 1px solid var(--forest-green);
  border-radius: 12px;
  padding: 4px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.site-nav {
  background: var(--forest-green);
  height: 97px;
}
.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.site-nav__logo {
  flex-shrink: 0;
}
.site-nav__logo img {
  height: 64px;
  width: auto;
}
.site-nav__links {
  display: flex;
  gap: 32px;
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.site-nav__link {
  color: var(--white);
  text-decoration: none;
}
.site-nav__link--active {
  border-bottom: 2px solid var(--white);
  padding-bottom: 2px;
}
.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav__search {
  padding: 8px 44px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  width: 306px;
  font-family: 'Inter', sans-serif;
}
.site-nav__cta {
  color: var(--forest-green);
  background: var(--muted-gold);
  border: 1px solid var(--muted-gold);
  border-radius: 12px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--off-white-footer);
  padding: 48px 0 24px;
}
.site-footer .container {
  padding: 0 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer__brand-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}
.site-footer__brand-heading {
  font-size: 20.8px;
  font-weight: 600;
  color: var(--forest-green);
  margin-bottom: 8px;
  line-height: 32px;
}
.site-footer__brand-desc {
  font-size: 15px;
  color: var(--forest-green);
  line-height: 24px;
  margin-bottom: 20px;
}
.site-footer__social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.site-footer__social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer__subscribe {
  display: flex;
  gap: 8px;
}
.site-footer__subscribe-input {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  flex: 1;
  font-family: 'Inter', sans-serif;
}
.site-footer__col-heading {
  font-weight: 600;
  color: var(--forest-green);
  margin-bottom: 16px;
  font-size: 16px;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__link {
  font-size: 17px;
  color: var(--forest-green);
  text-decoration: none;
}
.site-footer__copyright {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
  color: var(--light-grey);
}

/* =============================================================
   STICKY BOTTOM BAR
   ============================================================= */
.sticky-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}
.sticky-bar__text {
  font-size: 14px;
  color: var(--black);
}
.sticky-bar__btn-outline {
  color: var(--forest-green);
  background: transparent;
  border: 1px solid var(--forest-green);
  border-radius: 12px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.sticky-bar__btn-primary {
  color: var(--white);
  background: var(--forest-green);
  border: 1px solid var(--forest-green);
  border-radius: 12px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* =============================================================
   CTA DARK BLOCK (in-page, not a partial — copy varies per page)
   ============================================================= */
.cta-dark {
  background: var(--forest-green);
  padding: 64px 0;
  text-align: center;
}
.cta-dark .container {
  padding: 0 32px;
}
.cta-dark .eyebrow {
  color: var(--muted-gold);
}
.cta-dark h2 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 8px;
}
.cta-dark p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 26px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-dark__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-cta-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 12px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.btn-cta-solid {
  background: var(--white);
  color: var(--forest-green);
  border: 1px solid var(--white);
  border-radius: 12px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.faq-question h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--forest-green);
  flex: 1;
}
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--forest-green);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-answer {
  display: none;
  padding-top: 12px;
  font-size: 16px;
  line-height: 26px;
  color: var(--mid-grey);
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

/* ===== TRUST BADGES SECTION (wrapper for partial) ===== */
.trust-badges-section {
  padding: 40px 0;
}
