/* ============================================================
   Suite Advisory — shared stylesheet
   Palette, type, layout, components. Edit tokens below to
   restyle the whole site in one place.
   ============================================================ */

:root {
  /* Color */
  --ink:        #0E1F2B;   /* primary dark (finance / trust) */
  --ink-700:    #15303F;
  --ink-600:    #1E3E50;
  --paper:      #F4F5F3;   /* cool off-white page bg */
  --paper-2:    #EBEEE9;   /* alt light section */
  --white:      #FFFFFF;
  --ember:      #EA7826;   /* brand accent — use sparingly */
  --ember-600:  #D2661A;
  --ember-100:  #FBE7D5;
  --text:       #23323C;   /* body text on light */
  --text-muted: #5E6E79;
  --line:       #DBDED9;   /* hairlines on light */
  --line-dark:  rgba(255,255,255,0.12);
  --on-dark:    #E7EDF0;
  --on-dark-mut:#9DB1BD;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* Space */
  --wrap: 1160px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 4px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--text); line-height: 1.55; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--alt { background: var(--paper-2); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 12px; height: 13px;
  background: var(--ember);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}
.section--dark .eyebrow { color: var(--ember); }

.section-title { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; }
.section-intro { max-width: 62ch; color: var(--text-muted); font-size: 1.125rem; }
.section--dark .section-intro { color: var(--on-dark-mut); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-600); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.section--dark .btn-ghost { color: var(--on-dark); }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.section--dark .btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-arrow::after { content: "→"; font-family: var(--font-body); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.15rem; color: var(--ink); }
.brand svg { width: 26px; height: 29px; }
.brand b { color: var(--ember); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.95rem; color: var(--text); position: relative; padding: 0.25rem 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ember);
}
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero-lattice { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.hero .wrap { position: relative; padding-block: clamp(4.5rem, 11vw, 9rem); }
.hero-inner { max-width: 46rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero .lead { color: var(--on-dark-mut); max-width: 44ch; margin-top: 1.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-trust {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--on-dark-mut); text-transform: uppercase;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust span::before { content:""; width:8px; height:9px; background: var(--ember); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* ---------- Value cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(14,31,43,.4); border-color: color-mix(in srgb, var(--ember) 40%, var(--line)); }
.card .hexmark {
  width: 34px; height: 38px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: var(--ember-100); color: var(--ember-600);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }

/* ---------- Credibility band ---------- */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.cred { background: var(--ink); padding: 1.6rem 1.4rem; }
.cred dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); margin-bottom: 0.5rem; }
.cred dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: #fff; line-height: 1.15; letter-spacing: -0.01em; }

/* ---------- Split (about / founder highlight) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--narrow { grid-template-columns: 0.9fr 1.1fr; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Honeycomb (services overview) ---------- */
.honeycomb {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin: 3rem auto 0; max-width: 820px;
}
.hex-link { display: block; }
.hex {
  width: 232px; height: 268px;
  background: var(--white); border: 1px solid var(--line);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 2.4rem;
  transition: background .2s ease, transform .2s ease;
}
.hex .n { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ember); margin-bottom: 0.6rem; }
.hex h3 { font-size: 1.18rem; margin: 0 0 0.35rem; }
.hex p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
.hex-link:hover .hex { background: var(--ink); transform: translateY(-4px); }
.hex-link:hover .hex h3 { color: #fff; }
.hex-link:hover .hex p { color: var(--on-dark-mut); }
/* pull alternate rows into a honeycomb offset on wide screens */
@media (min-width: 800px) {
  .honeycomb { gap: 0; row-gap: 0; }
  .hex-link { margin: -34px 7px; }
  .hex-link:nth-child(4), .hex-link:nth-child(5), .hex-link:nth-child(6) { transform: translateX(123px); }
  .honeycomb { padding-bottom: 34px; }
}

/* ---------- Service detail ---------- */
.svc-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.svc-aside { position: sticky; top: 92px; }
.svc-aside ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.svc-aside li { margin: 0; }
.svc-aside a { display: block; padding: 0.6rem 0.9rem; border-left: 2px solid var(--line); color: var(--text-muted); font-size: 0.95rem; transition: all .2s ease; }
.svc-aside a:hover { color: var(--ink); border-color: var(--ember); }
.svc-aside a[aria-current="page"] { color: var(--ink); border-color: var(--ember); font-weight: 500; background: var(--white); }
.svc-body h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.svc-body .lead { margin-bottom: 1.5rem; }
.svc-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2.9rem 0 0.9rem; }
.svc-body h3 { font-size: 1.12rem; margin: 1.6rem 0 0.35rem; }
.svc-body p a { color: var(--ember-600); border-bottom: 1px solid var(--ember-100); }
.svc-body p a:hover { border-color: var(--ember); }
.feature-list li strong { color: var(--ink); font-weight: 600; }
.svc-faq { margin-top: 1rem; display: grid; gap: 0.55rem; }
.svc-faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 0 1.1rem; }
.svc-faq summary { cursor: pointer; padding: 1rem 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: "+"; font-family: var(--font-body); color: var(--ember); font-size: 1.4rem; line-height: 1; flex: none; }
.svc-faq details[open] summary::after { content: "–"; }
.svc-faq details[open] summary { border-bottom: 1px solid var(--line); }
.svc-faq details p { padding: 0.9rem 0; margin: 0; color: var(--text-muted); }
.feature-list { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 0.9rem; }
.feature-list li { position: relative; padding-left: 1.9rem; color: var(--text); }
.feature-list li::before { content:""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 13px; background: var(--ember); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-100); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.contact-card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 2rem 1.9rem; }
.contact-card h3 { color: #fff; }
.contact-card a { color: #fff; border-bottom: 1px solid var(--ember); }
.contact-line { display: flex; gap: 0.75rem; margin-bottom: 1.1rem; font-size: 0.98rem; color: var(--on-dark-mut); }
.contact-line b { color: #fff; font-weight: 500; display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.15rem; }
.contact-line .hexdot { flex: none; width: 14px; height: 15px; margin-top: 0.2rem; background: var(--ember); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 24ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-mut); padding-block: 3.5rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-top .brand { color: #fff; margin-bottom: 1rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--on-dark-mut); font-size: 0.95rem; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.82rem; font-family: var(--font-mono); letter-spacing: 0.03em;
}
.social { display: flex; gap: 0.75rem; }
.social a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--on-dark-mut); transition: all .2s ease; }
.social a:hover { color: #fff; border-color: var(--ember); }

/* ---------- Reveal on scroll (progressive; content shows without JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem; transform: translateY(-120%);
    transition: transform .3s ease; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta .btn-desktop { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 4px; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); margin-inline: auto; transition: .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  .cards { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr 1fr; }
  .split, .split--narrow { grid-template-columns: 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .svc-aside ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* honeycomb → simple stacked cards on mobile */
  .honeycomb { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
  .hex-link { margin: 0 !important; transform: none !important; }
  .hex { width: 100%; height: auto; clip-path: none; border-radius: var(--radius); align-items: flex-start; text-align: left; padding: 1.4rem 1.5rem; }
}
@media (max-width: 480px) {
  .creds { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
