/* Blue Signal Partners: shared styles for every page. */

:root {
  --blue: #23437e;
  --teal: #2d799a;
  --soft-blue: #84aed1;
  --bright-blue: #00a3da;
  --charcoal: #414551;
  --charcoal-deep: #343a46;
  --neutral: #f4f6f8;
  --rule: #d9dee5;
  --rule-light: #e6eaef;
  --warm-grey: #6c6d69;
  --error: #b3261e;
  --white: #ffffff;

  --font: 'Bai Jamjuree', Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 80px;
  --max: 1440px;
  --header-h: 96px;
}

@media (max-width: 1200px) { :root { --gutter: 48px; } }
@media (max-width: 760px) { :root { --gutter: 20px; --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
/* <picture> only swaps the source; the <img> inside keeps its own layout. */
picture { display: contents; }
img { height: auto; }

a { color: var(--teal); }
a:hover { color: var(--blue); }
button { font-family: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.dark a:focus-visible, .dark button:focus-visible { outline-color: var(--soft-blue); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--blue); font-weight: 600;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 96px; }
.section--tint { background: var(--neutral); }
.section--dark { background: var(--charcoal); color: var(--white); }
@media (max-width: 760px) { .section { padding-block: 56px; } }

/* Type */
.label {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal);
}
.dark .label, .label--soft { color: var(--soft-blue); }

.labline { display: flex; align-items: center; gap: 12px; }
.labline svg { flex-shrink: 0; }

.h1 { margin: 0; font-size: clamp(40px, 5.3vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; }
.h2 { margin: 0; font-size: clamp(31px, 3.4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -.01em; color: var(--blue); }
.h2--lg { font-size: clamp(31px, 3.9vw, 56px); line-height: 1.05; letter-spacing: -.015em; }
.h3 { margin: 0; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; color: var(--blue); }
.dark .h2, .dark .h3 { color: var(--white); }
.lede { margin: 0; font-size: 18px; line-height: 1.6; }
.muted { color: var(--warm-grey); }
.dark .muted { color: var(--rule); }

@media (max-width: 760px) {
  .h1 { line-height: 1.08; }
  .h2 { line-height: 1.14; }
  .h3 { line-height: 1.18; }
}

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head__text { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section-head__link { font-size: 16px; font-weight: 600; flex-shrink: 0; }
@media (max-width: 760px) { .section-head { flex-direction: column; align-items: flex-start; gap: 16px; } }

/* Breadcrumbs */
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--rule); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--soft-blue); }
.crumbs a { color: var(--rule); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }


/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 15px 26px; border-radius: 8px; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(0, 163, 218, .25); }
.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { color: var(--blue); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--soft-blue); padding: 14px 25px; }
.btn--ghost:hover { color: var(--white); }
.btn--lg { font-size: 18px; padding: 18px 30px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60; height: 0;
  font-family: var(--font);
}
.site-header__bar {
  position: relative; z-index: 3;
  height: var(--header-h);
  transition: height .35s var(--ease), background .35s ease, box-shadow .35s ease, transform .45s var(--ease), opacity .3s ease;
  background: rgba(52, 58, 70, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo img { height: 56px; width: auto; transition: height .35s var(--ease); }

body.is-scrolled .site-header__bar { --header-h: 72px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
body.is-scrolled .site-header__logo img { height: 40px; }

/* Inner pages: the bar is see-through over the hero until the page scrolls. */
@media (min-width: 761px) {
  body[data-header="transparent"]:not(.is-scrolled):not(.menu-open) .site-header__bar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Homepage on wide screens: the bar slides in after the hero's own header scrolls away. */
@media (min-width: 961px) {
  body[data-header="reveal"] .site-header__bar { transform: translateY(-110%); opacity: 0; pointer-events: none; }
  body[data-header="reveal"].is-revealed .site-header__bar { transform: none; opacity: 1; pointer-events: auto; }
}

.site-nav { display: flex; align-items: center; gap: 32px; }
.navlink {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  color: var(--white); text-decoration: none; background: transparent; border: 0;
  font-size: 16px; font-weight: 500; padding: 6px 0;
}
.navlink:hover { color: var(--white); }
.navlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--bright-blue); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.navlink:hover::after, .navlink[aria-expanded="true"]::after, .navlink[aria-current="page"]::after,
body[data-section="services"] .navlink[data-nav="services"]::after,
body[data-section="tools"] .navlink[data-nav="tools"]::after,
body[data-section="websites"] .navlink[data-nav="websites"]::after,
body[data-section="insights"] .navlink[data-nav="insights"]::after,
body[data-section="about"] .navlink[data-nav="about"]::after { transform: scaleX(1); }
.site-nav a:focus-visible, .site-nav button:focus-visible, .site-header a:focus-visible, .site-header button:focus-visible { outline-color: var(--soft-blue); outline-offset: 3px; }

.site-nav__cta { font-size: 15px; padding: 12px 20px; }
.site-nav__cta:hover { box-shadow: none; transform: translateY(-1px); }

/* Mega menus */
.mega {
  position: absolute; top: calc(100% - 8px); z-index: 5;
  background: var(--white); color: var(--charcoal);
  border-radius: 12px; box-shadow: 0 24px 60px rgba(20, 30, 52, .35);
  animation: drop .28s var(--ease) both;
}
.mega[hidden] { display: none; }
.mega a { color: inherit; text-decoration: none; }
.mega a:hover .mega__title { color: var(--teal); }
.mega__title { font-size: 16px; font-weight: 600; color: var(--blue); transition: color .2s ease; }
.mega__desc { font-size: 13px; line-height: 1.45; color: var(--warm-grey); }

.mega--services {
  left: var(--gutter); right: var(--gutter); padding: 28px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 280px; gap: 18px;
}
.mega--services .mega__item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 8px; }
.mega__all {
  grid-column: 5; grid-row: 1 / span 2;
  background: var(--blue); color: var(--white) !important; border-radius: 10px; padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.mega__all-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft-blue); }
.mega__all-title { font-size: 20px; line-height: 1.2; font-weight: 700; }
.mega__all-copy { font-size: 13px; line-height: 1.5; color: var(--rule); }
.mega__all svg { margin-top: auto; width: 100%; }

.mega--tools {
  right: calc(var(--gutter) + 220px); width: 520px; padding: 22px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.mega--tools .mega__item { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 10px; background: var(--neutral); }
.mega--tools .mega__title { font-size: 17px; }
.mega__kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }

@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1200px) {
  .mega--services { grid-template-columns: repeat(3, minmax(0, 1fr)) 240px; }
  .mega__all { grid-column: 4; grid-row: 1 / span 3; }
}

