/* ============================================================
   BluebirdDX Advisory — shared stylesheet
   Brand: headings Bebas Neue #2462EA · body Inter #0E1528
   Background white · accent #3C82F4 · supporting #63738A
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --blue:        #2462EA;  /* primary — headings only */
  --blue-light:  #3C82F4;  /* secondary accent */
  --ink:         #0E1528;  /* body text on white */
  --grey-blue:   #63738A;  /* supporting */
  --bg:          #FFFFFF;
  --bg-tint:     #EDF2FE;  /* very light blue panel */
  --bg-tint-2:   #F6F8FE;
  --line:        #DBE3F5;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;

  --display: 'Bebas Neue', Impact, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--blue);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.18rem; letter-spacing: 0.04em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-blue);
  margin: 0 0 0.9rem;
}

.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink); }
.muted { color: var(--grey-blue); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--bg-tint-2); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.85rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }
.nav-links a {
  font-weight: 500; color: var(--ink); font-size: 0.96rem;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--blue-light); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 0.9rem var(--gutter); border-top: 1px solid var(--line); }
  .nav-cta { margin: 0.8rem var(--gutter); text-align: center; border-radius: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  border: 1.5px solid var(--blue); cursor: pointer; transition: 0.18s;
}
.btn-primary { background: var(--blue); color: #fff !important; }
.btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue) !important; }
.btn-ghost:hover { background: var(--bg-tint); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { color: var(--blue); }
.hero .lead { margin-bottom: 1.8rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* image placeholder used until real photography is supplied */
.img-ph {
  position: relative; width: 100%; border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--bg-tint) 0%, #fff 60%),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(36,98,234,0.05) 18px 19px);
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 280px; color: var(--grey-blue); font-size: 0.85rem; padding: 1.5rem;
}
.img-ph span { max-width: 26ch; }
.img-ph::before {
  content: "IMAGE"; position: absolute; top: 12px; left: 14px;
  font-family: var(--display); letter-spacing: 0.12em; font-size: 0.8rem; color: var(--blue-light);
}

/* ---------- Generic cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-tint); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); height: 100%;
}
.card h3, .card h4 { color: var(--blue); }
.card .num {
  font-family: var(--display); font-size: 1.4rem; color: var(--blue-light);
  letter-spacing: 0.08em;
}
.card-outline { background: #fff; border: 1px solid var(--line); }

/* offering cards on home */
.offer-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: 0.18s; height: 100%;
}
.offer-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14,21,40,0.08); border-color: var(--blue-light); }
.offer-card .thumb { min-height: 170px; }
.offer-card .offer-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.offer-card .offer-eyebrow {
  font-family: var(--body); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-light);
  margin: 0 0 0.4rem;
}
.offer-card .offer-body h3 { min-height: 3.4em; display: flex; align-items: flex-start; }
.offer-card .tagline { color: var(--ink); font-weight: 500; margin-bottom: 0.75rem; min-height: 3em; }
.offer-card .offer-link { margin-top: auto; font-weight: 600; padding-top: 1rem; }
.offer-card .offer-link::after { content: " →"; }
@media (max-width: 879px) {
  .offer-card .offer-body h3,
  .offer-card .tagline { min-height: 0; }
}

/* ---------- Narrative arc strip ---------- */
.arc { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .arc { grid-template-columns: repeat(3, 1fr); } }
.arc-item { border-top: 3px solid var(--blue); padding-top: 1rem; }
.arc-item h3 { margin-bottom: 0.2rem; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: clamp(1.2rem, 3vw, 2rem); grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .stats.four { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat .big {
  font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--blue); line-height: 1; letter-spacing: 0.02em;
}
.stat .lbl { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--grey-blue); margin-top: 0.4rem; }
.stat p { font-size: 0.92rem; color: var(--ink); margin-top: 0.4rem; }
.source { font-size: 0.82rem; color: var(--grey-blue); font-style: italic; margin-top: 1.5rem; }

