/*
Theme Name: Bcount — Большая Страна
Theme URI: https://www.bcount.ru/
Author: Bcount
Author URI: https://www.bcount.ru/
Description: Современный светлый шаблон для Центра исследований и консалтинга «Большая Страна». Социологические исследования, маркетинговые исследования, политический консалтинг, брендинг регионов.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bcount
Tags: blog, business, full-site-editing, block-patterns, wide-blocks, custom-colors, custom-logo, custom-menu, editor-style, featured-images
*/

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --bc-primary : #4e5365;
  --bc-accent  : #ffa10a;
  --bc-bg      : #FAFAF8;
  --bc-surface : #F4F4F0;
  --bc-white   : #FFFFFF;
  --bc-text    : #1A1A2E;
  --bc-muted   : #6B7280;
  --bc-border  : #E5E7EB;
  --bc-f-head  : 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --bc-f-body  : 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ─── BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--bc-f-body);
  background: var(--bc-bg);
  color: var(--bc-text);
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--bc-primary); text-decoration: none; }
a:hover { color: var(--bc-accent); }
img { max-width: 100%; height: auto; display: block; }
p { text-wrap: pretty; }

/* ─── TOPBAR ──────────────────────────────────────────── */
.bc-topbar {
  background: var(--bc-primary);
  padding: 0.45rem 0;
}
.bc-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  flex-wrap: wrap;
}
.bc-topbar__address {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.bc-topbar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.bc-topbar__phone {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 0;
}
.bc-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  overflow: hidden;
}
.bc-search input[type="search"],
.bc-search input[type="text"] {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.72rem;
  font-family: var(--bc-f-body);
  padding: 0.3rem 0.65rem;
  width: 170px;
}
.bc-search input::placeholder { color: rgba(255,255,255,0.38); }
.bc-search button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.bc-search button:hover { color: var(--bc-accent); }
.bc-search svg { display: block; }

/* ─── HEADER ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.bc-header-bar {
  background: var(--bc-white);
  border-bottom: 1px solid var(--bc-border);
  box-shadow: 0 1px 12px rgba(78,83,101,0.07);
}
.bc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}
.bc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* Logo */
.bc-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.bc-logo__mark {
  width: 42px;
  height: 42px;
  background: var(--bc-primary);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bc-logo__mark svg { display: block; width: 26px; height: 26px; }
.bc-logo__text strong {
  display: block;
  font-family: var(--bc-f-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bc-primary);
  line-height: 1.2;
}
.bc-logo__text span {
  font-size: 0.62rem;
  color: var(--bc-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.bc-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.bc-nav__item { position: relative; }
.bc-nav__item > a {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bc-text);
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.bc-nav__item > a:hover,
.bc-nav__item > a.active { color: var(--bc-primary); background: var(--bc-surface); }
.bc-nav__arrow {
  width: 8px; height: 5px;
  fill: currentColor;
  opacity: 0.45;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.bc-nav__item:hover .bc-nav__arrow { transform: rotate(180deg); }

.bc-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: var(--bc-white);
  border: 1px solid var(--bc-border);
  border-radius: 4px;
  box-shadow: 0 10px 36px rgba(78,83,101,0.13);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 200;
}
.bc-nav__item:hover .bc-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bc-nav__dropdown a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  color: var(--bc-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.bc-nav__dropdown a:hover { background: var(--bc-surface); color: var(--bc-primary); }
.bc-nav__dropdown a.current { color: var(--bc-accent); font-weight: 600; }
.bc-nav__dropdown::before {
  content: '';
  position: absolute;
  top: -5px; left: 18px;
  width: 10px; height: 10px;
  background: var(--bc-white);
  border-left: 1px solid var(--bc-border);
  border-top: 1px solid var(--bc-border);
  transform: rotate(45deg);
}

/* Legacy list-based nav (keep for wp:navigation fallback) */
.bc-nav li { position: relative; }
.bc-nav > li > a {
  display: flex; align-items: center; gap: 0.28rem;
  padding: 0.55rem 0.75rem; font-size: 0.8rem; font-weight: 500;
  color: var(--bc-text); text-decoration: none; border-radius: 3px;
  transition: color 0.18s, background 0.18s; white-space: nowrap;
}
.bc-nav > li > a:hover { color: var(--bc-primary); background: var(--bc-surface); }
.bc-nav li:hover .bc-nav__arrow { transform: rotate(180deg); }
.bc-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--bc-white); border: 1px solid var(--bc-border); border-radius: 4px;
  box-shadow: 0 10px 36px rgba(78,83,101,0.13); padding: 0.5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.2s ease; z-index: 200; list-style: none;
}
.bc-nav li:hover .bc-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.bc-dropdown a { display: block; padding: 0.55rem 1.1rem; font-size: 0.8rem; color: var(--bc-text); text-decoration: none; transition: background 0.15s, color 0.15s; }
.bc-dropdown a:hover { background: var(--bc-surface); color: var(--bc-primary); }

/* ─── HERO (Homepage) ─────────────────────────────────── */
.bc-hero {
  background: var(--bc-primary);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.bc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255,161,10,0.07) 0%, transparent 70%);
  z-index: 1;
}
.bc-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 130%;
  height: 100%;
  background: url('./assets/bc-hero-bg.svg') center center / auto 130% no-repeat;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
