/* =========================================================
   SellMyBizVA — Global Stylesheet
   Aesthetic: Private Equity × Virginia Heritage
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* --- Root Tokens ----------------------------------------- */
:root {
  --dark:        #0e1820;
  --dark-2:      #182535;
  --dark-3:      #243447;
  --gold:        #c4923a;
  --gold-light:  #e8be7b;
  --gold-dim:    #8b6423;
  --cream:       #faf7f2;
  --cream-2:     #f2ede4;
  --cream-3:     #e8e0d2;
  --text:        #1a2535;
  --text-mid:    #4a5e6e;
  --text-muted:  #7a8fa0;
  --border:      #d6cfc4;
  --border-dark: #2e3e50;
  --white:       #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  --max-w:  1280px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 3px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font-family: var(--font-body);
  font-size: inherit;
}
ul, ol { list-style: none; }

/* --- Typography ----------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
p { font-size: 1.0625rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 0.875rem; }
p + p   { margin-top: 0.75rem; }
h1 + p, h2 + p, h3 + p, h4 + p { margin-top: 0.625rem; }
ul + p, ol + p, li + p { margin-top: 0.75rem; }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.375rem); color: var(--text-mid); line-height: 1.65; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-dark { color: var(--dark-3); }

/* --- Layout --------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-sm { padding: clamp(3rem, 5vw, 4.5rem) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Color Variants ------------------------------------- */
.bg-dark    { background: var(--dark); color: var(--cream); }
.bg-dark-2  { background: var(--dark-2); color: var(--cream); }
.bg-dark-3  { background: var(--dark-3); color: var(--cream); }
.bg-cream   { background: var(--cream); }
.bg-cream-2 { background: var(--cream-2); }
.bg-white   { background: var(--white); }

.bg-dark p, .bg-dark-2 p, .bg-dark-3 p { color: rgba(250,247,242,0.72); }
.bg-dark h1,.bg-dark h2,.bg-dark h3,.bg-dark h4,
.bg-dark-2 h1,.bg-dark-2 h2,.bg-dark-2 h3,.bg-dark-2 h4 { color: var(--cream); }

/* --- Navigation ----------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  background: rgba(14, 24, 32, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}
.nav-logo-mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(250,247,242,0.72);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cream);
  background: rgba(250,247,242,0.08);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--cream);
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s;
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  background: var(--dark);
  z-index: 99;
  overflow-y: auto;
  padding: 2rem var(--gutter);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(250,247,242,0.8);
  border-bottom: 1px solid var(--border-dark);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .mobile-cta-group {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196,146,58,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250,247,242,0.35);
}
.btn-outline:hover {
  background: rgba(250,247,242,0.08);
  border-color: var(--cream);
}
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover {
  background: var(--text);
  color: var(--cream);
  border-color: var(--text);
}
.btn-dark {
  background: var(--dark);
  color: var(--cream);
}
.btn-dark:hover {
  background: var(--dark-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14,24,32,0.25);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 0.9rem; }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.8rem; }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Ensure every button meets 44px tap-target minimum */
.btn { min-height: 44px; }
.btn-lg { min-height: 52px; }

/* Light outline variant for dark CTA banners */
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(250,247,242,0.5);
}
.btn-outline-light:hover {
  background: rgba(250,247,242,0.1);
  border-color: var(--cream);
}

/* CTA banner action group */
.cta-banner-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Hero ----------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196,146,58,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(36,52,71,0.6) 0%, transparent 60%),
    linear-gradient(160deg, #0e1820 0%, #182535 50%, #0e1820 100%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250,247,242,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,247,242,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
  width: 100%;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-kicker-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  color: var(--cream);
  max-width: 780px;
  margin-bottom: 1.75rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero .lead { max-width: 560px; margin-bottom: 3rem; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 5rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-dark);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.45);
  margin-top: 0.35rem;
}

/* --- Page Hero (interior pages) ------------------------- */
.page-hero {
  background: var(--dark);
  padding: calc(68px + 5rem) var(--gutter) 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(196,146,58,0.07) 0%, transparent 55%);
}
.page-hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero h1 { color: var(--cream); max-width: 700px; margin-bottom: 1.25rem; }
.page-hero .lead { max-width: 580px; }
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: rgba(250,247,242,0.45);
}
.page-hero-breadcrumb a:hover { color: var(--gold); }
.page-hero-breadcrumb span { color: var(--gold); }

