/* ==========================================================================
   CAVION SOLUTIONS — SIGNATURE CAVION BLUE THEME
   - Zero horizontal overflow: fully responsive on desktop, laptop, tablet & mobile
   - Header modeled after AppSignal B2B reference (Dark bar, centered nav with dropdowns, right-side CTA buttons, no header WhatsApp)
   - Mobile & Tablet optimized: 48px+ touch targets, 16px inputs (no iOS auto-zoom), smooth mobile drawer
   - Sourcing Form: Highly appealing interactive industry selector, step progress bar, custom drag & drop styling, and security trust badges
   - Colors: Deep Midnight Navy (#030b18, #05142e), Royal Cavion Blue (#0a224a, #0c2b5e, #1c5cc4), Electric Blue (#2563eb), Cyan Accent (#38bdf8)
   ========================================================================== */

:root {
  /* Page Backgrounds */
  --bg: #030b18;          /* Midnight Deep Navy */
  --bg-surface: #05142e;  /* Section Alternate Navy */
  --alt: #061838;         /* Subtle Tinted Navy */
  
  /* Cavion Blue Box & Card System (All boxes are blue) */
  --card: #081d3f;
  --card-gradient: linear-gradient(160deg, #0a2550 0%, #05152e 100%);
  --card-border: #163c78;
  --card-border-hover: #2563eb;
  --card-glow: rgba(37, 99, 235, 0.25);
  
  /* Text Colors on Dark Blue */
  --text: #e2edfd;
  --text-heading: #ffffff;
  --muted: #a3bfdf;
  --muted-light: #7b9cc4;
  
  /* Cavion Brand Accents */
  --blue: #1c5cc4;
  --blue-bright: #2563eb;
  --blue-hover: #3b82f6;
  --electric: #2e78f6;
  --accent: #38bdf8;
  --accent-cyan: #0ea5e9;
  
  /* Header Specifics */
  --header-bg: #040e21;
  --header-border: rgba(255, 255, 255, 0.08);
  --header-link: #cbd5e1;
  --header-link-hover: #ffffff;
  
  /* Borders & Dividers */
  --line: #143568;
  --line-subtle: #0d264c;
  --line-focus: #38bdf8;
  
  /* Status */
  --success: #10b981;
  --success-bg: #062b1e;
  --error: #ef4444;
  --error-bg: #311116;
  
  /* Shadows & Radius */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 45px -8px rgba(0, 0, 0, 0.65);
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Strict Prevention of Horizontal Scrolling */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 "Plus Jakarta Sans", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.w {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

section {
  padding: 96px 0;
  position: relative;
  background: transparent;
  width: 100%;
  overflow: hidden;
}

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

.deep {
  background: #020712;
  color: #ffffff;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  margin: 0;
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  word-break: break-word;
}

h2 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  word-break: break-word;
}

.h2-accent {
  position: relative;
  display: inline-block;
}

.h2-accent:after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-bright), var(--accent));
  border-radius: var(--radius-pill);
  margin-top: 14px;
}

.text-center .h2-accent:after {
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #93c5fd 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.kick {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kick-pill {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  max-width: 100%;
  flex-wrap: wrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  display: inline-block;
  animation: pulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: #c9ddf7;
}

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

a:hover {
  color: #93c5fd;
}