/* Mobile and tablet menu */
.burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: transparent; border: 0;
}
.burger .burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

.mmenu {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  overflow-y: auto; padding: 16px var(--gutter) 32px;
  background: var(--charcoal-deep); color: var(--white); z-index: 4;
  display: flex; flex-direction: column;
  animation: mfade .3s var(--ease) both;
}
.mmenu[hidden] { display: none; }
.mmenu a { color: var(--white); text-decoration: none; }
.mmenu__row { display: block; font-size: 22px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(132, 174, 209, .25); }
.mmenu__sub { display: block; font-size: 16px; font-weight: 500; color: var(--rule) !important; padding: 9px 0 9px 14px; }
.mmenu__label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--soft-blue); padding: 20px 0 6px; }
.mmenu__cta { margin-top: 24px; text-align: center; background: var(--white); color: var(--blue) !important; font-weight: 600; font-size: 17px; padding: 16px; border-radius: 8px; }
@keyframes mfade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .site-nav, .mega { display: none !important; }
  .burger { display: flex; }
  .site-header__logo img { height: 40px; }
}
@media (max-width: 760px) {
  .site-header__bar, body.is-scrolled .site-header__bar { --header-h: 64px; background: rgba(52, 58, 70, .96); }
  .site-header__logo img, body.is-scrolled .site-header__logo img { height: 34px; }
}
body.menu-open { overflow: hidden; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--white); padding: 64px 0 40px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--soft-blue); }
.site-footer a:focus-visible { outline-color: var(--soft-blue); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand img { height: 52px; width: auto; }
.site-footer__tagline { font-size: 20px; font-weight: 700; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer__col .label { font-size: 13px; color: var(--soft-blue); }
.site-footer__place { color: var(--rule); }
.site-footer__legal {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; border-top: 1px solid var(--warm-grey); padding-top: 20px;
  font-size: 13px; color: var(--rule);
}
.site-footer__legal nav { display: flex; gap: 20px; }
@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-footer { padding: 48px 0 32px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; }
  .site-footer__col--contact { grid-column: 1 / -1; }
  .site-footer a[href^="mailto"] { word-break: break-all; }
}

/* Closing call-to-action band */
.cta-band { position: relative; overflow: hidden; background: var(--blue); color: var(--white); }
.cta-band__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; max-width: none; }
.cta-band__tint { position: absolute; inset: 0; background: rgba(35, 67, 126, .72); }
.cta-band__inner { position: relative; z-index: 2; min-height: 340px; display: flex; align-items: center; gap: 40px; padding-block: 48px; }
.cta-band__text { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; max-width: 560px; }
.cta-band__title { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.1; font-weight: 700; }
.cta-band__sub { font-size: 17px; color: var(--rule); }
.cta-band__line { position: relative; flex-grow: 1; height: 40px; }
.cta-band__line svg { position: absolute; inset: 0; width: 100%; height: 40px; }
.cta-band .btn { flex-shrink: 0; }
/* Inner pages: the pulse draws in when the band is hovered. */
.cta-band--hover .cta-band__pulse { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s var(--ease); }
.cta-band--hover:hover .cta-band__pulse { stroke-dashoffset: 0; }
.cta-band--hover:hover .btn { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(0, 163, 218, .25); }
@media (hover: none) { .cta-band--hover .cta-band__pulse { stroke-dashoffset: 0; } }

