/* ============================================================
   JENNINGS CONSULTING — style.css
   Palette: charcoal + bone + oxblood/burgundy (no blue)
   ============================================================ */

:root {
  /* ----- COLORS -----
     The accent variables are still named --gold* so the rest of the
     stylesheet didn't have to change; the VALUES are now oxblood. */
  --ink:        #1c1715;   /* near-black charcoal, faint warm tint */
  --ink-soft:   #2b2421;   /* raised charcoal surfaces             */
  --bone:       #f4ece4;   /* warm off-white background            */
  --bone-2:     #e9ddd2;   /* slightly deeper bone                 */
  --paper:      #fbf6f0;   /* card paper                           */
  --gold:       #7d2230;   /* PRIMARY ACCENT — oxblood/burgundy    */
  --gold-deep:  #5c1722;   /* darker oxblood for hovers            */
  --gold-soft:  #c97a82;   /* dusty rose — accent on dark bg       */
  --taupe:      #786d66;   /* muted body text on light             */
  --taupe-2:    #9b8f86;   /* fainter muted text                   */
  --line:       #ddd0c4;   /* hairline rules on light              */
  --line-dark:  #3a302c;   /* hairlines on dark                    */

  /* ----- TYPE ----- */
  --serif: 'Fraunces', Georgia, serif;

  --approach-image: url('approach.jpg');
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bone);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 6vw;
  background: rgba(244, 239, 231, 0);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, padding .4s ease;
}
#nav.scrolled {
  background: rgba(244, 239, 231, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 6vw;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--bone);
  text-decoration: none;
  transition: color .4s ease;
}
#nav.scrolled .nav-logo { color: var(--ink); }
.logo-mark {
  display: block;
  font-family: var(--sans);
  font-size: 1.0rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: -2px;
}
.nav-links {
  display: flex; align-items: center; gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  transition: color .25s ease;
}
#nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--gold-soft); }
#nav.scrolled .nav-links a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid currentColor;
  padding: .5rem 1.1rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink) !important; }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: var(--bone); transition: .3s; }
#nav.scrolled .hamburger span { background: var(--ink); }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh;
  background: var(--ink); z-index: 99;
  display: flex; flex-direction: column; justify-content: center; gap: 1.8rem;
  padding: 0 2.5rem; transition: right .4s cubic-bezier(.7,0,.3,1);
}
.mobile-menu.open { right: 0; }
.mobile-link {
  font-family: var(--serif); font-size: 1.6rem; color: var(--bone);
  text-decoration: none; transition: color .25s;
}
.mobile-link:hover { color: var(--gold-soft); }

/* ============================================================
   HERO — PARALLAX
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0 6vw;
  overflow: hidden;
}
/* hero background image — swap hero.jpg in the folder to change it */
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  z-index: 0;
}
/* graceful fallback shown behind the image if it fails to load */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2c2823 0%, #1a1714 60%, #100e0c 100%);
  z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
              rgba(16,14,12,.86) 0%,
              rgba(16,14,12,.66) 45%,
              rgba(16,14,12,.28) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  font-size: .8rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  color: var(--bone);
  letter-spacing: -.5px;
}
.hero-title em { color: var(--gold-soft); font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 300;
  color: #d8d0c4;
  max-width: 540px;
  margin: 1.6rem 0 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .85rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .95rem 1.8rem; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-solid { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }
.btn-solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--bone); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--bone); border: 1px solid rgba(244,239,231,.45); }
.btn-line:hover { border-color: var(--gold-soft); color: var(--gold-soft); transform: translateY(-2px); }
.btn-full { width: 100%; text-align: center; }

.hero-scroll-cue {
  position: absolute; bottom: 2.2rem; left: 6vw; z-index: 2;
  display: flex; align-items: center; gap: .8rem;
}
.hero-scroll-cue span {
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe-2);
}
.scroll-line {
  width: 60px; height: 1px; background: var(--gold-soft); position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute; left: -30px; top: 0; width: 30px; height: 1px;
  background: var(--bone); animation: scrollMove 2s linear infinite;
}
@keyframes scrollMove { to { left: 60px; } }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trustbar {
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  flex-wrap: wrap;
  padding: 2.6rem 6vw;
}
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-num, .trust-num-text {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500; color: var(--gold-soft); line-height: 1;
}
.trust-label {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--taupe-2); margin-top: .55rem;
}
.trust-rule { width: 1px; height: 44px; background: var(--line-dark); }

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section { padding: clamp(5rem, 11vw, 9rem) 6vw; }
.section-head { max-width: 720px; margin: 0 auto 4rem; text-align: center; }
.kicker {
  font-size: .76rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.kicker-light { color: var(--gold-soft); }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.08;
  letter-spacing: -.5px; color: var(--ink);
}
.section-title-light { color: var(--bone); }
.section-lead {
  font-size: 1.08rem; color: var(--taupe); margin-top: 1.2rem;
}

