/*
Theme Name: Bitcode Consulting
Theme URI: https://bitcodeconsulting.com
Author: Bitcode Consulting
Author URI: https://www.bitcode.ca
Description: A conversion-focused WordPress theme for Bitcode Consulting's managed IT, cybersecurity, AI consulting, cloud, and website reimprovement services.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bitcode-consulting
*/

:root {
  --bc-ink: #111827;
  --bc-ink-soft: #354152;
  --bc-muted: #667085;
  --bc-line: #d9e2ec;
  --bc-soft: #f5f8fb;
  --bc-soft-2: #eef6f6;
  --bc-white: #ffffff;
  --bc-blue: #1769e0;
  --bc-blue-dark: #0f3d91;
  --bc-cyan: #18b7c9;
  --bc-green: #6fc24a;
  --bc-yellow: #f0b429;
  --bc-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --bc-radius: 8px;
  --bc-radius-sm: 6px;
  --bc-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bc-ink);
  background: var(--bc-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bc-shell {
  width: min(100% - 40px, var(--bc-max));
  margin-inline: auto;
}

.bc-topbar {
  background: #0b1220;
  color: #e8f6f6;
  font-size: 0.88rem;
}

.bc-topbar .bc-shell {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bc-topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.bc-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 226, 236, 0.88);
  backdrop-filter: blur(16px);
}

.admin-bar .bc-header {
  top: 32px;
}

.bc-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.bc-brand img {
  max-height: 54px;
  width: auto;
}

.bc-brand__mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: var(--bc-white);
  background: linear-gradient(135deg, var(--bc-blue), var(--bc-cyan));
  border-radius: 8px;
  font-weight: 800;
}

.bc-brand__text {
  display: grid;
  line-height: 1.1;
}

.bc-brand__name {
  font-weight: 800;
  font-size: 1.04rem;
}

.bc-brand__tagline {
  color: var(--bc-muted);
  font-size: 0.78rem;
}

.bc-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-sm);
  background: var(--bc-white);
  color: var(--bc-ink);
  cursor: pointer;
}

.bc-menu-toggle span,
.bc-menu-toggle span::before,
.bc-menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
}

.bc-menu-toggle span::before {
  transform: translateY(-6px);
}

.bc-menu-toggle span::after {
  transform: translateY(4px);
}

.bc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bc-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  border-radius: var(--bc-radius-sm);
  color: #243244;
  font-weight: 700;
  font-size: 0.93rem;
}

.bc-nav a:hover,
.bc-nav .current-menu-item > a {
  background: var(--bc-soft);
  color: var(--bc-blue-dark);
}

.bc-button,
.wp-block-button__link,
.bc-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--bc-radius-sm);
  background: var(--bc-blue);
  color: var(--bc-white);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(23, 105, 224, 0.18);
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.bc-button:hover,
.wp-block-button__link:hover,
.bc-form-submit:hover {
  transform: translateY(-1px);
  background: var(--bc-blue-dark);
}

.bc-button--ghost {
  background: transparent;
  color: var(--bc-ink);
  border-color: var(--bc-line);
  box-shadow: none;
}

.bc-button--ghost:hover {
  background: #f7fbfb;
  color: var(--bc-blue-dark);
}

.bc-hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 36%, rgba(255, 255, 255, 0.38) 64%, rgba(255, 255, 255, 0.06) 100%),
    var(--bc-soft);
}

.bc-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.bc-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 690px;
  display: grid;
  align-items: center;
  padding: 78px 0 86px;
}

.bc-hero__content {
  width: min(660px, 100%);
}

.bc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--bc-blue-dark);
  font-weight: 850;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.bc-kicker::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bc-green);
  content: "";
}

.bc-hero h1,
.bc-page-hero h1 {
  margin: 0 0 22px;
  max-width: 820px;
  font-size: clamp(2.65rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.bc-hero__lead,
.bc-page-hero__lead {
  max-width: 690px;
  color: var(--bc-ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.bc-hero__actions,
.bc-page-hero__actions,
.bc-section__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.bc-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin-top: 38px;
}

.bc-proof-pill {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(23, 105, 224, 0.14);
  border-radius: var(--bc-radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.bc-proof-pill strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.12rem;
}

.bc-proof-pill span {
  color: var(--bc-muted);
  font-size: 0.88rem;
}

.bc-section {
  padding: 86px 0;
}

.bc-section--soft {
  background: var(--bc-soft);
}

.bc-section--ink {
  color: #eef7ff;
  background:
    linear-gradient(135deg, rgba(24, 183, 201, 0.16), rgba(111, 194, 74, 0.1)),
    #0b1220;
}

.bc-section--ink .bc-section__intro p,
.bc-section--ink .bc-muted,
.bc-section--ink p {
  color: #c7d6e5;
}

.bc-section__intro {
  max-width: 820px;
  margin-bottom: 36px;
}

.bc-section__intro--center {
  margin-inline: auto;
  text-align: center;
}

.bc-section__label {
  margin-bottom: 10px;
  color: var(--bc-blue-dark);
  font-weight: 850;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.bc-section--ink .bc-section__label {
  color: #86f0ff;
}

.bc-section h2,
.bc-entry-content h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.bc-section h3,
.bc-entry-content h3 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.58rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.bc-section__intro p,
.bc-entry-content > p {
  color: var(--bc-muted);
  font-size: 1.07rem;
}

.bc-grid {
  display: grid;
  gap: 18px;
}

.bc-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bc-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bc-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bc-card {
  position: relative;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  background: var(--bc-white);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.bc-card--accent {
  border-top: 4px solid var(--bc-green);
}

.bc-card p,
.bc-feature p,
.bc-process p,
.bc-quote p {
  color: var(--bc-muted);
}

.bc-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--bc-radius-sm);
  background: #e9f5ff;
  color: var(--bc-blue-dark);
  font-weight: 900;
}

.bc-icon--green {
  background: #ebf8e6;
  color: #397a26;
}

.bc-icon--cyan {
  background: #e6f9fb;
  color: #087988;
}

.bc-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.bc-feature--reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.bc-feature--reverse .bc-feature__copy {
  order: 2;
}

.bc-feature__media {
  overflow: hidden;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  background: var(--bc-white);
  box-shadow: var(--bc-shadow);
}

.bc-feature__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.bc-check-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.bc-check-list li {
  position: relative;
  padding-left: 30px;
}

.bc-check-list li::before {
  position: absolute;
  left: 0;
  top: 0.18rem;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bc-green);
  color: var(--bc-white);
  font-size: 0.72rem;
  font-weight: 900;
  content: "✓";
}

.bc-process {
  counter-reset: process;
}

.bc-process .bc-card::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--bc-ink);
  color: var(--bc-white);
  font-weight: 900;
}

.bc-band {
  padding: 46px;
  border-radius: var(--bc-radius);
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.1), rgba(24, 183, 201, 0.1)),
    var(--bc-white);
  border: 1px solid rgba(23, 105, 224, 0.16);
}

