/* BlueRidge Labs — site styles. Palette taken from the logo: cyan #04aaf9, royal blue #0065f4, navy #001660. */

:root {
  --navy-950: #050a24;
  --navy-900: #080f33;
  --navy-800: #0c1848;
  --navy-700: #12256c;
  --navy-600: #1b3590;
  --blue-600: #0a5ff0;
  --blue-500: #1a74f5;
  --blue-400: #1f8ff7;
  --cyan-400: #0ab0fb;
  --blue-100: #e3edfd;
  --blue-50: #f0f5fe;

  --bg: #f5f7fc;
  --surface: #ffffff;
  --text: #0b1340;
  --text-soft: #2f3b60;
  --muted: #525f80;
  --border: #dde4f0;
  --success: #1b7a4a;
  --error: #b3261e;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 19, 64, 0.05), 0 8px 24px rgba(11, 19, 64, 0.06);
  --shadow-lift: 0 2px 4px rgba(11, 19, 64, 0.06), 0 18px 44px rgba(11, 19, 64, 0.12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
a { color: var(--blue-600); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 24px;
}

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

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

/* Eyebrow labels get a short angled rule, a nod to the mark's 45-degree facets */
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font: 700 0.78rem/1.2 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 0.05em;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  box-shadow: 0 8px 22px rgba(10, 95, 240, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(10, 95, 240, 0.38); }

.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-small { padding: 0.68em 1.15em; font-size: 0.925rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 19, 64, 0.08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark { width: 44px; height: auto; flex: none; }
.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-name span { font-weight: 400; }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a:not(.btn) {
  position: relative;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn).is-active { color: var(--blue-600); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 10px;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem 16px 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(11, 19, 64, 0.1);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a:not(.btn) {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu .btn { margin-top: 1.1rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 48% 52% at 76% 42%, rgba(26, 140, 247, 0.32), transparent 70%),
    linear-gradient(180deg, var(--navy-950) 0%, #0a1545 48%, #1a338a 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 5.5rem);
}
.hero .eyebrow { color: var(--cyan-400); }
.hero .eyebrow::before { background: linear-gradient(135deg, #fff, var(--cyan-400)); }
.hero h1 { max-width: 20ch; }

.lede {
  max-width: 38rem;
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero-visual { display: flex; justify-content: center; }
.hero-mark {
  width: min(100%, 470px);
  height: auto;
  filter: drop-shadow(0 30px 70px rgba(10, 120, 250, 0.4));
}

/* The SVG's box overlaps the buttons above it, so let clicks pass through to them. */
.ridges {
  width: 100%;
  pointer-events: none;
  height: clamp(130px, 20.8vw, 560px);
  margin-top: clamp(-5rem, -5vw, -1rem);
  margin-bottom: -1px;
}
.ridge-far { fill: #2c52b4; opacity: 0.5; }
.ridge-mid { fill: #172f86; }
.ridge-near { fill: #0b1a5a; }
.ridge-front { fill: var(--bg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { order: -1; justify-content: flex-start; margin-bottom: 2rem; }
  .hero-mark { width: 128px; filter: drop-shadow(0 10px 28px rgba(10, 120, 250, 0.4)); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head p:last-child { margin: 0; color: var(--muted); font-size: 1.125rem; }

/* Services */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #bfd3f5;
  box-shadow: var(--shadow-lift);
}
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 95, 240, 0.25);
}
.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Approach */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}
.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
}
.step-num {
  display: block;
  margin-bottom: 0.75rem;
  font: 700 0.85rem/1 var(--font);
  letter-spacing: 0.08em;
  color: var(--blue-500);
}
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* About */

.about-section { padding-bottom: clamp(3rem, 6vw, 5rem); }

.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-copy p:not(.eyebrow) { color: var(--text-soft); font-size: 1.125rem; }
.about-copy p:last-child { margin-bottom: 0; }

.about-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.about-card-mark {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 240px;
  opacity: 0.14;
  pointer-events: none;
}
.about-card h3 { position: relative; margin-bottom: 1.25rem; }

.checklist {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.8rem;
  align-items: start;
  color: rgba(255, 255, 255, 0.88);
}
.checklist svg {
  width: 22px;
  height: 22px;
  margin-top: 0.15em;
  fill: none;
  stroke: var(--cyan-400);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Angular divider into the contact section */

.divider {
  width: 100%;
  height: clamp(60px, 9.7vw, 200px);
  margin-bottom: -1px;
}
.divider-back { fill: #9db6e4; }
.divider-front { fill: var(--navy-900); }

/* ---------- Contact ---------- */

.contact {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 9vw, 7rem);
  background: var(--navy-900);
  color: #fff;
}
.contact .eyebrow { color: var(--cyan-400); }
.contact .eyebrow::before { background: linear-gradient(135deg, #fff, var(--cyan-400)); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-copy > p { color: rgba(255, 255, 255, 0.78); font-size: 1.125rem; }

.next-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
  margin: 2rem 0 0;
  padding: 0;
}
.next-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.9rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
}
.next-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(31, 143, 247, 0.18);
  color: var(--cyan-400);
  font: 700 0.85rem/1 var(--font);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  background: #fbfcfe;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  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='%23525f80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 18px;
}
.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(26, 116, 245, 0.16);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--error); }

/* Honeypot: off-screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.25rem;
}
.form-status { flex: 1 1 14rem; margin: 0; font-size: 0.95rem; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.25rem 0;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.925rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-inner p { margin: 0; }
.site-footer a:not(.brand) { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:not(.brand):hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { width: 36px; }
.site-footer .brand-name { font-size: 1.1rem; }

/* ---------- Simple pages (thank-you, 404) ---------- */

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(26, 140, 247, 0.3), transparent 70%),
    linear-gradient(180deg, var(--navy-950) 0%, #10215f 100%);
  color: #fff;
  text-align: center;
}
.simple { max-width: 34rem; padding: 3rem 16px; }
.simple .simple-mark { width: 96px; margin: 0 auto 2rem; filter: drop-shadow(0 12px 30px rgba(10, 120, 250, 0.4)); }
.simple p { color: rgba(255, 255, 255, 0.8); font-size: 1.125rem; margin-bottom: 2rem; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card-grid .reveal:nth-child(2), .js .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .card-grid .reveal:nth-child(3), .js .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .steps .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Small screens & motion ---------- */

@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .brand-mark { width: 38px; }
  .brand-name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