.bc-hero__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  pointer-events: none;
  object-fit: cover;
}
.bc-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.bc-hero__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--bc-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.bc-hero h1 {
  font-family: var(--bc-f-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.bc-hero h1 em {
  font-style: normal;
  color: var(--bc-accent);
}
.bc-hero__desc {
  font-size: 0.975rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.bc-hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── BUTTONS ─────────────────────────────────────────── */
.bc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.78rem 1.65rem;
  border-radius: 3px;
  font-family: var(--bc-f-body);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.bc-btn--primary { background: var(--bc-accent); color: #fff; }
.bc-btn--primary:hover { background: #e08e00; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(255,161,10,0.35); }
.bc-btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.32); }
.bc-btn--outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color: #fff; }
.bc-btn--dark { background: var(--bc-primary); color: #fff; }
.bc-btn--dark:hover { background: #3a3f52; color: #fff; }

/* Hero stats — 2×3 grid */
.bc-hero__stats,
.bc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px;
  overflow: hidden;
}
.bc-stat-cell,
.bc-stat {
  background: rgba(255,255,255,0.04);
  padding: 1.5rem 1.1rem;
  text-align: center;
}
.bc-stat-cell strong,
.bc-stat strong {
  display: block;
  font-family: var(--bc-f-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.bc-stat-cell strong em,
.bc-stat strong em { font-style: normal; color: var(--bc-accent); }
.bc-stat-cell span,
.bc-stat span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
  display: block;
}

/* ─── SECTIONS ────────────────────────────────────────── */
.bc-section { padding: 5rem 0; }
.bc-section--white { background: var(--bc-white); }
.bc-section--surface { background: var(--bc-surface); }
.bc-section--dark { background: var(--bc-primary); }
.bc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.bc-section-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--bc-accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.bc-section-title {
  font-family: var(--bc-f-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--bc-primary);
  line-height: 1.2;
  margin-bottom: 3rem;
}
.bc-section-title--white { color: #fff; }

/* ─── SERVICES ────────────────────────────────────────── */
.bc-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.bc-service-card {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: 4px;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.bc-service-card:hover {
  border-color: var(--bc-primary);
  box-shadow: 0 4px 24px rgba(78,83,101,0.1);
  transform: translateY(-2px);
}
.bc-service-card__icon {
  width: 38px; height: 38px;
  background: var(--bc-primary);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bc-service-card__icon { margin-bottom: 1rem; }
.bc-service-card__icon svg { display: block; width: 20px; height: 20px; }
.bc-service-card h3 {
  font-family: var(--bc-f-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bc-primary);
  line-height: 1.35;
  margin: 0;
}
.bc-service-card p {
  font-size: 0.83rem;
  color: var(--bc-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.bc-service-link {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--bc-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  transition: gap 0.2s, color 0.2s;
}
.bc-service-link:hover { color: var(--bc-accent); gap: 0.5rem; }

/* ─── NEWS ────────────────────────────────────────────── */
.bc-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  font-family: Georgia, serif;
}
.bc-news-col h3 {
  font-family: var(--bc-f-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bc-primary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bc-accent);
  margin-bottom: 1.5rem;
}
.bc-news-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--bc-border);
}
.bc-news-item:last-child { border-bottom: none; }
.bc-news-date {
  font-size: 0.67rem;
  color: var(--bc-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  font-family: var(--bc-f-body);
}
.bc-news-item a {
  font-size: 0.85rem;
  color: var(--bc-text);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.45;
  display: block;
  margin-bottom: 0.38rem;
  transition: color 0.18s;
}
.bc-news-item a:hover { color: var(--bc-primary); }
.bc-news-item p {
  font-size: 0.78rem;
  color: var(--bc-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--bc-f-body);
}
.bc-news-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bc-primary);
  text-decoration: none;
  font-family: var(--bc-f-body);
  transition: gap 0.2s, color 0.2s;
}
.bc-news-more:hover { color: var(--bc-accent); gap: 0.5rem; }

/* ─── ABOUT STRIP ─────────────────────────────────────── */
.bc-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.bc-about h2 {
  font-family: var(--bc-f-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1.1rem;
}
.bc-about > div > p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.bc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.bc-feature {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1.2rem;
}
.bc-feature strong {
  display: block;
  font-family: var(--bc-f-head);
  font-size: 1.5rem;
  color: var(--bc-accent);
  margin-bottom: 0.2rem;
}
.bc-feature span { font-size: 0.73rem; color: rgba(255,255,255,0.5); }

/* ─── PAGE HERO (inner pages) ─────────────────────────── */
.bc-page-hero {
  background: var(--bc-primary);
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.bc-page-hero__svg {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
}
.bc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.bc-breadcrumb a {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.bc-breadcrumb a:hover { color: var(--bc-accent); }
.bc-breadcrumb__sep { font-size: 0.73rem; color: rgba(255,255,255,0.22); }
.bc-breadcrumb__current { font-size: 0.73rem; color: rgba(255,255,255,0.75); }
.bc-page-hero h1 {
  font-family: var(--bc-f-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.bc-page-hero__sub {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.52);
  margin-top: 0.5rem;
}

/* ─── CATEGORY TABS ────────────────────────────────────── */
.bc-cat-tabs {
  background: var(--bc-white);
  border-bottom: 1px solid var(--bc-border);
}
.bc-cat-tabs__inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: auto;
}
.bc-cat-tab {
  display: block;
  padding: 0.9rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bc-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.bc-cat-tab:hover { color: var(--bc-primary); }
.bc-cat-tab--active,
.bc-cat-tab.active { color: var(--bc-primary); border-bottom-color: var(--bc-accent); font-weight: 600; }

/* ─── ARCHIVE LAYOUT ──────────────────────────────────── */
.bc-page-body { padding: 3rem 0 5rem; }
.bc-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

.bc-articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bc-border);
}
.bc-articles-header h2 {
  font-family: var(--bc-f-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bc-primary);
  margin: 0;
}
.bc-articles-count { font-size: 0.74rem; color: var(--bc-muted); }

.bc-article {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--bc-border);
}
.bc-article:last-of-type { border-bottom: none; }
.bc-article__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.bc-article__date {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bc-accent);
  letter-spacing: 0.05em;
  background: rgba(255,161,10,0.09);
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
}
.bc-article__cat {
  font-size: 0.67rem;
  color: var(--bc-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bc-article h3 {
  font-family: var(--bc-f-head);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.55rem;
}
.bc-article h3 a { color: var(--bc-text); text-decoration: none; transition: color 0.2s; }
.bc-article h3 a:hover { color: var(--bc-primary); }
.bc-article p { font-size: 0.875rem; color: var(--bc-muted); line-height: 1.7; margin-bottom: 0.5rem; }
.bc-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--bc-primary);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.bc-read-more:hover { color: var(--bc-accent); gap: 0.48rem; }

/* Pagination */
.bc-pagination {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}
.bc-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--bc-text);
  border: 1px solid var(--bc-border);
  background: var(--bc-white);
  transition: all 0.18s;
  cursor: pointer;
}
.bc-page-btn:hover { border-color: var(--bc-primary); color: var(--bc-primary); }
.bc-page-btn--active { background: var(--bc-primary); color: #fff; border-color: var(--bc-primary); }
.bc-page-btn--arrow { color: var(--bc-muted); font-size: 1rem; }

/* ─── SIDEBAR ─────────────────────────────────────────── */
.bc-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
/* New sidebar widget classes (archive template) */
.bc-sidebar-widget {
  background: var(--bc-white);
  border: 1px solid var(--bc-border);
  border-radius: 4px;
  overflow: hidden;
}
.bc-sidebar-widget--cta {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
}
.bc-widget-title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bc-primary);
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--bc-border);
  background: var(--bc-surface);
  margin: 0;
}
.bc-widget-title--dark {
  background: rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
}
.bc-widget-body { padding: 0.4rem 0; }
.bc-sidebar-col { flex: 0 0 300px; max-width: 300px; }
.bc-widget {
  background: var(--bc-white);
  border: 1px solid var(--bc-border);
  border-radius: 4px;
  overflow: hidden;
}
.bc-widget--dark {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
}
.bc-widget__title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bc-primary);
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--bc-border);
  background: var(--bc-surface);
  margin: 0;
}
.bc-widget--dark .bc-widget__title {
  background: rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
}
.bc-widget__body { padding: 0.4rem 0; }
.bc-widget--dark .bc-widget__body { padding: 1.2rem; }

