/* BAZ CONSULTING INTERNATIONAL — brand color system from logo (#072533) */
:root {
  /* Brand palette — from logo and institutional navy */
  --color-brand-900: #072533;   /* dominant (logo), headings, dark panels */
  --color-brand-800: #0b2f42;
  --color-brand-700: #123f59;
  --color-brand-600: #1a5678;  /* supporting blue: links, buttons, accents */

  /* Surfaces */
  --color-surface: #ffffff;
  --color-surface-alt: #f5f7fa;  /* light cool grey-blue */
  --color-border: #d9e2ea;
  --color-border-muted: #e8eef4;

  /* Text */
  --color-text: #0f2432;
  --color-text-muted: #6f8595;

  /* Semantic (use these in components) */
  --color-bg: var(--color-surface);
  --color-primary: var(--color-brand-900);
  --color-primary-light: var(--color-brand-700);
  --color-primary-dark: var(--color-brand-800);
  --color-accent: var(--color-brand-600);
  --color-accent-hover: var(--color-brand-700);
  --color-link: var(--color-brand-600);
  --color-link-hover: var(--color-brand-700);
  --color-footer-bg: var(--color-brand-900);
  --color-footer-text: var(--color-white);
  --color-white: #ffffff;

  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "DM Sans", var(--font-sans);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 6rem;
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 72px;
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --type-hero: clamp(2rem, 4.5vw, 3rem);
  --type-h1: clamp(1.75rem, 3vw, 2.25rem);
  --type-h2: clamp(1.5rem, 2.5vw, 1.875rem);
  --type-lead: 1.1875rem;
  --line-tight: 1.25;
  --line-body: 1.6;
  --line-relaxed: 1.7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Skip to main content — visible on focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-brand-900);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-md);
  outline: 2px solid var(--color-brand-600);
  outline-offset: 2px;
}

/* Focus visible for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-brand-600);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(7, 37, 51, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-lg);
}

/* Desktop navigation — visible on large screens */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .nav-desktop__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.125rem;
  }

  .nav-desktop__list li {
    margin: 0;
  }

  .nav-desktop__list a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.01em;
    border-radius: var(--radius);
    transition: color 0.2s ease, background 0.2s ease;
  }

  .nav-desktop__list a:hover {
    color: var(--color-brand-700);
    background: var(--color-surface-alt);
  }

  .nav-desktop__list a.is-current {
    color: var(--color-brand-900);
    font-weight: 600;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.logo-text span {
  display: block;
  font-size: 0.75em;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Burger menu — visible on mobile/tablet only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle:hover {
  background: var(--color-border);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay — dark backdrop with optional blur (brand navy) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 37, 51, 0.5);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .nav-overlay.is-open {
    backdrop-filter: blur(6px);
  }
}

/* Off-canvas panel */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: var(--color-surface);
  box-shadow: -16px 0 48px rgba(7, 37, 51, 0.1), -4px 0 0 var(--color-border-muted);
  z-index: 99;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

/* Panel header — brand + close */
.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-muted);
}

.nav-drawer__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-drawer__brand:hover {
  color: var(--color-primary);
  opacity: 0.9;
}

.nav-drawer__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-drawer__brand-text {
  display: block;
  line-height: 1.2;
}

/* Close button */
.nav-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-surface-alt);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.nav-drawer__close:hover {
  background: var(--color-border-muted);
}

.nav-drawer__close:focus-visible {
  outline: 2px solid var(--color-brand-600);
  outline-offset: 2px;
}

.nav-drawer__close-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.nav-drawer__close-icon::before,
.nav-drawer__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 1px;
  transition: background 0.2s ease;
}

.nav-drawer__close:hover .nav-drawer__close-icon::before,
.nav-drawer__close:hover .nav-drawer__close-icon::after {
  background: var(--color-text);
}

.nav-drawer__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-drawer__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Panel body — scrollable nav */
.nav-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
}

.nav-drawer.is-open .nav-list > li {
  animation: nav-item-in 0.4s ease forwards;
}

.nav-drawer.is-open .nav-list > li:nth-child(1) { animation-delay: 0.04s; }
.nav-drawer.is-open .nav-list > li:nth-child(2) { animation-delay: 0.08s; }
.nav-drawer.is-open .nav-list > li:nth-child(3) { animation-delay: 0.12s; }
.nav-drawer.is-open .nav-list > li:nth-child(4) { animation-delay: 0.16s; }
.nav-drawer.is-open .nav-list > li:nth-child(5) { animation-delay: 0.2s; }
.nav-drawer.is-open .nav-list > li:nth-child(6) { animation-delay: 0.24s; }

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  margin: 0;
}

