/* Byte A Cookie — service page components. Loaded only on the Service Page template, after bac-base.css. */

/* ============================================================
   1. Sub-nav (sticky, Bootstrap ScrollSpy) + scroll progress
   ============================================================ */

.bac-page .bac-subnav {
  position: sticky;
  top: 0; /* fallback */
  top: calc(var(--bac_hdr_h, 0px) + var(--bac_adminbar_h, 0px)); /* bar and admin bar heights from bac-header.js (vars on <html>) */
  z-index: 40;
  background: #F6F2EC; /* fallback */
  background: rgba(246, 242, 236, 0.95);
  border-bottom: 1px solid var(--bac-line);
  transition: transform 0.25s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bac-page .bac-subnav {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
.bac-page .bac-subnav__inner {
  min-height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bac-page .bac-subnav__inner::-webkit-scrollbar { display: none; }

/* Scroll progress. scaleX is compositor-only, so it never triggers layout. */
.bac-page .bac-progress {
  position: fixed;
  top: 0; /* fallback */
  top: var(--bac_adminbar_h, 0px);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1031; /* over the sticky header (1030) */
  pointer-events: none;
}
.bac-page .bac-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #6E6249; /* fallback */
  background: linear-gradient(90deg, var(--bac-gold-deep) 0%, var(--bac-gold) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* On phones and tablets the header hides while scrolling down; the sub-nav moves with the same transition, without JS. */
#lc-header.bac-hdr-hidden ~ #theme-main .bac-page .bac-subnav {
  transform: translateY(-80px); /* fallback */
  transform: translateY(calc(-1 * var(--bac_hdr_h, 80px)));
}

/* Breadcrumb styling is global — see child theme sass/_custom.scss */

.bac-page .bac-toc__link {
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bac-ink-muted);
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.bac-page .bac-toc__link:hover { color: var(--bac-ink); }
.bac-page .bac-toc__link.active {
  background: var(--bac-ink);
  color: var(--bac-paper);
}

/* ============================================================
   2. Hero + facts
   ============================================================ */

.bac-page .bac-hero__idx {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--bac-gold-deep);
  padding: 4px 10px;
  border: 1px solid var(--bac-gold-soft);
  background: rgba(229, 223, 208, 0.3);
  border-radius: 2px;
}
.bac-page .bac-hero__lede { max-width: 56ch; }

.bac-page .bac-hero__image {
  position: relative;
  border-radius: var(--bac-radius);
  overflow: hidden;
  min-height: 26rem; /* fallback for aspect-ratio */
}
@supports (aspect-ratio: 4/5) {
  .bac-page .bac-hero__image { aspect-ratio: 4/5; min-height: 0; }
}
.bac-page .bac-hero__image .bac-placeholder { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
/* Photo from [bac_image] (inc/bac-media.php): fills the 4:5 frame like the placeholder. */
.bac-page .bac-hero__image img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bac-page .bac-hero__caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  font-family: var(--bac-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F6F2EC;
  mix-blend-mode: difference;
}
.bac-page .bac-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bac-gold);
  display: inline-block;
  margin-right: 0.625rem;
}

/* Facts — semantic <dl>, 4 columns */
.bac-page .bac-facts {
  padding: 28px 0;
  border-top: 1px solid var(--bac-line);
  border-bottom: 1px solid var(--bac-line);
  margin: 0;
}
.bac-page .bac-facts__item { padding: 0 32px; border-left: 1px solid var(--bac-line); }
.bac-page .bac-facts__item:first-child { padding-left: 0; border-left: 0; }
.bac-page .bac-facts__label {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bac-ink-muted);
  margin-bottom: 10px;
  font-weight: 400;
}
.bac-page .bac-facts__value {
  font-weight: 200;
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bac-ink);
  margin: 0;
}
@media (max-width: 991.98px) {
  .bac-page .bac-facts__item { padding: 12px 16px; border-left: 0; border-top: 1px solid var(--bac-line); }
  .bac-page .bac-facts__item:nth-child(1),
  .bac-page .bac-facts__item:nth-child(2) { border-top: 0; }
  .bac-page .bac-facts__item:nth-child(odd) { padding-left: 0; }
}

/* ============================================================
   3. Intro + pull-quote
   ============================================================ */

@media (min-width: 992px) {
  .bac-page .bac-intro__title { max-width: 14ch; }
}