/* ==========================================================================
   HEADER — DESIGNED LIKE APPSIGNAL IN USER REFERENCE IMAGE (NO WHATSAPP)
   Dark Midnight Bar, Centered Nav with Carets, Right-Side 2 Action Buttons
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-left .logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left img {
  height: 38px;
  width: auto;
}

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

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--header-link);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.nav-link .caret {
  font-size: 10px;
  color: #7b9cc4;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
  line-height: 1;
}

.nav-item:hover .nav-link .caret {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: -12px;
  min-width: 260px;
  background: #071c3d;
  border: 1px solid #18417f;
  border-radius: var(--radius-sm);
  padding: 8px 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  list-style: none;
  margin: 0;
  z-index: 1100;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
  animation: fadeInDown 0.18s ease-out;
}

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

.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-dropdown li a:hover {
  background: #0f3068;
  color: #ffffff;
  padding-left: 22px;
}

.nav-dropdown li a small {
  display: block;
  font-size: 11.5px;
  color: #8bb2df;
  margin-top: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.nav-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.nav-btn-primary {
  background: linear-gradient(135deg, #1c5cc4 0%, #2563eb 100%);
  border: 1px solid #3b82f6;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

#mt {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  min-width: 48px;
  min-height: 48px;
}

/* ==========================================================================
   BUTTONS (TOUCH TARGETS MIN 48px)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--blue) 0%, #2563eb 100%);
  color: #ffffff !important;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
  box-shadow: 0 4px 18px rgba(28, 92, 196, 0.35);
  touch-action: manipulation;
}

.btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 92, 196, 0.5);
}

.btn:active {
  transform: translateY(0);
}

.btn.o {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

.btn.o:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn.o-dark {
  background: rgba(14, 43, 90, 0.6);
  color: #ffffff !important;
  border: 1px solid #2563eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn.o-dark:hover {
  background: #2563eb;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn.sm {
  padding: 10px 20px;
  font-size: 14px;
  min-height: 44px;
}

.btn.wa {
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn.wa:hover {
  background: linear-gradient(135deg, #2ae06d 0%, #22bb59 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  color: #ffffff;
  padding: 110px 0 96px;
  background: 
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(28, 92, 196, 0.28), transparent 70%),
    linear-gradient(115deg, rgba(3, 11, 24, 0.98) 20%, rgba(5, 20, 46, 0.94) 65%, rgba(9, 29, 64, 0.88)),
    url("assets/hero-bg.jpg") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

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

.hero h1 {
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.12;
}

.hero .sub {
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero p {
  color: #d1e2f7;
  font-size: 17.5px;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 680px;
}

.hero .cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.hero-badge-pill.active {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(91, 155, 255, 0.5);
  color: var(--accent);
}

/* Hero Showcase Card */
.hero-showcase {
  background: linear-gradient(160deg, #0a2550 0%, #05152e 100%);
  border: 1px solid #1a427f;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  position: relative;
  width: 100%;
}

.hero-showcase:before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.showcase-header h3 {
  font-size: 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-tag {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}

.showcase-steps {
  display: grid;
  gap: 14px;
}

.showcase-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}

.showcase-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(4px);
}

.showcase-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-bright);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.showcase-content b {
  display: block;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 2px;
}

.showcase-content span {
  font-size: 12.5px;
  color: #c0d3ee;
}

.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.s-stat {
  text-align: center;
}

.s-stat b {
  display: block;
  font-size: 22px;
  color: var(--accent);
  font-weight: 800;
  line-height: 1.1;
}

.s-stat small {
  font-size: 11.5px;
  color: #b1c8e8;
  line-height: 1.3;
  display: block;
  margin-top: 4px;
}

/* Page Hero for Sub-Pages */
.phero {
  background: 
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(56, 189, 248, 0.14), transparent 60%),
    linear-gradient(115deg, rgba(3, 11, 24, 0.98) 25%, rgba(6, 22, 50, 0.92) 70%),
    url("assets/hero-bg.jpg") center/cover no-repeat;
  color: #ffffff;
  padding: 88px 0 74px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.phero h1 {
  font-size: clamp(30px, 4.5vw, 50px);
  color: #ffffff;
  margin-bottom: 16px;
}

.phero p {
  color: #d1e2f7;
  max-width: 760px;
  font-size: 17.5px;
  line-height: 1.65;
  margin: 0;
}

.crumb {
  font-size: 13px;
  color: #9cb5db;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crumb a {
  color: #ffffff;
}

.crumb span {
  color: var(--accent);
}

/* Grids */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

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

/* ==========================================================================
   ALL BOXES & CARDS IN RICH CAVION BLUE (NO WHITE BOXES)
   ========================================================================== */

.card {
  background: var(--card-gradient);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  color: var(--text);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--card-glow);
  border-color: var(--card-border-hover);
}

.card h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 700;
}

.card h4 {
  color: #ffffff;
}

.card p {
  font-size: 15px;
  margin-bottom: 0;
  color: #cbdff8;
}

/* HPM Stage Timeline Cards */
.hpm-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 44px 0 20px;
  position: relative;
}

.hpm-step {
  background: var(--card-gradient);
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--blue-bright);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.hpm-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 16px var(--card-glow);
  border-color: var(--accent);
}

.hpm-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.hpm-step h3 {
  font-size: 15.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.hpm-step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbdff8;
  margin: 0;
}