.nav-list > li > a {
  display: block;
  padding: 0.875rem 1rem;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--color-text);
  border-left: 3px solid transparent;
  margin-left: -1.5rem;
  padding-left: calc(1.5rem - 3px);
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.nav-list > li > a:hover {
  color: var(--color-brand-600);
  border-left-color: var(--color-brand-600);
  transform: translateX(2px);
}

.nav-list > li > a.is-current {
  font-weight: 600;
  color: var(--color-primary);
  border-left-color: var(--color-brand-600);
}

.nav-list .sub-nav {
  list-style: none;
  margin: 0.5rem 0 0.25rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--color-border);
}

.nav-list .sub-nav li { margin: 0; }

.nav-list .sub-nav a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 0.375rem 0;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav-list .sub-nav a:hover { color: var(--color-brand-600); }

/* Main content */
.main {
  min-height: calc(100vh - var(--header-h) - 200px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* Hero — split layout: branded visual left, content right on desktop */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(85vh, 640px);
}

.hero__visual {
  min-height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--color-surface-alt);
}

/* Subtle dot grid texture (works on light) */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0;
}

/* Soft vignette for depth on off-white */
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 30% 70%, transparent 50%, rgba(0, 0, 0, 0.04) 100%);
  pointer-events: none;
}

/* Hero left panel: logo */
.hero__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(140px, 28vw, 220px);
  height: auto;
  max-height: min(260px, 48vh);
  object-fit: contain;
  opacity: 0.95;
  pointer-events: none;
}

/* Faint abstract tech/network lines (for off-white panel) */
.hero__lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(105deg, rgba(0, 0, 0, 0.02) 0%, transparent 35%),
    linear-gradient(175deg, transparent 50%, rgba(0, 0, 0, 0.02) 100%);
  background-size: 100% 100%;
  pointer-events: none;
}

.hero__lines::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%23000' stroke-width='0.25' fill='none' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.8;
}

.hero__content {
  background: var(--color-brand-900);
  color: var(--color-white);
  display: flex;
  align-items: center;
  padding: var(--space-3xl) var(--space-xl);
}

.hero__content-inner {
  max-width: 520px;
  width: 100%;
}

.hero__eyebrow {
  margin: 0 0 var(--space-md);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero__title {
  font-size: var(--type-hero);
  font-weight: 700;
  line-height: var(--line-tight);
  margin: 0 0 var(--space-lg);
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.hero__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-md);
  border-radius: 2px;
}

.hero__lead {
  font-size: var(--type-lead);
  line-height: var(--line-relaxed);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 var(--space-xl);
}

.hero__points {
  list-style: none;
  margin: 0 0 var(--space-2xl);
  padding: 0;
}

.hero__points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-md);
  font-size: 1rem;
  line-height: var(--line-body);
  color: rgba(255, 255, 255, 0.9);
}

.hero__points li:last-child {
  margin-bottom: 0;
}

.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

/* Hero visual: simplify on small screens */
@media (max-width: 600px) {
  .hero__logo {
    width: clamp(100px, 32vw, 150px);
    max-height: 180px;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.1fr;  /* content left, visual right */
    min-height: min(75vh, 560px);
  }

  .hero__visual {
    min-height: auto;
  }

  .hero__content {
    padding: var(--space-4xl) var(--space-3xl);
  }
}

/* Section typography — homepage */
.section-title {
  font-size: var(--type-h2);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.02em;
  line-height: var(--line-tight);
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-brand-600);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.section-title--no-margin {
  margin-top: 0;
}

.section-eyebrow {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-lead {
  font-size: 1.0625rem;
  line-height: var(--line-relaxed);
  color: var(--color-text-muted);
  max-width: var(--max-width-narrow);
  margin: 0 0 var(--space-lg);
}

.link-arrow::before {
  content: "» ";
}

.link-arrow {
  font-weight: 600;
  color: var(--color-brand-600);
  transition: color 0.2s ease;
}

.link-arrow:hover {
  color: var(--color-brand-700);
}

.page-title {
  font-size: var(--type-h1);
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-2xl) 0 var(--space-md);
}

.page-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-brand-600);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-brand-600);
  color: var(--color-white);
  border-color: var(--color-brand-600);
}

