/* ============================================================
   MERIDIAN CONSULTING GROUP — shared stylesheet
   Token system
   ============================================================ */

:root{
  --navy:        #0B1B33;
  --navy-2:      #132A4E;
  --navy-soft:   #1C3760;
  --gold:        #B8935B;
  --gold-light:  #E3C793;
  --cream:       #F5F1E8;
  --paper:       #FBFAF6;
  --white:       #FFFFFF;
  --ink:         #16202E;
  --slate:       #5C6B7F;
  --slate-light: #93A0B2;
  --line:        rgba(11,27,51,0.12);
  --line-gold:   rgba(184,147,91,0.45);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --maxw: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; margin:0 0 .5em; letter-spacing:-.01em; color:var(--navy); }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

.wrap{ max-width:var(--maxw); margin:0 inline-auto; margin-inline:auto; padding-inline:clamp(1.25rem,4vw,2.5rem); }

.eyebrow{
  font-family:var(--mono);
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold);
  display:flex;
  align-items:center;
  gap:.6em;
  margin-bottom:.9em;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--gold);
  display:inline-block;
}

/* ---------- The Meridian Line (signature divider) ---------- */
.meridian-line{
  width:100%;
  height:34px;
  display:block;
  color:var(--gold);
}
.meridian-line.on-navy{ color:var(--gold-light); opacity:.8; }
.meridian-line.light{ color:var(--line); }

/* ---------- Header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,27,51,0.96);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(184,147,91,0.25);
}
.nav{
  max-width:var(--maxw); margin-inline:auto;
  padding:.85rem clamp(1.25rem,4vw,2.5rem);
  display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:.65rem; }
.brand-mark{ width:34px; height:34px; flex:none; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{
  font-family:var(--serif); color:var(--white); font-size:1.05rem; letter-spacing:.02em;
}
.brand-text span{
  font-family:var(--mono); color:var(--gold-light); font-size:.6rem; letter-spacing:.14em; text-transform:uppercase;
}
.nav-links{ display:flex; gap:clamp(1rem,2vw,1.9rem); align-items:center; }
.nav-links a{
  color:rgba(255,255,255,.82); font-size:.88rem; font-weight:500; letter-spacing:.01em;
  padding:.3rem 0; border-bottom:1px solid transparent; transition:color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active{ color:var(--white); border-color:var(--gold); }
.nav-cta{
  background:var(--gold); color:var(--navy) !important; padding:.55rem 1.1rem !important;
  border-radius:2px; font-weight:600 !important; border-bottom:none !important;
}
.nav-cta:hover{ background:var(--gold-light); }
.nav-toggle{
  display:none; background:none; border:1px solid rgba(255,255,255,.35); color:var(--white);
  width:38px; height:34px; border-radius:2px; cursor:pointer;
}
.nav-toggle span{ display:block; width:16px; height:1px; background:var(--white); margin:3px auto; }

@media (max-width: 860px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; background:var(--navy);
    flex-direction:column; align-items:stretch; padding:0 1.25rem; max-height:0; overflow:hidden;
    border-bottom:1px solid rgba(184,147,91,.25); transition:max-height .3s ease;
  }
  .nav-links.open{ max-height:420px; padding-block:1rem; }
  .nav-links a{ padding:.7rem 0; border-bottom:1px solid rgba(255,255,255,.08) !important; }
  .nav-cta{ margin-top:.5rem; text-align:center; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-family:var(--sans); font-weight:600; font-size:.92rem;
  padding:.85rem 1.6rem; border-radius:2px; cursor:pointer; border:1px solid transparent;
  transition:transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-gold{ background:var(--gold); color:var(--navy); }
.btn-gold:hover{ background:var(--gold-light); }
.btn-outline{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.55); }
.btn-outline:hover{ border-color:var(--white); }
.btn-outline-navy{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline-navy:hover{ background:var(--navy); color:var(--white); }
.btn-row{ display:flex; gap:1rem; flex-wrap:wrap; }

/* ---------- Hero ---------- */
.hero{
  position:relative; background:radial-gradient(120% 160% at 15% 0%, #16345F 0%, var(--navy) 55%, #081328 100%);
  color:var(--white); overflow:hidden;
}
.hero-inner{ max-width:var(--maxw); margin-inline:auto; padding:clamp(3.5rem,8vw,6.5rem) clamp(1.25rem,4vw,2.5rem) clamp(2.5rem,6vw,4rem); position:relative; z-index:2; }
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(2rem,5vw,4rem); align-items:center; }
.hero h1{
  color:var(--white); font-size:clamp(2.1rem,4.6vw,3.4rem); line-height:1.08; margin-bottom:.55em; max-width:14ch;
}
.hero h1 em{ font-style:italic; color:var(--gold-light); }
.hero p.lede{ font-size:1.08rem; color:rgba(255,255,255,.82); max-width:46ch; margin-bottom:1.9em; }
.hero-photo{
  position:relative; border-radius:3px; overflow:hidden; border:1px solid rgba(184,147,91,.35);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.6);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; }