/* ----- SERVICE CARDS ----- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem; max-width: 1180px; margin: 0 auto;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.6rem 2.2rem 2.2rem;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -28px rgba(26,23,20,.4);
  border-color: var(--gold-soft);
}
.card-feature {
  background: var(--ink);
  border-color: var(--ink);
}
.card-feature .card-title { color: var(--bone); }
.card-feature .card-body  { color: #cfc6b9; }
.card-feature .card-list li { color: #cfc6b9; }
.card-feature .card-list li::before { background: var(--gold-soft); }
.card-feature .card-price { color: var(--gold-soft); border-top-color: var(--line-dark); }
.card-feature .card-index { color: var(--gold-soft); }
.card-index {
  font-family: var(--serif); font-size: 1.1rem; font-style: italic;
  color: var(--gold); margin-bottom: 1.4rem;
}
.card-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.5rem; line-height: 1.15; color: var(--ink); margin-bottom: .9rem;
}
.card-body { font-size: .96rem; color: var(--taupe); margin-bottom: 1.5rem; }
.card-list { list-style: none; margin-bottom: 1.8rem; }
.card-list li {
  position: relative; padding-left: 1.3rem; font-size: .9rem;
  color: var(--taupe); margin-bottom: .55rem;
}
.card-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
}
.card-price {
  margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500;
}

.cards-pricing-note {
  text-align: center;
  margin-top: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ============================================================
   APPROACH (split layout + small parallax accent)
   ============================================================ */
.approach { background: var(--bone-2); }
.approach-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  max-width: 1180px; margin: 0 auto;
}
.approach-text { font-size: 1.05rem; color: var(--taupe); margin: 1.4rem 0 2.2rem; }
.approach-points { display: flex; flex-direction: column; gap: 1.4rem; }
.ap-point { display: flex; gap: 1rem; font-size: .98rem; color: var(--ink); }
.ap-point strong { font-weight: 600; }
.ap-mark {
  flex-shrink: 0; width: 10px; height: 10px; margin-top: .5em;
  background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(125,34,48,.20);
}
.approach-visual {
  position: relative;
  min-height: 440px;
  border-radius: 4px;
  background-image: var(--approach-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;       /* second parallax surface */
  box-shadow: 0 30px 60px -30px rgba(26,23,20,.55);
}
.approach-visual::after {
  content: '';
  position: absolute; inset: 0; border-radius: 4px;
  background: linear-gradient(160deg, rgba(125,34,48,.32), rgba(28,23,21,.5));
}

/* ============================================================
   HEALTHCARE (dark band)
   ============================================================ */
.healthcare {
  background:
    linear-gradient(rgba(16,14,12,.9), rgba(16,14,12,.94)),
    radial-gradient(circle at 80% 20%, rgba(125,34,48,.22), transparent 55%),
    var(--ink);
}
.hc-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hc-lead { font-size: 1.1rem; color: #cfc6b9; margin: 1.4rem auto 2.4rem; max-width: 660px; }
.hc-tags { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hc-tags span {
  font-size: .82rem; letter-spacing: .04em;
  padding: .55rem 1.1rem; border: 1px solid var(--line-dark);
  border-radius: 100px; color: var(--gold-soft);
  background: rgba(125,34,48,.08);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
  max-width: 1100px; margin: 0 auto;
}
.contact-text { font-size: 1.05rem; color: var(--taupe); margin: 1.3rem 0 2rem; }
.contact-direct { display: flex; flex-direction: column; gap: .6rem; }
.cd-link {
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink);
  text-decoration: none; transition: color .25s; width: fit-content;
}
.cd-link:hover { color: var(--gold-deep); }
.cd-loc { font-size: .85rem; color: var(--taupe-2); margin-top: .4rem; }

.contact-form-wrap {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; padding: 2.4rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block; font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--taupe); margin-bottom: .45rem;
}
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: .98rem; color: var(--ink);
  background: var(--bone); border: 1px solid var(--line); border-radius: 2px;
  padding: .8rem .9rem; transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(125,34,48,.16);
}
.form-note { font-size: .85rem; color: var(--gold-deep); margin-top: .9rem; min-height: 1.2em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink); color: var(--bone);
  text-align: center; padding: 3.6rem 6vw 3rem;
}
.footer-logo { font-family: var(--serif); font-size: 1.6rem; }
.footer-logo .logo-mark { color: var(--gold-soft); margin: 4px auto 0; }
.footer-tag { color: var(--taupe-2); max-width: 460px; margin: 1rem auto 1.8rem; font-size: .96rem; }
.footer-fine { font-size: .8rem; color: #6c645a; letter-spacing: .04em; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .cards { grid-template-columns: 1fr; max-width: 460px; }
  .approach-grid, .contact-grid { grid-template-columns: 1fr; }
  .approach-visual { min-height: 300px; order: -1; }
  /* fixed-attachment is unreliable on most mobile browsers — make it scroll normally */
  .hero-bg, .approach-visual { background-attachment: scroll; }
}

