/* Business of Connections — static-site styles (mobile menu overlay).
   Replaces the Framer-runtime-rendered mobile navigation. */

/* Erode Variable — self-hosted (same woff2 the home + conference pages ship).
   A variable font, so headings can be set to any weight (e.g. 550) via
   font-variation-settings. Declared here so every page linking this sheet
   gets it without a per-page @font-face. */
@font-face { font-family: "Erode Variable"; src: url("images/mokcgu3ekyhoxp3y5x7xq2bpg4hcmf66.woff2"); font-display: swap; font-style: normal; font-weight: 400 700; }
@font-face { font-family: "Erode Variable"; src: url("images/ocj3wfmt5pzol4g7ergyk77eykdlsntr.woff2"); font-display: swap; font-style: italic; font-weight: 400 700; }

.boc-mm {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #fff;
  display: none;
  flex-direction: column;
  padding: 24px;
}
.boc-mm.open { display: flex; }
.boc-mm-close {
  align-self: flex-end;
  background: none;
  border: 0;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  color: #033222;
  padding: 8px 12px;
}
.boc-mm-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: auto 0;
  align-items: flex-start;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.boc-mm-nav a {
  font-family: "Erode Variable", "Erode", serif;
  font-size: 32px;
  line-height: 1.3;
  color: #033222;
  text-decoration: none;
  padding: 10px 0;
}
.boc-mm-nav a:hover { opacity: 0.65; }
.boc-mm-social {
  font-size: 20px !important;
  font-family: "DM Sans", "DM Sans Placeholder", sans-serif !important;
  margin-top: 12px;
}

/* ============================================================
   Rebuilt static utility pages (contact / privacy / terms)
   Self-contained shell — no Framer runtime, no framer-* classes.
   ============================================================ */