.bac-page .bac-pull {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 64px 56px 88px;
  border-left: 1px solid var(--bac-gold);
  background: linear-gradient(180deg, rgba(229, 223, 208, 0.3) 0%, rgba(229, 223, 208, 0) 100%);
}
.bac-page .bac-pull__mark {
  position: absolute;
  top: 8px;
  left: 24px;
  font-weight: 200;
  font-size: 6rem;
  line-height: 1;
  color: var(--bac-gold);
  font-style: italic;
  opacity: 0.5;
}
.bac-page .bac-pull blockquote {
  font-weight: 200;
  font-style: italic;
  font-size: 1.5rem; /* fallback */
  font-size: clamp(1.5rem, 2.4vw, 1.8rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--bac-ink);
  margin: 0 0 20px;
}
.bac-page .bac-pull figcaption {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bac-gold-deep);
}
@media (max-width: 767.98px) {
  .bac-page .bac-pull { padding: 40px 24px 40px 32px; }
  .bac-page .bac-pull__mark { font-size: 4.5rem; left: 8px; }
}

/* ============================================================
   4. Fit — Bootstrap pills (checklist lives in bac-base.css)
   ============================================================ */

@media (min-width: 992px) {
  .bac-page .bac-fit__title   { max-width: 13ch; }
}
.bac-page .bac-fit__note {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bac-ink-muted);
  max-width: 36ch;
}

.bac-page .bac-pills {
  display: inline-flex;
  border: 1px solid var(--bac-line-strong);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 36px;
  background: transparent;
  box-shadow: none;
}
/* gap fallback for older flexbox */
.bac-page .bac-pills > .nav-item + .nav-item { margin-left: 4px; }
@supports (gap: 1px) {
  .bac-page .bac-pills { gap: 4px; }
  .bac-page .bac-pills > .nav-item + .nav-item { margin-left: 0; }
}
.bac-page .bac-pills .nav-link {
  padding: 0.6875rem 1.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--bac-ink-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease;
}
.bac-page .bac-pills .nav-link:hover { color: var(--bac-ink); background: transparent; }
.bac-page .bac-pills .nav-link:focus { box-shadow: none; }
.bac-page .bac-pills .nav-link:focus-visible { outline: 2px solid var(--bac-gold); outline-offset: 2px; }
.bac-page .bac-pills .nav-link.active {
  background: var(--bac-ink);
  color: var(--bac-paper);
  box-shadow: none;
}

/* ============================================================
   5. Approaches
   ============================================================ */


.bac-page .bac-approach-card {
  position: relative;
  height: 100%;
  padding: 32px;
  border-radius: var(--bac-radius);
  border: 1px solid var(--bac-line);
  background: var(--bac-paper-3);
  box-shadow: 0 2px 4px rgba(26, 23, 20, 0.03), 0 18px 40px -28px rgba(26, 23, 20, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
}
.bac-page .bac-approach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px rgba(26, 23, 20, 0.18);
  border-color: var(--bac-line-strong);
}

.bac-page .bac-approach-card--featured {
  background: #1B1611; /* fallback */
  background:
    radial-gradient(ellipse at top right, rgba(var(--bs-primary-rgb, 151, 140, 111), 0.18) 0%, rgba(var(--bs-primary-rgb, 151, 140, 111), 0) 55%),
    linear-gradient(180deg, var(--bac-dark-1) 0%, var(--bac-dark-2) 100%);
  border-color: rgba(var(--bs-primary-rgb, 151, 140, 111), 0.3);
  box-shadow: inset 0 1px 0 rgba(var(--bs-primary-rgb, 151, 140, 111), 0.3), 0 20px 50px -20px rgba(26, 23, 20, 0.3);
  overflow: visible; /* lets the ribbon sit on the border */
}
.bac-page .bac-approach-card--featured:hover {
  box-shadow: inset 0 1px 0 rgba(var(--bs-primary-rgb, 151, 140, 111), 0.3), 0 40px 80px -20px rgba(26, 23, 20, 0.4);
}

.bac-page .bac-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(205, 190, 148, 0) 0%, rgba(205, 190, 148, 0.8) 50%, rgba(205, 190, 148, 0) 100%);
}

/* Ribbon sits on the top border, so it never reserves or overlaps card content. */
.bac-page .bac-ribbon {
  position: absolute;
  top: 0;
  right: 16px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bac-ink);
  background: var(--bac-gold);
  border-radius: 999px;
  z-index: 2;
}
.bac-page .bac-ribbon__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bac-ink);
  margin-right: 8px;
  animation: bac-pulse 1.6s infinite;
}
@keyframes bac-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.6); }
}

