/* =========================================================
   BPO WEBSITE — WIREFRAME DESIGN SYSTEM
   Style reference: Missive / Calendly SaaS layout patterns
   Palette: Deep-Sea Blue / Blue Dress / White Smoke / Marble Blue / Blue Gray
   Font: Gilroy (drop Gilroy-*.woff2 files into /fonts to activate)
   ========================================================= */







:root {
  /* Palette from reference board */
  --deep-sea-blue: #0B1F33;
  --blue-dress: #2F6FED;
  --blue-dress-hover: #2557C7;
  --white-smoke: #F5F6F8;
  --marble-blue: #35526E;
  --blue-gray: #8CA0B3;

  --white: #FFFFFF;
  --ink: #101418;
  --text-muted: #5B6B7A;
  --border: #E4E8EC;
  --border-soft: #ECEFF2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 31, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, 0.16);
  --container: 1360px;

  font-family: 'Gilroy', 'Sora', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Gilroy', 'Sora', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dress);
  margin-bottom: 14px;
}
.eyebrow.on-dark { color: #8FB6FF; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-dress);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dress-hover); transform: translateY(-1px); }
.btn-dark {
  background: var(--deep-sea-blue);
  color: var(--white);
}
.btn-dark:hover { background: #142c47; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--deep-sea-blue); }
.btn-outline.on-dark {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline.on-dark:hover { border-color: var(--white); }
.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Navbar ----------
   Default (home, and any future white-hero page): loads flush against the
   top of the page like a normal navbar; once the user scrolls past it,
   JS (main.js) adds .is-floating and it animates into the rounded,
   inset "floating" card treatment.
   Inner pages (body.has-navy-header): the primary navbar below is instead a
   normal, non-sticky bar that scrolls away with the page; a separate fixed
   .navbar-floating duplicate (see below) fades in once it scrolls out of
   view — see main.js. */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: 0 24px;
  transition: top 0.35s ease, opacity 0.3s ease;
}
.navbar.is-floating { top: 18px; }
.navbar.nav-hidden { opacity: 0; pointer-events: none; }
.navbar .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 72px;
  max-width: var(--container);
  padding: 0 14px 0 26px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    border-radius 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.navbar.is-floating .container {
  background: rgba(255, 255, 255, 0.99);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(228, 232, 236, 0.8);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(11, 31, 51, 0.12);
}

/* Inner pages: primary navbar is a normal, opaque, in-flow bar that sits
   above the navy hero (not overlapping it) and scrolls away with the page */
body.has-navy-header .navbar {
  position: relative;
  top: auto;
  z-index: 2;
  transition: none;
}
body.has-navy-header .navbar .container {
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

/* Inner pages: fixed duplicate pill, hidden until the primary navbar
   above has scrolled out of view (toggled via .visible in main.js) */
.navbar-floating {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.navbar-floating.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.navbar-floating .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 72px;
  max-width: var(--container);
  padding: 0 14px 0 26px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.99);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(228, 232, 236, 0.8);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(11, 31, 51, 0.12);
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-links { display: flex; align-items: center; justify-content: center; gap: 24px; white-space: nowrap; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--marble-blue);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--deep-sea-blue); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--marble-blue);
  white-space: nowrap;
}
.nav-link-text:hover { color: var(--deep-sea-blue); }
.nav-btn { border-radius: 10px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero-dark {
  background: var(--deep-sea-blue);
  color: var(--white);
  padding: 96px 0 130px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}
.hero h1 {
  font-size: 60px;
  line-height: 1.08;
  max-width: 880px;
  margin: 0 auto 22px;
  color: var(--deep-sea-blue);
}
.hero-dark h1 { color: var(--white); max-width: 860px; margin: 0 auto 22px; font-size: 54px; }
.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-dark p.lead { color: #C4D2E2; max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-media {
  margin-top: 56px;
}
.browser-frame {
  background: #1B2C3E;
  border-radius: var(--radius-lg);
  padding: 14px 14px 0;
  box-shadow: var(--shadow-lg);
  max-width: 1160px;
  margin: 0 auto;
  overflow: hidden;
}
.browser-dots { display: flex; gap: 7px; padding: 0 6px 14px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: #3A4C60; }
.browser-frame img { border-radius: 10px 10px 0 0; display: block; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-muted { background: var(--white-smoke); border-radius: 0 0 32px 32px; }
.section-dark { background: var(--deep-sea-blue); color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: 38px; color: var(--deep-sea-blue); line-height: 1.15; }
.section-dark .section-head h2 { color: var(--white); }
.section-head p { color: var(--text-muted); font-size: 17px; margin-top: 14px; }
.section-dark .section-head p { color: #C4D2E2; }
.section-head.left { text-align: left; margin: 0 0 44px; }

h2.h-md { font-size: 32px; color: var(--deep-sea-blue); line-height: 1.18; }

/* ---------- Logo strip ---------- */
.logo-strip {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 48px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.logo-strip p {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.logo-row span {
  font-weight: 700;
  font-size: 18px;
  color: #B6C1CC;
  letter-spacing: -0.01em;
}

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }
.feature-row-narrow-copy { grid-template-columns: 0.82fr 1.18fr; }
.feature-row-narrow-copy .feature-copy { padding-left: clamp(16px, 4vw, 64px); }
@media (max-width: 980px) {
  .feature-row-narrow-copy .feature-copy { padding-left: 0; }
}
.feature-media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.feature-media img.img-plain {
  border-radius: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}
.feature-copy h3 { font-size: 27px; color: var(--deep-sea-blue); margin-bottom: 14px; line-height: 1.25; }
.feature-copy p { color: var(--text-muted); font-size: 16px; margin-bottom: 18px; }
.feature-copy ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--marble-blue);
  font-size: 15px;
  font-weight: 500;
}
.feature-copy ul li:last-child { margin-bottom: 0; }
.feature-copy .btn { margin-top: 24px; }
.feature-copy ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background-color: var(--blue-dress);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

/* ---------- Cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #EAF1FE;
  color: var(--blue-dress);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}
.card h4 { font-size: 18px; color: var(--deep-sea-blue); margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Services tabs ---------- */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 0 2px 16px;
  cursor: pointer;
  color: var(--marble-blue);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-btn .tab-icon {
  width: 26px; height: 26px;
  color: var(--blue-gray);
  transition: color 0.2s ease;
}
.tab-btn .tab-icon svg { width: 100%; height: 100%; }
.tab-btn .tab-label {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--deep-sea-blue); }
.tab-btn:hover .tab-icon { color: var(--marble-blue); }
.tab-btn.is-active {
  color: var(--blue-dress);
  border-bottom-color: var(--blue-dress);
}
.tab-btn.is-active .tab-icon { color: var(--blue-dress); }

.tab-panel { display: none; }
.tab-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.tab-copy h3 { font-size: 27px; color: var(--deep-sea-blue); margin-bottom: 14px; line-height: 1.25; }
.tab-copy > p { color: var(--text-muted); font-size: 16px; margin-bottom: 18px; }
.tab-copy .excellence-list { margin-bottom: 24px; }
.tab-media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}

@media (max-width: 900px) {
  .tabs-nav { gap: 24px; justify-content: flex-start; overflow-x: auto; }
  .tab-panel.is-active { grid-template-columns: 1fr; gap: 28px; }
  .tab-media { order: -1; }
}

/* ---------- Excellence cards ---------- */
.section-excellence {
  background: var(--white-smoke);
}
.excellence-row {
  display: flex;
  align-items: stretch;
  gap: 24px;
}
.excellence-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: var(--white);
  border-radius: 24px;
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
}
.excellence-card .card-icon { position: relative; z-index: 1; }
.excellence-card h4 {
  position: relative;
  z-index: 1;
  font-size: 19px;
  color: var(--deep-sea-blue);
  margin-bottom: 10px;
}
.excellence-teaser {
  display: none;
}
.excellence-detail {
  position: relative;
  z-index: 1;
}
.excellence-detail p {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 42ch;
  margin: 4px 0 16px;
}
.excellence-list { display: flex; flex-direction: column; gap: 10px; }
.excellence-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--marble-blue);
  font-size: 14px;
}
.excellence-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background-color: var(--blue-dress);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  font-size: 0;
  color: transparent;
  margin-top: 1px;
}

