/* ==========================================================================
   ALGOFAIT — Smart & Sustainable Aquaculture
   Corporate Marketing Website Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Palette */
  --color-navy: #262F5A;
  --color-navy-dark: #1A2142;
  --color-navy-light: #354175;
  --color-aqua: #4FE5B8;
  --color-green: #91FD8C;
  --color-white: #FFFFFF;
  --color-marine-bg: #F4F7F9;
  --color-marine-surface: #FFFFFF;
  --color-marine-alt: #EBF1F5;
  --color-text-main: #1E293B;
  --color-text-muted: #5A6A85;
  --color-text-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-dark: #2D3A68;

  /* Gradients */
  --gradient-aqua-green: linear-gradient(135deg, #4FE5B8 0%, #91FD8C 100%);
  --gradient-navy: linear-gradient(180deg, #1A2142 0%, #262F5A 100%);

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Noto Sans Arabic', 'Segoe UI Arabic', Tahoma, sans-serif;

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(16, 24, 40, 0.08), 0 4px 6px -4px rgba(16, 24, 40, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(16, 24, 40, 0.1), 0 8px 10px -6px rgba(16, 24, 40, 0.05);

  /* Layout */
  --container-max: 1240px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.25s ease;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* RTL Font & Layout */
[dir="rtl"] {
  font-family: var(--font-arabic);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .logo-text,
[dir="rtl"] .btn {
  font-family: var(--font-arabic);
}

/* CSS Reset & Baseline */
*, *::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);
  color: var(--color-text-main);
  background-color: var(--color-marine-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 2px solid var(--color-aqua);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--color-aqua);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.65rem, 2.5vw + 0.5rem, 2.25rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.45rem);
  margin-bottom: 0.5rem;
}

p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.eyebrow.dark {
  color: var(--color-aqua);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-main);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.site-header .header-inner {
  max-width: 100%;
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

@media (max-width: 768px) {
  .site-header .header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  aspect-ratio: 1106 / 279;
  display: block;
}

.nav-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 36px;
}

[dir="rtl"] .nav-group {
  margin-left: 0;
  margin-right: 36px;
}

.nav-group nav {
  margin-left: auto;
  margin-right: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 24px;
  margin: 0 auto;
}

.nav-group > a.btn,
header .btn-primary {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #167a5d;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-navy);
}

/* External Link Indicator for Grow It */
.nav-link-external {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #105943;
  font-weight: 700;
}

.nav-link-external:hover {
  color: #0b3d2e;
}

.external-arrow {
  font-size: 0.85em;
  opacity: 0.8;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9999px;
  background-color: #FFFFFF;
  border: 1px solid rgba(16, 89, 67, 0.2);
  box-shadow: 0 1px 3px rgba(10, 18, 46, 0.04), 0 1px 2px rgba(10, 18, 46, 0.02);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-navy);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}

.lang-btn:hover {
  border-color: #105943;
  color: #105943;
  background-color: #F8FAF9;
  box-shadow: 0 4px 12px rgba(16, 89, 67, 0.12), 0 2px 4px rgba(10, 18, 46, 0.04);
  transform: translateY(-1px);
}

.lang-btn:active,
.lang-btn[aria-expanded="true"] {
  border-color: #105943;
  background-color: #F0FDF8;
  color: #105943;
  box-shadow: 0 2px 6px rgba(16, 89, 67, 0.14);
  transform: translateY(0);
}

.lang-btn:focus-visible {
  outline: 2px solid #105943;
  outline-offset: 2px;
}

.lang-globe-icon {
  width: 15px;
  height: 15px;
  color: #105943;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover .lang-globe-icon {
  transform: rotate(24deg) scale(1.05);
}

.lang-code {
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  color: inherit;
  text-transform: uppercase;
}

.lang-chevron-icon {
  width: 10px;
  height: 10px;
  color: #64748B;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.lang-btn:hover .lang-chevron-icon {
  color: #105943;
}

.lang-btn[aria-expanded="true"] .lang-chevron-icon {
  transform: rotate(180deg);
  color: #105943;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid rgba(16, 89, 67, 0.15);
  border-radius: 12px;
  box-shadow: 0 12px 28px -4px rgba(10, 18, 46, 0.14), 0 4px 10px -2px rgba(10, 18, 46, 0.06);
  list-style: none;
  min-width: 155px;
  padding: 6px;
  display: none;
  z-index: 1050;
  animation: langDropdownIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes langDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-menu.open {
  display: block;
}

.lang-item {
  margin: 2px 0;
}

.lang-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-navy);
  transition: all 0.15s ease;
}

.lang-item a:hover {
  background-color: #F0FDF8;
  color: #105943;
  font-weight: 600;
  transform: translateX(2px);
}

[dir="rtl"] .lang-item a:hover {
  transform: translateX(-2px);
}

.lang-item.active a {
  background-color: rgba(16, 89, 67, 0.08);
  color: #105943;
  font-weight: 700;
}

