:root {
  --blue: #1B3E8C;
  --blue-dark: #122a63;
  --blue-light: #3A5FC0;
  --orange: #F7941D;
  --orange-light: #FDB74A;
  --cream: #F7F8FA;
  --text-dark: #1a1a1a;
  --font-head: "Poppins", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue);
  margin: 0 0 0.5em;
}

a { color: var(--blue); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  background: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: 80px;
  object-fit: contain;
}

.brand-text {
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

nav.main-nav a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--orange);
  border-color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blue);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 60%, #3a2a63 100%);
  color: #fff;
  padding: 72px 0 80px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.hero p.tagline {
  color: var(--orange-light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero p.lede {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: #dbe2f5;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-orange {
  background: var(--orange);
  color: #fff;
  border: none;
}

.btn-orange:hover { box-shadow: 0 6px 18px rgba(247,148,29,0.4); }

.btn-outline {
  border: 2px solid var(--orange-light);
  color: #fff;
  background: transparent;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 64px 0; }

.section-alt { background: #fff; }

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
  color: #444;
}

/* Service / feature grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-top: 3px solid var(--orange);
  border-radius: 8px;
  padding: 28px 22px;
  text-align: left;
}

.feature-card .icon {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: #555;
  margin: 0;
}

/* Nav / topic cards */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.nav-card {
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  padding: 36px 28px;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--blue-light);
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(27,62,140,0.3);
}

.nav-card h3 {
  color: var(--orange-light);
  font-size: 1.25rem;
}

.nav-card p {
  color: #d3dcf2;
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.nav-card .arrow {
  color: var(--orange-light);
  font-weight: 700;
}

/* Page header (non-home pages) */
.page-hero {
  background: var(--blue);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 { color: #fff; }
.page-hero p { color: var(--orange-light); font-weight: 600; margin: 0; }

/* What We Do (home) */
.what-we-do {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .what-we-do { grid-template-columns: 1fr; }
}

.what-we-do-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 18px;
}

.what-we-do-copy p {
  color: #444;
  margin-bottom: 18px;
}

.what-we-do-visual {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 55%, #3a2a63 100%);
  border-radius: 14px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow: 0 16px 40px rgba(18,42,99,0.25);
}

.visual-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.visual-stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange-light);
  line-height: 1;
  flex-shrink: 0;
  min-width: 64px;
}

.visual-stat-label {
  color: #dbe2f5;
  font-size: 0.92rem;
}

.visual-stat:not(:last-child) {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Content blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

@media (max-width: 800px) {
  .content-block { grid-template-columns: 1fr; }
}

.content-block h2 { margin-bottom: 14px; }

ul.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  font-size: 0.98rem;
}

ul.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  padding: 28px;
}

.testimonial-card p.quote {
  font-style: italic;
  color: #333;
  margin-bottom: 14px;
}

.testimonial-card .attribution {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
}

/* FAQ accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--orange);
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  color: #444;
  font-size: 0.96rem;
}

/* AI chat widget */
.chat-widget {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  overflow: hidden;
}

.chat-modes {
  display: flex;
  border-bottom: 1px solid #e2e6ee;
  background: #fafbfd;
}

.chat-modes button {
  flex: 1;
  padding: 14px 10px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: #667;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.chat-modes button.active {
  color: var(--blue);
  border-bottom-color: var(--orange);
  background: #fff;
}

.chat-log {
  max-height: 420px;
  min-height: 180px;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.94rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
}

.chat-msg.assistant {
  align-self: flex-start;
  background: #f2f4f9;
  color: var(--text-dark);
  border: 1px solid #e2e6ee;
}

.chat-msg.loading { color: #888; font-style: italic; }

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid #e2e6ee;
  background: #fafbfd;
}

.chat-input-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.chat-input-row button {
  border: none;
  cursor: pointer;
}

.chat-empty-hint {
  color: #888;
  font-size: 0.88rem;
  text-align: center;
  padding: 6px 22px 0;
}

.chat-disclaimer {
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  padding: 10px 22px 16px;
}

/* Contact / form */
.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  border: 1px solid #e2e6ee;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-group textarea { min-height: 130px; resize: vertical; }

.badge-soon {
  display: inline-block;
  background: #fdeed4;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Portal */
.portal-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
}

.portal-card .icon-lock {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.portal-files {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  padding: 32px;
}

.portal-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e6ee;
}

.portal-account-bar span {
  font-weight: 600;
  color: var(--blue);
}

