/* ==========================================================================
   RUHAVIS ENTERPRISE DESIGN SYSTEM
   Green Header + Vibrant Professional Multi-Color Accent System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* Brand Emerald Primary */
  --primary: #049e5f;
  --primary-dark: #037a49;
  --primary-deep: #052f21;
  --primary-header: #043827;
  --primary-header-end: #022318;
  --primary-soft: #eafaf2;
  --primary-glow: rgba(4, 158, 95, 0.25);
  
  /* Cyber Mint Accent */
  --accent: #00f5a0;
  --accent-mint: #2ef0a9;
  --accent-soft: rgba(0, 245, 160, 0.12);
  --accent-glow: rgba(0, 245, 160, 0.4);

  /* Vibrant Professional Palette */
  --color-blue: #0284c7;
  --color-blue-soft: #f0f9ff;
  --color-blue-border: #bae6fd;
  
  --color-purple: #7c3aed;
  --color-purple-soft: #f5f3ff;
  --color-purple-border: #ddd6fe;
  
  --color-amber: #d97706;
  --color-amber-soft: #fffbeb;
  --color-amber-border: #fde68a;
  
  --color-rose: #e11d48;
  --color-rose-soft: #fff1f2;
  --color-rose-border: #fecdd3;
  
  --color-teal: #0d9488;
  --color-teal-soft: #f0fdfa;
  --color-teal-border: #99f6e4;

  --color-indigo: #4f46e5;
  --color-indigo-soft: #eef2ff;
  --color-indigo-border: #c7d2fe;

  --color-fuchsia: #c026d3;
  --color-fuchsia-soft: #fdf4ff;
  --color-fuchsia-border: #f5d0fe;
  
  /* Neutral Surfaces */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-dark: #071510;
  --bg-dark-card: #0e261d;
  --bg-dark-border: rgba(255, 255, 255, 0.08);
  
  /* Text */
  --text: #0b1914;
  --text-soft: #334155;
  --text-muted: #64748b;
  --text-inverted: #ffffff;
  --text-inverted-soft: #cbd5e1;
  
  /* Borders */
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --line-glow: rgba(4, 158, 95, 0.2);
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 40px -8px rgba(15, 23, 42, 0.15), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 24px rgba(0, 245, 160, 0.2);
  
  /* Dimensions & Radius */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;
  --container: 1200px;
  
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Safe Area Insets (Android gesture navigation & iOS notch/island) */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
}

/* ---------- Global Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 15.5px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.16s ease, opacity 0.16s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

/* ---------- Scroll Progress Bar ---------- */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #38bdf8 50%, var(--primary) 100%);
  width: 0%;
  z-index: 9999;
  transition: width 0.08s linear;
}