.bc-section-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.68rem 1.2rem;
  font-size: 0.82rem;
  color: var(--bc-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.bc-section-nav a:hover { background: var(--bc-surface); color: var(--bc-primary); }
.bc-section-nav a.active {
  color: var(--bc-primary);
  font-weight: 600;
  border-left-color: var(--bc-accent);
  background: rgba(255,161,10,0.04);
}
.bc-section-nav .bc-count {
  font-size: 0.68rem;
  color: var(--bc-muted);
  background: var(--bc-surface);
  padding: 0.1rem 0.42rem;
  border-radius: 10px;
}
.bc-section-nav a.active .bc-count {
  background: rgba(255,161,10,0.12);
  color: var(--bc-accent);
}

.bc-recent-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--bc-border);
}
.bc-recent-item:last-child { border-bottom: none; }
.bc-recent-date {
  font-size: 0.64rem;
  color: var(--bc-accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.bc-recent-item a {
  font-size: 0.8rem;
  color: var(--bc-text);
  text-decoration: none;
  line-height: 1.4;
  font-weight: 500;
  transition: color 0.2s;
}
.bc-recent-item a:hover { color: var(--bc-primary); }

.bc-widget-promo p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.bc-widget-promo a {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--bc-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.bc-widget-promo a:hover { gap: 0.5rem; }

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: #111827;
  padding: 4rem 0 0;
}
.bc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
}
.bc-footer-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.75;
  margin: 0.9rem 0 1.5rem;
}
.bc-footer-address {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.33);
  line-height: 1.85;
}
.bc-footer-address strong { color: rgba(255,255,255,0.58); display: block; }
.bc-footer-col h4 {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--bc-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.bc-footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.58rem; }
.bc-footer-col a {
  font-size: 0.79rem;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: color 0.18s;
}
.bc-footer-col a:hover { color: rgba(255,255,255,0.92); }
.bc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.bc-footer-bottom p { font-size: 0.71rem; color: rgba(255,255,255,0.28); margin: 0; }