@media (max-width: 900px) {
  .excellence-row { flex-direction: column; gap: 20px; }
}

/* ---------- Testimonial (large quote) — curved gradient segment ---------- */
.quote-block {
  background: linear-gradient(135deg, var(--deep-sea-blue) 0%, var(--marble-blue) 100%);
  padding: 100px 0;
  text-align: center;
  border-radius: 0 0 32px 32px;
  color: var(--white);
}
.quote-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 26px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-block .quote-avatar {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.quote-block blockquote {
  font-size: 26px;
  line-height: 1.4;
  color: var(--white);
  max-width: 760px;
  margin: 0 auto 22px;
  font-weight: 600;
}
.quote-cite { font-size: 14px; color: var(--white); font-weight: 600; }
.quote-cite span { color: #D7E3F0; font-weight: 400; }

/* ---------- Stat cards ---------- */
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  background: var(--white);
}
.stat-number { font-size: 44px; font-weight: 800; color: var(--deep-sea-blue); margin-bottom: 10px; }
.stat-stars { color: #F5B93E; letter-spacing: 3px; margin-bottom: 16px; }
.stat-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 20px; }
.review-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review-person div strong { display: block; font-size: 14px; color: var(--deep-sea-blue); }
.review-person div span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Success carousel ---------- */
.success-carousel {
  overflow: hidden;
  /* Both edges align with the site's own content column (the same width
     the navbar and every other section uses) — the peeking card overflows
     past that column, but the final scrolled position still lands flush
     with the page's max-width instead of the raw browser edge. */
  padding: 6px max(24px, calc((100% - 1360px) / 2 + 24px));
}
.success-track {
  display: flex;
  gap: 24px;
  width: max-content;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.success-slide {
  flex: 0 0 380px;
  width: 380px;
}
.success-controls {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.success-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--deep-sea-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.success-arrow:hover:not(:disabled) {
  background: var(--deep-sea-blue);
  border-color: var(--deep-sea-blue);
  color: var(--white);
}
.success-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 720px) {
  .success-slide { flex-basis: 84vw; width: 84vw; }
}

/* ---------- Meet the team carousel ----------
   One "active" card is expanded (photo + name/role/bio/CTA); every other
   card collapses to a thin peeking photo strip, like the reference. Widths
   animate via CSS transition; main.js recenters the active card in view. */
.team-section { border-radius: 0 0 32px 32px; }
.team-section .success-controls { justify-content: center; }
.team-carousel {
  position: relative;
  overflow: hidden;
  /* Fixed to the active card's height (plus this padding) so the section
     doesn't grow/shrink and jolt the page as cards animate between tiers —
     only the cards resize within this fixed-height viewport. */
  height: 372px;
  padding: 6px max(24px, calc((100% - 1360px) / 2 + 24px));
}
/* Solid blocks (same color as the section) sitting over each edge — the
   wrapping card slides underneath and disappears behind one, then slides
   back out from under the other, rather than shrinking away. */
.team-mask {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  background: var(--deep-sea-blue);
  z-index: 3;
  pointer-events: none;
}
.team-mask-left { left: 0; }
.team-mask-right { right: 0; }

@media (max-width: 980px) {
  .team-mask { width: 140px; }
}
@media (max-width: 720px) {
  .team-mask { width: 90px; }
}
.team-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.team-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 640px;
  height: 360px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    grid-template-columns 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-card:not(.is-active) {
  width: 110px;
  height: 300px;
  grid-template-columns: 1fr;
  cursor: pointer;
}
.team-card:not(.is-active) .team-card-copy { display: none; }
/* Immediate neighbors of the active card; smaller than active, bigger than
   the outermost pair — the graduated size steps down from the reference. */
.team-card.is-near { width: 150px; height: 300px; }
/* Outermost peeking pair — smallest tier. */
.team-card.is-far { width: 96px; height: 220px; }
.team-card-copy {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.team-name { font-size: 22px; color: var(--deep-sea-blue); margin-bottom: 4px; }
.team-credentials { font-size: 13px; color: var(--blue-dress); font-weight: 700; letter-spacing: 0.03em; margin: 0 0 6px; }
.team-role { font-size: 14.5px; color: var(--text-muted); font-weight: 600; }
.team-desc { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; max-width: 32ch; }
/* Every tier's photo is inset from its card edges — padding reveals the
   white card as a frame around it, and the image gets its own radius
   instead of relying on the outer card's corner clip. */
.team-card-media { position: relative; overflow: hidden; padding: 8px; }
.team-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }

@media (max-width: 980px) {
  .team-card { width: 520px; height: 320px; }
  .team-card.is-near { width: 130px; height: 260px; }
  .team-card.is-far { width: 84px; height: 190px; }
  .team-carousel { height: 332px; }
}
@media (max-width: 720px) {
  .team-card { width: 86vw; height: auto; grid-template-columns: 1fr; }
  .team-card.is-active .team-card-media { order: -1; height: 200px; }
  .team-card.is-near { width: 76px; height: 160px; }
  .team-card.is-far { width: 52px; height: 120px; }
  .team-card-copy { padding: 24px 20px; }
  /* The stacked active card's height is content-driven (bio length varies),
     so it can't be pinned to a fixed pixel value the way desktop/tablet
     are — let the carousel size to it instead of clipping. */
  .team-carousel { height: auto; }
}

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag-cloud span {
  display: inline-block;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  cursor: default;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.tag-cloud span em {
  font-style: normal;
  color: var(--marble-blue);
  background-image: linear-gradient(90deg, var(--blue-dress), var(--deep-sea-blue), var(--blue-dress));
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: color 0.35s ease, background-position 0.6s ease;
}
.tag-cloud span:hover {
  border-color: transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(120deg, var(--blue-dress), var(--deep-sea-blue), var(--blue-gray), var(--blue-dress)) border-box;
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.22);
  transform: translateY(-2px);
}
.tag-cloud span:hover em {
  color: transparent;
  background-position: 0 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--deep-sea-blue);
  border-radius: 28px;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
}
.cta-banner > div:first-child { flex: 1 1 65%; min-width: 0; }
.cta-banner h2 { font-size: 28px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; max-width: 460px; }
.cta-banner p { color: #B7C6D9; font-size: 15px; line-height: 1.5; }
.cta-actions { flex: 0 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: nowrap; }
.cta-actions .btn { padding: 12px 24px; font-size: 14.5px; }
.cta-actions .btn-outline.on-dark { border-color: rgba(255,255,255,0.55); }

/* ---------- Footer ---------- */
.footer {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px) 0 0 / 26px 26px,
    var(--deep-sea-blue);
  color: #C4D2E2;
  padding: 96px 0 32px;
  border-radius: 32px 32px 0 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; color: #93A8BD; line-height: 1.6; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { color: var(--white); font-size: 14px; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14.5px; color: #93A8BD; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: #7C93AA;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #C4D2E2;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-socials a:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }
.footer-socials svg { width: 16px; height: 16px; display: block; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--deep-sea-blue);
  color: var(--white);
  padding: 64px 0 80px;
  text-align: center;
  border-radius: 0 0 32px 32px;
}
.page-header .eyebrow { color: #8FB6FF; }
.page-header h1 { font-size: 44px; color: var(--white); max-width: 700px; margin: 0 auto 14px; }
.page-header p { color: #C4D2E2; font-size: 16.5px; max-width: 560px; margin: 0 auto; }
.breadcrumb { font-size: 13.5px; color: #8FB6FF; margin-bottom: 18px; }

/* ---------- Accordion (FAQ) ---------- */
.accordion-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.accordion-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  color: var(--deep-sea-blue);
  transition: color 0.2s ease, font-weight 0.2s ease;
}
.accordion-item[open] summary {
  color: var(--blue-dress);
  font-weight: 800;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--marble-blue);
  font-weight: 400;
  display: inline-block;
  transition: transform 0.25s ease, color 0.2s ease;
}
.accordion-item[open] summary::after { content: "+"; transform: rotate(45deg); color: var(--blue-dress); }
.accordion-item p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 720px;
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  background: var(--white);
}
.price-card.featured {
  border-color: var(--blue-dress);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -13px; left: 28px;
  background: var(--blue-dress);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card h4 { font-size: 18px; color: var(--deep-sea-blue); margin-bottom: 8px; }
.price-card .price { font-size: 40px; font-weight: 800; color: var(--deep-sea-blue); margin: 14px 0 4px; }
.price-card .price span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.price-card p.desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 22px; min-height: 42px; }
.price-card ul { margin: 24px 0; }
.price-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--marble-blue);
}
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background-color: var(--blue-dress);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 9px;
}

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--deep-sea-blue); }
.form-field input, .form-field textarea, .form-field select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white-smoke);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--blue-dress);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-info-card:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #EAF1FE;
  color: var(--blue-dress);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.contact-info-card h5 { font-size: 15.5px; color: var(--deep-sea-blue); margin-bottom: 4px; }