.btn--primary:hover {
  background: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(7, 37, 51, 0.15);
}

/* Primary on dark (hero) */
.hero .btn--primary {
  background: var(--color-white);
  color: var(--color-brand-900);
  border-color: var(--color-white);
}

.hero .btn--primary:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.94);
  color: var(--color-brand-900);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: var(--color-brand-600);
  color: var(--color-white);
  border-color: var(--color-brand-600);
}

.btn-primary:hover {
  background: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-brand-600);
  border-color: var(--color-brand-600);
}

.btn-outline:hover {
  background: var(--color-brand-600);
  color: var(--color-white);
}

/* Cards */
.card-grid {
  display: grid;
  gap: var(--space-xl);
}

.card-grid--three {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--three { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid--three { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover {
  border-color: var(--color-brand-700);
  box-shadow: 0 8px 24px rgba(7, 37, 51, 0.08);
}

.card-link:hover .card__action {
  color: var(--color-brand-700);
}

.card h3,
.card__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: var(--line-tight);
}

.card p,
.card__desc {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: var(--line-body);
}

.card__action {
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.card a[href] {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Portfolio — case study showcase */
.portfolio-section {
  padding: var(--space-4xl) 0;
}

.portfolio-header {
  margin-bottom: var(--space-3xl);
  max-width: 640px;
}

.portfolio-header__title {
  font-size: var(--type-h1);
  font-weight: 700;
  color: var(--color-brand-900);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
  line-height: var(--line-tight);
}

.portfolio-header__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-brand-600);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.portfolio-header__intro {
  font-size: 1.0625rem;
  line-height: var(--line-relaxed);
  color: var(--color-text-muted);
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }
}

.portfolio-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  box-shadow: 0 2px 8px rgba(7, 37, 51, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(7, 37, 51, 0.1);
  border-color: var(--color-border-muted);
}

.portfolio-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-900);
  margin: 0 0 var(--space-md);
  line-height: var(--line-tight);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.portfolio-card:hover .portfolio-card__title {
  color: var(--color-brand-700);
}

.portfolio-card__desc {
  font-size: 0.9375rem;
  line-height: var(--line-body);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
  flex: 1;
}

.portfolio-card__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  margin: 0 0 var(--space-lg);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.portfolio-card__meta dt {
  color: var(--color-text-muted);
  font-weight: 500;
  margin: 0;
}

.portfolio-card__meta dd {
  margin: 0;
  color: var(--color-text);
  font-weight: 400;
}

.portfolio-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-brand-600);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease;
}

.portfolio-card__link:hover {
  color: var(--color-brand-700);
}

.portfolio-cta {
  margin-top: var(--space-3xl);
}

/* Services page — consulting capabilities */
.services-page {
  padding: var(--space-4xl) 0;
}

.services-header {
  margin-bottom: var(--space-4xl);
  max-width: 640px;
}

.services-header__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-600);
  margin: 0 0 var(--space-sm);
}

.services-header__title {
  font-size: var(--type-h1);
  font-weight: 700;
  color: var(--color-brand-900);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
  line-height: var(--line-tight);
}

.services-header__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-brand-600);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.services-header__intro {
  font-size: 1.125rem;
  line-height: var(--line-relaxed);
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}

.services-header__sub {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

.services-group {
  margin-bottom: var(--space-4xl);
}

.services-group:last-of-type {
  margin-bottom: var(--space-3xl);
}

.services-group__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-900);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.services-group__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .services-group__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-group__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 2px 8px rgba(7, 37, 51, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(7, 37, 51, 0.1);
  border-color: var(--color-border-muted);
}

.service-card__icon {
  display: block;
  width: 4px;
  height: 28px;
  background: var(--color-brand-600);
  border-radius: 2px;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.service-card:hover .service-card__icon {
  background: var(--color-brand-700);
}

.service-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-brand-900);
  margin: 0 0 var(--space-sm);
  line-height: var(--line-tight);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.service-card:hover .service-card__title {
  color: var(--color-brand-700);
}

.service-card__desc {
  font-size: 0.9375rem;
  line-height: var(--line-body);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
  flex: 1;
}

.service-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-brand-600);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease;
}

.service-card__link:hover {
  color: var(--color-brand-700);
}

.services-cta {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  margin-top: var(--space-4xl);
}

.services-cta__title {
  font-size: var(--type-h2);
  font-weight: 700;
  color: var(--color-brand-900);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
  line-height: var(--line-tight);
}