/* ─── WP NAVIGATION BLOCK — header overrides ─────────── */
.site-header .wp-block-navigation__container {
  gap: 0.1rem;
}
.site-header .wp-block-navigation-item__content {
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bc-text);
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.28rem;
}
.site-header .wp-block-navigation-item__content:hover {
  color: var(--bc-primary);
  background: var(--bc-surface);
}
.site-header .wp-block-navigation__submenu-icon {
  opacity: 0.45;
  transition: transform 0.2s;
}
.site-header .wp-block-navigation-item:hover .wp-block-navigation__submenu-icon {
  transform: rotate(180deg);
}
.site-header .wp-block-navigation__submenu-container {
  min-width: 230px;
  border: 1px solid var(--bc-border);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(27,43,94,0.12);
  padding: 0.5rem 0;
}
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  border-radius: 0;
}
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--bc-surface);
  color: var(--bc-primary);
}
/* Fix: nav inside column should fill width and justify to end */
.site-header .wp-block-column .wp-block-navigation {
  width: 100%;
  justify-content: flex-end;
}

/* ─── WP QUERY BLOCK — archive article cards ─────────── */
.bc-article-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--bc-border);
}
.bc-article-card:last-child { border-bottom: none; }
.bc-article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.bc-article-card .wp-block-post-date time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bc-accent);
  letter-spacing: 0.05em;
  background: rgba(255,161,10,0.09);
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
}
.bc-article-card .wp-block-post-terms {
  font-size: 0.67rem;
  color: var(--bc-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bc-article-card .wp-block-post-title a {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bc-text);
  text-decoration: none;
  transition: color 0.2s;
}
.bc-article-card .wp-block-post-title a:hover { color: var(--bc-primary); }
.bc-article-card .wp-block-post-excerpt p {
  font-size: 0.875rem;
  color: var(--bc-muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.bc-article-card .wp-block-post-excerpt .wp-block-post-excerpt__more-text { display: none; }
.bc-article-card .wp-block-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bc-primary);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
  margin-top: 0.4rem;
}
.bc-article-card .wp-block-read-more:hover { color: var(--bc-accent); gap: 0.5rem; }

/* WP pagination in archive */
.bc-pagination .wp-block-query-pagination-numbers a,
.bc-pagination .wp-block-query-pagination-previous-arrow,
.bc-pagination .wp-block-query-pagination-next-arrow,
.bc-pagination .wp-block-query-pagination-numbers .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 0.5rem;
  border-radius: 3px; font-size: 0.82rem; font-weight: 500;
  text-decoration: none; color: var(--bc-text);
  border: 1px solid var(--bc-border); background: var(--bc-white);
  transition: all 0.18s;
}
.bc-pagination .wp-block-query-pagination-numbers a:hover,
.bc-pagination .wp-block-query-pagination-previous-arrow:hover,
.bc-pagination .wp-block-query-pagination-next-arrow:hover { border-color: var(--bc-primary); color: var(--bc-primary); }
.bc-pagination .wp-block-query-pagination-numbers .current { background: var(--bc-primary); color: #fff; border-color: var(--bc-primary); }

/* BC page hero WP block overrides */
.bc-page-hero .wp-block-query-title {
  font-family: var(--bc-f-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  padding: 0 2rem 0.5rem;
  margin: 0;
}
.bc-page-hero .wp-block-term-description {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  padding: 0 2rem;
  margin: 0;
}

/* WP columns overrides for archive 2-col layout */
.bc-page-layout.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}
.bc-articles-col { min-width: 0; }

/* ─── HAMBURGER ──────────────────────────────────────── */
.bc-hamburger {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--bc-border);
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.bc-hamburger:hover { border-color: var(--bc-primary); background: var(--bc-surface); }
.bc-hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--bc-primary); position: relative; transition: background 0.2s;
}
.bc-hamburger span::before,
.bc-hamburger span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--bc-primary);
  transition: transform 0.25s ease, top 0.25s ease;
}
.bc-hamburger span::before { top: -6px; }
.bc-hamburger span::after  { top:  6px; }
.bc-hamburger.open span { background: transparent; }
.bc-hamburger.open span::before { top: 0; transform: rotate(45deg); }
.bc-hamburger.open span::after  { top: 0; transform: rotate(-45deg); }