.hero-photo::after{
  content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(11,27,51,.55), transparent 45%);
}
.hero-photo-cap{
  position:absolute; left:0; right:0; bottom:0; padding:.9rem 1.1rem; z-index:2;
  font-family:var(--mono); font-size:.68rem; letter-spacing:.08em; color:var(--gold-light); text-transform:uppercase;
}
.hero-meridian{ margin-top:clamp(2.5rem,6vw,4rem); }

/* ---------- Sections ---------- */
section{ padding:clamp(3.25rem,7vw,5.5rem) 0; }
.section-head{ max-width:640px; margin-bottom:clamp(2rem,4vw,3rem); }
.section-head h2{ font-size:clamp(1.7rem,3.2vw,2.4rem); }
.section-head p{ color:var(--slate); font-size:1.02rem; }
.on-navy{ background:var(--navy); color:rgba(255,255,255,.88); }
.on-navy h2, .on-navy h3, .on-navy h4{ color:var(--white); }
.on-navy .section-head p{ color:rgba(255,255,255,.68); }
.on-cream{ background:var(--cream); }
.on-white{ background:var(--white); }
.divider-top{ border-top:1px solid var(--line); }

/* Challenges */
.challenge-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
.challenge-card{ padding:2rem 1.7rem; background:var(--white); border:1px solid var(--line); border-top:3px solid var(--gold); }
.challenge-card h3{ font-size:1.15rem; }
.challenge-card p{ color:var(--slate); margin:0; font-size:.95rem; }

/* How we work / framework */
.flow{ display:flex; align-items:center; justify-content:space-between; gap:.5rem; flex-wrap:wrap; }
.flow-step{ flex:1; min-width:150px; text-align:center; }
.flow-step .num{ font-family:var(--mono); color:var(--gold); font-size:.75rem; letter-spacing:.1em; display:block; margin-bottom:.4em; }
.flow-step h4{ margin-bottom:.35em; font-size:1.05rem; }
.flow-step p{ color:var(--slate); font-size:.88rem; margin:0; }
.flow-arrow{ color:var(--gold); font-size:1.3rem; opacity:.7; }
@media (max-width:760px){ .flow{ flex-direction:column; } .flow-arrow{ transform:rotate(90deg); } }

.framework-band{
  background:var(--navy); color:var(--white); padding:clamp(2.5rem,5vw,3.5rem) clamp(1.5rem,4vw,3rem);
  border:1px solid rgba(184,147,91,.35); position:relative;
}
.framework-steps{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:1.2rem; margin-top:1.6rem; }
.framework-step{ flex:1; min-width:130px; text-align:center; position:relative; }
.framework-step .dot{ width:9px; height:9px; border-radius:50%; background:var(--gold); margin:0 auto .7rem; }
.framework-step h5{ font-family:var(--serif); font-size:1.02rem; color:var(--white); margin:0; }
.framework-track{ position:absolute; left:0; right:0; top:calc(1.6rem + 4.5px + .7rem - 4.5px); height:1px; background:rgba(184,147,91,.4); z-index:0; }

/* Services */
.service-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--gap); }
.service-card{ background:var(--white); border:1px solid var(--line); padding:2.1rem; display:flex; flex-direction:column; gap:1rem; }
.service-card .tag{ font-family:var(--mono); font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); }
.service-card h3{ font-size:1.3rem; margin-bottom:.2em; }
.service-card ul li{ position:relative; padding-left:1.1em; color:var(--slate); font-size:.92rem; margin-bottom:.4em; }
.service-card ul li::before{ content:"–"; position:absolute; left:0; color:var(--gold); }