/* Industry Feature Cards with Modern Photo Zoom */
.industry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.industry-card {
  background: var(--card-gradient);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 22px var(--card-glow);
  border-color: var(--accent);
}

.industry-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.industry-card:hover .industry-card-img {
  transform: scale(1.06);
}

.industry-card-img-wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(3, 11, 24, 0.75) 100%);
}

.industry-img-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(3, 11, 24, 0.88);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.industry-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.industry-card-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.industry-card-body .target-audience {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.industry-card-body p {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
  color: #cbdff8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.tag {
  background: #05142e;
  color: #93c5fd;
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.tag:hover {
  background: var(--blue-bright);
  color: #ffffff;
  border-color: var(--blue-bright);
}

/* Commercial Arrangement Box in Rich Cavion Navy/Blue */
.commercial-box {
  background: 
    radial-gradient(ellipse 60% 60% at 10% 90%, rgba(56, 189, 248, 0.12), transparent 70%),
    linear-gradient(135deg, #05142e 0%, #0a2552 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  margin: 44px 0;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  position: relative;
  width: 100%;
}

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.comm-col {
  background: rgba(8, 29, 64, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 26px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.comm-col:hover {
  background: rgba(12, 38, 84, 0.9);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.comm-col h4 {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comm-col p {
  color: #d1e2f7;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

.comm-notice {
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(56, 189, 248, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-xs);
  font-size: 14.5px;
  color: #e2edfd;
  line-height: 1.6;
}

/* Services Grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.svc-item {
  background: var(--card-gradient);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.svc-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 16px var(--card-glow);
  border-color: var(--card-border-hover);
}

.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #0e3066;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  border: 1px solid #1a498f;
}

.svc-item h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
}

.svc-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #cbdff8;
  margin: 0;
}

/* ==========================================================================
   ELEVATED & HIGH-APPEAL SOURCING REQUEST PORTAL
   Interactive Industry Selector, Section Step Badges, Drag & Drop Upload
   ========================================================================== */

.q-wrap {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.form-box {
  background: 
    radial-gradient(ellipse 70% 40% at 80% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    linear-gradient(165deg, #0a2550 0%, #041228 100%);
  border: 1px solid #1e4a90;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.7);
  position: relative;
}

.form-box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.form-box h2 {
  color: #ffffff;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.form-box p.form-lead-desc {
  color: #c5dcfa;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Step Progress Header Bar */
.form-step-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #7b9dc7;
}

.step-badge-item.active {
  color: var(--accent);
}

.step-badge-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.step-badge-item.active .step-badge-num {
  background: var(--blue-bright);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Interactive Industry Selector Grid */
.industry-picker-label {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  display: block;
}

.industry-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.industry-pick-card {
  background: rgba(8, 29, 64, 0.65);
  border: 1px solid #1a427f;
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-family: inherit;
  width: 100%;
}

.industry-pick-card:hover {
  background: rgba(14, 43, 90, 0.85);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.industry-pick-card.active {
  background: linear-gradient(135deg, #0e326c 0%, #15458e 100%);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.industry-pick-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.industry-pick-content {
  display: flex;
  flex-direction: column;
}

.industry-pick-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.3;
}

.industry-pick-card.active .industry-pick-title {
  color: var(--accent);
}

.industry-pick-desc {
  font-size: 11.5px;
  color: #9cbfe8;
  line-height: 1.4;
}

/* Form Group Sections */
.form-section-block {
  background: rgba(4, 16, 38, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #1c5cc4 0%, #0ea5e9 100%);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.step-title-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.step-sub {
  font-size: 12.5px;
  font-weight: 400;
  color: #9cbfe8;
}

.field-group-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
}

.field-group-label:after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.3), transparent);
}

.form-section-block .form-row,
.form-section-block > label {
  margin-bottom: 16px;
}

.form-section-block > :last-child,
.form-section-block .form-row:last-child {
  margin-bottom: 0;
}

.form-section-block {
  background:
    linear-gradient(180deg, rgba(14, 50, 108, 0.35) 0%, rgba(4, 16, 38, 0.55) 100%);
  border: 1px solid rgba(56, 189, 248, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

form {
  display: grid;
  gap: 18px;
}

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

label {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2edfd;
  display: grid;
  gap: 6px;
}

label .lbl {
  display: block;
  line-height: 1.35;
}

label span.req {
  color: var(--accent);
  margin-left: 2px;
}

label .lbl > span.req:first-child {
  margin-left: 0;
  margin-right: 5px;
}

label small {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

/* 16px font on inputs strictly prevents iOS Safari auto-zoom */
input, select, textarea {
  font: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid #1a427f;
  border-radius: var(--radius-sm);
  background: #041024;
  color: #ffffff;
  width: 100%;
  min-height: 48px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
  background: #06183a;
}

input::placeholder, textarea::placeholder {
  color: #6482a8;
  opacity: 1;
}

.form-section-block input:not([type="checkbox"]):not([type="file"]),
.form-section-block select,
.form-section-block textarea {
  background: rgba(3, 12, 30, 0.85);
  border-color: rgba(56, 189, 248, 0.22);
  border-radius: 10px;
}

.form-section-block input:not([type="checkbox"]):not([type="file"]):hover,
.form-section-block select:hover,
.form-section-block textarea:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.form-section-block select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Modern File Upload Dropzone */
.file-upload-dropzone {
  border: 2px dashed #1e4a90;
  border-radius: var(--radius-md);
  padding: 26px 20px;
  background: rgba(6, 23, 54, 0.7);
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.file-upload-dropzone:hover,
.file-upload-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(14, 45, 96, 0.95);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.file-upload-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.file-upload-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.file-upload-sub {
  font-size: 12.5px;
  color: #9cbfe8;
  margin-bottom: 12px;
}

.file-upload-formats {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
}

.file-upload-dropzone input[type="file"],
.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  color: #cbdff8;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue-bright);
}

/* Security Trust Banner */
.form-trust-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #9cb5db;
  flex-wrap: wrap;
  margin-top: 10px;
}

.form-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Submit Sourcing Button */
.btn-submit-sourcing {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1c5cc4 0%, #0ea5e9 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
  transition: all 0.25s ease;
  min-height: 52px;
}

.btn-submit-sourcing:hover {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.5);
}

.note {
  font-size: 13.5px;
  margin-top: 10px;
  line-height: 1.5;
}

.note.ok {
  color: #34d399;
  font-weight: 600;
  background: var(--success-bg);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.note.err {
  color: #f87171;
  font-weight: 500;
  background: var(--error-bg);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Form Side Box with Enhanced Visuals */
.q-side {
  background: 
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(56, 189, 248, 0.16), transparent 60%),
    linear-gradient(145deg, #092552 0%, #041026 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
  position: sticky;
  top: 96px;
}

.q-side h3 {
  color: #ffffff;
  font-size: 23px;
  margin-bottom: 12px;
}

.q-side p {
  color: #d1e2f7;
  font-size: 14.5px;
  margin-bottom: 24px;
}

/* High-credibility Guarantee Badges in Side Card */
.side-guarantee-list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.side-guarantee-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-guarantee-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.side-guarantee-text {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.side-guarantee-sub {
  display: block;
  font-size: 11.5px;
  color: #9cbfe8;
  font-weight: 400;
}

.contact-pill-list {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-pill {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

.contact-pill small {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9cb5db;
  margin-bottom: 2px;
}

.contact-pill a, .contact-pill span {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
}

.contact-pill a:hover {
  color: var(--accent);
}

/* ==========================================================================
   FAQ ACCORDION IN CAVION BLUE
   ========================================================================== */

.faq-list {
  max-width: 920px;
  margin: 36px auto 0;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #06193b;
  margin-bottom: 14px;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.faq-item[open] {
  border-color: var(--accent);
  background: #092556;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.15);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  padding: 20px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:after {
  content: "+";
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary:after {
  content: "\2212";
  transform: rotate(180deg);
}

.faq-item .faq-content {
  padding-bottom: 22px;
  font-size: 15px;
  color: #cbdff8;
  line-height: 1.7;
}

.faq-item .faq-content ol, .faq-item .faq-content ul {
  padding-left: 20px;
  margin: 10px 0;
}

.faq-item .faq-content li {
  margin-bottom: 8px;
}

/* ==========================================================================
   ALL TABLES IN RICH CAVION BLUE (NO WHITE TABLES)
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  background: #05152e;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

table.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  text-align: left;
  background: #06193a;
  min-width: 600px; /* Safe scroll inside container on mobile without body overflow */
}

table.comp-table th, table.comp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.comp-table th {
  background: #030f24;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

table.comp-table th:nth-child(2) {
  background: #0e326c;
  color: #ffffff;
}

table.comp-table td:first-child {
  font-weight: 600;
  color: #ffffff;
  background: #041229;
  width: 26%;
  border-right: 1px solid var(--line);
}

table.comp-table td {
  color: #d1e2f7;
  background: #06193a;
}

table.comp-table tr.highlight td {
  background: #0a2552;
}

table.comp-table tr:hover td {
  background: #0d2d63;
}

/* Partner Page Grid */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 36px 0;
}

.partner-card {
  background: var(--card-gradient);
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--blue-bright);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 16px var(--card-glow);
  border-color: var(--accent);
}

.partner-card h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
}

.partner-card p {
  font-size: 14px;
  margin: 0;
  color: #cbdff8;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: #020712;
  color: #c0d0ea;
  padding: 72px 0 calc(38px + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 52px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col p {
  color: #adc1df;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: #c0d0ea;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #8da4c7;
}

.footer-bottom a {
  color: #8da4c7;
}

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

/* Honeypot field for anti-spam */
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP, LAPTOP, TABLET & MOBILE)
   ========================================================================== */



/* Cloudflare deployment/layout hardening — preserves the original animation system. */
.w.nav {
  width: min(100%, 1600px);
  max-width: 1600px;
  padding-left: clamp(18px, 3.5vw, 56px);
  padding-right: clamp(18px, 3.5vw, 56px);
  gap: 14px;
}
.nav-center { min-width: 0; }
.nav-menu { gap: clamp(8px, 1vw, 16px); }
.nav-link {
  font-size: clamp(11px, 0.78vw, 13px);
  white-space: nowrap;
}
.nav-dropdown {
  display: none;
  white-space: normal;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown { display: block; }
.industry-picker-grid { display: grid; }
.industry-pick-card {
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* Laptop & Tablet Landscape (1200px and below) */
@media (max-width: 1200px) {
  #mt {
    display: block;
  }
  .nav-center, .nav-right {
    display: none;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #040e21;
    flex-direction: column;
    padding: 24px;
    gap: 14px;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1050;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-link {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    background: #06193a;
    border-radius: 6px;
    margin: 6px 0 10px;
    width: 100%;
  }
  .nav-item.dropdown-open .nav-dropdown {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hpm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .industry-cards, .grid3, .svc-grid, .commercial-grid, .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet Portrait & Large Mobile (768px and below) */
@media (max-width: 768px) {
  section {
    padding: 68px 0;
  }
  .hero {
    padding: 88px 0 72px;
  }
  .grid2, .q-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .q-side {
    order: -1;
    position: static;
  }
  .hpm-grid {
    grid-template-columns: 1fr 1fr;
  }
  .commercial-grid {
    grid-template-columns: 1fr;
  }
  .commercial-box {
    padding: 36px 24px;
  }
  .form-box {
    padding: 30px 22px;
  }
  .industry-picker-grid {
    grid-template-columns: 1fr;
  }
  .form-step-indicators {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Mobile Devices (600px and below) */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .w {
    padding: 0 18px;
  }
  .hpm-grid, .industry-cards, .grid3, .svc-grid, .partner-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero .cta-group {
    flex-direction: column;
  }
  .hero .cta-group .btn {
    width: 100%;
  }
  .form-box {
    padding: 24px 18px;
  }
  .form-section-block {
    padding: 18px 14px;
  }
  .commercial-box {
    padding: 28px 18px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Phone field: South Africa dial-code dropdown before the number */
.phone-row {
  display: flex;
  gap: 8px;
}

.phone-row .phone-cc,
.form-section-block .phone-row .phone-cc {
  flex: 0 0 96px;
  width: 96px;
  min-width: 0;
  padding: 13px 26px 13px 12px;
  background-position: right 9px center;
}

.phone-row input[type="tel"] {
  padding-left: 14px;
  padding-right: 10px;
}

.phone-row input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
}




/* Selected sourcing industry — Cavion blue/cyan glow */
.industry-pick-card {
  position: relative;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease,
    color 220ms ease;
}
.industry-pick-card.active,
.industry-pick-card[aria-checked="true"] {
  background: linear-gradient(135deg, #123d79 0%, #174b91 100%);
  border-color: #22c7ff;
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(34, 199, 255, 0.35),
    0 0 20px rgba(34, 199, 255, 0.40),
    0 0 40px rgba(37, 99, 235, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}
.industry-pick-card.active .industry-pick-title,
.industry-pick-card[aria-checked="true"] .industry-pick-title {
  color: #38bdf8;
}
.industry-pick-card.active .industry-pick-desc,
.industry-pick-card[aria-checked="true"] .industry-pick-desc {
  color: #c5dcff;
}
.industry-pick-card:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}


/* Partnership Enquiry submission feedback — scoped to partner.html */
.partner-submit-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.partner-submit-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: partner-submit-spin 0.75s linear infinite;
}
#partner_submit:disabled {
  cursor: wait;
  opacity: 0.88;
  transform: none;
}
.partner-form-message:empty {
  display: none;
}
.partner-form-message:not(:empty) {
  animation: partner-message-in 0.35s ease both;
}
@keyframes partner-submit-spin {
  to { transform: rotate(360deg); }
}
@keyframes partner-message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-submit-spinner,
  .partner-form-message:not(:empty) {
    animation: none;
  }
}


/* hCaptcha widget presentation — partnership enquiry form only */
.partner-captcha-wrap {
  margin: 8px 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(3, 11, 24, 0.38);
}
.partner-captcha-label {
  margin: 0 0 10px;
  color: #e2edfd;
  font-size: 13px;
  font-weight: 700;
}
.partner-captcha-wrap .h-captcha {
  min-height: 78px;
}
.partner-captcha-help {
  margin: 8px 0 0;
  color: #9cb5db;
  font-size: 11px;
  line-height: 1.45;
}


/* ==========================================================================
   MOBILE & TABLET FIXES (additive only — desktop layout is unchanged)
   ========================================================================== */

/* Tablet landscape and below: the hamburger menu is in use, so dropdowns must
   open/close by tap only. Without this, the sticky :hover state on touch screens
   keeps a dropdown open and the second tap cannot close it. */
@media (max-width: 1200px) {
  .nav-item:hover > .nav-dropdown,
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within > .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    display: none;
    animation: none;
  }
  .nav-item.dropdown-open > .nav-dropdown,
  .nav-item.dropdown-open .nav-dropdown {
    display: block;
  }
  .nav-item.dropdown-open .nav-link .caret {
    transform: rotate(180deg);
    color: var(--accent);
  }
  .nav-link:hover,
  .nav-link.active {
    margin-bottom: 0;
  }
  .nav-menu {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overscroll-behavior: contain;
  }
  .nav-dropdown li a {
    padding: 13px 18px;
    min-height: 44px;
  }
  .nav-dropdown li a:hover {
    padding-left: 18px;
  }
  /* Show the header call-to-action inside the open menu area is not needed; keep the
     header compact and make sure the toggle is easy to tap */
  #mt {
    flex: 0 0 auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-left img {
    max-width: 100%;
  }
}

/* Phones and tablets: comfortable, reliable touch targets and no overflow */
@media (max-width: 1200px) {
  .btn,
  .nav-btn-primary,
  .nav-btn-ghost,
  .btn-submit-sourcing {
    min-height: 48px;
    touch-action: manipulation;
  }
  .footer-col a,
  .footer-bottom a {
    display: inline-block;
    padding: 6px 0;
  }
  img, video, iframe, svg {
    max-width: 100%;
  }
  img {
    height: auto;
  }
  .nav-left img,
  .logo-link img {
    height: 38px;
    width: auto;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Touch devices: hover-only effects must not "stick" after a tap */
@media (hover: none) {
  .card:hover,
  .industry-card:hover,
  .hpm-step:hover,
  .svc-item:hover,
  .comm-col:hover,
  .partner-card:hover,
  .showcase-item:hover {
    transform: none;
  }
}

/* Small phones */
@media (max-width: 600px) {
  .nav {
    gap: 8px;
  }
  .nav-left img {
    height: 34px;
  }
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .cta-group {
    flex-wrap: wrap;
  }
  .phone-row .phone-cc,
  .form-section-block .phone-row .phone-cc {
    flex-basis: 92px;
    width: 92px;
  }
  .partner-captcha-wrap {
    overflow-x: auto;
  }
}

/* Very small phones (<= 360px) */
@media (max-width: 360px) {
  .w {
    padding: 0 14px;
  }
  h1 {
    overflow-wrap: anywhere;
  }
}

/* Landscape phones: avoid a huge header/hero eating the screen */
@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    padding: 56px 0 48px;
  }
  .nav-menu {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
  }
}