.contact-info-card p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Timeline (process) ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline-step { position: relative; padding-top: 46px; }
.timeline-step .num {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--deep-sea-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.timeline-step h4 { font-size: 16.5px; color: var(--deep-sea-blue); margin-bottom: 8px; }
.timeline-step p { font-size: 14px; color: var(--text-muted); }

/* ---------- Values grid (about) ---------- */
.value-card { text-align: left; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue-dress);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero h1 { font-size: 40px; }
  .hero-dark h1 { font-size: 38px; }
  .section-head h2 { font-size: 30px; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.reverse .feature-media { order: 1; }
  .feature-row.reverse .feature-copy { order: 2; }
  .grid-3, .grid-4, .grid-2, .pricing-grid, .timeline { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-link-text { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2, .pricing-grid, .timeline { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 44px 28px; }
  .cta-banner > div:first-child { flex: 1 1 auto; }
  .cta-actions { flex: 1 1 auto; justify-content: center; }
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 32px; }
  .page-header h1 { font-size: 32px; }
  .quote-block, .section-muted, .page-header, .hero-dark {
    border-radius: 0 0 18px 18px;
  }
  .footer { border-radius: 18px 18px 0 0; }
}

/* ---------- Hero showcase (hero image itself enlarges + crossfades) ---------- */
.hero { position: relative; }
.hero-showcase-spacer {
  position: relative;
  height: 560vh;
  margin-top: 56px;
}
.hero-showcase-stage {
  position: fixed;
  top: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--deep-sea-blue);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  pointer-events: none;
}
.hero-showcase-stage.is-released { position: absolute; top: auto; bottom: 0; }
.scroll-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.65);
  will-change: opacity;
}
.scroll-img[data-index="0"] { opacity: 1; }