/* --- Divider -------------------------------------------- */
.divider { height: 1px; background: var(--border); }
.divider-dark { height: 1px; background: var(--border-dark); }

/* --- Cards ---------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: 0 12px 40px rgba(26,37,53,0.1);
  transform: translateY(-2px);
}
.card-dark {
  background: var(--dark-2);
  border-color: var(--border-dark);
}
.card-dark h3, .card-dark h4 { color: var(--cream); }
.card-dark p { color: rgba(250,247,242,0.65); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(196,146,58,0.1);
  border: 1px solid rgba(196,146,58,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
}
.card-icon svg { width: 22px; height: 22px; }

/* --- Pathway Cards ------------------------------------- */
.pathway-card {
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s var(--ease-out);
}
.pathway-card:hover { transform: translateY(-4px); }
.pathway-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pathway-card-sell .pathway-card-bg {
  background: linear-gradient(135deg, #1c2b38 0%, #243447 100%);
}
.pathway-card-buy .pathway-card-bg {
  background: linear-gradient(135deg, #1a200f 0%, #2a3415 100%);
}
.pathway-card-content { position: relative; z-index: 1; }
.pathway-card h3 {
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.pathway-card p { color: rgba(250,247,242,0.7); margin-bottom: 1.75rem; font-size: 0.95rem; }
.pathway-card-accent {
  position: absolute;
  top: 2rem; right: 2rem;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 300;
  color: rgba(250,247,242,0.04);
  line-height: 1;
  z-index: 0;
}

/* --- Stat Block ----------------------------------------- */
.stat-block {
  padding: 2rem;
  border-left: 2px solid var(--gold);
}
.stat-block-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
}
.stat-block-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.bg-dark .stat-block-num { color: var(--cream); }

/* --- Process Steps ------------------------------------- */
.process-step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.process-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
  text-align: right;
}
.process-step-content h4 { margin-bottom: 0.5rem; }

/* --- Testimonials -------------------------------------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold-light);
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  opacity: 0.4;
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-3);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.testimonial-title { font-size: 0.8rem; color: var(--text-muted); }

/* --- Industries Grid ----------------------------------- */
.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
}
.industry-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(196,146,58,0.12);
  transform: translateY(-2px);
}
.industry-card h4 { color: var(--text); font-size: 1.05rem; }
.industry-card p { font-size: 0.9rem; line-height: 1.6; }
.industry-card .tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cream-2);
  color: var(--text-mid);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}

/* --- CTA Banner ---------------------------------------- */
.cta-banner {
  background: var(--dark-2);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(196,146,58,0.1) 0%, transparent 60%);
}
.cta-banner-inner { position: relative; max-width: 700px; margin: 0 auto; }
.cta-banner h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-banner p { margin-bottom: 2.5rem; }
.cta-banner .btn-group { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* --- Value Props --------------------------------------- */
.value-prop-list { display: flex; flex-direction: column; gap: 0; }
.value-prop-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.value-prop-item:last-child { border-bottom: none; }
.value-prop-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-top: 0.1rem;
}
.value-prop-icon svg { width: 24px; height: 24px; }
.value-prop-item h4 { margin-bottom: 0.35rem; }
.value-prop-item p { font-size: 0.95rem; }

/* --- About Section ------------------------------------- */
.portrait-block {
  background: var(--dark-3);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
  position: relative;
  min-height: 420px;
}
.portrait-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--dark-3) 0%, var(--dark-2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.portrait-monogram {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 300;
  color: rgba(250,247,242,0.15);
  line-height: 1;
}
.portrait-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(14,24,32,0.9));
}
.portrait-caption h4 { color: var(--cream); font-family: var(--font-display); font-size: 1.4rem; }
.portrait-caption p { color: var(--gold-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* --- Form ---------------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,146,58,0.12);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; }

/* --- List Styles --------------------------------------- */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
  color: var(--text-mid);
}
.check-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23c4923a'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 0.1rem;
}