/* Before/After */
.ba-grid{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); }
.ba-col{ padding:2rem; border:1px solid var(--line); }
.ba-col.before{ background:var(--white); }
.ba-col.after{ background:var(--navy); color:var(--white); border-color:transparent; }
.ba-col h4{ font-family:var(--mono); text-transform:uppercase; font-size:.78rem; letter-spacing:.14em; margin-bottom:1.1em; }
.ba-col.before h4{ color:var(--slate); }
.ba-col.after h4{ color:var(--gold-light); }
.ba-col li{ padding:.55em 0; border-bottom:1px solid var(--line); font-size:.95rem; }
.ba-col.after li{ border-bottom-color:rgba(255,255,255,.14); }
.ba-col li:last-child{ border-bottom:none; }

/* Featured engagement */
.feature-panel{ display:grid; grid-template-columns:.9fr 1.1fr; border:1px solid var(--line); overflow:hidden; }
.feature-panel .side{ background:var(--navy); color:var(--white); padding:clamp(2rem,4vw,3rem); display:flex; flex-direction:column; justify-content:center; }
.feature-panel .main{ padding:clamp(2rem,4vw,3rem); background:var(--white); }
.feature-list{ display:grid; gap:.8rem; margin:1.4rem 0 1.8rem; }
.feature-list li{ display:flex; gap:.7em; align-items:baseline; font-size:.95rem; color:var(--ink); }
.feature-list li .k{ font-family:var(--mono); color:var(--gold); font-size:.75rem; min-width:3.4em; }
@media (max-width:820px){ .feature-panel{ grid-template-columns:1fr; } }

/* Experts */
.expert-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--gap); }
.expert-card{ background:var(--white); border:1px solid var(--line); overflow:hidden; }
.expert-photo{ aspect-ratio:3/4; overflow:hidden; background:var(--navy); position:relative; }
.expert-photo img{ width:100%; height:100%; object-fit:cover; }
.expert-photo.mono{ display:flex; align-items:center; justify-content:center; }
.expert-photo.mono span{ font-family:var(--serif); color:var(--gold-light); font-size:3rem; }
.expert-body{ padding:1.4rem 1.3rem 1.6rem; }
.expert-body .role{ font-family:var(--mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); display:block; margin-bottom:.5em; }
.expert-body h3{ font-size:1.12rem; margin-bottom:.35em; }
.expert-body p{ color:var(--slate); font-size:.86rem; margin-bottom:1rem; }
.expert-body a.more{ font-size:.82rem; font-weight:600; color:var(--navy); border-bottom:1px solid var(--gold); padding-bottom:2px; }
.expert-linkedin{ display:inline-flex; align-items:center; gap:.4em; margin-left:.9em; font-size:.82rem; color:var(--slate); }
@media (max-width:980px){ .expert-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .expert-grid{ grid-template-columns:1fr; } }

/* Insights */
.insight-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--gap); }
.insight-card{ background:var(--white); border:1px solid var(--line); padding:1.7rem; display:flex; flex-direction:column; gap:.7rem; }
.insight-card .cat{ font-family:var(--mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); }
.insight-card h3{ font-size:1.08rem; }
.insight-card h3 a{ color:var(--navy); }
.insight-card h3 a:hover{ color:var(--gold); }
.insight-card p{ color:var(--slate); font-size:.9rem; margin:0; }
.insight-card .meta{ font-size:.8rem; color:var(--slate-light); margin-top:.3rem; }
.insight-card .read-more{ font-size:.82rem; font-weight:600; color:var(--navy); border-bottom:1px solid var(--gold); padding-bottom:2px; align-self:flex-start; margin-top:.2rem; }
@media (max-width:1100px){ .insight-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .insight-grid{ grid-template-columns:1fr; } }

