/* BridgeNode — bridgenode.ca
   Plain CSS, no build step. Tokens first, then layout, then components. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b0f0e;
  --ink-2: #141a18;
  --ink-3: #1d2522;
  --paper: #ffffff;
  --mist: #f2f5f4;
  --line: #e1e7e5;
  --line-dark: #2a3330;
  --text: #0b0f0e;
  --muted: #55615d;
  --muted-dark: #9aa7a2;
  --green: #03bf71;      /* logo green: accents on dark */
  --green-ink: #0e7a55;  /* accessible green on white */
  --green-deep: #12715b; /* buttons */
  --green-wash: #e3f6ee;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1160px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section--tight { padding: 72px 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: #fff; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.section--dark .lead, .hero .lead { color: var(--muted-dark); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.center.section-head { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-ink); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(3, 191, 113, 0.18); }
.section--dark .eyebrow, .hero .eyebrow { color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 8px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--green-deep); color: #fff; }
.btn--primary:hover { background: #0d5c49; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--green-wash); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--ghost-dark { border-color: var(--line-dark); color: #fff; }
.btn--ghost-dark:hover { border-color: #fff; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }
.link-arrow { font-weight: 600; color: var(--green-ink); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.section--dark .link-arrow { color: var(--green); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header--dark { background: rgba(11, 15, 14, 0.88); border-bottom-color: var(--line-dark); color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__logo img { height: 34px; width: auto; }
.nav__logo .logo-light { display: none; }
.site-header--dark .nav__logo .logo-dark { display: none; }
.site-header--dark .nav__logo .logo-light { display: block; }
.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 0.97rem; opacity: 0.85; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav__links .btn { opacity: 1; padding: 11px 18px; }
.nav__menu { display: none; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__menu { display: block; position: relative; }
  .nav__menu summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
  .site-header--dark .nav__menu summary { border-color: var(--line-dark); }
  .nav__menu summary::-webkit-details-marker { display: none; }
  .nav__menu ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; list-style: none; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); }
  .nav__menu li a { display: block; padding: 12px 14px; border-radius: 6px; text-decoration: none; font-weight: 500; }
  .nav__menu li a:hover { background: var(--mist); }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 120px 0 128px; }
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 span { color: var(--green); }
.hero .lead { font-size: 1.25rem; max-width: 640px; margin-bottom: 36px; }
.hero__network { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: 620px; max-width: 70vw; opacity: 0.55; pointer-events: none; }
.hero--page { padding: 96px 0 88px; }
.hero--page .hero__inner { max-width: 760px; }
@media (max-width: 820px) {
  .hero { padding: 80px 0 88px; }
  .hero__network { right: -220px; opacity: 0.25; }
}

/* Karis feature */
.karis { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 56px; align-items: center; }
.karis__brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; margin-bottom: 24px; }
.karis__brand img { width: 30px; height: auto; }
.karis__shot { border-radius: var(--radius-lg); border: 1px solid var(--line-dark); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.checks { list-style: none; display: grid; gap: 12px; margin: 28px 0 36px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--green-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230e7a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.section--dark .checks li::before { background-color: rgba(3, 191, 113, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2303bf71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.karis__shot--light { border-color: var(--line); box-shadow: 0 30px 70px rgba(11, 15, 14, 0.14); }
.proof { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof strong { display: block; font-size: 1rem; }
.proof span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 960px) {
  .karis { grid-template-columns: 1fr; gap: 48px; }
  .proof { grid-template-columns: 1fr 1fr; }
}

/* Cards */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.section--mist .card { border-color: transparent; }
.section--dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.card p { color: var(--muted); margin: 0; }
.section--dark .card p { color: var(--muted-dark); }
.card__icon { width: 48px; height: 48px; margin-bottom: 24px; }
.card__num { font-size: 0.85rem; font-weight: 600; color: var(--green-ink); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.card--link { text-decoration: none; display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s; }
.card--link:hover { border-color: var(--green-ink); transform: translateY(-2px); }

/* Service rows */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service:nth-child(even) .service__media { order: -1; }
.service__media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service .checks { margin: 20px 0 0; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 28px; }
  .service:nth-child(even) .service__media { order: 0; }
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius-lg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* People */
.person { display: flex; gap: 20px; align-items: center; }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.person strong { display: block; font-size: 1.1rem; }
.person span { color: var(--muted); }

/* CTA band */
.cta { background: var(--green-deep); color: #fff; border-radius: 20px; padding: 64px; display: flex; gap: 40px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 520px; }
.cta .btn-row { flex: none; position: relative; }
@media (max-width: 860px) { .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; } }

/* Contact */
.contact-card { display: flex; flex-direction: column; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card .value { font-size: 1.15rem; font-weight: 600; margin: 12px 0 20px; word-break: break-word; }
.contact-card .link-arrow { margin-top: auto; }

/* Prose */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: #2c3532; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 72px 0 40px; font-size: 0.95rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { height: 34px; width: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 0.88rem; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; }