/* --- Accordion ----------------------------------------- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  gap: 1rem;
}
.accordion-trigger .acc-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.3s;
}
.accordion-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.accordion-body-inner { padding: 0 0 1.5rem; }
.accordion-body-inner p { font-size: 0.975rem; }

/* --- Table --------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 0.875rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--cream-2);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.data-table tr:hover td { background: var(--cream-2); }
.data-table .highlight { color: var(--gold); font-weight: 600; }

/* --- Footer -------------------------------------------- */
.site-footer {
  background: var(--dark);
  padding: clamp(4rem, 6vw, 5rem) var(--gutter) 2rem;
  border-top: 1px solid var(--border-dark);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-logo-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-desc { font-size: 0.9rem; color: rgba(250,247,242,0.5); line-height: 1.7; max-width: 300px; }
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(250,247,242,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: rgba(250,247,242,0.3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(250,247,242,0.3); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(250,247,242,0.7); }

/* --- Utility ------------------------------------------- */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* --- Animations ---------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s var(--ease-out) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* --- Trust Bar ----------------------------------------- */
.trust-bar {
  background: var(--cream-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.trust-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 500;
}
.trust-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* --- Breadcrumb ---------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--border); }

/* --- Highlight Box -------------------------------------- */
.highlight-box {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.highlight-box.dark {
  background: var(--dark-3);
  border-color: var(--border-dark);
  border-left-color: var(--gold);
}
.highlight-box.dark p { color: rgba(250,247,242,0.7); }

/* --- Sticky Sidebar ------------------------------------ */
.sticky-sidebar {
  position: sticky;
  top: calc(68px + 2rem);
}
.sidebar-widget {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 { color: var(--cream); margin-bottom: 0.5rem; }
.sidebar-widget p { font-size: 0.88rem; margin-bottom: 1.5rem; }

/* --- Content Layout ------------------------------------- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: flex-start;
}
@media (max-width: 960px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
}

.prose h2 { font-size: 2rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.prose p { margin-bottom: 1.25rem; margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.prose h2 + p, .prose h3 + p { margin-top: 0.625rem; }
.prose ul { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0 1.5rem 1.25rem; list-style: disc; }
.prose ul li { font-size: 1rem; color: var(--text-mid); }
.prose ol { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0 1.5rem 1.25rem; list-style: decimal; }
.prose ol li { font-size: 1rem; color: var(--text-mid); }

/* ==========================================================
   MOBILE OVERRIDES
   Primary breakpoint: 600px (phones)
   Secondary: 768px (large phone / small tablet)
   ========================================================== */

/* ---- 768px: Large phone / small tablet tweaks ----------- */
@media (max-width: 768px) {

  /* Slightly compress section vertical rhythm */
  .section   { padding: clamp(3rem, 7vw, 5rem) 0; }
  .section-sm { padding: clamp(2rem, 4vw, 3.5rem) 0; }

  /* Page hero: tighter vertical padding */
  .page-hero {
    padding: calc(68px + 3rem) var(--gutter) 3rem;
  }

  /* Hero: reduce bottom stat gap */
  .hero-stats { gap: 2rem; }

  /* Prose headings: slightly tighter on tablet */
  .prose h2 { font-size: 1.75rem; margin: 2rem 0 0.875rem; }
  .prose h3 { font-size: 1.375rem; margin: 1.75rem 0 0.6rem; }

  /* Data tables: always scroll horizontally */
  .data-table-wrap,
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Sidebar switches to card layout before full mobile */
  .content-with-sidebar { gap: 2.5rem; }
}

/* ---- 600px: Phone — primary mobile breakpoint ----------- */
@media (max-width: 600px) {

  /* ---- Typography: bigger for 45–65 year old readers ---- */
  body {
    font-size: 1.0625rem;  /* 17px base — easier to read */
    line-height: 1.7;
  }
  p {
    font-size: 1.125rem;   /* 18px body text */
    line-height: 1.8;
  }
  .lead {
    font-size: 1.2rem;     /* was clamp min 1.125 — bump up */
    line-height: 1.65;
  }
  h4 { font-size: 1.2rem; }
  .eyebrow { font-size: 0.75rem; } /* was 0.7 — tiny at mobile */

  /* Heading lower bounds already handled by clamp,
     but h1 2.8rem minimum is still large — dial down */
  h1 { font-size: clamp(2.25rem, 9vw, 5rem); }
  h2 { font-size: clamp(1.75rem, 7vw, 3.2rem); }
  h3 { font-size: clamp(1.4rem, 5.5vw, 2rem); }

  /* Prose text: larger for long-form reading */
  .prose p     { font-size: 1.125rem; line-height: 1.8; }
  .prose ul li,
  .prose ol li { font-size: 1.0625rem; }
  .prose h2    { font-size: 1.6rem; margin: 1.75rem 0 0.75rem; }
  .prose h3    { font-size: 1.3rem; margin: 1.5rem 0 0.6rem; }

  /* Check-list: larger text on mobile */
  .check-list li { font-size: 1.0625rem; }

  /* Accordion trigger: easier to tap & read */
  .accordion-trigger {
    font-size: 1.0625rem;
    padding: 1.1rem 0;
    min-height: 52px;
  }

  /* ---- Buttons: full-width stacking + proper tap targets - */
  .btn     { min-height: 52px; font-size: 0.9rem; }
  .btn-lg  { min-height: 56px; padding: 1rem 2rem; font-size: 0.95rem; }
  .btn-sm  { min-height: 44px; padding: 0.65rem 1.25rem; }

  /* Hero CTAs: stack and stretch full width */
  .hero-ctas {
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 3rem;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* CTA banner button groups: stack and stretch */
  .cta-banner .btn-group,
  .cta-banner-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding: 0 0.5rem;  /* slight indent so they don't touch edges */
  }
  .cta-banner .btn-group .btn,
  .cta-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Page hero inline button groups */
  .page-hero-inner > div[style*="display:flex"],
  .page-hero-inner div[style*="flex-wrap:wrap"] {
    flex-direction: column;
    gap: 0.875rem;
  }
  .page-hero-inner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Sidebar widget buttons: always full width */
  .sidebar-widget .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Navigation ---------------------------------------- */
  .nav-inner { gap: 1rem; }
  .nav-logo-mark { font-size: 1.25rem; }
  .nav-logo-sub  { font-size: 0.58rem; }

  /* Mobile nav links: bigger, easier to tap */
  .mobile-nav a {
    font-size: 1.1rem;
    padding: 1rem 0;
    min-height: 52px;
    display: flex;
    align-items: center;
  }
  .mobile-nav .mobile-cta-group .btn {
    justify-content: center;
    font-size: 0.95rem;
    min-height: 52px;
  }

  /* ---- Hero --------------------------------------------- */
  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
  }
  .hero-stat-num   { font-size: 2.5rem; }
  .hero-stat-label { font-size: 0.75rem; margin-top: 0.25rem; }

  /* Pathway cards: shorter on mobile */
  .pathway-card { min-height: 320px; padding: 2rem 1.75rem; }
  .pathway-card h3 { font-size: 1.6rem; }

  /* ---- Process steps ------------------------------------- */
  .process-step {
    gap: 1rem;
    padding: 1.5rem 0;
  }
  .process-num {
    font-size: 2rem;
    width: 48px;
    min-width: 48px;
  }
  .process-step-content h4 { font-size: 1.1rem; }
  .process-step-content p  { font-size: 1.0625rem; }

  /* ---- Testimonials -------------------------------------- */
  .testimonial { padding: 1.75rem; }
  .testimonial-text { font-size: 1.05rem; padding-top: 1.75rem; }
  .testimonial::before { font-size: 4rem; top: 1.25rem; left: 1.5rem; }

  /* ---- Cards -------------------------------------------- */
  .card         { padding: 1.5rem; }
  .card-dark    { padding: 1.5rem; }
  .highlight-box { padding: 1.25rem 1.5rem; }

  /* ---- Trust bar: 2-column on mobile ------------------- */
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-items: start;
  }
  .trust-item { font-size: 0.88rem; }

  /* ---- Stat block --------------------------------------- */
  .stat-block-num   { font-size: 2.5rem; }
  .stat-block-label { font-size: 0.78rem; }

  /* ---- Data tables: always horizontal scroll ------------ */
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 0.88rem;
  }
  .data-table th, .data-table td {
    padding: 0.75rem 1rem;
    white-space: normal;
    min-width: 100px;
  }

  /* ---- CTA banner --------------------------------------- */
  .cta-banner { padding: 3rem var(--gutter); }
  .cta-banner h2 { font-size: clamp(1.75rem, 6vw, 3rem); }
  .cta-banner p  { font-size: 1.0625rem; }

  /* ---- Forms -------------------------------------------- */
  .form-input, .form-select, .form-textarea {
    font-size: 1rem; /* keep at 1rem to prevent iOS auto-zoom */
    padding: 0.9375rem 1rem;
    min-height: 48px;
  }
  .form-label { font-size: 0.85rem; }
  .form-note  { font-size: 0.875rem; }

  /* ---- Sidebar: stacks below content on mobile ---------- */
  .sticky-sidebar { position: static; margin-top: 2rem; }
  .sidebar-widget { padding: 1.5rem; }
  .sidebar-widget p { font-size: 0.9375rem; }

  /* ---- Footer ------------------------------------------- */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .footer-copy   { font-size: 0.82rem; }
  .footer-legal  { gap: 1.25rem; }
  .footer-links a { font-size: 0.9rem; }  /* slightly larger footer links */

  /* ---- Inline 2-column grids in content sections --------
     Many Phase 2 pages use inline style="grid-template-columns:1fr 1fr"
     These utility overrides force single-column on mobile regardless */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:auto 1fr"],
  [style*="grid-template-columns: auto 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Inline flex-direction:column overrides for stacked CTA groups */
  /* (Applied via explicit selectors above) */

  /* Portrait block: auto height on mobile */
  .portrait-block { min-height: 300px !important; aspect-ratio: 4/3; }

  /* About page stat grid */
  .about-stats-grid { grid-template-columns: 1fr 1fr !important; }

  /* Nav CTA: hide secondary CTA on very small screens, keep primary */
  .nav-cta .btn-outline { display: none; }
}

/* ---- 375px and below: Tiny phones (SE etc) ------------- */
@media (max-width: 375px) {
  :root { --gutter: 1.25rem; }

  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-ctas .btn, .cta-banner-actions .btn { font-size: 0.875rem; }

  /* Trust bar: single column on tiny screens */
  .trust-bar-inner { grid-template-columns: 1fr; }

  .nav-cta { display: none; } /* hamburger only at SE size */
}

/* ---- Touch: remove hover transforms on touch devices ---- */
@media (hover: none) {
  .btn:hover           { transform: none; box-shadow: none; }
  .card:hover          { transform: none; box-shadow: none; }
  .industry-card:hover { transform: none; box-shadow: none; }
  .pathway-card:hover  { transform: none; }
}

/* ---- Responsive 2-column util (replaces inline grids) ---- */
.grid-2-auto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .grid-2-auto { grid-template-columns: 1fr; }
}

