/* --------------------
  Base Styles (Marketview)
--------------------- */
:root {
  --brand-blue: #042C59;   /* Marketview core */
  --accent-teal: #2BA7A0;  /* Complementary accent */
  --accent-gold: #F2A900;  /* Secondary highlight */
  --accent-orange: #D9480F;
  --gray-900: #1a1a1a;
  --gray-700: #334155;
  --gray-600: #555;
  --gray-300: #e5e7eb;
  --gray-200: #eee;
  --gray-100: #f9f9f9;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; margin-bottom: 0.5em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p.max { max-width: 860px; }

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 90%; max-width: 1120px; margin: 0 auto; }
.section   { padding: 4rem 0; border-top: 1px solid var(--gray-300); }
.section-alt { background: var(--gray-100); }
.center { text-align: center; }
.small { font-size: 0.95rem; color: var(--gray-600); }

/* Tinted section helpers */
.tint-teal { background: #F2FBFA; }
.tint-gold { background: #FFF9E8; }

/* --------------------
  Header
--------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { height: 48px; width: auto; }
.nav a { margin-left: 1rem; font-weight: 600; color: var(--gray-900); }
.nav a.active { color: var(--brand-blue); }
.nav a:hover { color: var(--gray-700); }

/* Nav CTA button placement */
.nav .btn.nav-cta {
  margin-left: 1.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

/* --------------------
  Hero
--------------------- */
.hero {
  background: linear-gradient(115deg, var(--brand-blue) 0%, #0c4a6e 45%, var(--accent-teal) 100%);
  color: var(--white);
  padding: 5rem 0 6rem;
  text-align: left;
}
.hero-rich { position: relative; }
.hero-pattern { position: relative; overflow: hidden; }
.hero-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px, 42px 42px;
  background-position: 0 0, 12px 12px;
  pointer-events: none;
}
.hero h1 { font-weight: 800; }
.lead.big {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 1rem;
  color: #ffffff;
}
.hi {
  background: var(--accent-gold);
  color: var(--gray-900);
  padding: 0 0.3em;
  border-radius: 4px;
}
.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-note {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 2.25rem;
  opacity: .95;
}

/* --------------------
  Buttons
--------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.06s ease;
}
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent-teal);
  color: var(--white);
}
.btn-accent:hover {
  background: #238b86;
}

.btn-outline {
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(4, 44, 89, 0.08);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 0.85rem 1.5rem;
}

/* Gold button (Nonprofit) */
.btn.btn-gold {
  background: #fbbf24;
  color: #111827;
}
.btn.btn-gold:hover {
  background: #f59e0b;
}

/* Teal button for Email */
.btn-teal {
  background-color: #2BA7A0;
  color: #ffffff;
}
.btn-teal:hover {
  background-color: #178b8d;
  transform: translateY(-1px);
}

/* --------------------
  Titles / Accents
--------------------- */
.title-accent { position: relative; padding-left: 14px; }
.title-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 6px;
  height: 1.1em;
  background: linear-gradient(180deg, var(--accent-teal), var(--brand-blue));
  border-radius: 3px;
}

/* --------------------
  Lists & Cards
--------------------- */
.list { padding-left: 1.25rem; }
.list li { margin-bottom: 0.5rem; }
.bullets li::marker { color: var(--brand-blue); }

.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  position: relative;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(4,44,89,.08);
}

/* colorful card accents */
.card-accent-blue  { border-left: 6px solid #3b82f6; }
.card-accent-teal  { border-left: 6px solid var(--accent-teal); }
.card-accent-gold  { border-left: 6px solid var(--accent-gold); }
.card-accent-navy  { border-left: 6px solid var(--brand-blue); }
.card-accent-orange{ border-left: 6px solid var(--accent-orange); }

/* Responsive card grids */
@media (min-width: 700px)  { .cards-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-5 { grid-template-columns: repeat(5, 1fr); } }

.cards-3 { grid-template-columns: 1fr; }
@media (min-width: 900px)  { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

/* Outcomes: 2 rows × 3 columns on desktop + ribbons */
.cards-6 { }
@media (min-width: 900px)  { .cards-6.fixed-3 { grid-template-columns: repeat(3, 1fr); } }

.ribbon-blue::before,
.ribbon-teal::before,
.ribbon-gold::before,
.ribbon-navy::before,
.ribbon-orange::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 6px;
  border-radius: 8px 8px 0 0;
}
.ribbon-blue::before   { background: #3b82f6; }
.ribbon-teal::before   { background: var(--accent-teal); }
.ribbon-gold::before   { background: var(--accent-gold); }
.ribbon-navy::before   { background: var(--brand-blue); }
.ribbon-orange::before { background: var(--accent-orange); }

/* --------------------
  Leadership
--------------------- */
.section-leadership { background: #F1F5FB; }
.leaders {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (min-width: 900px) {
  .leaders { grid-template-columns: repeat(2, 1fr); }
}
.leader {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 1.25rem;
}
.leader .role {
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: .25rem;
}

/* --------------------
  CTA & Footer
--------------------- */
.cta {
  background: var(--brand-blue);
  color: var(--white);
  text-align: center;
}
.cta a.btn-outline { border-color: var(--white); }

.site-footer {
  background: #111;
  color: #aaa;
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner a {
  color: #aaa;
  margin-left: 1rem;
  font-size: 0.875rem;
}

/* Section variants */
.section-problem {
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
.gradient-soft {
  background-image: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    rgba(0,0,0,0.02) 100%
  );
}

/* --------------------
  Experience page specific
--------------------- */
/* Center the Experience header */
.case-intro h1 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Side-by-side options; align text tops and buttons bottoms */
.case-intro .case-options {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.case-option {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  max-width: 360px;
  min-height: 320px;
}

/* Larger intro buttons (used in Experience options) */
.btn-lg { font-size: 1.1rem; padding: 0.85rem 1.5rem; }

.case-studies .cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  {
  .case-studies .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .case-studies .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Experience / Case Studies cards */
#experience.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

#experience .section-head {
  margin-bottom: 1rem;
}

#experience .max {
  margin-bottom: 2.5rem;
}

#experience .case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

@media (min-width: 768px) {
  #experience .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #experience .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.case-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #f4b000; /* Marketview gold accent */
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #042c59; /* Marketview navy */
  margin: 0 0 0.35rem;
}

.case-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

.case-card:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

/* --------------------
  Method Flow
--------------------- */
#method .method-flow {
  max-width: 760px;
  margin: 2rem 0; /* left-justified within container */
}

#method .method-step {
  position: relative;
  padding-left: 3rem;  /* space for chip */
  margin-bottom: 2rem;
}

#method .method-step:last-child {
  margin-bottom: 0;
}

#method .method-step .chip-num {
  position: absolute;
  left: 0;
  top: 0.25rem;
}

/* --------------------
  Problem / Solution
--------------------- */
#problem-solution .problem-solution-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

@media (max-width: 768px) {
  #problem-solution .problem-solution-layout {
    grid-template-columns: 1fr;
  }
}

.ps-block {
  position: relative;
  padding-left: 24px;
  margin-bottom: 32px;
}

.ps-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: calc(100% - 6px);
  background-color: #002C59; /* Marketview navy default */
}