.boc-page {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.boc-page a { color: inherit; }

.boc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 65px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}
.boc-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Erode Variable", "Erode", serif;
  font-size: 26px;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  letter-spacing: -0.06em;
  color: #000;
  white-space: nowrap;
}
.boc-logo em { font-style: normal; font-weight: 400; font-variation-settings: "wght" 400; }
.boc-logo svg { height: 22px; width: auto; flex-shrink: 0; fill: #000; }
.boc-nav { display: flex; gap: 25px; align-items: center; }
.boc-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: #000; }
.boc-nav a:hover { opacity: 0.65; }
.boc-nav .boc-nav-social { display: inline-flex; align-items: center; color: #000; }
.boc-nav-cta.boc-btn { height: 40px; padding: 0 20px; font-size: 14px; }

/* "Our Events" hover/focus dropdown (desktop only — .boc-nav is hidden < 810px). */
.boc-nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.boc-nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  margin-top: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 200;
}
/* Invisible bridge so the pointer can travel from label to menu without closing it. */
.boc-nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.boc-nav-dropdown:hover .boc-nav-submenu,
.boc-nav-dropdown:focus-within .boc-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.boc-nav-submenu a {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.boc-nav-submenu a:hover { background: #F3F2F0; opacity: 1; }
.boc-burger {
  display: none;
  background: none;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  color: #033222;
}
@media (max-width: 809px) {
  .boc-nav { display: none; }
  .boc-burger { display: block; }
}

.boc-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.boc-main h1 {
  font-family: "Erode Variable", "Erode", serif;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0 0 1.5rem;
}
.boc-main h2 {
  font-family: "Erode Variable", "Erode", serif;
  font-weight: 550;
  font-variation-settings: "wght" 550;
  font-size: 24px;
  line-height: 1.2;
  color: #000;
  margin: 2.5rem 0 0.75rem;
}
.boc-main p, .boc-main li { font-size: 16px; font-weight: 500; color: rgba(0, 0, 0, 0.7); }
.boc-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 0.5rem;
}
.boc-placeholder {
  border: 1px dashed rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  background: #F3F2F0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.95rem;
}
.boc-main p.boc-form-note {
  max-width: 520px;
  margin: -1rem 0 2.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}
.boc-main p.boc-form-note a { color: inherit; text-decoration: underline; }

/* Contact form */
.boc-form { display: flex; flex-direction: column; gap: 1rem; max-width: 520px; margin-top: 1.5rem; margin-bottom: 2.5rem; }
.boc-form label { font-size: 0.9rem; font-weight: 500; display: flex; flex-direction: column; gap: 0.4rem; }
.boc-form input, .boc-form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background: #fff;
  color: #000;
}
.boc-form textarea { min-height: 140px; resize: vertical; }
.boc-form .boc-btn { align-self: flex-start; }
/* Fallback for any form button not using the shared .boc-btn treatment. */
.boc-form button:not(.boc-btn) {
  align-self: flex-start;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: #05290d;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
}
.boc-form button:not(.boc-btn):hover { opacity: 0.9; }

/* Shared primary button — mirrors the style guide .sg-btn (Pine / Black forms).
   On hover the opposite colour wipes in from the left and the button scales up. */
.boc-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border: 0; border-radius: 100px;
  font-family: "DM Sans", "DM Sans Placeholder", sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: -0.04em;
  color: #fff; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.25, 0.64, 1);
  will-change: transform;
}
.boc-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.5, 0, 0.2, 1);
}
.boc-btn:hover { transform: scale(1.04); }
.boc-btn:hover::before { transform: scaleX(1); }
.boc-btn:active { transform: scale(0.99); }
.boc-btn--pine  { background: #05290d; }
.boc-btn--pine::before  { background: #000; }
.boc-btn--black { background: #000; }
.boc-btn--black::before { background: #05290d; }
@media (prefers-reduced-motion: reduce) {
  .boc-btn, .boc-btn::before { transition: none; }
}
/* Anchor specificity fix: .boc-page a (0,1,1) overrides .boc-btn (0,1,0). */
.boc-page a.boc-btn { color: #fff; }

/* Help-card titles → style guide h4 preset (Erode 24px / 550). Overrides the
   original Framer heading preset so the "How can I help" cards match the system. */
#services-1 h3 {
  font-family: "Erode Variable", "Erode", serif !important;
  font-weight: 550 !important;
  font-variation-settings: "wght" 550 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  color: #000 !important;
}

/* About (#quote) — emphasis to DM Sans bold italic (was a leftover Framer Inter
   preset), and body to the style guide's 18px lede size. */
#quote em, #quote em *, #quote strong, #quote strong * {
  font-family: "DM Sans", "DM Sans Placeholder", sans-serif !important;
  font-style: italic !important;
}
/* Size on p + all descendant spans — the Framer preset puts 20px on the inner
   spans, so styling the <p> alone leaves the visible text (and emphasis) at 20px. */
#quote p, #quote p * {
  font-size: 18px !important;
}
#quote p {
  line-height: 1.6 !important;
}

.boc-footer {
  border-top: 1px solid rgba(3, 50, 34, 0.12);
  padding: 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  font-size: 0.95rem;
}
.boc-footer .boc-foot-brand { max-width: 420px; }
.boc-footer strong { font-family: "Erode Variable", "Erode", serif; font-size: 1.1rem; }
.boc-footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.boc-footer nav a { text-decoration: none; color: rgba(3, 50, 34, 0.8); }
.boc-footer nav a:hover { opacity: 0.65; }
.boc-foot-copy { width: 100%; color: rgba(3, 50, 34, 0.55); font-size: 0.85rem; }

/* Full-bleed Pine footer with white text — shared treatment used across the
   conference pages so every footer matches the home page. Wrap the <footer
   class="boc-footer"> in <div class="boc-footwrap">. */
.boc-footwrap { background: #05290d; }
.boc-footwrap .boc-footer { border-top: 0; }
.boc-footwrap .boc-footer,
.boc-footwrap .boc-footer strong { color: #fff; }
.boc-footwrap .boc-footer p,
.boc-footwrap .boc-footer nav a,
.boc-footwrap .boc-footer .boc-foot-copy { color: rgba(255, 255, 255, 0.7); }
.boc-footwrap .boc-footer nav a:hover { opacity: 1; color: #fff; }

/* ------------------------------------------------------------------
   Contact column — injected by boc-static.js into the footer, in the
   empty space between the brand block and the link columns. Stacked
   vertically: "Contact us" headline, portrait + name + email, then the
   round mail / LinkedIn buttons. Colours inherit the footer (white on
   the pine home/conference footers, dark on the light static footers).
   ------------------------------------------------------------------ */
.boc-contact-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 0 0 auto;
  align-self: flex-start;
  color: #033222;
  margin-right: 56px;
}
/* White text on the pine home/conference footers. */
.boc-footwrap .boc-contact-col { color: #fff; }
.boc-contact-label {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.64px;
  line-height: 24px;
}
.boc-contact-person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.boc-contact-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  flex-shrink: 0;
}
.boc-contact-name { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.boc-contact-email {
  display: block;
  font-size: 0.9rem;
  opacity: 0.7;
  text-decoration: none;
  color: inherit;
}
.boc-contact-email:hover { opacity: 1; }
.boc-contact-actions { display: flex; gap: 0.75rem; }
.boc-contact-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #05290d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.boc-contact-btn:hover { transform: scale(1.08); }
/* On the pine footers, invert the buttons to a white circle with a pine icon. */
.boc-footwrap .boc-contact-btn { background: #fff; color: #05290d; }

@media (max-width: 809px) {
  .boc-contact-col { margin-right: 0; }
}

/* ============================================================
   Reimplemented hover + photo marquees
   ============================================================ */

/* Generic card lift for conference/works cards */
.boc-hover-lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.boc-hover-lift:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(3, 50, 34, 0.14); }

/* Rolling photo band (hero) — full-bleed, flush portrait crops, matching the
   original Framer marquee. */
.boc-photo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}
/* White fade on the side edges (restores the original Framer marquee look) */
.boc-photo-marquee::before,
.boc-photo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 10vw, 160px);
  z-index: 2;
  pointer-events: none;
}
.boc-photo-marquee::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}
.boc-photo-marquee::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}
.boc-photo-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: boc-scroll-x 60s linear infinite;
}
.boc-photo-track img {
  height: clamp(217px, 30.3vw, 405px);
  aspect-ratio: 0.734;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  border-radius: 0;
}
.boc-photo-marquee:hover .boc-photo-track { animation-play-state: paused; }
@keyframes boc-scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .boc-photo-track { animation: none; }
}

