/* ===================================================
   Lean Counsel — Shared Components
   Nav, Footer, Buttons, Mobile Menu
   =================================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--dark);
}

.btn--primary:hover {
  filter: brightness(0.9);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--accent);
}

.btn--pill {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 100px;
  padding: 10px 28px;
  font-size: 14px;
}

.btn--pill:hover {
  background: var(--accent);
  color: var(--white);
}

.btn--large {
  padding: 18px 40px;
  font-size: 16px;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(245, 243, 238, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}

.site-header:not(.is-scrolled) .nav__wordmark {
  color: var(--paper);
}

/* Light header variant (for pages with light hero) */
.site-header--light .nav__wordmark {
  color: var(--ink);
}

.site-header--light:not(.is-scrolled) .nav__wordmark {
  color: var(--ink);
}

.site-header--light:not(.is-scrolled) .nav__link:hover {
  color: var(--ink);
}

.site-header--light:not(.is-scrolled) .nav__hamburger span {
  background: var(--ink);
}

.nav__arm-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Keep backward compat with .nav__studio */
.nav__studio {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s ease;
}

.site-header:not(.is-scrolled) .nav__link {
  color: var(--dim);
}

.nav__link:hover {
  color: var(--ink);
}

.site-header:not(.is-scrolled) .nav__link:hover {
  color: var(--paper);
}

.nav__actions {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav__ecosystem-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  transition: color 0.2s ease;
}

.site-header:not(.is-scrolled) .nav__ecosystem-link {
  color: var(--dim);
}

.nav__ecosystem-link:hover {
  color: var(--accent);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s ease;
}

.site-header:not(.is-scrolled) .nav__hamburger span {
  background: var(--paper);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--paper);
  transition: color 0.2s ease;
}

.mobile-menu__link:hover {
  color: var(--accent);
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
}

.mobile-menu__cta {
  margin-top: 16px;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--dark);
  padding: 64px 0 0;
  border-top: 1px solid var(--rule);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 4px;
}

.footer__brand-arabic {
  font-size: 16px;
  color: var(--dim);
  margin-bottom: 8px;
}

.footer__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--dim);
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer__nav-column h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dim);
  margin-bottom: 16px;
}

.footer__nav-column a {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--paper);
  opacity: 0.7;
  margin-bottom: 10px;
  transition: opacity 0.2s ease;
}

.footer__nav-column a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer__right a {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--paper);
  opacity: 0.7;
  margin-bottom: 10px;
  transition: opacity 0.2s ease;
}

.footer__right a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dim);
}

.footer__values {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ===================================================
   SHARED SECTION PATTERNS
   =================================================== */

/* Hero — reusable across all arm pages */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 0;
  position: relative;
}

.hero__content {
  padding-bottom: 80px;
}

.hero__rule {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 32px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 24px;
}

.hero__headline-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.6s ease forwards;
}

.hero__headline-line:nth-child(1) { animation-delay: 0ms; }
.hero__headline-line:nth-child(2) { animation-delay: 120ms; }
.hero__headline-line:nth-child(3) { animation-delay: 240ms; }

.hero__headline-line--italic {
  font-style: italic;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Stats Bar */
.stats-bar {
  background: rgba(26, 26, 26, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stats-bar__item {
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.stats-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: var(--rule);
  display: none;
}

.stats-bar__number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.2;
}

.stats-bar__number--text {
  font-size: 24px;
}

.stats-bar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-top: 4px;
}

/* Service Card — reusable across arms */
.service-card {
  border: 1px solid var(--rule);
  padding: 28px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  margin-top: -1px;
}

.service-card:first-child {
  margin-top: 0;
}

.service-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.service-card__code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}

.service-card__description {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dim);
  line-height: 1.6;
  flex: 1;
}

.service-card__arrow {
  font-size: 18px;
  color: var(--accent);
  margin-top: 16px;
  display: block;
}

/* Layer Panel — reusable across arms */
.layer-panel {
  background: var(--white);
  border-top: 3px solid var(--accent);
  padding: 32px 28px;
}

.layer-panel__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.layer-panel__subtext {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.layer-panel__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--dim);
  margin-bottom: 24px;
}

.layer-panel__products {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layer-panel__product {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
}

/* GCC Credentials — reusable */
.gcc {
  background: var(--paper);
  padding: 100px 0;
  border-top: 1px solid var(--rule);
}

.gcc__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 48px;
  max-width: 560px;
}

.gcc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.gcc-card__number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.gcc-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}

.gcc-card__body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dim);
  line-height: 1.6;
}

/* Ecosystem Cards — reusable */
.ecosystem-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--gold);
  padding: 28px;
  transition: all 0.2s ease;
}

.ecosystem-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ecosystem-card--propel   { border-top-color: var(--propel); }
.ecosystem-card--colleague { border-top-color: var(--colleague); }
.ecosystem-card--connect  { border-top-color: var(--connect); }

.ecosystem-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 8px;
}

.ecosystem-card__body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dim);
  line-height: 1.6;
}

/* CTA Section — reusable dark section */
.cta-section {
  background: var(--dark);
  padding: 80px 0;
  text-align: center;
}

.cta-section__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: var(--paper);
  margin-bottom: 24px;
}

.cta-section__sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--dim);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Cross-sell strip */
.cross-sell {
  background: var(--paper);
  padding: 60px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.cross-sell__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dim);
  margin-bottom: 24px;
}

.cross-sell__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.cross-sell__link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}

.cross-sell__link:hover {
  color: var(--accent);
}

/* ===================================================
   RESPONSIVE — Tablet (768px)
   =================================================== */
@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  .hero__headline {
    font-size: 56px;
  }

  .hero__sub {
    font-size: 18px;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-bar__item:not(:last-child)::after {
    display: block;
  }

  .service-card {
    margin-top: 0;
  }

  .gcc {
    padding: 120px 0;
  }

  .gcc__headline {
    font-size: 36px;
  }

  .gcc__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .cta-section__headline {
    font-size: 36px;
  }
}

/* ===================================================
   RESPONSIVE — Desktop (1200px)
   =================================================== */
@media (min-width: 1200px) {
  .nav__actions {
    display: flex;
  }

  .hero {
    padding: 160px 0 0;
  }

  .hero__headline {
    font-size: 72px;
  }

  .stats-bar__number {
    font-size: 48px;
  }

  .gcc__headline {
    font-size: 44px;
  }

  .gcc__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cta-section__headline {
    font-size: 44px;
  }
}