/* Speaking & Events */
.speak-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.4rem; }
.speak-card{ background:var(--white); border:1px solid var(--line); padding:1.5rem; text-align:left; }
.speak-photo{ width:56px; height:56px; border-radius:50%; overflow:hidden; margin-bottom:1rem; background:var(--navy); }
.speak-photo img{ width:100%; height:100%; object-fit:cover; }
.speak-card h4{ font-size:1rem; margin-bottom:.2em; }
.speak-card .spec{ font-family:var(--mono); font-size:.65rem; text-transform:uppercase; letter-spacing:.08em; color:var(--gold); margin-bottom:.7em; display:block; }
.speak-card ul li{ font-size:.85rem; color:var(--slate); padding:.25em 0; }
@media (max-width:980px){ .speak-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .speak-grid{ grid-template-columns:1fr; } }

.events-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; margin-top:1rem; }
.event-pill{ background:var(--white); border:1px solid var(--line); border-left:3px solid var(--gold); padding:1.1rem 1.3rem; font-weight:600; font-size:.95rem; }

/* Final CTA */
.cta-band{
  background:linear-gradient(120deg, var(--navy) 0%, #0E223F 100%);
  color:var(--white); text-align:center; padding:clamp(3.5rem,7vw,5.5rem) 0;
}
.cta-band h2{ color:var(--white); font-size:clamp(1.9rem,4vw,2.7rem); max-width:16ch; margin-inline:auto 1em; }
.cta-band .btn-row{ justify-content:center; margin-top:1.7rem; }
.band{
  display: flex;
  justify-content: center;
}
.ctaimg{
  width: 30%;
  height: 50%;
}

/* Forms */
.form-card{ background:var(--white); border:1px solid var(--line); padding:clamp(1.75rem,4vw,2.75rem); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.1rem 1.4rem; }
.form-grid .full{ grid-column:1/-1; }
label{ display:block; font-size:.82rem; font-weight:600; color:var(--navy); margin-bottom:.4em; }
input, select, textarea{
  width:100%; font-family:var(--sans); font-size:.94rem; padding:.75rem .85rem;
  border:1px solid var(--line); background:var(--paper); border-radius:2px; color:var(--ink);
}
input:focus, select:focus, textarea:focus{ outline:2px solid var(--gold); outline-offset:1px; border-color:var(--gold); }
textarea{ resize:vertical; min-height:110px; }
.form-note{ font-size:.82rem; color:var(--slate); margin-top:1rem; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }

/* Page hero (interior pages) */
.page-hero{ background:var(--navy); color:var(--white); padding:clamp(3rem,7vw,4.5rem) 0 clamp(2.2rem,4vw,3rem); }
.page-hero h1{ color:var(--white); font-size:clamp(1.9rem,4vw,2.9rem); max-width:20ch; }
.page-hero p{ color:rgba(255,255,255,.75); max-width:56ch; font-size:1.02rem; }
.breadcrumb{ font-family:var(--mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-light); margin-bottom:1rem; }

/* Footer */
.site-footer{ background:var(--navy); color:rgba(255,255,255,.72); padding:clamp(3rem,6vw,4rem) 0 1.6rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:2.5rem; }
.footer-brand{ display:flex; gap:.65rem; align-items:center; margin-bottom:1rem; }
.footer-brand strong{ font-family:var(--serif); color:var(--white); font-size:1.1rem; }
.footer-tag{ font-size:.88rem; color:rgba(255,255,255,.6); max-width:32ch; }
.footer-col h5{ font-family:var(--mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--gold-light); margin-bottom:1rem; }
.footer-col a{ display:block; font-size:.88rem; padding:.32rem 0; color:rgba(255,255,255,.72); }
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); margin-top:2.6rem; padding-top:1.4rem;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:.7rem; font-size:.78rem; color:rgba(255,255,255,.5);
}
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }

/* Generic helpers */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); }
.center{ text-align:center; }
.mt{ margin-top:var(--gap); }
.small{ font-size:.85rem; color:var(--slate); }
.chip-row{ display:flex; flex-wrap:wrap; gap:.5rem; }
.chip{ font-family:var(--mono); font-size:.72rem; padding:.35em .8em; border:1px solid var(--line-gold); color:var(--navy); background:var(--cream); }

@media (max-width:980px){
  .challenge-grid, .service-grid, .ba-grid, .grid-2{ grid-template-columns:1fr; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-photo{ order:-1; }
}
