/* =============================================================
   DEPARTMENT PAGES — SHARED STYLES
   Used by: coaches, marketers, owner-operator, cfo
   Load order: tokens.css → base.css → wirebar.css → nav.css
               → footer.css → buttons.css → dept-shared.css
               → dept-[page].css
   ============================================================= */

/* ── Base ──────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--rev-page);
  color: var(--rev-text-body);
  font-family: 'DM Sans', system-ui, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--rev-blue); outline-offset: 2px; }
a { text-decoration: none; }

/* ── Page container ─────────────────────────────────────────── */
.page { max-width: 1920px; margin: 0 auto; }

/* ── Section cards ──────────────────────────────────────────── */
.section {
  margin: 0 30px;
  background: #fff;
  box-shadow: var(--rev-shadow-card);
  overflow: hidden;
}
.section-pad {
  padding: clamp(36px, 3.5vw, 56px) clamp(28px, 5vw, 73px);
}
.section-dark {
  margin: 0 30px;
  background: var(--rev-navy-900);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.section-dark::before {
  content: "";
  position: absolute;
  right: -200px;
  top: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: var(--rev-blue-orb-15);
  filter: blur(60px);
  pointer-events: none;
}
.section + .section,
.section + .section-dark,
.section-dark + .section { border-top: 1px solid rgba(4, 18, 45, 0.08); }
.section-dark + .section-dark { border-top: 1px solid rgba(255, 255, 255, 0.06); }

@media (max-width: 860px) {
  .section,
  .section-dark { margin: 0 12px; }
}

/* ── Section groups ─────────────────────────────────────────── */
.section-group {
  margin: 25px 30px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--rev-shadow-card);
}
.section-group .section,
.section-group .section-dark { margin: 0; box-shadow: none; }

@media (max-width: 860px) {
  .section-group { margin: 16px 12px !important; border-radius: 0 !important; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin: 0 30px 25px;
  border-radius: 25px;
  overflow: hidden;
  background-color: var(--rev-navy-900);
  color: #fff;
  padding: 0 0 clamp(16px, 2vw, 28px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../images/hero-section-backgroud-blue-gradient.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(4, 18, 45, 0.82) 0%,
    rgba(4, 18, 45, 0.68) 35%,
    rgba(4, 18, 45, 0.35) 65%,
    rgba(4, 18, 45, 0.55) 100%
  );
  z-index: 1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 18, 45, 0.35) 0%,
    transparent 25%,
    transparent 75%,
    rgba(4, 18, 45, 0.25) 100%
  );
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(16px, 2vw, 28px) clamp(28px, 5vw, 72px) 0;
}
.hero-single-col { max-width: 1100px; }

@media (max-width: 860px) {
  .page { margin-top: 80px !important; }
  .hero { margin: 0 12px 16px !important; border-radius: 0 !important; }
  .hero-stats-band { margin: 12px 12px 0 !important; border-radius: 0 !important; width: calc(100% - 24px) !important; max-width: none !important; }
}

.cs-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--rev-navy-900);
  border: 2px solid var(--rev-border);
  overflow: hidden;
}

.cs-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Hero eyebrow ───────────────────────────────────────────── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rev-blue-300);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 32px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5c9767;
  animation: live-dot-pulse 1.4s infinite;
  flex-shrink: 0;
}
@keyframes live-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92, 151, 103, 0.6); }
  70%       { box-shadow: 0 0 0 6px rgba(92, 151, 103, 0); }
}

