/* McBirney Terrace — Fractional CTO Practice
   Shared stylesheet · All pages */

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

:root {
  --navy:        #0D1B2E;
  --navy-mid:    #1A2D44;
  --blue:        #0052CC;
  --blue-hover:  #0747A6;
  --blue-light:  #EBF2FF;
  --text:        #1E293B;
  --text-muted:  #64748B;
  --text-light:  #94A3B8;
  --bg:          #FFFFFF;
  --bg-alt:      #F8FAFC;
  --bg-alt2:     #F1F5F9;
  --border:      #E2E8F0;
  --border-mid:  #CBD5E1;
  --green:       #16A34A;
  --amber:       #B45309;
  --gold:        #92660A;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Navigation ─── */
.site-nav {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.site-nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-nav__brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.site-nav__logo {
  height: 44px;
  width: auto;
  display: block;
}
.site-nav__links {
  display: flex;
  gap: 0;
  list-style: none;
}
.site-nav__links a {
  display: block;
  padding: 0 1rem;
  height: 68px;
  line-height: 68px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav__links a:hover { color: var(--text); }
.site-nav__links a.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}
.site-nav__links li:last-child {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}
.site-nav__cta {
  display: inline-block !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  background: var(--blue);
  color: #FFFFFF !important;
  border-radius: 5px;
  border-bottom: none !important;
  line-height: 1.4 !important;
  height: auto !important;
  transition: background 0.15s !important;
}
.site-nav__cta:hover { background: var(--blue-hover) !important; color: #FFFFFF !important; }

/* ─── Hero ─── */
.hero {
  background: var(--navy);
  padding: 5rem 2rem 5.5rem;
  text-align: left;
}
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A9FFF;
  margin-bottom: 1.2rem;
}
.hero__headline {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  max-width: 680px;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  padding: 3rem 2rem;
}
.page-hero__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A9FFF;
  margin-bottom: 0.75rem;
}
.page-hero__title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.page-hero__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  line-height: 1.65;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary {
  background: var(--blue);
  color: #FFFFFF;
}
.btn--primary:hover { background: var(--blue-hover); color: #FFFFFF; }
.btn--outline {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-dark {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn--outline-dark:hover { background: var(--blue-light); }

/* ─── Sections ─── */
.section { padding: 4rem 2rem; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); }
.section--tight { padding: 3rem 2rem; }

.section__header { margin-bottom: 2.5rem; }
.section__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.section__title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.section__title--light { color: #FFFFFF; }
.section__intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section__intro--light { color: rgba(255,255,255,0.6); }

/* ─── Service Cards ─── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  border-top: 3px solid var(--blue);
  transition: box-shadow 0.15s;
}
.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.service-card--s2 { border-top-color: var(--green); }
.service-card--s3 { border-top-color: var(--amber); }
.service-card__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.service-card--s2 .service-card__label { color: var(--green); }
.service-card--s3 .service-card__label { color: var(--amber); }
.service-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.service-card__meta {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}
.service-card__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.service-card__link:hover { text-decoration: underline; }

/* ─── Two-col prose ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col--wide { grid-template-columns: 3fr 2fr; }

/* ─── Comparison boxes ─── */
.compare-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.compare-box__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.compare-box__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.compare-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  align-items: flex-start;
}
.compare-item:last-child { border-bottom: none; }
.compare-item__icon { flex-shrink: 0; font-size: 0.8rem; margin-top: 2px; }
.compare-item__icon--x { color: #DC2626; }
.compare-item__icon--check { color: var(--green); }
.compare-item__text { color: var(--text-muted); line-height: 1.5; }

/* ─── Prose ─── */
.prose p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose p strong { color: var(--text); }
.prose--large p { font-size: 1.1rem; }

/* ─── Divider ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--navy);
  padding: 4rem 2rem;
  text-align: center;
}
.cta-banner__title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.cta-banner__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.75rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ─── Service detail (services page) ─── */
.service-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.service-block__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.service-block__header--s1 { background: #EBF4FF; border-left: 4px solid var(--blue); }
.service-block__header--s2 { background: #ECFDF5; border-left: 4px solid var(--green); }
.service-block__header--s3 { background: #FFFBEB; border-left: 4px solid var(--amber); }
.service-block__num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}
.service-block__header--s1 .service-block__num { color: var(--blue); background: var(--bg); border: 1px solid #BDD7FF; }
.service-block__header--s2 .service-block__num { color: var(--green); background: var(--bg); border: 1px solid #A7F3D0; }
.service-block__header--s3 .service-block__num { color: var(--amber); background: var(--bg); border: 1px solid #FDE68A; }
.service-block__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.service-block__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
  font-weight: 500;
}
.service-block__body {
  background: var(--bg);
  padding: 1.75rem;
}
.service-block__body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.service-block__body p strong { color: var(--text); }

/* Deliverable list */
.deliverable-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.deliverable-list li {
  padding: 0.45rem 0 0.45rem 1.3rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg-alt2);
  line-height: 1.55;
}
.deliverable-list li:last-child { border-bottom: none; }
.deliverable-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.75rem;
  top: 0.5rem;
}

/* Format row */
.format-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  margin-top: 1.25rem;
}
.format-cell {
  padding: 0.9rem 1.1rem;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
}
.format-cell:last-child { border-right: none; }
.format-cell__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}
.format-cell__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.format-cell__note { font-size: 0.75rem; color: var(--text-light); }

/* Phase columns */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.phase-col {
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue);
  border-radius: 7px;
  padding: 1rem 1.1rem;
  background: var(--bg-alt);
}
.phase-col--c2 { border-top-color: var(--green); }
.phase-col--c3 { border-top-color: var(--amber); }
.phase-col__num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.15rem;
}
.phase-col--c2 .phase-col__num { color: var(--green); }
.phase-col--c3 .phase-col__num { color: var(--amber); }
.phase-col__name { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.1rem; }
.phase-col__dur { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.6rem; }
.phase-col__items { list-style: none; padding: 0; }
.phase-col__items li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.phase-col__items li:last-child { border-bottom: none; }
.phase-col__items li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-light);
  font-size: 0.7rem;
  top: 0.35rem;
}

