/* ============================================================
   Bryce Advisory Services — Main Stylesheet
   Dark mode · Mobile-first responsive design
   Palette sourced from brand presentation deck
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Dark surfaces */
  --navy:      #2d3133;   /* main body / section background */
  --navy-dk:   #1e2124;   /* nav, footer, darkest surfaces */
  --navy-md:   #383c3f;   /* card / panel surfaces */
  --navy-lt:   #444849;   /* hover states, lighter panels */

  /* Accent – lavender / purple (from brand deck) */
  --teal:      #a596f0;
  --teal-lt:   #c4baff;

  /* Light ice surface (used for subtle callout blocks) */
  --ice:       #383c3f;

  /* True white – logo framing, etc. */
  --white:     #ffffff;

  /* Text */
  --grey:      #c8ccce;   /* primary body text */
  --grey-lt:   #9aa0a3;   /* muted / secondary text */
  --grey-bg:   #2a2d30;   /* very slightly darker than --navy for alt sections */

  /* Service-area accent colours */
  --amber:     #e8a44e;
  --cloud-bl:  #6aadcc;
  --green:     #5bc28a;

  /* Shadows */
  --shadow:    0 4px 22px rgba(0,0,0,0.45);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.32);

  /* Misc */
  --radius:    6px;
  --transition: 0.22s ease;
  --max-w:     1120px;
  --nav-h:     68px;

  /* Border colour used site-wide */
  --border:    rgba(255,255,255,0.09);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey);
  background: var(--navy);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--white);
  line-height: 1.22;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.55rem;
}

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--dark  { background: var(--navy-dk); }
.section--navy  { background: var(--navy); }
.section--teal  { background: var(--teal); color: var(--white); }
.section--ice   { background: var(--ice); }
.section--grey  { background: var(--grey-bg); }
.section--white { background: var(--navy-md); }   /* "white" sections → slightly lifted surface */

.section__header { text-align: center; margin-bottom: 3rem; }
.section__header p { max-width: 680px; margin: 0.75rem auto 0; font-size: 1.1rem; color: var(--grey-lt); }

/* ── Grid ── */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--teal);
  color: var(--navy-dk);
  border-color: var(--teal);
}
.btn--primary:hover {
  background: var(--teal-lt);
  border-color: var(--teal-lt);
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
  text-decoration: none;
}
.btn--outline-teal {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline-teal:hover {
  background: rgba(165,150,240,0.12);
  text-decoration: none;
}
.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-dk);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 18px rgba(0,0,0,0.35);
  height: var(--nav-h);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav__logo img {
  height: 40px;
  width: auto;
  background: var(--white);
  border-radius: 4px;
  padding: 3px 6px;
}
.nav__logo-text {
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.15;
}
.nav__logo-text span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--teal-lt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--grey-lt);
  font-size: 0.92rem;
  border-radius: 4px;
  transition: var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); text-decoration: none; }
.nav__links .nav__cta a {
  background: var(--teal);
  color: var(--navy-dk);
  padding: 0.45rem 1rem;
  margin-left: 0.5rem;
  font-weight: 700;
}
.nav__links .nav__cta a:hover { background: var(--teal-lt); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-dk);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  color: var(--grey-lt);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.nav__mobile a:hover, .nav__mobile a.active { color: var(--white); text-decoration: none; }
.nav__mobile .btn { margin-top: 0.75rem; width: 100%; text-align: center; }
.nav__mobile .btn--primary { color: #1e2124; }
.nav__mobile .btn--primary:hover { color: #1e2124; }

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav { height: auto; }
  .nav__inner { height: var(--nav-h); }
}

/* ── Footer ── */
.footer {
  background: var(--navy-dk);
  color: var(--grey-lt);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__brand img {
  height: 36px;
  background: var(--white);
  border-radius: 4px;
  padding: 2px 5px;
  margin-bottom: 0.75rem;
}
.footer__brand p { font-size: 0.9rem; max-width: 280px; }
.footer__nav h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer__nav ul { list-style: none; }
.footer__nav li { margin-bottom: 0.4rem; }
.footer__nav a { color: var(--grey-lt); font-size: 0.9rem; }
.footer__nav a:hover { color: var(--teal-lt); text-decoration: none; }
.footer__contact h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer__contact a { color: var(--teal-lt); font-size: 0.9rem; display: block; margin-bottom: 0.35rem; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .footer__inner { grid-template-columns: 1.8fr 1fr 1.2fr; }
}

/* ── Cards ── */
.card {
  background: var(--navy-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: rgba(165,150,240,0.25); }
.card__accent {
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1.75rem -1.75rem 1.5rem;
}
.card__number {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Trebuchet MS', sans-serif;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.card__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.card h3 { color: var(--white); }
.card blockquote { font-style: italic; color: var(--grey); font-size: 0.97rem; }

/* ── Service cards ── */
.service-card {
  background: var(--navy-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: rgba(165,150,240,0.25); }
.service-card__header {
  padding: 1.1rem 1.5rem;
  color: var(--white);
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}
.service-card__body { padding: 1.5rem; flex: 1; }
.service-card__bullets { list-style: none; margin-bottom: 1.25rem; }
.service-card__bullets li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--grey);
}
.service-card__bullets li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}
.service-card__footer {
  padding: 0.7rem 1.5rem;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--grey-lt);
  border-top: 1px solid var(--border);
}

/* ── Sprint cards ── */
.sprint-card {
  background: var(--navy-dk);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.sprint-card__top { height: 4px; }
.sprint-card__body { padding: 1.5rem; flex: 1; }
.sprint-card__title {
  color: var(--white);
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.sprint-card__badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.sprint-card__list { list-style: none; margin-bottom: 0; }
.sprint-card__list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--grey-lt);
}
.sprint-card__list li::before {
  content: '›';
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.55;
  color: var(--teal-lt);
}
.sprint-card__outcome {
  padding: 0.8rem 1.5rem;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--white);
}

