/* ==========================================================================
   KARNETT PARTNERS Brand System
   Deep Navy #1B2A4A | Navy Deep #0F1C33 | Navy Mid #223160
   Muted Gold #B8963E | Off White #F4F1EC | Warm White #FAFAFA
   Gray #EEECEA | Dark Gray #4A4A4A
   Georgia (display) + Montserrat (body)
   ========================================================================== */

:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1C33;
  --navy-mid: #223160;
  --gold: #B8963E;
  --gold-soft: rgba(184, 150, 62, 0.35);
  --off-white: #F4F1EC;
  --warm-white: #FAFAFA;
  --gray: #EEECEA;
  --dark-gray: #4A4A4A;
  --text-muted: #9BA5BE;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --max-w: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--off-white);
  background: var(--navy);
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: var(--navy-deep); }

/* ---------- Type ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; }

h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
h3 { font-size: clamp(21px, 2.4vw, 25px); line-height: 1.3; }

em, .em { font-style: italic; color: var(--gold); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 22px;
}

p { max-width: 64ch; }
.lead { font-size: clamp(17px, 2vw, 20px); font-weight: 300; line-height: 1.75; }

/* ---------- Signature gold rule ---------- */
.gold-rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent);
  max-width: var(--max-w);
  margin: 0 auto;
  opacity: 0.55;
}
.gold-rule.short { max-width: 72px; margin: 26px 0 0; background: var(--gold); opacity: 1; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head p { margin-top: 20px; color: var(--text-muted); }

.bg-deep { background: var(--navy-deep); }
.bg-light { background: var(--off-white); color: var(--dark-gray); }
.bg-light h2, .bg-light h3 { color: var(--navy); }
.bg-light .eyebrow { color: var(--gold); }
.bg-light .section-head p { color: var(--dark-gray); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn-ghost { background: transparent; color: var(--off-white); border-color: rgba(244,241,236,0.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.text-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  padding-bottom: 4px;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.text-link:hover::after { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 28, 51, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 150, 62, 0.18);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 40px; height: 40px;
  background: var(--navy-mid);
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold);
}
.brand-name { font-family: var(--serif); font-size: 19px; color: var(--off-white); line-height: 1.1; }
.brand-name span { display: block; font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a:not(.btn) {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--off-white);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-links .btn { min-height: 44px; padding: 10px 24px; font-size: 12px; }

.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--off-white); margin: 0 auto; transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 170px 0 120px;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(34, 49, 96, 0.85), transparent 65%),
    radial-gradient(900px 700px at 12% 90%, rgba(184, 150, 62, 0.07), transparent 60%),
    var(--navy-deep);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 500px at 85% 75%, rgba(184,150,62,0.05), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-60px, -40px, 0); } }

.hero h1 { max-width: 850px; margin-bottom: 30px; }
.hero .lead { max-width: 620px; margin-bottom: 44px; color: var(--off-white); opacity: 0.85; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats { padding: 80px 0; background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(184,150,62,0.25); border: 1px solid rgba(184,150,62,0.25); }
.stat { background: var(--navy); padding: 40px 30px; }
.stat-num { font-family: var(--serif); font-size: clamp(42px, 5vw, 58px); color: var(--gold); line-height: 1; }
.stat-num sup { font-size: 0.45em; top: -0.9em; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin: 14px 0 10px; }
.stat p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Cards (generic) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--navy-mid);
  border: 1px solid rgba(184, 150, 62, 0.18);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); }
.card h3 { margin-bottom: 18px; }
.card p { font-size: 15px; line-height: 1.75; color: rgba(244,241,236,0.78); }
.card .problem {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--off-white);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin-bottom: 22px;
}
.card .text-link { margin-top: auto; padding-top: 28px; align-self: flex-start; }
.card-icon { width: 44px; height: 1px; background: var(--gold); margin-bottom: 28px; }

