/* ============================================================
   LEAN SIX SIGMA MATTERS — Shared Stylesheet
   leansixsigmamatters.com
   All pages link to this file for consistent look & feel.
   ============================================================ */

/* ── RESET & ROOT ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0A1628;
  --blue:    #1A3A6C;
  --accent:  #E8A020;
  --teal:    #0E7490;
  --light:   #F4F7FB;
  --white:   #FFFFFF;
  --gray:    #6B7280;
  --text:    #1F2937;
  --border:  #E5E7EB;
  --success: #16A34A;
  --warn:    #B45309;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { transition: color .2s; }

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

/* ── TOP BAR ───────────────────────────────────────────────── */
.top-bar {
  background: linear-gradient(90deg, #0A1628 0%, #1A3A6C 60%, #0E7490 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 62px;
  border-bottom: 3px solid var(--accent);
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.top-bar-brand {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-decoration: none;
  white-space: nowrap;
}
.top-bar-brand span { color: var(--accent); }
.top-bar-links {
  display: flex;
  gap: 0;
  list-style: none;
  flex: 1;
  justify-content: flex-end;
}
.top-bar-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0 1.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.12);
  transition: background .2s, color .2s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.top-bar-links a:hover,
.top-bar-links a.active { background: rgba(255,255,255,0.08); color: var(--accent); }
.top-bar-links a.active { border-bottom: 3px solid var(--accent); }

/* ── MAIN NAV ──────────────────────────────────────────────── */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-brand {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); border-bottom-color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: var(--navy);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #f5b840; transform: translateY(-1px); }

/* ── PAGE HERO (inner pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, #0e4a72 100%);
  padding: 64px 5% 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.4);
  color: var(--accent);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 620px;
}

/* ── SECTION BASE ──────────────────────────────────────────── */
.section { padding: 80px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-light { background: var(--light); }
.section-white { background: var(--white); }
.section-dark {
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.section-tag {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.section-title-white { color: var(--white); }
.section-sub {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 2.5rem;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: var(--navy);
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #f5b840;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,160,32,0.35);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.45);
  color: var(--white);
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all .2s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all .2s;
}
.btn-outline-dark:hover { background: var(--teal); color: var(--white); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: var(--teal);
}
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.card p { font-size: 0.875rem; color: var(--gray); line-height: 1.65; }

/* ── TAGS / BADGES ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.85rem;
}
.badge-blue   { background: #EFF6FF; color: #1D4ED8; }
.badge-green  { background: #F0FDF4; color: #16A34A; }
.badge-amber  { background: #FFFBEB; color: #B45309; }
.badge-teal   { background: #F0FDFA; color: #0E7490; }
.badge-purple { background: #FDF4FF; color: #9333EA; }

/* ── DIVIDER ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ── GRID HELPERS ──────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  padding: 0.75rem 5%;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--gray);
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 0.4rem; color: var(--border); }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 48px 5% 24px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { }
.footer-logo {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--accent); }
.footer-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--accent); color: var(--navy); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color .2s;
}
.footer-bottom-links a:hover { color: var(--accent); }

/* ── CTA BANNER ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #0E7490 0%, var(--navy) 100%);
  padding: 72px 5%;
  text-align: center;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .top-bar-links { display: none; }
  .nav-links { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 5%; }
  .page-hero { padding: 48px 5% 40px; }
}