/* Stats pair: 2-col on desktop, stays 2-col on mobile (numbers) */
.stats-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
/* Stats pair stays 2-col even on mobile — numbers look good side by side */

/* Value compare cards (SDE vs EBITDA, buyer values vs discounts) */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (max-width: 600px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   DROPDOWN NAV
   ========================================================== */

/* Missing variables used on some pages */
:root {
  --charcoal:   #182535;   /* alias for --dark-2 */
  --radius-lg:  6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-item > a .nav-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s;
  opacity: 0.6;
}

.nav-item:hover > a .nav-chevron,
.nav-item.open > a .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 0.75rem 0;
  min-width: 220px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 200;
  white-space: nowrap;
}

/* Wide dropdown for Industries */
.nav-dropdown.wide {
  min-width: 640px;
  left: 0;
  transform: none;
  padding: 1.25rem 1.5rem;
  display: none;
}

.nav-dropdown-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 2rem;
}

.nav-dropdown-col-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  padding: 0 0.25rem;
}

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(250,247,242,0.72);
  transition: color 0.15s, background 0.15s;
  border-radius: 0;
}

.nav-dropdown.wide a {
  padding: 0.45rem 0.25rem;
}

.nav-dropdown a:hover {
  color: var(--cream);
  background: rgba(250,247,242,0.06);
}