/* Optional: subtle differentiation if desired */
.ps-block.solution::before {
  background-color: #007C8A; /* Marketview teal */
}

.ps-block.result::before {
  background-color: #F4A300; /* Marketview orange */
}

/* --------------------
  Impact Grid
--------------------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: 24px;
}

.impact-item {
  padding: 16px 20px;
  border-radius: 4px;
  background-color: #f7f7f7;
}

.impact-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.impact-item p {
  margin: 0;
}

/* Responsive: stack to 2 columns on tablet, 1 on mobile */
@media (max-width: 900px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------
  Section Head Styles (Who We Are, Impact, Method, Solutions, Leadership)
--------------------- */

/* Make sure these section headings are left-aligned */
.section h2.section-head,
.section-alt h2.section-head {
  text-align: left;
  margin-left: 0;
}

/* Base accent bar on section headings */
.section-head {
  position: relative;
  padding-left: 16px;
}

.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 5px;
  height: calc(100% - 4px);
  background-color: #042c59; /* default Marketview navy */
}

/* Section-specific accent colors */
#who-we-are .section-head::before {
  background-color: #042c59; /* navy */
}

#impact .section-head::before {
  background-color: #2ba7a0; /* teal */
}

#method .section-head::before {
  background-color: #f2a900; /* gold for Marketview Method */
}

/* Capabilities / Solutions */
#solutions .section-head::before {
  background-color: #042c59; /* navy for capabilities */
}

/* Leadership */
#leadership .section-head::before {
  background-color: #f2a900; /* gold for leadership */
}

/* Force left alignment inside these sections */
#who-we-are .container,
#impact .container,
#method .container,
#solutions .container,
#leadership .container {
  text-align: left !important;
}

/* Headings: no centering tricks, full left-justified */
#who-we-are h2.section-head,
#impact h2.section-head,
#method h2.section-head,
#solutions h2.section-head,
#leadership h2.section-head {
  display: block;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Paragraphs: full width in these sections, no max-width centering */
#who-we-are p,
#impact p,
#method p,
#solutions p,
#leadership p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

/* Soft background helpers for these sections */
.section-soft-teal {
  background-color: #eef7f6;
}

.section-soft-gold {
  background-color: #fbf6ea;
}

.section-soft-orange {
  background-color: #fff4e6;
}

/* --------------------
  CTA Layout
--------------------- */
.section.cta .actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .actions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.cta .actions .btn {
  display: inline-flex;
}

#problem-solution p,
#who-we-are p {
  max-width: 740px;
}
#who-we-are p {
  max-width: 920px !important;
}
/* Experience section layout */
#experience {
  background-color: var(--gray-100);
}

#experience .section-intro {
  max-width: 660px;
  margin-bottom: 2.5rem;
}

/* Grid of verticals */
.experience-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Each vertical “card” */
.experience-group {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.experience-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* List of case studies inside each vertical */
.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.experience-list li + li {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.experience-list h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.35rem;
}

.experience-list p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
}
.experience-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-navy {
  background-color: var(--brand-blue);
  color: #fff;
}

.btn-orange {
  background-color: var(--accent-orange);
  color: #fff;
}
/* Constrain line length for strategy intro copy */
#experience-intro .impact-list {
  max-width: 62rem;  /* ~830px, ideal for reading */
}
/* Align impact bullets with heading text, not the bar */
#experience-intro .impact-list {
  margin-left: 1.25rem;   /* matches .section-heading.with-bar padding */
  padding-left: 1rem;     /* bullet indentation */
}

