/* ============================================================
   Gray Carroll Consulting — Midnight Executive Design System
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --midnight: #0F2238;
  --midnight-deep: #0A1628;
  --steel: #2E86AB;
  --gold: #C8A96E;
  --white: #FFFFFF;
  --offwhite: #F7F8FA;
  --border: #E2E8F0;
  --text: #1E293B;
  --muted: #475569;
  --red: #DC2626;
  --amber: #D97706;
  --green: #059669;

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --section-padding: 6rem 2rem;
  --section-padding-sm: 4rem 1.25rem;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; color: var(--text); }
h1 { font-size: 3.25rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
p { margin-bottom: 1.25rem; }

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--section-padding); }
.section--dark { background: var(--midnight); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.8); }
.section--offwhite { background: var(--offwhite); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--midnight);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
}
.nav__brand span { color: var(--gold); }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--midnight) !important;
  background: var(--gold);
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}
.nav__cta:hover { background: #b89555; transform: translateY(-1px); color: var(--midnight) !important; }

/* Mobile nav toggle */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--midnight);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}
.hero__content { max-width: 720px; }
.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 span { color: var(--gold); }
.hero__sub {
  font-size: 1.2rem;
  color: var(--steel);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero__details {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn--primary {
  background: var(--steel);
  color: var(--white);
}
.btn--primary:hover { background: #247A9D; color: var(--white); transform: translateY(-1px); }
.btn--gold {
  background: var(--gold);
  color: var(--midnight);
}
.btn--gold:hover { background: #b89555; color: var(--midnight); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--steel);
  border: 2px solid var(--steel);
}
.btn--outline:hover { background: var(--steel); color: var(--white); }

/* --- Stat Cards (Problem Section) --- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.stat-card {
  background: var(--white);
  border-left: 4px solid var(--red);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.stat-card--amber { border-left-color: var(--amber); }
.stat-card__number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card__number--red { color: var(--red); }
.stat-card__number--amber { color: var(--amber); }
.stat-card__text { font-size: 0.95rem; color: var(--text); margin-bottom: 0.5rem; }
.stat-card__source { font-size: 0.75rem; color: var(--muted); font-style: italic; }

.result-panel {
  background: var(--midnight);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.result-panel__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.result-panel p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.result-panel__divider {
  width: 60%;
  height: 1px;
  background: var(--steel);
  margin: 1.5rem 0;
}
.result-panel .highlight { color: var(--steel); }

/* --- Deliverable Cards --- */
.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.card {
  background: var(--white);
  border-left: 4px solid var(--steel);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.card--green { border-left-color: var(--green); }
.card--amber { border-left-color: var(--amber); }
.card--gold { border-left-color: var(--gold); }
.card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.875rem; color: var(--muted); margin-bottom: 0; }

/* --- Process Flow --- */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.process-step { display: flex; align-items: flex-start; gap: 0.75rem; }
.process-step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--midnight);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.process-step__label { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.process-step__desc { font-size: 0.825rem; color: var(--muted); margin-bottom: 0; }

.callout-bar {
  background: var(--offwhite);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

/* --- Workstream Grid --- */
.workstream-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.ws-card {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-top: 3px solid var(--steel);
  padding: 1.5rem;
  position: relative;
}
.ws-card__weight {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--midnight);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
}
.ws-card__weight--gold { background: var(--gold); color: var(--midnight); }
.ws-card--highlight { border-top-color: var(--gold); }
.ws-card h3 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.5rem; }
.ws-card p { font-size: 0.825rem; color: var(--muted); margin-bottom: 0; }

/* --- Utility Classes --- */
.text-center { text-align: center; }
.block { display: block; }
.mt-2 { margin-top: 2rem; }
.mt-2-5 { margin-top: 2.5rem; }
.mt-3 { margin-top: 3rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.scoring-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }

.scoring-scale {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.scoring-scale__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.scoring-scale__item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.scoring-scale__dot { width: 14px; height: 14px; border-radius: 2px; flex-shrink: 0; }
.scoring-scale__dot--red { background: var(--red); }
.scoring-scale__dot--amber { background: var(--amber); }
.scoring-scale__dot--green { background: var(--green); }

/* --- Tier Cards --- */
.tiers-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--steel);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.tier-card--gold { border-top-color: var(--gold); }
.tier-card--green { border-top-color: var(--green); }
.tier-card__name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.tier-card__price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.tier-card__price--steel { color: var(--steel); }
.tier-card__price--gold { color: var(--gold); }
.tier-card__price--green { color: var(--green); }
.tier-card__range { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.tier-card__timeline { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.tier-card__divider { height: 1px; background: var(--border); margin-bottom: 1.25rem; }
.tier-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.tier-card li {
  font-size: 0.875rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.tier-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: var(--steel);
  border-radius: 50%;
}
.tier-card--gold li::before { background: var(--gold); }
.tier-card--green li::before { background: var(--green); }
.tier-card__best {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.tier-card__best-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.tier-card__best p { font-size: 0.825rem; font-style: italic; color: var(--muted); margin-bottom: 0; }

/* --- Credentials --- */
.creds-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}
.cred-card {
  background: var(--white);
  border-left: 4px solid var(--steel);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 1.25rem;
}
.cred-card:last-child { margin-bottom: 0; }
.cred-card .label { margin-bottom: 0.5rem; }
.cred-card h3 { font-family: var(--font-heading); margin-bottom: 0.5rem; }
.cred-card p { font-size: 0.875rem; color: var(--muted); margin-bottom: 0; }

.diff-panel {
  background: var(--midnight);
  padding: 2.5rem;
}
.diff-panel__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 2rem;
}
.diff-item { margin-bottom: 1.5rem; }
.diff-item:last-child { margin-bottom: 0; }
.diff-item h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.diff-item p { font-size: 0.825rem; color: var(--steel); margin-bottom: 0; }

/* --- Segments Strip --- */
.segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.segment-tag {
  background: var(--offwhite);
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text);
}

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.faq-item p { font-size: 0.925rem; color: var(--muted); margin-bottom: 0; }

/* --- CTA Section --- */
.cta-section {
  background: var(--midnight);
  text-align: center;
  padding: var(--section-padding);
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 2rem; }

/* --- Footer --- */
.footer {
  background: var(--midnight-deep);
  padding: 2rem;
  text-align: center;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer p { font-size: 0.8rem; color: var(--muted); margin: 0; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--steel); }
.footer__links { display: flex; gap: 1.5rem; }

/* --- About Page --- */
.page-hero {
  background: var(--midnight);
  padding: 10rem 2rem 5rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.75rem; margin-bottom: 1rem; }
.page-hero p { color: var(--steel); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

.about-content { max-width: 720px; margin: 0 auto; }
.about-content h2 { margin-top: 2.5rem; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  border: 1px solid var(--border);
  background: var(--offwhite);
  color: var(--text);
  border-radius: 4px;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--steel);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info h3 { margin-bottom: 1.5rem; }
.contact-detail { margin-bottom: 1.25rem; }
.contact-detail .label { margin-bottom: 0.25rem; }
.contact-detail a, .contact-detail p { font-size: 0.95rem; margin-bottom: 0; }

/* --- Responsive --- */
@media (max-width: 968px) {
  h1 { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .workstream-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-row { grid-template-columns: 1fr; max-width: 500px; }
  .creds-grid { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-padding: 3.5rem 1.25rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--midnight);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__toggle { display: block; }
  .cards-row { grid-template-columns: 1fr; }
  .workstream-grid { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 4rem; }
  .footer__inner { flex-direction: column; gap: 1rem; }
}