/* ---------- Sleek & Refined Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.022em;
}

h1 {
  font-size: clamp(1.65rem, 1.35rem + 1vw, 2.25rem);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.028em;
}
h1.wide { max-width: 25ch; }

.page-hero h1 {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2.05rem);
  line-height: 1.24;
}

h2 {
  font-size: clamp(1.22rem, 1.08rem + 0.55vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45em;
  line-height: 1.28;
}
h3 {
  font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.35em;
  line-height: 1.35;
}
h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  color: var(--text-soft);
  margin-bottom: 0.95em;
  font-size: 0.95rem;
  line-height: 1.62;
}
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(0.96rem, 0.9rem + 0.22vw, 1.08rem);
  line-height: 1.62;
  color: var(--text-soft);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  border: 1px solid rgba(4, 158, 95, 0.25);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text) 20%, var(--primary-dark) 70%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons & Interactive Pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(4, 158, 95, 0.35), 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #05b870 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(4, 158, 95, 0.45), 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: #ffffff;
  color: var(--text) !important;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: var(--bg-dark-card);
  color: #ffffff !important;
  border: 1px solid var(--bg-dark-border);
}
.btn-dark:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  box-shadow: var(--shadow-glow);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.8rem;
  border-radius: var(--radius-xs);
}

/* Luminous Cyber-Mint Button (Header CTA) */
.btn-mint-glow {
  background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
  color: #042e1f !important;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 3px 12px rgba(0, 245, 160, 0.35);
}
.btn-mint-glow:hover {
  background: linear-gradient(135deg, #2ef0a9 0%, #00f5a0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 160, 0.55);
}

/* ---------- Badges & Chips with Colorful Pastels ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 550;
  box-shadow: var(--shadow-sm);
  transition: all 0.16s ease;
}
.badge:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.14s ease;
}
.chip:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}
.chip.key {
  background: var(--primary-soft);
  border-color: rgba(4, 158, 95, 0.25);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ---------- Top Bar Announcement (Clean & Light) ---------- */
.top-notice-bar {
  background: #f0fdf4;
  color: #14532d;
  font-size: 0.78rem;
  padding: 7px 0;
  border-bottom: 1px solid #dcfce7;
  position: relative;
  z-index: 1002;
}
.top-notice-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.top-notice-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.5);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
.top-notice-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: #15803d;
}
.top-notice-right a { color: #047857; font-weight: 600; }
.top-notice-right a:hover { text-decoration: underline; color: #065f46; }

/* ==========================================================================
   CLEAN & BRIGHT ENTERPRISE HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.22s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-bottom-color: var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
  transition: min-height 0.2s ease;
}
.site-header.scrolled .nav-wrap { min-height: 64px; }

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 42px;
  width: auto;
  transition: transform 0.2s ease, height 0.2s ease;
}
.site-header.scrolled .brand img { height: 36px; }
.brand:hover img { transform: scale(1.02); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav > a, .nav-item > a {
  padding: 8px 13px;
  border-radius: var(--radius-xs);
  color: var(--text-soft);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: all 0.16s ease;
}
.main-nav > a:hover, .nav-item > a:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}
.main-nav > a.active, .nav-item > a.active {
  color: var(--primary);
  font-weight: 700;
}
.main-nav > a.active::after, .nav-item > a.active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Nav Dropdown Mega Menus */
.nav-item { position: relative; }
.dropdown-caret {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.nav-item:hover .dropdown-caret, .nav-item.open .dropdown-caret {
  transform: rotate(180deg);
  color: var(--primary);
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  margin-top: 0;
  min-width: 300px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-xl), 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 1001;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
/* Invisible hover bridge connecting navbar link to dropdown panel */
.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}
.nav-item:hover .dropdown-panel,
.nav-item:focus-within .dropdown-panel,
.nav-item.open .dropdown-panel {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-panel.mega-panel {
  min-width: 540px;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 14px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.14s ease;
}
.dropdown-item:hover {
  background: var(--bg-soft);
  transform: translateX(2px);
}
.dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 750;
  flex-shrink: 0;
  transition: all 0.14s ease;
}
.dropdown-item:hover .dropdown-icon {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Category-specific icon highlights */
.dropdown-item[href*="full-stack"] .dropdown-icon { color: var(--color-teal); background: var(--color-teal-soft); border-color: var(--color-teal-border); }
.dropdown-item[href*="oracle"] .dropdown-icon { color: var(--color-amber); background: var(--color-amber-soft); border-color: var(--color-amber-border); }
.dropdown-item[href*="testing"] .dropdown-icon { color: var(--color-blue); background: var(--color-blue-soft); border-color: var(--color-blue-border); }
.dropdown-item[href*="data"] .dropdown-icon { color: var(--color-purple); background: var(--color-purple-soft); border-color: var(--color-purple-border); }
.dropdown-item[href*="ai"] .dropdown-icon { color: var(--color-fuchsia); background: var(--color-fuchsia-soft); border-color: var(--color-fuchsia-border); }
.dropdown-item[href*="cyber"] .dropdown-icon { color: var(--color-rose); background: var(--color-rose-soft); border-color: var(--color-rose-border); }
.dropdown-item[href*="cloud"], .dropdown-item[href*="aws"] .dropdown-icon { color: var(--color-indigo); background: var(--color-indigo-soft); border-color: var(--color-indigo-border); }

.dropdown-item-title {
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.25;
}
.dropdown-item-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.dropdown-all {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-xs);
}
.dropdown-all:hover {
  background: var(--primary-soft);
}

/* Nav Action Buttons & Search Trigger */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.14s ease;
}
.search-trigger-btn:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}
.search-shortcut-kbd {
  padding: 2px 5px;
  border-radius: 3px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:hover, .menu-toggle:active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.menu-toggle.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ---------- Mobile Backdrop & Scroll Lock ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 16, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.menu-open {
  overflow: hidden;
}

.mobile-nav-footer {
  display: none;
}

/* ---------- Search Modal (Cmd+K) ---------- */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 22, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 20px 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.search-modal-backdrop.open {
  display: flex;
  opacity: 1;
}
.search-modal-box {
  width: min(580px, 100%);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: searchModalSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes searchModalSlide {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.search-modal-input-wrap {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.search-modal-input-wrap svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.search-modal-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.98rem;
  font-family: var(--font-heading);
  color: var(--text);
  background: transparent;
}
.search-modal-close-btn {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.search-modal-results {
  max-height: 340px;
  overflow-y: auto;
  padding: 10px;
}
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  transition: all 0.12s ease;
  margin-bottom: 3px;
}
.search-result-item:hover, .search-result-item.selected {
  background: var(--primary-soft);
}
.search-result-title {
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--text);
}
.search-result-category {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 3px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-weight: 600;
}
.search-modal-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   COLORFUL ENTERPRISE HERO & SECTIONS
   ========================================================================== */
.hero {
  position: relative;
  padding: 58px 0 68px;
  background:
    radial-gradient(ellipse 65% 55% at 85% 15%, rgba(0, 245, 160, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(2, 132, 199, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(124, 58, 237, 0.05), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 85%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  margin-bottom: 32px;
}

.hero-trust-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.trust-avatars {
  display: flex;
}
.trust-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  margin-left: -8px;
}
.trust-avatar:first-child { margin-left: 0; }
.trust-avatar:nth-child(2) { background: var(--color-blue-soft); color: var(--color-blue); }
.trust-avatar:nth-child(3) { background: var(--color-purple-soft); color: var(--color-purple); }
.trust-proof-text {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.35;
}
.trust-proof-text strong {
  color: var(--text);
  font-weight: 650;
  display: block;
}

.hero-visual {
  position: relative;
}
.hero-visual-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(4, 158, 95, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-visual-card:hover {
  transform: translateY(-3px);
}

/* Floating Badges on Hero */
.floating-hero-pill {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text);
  z-index: 5;
  animation: float-hero 5s ease-in-out infinite;
}
.floating-hero-pill.pill-top-right {
  top: -12px;
  right: -10px;
  border-color: var(--color-blue-border);
  animation-delay: 0s;
}
.floating-hero-pill.pill-bottom-left {
  bottom: -14px;
  left: -12px;
  border-color: rgba(4, 158, 95, 0.3);
  animation-delay: 2.5s;
}
@keyframes float-hero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Subpage Hero ---------- */
.page-hero {
  padding: 44px 0 40px;
  background:
    radial-gradient(ellipse 65% 55% at 90% 10%, rgba(0, 245, 160, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(2, 132, 199, 0.08), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--line-strong); }

/* ---------- Marquee / Partner Ecosystem Strip ---------- */
.marquee-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
}
.marquee-title {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-soft);
  white-space: nowrap;
}
.marquee-item span.tech-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* Tech dot color accents */
.marquee-item:nth-child(3n+1) span.tech-dot { background: var(--color-blue); }
.marquee-item:nth-child(3n+2) span.tech-dot { background: var(--color-purple); }
.marquee-item:nth-child(3n+3) span.tech-dot { background: var(--color-amber); }

/* ---------- Global Section Layouts ---------- */
.section { padding: 68px 0; position: relative; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section.dark {
  background: var(--bg-dark);
  color: #ffffff;
  border-block: 1px solid var(--bg-dark-border);
}
.section.dark h2, .section.dark h3, .section.dark h4 { color: #ffffff; }
.section.dark p { color: var(--text-inverted-soft); }

.section-heading {
  max-width: 64ch;
  margin-bottom: 42px;
}
.section-heading.centered {
  text-align: center;
  margin-inline: auto;
}
.section-heading.centered .eyebrow { margin-inline: auto; }

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

/* ==========================================================================
   COLORFUL PRACTICE CARDS
   ========================================================================== */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(4, 158, 95, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
a.card { display: flex; }
a.card::after {
  content: "Learn more →";
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}
a.card:hover::after {
  transform: translateX(3px);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--primary-soft);
  border: 1px solid rgba(4, 158, 95, 0.25);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 750;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.card:hover .card-icon {
  transform: scale(1.06);
}

/* Card colorful top accent & icon palettes */
.card:nth-child(1) .card-icon { background: var(--color-teal-soft); color: var(--color-teal); border-color: var(--color-teal-border); }
.card:nth-child(2) .card-icon { background: var(--color-amber-soft); color: var(--color-amber); border-color: var(--color-amber-border); }
.card:nth-child(3) .card-icon { background: var(--color-blue-soft); color: var(--color-blue); border-color: var(--color-blue-border); }
.card:nth-child(4) .card-icon { background: var(--color-purple-soft); color: var(--color-purple); border-color: var(--color-purple-border); }
.card:nth-child(5) .card-icon { background: var(--color-fuchsia-soft); color: var(--color-fuchsia); border-color: var(--color-fuchsia-border); }
.card:nth-child(6) .card-icon { background: var(--color-indigo-soft); color: var(--color-indigo); border-color: var(--color-indigo-border); }
.card:nth-child(7) .card-icon { background: var(--color-rose-soft); color: var(--color-rose); border-color: var(--color-rose-border); }
.card:nth-child(8) .card-icon { background: var(--color-teal-soft); color: var(--color-teal); border-color: var(--color-teal-border); }
.card:nth-child(9) .card-icon { background: var(--color-amber-soft); color: var(--color-amber); border-color: var(--color-amber-border); }

/* Feature List inside Card */
.card ul {
  margin: 14px 0 0;
  padding: 0;
}
.card li {
  position: relative;
  padding-left: 18px;
  margin: 7px 0;
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.45;
}
.card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.78rem;
}

/* ---------- Interactive Capability Tabs ---------- */
.tab-container { margin-top: 28px; }
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  justify-content: center;
}
.tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--text-soft);
  transition: all 0.16s ease;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.tab-pane { display: none; animation: fadeInPane 0.25s ease; }
.tab-pane.active { display: block; }
@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Practice Spotlight Cards ---------- */
.practice-spotlight-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
}
.practice-spotlight-card:hover {
  border-color: rgba(4, 158, 95, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.practice-spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, #38bdf8 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.practice-spotlight-card:hover::before { opacity: 1; }

/* ---------- Split Sections & Info Boxes ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.info-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.info-box.glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}
.info-box h3 { margin-bottom: 0.5em; }

.check-list {
  list-style: none;
  margin: 16px 0 0;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 11px 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 1px solid rgba(4, 158, 95, 0.25);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.65em;
  width: 5px;
  height: 3px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.notice {
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 16px;
  color: var(--text-soft);
  font-size: 0.86rem;
  margin-top: 18px;
}

/* ---------- Strategic Methodology Framework ---------- */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  position: relative;
}
.method-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.18s ease;
}
.method-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Step-specific vibrant badges */
.method-card:nth-child(1) .method-step { color: var(--color-blue); background: var(--color-blue-soft); }
.method-card:nth-child(2) .method-step { color: var(--color-purple); background: var(--color-purple-soft); }
.method-card:nth-child(3) .method-step { color: var(--color-amber); background: var(--color-amber-soft); }
.method-card:nth-child(4) .method-step { color: var(--primary-dark); background: var(--primary-soft); }

.method-step {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.method-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.method-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.45; }

/* ---------- Interactive Project Estimator Widget ---------- */
.estimator-card {
  background: linear-gradient(145deg, #ffffff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  align-items: center;
}
.estimator-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: #ffffff;
  outline: none;
  transition: all 0.14s ease;
}
.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---------- Resume File Upload Dropzone ---------- */
.file-upload-dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin-top: 4px;
}
.file-upload-dropzone:hover,
.file-upload-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.file-input-hidden {
  display: none !important;
}
.dropzone-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--primary);
  line-height: 1;
}
.dropzone-text {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 4px;
}
.dropzone-text strong {
  color: var(--primary-dark);
  text-decoration: underline;
}
.dropzone-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.dropzone-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(4, 158, 95, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.file-preview-info {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.file-preview-icon {
  font-size: 1.4rem;
}
.file-preview-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-all;
}
.file-size-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary-dark);
  font-weight: 600;
}
.file-remove-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #ef4444;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.file-remove-btn:hover {
  background: #fee2e2;
}
.estimator-result-box {
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--bg-dark-border);
  box-shadow: var(--shadow-xl);
}
.estimator-result-box h3 { color: #ffffff; margin-bottom: 6px; font-size: 1.15rem; }
.estimator-result-box p { color: var(--text-inverted-soft); font-size: 0.86rem; line-height: 1.45; }
.est-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
  padding: 14px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}