/* ---------- Callouts ---------- */
.callout-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 64px; }
.callout {
  border: 1px solid var(--gold-soft);
  background: var(--navy-deep);
  padding: 40px 38px;
}
.callout h3 { font-size: 18px; color: var(--gold); margin-bottom: 16px; }
.callout p { font-size: 15px; color: rgba(244,241,236,0.8); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service { background: var(--warm-white); border: 1px solid var(--gray); padding: 48px 42px; color: var(--dark-gray); display: flex; flex-direction: column; transition: border-color 0.3s var(--ease); }
.service:hover { border-color: var(--gold); }
.service .role-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.service h3 { color: var(--navy); margin-bottom: 18px; font-size: 26px; }
.service p { font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.service .includes {
  font-size: 13px;
  line-height: 1.9;
  color: var(--dark-gray);
  border-top: 1px solid var(--gray);
  padding-top: 18px;
  margin: 10px 0 24px;
}
.service .includes strong { color: var(--navy); font-weight: 600; display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; }
.service .text-link { margin-top: auto; }

/* ---------- Process ---------- */
.phase {
  border: 1px solid rgba(184,150,62,0.2);
  background: var(--navy);
  margin-bottom: 16px;
}
.phase-head {
  width: 100%;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 30px 34px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}
.phase-num { font-family: var(--serif); font-size: 30px; color: var(--gold); }
.phase-title h3 { font-size: 20px; margin-bottom: 6px; }
.phase-title .duration { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.phase-title .summary { font-size: 14px; color: rgba(244,241,236,0.7); margin-top: 10px; font-style: italic; font-family: var(--serif); }
.phase-chevron { color: var(--gold); font-size: 13px; transition: transform 0.3s var(--ease); flex-shrink: 0; }
.phase.open .phase-chevron { transform: rotate(180deg); }
.phase-body { display: none; padding: 0 34px 44px; border-top: 1px solid rgba(184,150,62,0.15); }
.phase.open .phase-body { display: block; }
.phase-body { background: var(--navy-deep); }
.phase-body .inner { padding-top: 36px; max-width: 800px; }
.phase-body h4 { font-family: var(--serif); font-size: 22px; color: var(--gold); margin: 32px 0 14px; }
.phase-body h4:first-child { margin-top: 0; }
.phase-body p { font-size: 15px; color: rgba(244,241,236,0.82); margin-bottom: 14px; }
.phase-body ol { list-style: none; counter-reset: step; margin: 18px 0; }
.phase-body ol li { counter-increment: step; padding: 14px 0 14px 56px; position: relative; font-size: 15px; color: rgba(244,241,236,0.82); border-bottom: 1px solid rgba(184,150,62,0.1); }
.phase-body ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 14px;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 17px;
}
.phase-body ol li strong { color: var(--off-white); font-weight: 600; }

/* ---------- Social proof placeholder ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.proof-card {
  border: 1px dashed rgba(184,150,62,0.35);
  padding: 44px 36px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proof-card .quote-mark { font-family: var(--serif); font-size: 54px; color: var(--gold); line-height: 1; opacity: 0.4; }
.proof-card p { font-size: 14px; color: var(--text-muted); font-style: italic; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--navy-mid);
  border: 1px solid var(--gold-soft);
  display: grid;
  place-items: center;
  position: sticky;
  top: 110px;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { text-align: center; padding: 32px; }
.photo-placeholder .ph-name { font-family: var(--serif); font-size: 24px; color: var(--off-white); }
.photo-placeholder .ph-title { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.photo-placeholder .ph-note { font-size: 11px; color: var(--text-muted); margin-top: 26px; }
.about-body p { margin-bottom: 22px; font-size: 16px; line-height: 1.85; color: rgba(244,241,236,0.85); }
.about-body .conviction { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--off-white); border-left: 2px solid var(--gold); padding-left: 22px; }
.credentials { margin: 32px 0 36px; border-top: 1px solid rgba(184,150,62,0.2); }
.credentials li { list-style: none; padding: 14px 0; border-bottom: 1px solid rgba(184,150,62,0.12); font-size: 14px; color: rgba(244,241,236,0.8); }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; gap: 12px; margin-bottom: 44px; flex-wrap: wrap; }
.faq-tab {
  min-height: 44px;
  padding: 10px 26px;
  background: none;
  border: 1px solid rgba(184,150,62,0.3);
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s var(--ease);
}
.faq-tab.active, .faq-tab:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.faq-group { display: none; }
.faq-group.active { display: block; }
.faq-item { border-bottom: 1px solid rgba(184,150,62,0.18); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  background: none;
  border: 0;
  color: var(--off-white);
  font-family: var(--serif);
  font-size: 19px;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}
.faq-q .chev { color: var(--gold); font-size: 13px; transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 4px 28px; }
.faq-item.open { background: var(--navy-deep); }
.faq-item.open .faq-q, .faq-item.open .faq-a { padding-left: 22px; padding-right: 22px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 15px; color: rgba(244,241,236,0.82); }
.candidate-note { margin-top: 52px; padding: 36px 38px; border: 1px solid var(--gold-soft); background: var(--navy-deep); }
.candidate-note p { font-size: 15px; }
.candidate-note .text-link { display: inline-block; margin-top: 16px; }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; background: var(--navy); padding: 130px 0; }
.closing h2 { margin-bottom: 24px; }
.closing p { margin: 0 auto 44px; color: rgba(244,241,236,0.8); }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); padding: 80px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 0.9fr; gap: 56px; padding-bottom: 64px; }
.footer-grid h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-grid p, .footer-grid a { color: var(--text-muted); line-height: 1.9; display: block; }
.footer-grid a:hover { color: var(--gold); }
.footer-candidate { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(184,150,62,0.15); }
.footer-candidate p { color: var(--off-white); font-family: var(--serif); font-style: italic; font-size: 15px; }
.footer-bottom {
  border-top: 1px solid rgba(184,150,62,0.15);
  padding: 26px 0;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15,28,51,0.96);
  border-top: 1px solid var(--gold-soft);
}
.mobile-cta .btn { width: 100%; min-height: 50px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Landing page (/start) ---------- */
.landing { max-width: 820px; margin: 0 auto; padding: 90px 28px 120px; }
.landing-rule { margin: 56px auto; }
.trust-row { display: flex; justify-content: center; gap: 0; border: 1px solid var(--gold-soft); margin: 48px 0; flex-wrap: wrap; }
.trust-row div { flex: 1; min-width: 180px; padding: 24px 20px; text-align: center; border-right: 1px solid var(--gold-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.trust-row div:last-child { border-right: 0; }
.mini-list { list-style: none; margin: 24px 0; }
.mini-list li { padding: 16px 0 16px 52px; position: relative; border-bottom: 1px solid rgba(184,150,62,0.12); font-size: 15px; color: rgba(244,241,236,0.85); counter-increment: mini; }
.mini-list { counter-reset: mini; }
.mini-list li::before { content: counter(mini, decimal-leading-zero); position: absolute; left: 0; font-family: var(--serif); color: var(--gold); font-size: 16px; }
.mini-list li strong { color: var(--off-white); font-weight: 600; }

/* ---------- Candidates page ---------- */
.page-hero { padding: 190px 0 100px; background: var(--navy-deep); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 820px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .proof-grid { grid-template-columns: 1fr; }
  .service-grid, .cards-2, .callout-pair { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { position: static; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  section { padding: 80px 0; }
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px 28px 28px;
    border-bottom: 1px solid var(--gold-soft);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 16px 0; font-size: 15px; border-bottom: 1px solid rgba(184,150,62,0.1); }
  .nav-links .btn { margin-top: 18px; width: 100%; }
  .nav-toggle { display: flex; }
  .mobile-cta { display: block; }
  body { padding-bottom: 78px; }
  .hero { min-height: auto; padding: 150px 0 90px; }
  .phase-head { grid-template-columns: 1fr auto; }
  .phase-num { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--navy-deep);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  padding: 18px 0;
}
.ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