.bac-page .bac-approach-card__head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bac-border);
}
.bac-page .bac-approach-card__idx {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--bac-accent);
  padding: 3px 8px;
  border: 1px solid var(--bac-line-strong);
  border-radius: 2px;
  margin-right: 12px;
}
.bac-page .bac-on-dark .bac-approach-card__idx { border-color: rgba(var(--bs-primary-rgb, 151, 140, 111), 0.4); }
.bac-page .bac-approach-card__kind {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bac-text-muted);
}
.bac-page .bac-approach-card__title {
  font-weight: 200;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--bac-text);
  margin-bottom: 14px;
}
.bac-page .bac-approach-card__body {
  font-size: 0.90625rem;
  line-height: 1.55;
  color: var(--bac-text-muted);
  margin-bottom: 24px;
  flex: 1 1 auto;
}

.bac-page .bac-spec__item {
  padding: 10px 0;
  border-top: 1px solid var(--bac-border);
  font-size: 0.8125rem;
  display: flex;
  align-items: baseline;
}
.bac-page .bac-spec__item:last-child { border-bottom: 1px solid var(--bac-border); }
.bac-page .bac-spec__label {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bac-text-muted);
  flex: 0 0 110px;
  padding-right: 12px;
}
.bac-page .bac-spec__value { color: var(--bac-text-2); line-height: 1.45; }

.bac-page .bac-approach-card__cta { margin-top: 24px; }

/* ============================================================
   6. Process
   ============================================================ */

.bac-page .bac-step {
  height: 100%;
  padding: 32px 24px 32px 0;
  border-top: 1px solid var(--bac-line-strong);
}
.bac-page .bac-step__num {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  color: var(--bac-gold-deep);
  letter-spacing: 0.14em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
}
.bac-page .bac-step__num::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bac-gold);
  margin-right: 8px;
  flex-shrink: 0;
}
.bac-page .bac-step__title {
  font-weight: 200;
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--bac-ink);
}
.bac-page .bac-step__body { font-size: 0.875rem; color: var(--bac-ink-muted); line-height: 1.55; }
.bac-page .bac-step__dur {
  margin-top: 20px;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  color: var(--bac-ink-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   7. FAQ — Bootstrap accordion on dark
   ============================================================ */

.bac-page .bac-faq .accordion,
.bac-page .bac-faq .accordion-item {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.bac-page .bac-faq .accordion-item { border-bottom: 1px solid rgba(246, 242, 236, 0.14); }
.bac-page .bac-faq .accordion-button {
  background: transparent;
  color: var(--bac-paper);
  font-weight: 200;
  font-size: 1.125rem; /* fallback */
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
  padding: 26px 2.5rem 26px 0; /* right space for the plus/minus */
  box-shadow: none;
  transition: color 200ms ease;
}
.bac-page .bac-faq .accordion-button:hover { color: var(--bac-gold-bright); }
.bac-page .bac-faq .accordion-button:not(.collapsed) { color: var(--bac-gold-bright); }
.bac-page .bac-faq .accordion-button:focus { box-shadow: none; }
/* Replace the Bootstrap chevron with a plus/minus in gold. */
.bac-page .bac-faq .accordion-button::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--bac-gold-bright);
  transform: translateY(-50%);
}
.bac-page .bac-faq .accordion-button::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 1px;
  height: 14px;
  background: var(--bac-gold-bright);
  transform: translateY(-50%);
  transition: opacity 220ms ease, transform 220ms ease;
}
.bac-page .bac-faq .accordion-button:not(.collapsed)::after {
  opacity: 0;
  transform: translateY(-50%) rotate(90deg);
}
.bac-page .bac-faq .accordion-body {
  padding: 0 0 28px;
  max-width: 68ch;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(246, 242, 236, 0.72);
}
.bac-page .bac-faq .accordion-body strong { color: var(--bac-paper); font-weight: 600; }

/* ============================================================
   8. Related services
   ============================================================ */

.bac-page .bac-related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 28px 24px;
  background: var(--bac-paper-3);
  border: 1px solid var(--bac-line);
  border-radius: var(--bac-radius);
  text-decoration: none;
  min-height: 15rem;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.bac-page .bac-related-card:hover {
  border-color: var(--bac-gold);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -20px rgba(26, 23, 20, 0.15);
}
.bac-page .bac-related-card__head {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bac-line);
}
.bac-page .bac-related-card__idx {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--bac-gold-deep);
}
.bac-page .bac-related-card__meta {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bac-ink-muted);
}
.bac-page .bac-related-card__label {
  font-weight: 200;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--bac-ink);
  margin-bottom: 10px;
}
.bac-page .bac-related-card__desc {
  font-size: 0.84375rem;
  color: var(--bac-ink-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1 1 auto;
}
.bac-page .bac-related-card__go {
  display: inline-flex;
  align-items: center;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bac-gold-deep);
  margin-top: auto;
}
.bac-page .bac-related-card__go .bac-arrow { margin-left: 8px; }
.bac-page .bac-related-card:hover .bac-related-card__go .bac-arrow { transform: translateX(3px); }