.services-cta__text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.services-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* Sections */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: var(--color-surface-alt);
}

/* Trusted Partners — premium logo showcase */
.trusted-partners {
  padding: var(--space-5xl) var(--space-xl);
  background: var(--color-surface-alt);
}

.trusted-partners__container {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.trusted-partners__header {
  margin-bottom: 3rem;
}

.trusted-partners__accent {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-brand-600);
  margin: 0 auto var(--space-md);
  border-radius: 2px;
}

.trusted-partners__title {
  font-size: clamp(1.625rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.trusted-partners__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.55;
  font-weight: 400;
}

.trusted-partners__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .trusted-partners__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 900px) {
  .trusted-partners__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.trusted-partners__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1.75rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
}

.trusted-partners__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(7, 37, 51, 0.06);
  border-color: var(--color-border-muted);
}

.trusted-partners__card .trusted-partners__logo {
  opacity: 0.72;
  transition: opacity 0.28s ease, color 0.28s ease;
}

.trusted-partners__card:hover .trusted-partners__logo {
  opacity: 1;
}

.trusted-partners__logo {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
}

.trusted-partners__card:hover .trusted-partners__logo {
  color: var(--color-primary);
}

.trusted-partners__logo img {
  max-height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Compact labels for long names */
.trusted-partners__logo--mcit,
.trusted-partners__logo--nitpaa,
.trusted-partners__logo--atra,
.trusted-partners__logo--isoc,
.trusted-partners__logo--ses {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

.trusted-partners__logo--maryam,
.trusted-partners__logo--kardan {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.trusted-partners__logo--moe {
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* Stats block */
.stats-block {
  background: var(--color-brand-900);
  color: var(--color-white);
  padding: var(--space-3xl) var(--space-xl);
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
  justify-items: center;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stat-item__num {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-item__num::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.stat-item__label {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}

.stat-item--divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
}

@media (max-width: 600px) {
  .stats-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .stat-item--divider {
    width: 48px;
    height: 1px;
  }
}

/* About page: 4-column stats */
.stats-inner--four {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl) var(--space-xl);
}

.stat-item__num--word {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .stats-inner--four {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-inner--four {
    grid-template-columns: 1fr;
  }
}

/* About page: Our Expertise — 4-card grid */
.about-expertise__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.about-expertise__card .service-card__desc {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .about-expertise__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .about-expertise__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* About page: Why Baz — 3 columns */
.about-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

.about-why__item {
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-why__item:hover {
  border-color: var(--color-border-muted);
  box-shadow: 0 4px 16px rgba(7, 37, 51, 0.06);
}

.about-why__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-brand-900);
  margin: 0 0 var(--space-md);
  line-height: var(--line-tight);
  letter-spacing: -0.01em;
}

.about-why__title::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--color-brand-600);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.about-why__text {
  font-size: 0.9375rem;
  line-height: var(--line-body);
  color: var(--color-text-muted);
  margin: 0;
}

@media (min-width: 640px) {
  .about-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .about-why__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Impact page: hero strip */
.impact-hero {
  background: var(--color-brand-900);
  color: var(--color-white);
  padding: var(--space-4xl) var(--space-xl);
}

.impact-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.impact-hero__title {
  font-size: var(--type-hero);
  font-weight: 700;
  line-height: var(--line-tight);
  margin: 0 0 var(--space-lg);
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.impact-hero__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-md);
  border-radius: 2px;
}

.impact-hero__lead {
  font-size: var(--type-lead);
  line-height: var(--line-relaxed);
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* Impact page: featured projects */
.impact-projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.impact-project {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.impact-project:hover {
  border-color: var(--color-border-muted);
  box-shadow: 0 4px 16px rgba(7, 37, 51, 0.06);
}

.impact-project__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-brand-900);
  margin: 0 0 var(--space-md);
  line-height: var(--line-tight);
  letter-spacing: -0.01em;
}

.impact-project__title::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--color-brand-600);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.impact-project__desc {
  font-size: 0.9375rem;
  line-height: var(--line-body);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.impact-project__meta {
  font-size: 0.8125rem;
  color: var(--color-brand-600);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

@media (min-width: 640px) {
  .impact-projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .impact-projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Impact page: social impact */
.impact-social__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.impact-social__item {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.impact-social__item:hover {
  border-color: var(--color-brand-600);
  box-shadow: 0 4px 16px rgba(7, 37, 51, 0.08);
}

.impact-social__icon {
  display: block;
  width: 4px;
  height: 28px;
  background: var(--color-brand-600);
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

.impact-social__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-brand-900);
  margin: 0 0 var(--space-md);
  line-height: var(--line-tight);
}

.impact-social__item:hover .impact-social__title {
  color: var(--color-brand-700);
}

.impact-social__text {
  font-size: 0.9375rem;
  line-height: var(--line-body);
  color: var(--color-text-muted);
  margin: 0;
}

@media (min-width: 640px) {
  .impact-social__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .impact-social__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CTA box */
.cta-box {
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  border: 1px solid var(--color-border);
}

.cta-box__title {
  margin: 0 0 var(--space-md);
  font-size: var(--type-h2);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.cta-box__text {
  margin: 0 auto var(--space-xl);
  max-width: 480px;
  font-size: 1.0625rem;
  line-height: var(--line-relaxed);
  color: var(--color-text-muted);
}

/* Footer — aligned with main site structure */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-3xl) var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand .logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-white);
  text-decoration: none;
}

.footer-brand .logo-link:hover {
  color: var(--color-white);
  opacity: 0.95;
}

.footer-brand .logo-img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.footer-brand .logo-text {
  color: var(--color-white);
  font-size: 0.95rem;
}

.footer-brand .logo-text span {
  color: rgba(255, 255, 255, 0.9);
}

.footer-brand .company-tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-xs);
}

.footer-grid {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-md);
  color: var(--color-white);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin: 0; }

.footer-col a {
  display: block;
  padding: var(--space-xs) 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-bottom p { margin: 0; }

.footer-inner a {
  color: rgba(255,255,255,0.9);
}

.footer-inner a:hover {
  color: var(--color-white);
}

.footer-inner h3 {
  font-size: 1rem;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}

.footer-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--color-link);
}

.breadcrumb a:hover {
  color: var(--color-brand-700);
}

.breadcrumb span {
  margin: 0 var(--space-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Page intro — short lead text under title */
.page-intro {
  max-width: 720px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
  font-size: 1.05rem;
}

/* Service detail page — long-form content */
.service-detail {
  padding: var(--space-4xl) 0;
}

.service-detail__block {
  margin-bottom: var(--space-3xl);
}

.service-detail__block:last-of-type {
  margin-bottom: var(--space-2xl);
}

.service-detail__heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-900);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.01em;
  line-height: var(--line-tight);
}

.service-detail__heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-brand-600);
  margin-top: var(--space-xs);
  border-radius: 2px;
}

