/* Bluestreet site styles */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-800.woff2") format("woff2"); }

:root {
  --navy: #0B2545;
  --navy-2: #133460;
  --blue: #1F6FEB;
  --blue-ink: #1A5FCC;     /* text links: 5.4:1 on #F5F8FC */
  --blue-light: #5AA2FF;
  --offwhite: #F5F8FC;
  --white: #FFFFFF;
  --text: #0B2545;
  --muted: #44546A;
  --border: #DCE4EF;
  --border-strong: #B9C6D8;
  --error: #B42318;
  --success: #0E7A43;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --fs-h1: clamp(2.25rem, 1.4rem + 3.8vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --fs-h3: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-lede: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-small: .875rem;

  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

a { color: var(--blue-ink); text-underline-offset: .2em; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: .75rem 1rem; background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .625rem 1.125rem;
  font: inherit; font-weight: 600; font-size: .9375rem; line-height: 1.2;
  border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #185CC4; color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-solid { background: rgba(255, 255, 255, .96); border-bottom-color: var(--border); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid { background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.4) blur(10px); }
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; flex-shrink: 0; border-radius: 6px; }
.brand img { width: 150px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--navy); font-weight: 600; font-size: .9375rem; text-decoration: none;
  padding: .5rem 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 10px);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: .625rem; }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-right: -6px;
  background: transparent; border: 0; border-radius: 10px; cursor: pointer; color: var(--navy);
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle-bars { position: relative; margin: 0 auto; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .menu-toggle { display: block; }
  .js .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px -24px rgba(11, 37, 69, .35);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-header:has(.site-nav.is-open) { background: var(--white); border-bottom-color: var(--border); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: .875rem 0; font-size: 1.0625rem; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; min-height: 48px; }
  /* No-JS fallback: show a compact inline nav */
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 1rem; }
  html:not(.js) .nav-links { flex-direction: row; gap: 1.25rem; }
  html:not(.js) .nav-links a { border: 0; }
  html:not(.js) .nav-actions { flex-direction: row; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(4rem, 2rem + 8vw, 9rem)) 0 clamp(4.5rem, 3rem + 6vw, 8rem);
  background: linear-gradient(180deg, var(--offwhite) 0%, var(--white) 100%);
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.35) 55%, #000 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.35) 55%, #000 100%);
}
@media (min-width: 861px) {
  .hero-art {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.3) 35%, #000 62%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.3) 35%, #000 62%);
  }
}
.hero-art .grid path { fill: none; stroke: var(--navy); stroke-opacity: .045; stroke-width: 22; }
.hero-art .blocks rect { fill: none; stroke: var(--navy); stroke-opacity: .07; stroke-width: 1; }
.hero-art .route {
  fill: none; stroke: var(--blue); stroke-opacity: .55; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 14 12;
  animation: lane-crawl 6s linear infinite;
}
.hero-art .reveal {
  fill: none; stroke: #fff; stroke-width: 12;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: reveal 4.5s var(--ease) .3s forwards;
}
.hero-art .reveal-late { animation-delay: 1.4s; }
.hero-art .reveal-later { animation-delay: 2.4s; }
.hero-art .nodes circle { fill: var(--white); stroke: var(--blue); stroke-width: 2.5; opacity: 0; animation: fade-in 1s var(--ease) 3.2s forwards; }
@keyframes reveal { to { stroke-dashoffset: 0; } }
@keyframes lane-crawl { to { stroke-dashoffset: -52; } }
@keyframes fade-in { to { opacity: .9; } }