/* Primary Corporate Header Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  border: 2px solid var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn-accent {
  background: var(--gradient-aqua-green);
  color: var(--color-navy-dark);
  font-weight: 800;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(79, 229, 184, 0.3);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 229, 184, 0.45);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  padding: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002 !important;
  position: relative !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: all var(--transition-fast);
  pointer-events: none !important;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 70px);
  max-height: calc(100vh - 70px);
  background: var(--color-white);
  padding: 20px 24px 32px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(10, 18, 42, 0.18);
  z-index: 1001;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
  display: flex !important;
}

.mobile-nav .nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  list-style: none;
  width: 100%;
}

.mobile-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link:focus,
.mobile-nav .nav-link.active {
  background: var(--color-marine-alt);
  color: #105943;
  padding-left: 16px;
}

[dir="rtl"] .mobile-nav .nav-link:hover,
[dir="rtl"] .mobile-nav .nav-link:focus,
[dir="rtl"] .mobile-nav .nav-link.active {
  padding-left: 12px;
  padding-right: 16px;
}

.mobile-nav .btn {
  font-size: 0.88rem;
  padding: 10px 16px;
}

.mobile-nav .btn-sm {
  font-size: 0.8rem;
  padding: 7px 12px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--color-navy);
  background-image: linear-gradient(rgba(10, 18, 42, 0.70), rgba(10, 18, 42, 0.70)), url('/assets/images/hero-eco-bluehouse.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--color-white);
  overflow: hidden;
  padding: 90px 0 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(79, 229, 184, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero-support {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 25px 55px -15px rgba(5, 12, 28, 0.75), 0 0 35px rgba(45, 226, 196, 0.15);
  border: 1px solid rgba(45, 226, 196, 0.28);
  background: #0B132B;
}

#hero-dashboard-container {
  max-width: 530px;
  margin-left: auto;
  width: 100%;
}

/* Grow It Animated Dashboard */
.growit-dash-card {
  background: radial-gradient(130% 120% at 50% 0%, #111C3A 0%, #0B132B 65%, #070D1E 100%);
  border-radius: 15px;
  padding: 16px 18px 14px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Dashboard Header */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-brand-wrap {
  display: flex;
  flex-direction: column;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dash-brand-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(45, 226, 196, 0.35));
}

.dash-brand-main {
  color: #FFFFFF;
}

.dash-brand-accent {
  color: #2DE2C4;
  text-shadow: 0 0 10px rgba(45, 226, 196, 0.5);
}

.dash-brand-sub {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8E9BB5;
  text-transform: uppercase;
  margin-top: 2px;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8E9BB5;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-pipe {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  font-size: 0.75rem;
}

.dash-filters {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-dropdown {
  position: relative;
}

.dash-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-pill-btn:hover {
  background: rgba(45, 226, 196, 0.12);
  border-color: rgba(45, 226, 196, 0.4);
  color: #FFFFFF;
}

.dash-caret {
  width: 7px;
  height: 5px;
  transition: transform 0.2s ease;
}

.dash-dropdown.open .dash-caret {
  transform: rotate(180deg);
}

.dash-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #111A35;
  border: 1px solid rgba(45, 226, 196, 0.3);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  list-style: none;
  padding: 4px;
  z-index: 50;
  min-width: 140px;
}

.dash-dropdown.open .dash-dropdown-menu {
  display: block;
}

.dash-dropdown-menu li {
  padding: 6px 10px;
  font-size: 0.68rem;
  color: #CBD5E1;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.dash-dropdown-menu li:hover,
.dash-dropdown-menu li.active {
  background: rgba(45, 226, 196, 0.16);
  color: #2DE2C4;
  font-weight: 700;
}

.dash-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #2DE2C4;
  background: rgba(45, 226, 196, 0.12);
  border: 1px solid rgba(45, 226, 196, 0.3);
  border-radius: 999px;
  padding: 3px 8px;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2DE2C4;
  box-shadow: 0 0 6px #2DE2C4;
  animation: liveDotPulse 1.8s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.45; }
}

/* KPI Cards Grid */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin: 12px 0 10px;
}

.dash-kpi-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 0 0 8px;
}

.growit-dash-card.simplified {
  padding: 10px 11px 9px;
}

.dash-kpi-grid.four-col .dash-kpi-card {
  padding: 7px 7px 5px;
  border-radius: 6px;
}