.est-metric-tile strong {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  display: block;
}
.est-metric-tile span {
  font-size: 0.75rem;
  color: var(--text-inverted-soft);
}

/* ---------- Case Studies & Results Matrix with Colors ---------- */
.case-study-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.case-study-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.case-industry-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.case-study-card:nth-child(1) .case-industry-tag { color: var(--color-teal); }
.case-study-card:nth-child(2) .case-industry-tag { color: var(--color-amber); }
.case-study-card:nth-child(3) .case-industry-tag { color: var(--color-purple); }

.case-stat-highlight {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 10px 0 4px;
}
.case-study-card:nth-child(1) .case-stat-highlight { color: var(--color-teal); }
.case-study-card:nth-child(2) .case-stat-highlight { color: var(--color-amber); }
.case-study-card:nth-child(3) .case-stat-highlight { color: var(--color-purple); }

.case-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.18s ease;
}
.testimonial-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.testimonial-stars {
  color: var(--color-amber);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.testimonial-card blockquote {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.2;
}
.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ---------- Stack Blocks (Subpages) ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stack-block {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}
.stack-block:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.stack-block h4 {
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}
.stack-block .note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- FAQ Accordion ---------- */
.faq-container { max-width: 780px; margin-inline: auto; }
.faq details {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.16s ease;
}
.faq details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.faq details p {
  padding: 0 20px 18px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- Banner CTA (Dark Theme) ---------- */
.banner {
  border-radius: var(--radius-lg);
  padding: 52px 42px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(0, 245, 160, 0.25), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(2, 132, 199, 0.25), transparent 70%),
    linear-gradient(135deg, var(--bg-dark) 0%, #0d271e 60%, #053b2a 100%);
  color: #ffffff;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.banner h2 {
  color: #ffffff;
  margin-inline: auto;
  max-width: 24ch;
  font-size: clamp(1.35rem, 1.15rem + 0.75vw, 1.8rem);
}
.banner p {
  color: rgba(255, 255, 255, 0.82);
  margin-inline: auto;
  max-width: 56ch;
  font-size: 0.96rem;
  line-height: 1.55;
}
.banner .eyebrow {
  background: rgba(0, 245, 160, 0.15);
  color: var(--accent);
  border-color: rgba(0, 245, 160, 0.3);
}
.banner .button-row {
  justify-content: center;
  margin-top: 24px;
}

/* ---------- Contact Page Forms & Portal ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}
.contact-form {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.contact-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.detail-list {
  list-style: none;
  margin-top: 14px;
}
.detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.detail-list li:last-child { border-bottom: none; }
.detail-list span { color: var(--text-muted); font-weight: 500; }
.detail-list a { color: var(--primary); font-weight: 600; }
.detail-list a:hover { text-decoration: underline; }

/* ---------- Mega Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: #e2f2e9;
  padding: 64px 0 0;
  border-top: 1px solid rgba(0, 245, 160, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 0.8fr;
  gap: 38px;
  padding-bottom: 48px;
}
.footer-brand h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-brand p {
  color: #94a39b;
  font-size: 0.86rem;
  max-width: 42ch;
  line-height: 1.55;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 0.78rem;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.footer-col ul { list-style: none; }
.footer-col li { margin: 9px 0; }
.footer-col a {
  color: #cbdad1;
  font-size: 0.86rem;
  transition: color 0.14s ease, transform 0.14s ease;
  display: inline-block;
}
.footer-col a:hover {
  color: var(--accent);
  transform: translateX(2px);
}
.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #83978c;
}
.footer-compliance-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-compliance-badges span {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  color: #a7f3d0;
}

/* ---------- Floating Quick Action & Back to Top ---------- */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.back-to-top-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s ease;
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   MULTI-DEVICE & RESPONSIVE BREAKPOINTS
   Optimized for Desktops, Tablets, Phablets, and Smartphones (320px - 1440px+)
   ========================================================================== */

@keyframes mobileNavSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Tablet & Mobile Navigation Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .site-header {
    padding: 3px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .site-header.menu-open {
    z-index: 10000;
  }
  .nav-wrap {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .brand {
    order: 1;
    flex-shrink: 0;
  }
  .brand img {
    height: 38px;
    width: auto;
    max-width: 180px;
  }
  .nav-actions {
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .menu-toggle {
    order: 3;
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    z-index: 10002;
  }

  /* Mobile Drawer */
  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 10px;
    right: 10px;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl), 0 20px 50px rgba(0, 0, 0, 0.25);
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    z-index: 10001;
    pointer-events: auto;
    order: 4;
  }
  .main-nav.open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: mobileNavSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .main-nav > a, .nav-item > a {
    padding: 12px 14px;
    min-height: 46px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(4, 158, 95, 0.12);
    pointer-events: auto;
  }
  .main-nav > a:hover, .nav-item > a:hover,
  .main-nav > a:active, .nav-item > a:active {
    background: var(--primary-soft);
    color: var(--primary-dark);
  }
  .main-nav > a.active, .nav-item > a.active {
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-weight: 700;
  }
  .main-nav > a.active::after, .nav-item > a.active::after {
    display: none;
  }

  .nav-item.has-dropdown {
    border-bottom: 1px solid var(--line);
  }
  .nav-item.has-dropdown > a {
    border-bottom: none;
    width: 100%;
    cursor: pointer;
    touch-action: manipulation;
  }

  .dropdown-caret {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 1rem;
    margin-left: auto;
    flex-shrink: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(4, 158, 95, 0.2);
    transition: transform 0.22s ease, background 0.15s ease, color 0.15s ease;
  }
  .nav-item.open .dropdown-caret {
    transform: rotate(180deg);
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-color: rgba(4, 158, 95, 0.3);
  }

  .dropdown-panel {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--primary);
    border-radius: var(--radius-xs);
    margin: 4px 0 10px 8px;
    padding: 8px;
    background: var(--bg-soft);
    opacity: 1;
    transform: none;
    min-width: 0;
  }
  .nav-item.open .dropdown-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: mobileAccordionOpen 0.2s ease-out;
  }
  .dropdown-panel.mega-panel {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px;
  }
  .dropdown-panel::before {
    display: none;
  }

  .dropdown-item {
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    margin-bottom: 0;
    transition: background 0.14s ease, border-color 0.14s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(4, 158, 95, 0.12);
  }
  .dropdown-item:hover, .dropdown-item:active {
    background: var(--primary-soft);
    border-color: var(--primary-glow);
    transform: none;
  }
  .dropdown-item-title {
    font-size: 0.88rem;
    color: var(--text);
  }
  .dropdown-item-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
  }
  .dropdown-all {
    background: #ffffff;
    border: 1px solid var(--line);
    margin-top: 4px;
    padding: 10px 12px;
    touch-action: manipulation;
  }

  /* Drawer Footer */
  .mobile-nav-footer {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .mobile-nav-footer .btn-drawer-cta {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 16px;
    font-size: 0.94rem;
    touch-action: manipulation;
  }
  .mobile-reach-info {
    display: flex;
    gap: 8px;
  }
  .mobile-reach-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 10px 10px;
    border-radius: var(--radius-xs);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(4, 158, 95, 0.15);
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .mobile-reach-link:hover, .mobile-reach-link:active {
    background: var(--primary-soft);
    border-color: var(--primary);
  }

  /* Grids & Layout for Tablet */
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .grid-4, .stack-grid, .methodology-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .estimator-card { grid-template-columns: 1fr; }
}

