/* ============================================================
   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); }

/* ── UNIFIED SITE HEADER ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.site-header .main-nav {
  position: relative;
  top: auto;
  z-index: auto;
  height: 72px;
  max-width: 1440px;
  margin: 0 auto;
  box-shadow: none;
  border-bottom: 3px solid var(--accent);
}
.site-header .nav-brand { font-size: 1.15rem; white-space: nowrap; }
.site-header .nav-links { align-items: center; }
.site-header .nav-links > li { display: flex; align-items: center; }
.site-header .nav-links > li > a {
  font-size: 1.05rem;
  font-weight: 600;
}
.nav-dropdown { position: relative; gap: 0.15rem; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 36px;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 0.85rem;
  transition: color .2s, background .2s, transform .2s;
}
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible { color: var(--accent); background: rgba(255,255,255,0.08); }
.nav-dropdown.open .dropdown-toggle { transform: rotate(180deg); color: var(--accent); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  width: 330px;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.8rem;
  background: #0d2440;
  border: 1px solid rgba(20,184,166,0.65);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(2,12,27,0.42);
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}
.nav-dropdown.open .dropdown-menu { display: grid; }
.site-header .dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: rgba(255,255,255,0.94);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 7px;
}
.site-header .dropdown-menu a:hover,
.site-header .dropdown-menu a:focus-visible {
  color: var(--accent);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
  outline: none;
}
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 7px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform .2s, opacity .2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ── 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; }
  .site-header .main-nav { height: 64px; padding: 0 5%; }
  .site-header .nav-links { display: none !important; }
  .site-header .nav-cta {
    display: inline-flex !important;
    margin-left: auto;
    margin-right: 0.65rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
  }
  .hamburger { display: flex; }
  .mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 0.8rem 5% 1.25rem;
    border-bottom: 3px solid var(--accent);
    background: var(--navy);
  }
  .mobile-menu > a,
  .mobile-topic-grid a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 0.7rem;
    border-radius: 6px;
  }
  .mobile-menu > a:hover,
  .mobile-topic-grid a:hover { color: var(--accent); background: rgba(255,255,255,0.06); }
  .mobile-menu-label,
  .mobile-knowledge summary {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.8rem 0.7rem 0.35rem;
  }
  .mobile-knowledge { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .mobile-knowledge summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding-bottom: 0.75rem;
  }
  .mobile-knowledge summary::-webkit-details-marker { display: none; }
  .mobile-knowledge summary span { transition: transform .2s; }
  .mobile-knowledge[open] summary span { transform: rotate(180deg); }
  .mobile-topic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 0.4rem;
    padding-bottom: 0.55rem;
    margin-bottom: 0.45rem;
  }
  .mobile-menu .mobile-menu-cta {
    margin-top: 0.65rem;
    color: var(--navy);
    background: var(--accent);
    text-align: center;
    font-weight: 800;
  }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-header .nav-brand { font-size: 0.9rem; }
  .site-header .nav-cta { font-size: 0.68rem; padding: 0.42rem 0.58rem; }
  .mobile-topic-grid { grid-template-columns: 1fr; }
  .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; }
}
