/* ============================================================
   Primal Privilege — Business Center design system
   Shared by: views/home.php (hub) and views/business/*.php (role pages)
   Palette + type per the approved "Refined Ranch Ecosystem" direction.
   ============================================================ */

:root {
  --bc-brown:      #2E2218;
  --bc-copper:     #AE6038;
  --bc-cream:      #F5F1EA;
  --bc-ivory:      #FCF8F2;
  --bc-warm-white: #FEFBF7;
  --bc-border:     #E4DED6;
  --bc-sage:       #DDE3CF;

  --bc-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --bc-font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;

  --bc-gutter: 24px;
  --bc-radius: 14px;
}

@media (max-width: 640px) {
  :root { --bc-gutter: 20px; }
}

.bc-root, .bc-root * { box-sizing: border-box; }

.bc-root {
  font-family: var(--bc-font-body);
  color: var(--bc-brown);
  background: var(--bc-warm-white);
  line-height: 1.6;
}

.bc-root img { max-width: 100%; display: block; }

.bc-root a { color: inherit; }

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

.bc-skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--bc-copper); color: var(--bc-warm-white);
  padding: 12px 20px; border-radius: 0 0 8px 0; font-weight: 700;
  text-decoration: none;
}
.bc-skip-link:focus { left: 0; }

/* ── Focus ring — highly visible copper/cream, works on both dark and light backgrounds ── */
.bc-root a:focus-visible,
.bc-root button:focus-visible,
.bc-root .bc-card:focus-visible {
  outline: 3px solid var(--bc-copper);
  outline-offset: 3px;
  border-radius: 6px;
}
.bc-root .bc-on-dark a:focus-visible,
.bc-root .bc-on-dark button:focus-visible {
  outline-color: var(--bc-cream);
}

/* ── Header ── */
.bc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--bc-gutter);
  background: var(--bc-warm-white);
  border-bottom: 1px solid var(--bc-border);
  position: relative; z-index: 20;
}
.bc-header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.bc-header__logo img { height: 40px; width: auto; }
.bc-header__utility {
  font-family: var(--bc-font-body);
  font-size: 0.7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bc-copper); border-left: 1px solid var(--bc-border); padding-left: 12px; margin-left: 4px;
}
.bc-header__logo-row { display: flex; align-items: center; }

/* ── Hero ── */
.bc-hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden;
  background-color: var(--bc-brown);
}
.bc-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  z-index: 0;
}
.bc-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(46,34,24,.94) 0%,
    rgba(46,34,24,.86) 32%,
    rgba(46,34,24,.42) 62%,
    rgba(46,34,24,.08) 100%);
}
.bc-hero__content {
  position: relative; z-index: 2;
  max-width: 620px;
  padding: 64px var(--bc-gutter);
}
.bc-hero__eyebrow {
  font-family: var(--bc-font-body);
  font-size: 0.72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bc-sage); margin: 0 0 18px;
}
.bc-hero__headline {
  font-family: var(--bc-font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  color: var(--bc-ivory);
  margin: 0 0 20px;
}
.bc-hero__sub {
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(252,248,242,.86);
  max-width: 480px; margin: 0 0 12px;
}
.bc-hero__rhythm {
  font-size: 0.85rem; letter-spacing: .04em;
  color: var(--bc-sage);
  margin: 0 0 34px;
}
.bc-hero__scroll {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bc-copper); color: var(--bc-warm-white);
  font-weight: 700; font-size: 0.85rem; letter-spacing: .04em;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--bc-copper);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.bc-hero__scroll:hover { background: #9a5330; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.bc-hero__scroll .bc-arrow { transition: transform .18s ease; }
.bc-hero__scroll:hover .bc-arrow { transform: translateX(3px); }

@media (max-width: 640px) {
  .bc-hero { min-height: 460px; align-items: flex-end; }
  .bc-hero__bg { background-position: 68% center; }
  .bc-hero__overlay {
    background: linear-gradient(180deg, rgba(46,34,24,.35) 0%, rgba(46,34,24,.96) 78%);
  }
  .bc-hero__content { padding: 40px var(--bc-gutter) 44px; text-align: left; }
  .bc-hero__sub { max-width: 100%; }
}

/* ── Section wrapper ── */
.bc-section { padding: 72px var(--bc-gutter); max-width: 1180px; margin: 0 auto; }
.bc-section--tight { padding-top: 48px; padding-bottom: 48px; }
.bc-section-heading {
  font-family: var(--bc-font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--bc-brown);
  margin: 0 0 14px;
}
.bc-section-copy {
  font-size: 1rem; color: #4a3d30; max-width: 640px; margin: 0 auto 8px;
}

/* ── Portal card grid ── */
.bc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .bc-cards { grid-template-columns: 1fr; }
}

.bc-card {
  display: block;
  background: var(--bc-brown);
  border: 1px solid rgba(174,96,56,.35);
  border-radius: var(--bc-radius);
  padding: 34px 32px;
  text-decoration: none;
  color: var(--bc-ivory);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.bc-card:hover, .bc-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--bc-copper);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