/* ── Hero typography ────────────────────────────────────────── */
.hero-title {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 1100px;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--rev-blue-300); }
.hero-lede {
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 780px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ── Hero stats band ────────────────────────────────────────── */
.hero-stats-band {
  margin: 25px 30px 0;
  background: #fff;
  border-radius: 25px;
  box-shadow: var(--rev-shadow-card);
  overflow: hidden;
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 73px);
}
.hero-stats-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-stats-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rev-text-muted);
  font-family: 'DM Mono', monospace;
  margin: 0;
}
.hero-stats-val {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  color: var(--rev-navy-900);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-stats-sub { font-size: 14px; color: var(--rev-text-muted); margin: 0; line-height: 1.4; }
.hero-stats-divider {
  width: 1px;
  height: 56px;
  background: var(--rev-line);
  margin: 0 clamp(24px, 4vw, 56px);
}

@media (max-width: 860px) {
  .hero-stats-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .hero-stats-divider { width: 100%; height: 1px; margin: 0; }
}

/* ── Section components ─────────────────────────────────────── */
.s-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rev-blue);
  font-family: 'DM Mono', monospace;
  margin-bottom: 20px;
}
.s-eyebrow-light { color: rgba(255, 255, 255, 0.8); }
.s-title {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.s-lede {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--rev-text-muted);
  max-width: 580px;
}
.s-lede-dark { color: rgba(255, 255, 255, 0.6); }
.s-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 800px) {
  .s-header { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Numbered list ──────────────────────────────────────────── */
.item-list { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.item-list-light { border-top: 1.5px solid var(--rev-navy-900); }
.list-item {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}
.list-item-light { border-bottom-color: rgba(4, 18, 45, 0.1); }
.list-item:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .list-item { grid-template-columns: 1fr; gap: 14px; }
}

.item-num {
  font-size: 44px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.item-num-light { color: rgba(4, 18, 45, 0.1); }
.item-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 6px 0;
  font-family: 'DM Mono', monospace;
}
.item-tag-alert { color: var(--rev-neg); }
.item-tag-signal { color: var(--rev-warn); }
.item-tag-pos { color: var(--rev-blue); }
.item-title { font-size: 20px; font-weight: 600; line-height: 1.2; color: #fff; margin: 0; }
.item-title-light { color: var(--rev-navy-900); }
.item-body { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.65); margin: 0; }
.item-body-light { color: var(--rev-text-muted); }
.item-status {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
  margin: 0;
}
.item-status-pos { color: var(--rev-blue-300); }
.item-status-neg { color: var(--rev-neg); }

/* ── Section footer quote ───────────────────────────────────── */
.section-footer-quote {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.section-footer-quote-light { border-top-color: rgba(4, 18, 45, 0.1); }
.footer-quote-text {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  max-width: 760px;
  margin: 0;
}
.footer-quote-text-light { color: var(--rev-navy-900); }
.link-cta-light {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.link-cta-light:hover { color: #fff; }

/* ── Moneyball form ─────────────────────────────────────────── */
.mb-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 860px) {
  .mb-grid { grid-template-columns: 1fr; gap: 36px; }
}

.mb-card {
  background: var(--rev-navy-900);
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  padding: 36px 32px;
}
/* ── Canonical form panel (matches home-services reference) ── */
.form-panel {
  background: #fff;
  color: var(--rev-navy-900);
  border-radius: var(--rev-radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(4,18,45,0.08);
  border: 1px solid rgba(4,18,45,0.05);
}
.form-panel-orb {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(75,133,234,0.15);
  filter: blur(60px);
  pointer-events: none;
}
.form-panel-inner { position: relative; z-index: 2; }
.form-panel-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.form-panel-label {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(4,18,45,0.5);
}
.form-panel-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--rev-navy-900);
}
.form-panel-sub {
  font-size: 14px;
  color: rgba(4,18,45,0.65);
  margin-bottom: 28px;
  font-weight: 400;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--rev-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(4,18,45,0.5);
  margin-bottom: 8px;
}
.form-label-optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(4,18,45,0.35);
}
.form-input,
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(4,18,45,0.15);
  color: var(--rev-navy-900);
  font-family: var(--rev-font-sans);
  font-size: 15px;
  font-weight: 400;
  padding: 10px 0;
  outline: none;
  transition: border-color var(--rev-dur);
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(4,18,45,0.35); }
.form-input:focus,
.form-select:focus { border-bottom-color: var(--rev-blue); }
.form-select option { background: #fff; color: var(--rev-navy-900); }
.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  background: var(--rev-blue);
  color: #fff;
  border: none;
  border-radius: var(--rev-radius-pill);
  font-family: var(--rev-font-sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--rev-dur);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.form-submit:hover { background: #0048c8; }
.form-footnote {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(4,18,45,0.5);
  margin-top: 12px;
  text-align: center;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rev-pos);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .form-submit { font-size: 13px; padding: 14px 16px; gap: 8px; white-space: nowrap; }
}

.mb-card-badge { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.mb-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rev-blue); }
.mb-badge-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'DM Mono', monospace;
}
.mb-card-title { font-size: 22px; font-weight: 600; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.mb-card-sub { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin: 0 0 24px; }
.mb-field { margin-bottom: 18px; }
.mb-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
  font-family: 'DM Mono', monospace;
}
.mb-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 0;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.mb-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.mb-input:focus { outline: none; border-bottom-color: var(--rev-blue); }
.mb-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 20px;
}
.mb-select option { background: var(--rev-navy-900); color: #fff; }
.mb-submit {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: var(--rev-blue);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.mb-submit:hover { background: var(--rev-blue-hover); }
.mb-fine {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin: 10px 0 0;
  text-align: center;
  font-family: 'DM Mono', monospace;
}
.mb-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.btn-mb-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--rev-navy-900);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-mb-light:hover { background: #1a2845; }
.btn-mb-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid rgba(4, 18, 45, 0.2);
  color: var(--rev-navy-900);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-mb-ghost-light:hover {
  background: rgba(4, 18, 45, 0.04);
  border-color: rgba(4, 18, 45, 0.4);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
}

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.faq-item { border-bottom: 1px solid rgba(4, 18, 45, 0.1); }
.faq-item:first-child { border-top: 2px solid var(--rev-navy-900); }
.faq-item:last-child { border-bottom: 2px solid var(--rev-navy-900); }
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  color: var(--rev-navy-900);
  gap: 16px;
}
.faq-icon {
  font-size: 26px;
  font-weight: 300;
  color: var(--rev-text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
details[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 48px 20px 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--rev-text-muted);
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
}

.cta-box {
  background: var(--rev-cta-gradient);
  color: #fff;
  border-radius: 20px;
  padding: 35px 35px 30px;
  box-shadow: 0 20px 50px rgba(0, 86, 235, 0.25);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(75, 133, 234, 0.4);
  filter: blur(40px);
}
.cta-box .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  position: relative;
}
.cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b85ea;
  box-shadow: 0 0 0 4px rgba(75, 133, 234, 0.3);
  animation: cta-pulse 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(75, 133, 234, 0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(75, 133, 234, 0); }
}
.cta-box h3 {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  position: relative;
}
.cta-box > p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px;
  position: relative;
}
.cta-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--rev-navy-900);
  font-size: 17px;
  font-weight: 500;
  padding: 16px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  position: relative;
}
.cta-button:hover { background: var(--rev-blue-25, #eef2ff); }
.cta-fine {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin: 14px 0 0;
  position: relative;
  letter-spacing: 0.01em;
}