.bc-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,20,40,0.45);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s; z-index: 90;
}
.bc-menu-backdrop.open { opacity: 1; visibility: visible; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
  .bc-hero__inner { grid-template-columns: 1fr; padding: 4rem 1.5rem; }
  .bc-hero__stats,
  .bc-stats { display: none; }
  .bc-services { grid-template-columns: 1fr 1fr; }
  .bc-news-grid { grid-template-columns: 1fr; }
  .bc-about { grid-template-columns: 1fr; gap: 2.5rem; }
  .bc-page-layout,
  .bc-page-layout.wp-block-columns { grid-template-columns: 1fr !important; }
  .bc-sidebar { position: static; }
  .bc-sidebar-col { flex: unset !important; max-width: 100% !important; }
  .bc-footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .bc-hamburger { display: inline-flex; }

  .bc-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(340px, 86vw);
    background: var(--bc-white);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 5rem 1.25rem 2rem;
    box-shadow: -8px 0 32px rgba(15,20,40,0.18);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.4,.1,.2,1);
    overflow-y: auto;
    z-index: 95;
    display: flex !important;
  }
  .bc-nav.open { transform: translateX(0); }

  .bc-nav__item { width: 100%; border-bottom: 1px solid var(--bc-border); }
  .bc-nav__item:last-child { border-bottom: none; }
  .bc-nav__item > a {
    padding: 1rem 0.5rem; font-size: 0.95rem;
    justify-content: space-between; width: 100%; border-radius: 0;
  }
  .bc-nav__arrow { width: 10px; height: 7px; opacity: 0.7; }
  .bc-nav__item.expanded .bc-nav__arrow { transform: rotate(180deg); }

  .bc-nav__dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0;
    max-height: 0; overflow: hidden; padding: 0;
    background: var(--bc-surface);
    transition: max-height 0.3s ease, padding 0.3s ease;
    min-width: 0;
  }
  .bc-nav__dropdown::before { display: none; }
  .bc-nav__item.expanded .bc-nav__dropdown { max-height: 500px; padding: 0.5rem 0; }
  .bc-nav__dropdown a { padding: 0.7rem 1.5rem; font-size: 0.85rem; }
}
@media (max-width: 600px) {
  .bc-services { grid-template-columns: 1fr; }
  .bc-hero h1 { font-size: 1.9rem; }
  .bc-topbar__inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .bc-topbar__address { display: none; }
}