.dash-kpi-grid.four-col .kpi-val {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.dash-kpi-grid.four-col .kpi-top {
  font-size: 0.6rem;
  gap: 4px;
  margin-bottom: 2px;
}

.dash-kpi-grid.four-col .kpi-icon {
  width: 12px;
  height: 12px;
}

.dash-kpi-grid.four-col .kpi-sub {
  font-size: 0.5rem;
}

.dash-kpi-card {
  background: #111A35;
  border: 1px solid rgba(45, 226, 196, 0.12);
  border-radius: 8px;
  padding: 9px 8px 7px;
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.dash-kpi-card:hover {
  border-color: rgba(45, 226, 196, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.kpi-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  color: #8E9BB5;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
}

.kpi-icon {
  width: 14px;
  height: 14px;
  color: #2DE2C4;
  flex-shrink: 0;
}

.kpi-alert-card .kpi-icon {
  color: #38BDF8;
}

.kpi-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-arrow {
  color: #8E9BB5;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.kpi-sub {
  font-size: 0.55rem;
  color: #8E9BB5;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.trend-delta.up {
  color: #22C55E;
  font-weight: 700;
}

.trend-delta.down {
  color: #2DE2C4;
  font-weight: 700;
}

.alert-info {
  color: #8E9BB5;
  font-size: 0.55rem;
}

/* Middle Charts Grid */
.dash-charts-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1.12fr;
  gap: 7px;
  margin-bottom: 7px;
}

.dash-charts-grid.simplified-charts {
  grid-template-columns: 1.35fr 1fr;
  gap: 7px;
  margin-bottom: 0;
}

.dash-charts-grid.simplified-charts .dash-panel-card {
  padding: 7px 8px 6px;
  border-radius: 6px;
}

.dash-charts-grid.simplified-charts .panel-header {
  margin-bottom: 3px;
}

.dash-charts-grid.simplified-charts .panel-title-wrap {
  font-size: 0.64rem;
  gap: 4px;
}

.dash-charts-grid.simplified-charts .panel-icon {
  width: 11px;
  height: 11px;
}

.dash-charts-grid.simplified-charts .panel-filter-pill {
  font-size: 0.52rem;
}

.dash-charts-grid.simplified-charts .gauge-title {
  font-size: 0.58rem;
  margin-bottom: 1px;
}

.dash-charts-grid.simplified-charts .gauge-svg-wrap {
  max-width: 82px;
}

.dash-charts-grid.simplified-charts .gauge-center-text {
  font-size: 13.5px;
}

.dash-charts-grid.simplified-charts .gauge-labels {
  font-size: 0.52rem;
  max-width: 78px;
}

.dash-panel-card {
  background: #111A35;
  border: 1px solid rgba(45, 226, 196, 0.12);
  border-radius: 8px;
  padding: 9px 9px 7px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #E2E8F0;
}

.panel-icon {
  width: 12px;
  height: 12px;
  color: #2DE2C4;
  flex-shrink: 0;
}

.panel-filter-pill {
  font-size: 0.58rem;
  color: #8E9BB5;
}

.panel-chart-body {
  position: relative;
  width: 100%;
}

.wq-line-svg,
.biomass-area-svg,
.feed-bars-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG Line & Area Animations */
.wq-trend-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawWqPath 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes drawWqPath {
  to {
    stroke-dashoffset: 0;
  }
}

.wq-node {
  fill: #0C152B;
  stroke: #2DE2C4;
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wq-node:hover,
.wq-node.active-peak {
  fill: #FFFFFF;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px #2DE2C4);
}

.biomass-peak-dot {
  filter: drop-shadow(0 0 6px #2DE2C4);
  animation: dotGlow 2s infinite ease-in-out;
}

@keyframes dotGlow {
  0%, 100% { r: 4.5; }
  50% { r: 6; }
}

/* Tooltips */
.dash-chart-tooltip {
  position: absolute;
  background: rgba(11, 19, 43, 0.95);
  border: 1px solid #2DE2C4;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 0.62rem;
  color: #FFFFFF;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 10;
  white-space: nowrap;
}

.dash-chart-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* Gauges */
.gauges-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  padding: 2px 0;
}

.gauge-item {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-title {
  font-size: 0.65rem;
  color: #CBD5E1;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
}

.gauge-svg-wrap {
  width: 90%;
  max-width: 110px;
}

.gauge-svg {
  width: 100%;
  height: auto;
  display: block;
}

.gauge-fill-arc {
  transition: stroke-dashoffset 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gauge-center-text {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  fill: #FFFFFF;
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  width: 80%;
  max-width: 94px;
  font-size: 0.56rem;
  color: #6B7A99;
  margin-top: -6px;
}

/* Bottom Row Grid */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.32fr;
  gap: 7px;
}

.feed-bar {
  cursor: pointer;
  transition: all 0.2s ease;
  transform-origin: bottom;
}

.feed-bar:hover {
  filter: brightness(1.25) drop-shadow(0 0 6px rgba(45, 226, 196, 0.5));
}

/* Impact Banner Card */
.dash-banner-card {
  position: relative;
  background: #0E1A38;
  border: 1px solid rgba(45, 226, 196, 0.22);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner-waves-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ocean-waves-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-path.wave-1 {
  animation: waveFloat 6s ease-in-out infinite alternate;
}

.wave-path.wave-2 {
  animation: waveFloat 8s ease-in-out infinite alternate-reverse;
}

@keyframes waveFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-accent-bar {
  width: 3px;
  height: 32px;
  background: #2DE2C4;
  border-radius: 2px;
  box-shadow: 0 0 10px #2DE2C4;
  flex-shrink: 0;
}

.banner-heading {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0;
}

.banner-sub {
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  color: #8E9BB5;
  margin-top: 2px;
  font-weight: 700;
}

.banner-right {
  text-align: right;
  flex-shrink: 0;
}

.banner-line-tag {
  width: 28px;
  height: 2px;
  background: #2DE2C4;
  margin-left: auto;
  margin-bottom: 4px;
  box-shadow: 0 0 6px #2DE2C4;
}

.banner-tag-items {
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: #8E9BB5;
  line-height: 1.35;
  font-weight: 600;
}

/* Dashboard Responsive Breakpoints */
@media (max-width: 900px) {
  .dash-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dash-kpi-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-charts-grid,
  .dash-charts-grid.simplified-charts {
    grid-template-columns: 1fr;
  }
  .dash-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .dash-kpi-grid,
  .dash-kpi-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .growit-dash-card {
    padding: 12px 10px;
  }
}

/* Page Banner / Header (Inner Pages) — Styled matching Homepage Hero */
.page-header {
  position: relative;
  background-color: var(--color-navy);
  background-image: linear-gradient(rgba(10, 18, 42, 0.70), rgba(10, 18, 42, 0.70)), url('/assets/images/hero-eco-bluehouse.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--color-white);
  padding: 80px 0 88px;
  border-bottom: 1px solid rgba(79, 229, 184, 0.25);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(79, 229, 184, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.page-header h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.page-header p {
  color: #E2E8F0;
  max-width: 780px;
  font-size: 1.15rem;
  line-height: 1.65;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Outcome Cards & Service Grid
   ========================================================================== */
.section {
  padding: 88px 0;
}

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

.section-dark {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-dark p {
  color: #CBD5E1;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-intro.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* 4 Outcome-Led Journey Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: 0 4px 16px rgba(10, 18, 42, 0.04);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(10, 18, 42, 0.10);
  border-color: #4FE5B8;
}

.service-num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #105943;
  background: rgba(79, 229, 184, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 18px;
  display: inline-block;
  border: 1px solid rgba(79, 229, 184, 0.3);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-navy);
}

.service-area-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.service-link:hover {
  color: #105943;
  gap: 9px;
}

/* ==========================================================================
   Commercial Journey — Elevated High-Precision Services Section
   ========================================================================== */
.section-services-journey {
  background: #FFFFFF;
  position: relative;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 80px 0;
  color: var(--color-navy);
}

.section-services-journey .section-intro .eyebrow {
  color: #105943;
}

.section-services-journey .section-intro h2 {
  color: var(--color-navy);
}

.section-services-journey .section-intro p {
  color: var(--color-text-muted);
}

.services-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

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

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

.service-journey-card {
  background: linear-gradient(180deg, #131C35 0%, #0C1427 100%);
  border: 1px solid rgba(79, 229, 184, 0.18);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.service-journey-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4FE5B8, #2A7B62);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.service-journey-card:hover {
  transform: translateY(-6px);
  border-color: #4FE5B8;
  box-shadow: 0 16px 36px rgba(79, 229, 184, 0.12), 0 0 0 1px rgba(79, 229, 184, 0.4);
}

.service-journey-card:hover::before {
  opacity: 1;
}

.service-journey-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: #4FE5B8;
  background: rgba(79, 229, 184, 0.12);
  border: 1px solid rgba(79, 229, 184, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.service-journey-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.service-journey-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-journey-desc {
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-journey-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(10, 18, 42, 0.6);
  border: 1px solid rgba(79, 229, 184, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.service-journey-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #E2E8F0;
  font-weight: 500;
}

.service-journey-chip-icon {
  color: #4FE5B8;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.service-journey-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #4FE5B8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-top: auto;
}

.service-journey-link:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

/* ==========================================================================
   Service Deliverables Showcase Cards Grid (Pillars on Services Page)
   ========================================================================== */
.deliverables-showcase {
  margin-top: 10px;
}

.deliverables-heading {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.deliverables-heading-icon {
  color: #105943;
  display: inline-flex;
}

.deliverables-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

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

.deliverable-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(10, 18, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.deliverable-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4FE5B8, #105943);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.deliverable-card:hover {
  transform: translateY(-5px);
  border-color: #4FE5B8;
  box-shadow: 0 16px 36px rgba(10, 18, 42, 0.08), 0 0 0 1px rgba(79, 229, 184, 0.3);
}

.deliverable-card:hover::before {
  opacity: 1;
}

.deliverable-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79, 229, 184, 0.16) 0%, rgba(16, 89, 67, 0.12) 100%);
  border: 1px solid rgba(79, 229, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #105943;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.deliverable-card:hover .deliverable-icon-wrap {
  background: #105943;
  color: #4FE5B8;
  transform: scale(1.05);
}

.deliverable-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deliverable-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.deliverable-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* ==========================================================================
   Solutions 3 Families
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.solution-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(10, 18, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(10, 18, 42, 0.12);
  border-color: #4FE5B8;
}

.solution-media {
  position: relative;
  background-color: var(--color-navy-dark);
  height: 220px;
  overflow: hidden;
}

.solution-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-card:hover .solution-media img {
  transform: scale(1.05);
}

.solution-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.solution-body h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.solution-body p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.solution-card .solution-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.solution-card .solution-feature-item {
  font-size: 13px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.solution-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

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

.solution-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-main);
  background: var(--color-marine-bg);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-sizing: border-box;
  height: 100%;
  transition: all var(--transition-fast);
}

.solution-feature-item:hover {
  border-color: rgba(79, 229, 184, 0.6);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.05);
}

.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(79, 229, 184, 0.22);
  color: #0f543f;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Grow It Spotlight Section
   ========================================================================== */
.growit-section {
  background: linear-gradient(135deg, #1A2142 0%, #262F5A 100%);
  color: var(--color-white);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.growit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.growit-content h2 {
  color: var(--color-white);
  font-size: clamp(1.8rem, 2.5vw + 0.5rem, 2.4rem);
  margin-bottom: 18px;
}

.growit-copy {
  color: #CBD5E1;
  font-size: 1.12rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.benefit-labels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E2E8F0;
  font-size: 1.02rem;
  font-weight: 500;
}

.benefit-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(79, 229, 184, 0.15);
  color: var(--color-aqua);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.growit-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.growit-visual {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 25px 55px -15px rgba(5, 12, 28, 0.75), 0 0 35px rgba(45, 226, 196, 0.15);
  border: 1px solid rgba(45, 226, 196, 0.28);
  background: #0B132B;
}

/* ==========================================================================
   Selected Projects & Contributions
   ========================================================================== */
/* ==========================================================================
   Selected Projects & Contributions (3-4 Cards in a Row Grid & Categories)
   ========================================================================== */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.project-filter-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-filter-btn:hover {
  border-color: var(--color-aqua);
  background: rgba(79, 229, 184, 0.08);
  color: var(--color-navy);
}

.project-filter-btn.active {
  background: var(--color-navy);
  color: var(--color-aqua);
  border-color: var(--color-navy);
  box-shadow: 0 4px 14px rgba(10, 18, 42, 0.15);
}

.project-filter-btn .filter-count {
  font-size: 0.76rem;
  background: rgba(79, 229, 184, 0.2);
  color: #105943;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.project-filter-btn.active .filter-count {
  background: rgba(79, 229, 184, 0.25);
  color: var(--color-aqua);
}

.project-category-block {
  margin-bottom: 52px;
  transition: opacity 0.3s ease;
}

.project-category-block.is-hidden {
  display: none !important;
}

.project-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 14px;
  margin-bottom: 26px;
}

.project-category-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-category-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #105943;
}

.project-category-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
}

.project-category-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #105943;
  background: rgba(79, 229, 184, 0.18);
  border: 1px solid rgba(79, 229, 184, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* 3-4 Cards per Row Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1240px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.project-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(10, 18, 42, 0.04);
  transition: all var(--transition-normal);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(10, 18, 42, 0.1);
  border-color: #4FE5B8;
}

.project-media {
  position: relative;
  height: 185px;
  background-color: var(--color-navy);
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26, 33, 66, 0.92);
  color: var(--color-aqua);
  border: 1px solid rgba(79, 229, 184, 0.45);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  z-index: 2;
}

[dir="rtl"] .project-badge {
  left: auto;
  right: 10px;
}

.project-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--color-navy);
}

.project-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.project-meta span.loc {
  color: #105943;
  font-weight: 600;
}

.project-role-box {
  background: var(--color-marine-bg);
  border-left: 3px solid #105943;
  padding: 8px 11px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
}

[dir="rtl"] .project-role-box {
  border-left: none;
  border-right: 3px solid #105943;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.project-role-label {
  font-weight: 700;
  color: var(--color-navy);
  margin-right: 4px;
}

[dir="rtl"] .project-role-label {
  margin-right: 0;
  margin-left: 4px;
}

.project-outcome-box {
  background: rgba(79, 229, 184, 0.08);
  border-left: 3px solid #105943;
  padding: 8px 11px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
}

[dir="rtl"] .project-outcome-box {
  border-left: none;
  border-right: 3px solid #105943;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.project-outcome-label {
  font-weight: 700;
  color: #105943;
  margin-right: 4px;
}

[dir="rtl"] .project-outcome-label {
  margin-right: 0;
  margin-left: 4px;
}

.project-desc {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: auto;
}

/* ==========================================================================
   Why ALGOFAIT & Proof Strip
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.why-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition-fast);
}

.why-card:hover {
  border-color: #105943;
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #E8FBF4;
  color: #105943;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.why-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Accreditation and Partners strip */
.badges-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
}

.badge-item {
  width: 170px;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.badge-item:hover {
  opacity: 1;
}

/* ==========================================================================
   Final CTA Banner
   ========================================================================== */
.final-cta {
  background-color: var(--color-navy);
  background-image: linear-gradient(rgba(10, 18, 42, 0.70), rgba(10, 18, 42, 0.70)), url('/assets/images/hero-eco-bluehouse.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--color-white);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-aqua-green);
}

.final-cta-content {
  max-width: 680px;
  margin: 0 auto;
}

.final-cta h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 16px;
}

.final-cta p {
  color: #CBD5E1;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ==========================================================================
   Forms & Contact Details
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: flex-start;
}

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 42px 40px;
  box-shadow: 0 10px 30px rgba(10, 18, 42, 0.06);
}

.form-group {
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: #F8FAFC;
  font-size: 0.95rem;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: #105943;
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(79, 229, 184, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Honeypot field (hidden from screen reader & users) */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

.form-status {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  display: none;
  font-size: 0.92rem;
}

.form-status.success {
  display: block;
  background: #E8FBF4;
  color: #0E5A44;
  border: 1px solid #91FD8C;
}

.form-status.error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.contact-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-marine-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-detail a {
  color: #105943;
  font-weight: 600;
}

.contact-detail a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Modal Dialog (Grow It Demo)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 33, 66, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-close-btn {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-light);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.modal-close-btn:hover {
  color: var(--color-navy);
}

/* ==========================================================================
   About Page Specific Elements
   ========================================================================== */
.philosophy-banner {
  background: linear-gradient(145deg, #0B1433 0%, #060B1F 100%);
  color: var(--color-white);
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  margin: 48px 0;
  border: 1px solid rgba(79, 229, 184, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.philosophy-banner h3 {
  color: #4FE5B8;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.35;
  margin-bottom: 16px;
}

.philosophy-banner p {
  color: #E2E8F0;
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

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

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

.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  padding: 16px 16px 20px;
  box-shadow: 0 4px 16px rgba(10, 18, 42, 0.04);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(10, 18, 42, 0.10);
  border-color: #4FE5B8;
}

.team-avatar {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  margin: 0 0 16px;
  overflow: hidden;
  border: 1.5px solid rgba(79, 229, 184, 0.35);
  box-shadow: 0 6px 20px rgba(10, 18, 42, 0.08);
  background: linear-gradient(135deg, #1C2648 0%, #0F172E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
  display: block;
}

.team-card:hover .team-avatar img {
  transform: scale(1.05);
}

.team-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
  line-height: 1.35;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-role {
  font-size: 0.85rem;
  color: #105943;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.4;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 89, 67, 0.25);
  background: #F1FBF7;
  color: #105943;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(16, 89, 67, 0.06);
}

.team-arrow-btn:hover {
  background: #105943;
  color: #FFFFFF;
  border-color: #105943;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 89, 67, 0.25);
}

.team-arrow-btn:focus-visible {
  outline: 2px solid var(--color-aqua);
  outline-offset: 2px;
}

.team-arrow-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card.is-expanded .team-arrow-btn {
  background: #105943;
  color: #FFFFFF;
  border-color: #105943;
}

.team-card.is-expanded .team-arrow-icon {
  transform: rotate(180deg);
}

.team-bio-collapse {
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.team-card.is-expanded .team-bio-collapse {
  max-height: 260px;
  opacity: 1;
  margin-top: 14px;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  text-align: left;
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-left: 3px solid #105943;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0;
}

[dir="rtl"] .team-bio {
  text-align: right;
  border-left: 1px solid rgba(226, 232, 240, 0.85);
  border-right: 3px solid #105943;
}

/* ==========================================================================
   Credentials & Innovation Recognition (5-col compact grid)
   ========================================================================== */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1200px) {
  .credentials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .credentials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

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

.credential-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 10px rgba(10, 18, 42, 0.04);
  position: relative;
}

.credential-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10, 18, 42, 0.08);
  border-color: #4FE5B8;
}

.credential-card.is-expanded {
  border-color: #105943;
  box-shadow: 0 10px 26px rgba(10, 18, 42, 0.10);
}

.credential-media {
  width: 100%;
  height: 105px;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  margin-bottom: 10px;
  position: relative;
}

.credential-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}

.credential-card:hover .credential-media img {
  transform: scale(1.04);
}

.credential-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #105943;
  margin-bottom: 4px;
}

.credential-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
  margin: 0 0 10px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.credential-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin-top: auto;
}

.credential-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #F1FBF7;
  border: 1px solid rgba(16, 89, 67, 0.2);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  color: #105943;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.credential-arrow-btn:hover {
  background: #105943;
  color: #FFFFFF;
  border-color: #105943;
}

.credential-arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.credential-card.is-expanded .credential-arrow-btn {
  background: #105943;
  color: #FFFFFF;
  border-color: #105943;
}

.credential-card.is-expanded .credential-arrow-icon {
  transform: rotate(90deg);
}

[dir="rtl"] .credential-arrow-icon {
  transform: rotate(180deg);
}

[dir="rtl"] .credential-card.is-expanded .credential-arrow-icon {
  transform: rotate(90deg);
}

.credential-desc-collapse {
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.credential-card.is-expanded .credential-desc-collapse {
  max-height: 240px;
  opacity: 1;
  margin-top: 10px;
}

.credential-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-left: 3px solid #105943;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin: 0;
  text-align: left;
}

[dir="rtl"] .credential-desc {
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  border-right: 3px solid #105943;
  text-align: right;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy-dark);
  color: #94A3B8;
  padding: 72px 0 32px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo,
.footer-brand img {
  height: 42px;
  max-height: 42px;
  width: auto;
  max-width: 185px;
  object-fit: contain;
  aspect-ratio: 1106 / 279;
  display: block;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 340px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

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

.footer-link {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--color-aqua);
}

/* Footer Contact Section Action Buttons */
.footer-contact-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  flex: 1 1 0;
  min-width: 0;
}

.footer-btn-linkedin {
  background: rgba(10, 102, 194, 0.22);
  color: #70B5F9;
  border: 1px solid rgba(10, 102, 194, 0.5);
}

.footer-btn-linkedin:hover {
  background: #0A66C2;
  color: #FFFFFF;
  border-color: #0A66C2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}

.footer-btn-whatsapp {
  background: rgba(37, 211, 102, 0.18);
  color: #4FE5B8;
  border: 1px solid rgba(37, 211, 102, 0.5);
}

.footer-btn-whatsapp:hover {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.footer-btn-email {
  background: rgba(79, 229, 184, 0.16);
  color: #4FE5B8;
  border: 1px solid rgba(79, 229, 184, 0.5);
}

.footer-btn-email:hover {
  background: #105943;
  color: #FFFFFF;
  border-color: #4FE5B8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 229, 184, 0.35);
}

.footer-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer-btn:hover svg {
  transform: scale(1.15);
}

@media (max-width: 680px) {
  .footer-contact-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .footer-btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
    justify-content: center;
  }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* Back to Top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 800;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 24px;
}

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

.back-to-top.visible {
  display: flex;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-group {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 840px) {
  .nav-group {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .growit-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile Hero Typography Overrides */
@media (max-width: 768px) {
  main#main-content:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > span:nth-of-type(1),
  .hero-content > span.eyebrow {
    font-size: 15px !important;
  }

  main#main-content:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1#hero-heading:nth-of-type(1) > span:nth-of-type(1),
  main#main-content:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1#hero-heading:nth-of-type(1) > span:nth-of-type(2),
  main#main-content:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1#hero-heading:nth-of-type(1) > span:nth-of-type(3),
  h1#hero-heading > span {
    font-size: 28px !important;
  }

  main#main-content:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1),
  .hero-content p.hero-support {
    font-size: 15px !important;
    text-align: left !important;
  }

  [dir="rtl"] main#main-content:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1),
  [dir="rtl"] .hero-content p.hero-support {
    text-align: right !important;
  }

  /* Trust Bar Metric Values */
  main#main-content:nth-of-type(1) > section:nth-of-type(2) .trust-metric-val,
  .trust-bar .trust-metric-val {
    font-size: 28px !important;
  }

  /* Section 3 Engineering Sequence */
  main#main-content:nth-of-type(1) > section:nth-of-type(3) h2#decision-seq-title,
  h2#decision-seq-title {
    font-size: 25.4px !important;
  }

  main#main-content:nth-of-type(1) > section:nth-of-type(3) div.section-intro p,
  #decision-seq-title + p {
    font-size: 14px !important;
  }

  /* Section 4 Commercial Client Journey */
  main#main-content:nth-of-type(1) > section#commercial-journey h2#services-summary-title,
  h2#services-summary-title {
    font-size: 28px !important;
  }

  /* Section 5 Solutions Summary */
  main#main-content:nth-of-type(1) > section:nth-of-type(5) h2#solutions-summary-title,
  h2#solutions-summary-title {
    font-size: 25px !important;
  }

  /* Section 6 Grow It Title */
  main#main-content:nth-of-type(1) > section:nth-of-type(6) h2#growit-title,
  h2#growit-title {
    font-size: 25px !important;
  }

  /* Section 7 CTA Link */
  main#main-content:nth-of-type(1) > section:nth-of-type(7) a {
    font-size: 13px !important;
    text-align: center !important;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .header-inner {
    height: 70px;
  }
  .hero {
    padding: 60px 0 70px;
  }
  .section {
    padding: 60px 0;
  }
  .form-card {
    padding: 24px;
  }
}

/* ==========================================================================
   Engineering Philosophy & Framework Components
   ========================================================================== */
.philosophy-hero-callout {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(79, 229, 184, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.philosophy-tag {
  background: var(--gradient-aqua-green);
  color: var(--color-navy-dark);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.philosophy-text {
  font-size: 0.95rem;
  color: #E2E8F0;
  margin: 0;
  line-height: 1.5;
}

/* Formula Banner */
.formula-strip {
  background: #151D3A;
  border-top: 1px solid rgba(79, 229, 184, 0.2);
  border-bottom: 1px solid rgba(79, 229, 184, 0.2);
  padding: 20px 0;
  text-align: center;
}

.formula-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
}

.formula-node {
  color: var(--color-aqua);
}

.formula-op {
  color: var(--color-green);
  opacity: 0.7;
}

/* Decision Sequence Flow & Modern Animated Flowchart (ALGOFAIT Identity) */
.decision-sequence-wrapper {
  margin: 32px 0 24px;
}

#engineering-flowchart.modern-flowchart-card,
.modern-flowchart-card {
  background: linear-gradient(145deg, #1A2142 0%, #262F5A 50%, #1E274E 100%);
  border: 1px solid rgba(79, 229, 184, 0.28);
  border-radius: var(--radius-lg, 16px);
  padding: 22px 20px 20px;
  box-shadow: 0 16px 36px -8px rgba(26, 33, 66, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.modern-flowchart-card::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 15%;
  width: 70%;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(79, 229, 184, 0.16) 0%, rgba(145, 253, 140, 0.05) 50%, transparent 75%);
  pointer-events: none;
  filter: blur(24px);
}

/* Flowchart Header */
.flow-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.flow-phases-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #94A3B8;
  background: rgba(38, 47, 90, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.flow-phase-tag:hover {
  color: #F1F5F9;
  border-color: rgba(79, 229, 184, 0.35);
  background: rgba(53, 65, 117, 0.6);
}

.flow-phase-tag.active {
  color: #4FE5B8;
  background: rgba(79, 229, 184, 0.14);
  border-color: rgba(79, 229, 184, 0.45);
  box-shadow: 0 0 10px rgba(79, 229, 184, 0.2);
}

.flow-phase-tag .phase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748B;
  transition: all 0.22s ease;
}

.flow-phase-tag.active .phase-dot {
  background: #4FE5B8;
  box-shadow: 0 0 6px #4FE5B8;
}

.flow-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #E8FBF4;
  background: rgba(38, 47, 90, 0.65);
  border: 1px solid rgba(79, 229, 184, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.flow-btn:hover {
  background: var(--color-navy, #262F5A);
  border-color: #4FE5B8;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(79, 229, 184, 0.25);
}

.flow-btn .play-icon {
  font-size: 0.72rem;
  line-height: 1;
}

.flow-nav-arrows {
  display: flex;
  gap: 5px;
}

.flow-arrow-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(38, 47, 90, 0.5);
  border: 1px solid rgba(79, 229, 184, 0.2);
  color: #E2E8F0;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.flow-arrow-btn:hover {
  background: rgba(79, 229, 184, 0.18);
  border-color: #4FE5B8;
  color: #4FE5B8;
}

/* Selector 2: Flow Track Wrapper (Fit Size Without Scrolling) */
#engineering-flowchart > div:nth-of-type(2),
.flow-track-wrapper {
  position: relative;
  overflow: visible;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 0 12px;
}

.flow-beam-track {
  position: absolute;
  top: 40px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: rgba(79, 229, 184, 0.12);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

.flow-beam-pulse {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 120px;
  background: linear-gradient(90deg, transparent 0%, #4FE5B8 50%, #91FD8C 80%, transparent 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px #4FE5B8;
  animation: flowBeamAnim 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes flowBeamAnim {
  0% {
    left: -120px;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* 11-Stage Nodes: Fully Responsive Grid Fitting Width Without Scrolling */
.flow-nodes-grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Hide separate spacer connectors so all 11 nodes align cleanly edge-to-edge */
.flow-connector {
  display: none !important;
}

.flow-node {
  background: rgba(26, 33, 66, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(79, 229, 184, 0.16);
  border-radius: 10px;
  padding: 10px 4px 8px;
  text-align: center;
  min-width: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  overflow: hidden;
}

.flow-node:hover {
  background: rgba(53, 65, 117, 0.7);
  border-color: rgba(79, 229, 184, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(10, 15, 35, 0.4);
}

.flow-node.active {
  background: linear-gradient(145deg, #2D396D 0%, #1A2142 100%);
  border-color: #4FE5B8;
  box-shadow: 0 0 16px rgba(79, 229, 184, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  z-index: 4;
}

.flow-node.completed {
  border-color: rgba(79, 229, 184, 0.28);
  background: rgba(38, 47, 90, 0.55);
}

.flow-node-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: #4FE5B8;
  background: rgba(26, 33, 66, 0.85);
  border: 1px solid rgba(79, 229, 184, 0.3);
  margin-bottom: 5px;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.flow-node.active .flow-node-badge {
  background: #4FE5B8;
  border-color: #91FD8C;
  color: #1A2142;
  font-weight: 800;
  box-shadow: 0 0 8px #4FE5B8;
  transform: scale(1.08);
}

.flow-node.completed .flow-node-badge {
  color: #91FD8C;
  border-color: rgba(145, 253, 140, 0.4);
  background: rgba(38, 47, 90, 0.9);
}

.flow-node-icon {
  width: 17px;
  height: 17px;
  margin-bottom: 4px;
  color: #94A3B8;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.flow-node:hover .flow-node-icon,
.flow-node.completed .flow-node-icon {
  color: #4FE5B8;
}

.flow-node.active .flow-node-icon {
  color: #FFFFFF;
  filter: drop-shadow(0 0 4px #4FE5B8);
}

.flow-node-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1.2;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
}

.flow-node.active .flow-node-title {
  color: #4FE5B8;
  font-weight: 800;
}

.flow-node-sub {
  font-size: 0.58rem;
  color: #94A3B8;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
}

.flow-node.active .flow-node-sub {
  color: #E2E8F0;
}

/* Selector 3: Stage Inspector Card (ALGOFAIT Identity & Simplified) */
#engineering-flowchart > div#flow-inspector-card:nth-of-type(3),
.flow-inspector {
  margin-top: 14px;
  background: rgba(22, 28, 58, 0.88);
  border: 1px solid rgba(79, 229, 184, 0.24);
  border-radius: 12px;
  padding: 16px 20px 14px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -6px rgba(10, 15, 35, 0.4);
}

.flow-inspector-content {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
}

.flow-inspector-left {
  display: flex;
  flex-direction: column;
}

.flow-inspector-tagline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4FE5B8;
  margin-bottom: 5px;
}

.flow-inspector-tagline .tagline-badge {
  background: rgba(79, 229, 184, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(79, 229, 184, 0.3);
}

.flow-inspector-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.flow-inspector-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #CBD5E1;
  margin: 0;
}

.flow-rule-box {
  background: rgba(38, 47, 90, 0.45);
  border-left: 3px solid #4FE5B8;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 0.78rem;
  color: #E2E8F0;
  line-height: 1.45;
  margin-top: 10px;
}

.flow-rule-box strong {
  color: #4FE5B8;
}

.flow-inspector-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-deliv-heading {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94A3B8;
}

.flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flow-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(79, 229, 184, 0.2);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.76rem;
  color: #F1F5F9;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.flow-chip::before {
  content: "✓";
  color: #4FE5B8;
  font-weight: 800;
  font-size: 0.72rem;
}

.flow-progress-track {
  margin-top: 14px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.flow-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4FE5B8 0%, #91FD8C 100%);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px #4FE5B8;
}

/* Responsive Breakpoints: Wrap Seamlessly Without Horizontal Scrollbars */
@media (max-width: 1024px) {
  .flow-nodes-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }
  .flow-inspector-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .flow-nodes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .modern-flowchart-card {
    padding: 16px 14px 14px;
  }
  .flow-inspector {
    padding: 14px 14px 12px;
  }
  .flow-inspector-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .flow-nodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 7 Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.principle-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.principle-card:hover {
  border-color: #4FE5B8;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.principle-axiom {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.principle-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   The 7 ALGOFAIT Principles — Unified Architecture Graph (Single Box)
   ========================================================================== */

.principles-unified-box {
  background: linear-gradient(145deg, #0B1433 0%, #060B1F 100%);
  border: 1px solid rgba(79, 229, 184, 0.28);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  padding: 24px 24px 28px;
}

.principles-box-decor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.box-decor-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 229, 184, 0.12);
  color: #4FE5B8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(79, 229, 184, 0.3);
}

.box-decor-dot {
  width: 6px;
  height: 6px;
  background-color: #4FE5B8;
  border-radius: 50%;
  box-shadow: 0 0 8px #4FE5B8;
  animation: graphPulse 2s infinite ease-in-out;
}

.box-decor-sub {
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principles-svg-canvas-wrap {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.principles-unified-svg {
  width: 100%;
  height: auto;
  max-height: 640px;
  display: block;
}

.svg-node-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.svg-node-card rect {
  transition: stroke 0.25s ease, stroke-width 0.25s ease, filter 0.25s ease;
}

.svg-node-card:hover rect,
.svg-node-card.active-node rect {
  stroke: #4FE5B8;
  stroke-width: 2.2;
}

.svg-node-card text {
  dominant-baseline: central;
  user-select: none;
  pointer-events: none;
}

.svg-spoke-line {
  transition: stroke 0.25s ease, stroke-width 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 768px) {
  .principles-unified-box {
    padding: 16px 12px 20px;
  }
  .box-decor-sub {
    display: none;
  }
}

/* Red Flags vs Engineering Response Table */
.flags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.flag-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.flag-danger {
  color: #DC2626;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flag-quote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.flag-resolution {
  background: #F4F7F9;
  border-left: 3px solid #105943;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

[dir="rtl"] .flag-resolution {
  border-left: none;
  border-right: 3px solid #105943;
  border-radius: 4px 0 0 4px;
}

/* Timeline Track (From Presentation Page 4) */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.timeline-milestone {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #105943;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.timeline-items {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-items li::before {
  content: "• ";
  color: #4FE5B8;
  font-weight: bold;
}

/* Office Hubs Strip (Zero-Pill Typographic Formatting) */
.hubs-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: #CBD5E1;
}

.hub-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
}

.hub-sep {
  color: var(--color-aqua);
  opacity: 0.8;
  font-weight: 400;
}

/* Trust Proof & Performance Metrics Bar */
.trust-bar {
  background: var(--color-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
}

.trust-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-metric-item {
  display: flex;
  flex-direction: column;
}

.trust-metric-val {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 800;
  background: var(--gradient-aqua-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}

.trust-metric-label {
  font-size: 0.88rem;
  color: #CBD5E1;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .trust-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 540px) {
  .trust-metrics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Mobile Viewport Compatibility & RTL Optimizations
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 70px;
  }
  .hero-support {
    font-size: 1.05rem !important;
    text-align: left;
  }
  [dir="rtl"] .hero-support {
    text-align: right;
  }
  .flow-track-wrapper {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .hero h1 span,
  .hero .eyebrow {
    white-space: normal !important;
  }
  .dash-brand-sub {
    font-size: 0.72rem;
  }
  .dash-kpi-grid,
  .dash-kpi-grid.four-col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .dash-kpi-card {
    padding: 8px 6px 6px !important;
  }
  .dash-kpi-card .kpi-val {
    font-size: 0.95rem !important;
  }
  .dash-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
  .dash-header-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }
  .dash-tagline {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Mobile full graph scroll coverage for Principles Graph Box (#principles-graph-root) */
  div#principles-graph-root,
  .principles-unified-box {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 16px 12px 20px;
    box-sizing: border-box;
  }

  .principles-svg-canvas-wrap {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain !important;
    padding-bottom: 12px;
    scroll-behavior: smooth;
  }

  .principles-unified-svg {
    min-width: 820px !important;
    width: 820px !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
  }

  .principles-svg-canvas-wrap::-webkit-scrollbar {
    height: 5px;
  }
  .principles-svg-canvas-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
  }
  .principles-svg-canvas-wrap::-webkit-scrollbar-thumb {
    background: rgba(79, 229, 184, 0.45);
    border-radius: 4px;
  }
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-grid {
    gap: 24px;
  }
  .flow-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .flow-controls {
    width: 100%;
    justify-content: space-between;
  }
  .flow-nodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .flow-inspector {
    padding: 12px !important;
  }
  .flow-inspector-content {
    grid-template-columns: 1fr !important;
  }
  .credentials-grid {
    grid-template-columns: 1fr !important;
  }
  .team-grid {
    grid-template-columns: 1fr !important;
  }
  main#main-content:nth-of-type(1) > section:nth-of-type(3) .team-avatar,
  .team-avatar {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 320px !important;
  }
  main#main-content:nth-of-type(1) > section:nth-of-type(3) .team-avatar img,
  .team-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 15% !important;
  }
  .team-name {
    min-height: auto;
  }
  .credential-title {
    min-height: auto;
  }
  .principles-grid {
    grid-template-columns: 1fr !important;
  }
}

/* RTL Layout Refinements for Arabic */
[dir="rtl"] .flow-node-badge {
  left: auto;
  right: 4px;
}
[dir="rtl"] .flow-connector-arrow {
  transform: rotate(180deg);
}
[dir="rtl"] .service-journey-link,
[dir="rtl"] .service-link {
  flex-direction: row-reverse;
}
[dir="rtl"] .dash-pipe {
  margin-left: 6px;
  margin-right: 0;
}
[dir="rtl"] .dash-dropdown-menu {
  right: 0;
  left: auto;
}
[dir="rtl"] .hero-support {
  text-align: right !important;
}
[dir="rtl"] .flow-deliv-heading {
  text-align: right;
}
[dir="rtl"] .flow-inspector-left {
  text-align: right;
}
[dir="rtl"] .mobile-nav {
  text-align: right;
}
[dir="rtl"] .mobile-nav .nav-link {
  text-align: right;
}
[dir="rtl"] .credential-title,
[dir="rtl"] .credential-desc,
[dir="rtl"] .team-name,
[dir="rtl"] .team-role {
  text-align: right;
}
[dir="rtl"] .credential-action-row {
  justify-content: flex-start;
}
[dir="rtl"] .credential-arrow-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   PERFORMANCE & RENDERING OPTIMIZATIONS
   ========================================================================== */

/* Off-screen section rendering containment for fast load & scroll */
.section-services-journey,
.solutions-grid,
.projects-grid,
.team-grid,
.credentials-grid,
.decision-sequence-wrapper,
.growit-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

/* GPU Hardware acceleration for smooth transitions */
.btn,
.project-card,
.solution-card,
.service-journey-card,
.dash-kpi-card,
.flow-node,
.team-card,
.credential-card {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