/* ─── About / Outcomes ─── */
.outcome-list { list-style: none; padding: 0; }
.outcome-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.outcome-item:last-child { border-bottom: none; }
.outcome-item__icon {
  width: 22px;
  height: 22px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--green);
  margin-top: 1px;
}
.outcome-item__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.outcome-item__text strong { color: var(--text); }

/* Bio block */
.bio-block {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.bio-block__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.02em;
}

/* Tagline pull-quote */
.tagline-block {
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
}
.tagline-block__text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* Contact details */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 1rem 1.25rem;
}
.contact-item__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}
.contact-item__value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}
.contact-item__value a { color: var(--blue); text-decoration: none; }
.contact-item__value a:hover { text-decoration: underline; }

/* ─── Footer ─── */
.site-footer {
  background: var(--navy);
  padding: 2.5rem 2rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}
.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.25rem;
}
.site-footer__brand {
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}
.site-footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.site-footer__links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.site-footer__links a:hover { color: rgba(255,255,255,0.7); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__legal {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}
.site-footer__legal a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 0.78rem;
}
.site-footer__legal a:hover { color: rgba(255,255,255,0.6); }
.site-footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .container, .section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero, .page-hero, .cta-banner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .service-grid { grid-template-columns: 1fr; }
  .two-col, .two-col--wide { grid-template-columns: 1fr; gap: 2rem; }
  .phase-grid { grid-template-columns: 1fr; }
  .format-row { grid-template-columns: 1fr 1fr; }
  .service-block__meta { display: none; }
  .bio-block { flex-direction: column; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-nav__brand-sub { display: none; }
}
@media (max-width: 500px) {
  .site-nav__links { gap: 0; }
  .site-nav__links a { padding: 0 0.6rem; font-size: 0.82rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .format-row { grid-template-columns: 1fr; }
}