/* ---------- Phase timeline (sub-pages) ---------- */
.phases { counter-reset: phase; display: grid; gap: 1.2rem; }
.phase {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.9rem);
}
.phase .marker {
  counter-increment: phase;
  font-family: var(--display); font-size: 1.6rem; color: #fff;
  background: var(--blue); width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phase .marker::before { content: counter(phase); }
.phase h3 { margin-bottom: 0.3rem; }
.phase .role { font-weight: 600; color: var(--ink); }
.phase blockquote {
  margin: 0.9rem 0 0; padding-left: 1rem; border-left: 3px solid var(--blue-light);
  color: var(--grey-blue); font-style: italic;
}

/* lifecycle chevrons */
.lifecycle { display: grid; gap: 0.8rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .lifecycle { grid-template-columns: 1fr 1fr; } }
.life-step { background: var(--bg-tint); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.life-step h4 { color: var(--blue); margin-bottom: 0.25rem; }
.life-step.is-current { background: var(--blue); }
.life-step.is-current h4, .life-step.is-current p { color: #fff; }

/* ---------- Page intro band (sub-pages) ---------- */
.page-hero { background: var(--bg-tint-2); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { font-size: 0.85rem; color: var(--grey-blue); margin-bottom: 1rem; }
.breadcrumb a { color: var(--grey-blue); }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 52ch; }
.cta-band .btn-primary { background: #fff; color: var(--blue) !important; border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--bg-tint); }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) { .cta-inner { grid-template-columns: 1.4fr auto; } }

/* ---------- Two-col prose ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }

.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.7rem; height: 0.7rem; border-radius: 2px;
  background: var(--blue-light);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: 3rem 2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--blue-light); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { height: 34px; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-family: var(--display); letter-spacing: 0.06em; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-tag { color: rgba(255,255,255,0.7); font-size: 0.95rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Real images ---------- */
.media {
  width: 100%; border-radius: var(--radius); display: block;
  object-fit: cover; box-shadow: 0 10px 30px rgba(14,21,40,0.10);
}
.hero .media { aspect-ratio: 3 / 2; }
.split .media { aspect-ratio: 5 / 4; }
.offer-card .thumb-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.media-portrait { object-position: center top; }

/* ---------- Brand hero (logo + tagline) ---------- */
.hero-brand {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--bg-tint) 0%, #fff 60%);
  border-bottom: 1px solid var(--line);
}
.hero-logo {
  width: min(560px, 80%); height: auto; display: block; margin: 0 auto 1.6rem;
}
.hero-tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--blue); font-weight: 500;
  max-width: 30ch; margin: 0 auto 2rem; line-height: 1.4;
}
.hero-brand .hero-actions { justify-content: center; }

/* ---------- Credentials with small headshot ---------- */
.credentials {
  display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .credentials { grid-template-columns: 200px 1fr; }
}
.headshot {
  width: 100%; max-width: 200px; height: 200px;
  object-fit: cover; object-position: center top;
  border-radius: 50%; display: block;
  box-shadow: 0 8px 24px rgba(14,21,40,0.12);
}
@media (max-width: 719px) {
  .headshot { max-width: 140px; height: 140px; }
}

/* ---------- Connected process flow (Delivery page) ---------- */
.flow {
  position: relative;
  display: flex;
  flex-direction: column;          /* mobile default: vertical */
}
.flow-step {
  position: relative;
  display: flex; flex-direction: row; align-items: flex-start;
  gap: 1.1rem;
  padding-bottom: 1.8rem;
}
.flow-step:last-child { padding-bottom: 0; }

.flow-node {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
}
/* vertical connecting line (mobile): runs down through node centres */
.flow::before {
  content: ""; position: absolute; z-index: 0;
  left: 23px; top: 23px; bottom: 23px;
  width: 2px; transform: translateX(-50%);
  background: var(--line);
}
.flow-card { padding-top: 0.4rem; }
.flow-card h4 { color: var(--blue); margin-bottom: 0.25rem; }
.flow-card p { color: var(--ink); }

/* desktop: horizontal connected row, line runs across node centres */
@media (min-width: 820px) {
  .flow { flex-direction: row; }
  .flow::before {
    left: 10%; right: 10%; top: 26px; bottom: auto;
    width: auto; height: 2px; transform: none;
  }
  .flow-step {
    flex: 1; flex-direction: column; align-items: center; text-align: center;
    padding-bottom: 0; padding-inline: 0.5rem;
  }
  .flow-node { width: 52px; height: 52px; font-size: 1.7rem; }
  .flow::before { top: 26px; }   /* centre of 52px node */
  .flow-card { padding-top: 1rem; max-width: 13rem; }
}

/* ---------- Hero with background image ---------- */
.hero-bg {
  position: relative;
  background: url('assets/hero.jpg') center / cover no-repeat;
  min-height: clamp(420px, 60vh, 560px);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(14,21,40,0.82) 0%,
    rgba(14,21,40,0.66) 45%,
    rgba(36,98,234,0.34) 100%);
}
.hero-bg-content { position: relative; z-index: 1; }
.hero-bg-content h1 {
  color: #fff; max-width: 26ch;
  font-size: clamp(2.3rem, 5vw, 4rem);
  text-shadow: 0 2px 18px rgba(14,21,40,0.35);
}
.btn-ghost-light {
  background: rgba(255,255,255,0.08); color: #fff !important; border-color: #fff;
}
.btn-ghost-light:hover { background: #fff; color: var(--blue) !important; }

/* ---------- Compact side image (sub-page split sections) ---------- */
.split .media-compact {
  max-width: 360px; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  margin-inline: auto;       /* centre within its grid column */
  align-self: center;
}

/* ---------- Branded partner diagram (Partner page) ---------- */
.ring-wrap { display: flex; justify-content: center; align-items: center; }
.partner-diagram { width: 100%; max-width: 420px; height: auto; }

/* ---------- Go-live progression diagram (Delivery page) ---------- */
.golive-wrap { display: flex; justify-content: center; align-items: center; }
.golive-diagram { width: 100%; max-width: 400px; height: auto; }