.scroll-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.32) 45%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.scroll-gradient-left {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  height: 40%;
  background: radial-gradient(ellipse at 0% 100%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.scroll-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 620px;
  padding: 40px 56px 56px;
  color: var(--white);
  text-align: left;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.scroll-copy.is-visible { opacity: 1; transform: translateY(0); }

/* Slide-to-slide text swap — same bottom-to-top feel as the initial
   .scroll-copy reveal, replayed on the incoming eyebrow/heading/body
   each time the active slide changes. */
.scroll-text-enter { animation: scroll-text-enter 0.5s ease both; }
@keyframes scroll-text-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-eyebrow {
  display: none;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8FB6FF;
  margin-bottom: 12px;
}
.scroll-heading {
  display: none;
  text-align: left;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.scroll-body {
  display: none;
  text-align: left;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}
.scroll-eyebrow[data-index="0"], .scroll-heading[data-index="0"], .scroll-body[data-index="0"] { display: block; }

.scroll-dots {
  position: absolute;
  right: 28px;
  bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.scroll-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
  transition: height 0.35s ease, background 0.35s ease;
}
.scroll-dot.is-active {
  height: 22px;
  background: rgba(255, 255, 255, 0.32);
}
.scroll-dot-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: var(--white);
  border-radius: inherit;
}

@media (max-width: 900px) {
  .hero-showcase-spacer { height: 470vh; }
  .scroll-copy { padding: 26px 24px 34px; max-width: 92%; }
  .scroll-heading { font-size: 24px; }
  .scroll-body { font-size: 14.5px; }
  .scroll-dots { display: none; }
}

/* Preserve source inheritance in the WordPress environment. */
.bpoas-html-design h1,.bpoas-html-design h2,.bpoas-html-design h3,.bpoas-html-design h4,.bpoas-html-design h5{font-family:inherit}
.bpoas-html-design .cta-banner h2{color:#fff}
.bpoas-html-design .review-person span,.bpoas-html-design .review-person a{display:block}
.bpoas-html-design .review-person a{font-size:12px;text-decoration:underline;margin-top:6px}
.bpoas-html-design .review-knowledge-menu{position:relative;font-size:14px}
.bpoas-html-design .review-knowledge-menu summary{cursor:pointer;white-space:nowrap}
.bpoas-html-design .review-knowledge-menu>ul{position:absolute;right:0;background:white;color:#101418;padding:20px;width:min(330px,calc(100vw - 64px));max-height:70vh;overflow:auto;box-shadow:0 12px 32px #0b1f3322;z-index:200}
.bpoas-html-design .review-knowledge-menu li{margin:8px 0;white-space:normal}
.bpoas-html-design .review-knowledge-menu li ul{padding-left:16px}

/* Match source typography for retained live copy. */
body.bpoas-html-design #heroShowcaseStage .scroll-heading{color:#fff}
.bpoas-html-design .page-header h1{color:#fff}
.bpoas-html-design .tab-copy h2{font-size:27px;color:var(--deep-sea-blue);line-height:1.25;margin-bottom:14px}
.bpoas-html-design .leadership-card p{margin-top:14px;text-align:left}
.bpoas-html-design .leadership-card h3{font-size:18px;color:var(--deep-sea-blue)}
.bpoas-html-design .feature-copy h4{margin:18px 0 8px}

.bpoas-html-design .feature-copy h2{font-size:27px;color:var(--deep-sea-blue);line-height:1.25;margin-bottom:14px}

/* Existing Jetpack form in the supplied Contact layout; scoped to opted-in pages. */
body.bpoas-html-design .form-card { color:#253746; }
body.bpoas-html-design .form-card input:not([type=hidden]),
body.bpoas-html-design .form-card textarea,
body.bpoas-html-design .form-card select { background:#fff; color:#253746; font:inherit; border:1px solid #c9d2dc; border-radius:6px; max-width:100%; }
body.bpoas-html-design .form-card button[type=submit] { background:#2375d8; color:#fff; border-radius:6px; font-weight:600; padding:14px 24px; width:100%; }
body.bpoas-html-design .form-card label { color:#253746; }
body.bpoas-html-design .contact-social-links { margin-top:20px; }
body.bpoas-html-design .form-card .contact-form { margin:0; }