.bc-band--dark {
  color: var(--bc-white);
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.42), rgba(24, 183, 201, 0.18)),
    #0b1220;
}

.bc-band--dark p {
  color: #c7d6e5;
}

.bc-faq details {
  border-bottom: 1px solid var(--bc-line);
}

.bc-faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 850;
}

.bc-faq details p {
  max-width: 850px;
  color: var(--bc-muted);
}

.bc-page-hero {
  padding: 92px 0 62px;
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.1), rgba(111, 194, 74, 0.08)),
    var(--bc-soft);
  border-bottom: 1px solid var(--bc-line);
}

.bc-page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.75rem);
}

.bc-entry-content {
  padding: 74px 0;
}

.bc-entry-content > * {
  width: min(100% - 40px, 920px);
  margin-left: auto;
  margin-right: auto;
}

.bc-entry-content > .bc-section,
.bc-entry-content > .bc-band {
  width: min(100% - 40px, var(--bc-max));
}

.bc-entry-content .alignwide {
  width: min(100% - 40px, var(--bc-max));
}

.bc-entry-content ul,
.bc-entry-content ol {
  color: var(--bc-ink-soft);
}

.bc-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 28px;
}

.bc-contact-form {
  display: grid;
  gap: 14px;
}

.bc-field {
  display: grid;
  gap: 6px;
}

.bc-field label {
  font-weight: 800;
  font-size: 0.9rem;
}

.bc-field input,
.bc-field textarea,
.bc-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-sm);
  color: var(--bc-ink);
  background: var(--bc-white);
  font: inherit;
}

.bc-field textarea {
  min-height: 136px;
  resize: vertical;
}

.bc-footer {
  color: #dce8f5;
  background: #0b1220;
}

.bc-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.7fr));
  gap: 34px;
  padding: 60px 0 44px;
}

.bc-footer h2,
.bc-footer h3 {
  margin: 0 0 14px;
  color: var(--bc-white);
  font-size: 1rem;
}

.bc-footer p,
.bc-footer a {
  color: #b7c8d9;
}

.bc-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bc-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fb1c5;
  font-size: 0.9rem;
}

@media (max-width: 1020px) {
  .bc-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .bc-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: none;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius);
    background: var(--bc-white);
    box-shadow: var(--bc-shadow);
  }

  .bc-nav.is-open {
    display: grid;
  }

  .bc-nav ul {
    display: grid;
    gap: 2px;
  }

  .bc-nav .bc-button {
    width: 100%;
  }

  .bc-hero,
  .bc-hero__inner {
    min-height: 650px;
  }

  .bc-hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 54%, rgba(255, 255, 255, 0.72) 100%),
      var(--bc-soft);
  }

  .bc-hero__media {
    opacity: 0.42;
  }

  .bc-feature,
  .bc-feature--reverse {
    grid-template-columns: 1fr;
  }

  .bc-feature--reverse .bc-feature__copy {
    order: 0;
  }

  .bc-grid--4,
  .bc-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bc-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .bc-shell {
    width: min(100% - 28px, var(--bc-max));
  }

  .bc-topbar .bc-shell,
  .bc-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .bc-header__inner {
    min-height: 72px;
  }

  .bc-brand__tagline {
    display: none;
  }

  .bc-hero,
  .bc-hero__inner {
    min-height: 620px;
  }

  .bc-hero__inner {
    padding: 54px 0 62px;
  }

  .bc-hero h1,
  .bc-page-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1.05;
    overflow-wrap: break-word;
  }

  .bc-hero__lead,
  .bc-page-hero__lead {
    font-size: 1rem;
  }

  .bc-hero__proof,
  .bc-grid--2,
  .bc-grid--3,
  .bc-grid--4,
  .bc-contact,
  .bc-footer__inner {
    grid-template-columns: 1fr;
  }

  .bc-section {
    padding: 62px 0;
  }

  .bc-band {
    padding: 28px;
  }

  .bc-page-hero {
    padding: 66px 0 46px;
  }
}