.service-detail__lead {
  font-size: 1.0625rem;
  line-height: var(--line-relaxed);
  color: var(--color-text);
  margin: 0 0 var(--space-lg);
}

.service-detail__sub {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0 0 var(--space-md);
}

.service-detail__block p {
  font-size: 1rem;
  line-height: var(--line-body);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

.service-detail__block p:last-child {
  margin-bottom: 0;
}

.service-detail__quote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) 0 var(--space-lg) var(--space-lg);
  border-left: 4px solid var(--color-brand-600);
  font-size: 1rem;
  line-height: var(--line-body);
  color: var(--color-text-muted);
}

.service-detail__quote p {
  margin: 0 0 var(--space-sm);
}

.service-detail__quote p:last-of-type {
  margin-bottom: 0;
}

.service-detail__quote cite {
  font-size: 0.875rem;
  font-style: normal;
  color: var(--color-text);
}

.service-detail__list {
  margin: var(--space-md) 0 0;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.service-detail__list li {
  margin-bottom: var(--space-sm);
}

.service-detail__list li:last-child {
  margin-bottom: 0;
}

.service-detail__list--two-col {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1.5rem;
}

.service-detail__list--two-col li {
  position: relative;
  padding-left: 1.25rem;
}

.service-detail__list--two-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background: var(--color-brand-600);
  border-radius: 50%;
}

@media (min-width: 480px) {
  .service-detail__list--two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-detail__back {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

/* On this page — jump links */
.on-this-page {
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.on-this-page h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  color: var(--color-primary);
}

.on-this-page ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.on-this-page a {
  font-size: 0.9rem;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: inline-block;
}

.on-this-page a:hover {
  border-color: var(--color-brand-600);
  color: var(--color-brand-600);
}

/* Utility */
.read-more::before { content: "» "; }
.text-accent { color: var(--color-brand-600); }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: var(--space-lg); }