@media (prefers-reduced-motion: reduce) {
  .bc-card, .bc-hero__scroll, .bc-hero__scroll .bc-arrow, .bc-role-cta .bc-arrow {
    transition: none !important;
  }
  .bc-card:hover { transform: none; }
}
.bc-card__label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bc-copper); margin: 0 0 14px;
}
.bc-card__heading {
  font-family: var(--bc-font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--bc-ivory);
  margin: 0 0 12px;
}
.bc-card__copy {
  font-size: 0.92rem; line-height: 1.65;
  color: rgba(252,248,242,.78);
  margin: 0 0 22px;
}
.bc-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--bc-copper);
}
.bc-card__cta .bc-arrow { transition: transform .18s ease; }
.bc-card:hover .bc-card__cta .bc-arrow { transform: translateX(4px); }

/* ── Support panel ── */
.bc-support {
  background: var(--bc-cream);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  padding: 40px var(--bc-gutter);
  text-align: center;
}
.bc-support h2 { margin: 0 0 10px; }
.bc-support p { margin: 0 0 22px; color: #4a3d30; }
.bc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; text-decoration: none;
  border: 1.5px solid var(--bc-copper);
  transition: background-color .18s ease, color .18s ease;
}
.bc-btn--solid { background: var(--bc-copper); color: var(--bc-warm-white); }
.bc-btn--solid:hover { background: #9a5330; }
.bc-btn--outline { background: transparent; color: var(--bc-copper); }
.bc-btn--outline:hover { background: rgba(174,96,56,.08); }

/* ── Internal access ── */
.bc-internal {
  text-align: center; padding: 26px var(--bc-gutter) 44px;
  font-size: 0.85rem; color: #6b5c4c;
}
.bc-internal a { color: var(--bc-brown); font-weight: 700; text-decoration: underline; }

/* ── Footer ── */
.bc-footer {
  padding: 28px var(--bc-gutter);
  text-align: center;
  font-size: 0.78rem;
  color: #8a7a68;
  border-top: 1px solid var(--bc-border);
}

/* ============================================================
   ROLE LANDING PAGE TEMPLATE
   ============================================================ */
.bc-role-hero {
  position: relative;
  min-height: 320px;
  display: flex; align-items: center;
  background-color: var(--bc-brown);
  overflow: hidden;
}
.bc-role-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; opacity: .55; }
.bc-role-hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(46,34,24,.94) 0%, rgba(46,34,24,.72) 70%); }
.bc-role-hero__content { position: relative; z-index: 2; padding: 56px var(--bc-gutter); max-width: 760px; }
.bc-role-hero__eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--bc-copper); margin: 0 0 12px; }
.bc-role-hero__title { font-family: var(--bc-font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--bc-ivory); margin: 0 0 16px; }
.bc-role-hero__value { font-size: 1.05rem; color: rgba(252,248,242,.85); max-width: 560px; margin: 0; }

.bc-role-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.bc-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; margin-top: 28px; }
.bc-benefit { background: var(--bc-ivory); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 24px; }
.bc-benefit__num { font-family: var(--bc-font-display); color: var(--bc-copper); font-size: 1.4rem; margin: 0 0 8px; }
.bc-benefit p { margin: 0; font-size: .93rem; color: #4a3d30; }

.bc-steps { counter-reset: bc-step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
@media (max-width: 800px) { .bc-steps { grid-template-columns: 1fr; } }
.bc-step { position: relative; padding: 28px 22px 22px; background: var(--bc-warm-white); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); }
.bc-step::before {
  counter-increment: bc-step; content: counter(bc-step);
  position: absolute; top: -16px; left: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bc-copper); color: var(--bc-warm-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--bc-font-display); font-weight: 700;
}
.bc-step h3 { font-size: 1rem; margin: 6px 0 8px; }
.bc-step p { margin: 0; font-size: .9rem; color: #4a3d30; }

.bc-role-actions-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px;
}
@media (max-width: 700px) { .bc-role-actions-block { grid-template-columns: 1fr; } }
.bc-action-card { background: var(--bc-cream); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 28px; text-align: center; }
.bc-action-card h3 { margin: 0 0 8px; font-family: var(--bc-font-display); font-weight: 600; }
.bc-action-card p { margin: 0 0 18px; font-size: .9rem; color: #4a3d30; }

.bc-faq { margin-top: 28px; border-top: 1px solid var(--bc-border); }
.bc-faq-item { border-bottom: 1px solid var(--bc-border); padding: 18px 0; }
.bc-faq-item summary { cursor: pointer; font-weight: 700; font-size: .98rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.bc-faq-item summary::-webkit-details-marker { display: none; }
.bc-faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--bc-copper); flex-shrink: 0; }
.bc-faq-item[open] summary::after { content: '–'; }
.bc-faq-item p { margin: 12px 0 0; color: #4a3d30; font-size: .92rem; }

.bc-breadcrumb { font-size: .82rem; padding: 16px var(--bc-gutter) 0; max-width: 1180px; margin: 0 auto; color: #6b5c4c; }
.bc-breadcrumb a { text-decoration: underline; }

@media (max-width: 700px) {
  .bc-section { padding: 48px var(--bc-gutter); }
}
