/*
 * Shared styles for /services pages. Tokens and components are copied from
 * the inline styles in index.html and valuations.html so these pages match
 * the rest of the site; keep them in sync if the design tokens change.
 */
:root {
  --navy-900: #0f2a4d;
  --navy-800: #163c66;
  --navy-700: #24507f;
  --navy-050: #eef2f7;
  --gold: #f0b93e;
  --gold-dark: #d99f24;
  --ink: #16181c;
  --paper: #ffffff;
  --mist: #f5f5f3;
  --mist-200: #ececea;
  --line: #e3e3df;
  --text: #2a2d33;
  --text-muted: #686c72;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 77, 0.07), 0 1px 1px rgba(15, 42, 77, 0.04);
  --shadow-md: 0 12px 28px rgba(15, 42, 77, 0.12);
  --maxw: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); }
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .wrap { padding: 0 20px; }
}
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-top: 10px; }
.section-head p.lede { margin-top: 14px; color: var(--text-muted); font-size: 1.05rem; }
.text-link { color: var(--navy-800); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.text-link:hover { color: var(--navy-900); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Nav ---------- */
header.nav { position: sticky; top: 0; z-index: 40; background: var(--mist); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 40px; width: auto; }
.footer-logo { background: #fff; padding: 10px 18px; border-radius: var(--radius-sm); }
.footer-logo-img { height: 32px; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { text-decoration: none; font-size: 0.94rem; font-weight: 500; color: var(--text); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-links a.active { border-bottom-color: var(--navy-900); font-weight: 600; }
.nav-links a:hover { color: var(--navy-800); }
.nav-item { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none; padding: 0;
  padding-bottom: 4px; font: inherit; font-size: 0.94rem; font-weight: 500; color: var(--text);
  cursor: pointer; border-bottom: 2px solid transparent;
}
.nav-dropdown-toggle:hover { color: var(--navy-800); }
.nav-dropdown-toggle svg { transition: transform 0.15s ease; }
.nav-item.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 0; min-width: 220px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.nav-item.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 500; color: var(--text); text-decoration: none; border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--mist); color: var(--navy-800); }
.nav-dropdown-menu a.active { color: var(--navy-900); font-weight: 700; background: var(--navy-050); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none;
}
.icon-btn:hover { border-color: var(--navy-800); color: var(--navy-800); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); align-items: center; justify-content: center; background: transparent; cursor: pointer; color: var(--text); }
  /* Mobile menu: the hamburger opens the same links as a stacked panel */
  header.nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--mist); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 8px 20px 16px; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  header.nav.menu-open .nav-links > a,
  header.nav.menu-open .nav-dropdown-toggle { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  header.nav.menu-open .nav-links a.active { border-bottom-color: var(--line); }
  header.nav.menu-open .nav-dropdown-toggle svg { display: none; }
  header.nav.menu-open .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; background: transparent; padding: 4px 0 8px 12px; min-width: 0;
  }
}

/* ---------- Page hero ---------- */
.page-hero { background: var(--navy-900); color: #fff; padding: 88px 0 100px; }
@media (max-width: 720px) { .page-hero { padding: 48px 0 64px; } }
.page-hero .hero-inner { max-width: 720px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; margin-top: 14px; }
.page-hero p.lede { margin-top: 18px; color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 62ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 28px; }
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: rgba(255,255,255,0.9); }

/* ---------- Prose (definition blocks) ---------- */
.prose-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; gap: 20px; } }
.prose-grid h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-top: 10px; }
.prose p { color: var(--text); font-size: 1.04rem; line-height: 1.7; }
.prose p + p { margin-top: 18px; }

/* ---------- Feature grid ---------- */
.feat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .feat-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feat-grid-3 { grid-template-columns: 1fr; } }
.feat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; transition: box-shadow 0.15s ease, transform 0.15s ease; scroll-margin-top: 96px; }
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--navy-050); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--navy-800); }
.feat-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.feat-card p { margin-top: 10px; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Checklist ---------- */
.issues-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 36px; box-shadow: var(--shadow-sm); }
@media (max-width: 720px) { .issues-card { padding: 26px 22px; } }
.issues-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
@media (max-width: 720px) { .issues-grid { grid-template-columns: 1fr; } }
.issue-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.96rem; color: var(--text); }
.issue-item svg { flex-shrink: 0; margin-top: 3px; color: var(--navy-800); }
.issues-note { margin-top: 24px; font-size: 0.86rem; color: var(--text-muted); font-style: italic; text-align: center; }

/* ---------- Statement band ---------- */
.statement { background: var(--navy-900); color: #fff; text-align: center; padding: 80px 0; }
.statement .wrap { max-width: 820px; }
.statement h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.statement p { margin-top: 22px; color: rgba(255,255,255,0.78); font-size: 1.05rem; }
.statement p + p { margin-top: 14px; }
@media (max-width: 720px) { .statement { padding: 48px 0; } }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } }
.process-card { position: relative; padding: 30px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); }
.process-card .step-no {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: var(--radius-sm); background: var(--navy-900); color: #fff; font-weight: 800; font-size: 0.95rem;
  margin-bottom: 18px; font-variant-numeric: tabular-nums;
}
.process-card h3 { font-size: 1.05rem; }
.process-card p { margin-top: 10px; color: var(--text-muted); font-size: 0.94rem; }
@media (min-width: 861px) {
  .process-card:not(:last-child)::after {
    content: ""; position: absolute; top: 47px; right: -28px; width: 28px; height: 1px; background: var(--line);
  }
}

/* ---------- Ideal customer ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .fit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-card { background: var(--paper); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--line); }
.fit-card .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); }
.fit-card p.name { margin-top: 8px; font-weight: 700; font-size: 1.02rem; }
.fit-card p.desc { margin-top: 8px; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Link cards (service directory, related services) ---------- */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .link-grid { grid-template-columns: 1fr; } }
.link-card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 28px; text-decoration: none; color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.link-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--navy-700); }
.link-card .feat-icon { margin-bottom: 18px; }
.link-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.link-card p { margin-top: 10px; color: var(--text-muted); font-size: 0.94rem; flex-grow: 1; }
.link-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }
.link-card li + li { margin-top: 4px; }
.link-card .link-arrow { margin-top: 18px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-800); }
.link-card.featured { border-top: 3px solid var(--gold); }

/* ---------- Platform list ---------- */
.platform-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.platform-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 0.92rem; font-weight: 600; color: var(--navy-900); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--text);
}
.faq-btn .plus { width: 24px; height: 24px; border-radius: 50%; background: var(--navy-050); flex-shrink: 0; position: relative; }
.faq-btn .plus::before, .faq-btn .plus::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--navy-800); transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.faq-btn .plus::before { width: 10px; height: 1.5px; }
.faq-btn .plus::after { width: 1.5px; height: 10px; }
details.faq-item[open] .faq-btn .plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-panel { padding: 0 22px 20px; color: var(--text-muted); font-size: 0.94rem; max-width: 64ch; }
details.faq-item summary { list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--navy-900); color: #fff; border-radius: var(--radius-md); padding: 56px 48px; text-align: center; }
@media (max-width: 720px) { .final-cta { padding: 40px 24px; } }
.final-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 34ch; margin: 0 auto; }
.final-cta .sub { margin-top: 14px; color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 56ch; margin-inline: auto; }
.final-cta .btn { margin-top: 28px; }

/* ---------- Disclaimer ---------- */
.disclaimer { max-width: 760px; margin: 0 auto; text-align: center; font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 44px 0 28px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 14px 26px; font-size: 0.88rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.78rem; color: rgba(255,255,255,0.4); }

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