.nav-dropdown .divider-dark {
  margin: 0.4rem 1.25rem;
}

/* Keep dropdown open when moving mouse into it */
.nav-item:hover .nav-dropdown { display: block; }

/* Prevent layout shift on desktop */
@media (max-width: 960px) {
  .nav-item { display: none; }
  .nav-dropdown { display: none !important; }
}

/* ── Mobile nav: expandable groups ─────────────────────── */
.mobile-nav-group { border-bottom: 1px solid var(--border-dark); }

.mobile-nav-group-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(250,247,242,0.8);
  text-align: left;
  min-height: 52px;
}

.mobile-nav-group-trigger .mnav-chevron {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.mobile-nav-group-trigger[aria-expanded="true"] .mnav-chevron {
  transform: rotate(180deg);
}

.mobile-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1);
}

.mobile-nav-sub a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(250,247,242,0.65);
  border-bottom: none;
  border-left: 2px solid var(--border-dark);
  transition: color 0.2s, border-color 0.2s;
  min-height: 44px;
}

.mobile-nav-sub a:hover { color: var(--gold); border-left-color: var(--gold); }

/* Sub-group label inside mobile nav */
.mobile-nav-sub-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.75rem 1rem 0.35rem;
}

/* Fix flex-row value-factor rows on narrow screens */
@media (max-width: 480px) {
  .value-factor-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
  }
}

/* ---- Two-column form grid ---------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}