.btn-outline-dark {
  background: transparent;
  border: 1px solid #c7cede;
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline-dark:hover { background: #f2f4f9; }

.portal-breadcrumb {
  font-size: 0.9rem;
  color: #667;
  margin-bottom: 18px;
}

.portal-breadcrumb a { color: var(--blue); text-decoration: none; }
.portal-breadcrumb a:hover { text-decoration: underline; }
.portal-breadcrumb .current { font-weight: 700; color: var(--text-dark); }
.portal-breadcrumb .sep { color: #aab; }

.portal-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #778;
  padding: 10px 8px;
  border-bottom: 2px solid #e2e6ee;
}

.portal-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eef0f5;
  font-size: 0.95rem;
}

.portal-folder-link { cursor: pointer; color: var(--blue); font-weight: 600; }
.portal-folder-link:hover { text-decoration: underline; }

/* Footer */
footer.site-footer {
  background: var(--blue-dark);
  color: #b9c2db;
  padding: 48px 0 24px;
  text-align: center;
}

footer.site-footer img { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); }

footer.site-footer .tagline {
  color: var(--orange-light);
  font-weight: 600;
  margin-bottom: 24px;
}

footer.site-footer nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

footer.site-footer nav a {
  color: #d8dff2;
  text-decoration: none;
  font-size: 0.88rem;
}

footer.site-footer nav a:hover { color: var(--orange-light); }

footer.site-footer .contact-line {
  font-size: 0.85rem;
  margin-bottom: 18px;
}

footer.site-footer .contact-line a { color: #d8dff2; }

footer.site-footer .copyright {
  font-size: 0.78rem;
  color: #7f88a3;
  margin-top: 20px;
}

/* Mobile nav */
@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Team */
.team-tier-label {
  text-align: center;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 48px 0 20px;
}

.team-tier-label.first { margin-top: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.team-card {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  padding: 32px 26px;
  text-align: center;
}

.avatar-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--blue) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
}

.avatar-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
  object-fit: cover;
  border: 3px solid var(--orange);
}

.team-card .role {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.team-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.team-card ul li {
  font-size: 0.88rem;
  color: #555;
  padding: 5px 0 5px 22px;
  position: relative;
}

.team-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* PMS / QBO split panels */
.pms-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 800px) {
  .pms-split { grid-template-columns: 1fr; }
}

.pms-panel {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  padding: 32px 32px 36px;
}

.pms-panel:nth-child(2) { border-top-color: var(--orange); }

.pms-panel h3 { margin-bottom: 14px; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pill-tag {
  background: #fff;
  border: 1px solid var(--orange);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

.pill-tag.more {
  border-style: dashed;
  border-color: #c7cede;
  color: #777;
}

.pms-panel ul.check-list li .nc-tag {
  display: block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.78rem;
  margin-top: 2px;
}

/* Operational accounting highlight */
.split-highlight {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .split-highlight { grid-template-columns: 1fr; }
}

.split-highlight .big-question {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--blue);
  line-height: 1.3;
  margin-bottom: 18px;
}

.split-highlight .big-question .accent { color: var(--orange); }

.split-highlight p.lead-copy {
  color: #444;
  font-size: 1rem;
}

.metric-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metric-list li {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.metric-list li strong { color: var(--blue); }

/* Fractional leadership cards */
.fractional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.fractional-card {
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  padding: 36px 32px;
}

.fractional-card:nth-child(2) {
  background: linear-gradient(135deg, var(--orange) 0%, #c0630b 100%);
}

.fractional-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.fractional-card .subhead {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 18px;
}

.fractional-card ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.fractional-card ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.92rem;
}

.fractional-card ul li::before {
  content: "\2192";
  position: absolute;
  left: 0;
}

/* Referral card */
.referral-card {
  background: #fafbfd;
  border: 1px dashed #c7cede;
  border-radius: 8px;
  padding: 28px 22px;
  text-align: left;
}

.referral-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.referral-card p { font-size: 0.92rem; color: #555; margin: 0 0 14px; }

/* Endorsement badge */
.endorsement-bar {
  position: relative;
  z-index: 5;
  text-align: center;
  margin-top: -26px;
  padding-bottom: 36px;
}

.endorsement-bar .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: 50px;
  padding: 16px 32px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
}

.endorsement-bar .badge-pill .star { color: var(--orange); font-size: 1.2rem; }

.endorsement-bar a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.endorsement-bar a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .endorsement-bar .badge-pill {
    font-size: 0.9rem;
    padding: 14px 20px;
    white-space: normal;
    text-align: center;
  }
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark) 0%, #241b3f 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 { color: var(--orange-light); }
.cta-band p { max-width: 720px; margin: 0 auto 32px; color: #d3dcf2; }
