/* ==========================================================================
   SAIP CONSULTING — MODERN ENTERPRISE STYLESHEET
   Playbook: Professional & B2B Services (Variant B: Crisp Modern Firm)
   Palette Anchor: #0a58ca (Refined Brand Sapphire) & #071d49 (Deep Corporate Navy)
   Typography: Schibsted Grotesk (Headings) & IBM Plex Sans (Body/Data)
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0a58ca;
  --primary-text: #ffffff;
  --accent: #d97706;
  --dark: #07111e;
  --dark-text: #ffffff;
  --hero-bg: #071d49;
  --hero-text: #ffffff;

  /* Derived Tonal Tokens */
  --primary-hover: #084298;
  --primary-tint: #eff6ff;
  --accent-hover: #b45309;
  --accent-tint: #fef3c7;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-dark-strong: rgba(255, 255, 255, 0.24);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);

  /* Layout & Radii */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Typography Stacks */
  --font-display: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Base Reset & Accessibility --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip; /* Fix overflows without disabling sticky */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Accessible Focus Rings */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.dark-band :focus-visible,
.hero-band :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Container Architecture --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container-narrow {
  max-width: 860px;
}

/* --- Typography Scale (fluid clamp) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  color: var(--muted);
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.dark-band .eyebrow,
.hero-band .eyebrow {
  color: #93c5fd;
}

.eyebrow-accent {
  color: var(--accent);
}

/* --- Top Bar (never sticky) --- */
.top-bar {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  z-index: 1010;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 1rem;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.top-bar-link:hover {
  color: #ffffff;
}

.top-bar-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Mobile top bar constraints: exactly one row <= 36px */
@media (max-width: 767.98px) {
  .top-bar {
    max-height: 36px;
  }
  .top-bar-inner {
    min-height: 34px;
    height: 34px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .top-bar-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .top-bar-link {
    font-size: 0.75rem;
    gap: 0.25rem;
  }
  .top-bar-hide-mobile {
    display: none !important;
  }
}

/* --- Global Sticky Header --- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 72px;
  flex-wrap: nowrap;
}

/* Logo */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  background: var(--hero-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}

.brand-submark {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Desktop Navigation */
nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--background);
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-tint);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  color: var(--text);
}

.mobile-action-icon {
  display: none;
}

/* Mobile Header Constraints (< 768px): 56-64px tall */
@media (max-width: 767.98px) {
  header.site-header {
    height: clamp(56px, 12vw, 64px);
  }
  .header-inner {
    height: 100%;
    padding-inline: 0.75rem;
    gap: 0.5rem;
  }
  nav.desktop-nav {
    display: none;
  }
  .header-actions .btn-header-cta {
    display: none;
  }
  .mobile-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    background-color: #25d366;
    flex-shrink: 0;
  }
  .mobile-action-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin-inline-start: auto;
  }
  .brand-logo-link {
    max-width: min(60vw, 220px);
  }
  .brand-submark {
    display: none;
  }
}

/* --- Mobile Drawer Panel --- */
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
  display: none;
  flex-direction: column;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  z-index: 999;
}

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

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  background-color: var(--background);
}

.mobile-drawer-link.active,
.mobile-drawer-link:hover {
  background-color: var(--primary-tint);
  color: var(--primary);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  min-height: 48px; /* Touch target >= 48px */
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--primary-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 88, 202, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary-dark {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary-dark:hover {
  background-color: var(--background);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
}

.btn-lg {
  padding: 0.875rem 1.85rem;
  font-size: 1.05rem;
  min-height: 52px;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  min-height: 38px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: var(--primary-tint);
  color: var(--primary);
}

.badge-accent {
  background-color: var(--accent-tint);
  color: #92400e;
}

.badge-dark {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Hero Section (brand-gradient, never white) --- */
.hero-band {
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--primary) 100%);
  color: var(--hero-text);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.07) 0%, transparent 60%),
                    radial-gradient(circle at 80% 70%, rgba(217, 119, 6, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 800px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-proof-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-proof-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* --- Section 1: Signature Results & Performance Band --- */
/* Full-width brand colour band in primary sapphire blue #0a58ca directly beneath hero */
.signature-stats-band {
  background-color: var(--primary);
  color: var(--primary-text);
  padding-block: clamp(2rem, 4vw, 3rem);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.stat-card {
  display: flex;
  flex-direction: column;
  padding-inline: 0.5rem;
  border-inline-start: 2px solid rgba(255, 255, 255, 0.25);
  padding-inline-start: 1.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.stat-sublabel {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- Section Rhythm Bands --- */
.section-pad {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

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

.bg-canvas {
  background-color: var(--background);
}

.dark-band {
  background-color: var(--dark);
  color: var(--dark-text);
}

.dark-band h1, .dark-band h2, .dark-band h3, .dark-band h4 {
  color: #ffffff;
}

.dark-band p {
  color: rgba(255, 255, 255, 0.85);
}

.navy-band {
  background-color: var(--hero-bg);
  color: #ffffff;
}

.navy-band h1, .navy-band h2, .navy-band h3, .navy-band h4 {
  color: #ffffff;
}

.navy-band p {
  color: rgba(255, 255, 255, 0.85);
}

.primary-band {
  background-color: var(--primary);
  color: #ffffff;
}

.primary-band h1, .primary-band h2, .primary-band h3, .primary-band h4 {
  color: #ffffff;
}

.primary-band p {
  color: rgba(255, 255, 255, 0.9);
}

/* Section Header */
.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.section-header p {
  margin-top: 0.75rem;
}

/* --- Section 2: Trusted Sectors --- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.sector-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.sector-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.sector-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-tint);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sector-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.sector-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.sector-arabic {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Section 3: Integrated Business Solutions Grid --- */
.solutions-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.solutions-illustration-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #ffffff;
  aspect-ratio: 4 / 3;
}

.solutions-illustration-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.solution-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.solution-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.solution-icon-wrap {
  width: 48px;
  height: 48px;
  background-color: var(--primary-tint);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.solution-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--muted);
  text-transform: uppercase;
}

.solution-title {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.solution-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.solution-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.solution-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text);
}

.solution-deliverables svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.solution-action {
  margin-top: auto;
}

@media (max-width: 991.98px) {
  .solutions-showcase {
    grid-template-columns: 1fr;
  }
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

/* Category Filter on Services page */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* --- Section 4: AI & Digital Transformation Suite --- */
/* Full-width contrast band in deep sapphire navy #071d49 */
.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.ai-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.ai-card:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

.ai-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.ai-card-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.ai-card-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.ai-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
}

.ai-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.ai-feature-list svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .ai-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Section 5: Operational Methodology (4-Stage Execution Framework) --- */
.methodology-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.methodology-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.methodology-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.stage-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.stage-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.stage-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.stage-deliverable-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background-color: var(--background);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-top: auto;
  border: 1px solid var(--border);
}

@media (max-width: 991.98px) {
  .methodology-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .methodology-timeline {
    grid-template-columns: 1fr;
  }
}

/* --- Section 6: Transparent Engagement Tiers --- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.package-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.package-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.package-featured-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.package-tier-name {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.package-audience {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  min-height: 42px;
}

.package-divider {
  height: 1px;
  background-color: var(--border);
  margin-bottom: 1.5rem;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.package-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text);
}

.package-feature-item.excluded {
  color: #94a3b8;
}

.package-feature-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.package-feature-item.included svg {
  fill: var(--primary);
}

.package-feature-item.excluded svg {
  fill: #cbd5e1;
}

@media (max-width: 991.98px) {
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }
  .package-card.featured {
    transform: none;
  }
}

/* --- Section 7: Market Observatory & Assessment Tools Preview --- */
.observatory-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.tool-preview-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tool-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-tint);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.tool-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-block: 1.25rem;
}

