/* ============================================================
   pages.css — shared styles for the pages added after the
   original build: services, work, partnership, legal, 404.
   Everything is namespaced .bi-* so it cannot collide with the
   compiled Tailwind output in style.css.
   Palette: --primary-color #0a1045, --secondary-color #fec10f
   ============================================================ */

a.book-btn {
  text-decoration: none;
}

.bi-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- hero ---------- */
.bi-hero {
  padding: 3.5rem 0 2rem;
}

.bi-hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin: 1.25rem 0 0;
  max-width: 20ch;
}

.bi-hero h1 span {
  color: var(--secondary-color, #fec10f);
}

.bi-hero p.bi-lede {
  color: rgba(255, 255, 255, .68);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 62ch;
  margin-top: 1.1rem;
}

.bi-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.bi-pills li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  padding: .5rem 1.1rem;
}

.bi-pills i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary-color, #fec10f);
  flex: none;
}

/* ---------- generic section ---------- */
.bi-section {
  padding: 3rem 0;
}

.bi-section > h2,
.bi-section-head h2 {
  font-family: "Poppins", sans-serif;
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 1rem 0 0;
}

.bi-section-head p {
  color: rgba(255, 255, 255, .66);
  line-height: 1.8;
  max-width: 68ch;
  margin-top: .9rem;
}

.bi-eyebrow {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--secondary-color, #fec10f);
  font-weight: 600;
}

/* ---------- cards ---------- */
.bi-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

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

.bi-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  padding: 1.75rem;
  transition: border-color 250ms ease, transform 250ms ease, background 250ms ease;
}

.bi-card:hover {
  border-color: rgba(254, 193, 15, .5);
  background: rgba(255, 255, 255, .06);
  transform: translateY(-4px);
}

.bi-card h3 {
  font-family: "Poppins", sans-serif;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 .6rem;
}

.bi-card h3 .bi-num {
  color: var(--secondary-color, #fec10f);
  font-size: .8rem;
  display: block;
  margin-bottom: .35rem;
  letter-spacing: .1em;
}

.bi-card p {
  color: rgba(255, 255, 255, .66);
  font-size: .93rem;
  line-height: 1.75;
  margin: 0;
}

.bi-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.bi-card ul li {
  color: rgba(255, 255, 255, .74);
  font-size: .88rem;
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: .45rem;
}

.bi-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary-color, #fec10f);
}

.bi-card .bi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.1rem;
}

.bi-card .bi-tags span {
  font-size: .72rem;
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: .25rem .7rem;
}

/* ---------- service detail block ---------- */
.bi-service {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 2.75rem 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  scroll-margin-top: 90px;
}

.bi-service h2 {
  font-family: "Poppins", sans-serif;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  margin: .5rem 0 0;
  line-height: 1.25;
}

.bi-service .bi-body p {
  color: rgba(255, 255, 255, .68);
  line-height: 1.85;
  margin: 0 0 1rem;
}

.bi-service .bi-body h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 .6rem;
}

.bi-service .bi-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 1.5rem;
}

.bi-service .bi-body ul li {
  color: rgba(255, 255, 255, .74);
  font-size: .9rem;
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: .5rem;
  break-inside: avoid;
}

.bi-service .bi-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary-color, #fec10f);
}

/* ---------- work / case study cards ---------- */
.bi-work-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: border-color 250ms ease, transform 250ms ease;
}

.bi-work-card:hover {
  border-color: rgba(254, 193, 15, .5);
  transform: translateY(-4px);
}

.bi-work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.bi-work-card .bi-work-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.bi-work-card h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 .45rem;
}

.bi-work-card p {
  color: rgba(255, 255, 255, .64);
  font-size: .9rem;
  line-height: 1.7;
  margin: 0;
}