/* ── Why cards ── */
.why-card {
  background: var(--navy-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal);
  transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); border-left-color: var(--teal-lt); }
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--white); }
.why-card p { font-size: 0.95rem; margin: 0; }

/* ── Step process ── */
.steps {
  display: grid;
  gap: 1.5rem;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy-dk);
  font-weight: 800;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step__content h3 { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--white); }
.step__content h4 { color: var(--white); margin-bottom: 0.2rem; }
.step__content p { font-size: 0.95rem; margin: 0; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ── Timeline ── */
.timeline {
  display: grid;
  gap: 1.25rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: start;
}
.timeline-item__label {
  background: var(--navy-md);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
}
.timeline-item:nth-child(odd) .timeline-item__label {
  background: rgba(165,150,240,0.18);
  border-color: rgba(165,150,240,0.35);
  color: var(--teal-lt);
}
.timeline-item__content h4 { color: var(--white); margin-bottom: 0.2rem; font-size: 1rem; }
.timeline-item__content p { font-size: 0.93rem; margin: 0; }
@media (min-width: 640px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, 1fr); }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item__label { min-height: 52px; display: flex; align-items: center; justify-content: center; }
}

/* ── Hero ── */
.hero {
  background: var(--navy-dk);
  color: var(--white);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.06;
  pointer-events: none;
}
.hero__eyebrow { color: var(--teal-lt); margin-bottom: 1rem; }
.hero__title { color: var(--white); margin-bottom: 1.25rem; }
.hero__sub { font-size: 1.15rem; color: var(--grey-lt); max-width: 620px; margin-bottom: 2rem; }
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.hero__pill {
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--navy-dk);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.65rem; }
.page-hero p { color: var(--grey-lt); font-size: 1.1rem; max-width: 560px; margin: 0; }

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dk) 0%, #272040 100%);
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { color: var(--grey-lt); max-width: 580px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-section__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Scenario cards ── */
.scenario-card {
  background: var(--navy-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.scenario-tag {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.scenario-grid {
  display: grid;
  gap: 1.25rem;
}
.scenario-col-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.scenario-col h4 { color: var(--white); }
.scenario-col p { font-size: 0.95rem; margin: 0; }
@media (min-width: 768px) { .scenario-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Contact cards ── */
.contact-card {
  background: var(--navy-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-card:hover { border-color: rgba(165,150,240,0.3); box-shadow: var(--shadow); }
.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(165,150,240,0.12);
  border: 1px solid rgba(165,150,240,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.4rem;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--white); }
.contact-card p { font-size: 0.95rem; margin-bottom: 1.25rem; }
.contact-card a.btn { display: inline-block; }

/* ── About split ── */
.about-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.about-split__avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(165,150,240,0.12);
  border: 3px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1.5rem;
}
.about-split__creds { list-style: none; margin-top: 1rem; }
.about-split__creds li {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.about-split__creds li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
@media (min-width: 860px) {
  .about-split { grid-template-columns: 1fr 1.6fr; }
}

/* ── Stat boxes ── */
.stat-box {
  background: rgba(165,150,240,0.08);
  border: 1px solid rgba(165,150,240,0.22);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-box__num {
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--teal);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-box__label { font-size: 0.88rem; color: var(--grey-lt); }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  vertical-align: middle;
}