.tool-metric-box {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.tool-metric-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.tool-metric-name {
  font-size: 0.75rem;
  color: var(--muted);
}

.assessment-tests-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block: 1.25rem;
}

.assessment-test-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .observatory-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Section 8: Why SAIP Consulting (Credentials Band) --- */
/* Full-width dark band in midnight navy #07111e */
.credentials-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.credentials-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dark);
  aspect-ratio: 1 / 1;
}

.credentials-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-block: 2rem;
}

.credential-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.credential-item h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.credential-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .credentials-layout {
    grid-template-columns: 1fr;
  }
  .credentials-photo-wrap {
    max-width: 440px;
    margin-inline: auto;
  }
}

/* --- Section 9: Frequently Asked Questions (FAQ) --- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 880px;
  margin-inline: auto;
}

.faq-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-card:hover {
  border-color: var(--primary);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: start;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-card.is-open .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer-pane {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq-card.is-open .faq-answer-pane {
  display: block;
}

/* --- Section 10: Closing Consultation CTA Band --- */
/* Full-width band in primary sapphire blue #0a58ca */
.cta-closing-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--hero-bg) 100%);
  color: #ffffff;
  padding-block: clamp(3.5rem, 6vw, 5rem);
  text-align: center;
}

.cta-box-content {
  max-width: 780px;
  margin-inline: auto;
}

.cta-box-content h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-box-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-contact-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

/* --- Master Footer --- */
footer.site-footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: 2rem;
  border-top: 1px solid var(--border-dark);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3.5rem;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-brand-p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links-list a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-coords-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.875rem;
}

.footer-coords-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-coords-item svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-coords-item a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-coords-item a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-credits {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

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

@media (max-width: 560px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Floating Actions Coordinator (Zero Collision) --- */
/* Back-to-top on lower-left (bottom: 24px; left: 24px) */
.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--dark);
  color: #ffffff;
  border: 1px solid var(--border-dark-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* WhatsApp float on lower-right (bottom: 24px; right: 24px) */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* --- Contact Page Specific Architecture --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-info-panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.contact-card-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.contact-card-box:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-tint);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-form-container {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-group label span.required {
  color: #dc2626;
  margin-inline-start: 0.2rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--background);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.15);
}

.form-control[aria-invalid="true"] {
  border-color: #dc2626;
}

.form-error {
  display: none;
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.form-control[aria-invalid="true"] + .form-error {
  display: block;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.file-upload-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  background-color: var(--background);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.file-upload-dropzone:hover {
  border-color: var(--primary);
}

.file-upload-dropzone svg {
  margin-inline: auto;
  margin-bottom: 0.5rem;
  fill: var(--muted);
  width: 32px;
  height: 32px;
}

.captcha-box {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.captcha-prompt {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.form-status-alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: none;
  font-size: 0.9rem;
}

.form-status-alert.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status-alert.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Map frame styling */
.map-container {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Market Observatory Specific --- */
.ticker-strip {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.ticker-items {
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 0.25rem;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.ticker-symbol {
  font-weight: 700;
  color: var(--text);
}

.ticker-val {
  font-family: var(--font-body);
  font-weight: 600;
}

.ticker-change {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.ticker-change.up {
  background-color: #dcfce7;
  color: #15803d;
}

.ticker-change.neutral {
  background-color: #f1f5f9;
  color: #475569;
}

.market-dashboards-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.75rem;
}

.market-widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.news-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.news-date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.news-snippet {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

@media (max-width: 991.98px) {
  .market-dashboards-grid {
    grid-template-columns: 1fr;
  }
  .news-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Motion & Scroll Reveal --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Visually Hidden Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