/* Keep copy legible over the art */
.hero-inner { position: relative; max-width: calc(820px + var(--gutter) * 2); margin-left: max(0px, calc((100% - var(--container) - var(--gutter) * 2) / 2)); }
.hero-inner::before {
  content: ""; position: absolute; inset: -3rem -4rem -3rem -10rem; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,255,255,.9), rgba(255,255,255,.6) 60%, rgba(255,255,255,0));
}
.hero-title { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.05; max-width: 15ch; }
.hero-sub { margin-top: 1.5rem; font-size: var(--fs-lede); color: var(--muted); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Sections */
.section { padding-block: var(--space-section); }
.section-alt { background: var(--offwhite); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.eyebrow { font-size: var(--fs-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: .875rem; }
.section-head h2 { font-size: var(--fs-h2); }
.section-lede { margin-top: 1.25rem; font-size: var(--fs-lede); color: var(--muted); }

.accent-underline { position: relative; padding-bottom: 1.125rem; }
.accent-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 12px, transparent 12px 20px);
}

.lane-divider {
  height: 3px; border-radius: 2px; opacity: .35;
  background: repeating-linear-gradient(90deg, var(--blue) 0 18px, transparent 18px 32px);
}
.lane-divider-light { opacity: .7; background: repeating-linear-gradient(90deg, var(--blue-light) 0 18px, transparent 18px 32px); }

/* Platform cards */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card, .tile {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover, .tile:hover { border-color: var(--border-strong); }
.card h3, .tile h3 { font-size: var(--fs-h3); margin-top: 1.25rem; }
.card p, .tile p { margin-top: .5rem; color: var(--muted); }

.icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: #EAF2FE; color: var(--blue);
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* Who tiles */
.tile-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tile { background: var(--offwhite); border-color: transparent; }
.tile .icon { background: var(--white); }

/* Responsible band */
.band { background: var(--navy); color: var(--white); padding-block: var(--space-section); }
.band-head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.band-head h2 { font-size: var(--fs-h2); }
.band-head .lane-divider { width: 120px; }
.band-grid { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.band-grid li { padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.band-grid h3 { font-size: var(--fs-h3); color: var(--white); }
.band-grid p { margin-top: .5rem; color: #C9D6E8; }

/* Contact */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .contact-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}
.contact-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .375rem; align-content: start; }
.field label { font-weight: 600; font-size: .9375rem; }
.req { font-weight: 400; color: var(--muted); font-size: .875rem; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--white); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: .75rem .875rem; min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { resize: vertical; min-height: 140px; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 18px;
}
input:hover, select:hover, textarea:hover { border-color: #8EA1BA; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 235, .25);
}
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-hint { font-size: var(--fs-small); color: var(--muted); }
.field-error { font-size: var(--fs-small); color: var(--error); font-weight: 600; }
.field-error:empty { display: none; }
.field-error::before { content: "Error: "; }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { min-height: 65px; }
.contact-form .btn { justify-self: start; }

.form-status:empty { display: none; }
.form-status, .nojs-status {
  padding: 1rem 1.125rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem;
  font-weight: 600; border: 1.5px solid;
}
.form-status.is-success, .nojs-sent { color: var(--success); background: #EAF7F0; border-color: #A6D9BC; }
.form-status.is-error, .nojs-error { color: var(--error); background: #FDF0EE; border-color: #F0B8B1; }
.form-status:focus { outline: none; }
.nojs-status { display: none; }
.nojs-status:target { display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-brand { display: inline-flex; border-radius: 6px; }
.footer-brand img { width: 112px; height: auto; }
.footer-copy { color: var(--muted); font-size: var(--fs-small); }
.footer-nav { margin-left: auto; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--muted); font-size: var(--fs-small); font-weight: 600; text-decoration: none; display: inline-block; padding: .5rem 0; }
.footer-nav a:hover { color: var(--navy); text-decoration: underline; }
@media (max-width: 560px) { .footer-nav { margin-left: 0; width: 100%; } }

/* Legal + 404 pages */
.page-simple .site-header { background: rgba(255, 255, 255, .96); border-bottom-color: var(--border); }
.legal { padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--space-section); }
.legal-inner { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); }
.legal .effective { margin-top: 1rem; color: var(--muted); }
.legal .notice { margin-top: 1.5rem; padding: 1rem 1.125rem; background: var(--offwhite); border-radius: var(--radius-sm); color: var(--muted); }
.legal h2 { font-size: 1.375rem; margin-top: 2.75rem; margin-bottom: .75rem; }
.legal p, .legal li { color: #2A3B52; }
.legal p + p { margin-top: 1rem; }
.legal ul { padding-left: 1.25rem; margin: .75rem 0 0; }
.legal li + li { margin-top: .5rem; }

.notfound { min-height: 60vh; display: grid; align-items: center; padding-block: var(--space-section); }
.notfound h1 { font-size: var(--fs-h1); max-width: 14ch; }
.notfound p { margin-top: 1.25rem; font-size: var(--fs-lede); color: var(--muted); }
.notfound .btn { margin-top: 2rem; }
.notfound .lane-divider { width: 160px; margin-bottom: 2rem; }

/* Scroll reveal (only when JS is available) */
.js .reveal-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-art .reveal { stroke-dashoffset: 0; }
  .hero-art .nodes circle { opacity: .9; }
  .js .reveal-on-scroll { opacity: 1; transform: none; }
}