/* Testimonial marquee (rebuilt from the collapsed Framer ticker) */
.boc-testi-marquee {
  overflow: hidden;
  width: 100%;
  margin: 28px 0 0;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.boc-testi-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: boc-scroll-x 55s linear infinite;
}
.boc-testi-marquee:hover .boc-testi-track { animation-play-state: paused; }
.boc-testi-card {
  flex-shrink: 0;
  width: 340px;
  background: #f7f7f5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
/* Typography matched to the original Framer testimonial cards:
   DM Sans, 16px, weight 500, -0.64px tracking, 24px line-height across all parts. */
.boc-testi-quote {
  font-family: "DM Sans", "DM Sans Placeholder", sans-serif;
  font-size: 16px; font-weight: 500; letter-spacing: -0.64px; line-height: 24px;
  color: rgba(0, 0, 0, 0.7); margin: 0;
}
.boc-testi-author { display: flex; align-items: center; gap: 12px; }
/* The text block keeps a constant height (name + up to two company lines) and
   centres its content, so the whole avatar + name + company combo stays
   vertically centred and aligned across cards whether the company wraps to one
   line or two (e.g. Jaroslaw, Lukas). */
.boc-testi-author > div { min-height: 72px; display: flex; flex-direction: column; justify-content: center; }
.boc-testi-author img { width: 44px; height: 44px; border-radius: 99px; object-fit: cover; flex-shrink: 0; }
.boc-testi-initials {
  width: 44px; height: 44px; border-radius: 99px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #05290d; color: #fff;
  font-family: "DM Sans", "DM Sans Placeholder", sans-serif;
  font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
}
.boc-testi-name {
  font-family: "DM Sans", "DM Sans Placeholder", sans-serif;
  font-size: 16px; font-weight: 500; letter-spacing: -0.64px; line-height: 24px;
  color: #000;
}
.boc-testi-title {
  font-family: "DM Sans", "DM Sans Placeholder", sans-serif;
  font-size: 16px; font-weight: 500; letter-spacing: -0.64px; line-height: 24px;
  color: rgba(0, 0, 0, 0.7);
}

/* ============================================================
   Mobile carousels: full-width cards + bottom-right arrow nav
   (events "Examples of our events" + testimonials marquee)
   Desktop is untouched — nav is hidden and the layouts keep their
   original grid / auto-scroll behaviour above 810px.
   ============================================================ */

/* Pine circular arrow buttons (injected by JS) — mobile only. */
.boc-carousel-nav { display: none; }
.boc-carousel-arrow {
  width: 40px; height: 40px; padding: 0;
  border: none; border-radius: 99px; cursor: pointer;
  background: #05290d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(3, 50, 34, 0.28);
  transition: transform 0.2s ease;
}
.boc-carousel-arrow:hover  { transform: scale(1.08); }
.boc-carousel-arrow:active { transform: scale(0.96); }
.boc-carousel-arrow svg { width: 18px; height: 18px; display: block; }

@media (max-width: 809px) {
  .boc-carousel-nav {
    display: flex; gap: 8px;
    position: absolute; z-index: 6;
  }

  /* --- Testimonials: page one card at a time on mobile (kill the auto-marquee) --- */
  .boc-testi-marquee {
    overflow: hidden;
    -webkit-mask-image: none; mask-image: none;
  }
  .boc-testi-track {
    animation: none !important;
    gap: 16px;
    transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
  }
  .boc-testi-card {
    padding-bottom: 4rem;
  }
  /* Hide the duplicate set used for the desktop infinite loop. */
  .boc-testi-track .boc-testi-card:nth-child(n+7) { display: none; }

}