/* Medium Mobile & Small Tablet (<= 860px) */
@media (max-width: 860px) {
  .top-notice-bar { display: none; }
  .nav-actions .btn-primary { display: none; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .banner { padding: 32px 20px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* Small Smartphone (<= 640px) */
@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .site-header { padding: 2px 0; }
  .nav-wrap { min-height: 56px; }
  .site-header.scrolled .nav-wrap { min-height: 54px; }
  
  .brand img {
    height: 34px;
    max-width: 155px;
  }
  .site-header.scrolled .brand img {
    height: 32px;
  }
  
  .search-shortcut-kbd { display: none; }
  .search-trigger-btn { padding: 6px 10px; font-size: 0.78rem; gap: 5px; }
  .menu-toggle { width: 38px; height: 38px; font-size: 1.15rem; }

  .main-nav {
    top: 60px;
    left: 8px;
    right: 8px;
    max-height: calc(100dvh - 72px);
    padding: 14px;
  }

  h1 { font-size: clamp(1.45rem, 1.25rem + 1vw, 1.85rem); }
  .hero-actions, .button-row { flex-direction: column; width: 100%; gap: 10px; }
  .hero-actions .btn, .button-row .btn { width: 100%; }
  .card, .practice-spotlight-card, .contact-form-card { padding: 20px 16px; }
  .grid-4, .stack-grid, .methodology-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-compliance-badges { justify-content: center; flex-wrap: wrap; }
  
  /* Prevent iOS zoom on form input focus */
  input, select, textarea { font-size: 16px !important; }
}

/* Compact Mobile (<= 380px) */
@media (max-width: 380px) {
  .container { width: calc(100% - 20px); }
  .brand img { height: 30px; max-width: 130px; }
  .main-nav { left: 6px; right: 6px; padding: 12px; }
  .mobile-reach-info { flex-direction: column; }
  .search-trigger-btn span { display: none; }
  .search-trigger-btn { padding: 6px 8px; }
}

/* ---------- Motion & Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