@media (max-width: 960px) {
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-band__text { flex-shrink: 1; }
  .cta-band__line { display: none; }
}

/* Motion */
@keyframes bs-lock {
  0% { opacity: 0; filter: blur(14px); transform: scaleX(1.4) translateX(-30px); transform-origin: left center; letter-spacing: .14em; text-shadow: -22px 0 rgba(0, 163, 218, .95), 22px 0 rgba(132, 174, 209, .85); }
  45% { opacity: 1; filter: blur(3px); transform: scaleX(1.06); letter-spacing: .02em; text-shadow: -7px 0 rgba(0, 163, 218, .9), 7px 0 rgba(132, 174, 209, .8); }
  62% { filter: blur(0); text-shadow: 3px 0 rgba(0, 163, 218, .9), -3px 0 rgba(132, 174, 209, .8); }
  74% { text-shadow: -1px 0 rgba(0, 163, 218, .8), 1px 0 rgba(132, 174, 209, .7); }
  100% { opacity: 1; filter: none; transform: none; letter-spacing: normal; text-shadow: 0 0 28px rgba(0, 163, 218, .35); }
}
@keyframes bs-echo {
  0% { opacity: 0; transform: translateY(30px); text-shadow: 0 10px 0 rgba(132, 174, 209, .55), 0 20px 0 rgba(0, 163, 218, .4), 0 30px 0 rgba(45, 121, 154, .3), 0 40px 0 rgba(35, 67, 126, .2); }
  55% { opacity: 1; transform: none; text-shadow: 0 5px 0 rgba(132, 174, 209, .45), 0 10px 0 rgba(0, 163, 218, .3), 0 15px 0 rgba(45, 121, 154, .2), 0 20px 0 rgba(35, 67, 126, .1); }
  100% { opacity: 1; transform: none; text-shadow: none; }
}
@keyframes bs-draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes bs-fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bs-labline { from { stroke-dashoffset: 52; } to { stroke-dashoffset: 0; } }

.bs-lock { animation: bs-lock 1.1s var(--ease) both; }
.bs-echo { animation: bs-echo 1.4s var(--ease) .2s both; }
.bs-cta-line { stroke-dasharray: 1000; animation: bs-draw 2.4s ease-out infinite alternate; }
.bs-in { animation: bs-fadeup .9s var(--ease) both; }
.bs-in2 { animation: bs-fadeup .9s var(--ease) .15s both; }
.bs-in3 { animation: bs-fadeup .9s var(--ease) .3s both; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal .labline line { stroke-dasharray: 52; stroke-dashoffset: 52; }
.js .reveal.is-in .labline line { animation: bs-labline .7s var(--ease) .2s both; }

/* Card link underline (bs-link) */
.bs-link { background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); padding-bottom: 2px; }
a:hover .bs-link, .bs-link:hover { background-size: 100% 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