/* ============================================================
   STATS PAGE  (stats.html)
   ============================================================ */

/* keep nav solid on interior pages from the start */
.nav-solid { background: rgba(244,236,228,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-solid .nav-logo { color: var(--ink); }
.nav-solid .nav-links a { color: var(--ink); }
.nav-solid .hamburger span { background: var(--ink); }
.nav-current { color: var(--gold) !important; }

/* ----- page header ----- */
.stats-hero {
  padding: 9rem 6vw 4rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(125,34,48,.10), transparent 55%),
    var(--bone);
  text-align: center;
}
.stats-hero-inner { max-width: 760px; margin: 0 auto; }
.stats-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04;
  letter-spacing: -.5px; color: var(--ink); margin: .4rem 0 1.4rem;
}
.stats-sub { font-size: 1.1rem; color: var(--taupe); max-width: 620px; margin: 0 auto; }

.stats-section { padding-top: 2.5rem; }

/* ----- stat cards ----- */
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; max-width: 1180px; margin: 0 auto;
}
.stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 2.2rem 1.9rem; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease,
              opacity .8s ease;
}
.stat-card:hover {
  transform: translateY(-5px); border-color: var(--gold-soft);
  box-shadow: 0 22px 50px -28px rgba(28,23,21,.4);
}
.stat-figure {
  font-family: var(--serif); font-weight: 500; line-height: 1;
  color: var(--gold); display: flex; align-items: flex-start;
  margin-bottom: 1rem;
}
.stat-prefix { font-size: 2.1rem; margin-top: .35rem; }
.stat-value  { font-size: clamp(3rem, 6vw, 4rem); }
.stat-label {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500;
  line-height: 1.25; color: var(--ink); margin-bottom: .7rem;
}
.stat-detail { font-size: .92rem; color: var(--taupe); margin-bottom: 1.4rem; }
.stat-source {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--taupe-2);
}

/* ----- chart sections ----- */
.chart-section-alt { background: var(--bone-2); }
.chart-wrap { max-width: 880px; margin: 0 auto; }
.chart-head { text-align: center; margin-bottom: 3rem; }
.chart-note { font-size: 1rem; color: var(--taupe); margin-top: 1rem; }
.chart-source {
  text-align: center; font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--taupe-2); margin-top: 2.4rem;
}

/* ----- bar chart ----- */
.bar-chart { display: flex; flex-direction: column; gap: 1.8rem; }
.bar-row { display: flex; flex-direction: column; gap: .5rem; }
.bar-label { font-size: .95rem; font-weight: 500; color: var(--ink); }
.bar-track {
  background: var(--bone); border: 1px solid var(--line);
  border-radius: 100px; height: 40px; overflow: hidden;
}
.bar-fill {
  width: 0; height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  display: flex; align-items: center; justify-content: flex-end;
  transition: width 1.3s cubic-bezier(.2,.7,.2,1);
}
.bar-val { color: var(--bone); font-weight: 600; font-size: .95rem; padding-right: 1rem; }

/* ----- donut ----- */
.donut-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(2rem, 6vw, 4.5rem); flex-wrap: wrap;
}
.donut { width: clamp(220px, 40vw, 300px); height: clamp(220px, 40vw, 300px); transform: rotate(0deg); }
.donut-seg { transition: stroke-dasharray 1.2s cubic-bezier(.2,.7,.2,1); }
.donut-legend { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.donut-legend li { display: flex; align-items: center; gap: .8rem; font-size: .98rem; color: var(--ink); }
.legend-dot { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.legend-label { flex: 1; }
.legend-val { font-weight: 600; color: var(--gold-deep); }

/* ----- CTA reuse ----- */
.stats-cta .btn { margin-top: 2rem; }

/* ----- sources ----- */
.sources-section { max-width: 880px; margin: 0 auto; padding-top: 3rem; }
.sources-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  color: var(--ink); margin-bottom: 1.4rem;
}
.sources-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2rem; }
.sources-list li {
  display: flex; flex-direction: column; padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.sources-list strong { font-weight: 600; color: var(--ink); font-size: .98rem; }
.sources-list span { font-size: .86rem; color: var(--taupe); margin-top: .15rem; }
.sources-fine { font-size: .82rem; color: var(--taupe-2); line-height: 1.6; }

/* ----- responsive ----- */
@media (max-width: 880px) {
  .stat-grid { grid-template-columns: 1fr; max-width: 460px; }
  .donut-wrap { flex-direction: column; }
}

/* button spacing inside the dark security band */
.hc-btn { margin-top: 2.2rem; }