.bi-work-card .bi-more {
  color: var(--secondary-color, #fec10f);
  font-size: .85rem;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

/* ---------- steps ---------- */
.bi-steps {
  counter-reset: bi-step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.bi-steps div {
  border-top: 2px solid rgba(254, 193, 15, .55);
  padding-top: 1.1rem;
}

.bi-steps div b {
  display: block;
  color: var(--secondary-color, #fec10f);
  font-size: .78rem;
  letter-spacing: .12em;
  margin-bottom: .5rem;
}

.bi-steps div h3 {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 .5rem;
}

.bi-steps div p {
  color: rgba(255, 255, 255, .64);
  font-size: .88rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- FAQ ---------- */
.bi-faq {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.bi-faq details {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.bi-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.bi-faq summary::-webkit-details-marker { display: none; }

.bi-faq summary::after {
  content: "+";
  position: absolute;
  right: .4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color, #fec10f);
  font-size: 1.4rem;
  line-height: 1;
}

.bi-faq details[open] summary::after { content: "\2212"; }

.bi-faq details p {
  color: rgba(255, 255, 255, .68);
  font-size: .93rem;
  line-height: 1.8;
  margin: 0 0 1.2rem;
  max-width: 78ch;
}

/* ---------- CTA strip ---------- */
.bi-cta {
  margin: 1rem 0 4rem;
  border: 1px solid rgba(254, 193, 15, .35);
  background: linear-gradient(120deg, rgba(254, 193, 15, .10), rgba(255, 255, 255, .02));
  border-radius: 18px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.bi-cta h2 {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 .6rem;
}

.bi-cta p {
  color: rgba(255, 255, 255, .7);
  margin: 0;
  line-height: 1.75;
  max-width: 58ch;
}

.bi-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--secondary-color, #fec10f);
  color: var(--primary-color, #0a1045);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 999px;
  padding: .9rem 1.9rem;
  border: 2px solid var(--secondary-color, #fec10f);
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
  white-space: nowrap;
}

.bi-btn:hover {
  background: transparent;
  color: var(--secondary-color, #fec10f);
  transform: translateX(4px);
}

.bi-btn.bi-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.bi-btn.bi-ghost:hover {
  border-color: var(--secondary-color, #fec10f);
  color: var(--secondary-color, #fec10f);
}

/* ---------- legal / long-form prose ---------- */
.bi-prose {
  max-width: 78ch;
  padding: 1rem 0 4rem;
}

.bi-prose h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 .8rem;
}

.bi-prose h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.6rem 0 .5rem;
}

.bi-prose p,
.bi-prose li {
  color: rgba(255, 255, 255, .7);
  font-size: .95rem;
  line-height: 1.85;
}

.bi-prose ul,
.bi-prose ol {
  padding-left: 1.2rem;
  margin: .5rem 0 1rem;
}

.bi-prose li { margin-bottom: .5rem; }

.bi-prose a {
  color: var(--secondary-color, #fec10f);
  text-decoration: underline;
}

.bi-prose .bi-updated {
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
}

/* ---------- 404 ---------- */
.bi-404 {
  text-align: center;
  padding: 6rem 0 7rem;
}

.bi-404 .bi-code {
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--secondary-color, #fec10f);
}

.bi-404 h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  margin: 1rem 0 .8rem;
}

.bi-404 p {
  color: rgba(255, 255, 255, .68);
  line-height: 1.8;
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.bi-404-links {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- breadcrumbs ---------- */
.bi-crumbs {
  padding-top: 1.5rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

.bi-crumbs a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

.bi-crumbs a:hover { color: var(--secondary-color, #fec10f); }

/* ---------- stats ---------- */
.bi-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 2rem 0;
}

.bi-stats div b {
  display: block;
  color: var(--secondary-color, #fec10f);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}

.bi-stats div span {
  color: rgba(255, 255, 255, .62);
  font-size: .85rem;
  display: block;
  margin-top: .5rem;
  line-height: 1.5;
}

/* ---------- locations ---------- */
.bi-locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.bi-locations a {
  display: block;
  text-align: center;
  padding: .9rem .6rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
  text-decoration: none;
  transition: border-color 220ms ease, color 220ms ease;
}

.bi-locations a:hover {
  border-color: rgba(254, 193, 15, .5);
  color: var(--secondary-color, #fec10f);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .bi-grid.bi-4 { grid-template-columns: repeat(2, 1fr); }
  .bi-steps { grid-template-columns: repeat(2, 1fr); }
  .bi-stats { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}

@media (max-width: 860px) {
  .bi-grid.bi-2,
  .bi-grid.bi-3 { grid-template-columns: 1fr; }
  .bi-service { grid-template-columns: 1fr; gap: 1.25rem; }
  .bi-service .bi-body ul { columns: 1; }
  .bi-locations { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .bi-grid.bi-4 { grid-template-columns: 1fr; }
  .bi-steps { grid-template-columns: 1fr; }
  .bi-cta { padding: 1.75rem; }
  .bi-hero { padding: 2.5rem 0 1.5rem; }
  .bi-locations { grid-template-columns: 1fr; }
}

/* ---------- case-study page ---------- */
.bi-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  margin-top: 1rem;
}

.bi-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  overflow: hidden;
  margin-top: 2.25rem;
}

.bi-facts div {
  background: var(--primary-color, #0a1045);
  padding: 1.25rem 1.4rem;
}

.bi-facts b {
  display: block;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary-color, #fec10f);
  font-weight: 600;
  margin-bottom: .45rem;
}

.bi-facts span {
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
  line-height: 1.6;
}

/* the "what we built" blocks reuse .bi-service but have no left-column body copy */
.bi-service .bi-body ul li em {
  font-style: italic;
  color: rgba(255, 255, 255, .9);
}

@media (max-width: 860px) {
  .bi-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .bi-facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- client logo chips ----------
   Most of these marks are dark on transparent, so on the navy pages they sit
   in a white chip. Fixed chip height keeps a 1:1 icon and a 4:1 wordmark
   looking like they belong to the same set; the per-logo height is set inline
   from the artwork's own aspect ratio. */
.bi-logo-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.bi-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 12px 20px;
  min-width: 120px;
  min-height: 68px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}

.bi-logo-chip img {
  display: block;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}

.bi-logo-chip--sm {
  border-radius: 11px;
  padding: 9px 15px;
  min-width: 96px;
  min-height: 56px;
  box-shadow: none;
  margin-bottom: .85rem;
}

.bi-logo-chip--sm img {
  max-width: 132px;
}

.bi-logo-lockup .bi-eyebrow {
  font-size: .78rem;
}

@media (max-width: 520px) {
  .bi-logo-chip {
    min-width: 104px;
    min-height: 60px;
    padding: 10px 16px;
  }

  .bi-logo-chip img {
    max-width: 132px;
  }
}
