/*
Theme Name: Behavior Crisis Strategies
Theme URI: https://example.com/behavior-crisis-strategies
Author: Custom Theme
Description: A dark navy and gold professional WordPress theme for Behavior Crisis Strategies, with native WordPress logo controls, responsive navigation, dropdown submenus, and a specialized front page.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: behavior-crisis-strategies
*/

:root {
  --bcs-bg-dark: #0b0f17;
  --bcs-bg-card: #131b27;
  --bcs-bg-card-hover: #1a2434;
  --bcs-gold: #c5a059;
  --bcs-gold-light: #dfbe7f;
  --bcs-text: #f1f5f9;
  --bcs-muted: #94a3b8;
  --bcs-border: rgba(197,160,89,.25);
  --bcs-header: rgba(11,15,23,.96);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bcs-bg-dark);
  color: var(--bcs-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bcs-gold-light); }
a:hover, a:focus { color: var(--bcs-gold); }
img { max-width: 100%; height: auto; }
.bcs-container { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }

/* Top notice */
.bcs-topbar {
  background: #06080c;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--bcs-gold-light);
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Header */
.bcs-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bcs-header);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.admin-bar .bcs-site-header { top: 32px; }
.bcs-header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 8px;
}
.bcs-brand { flex: 0 1 auto; min-width: 0; }
.bcs-brand .custom-logo-link { display: inline-flex; align-items: center; }
.bcs-brand .custom-logo {
  display: block;
  width: var(--bcs-logo-width-desktop, 140px);
  max-width: 100%;
  height: auto;
}
.bcs-site-title {
  color: #fff;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.15;
  letter-spacing: .05em;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.bcs-site-title span { color: var(--bcs-gold); }

.bcs-menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--bcs-border);
  background: transparent;
  color: var(--bcs-text);
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}
.bcs-nav { margin-left: auto; }
.bcs-nav ul { list-style: none; margin: 0; padding: 0; }
.bcs-nav > .menu { display: flex; align-items: center; gap: 4px; }
.bcs-nav li { position: relative; }
.bcs-nav a {
  display: block;
  color: var(--bcs-muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  padding: 10px 11px;
  border-radius: 3px;
}
.bcs-nav a:hover,
.bcs-nav a:focus,
.bcs-nav .current-menu-item > a,
.bcs-nav .current-menu-ancestor > a { color: var(--bcs-gold); }

/* Desktop submenus */
.bcs-nav .sub-menu {
  position: absolute;
  z-index: 1000;
  left: 0;
  top: calc(100% + 2px);
  min-width: 220px;
  padding: 7px;
  background: #111827;
  border: 1px solid var(--bcs-border);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.bcs-nav .sub-menu .sub-menu { left: 100%; top: -8px; }
.bcs-nav li:hover > .sub-menu,
.bcs-nav li:focus-within > .sub-menu,
.bcs-nav li.submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bcs-nav .sub-menu a { color: #d7dee8; padding: 10px 12px; white-space: nowrap; }
.bcs-nav .sub-menu a:hover,
.bcs-nav .sub-menu a:focus { color: #fff; background: #1b2638; }
.bcs-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.bcs-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); float: right; margin-top: 5px; }

/* Hero */
.bcs-hero {
  padding: 92px 0 74px;
  text-align: center;
  background: radial-gradient(circle at top center, #182335 0%, var(--bcs-bg-dark) 75%);
  border-bottom: 1px solid var(--bcs-border);
}
.bcs-badge {
  display: inline-block;
  color: var(--bcs-gold);
  background: rgba(197,160,89,.08);
  border: 1px solid var(--bcs-border);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}
.bcs-hero h1 {
  margin: 0 auto 24px;
  max-width: 920px;
  color: #fff;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  line-height: 1.25;
}
.bcs-hero-copy { max-width: 820px; margin: 0 auto 38px; color: var(--bcs-muted); font-size: 1.18rem; font-weight: 300; }
.bcs-btn-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.bcs-btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 4px;
  border: 1px solid var(--bcs-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.bcs-btn:hover { transform: translateY(-2px); }
.bcs-btn-primary { background: var(--bcs-gold); color: var(--bcs-bg-dark); }
.bcs-btn-primary:hover, .bcs-btn-primary:focus { background: var(--bcs-gold-light); color: var(--bcs-bg-dark); box-shadow: 0 8px 20px rgba(197,160,89,.22); }
.bcs-btn-secondary { background: transparent; color: var(--bcs-gold); }
.bcs-btn-secondary:hover, .bcs-btn-secondary:focus { background: rgba(197,160,89,.1); color: var(--bcs-gold-light); }

/* Credentials */
.bcs-credentials { border-bottom: 1px solid rgba(255,255,255,.06); }
.bcs-credentials-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 25px 0; }
.bcs-credential { text-align: center; color: var(--bcs-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* Main sections */
.bcs-main { padding-top: 82px; }
.bcs-section-title { margin: 0 0 14px; text-align: center; color: #fff; font-family: Cinzel, Georgia, serif; font-size: clamp(1.85rem, 4vw, 2.2rem); }
.bcs-section-subtitle { max-width: 680px; margin: 0 auto 50px; text-align: center; color: var(--bcs-muted); font-size: 1.04rem; }
.bcs-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; margin-bottom: 86px; }
.bcs-card { background: var(--bcs-bg-card); border: 1px solid rgba(255,255,255,.06); border-top: 3px solid var(--bcs-gold); border-radius: 6px; padding: 38px 28px; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.bcs-card:hover { transform: translateY(-4px); background: var(--bcs-bg-card-hover); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.bcs-card h3 { margin: 0 0 16px; color: #fff; font-family: Cinzel, Georgia, serif; font-size: 1.28rem; line-height: 1.3; }
.bcs-card p { margin: 0; color: var(--bcs-muted); }
.bcs-box { background: var(--bcs-bg-card); border: 1px solid var(--bcs-border); border-radius: 8px; padding: 52px; margin-bottom: 86px; }
.bcs-quote { margin: 0 0 24px; padding-left: 24px; border-left: 3px solid var(--bcs-gold); color: var(--bcs-gold-light); font-family: Cinzel, Georgia, serif; font-size: 1.28rem; line-height: 1.5; font-style: italic; }
.bcs-box p { color: var(--bcs-muted); }
.bcs-protocol { background: linear-gradient(135deg,#111a27 0%,#0c111a 100%); border-color: var(--bcs-gold); box-shadow: 0 15px 35px rgba(0,0,0,.45); }
.bcs-protocol h2, .bcs-protocol h3 { color: var(--bcs-gold); font-family: Cinzel, Georgia, serif; }
.bcs-checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.bcs-checklist li { position: relative; padding-left: 30px; margin-bottom: 16px; color: var(--bcs-text); }
.bcs-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--bcs-gold); font-weight: 700; }
.bcs-contact { text-align: center; }
.bcs-contact-info { margin: 24px 0 30px; color: var(--bcs-muted); font-size: 1.08rem; }
.bcs-contact-info p { margin: 6px 0; }

/* Generic page content */
.bcs-page { padding: 70px 0 90px; }
.bcs-entry { max-width: 860px; margin: 0 auto; }
.bcs-entry h1 { color: #fff; font-family: Cinzel, Georgia, serif; }
.bcs-entry h2, .bcs-entry h3 { color: #fff; }
.bcs-entry p, .bcs-entry li { color: var(--bcs-muted); }

/* Footer */
.bcs-footer { padding: 48px 0; background: #06080c; border-top: 1px solid rgba(255,255,255,.08); text-align: center; color: var(--bcs-muted); font-size: 14px; }
.bcs-footer strong { color: var(--bcs-text); }
.bcs-footer-notice { max-width: 820px; margin: 12px auto 0; color: #64748b; font-size: 13px; }
.bcs-footer-copy { color: #475569; font-size: 12px; margin-top: 16px; }

.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.screen-reader-text:focus { clip:auto!important; height:auto; width:auto; display:block; top:5px; left:5px; z-index:100000; background:#fff; color:#000; padding:15px 23px; }

@media (max-width: 900px) {
  .bcs-brand .custom-logo { width: var(--bcs-logo-width-tablet, 120px); }
  .bcs-menu-toggle { display: inline-block; }
  .bcs-nav { position: absolute; left: 0; right: 0; top: 100%; background: #0b0f17; border-bottom: 1px solid rgba(255,255,255,.08); display: none; }
  .bcs-nav.is-open { display: block; }
  .bcs-nav > .menu { display: block; width: min(100% - 32px, 1140px); margin: 0 auto; padding: 10px 0 14px; }
  .bcs-nav a { padding: 11px 8px; }
  .bcs-nav .sub-menu { position: static; display: none; min-width: 0; padding: 0 0 0 16px; background: transparent; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .bcs-nav li.submenu-open > .sub-menu { display: block; }
  .bcs-nav li:hover > .sub-menu, .bcs-nav li:focus-within > .sub-menu { transform: none; }
  .bcs-nav .sub-menu a { white-space: normal; }
  .bcs-nav .menu-item-has-children > a { padding-right: 36px; }
  .bcs-nav .menu-item-has-children > a::after { float: right; margin-top: 5px; }
  .bcs-grid-3 { grid-template-columns: 1fr; }
  .bcs-credentials-inner { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .bcs-container { width: min(100% - 32px, 1140px); }
  .bcs-brand .custom-logo { width: var(--bcs-logo-width-mobile, 105px); }
  .bcs-site-title { font-size: 15px; white-space: normal; }
  .bcs-topbar { font-size: 10px; padding: 7px 12px; }
  .bcs-header-inner { min-height: 58px; padding-block: 6px; gap: 12px; }
  .bcs-hero { padding: 58px 0 50px; }
  .bcs-badge { font-size: 11px; letter-spacing: .12em; }
  .bcs-hero-copy { font-size: 1rem; }
  .bcs-btn-row { flex-direction: column; align-items: stretch; }
  .bcs-btn { text-align: center; }
  .bcs-credentials-inner { grid-template-columns: 1fr; gap: 9px; padding: 20px 0; }
  .bcs-main { padding-top: 62px; }
  .bcs-box { padding: 30px 22px; }
  .bcs-card { padding: 30px 24px; }
}

@media (max-width: 782px) { .admin-bar .bcs-site-header { top: 46px; } }


/* WPForms compatibility
 * Dark pages use light form copy by default. Add .bcs-light-section to any
 * light-background content area, or use the included "Light Page" template,
 * to switch WPForms copy to dark text.
 */
:root {
  --bcs-wpforms-label-dark-bg: #f8fafc;
  --bcs-wpforms-muted-dark-bg: #cbd5e1;
  --bcs-wpforms-label-light-bg: #172033;
  --bcs-wpforms-muted-light-bg: #475569;
}

/* Dark theme pages: labels and supporting copy stay readable. */
.wpforms-container .wpforms-form .wpforms-title,
.wpforms-container .wpforms-form .wpforms-field-label,
.wpforms-container .wpforms-form .wpforms-field-label-inline,
.wpforms-container .wpforms-form label.wpforms-field-label-inline,
.wpforms-container .wpforms-form .wpforms-field-html,
.wpforms-container .wpforms-form .wpforms-field-content,
.wpforms-container .wpforms-form .wpforms-page-indicator,
.wpforms-container .wpforms-form .wpforms-field-divider h3,
.wpforms-container .wpforms-form .wpforms-field-divider h4 {
  color: var(--bcs-wpforms-label-dark-bg) !important;
}

.wpforms-container .wpforms-form .wpforms-description,
.wpforms-container .wpforms-form .wpforms-field-sublabel,
.wpforms-container .wpforms-form .wpforms-field-description,
.wpforms-container .wpforms-form .wpforms-field-html p,
.wpforms-container .wpforms-form .wpforms-field-content p,
.wpforms-container .wpforms-form .wpforms-field-divider p {
  color: var(--bcs-wpforms-muted-dark-bg) !important;
}

.wpforms-container .wpforms-form .wpforms-required-label {
  color: #fca5a5 !important;
}

/* Keep entered text dark inside the standard light WPForms controls. */
.wpforms-container .wpforms-form input:not([type="submit"]):not([type="button"]):not([type="reset"]),
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
  color: #1f2937;
}

/* Light pages/sections: flip labels and descriptions to dark text. */
.bcs-light-page .wpforms-container .wpforms-form .wpforms-title,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-label,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-label-inline,
.bcs-light-page .wpforms-container .wpforms-form label.wpforms-field-label-inline,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-html,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-content,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-page-indicator,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-divider h3,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-divider h4,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-title,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-label,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-label-inline,
.bcs-light-section .wpforms-container .wpforms-form label.wpforms-field-label-inline,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-html,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-content,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-page-indicator,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-divider h3,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-divider h4 {
  color: var(--bcs-wpforms-label-light-bg) !important;
}

.bcs-light-page .wpforms-container .wpforms-form .wpforms-description,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-sublabel,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-description,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-html p,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-content p,
.bcs-light-page .wpforms-container .wpforms-form .wpforms-field-divider p,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-description,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-sublabel,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-description,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-html p,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-content p,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-field-divider p {
  color: var(--bcs-wpforms-muted-light-bg) !important;
}

.bcs-light-page .wpforms-container .wpforms-form .wpforms-required-label,
.bcs-light-section .wpforms-container .wpforms-form .wpforms-required-label {
  color: #b42318 !important;
}

/* Theme-native light page template. */
.bcs-light-page {
  background: #ffffff;
  color: #172033;
  padding: 64px 0 80px;
  min-height: 50vh;
}
.bcs-light-page .bcs-entry {
  color: #172033;
}
.bcs-light-page .bcs-entry h1,
.bcs-light-page .bcs-entry h2,
.bcs-light-page .bcs-entry h3,
.bcs-light-page .bcs-entry h4,
.bcs-light-page .bcs-entry h5,
.bcs-light-page .bcs-entry h6 {
  color: #0f172a;
}
.bcs-light-page .bcs-entry p,
.bcs-light-page .bcs-entry li {
  color: #334155;
}
.bcs-light-page .bcs-entry a {
  color: #8a6622;
}
.bcs-light-page .bcs-entry a:hover,
.bcs-light-page .bcs-entry a:focus {
  color: #604716;
}