/* ─── SINGLE POST ─────────────────────────────────────── */
.bc-articles-col .wp-block-post-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--bc-text);
}
.bc-articles-col .wp-block-post-content p { margin-bottom: 1.2rem; }
.bc-articles-col .wp-block-post-content h2,
.bc-articles-col .wp-block-post-content h3 {
  font-family: var(--bc-f-head);
  font-weight: 700;
  color: var(--bc-primary);
  margin: 1.8rem 0 0.75rem;
}
.bc-articles-col .wp-block-post-content h2 { font-size: 1.25rem; }
.bc-articles-col .wp-block-post-content h3 { font-size: 1.05rem; }
.bc-articles-col .wp-block-post-content strong { font-weight: 600; }

.bc-articles-col .wp-block-post-navigation-link a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bc-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.bc-articles-col .wp-block-post-navigation-link a:hover { color: var(--bc-accent); }

@media (max-width: 960px) {
  .bc-page-hero__svg { display: none; }
}

/* ─── HOME/SEARCH HERO TITLE ─────────────────────────── */
.bc-page-hero__title {
  font-family: var(--bc-f-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0.75rem 0 0;
}

/* ─── FORCE WHITE TITLE INSIDE HERO ──────────────────── */
.bc-page-hero .wp-block-post-title,
.bc-page-hero h1,
.bc-page-hero h2 {
  color: #ffffff !important;
}
.bc-page-hero .wp-block-post-date,
.bc-page-hero .wp-block-post-date time {
  color: rgba(255,255,255,0.52) !important;
}

/* Services grid */
.bc-services-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1.25rem; margin-top:1.5rem; }
.bc-service-card { display:block; background:#fff; border:1px solid var(--bc-border); border-radius:6px; padding:1.5rem; text-decoration:none; color:inherit; transition:box-shadow .2s,border-color .2s; }
.bc-service-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.08); border-color:#c5c9d4; }
.bc-service-card__title { font-family:var(--bc-f-head); font-weight:700; font-size:1rem; color:var(--bc-dark); margin-bottom:.6rem; }
.bc-service-card__desc { font-size:.85rem; color:#6B7280; line-height:1.6; }

/* Team grid */
.bc-team-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.5rem; margin-top:1.5rem; }
.bc-team-card { background:#fff; border:1px solid var(--bc-border); border-radius:8px; padding:1.75rem; }
.bc-team-card__name { font-family:var(--bc-f-head); font-weight:700; font-size:1.1rem; color:var(--bc-dark); margin-bottom:.3rem; }
.bc-team-card__role { font-size:.8rem; color:#6B7280; line-height:1.5; margin-bottom:.9rem; }
.bc-team-card__quote { margin:0 0 1rem; padding:.6rem 1rem; border-left:3px solid #ffa10a; background:#fffbf2; font-size:.85rem; font-style:italic; color:#4e5365; border-radius:0 4px 4px 0; }
.bc-team-card__body p { font-size:.85rem; color:#374151; line-height:1.65; margin-bottom:.5rem; }

/* Team list */
.bc-team-list { margin-top: 1.5rem; }
.bc-team-member h3 { font-family: var(--bc-f-head); font-size: 1.2rem; font-weight: 700; color: var(--bc-dark); margin-bottom: 0.3rem; }
.bc-team-member__role { font-size: 0.85rem; color: #6B7280; line-height: 1.5; margin-bottom: 0.9rem; }
.bc-team-member p { font-size: 0.9rem; color: #374151; line-height: 1.65; margin-bottom: 0.5rem; }
.bc-team-divider { border: none; border-top: 1px solid var(--bc-border); margin: 2rem 0; }

/* Contacts */
.bc-contacts { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.bc-contact-block__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #9CA3AF; margin-bottom: 0.3rem; }
.bc-contact-block__value { font-size: 1rem; color: var(--bc-dark); line-height: 1.6; }
.bc-contact-block__value a { color: var(--bc-primary); text-decoration: none; font-weight: 600; }
.bc-contact-block__value a:hover { text-decoration: underline; }

/* Logo mark */
.logo-mark { width:44px; height:44px; background:#4e5365; border-radius:3px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.logo-mark svg { width:26px; height:26px; display:block; }
