/* Humble Active Solutions — Main Stylesheet */

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  --color-primary: #9b59b6;
  --color-primary-dark: #7d3c98;
  --color-text: #1a1a2e;
  --color-text-light: #ffffff;
  --color-bg: #ffffff;
  --color-nav-bg: transparent;
  --color-nav-scrolled-bg: #ffffff;
  --color-nav-scrolled-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  --color-link-hover: #0057ff;
  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --transition-speed: 0.25s;
  --nav-height: 64px;
  --z-navbar: 1000;
}

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

body {
  font-family: var(--font-family-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Keyboard Focus Styles (Accessibility — Req 7.3)
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   Navigation Bar (Requirements 1.1, 1.3, 1.4, 1.7, 7.3, 8.1)
   ============================================================ */
#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
  height: var(--nav-height);
  padding: 0 2rem;
  background-color: var(--color-nav-bg);
  transition:
    background-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

/* Applied by JS when scrolled past hero (Req 1.3) */
#navbar.scrolled {
  background-color: var(--color-nav-scrolled-bg);
  box-shadow: var(--color-nav-scrolled-shadow);
}

/* --- Logo --- */
.nav-logo a {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-speed) ease;
}

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

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* --- Nav Links --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-speed) ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-speed) ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

/* --- CTA Button — shared .btn-primary class --- */
.btn-primary {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-bold);
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-light);
  outline: none;
}

.nav-cta {
  margin-left: 1rem;
}

/* --- Hamburger Button (hidden on desktop) --- */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-text);
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: 4px;
  transition: color var(--transition-speed) ease;
}

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

/* ============================================================
   Mobile Navigation (Req 1.4)
   @media max-width: 768px
   ============================================================ */
@media (max-width: 768px) {
  #navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1.25rem;
  }

  /* Show hamburger on mobile */
  .nav-hamburger {
    display: block;
  }

  /* Hide nav links and CTA by default on mobile */
  .nav-links,
  .nav-cta {
    display: none;
  }

  /* Show nav links when toggled open by JS (Req 1.5) */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    order: 3;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-links.open li {
    width: 100%;
  }

  .nav-links.open a {
    display: block;
    padding: 0.65rem 0;
    font-size: 1rem;
    width: 100%;
  }

  .nav-links.open a::after {
    display: none;
  }

  /* Logo takes all remaining space between itself and hamburger */
  .nav-logo {
    flex: 1;
  }
}

/* ============================================================
   Button Variants
   ============================================================ */
.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: transparent;
  color: var(--color-text-light);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-bold);
  border: 2px solid var(--color-text-light);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
  white-space: nowrap;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
  outline: none;
}

.btn-outline {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: transparent;
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-bold);
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
  white-space: nowrap;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  outline: none;
}

/* ============================================================
   Hero Section (Req 2.1–2.8)
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #000;
  color: var(--color-text-light);
}

/* Hero background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
}

/* Purple overlay on top of the video */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Hero fade-in animation (Req 2.6) */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 2rem 1.5rem;
  animation: heroFadeIn 0.8s ease both;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Decorative background circles (kept as subtle layer above video) */
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 40%);
}

/* ============================================================
   Shared Section Styles
   ============================================================ */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 1.0625rem;
  text-align: center;
  color: #555;
  margin-bottom: 3rem;
}

/* ============================================================
   Social Proof / Stats Bar
   ============================================================ */
#stats {
  background: linear-gradient(135deg, #2d0057 0%, #6a0dad 100%);
  color: #fff;
  padding: 3rem 2rem;
}

.stats-container {
  max-width: 1100px;
  margin: 0 auto;
}

.stats-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.stat-icon {
  color: #d4a8ff;
  line-height: 0;
  margin-bottom: 0.25rem;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-desc {
  font-size: 0.875rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* AWS community item — wider, horizontal layout */
.stat-item--wide {
  flex-direction: row;
  text-align: left;
  gap: 1rem;
  align-items: flex-start;
}

.stat-icon--aws {
  flex-shrink: 0;
  color: #d4a8ff;
  margin-top: 0.2rem;
}

.stat-aws-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-aws-title {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
  line-height: 1.3;
}

.stat-aws-desc {
  font-size: 0.875rem;
  opacity: 0.85;
  line-height: 1.5;
}

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

  .stat-item--wide {
    grid-column: span 2;
  }
}

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

  .stat-item--wide {
    grid-column: span 1;
  }
}

/* ============================================================
   Why Us Section
   ============================================================ */
#why-us {
  background-color: var(--color-bg);
}

.why-us-container {
  max-width: 820px;
}

.why-us-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.why-us-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #444;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.why-us-lead--accent {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  font-style: italic;
}

.why-us-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.why-us-body p {
  font-size: 1.0625rem;
  color: #444;
  line-height: 1.8;
}

.why-us-highlight {
  font-size: 1.25rem !important;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary) !important;
  text-align: center;
}

.why-us-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.why-us-pillar {
  background: linear-gradient(135deg, #f8f0ff 0%, #f0e6ff 100%);
  border: 1px solid #e0c8ff;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.why-us-pillar p {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.4;
}

.pillar-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.why-us-impact {
  background: linear-gradient(135deg, #2d0057 0%, #6a0dad 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.why-us-impact-intro {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.why-us-impact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}

.why-us-impact-list li {
  font-size: 1rem;
  opacity: 0.9;
  position: relative;
  padding-left: 1.1rem;
}

.why-us-impact-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0.7;
}

.why-us-closing {
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: 0.95;
}

.why-us-closing strong {
  font-size: 1.15rem;
  display: block;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .why-us-pillars {
    grid-template-columns: 1fr;
  }

  .why-us-impact {
    padding: 2rem 1.25rem;
  }

  .why-us-impact-list {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
}

/* ============================================================
   How We Work Section
   ============================================================ */
#how-we-work {
  background: linear-gradient(180deg, #faf7ff 0%, #f3eaff 100%);
}

.steps-wrapper {
  position: relative;
  margin: 3rem 0 2.5rem;
}

/* Horizontal connecting line behind the bubbles (desktop) */
.steps-line {
  display: none;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 1.5rem 0;
  position: relative;
}

/* Vertical connector between steps on mobile */
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 35px;
  top: 88px;
  width: 3px;
  height: calc(100% - 60px);
  background: linear-gradient(180deg, #9b59b6 0%, #d4a8ff 100%);
  border-radius: 2px;
  z-index: 0;
}

/* Bubble circle */
.step-bubble {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a0dad 0%, #9b59b6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(106, 13, 173, 0.3);
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-item:hover .step-bubble {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(106, 13, 173, 0.45);
}

.step-bubble--last {
  background: linear-gradient(135deg, #2d0057 0%, #6a0dad 100%);
}

.step-number {
  font-size: 0.7rem;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}

.step-icon {
  color: #fff;
  line-height: 0;
}

.step-content {
  padding-top: 0.75rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.7;
  max-width: 480px;
}

.steps-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Desktop: horizontal layout */
@media (min-width: 769px) {
  .steps-line {
    display: block;
    position: absolute;
    top: 35px;
    left: calc(72px / 2);
    right: calc(72px / 2);
    height: 3px;
    background: linear-gradient(90deg, #6a0dad 0%, #d4a8ff 50%, #6a0dad 100%);
    border-radius: 2px;
    z-index: 0;
  }

  .steps-list {
    flex-direction: row;
    align-items: flex-start;
  }

  .step-item {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 0 0.75rem;
  }

  .step-item:not(:last-child)::after {
    display: none;
  }

  .step-content {
    padding-top: 0;
  }

  .step-desc {
    max-width: 100%;
  }
}

/* ============================================================
   Services Section (Req 3.1–3.8)
   ============================================================ */
#services {
  background-color: #f7f9ff;
}

/* Solutions value pillars */
.solutions-intro {
  font-size: 1.0625rem;
  color: #555;
  text-align: center;
  max-width: 700px;
  margin: -1rem auto 2.5rem;
  line-height: 1.7;
}

/* Solutions value pillars */
.solutions-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.solutions-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid #e0c8ff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(106, 13, 173, 0.07);
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solutions-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(106, 13, 173, 0.15);
}

.solutions-pillar--center {
  background: linear-gradient(135deg, #6a0dad 0%, #9b59b6 100%);
  border-color: transparent;
  color: #fff;
}

.solutions-pillar-verb {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.solutions-pillar--center .solutions-pillar-verb {
  color: #fff;
}

.solutions-pillar-outcome {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

.solutions-pillar--center .solutions-pillar-outcome {
  color: rgba(255, 255, 255, 0.9);
}

.solutions-pillar-tag {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.25rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-bold);
  border-radius: 20px;
  background: linear-gradient(135deg, #f3eaff 0%, #e0c8ff 100%);
  color: var(--color-primary);
  letter-spacing: 0.03em;
}

.solutions-pillar--center .solutions-pillar-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

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

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

/* Scroll-in animation (Req 3.4) */
@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
  /* Start hidden; JS adds .visible class on intersection */
  opacity: 0;
  transform: translateY(32px);
}

.service-card.visible {
  animation: cardSlideIn 0.6s ease both;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 87, 255, 0.12);
  transform: translateY(-4px);
}

.service-icon {
  color: var(--color-primary);
  line-height: 0;
}

.service-title {
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.service-description {
  color: #444;
  font-size: 0.9375rem;
  line-height: 1.7;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-features li {
  font-size: 0.9rem;
  color: #333;
  padding-left: 1.25rem;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.service-cta {
  margin-top: auto;
  align-self: flex-start;
}

#service-industry,
#service-training {
  grid-column: auto;
  align-self: start;
}

/* Force last two cards onto their own 2-column row */
#service-industry {
  grid-column: 1 / 2;
}

#service-training {
  grid-column: 2 / 4;
  max-width: 100%;
  margin: 0;
}

#service-training .service-description,
#service-training .service-features {
  flex-grow: 0;
}

/* Stack to 1 column on mobile (Req 3.3) */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Solution cards — outcome callout */
.service-outcome {
  font-size: 0.875rem;
  color: #555;
  background: linear-gradient(135deg, #f8f0ff 0%, #f0e6ff 100%);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 6px 6px 0;
  padding: 0.6rem 0.875rem;
  line-height: 1.5;
}

.industry-tagline {
  font-size: 0.875rem;
  font-style: italic;
  color: #666;
  margin-top: 0.6rem !important;
  line-height: 1.5;
}

/* Industry groups inside the industry card */
.service-industries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.industry-group h4 {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.industry-group p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
}

.industry-imagine {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.4rem !important;
}

.industry-imagine-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.industry-imagine-list li {
  font-size: 0.875rem;
  color: #444;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}

.industry-imagine-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.75rem;
  top: 1px;
}

/* Why Businesses Choose Us block */
.why-choose-us {
  margin-top: 4rem;
  background: linear-gradient(135deg, #2d0057 0%, #6a0dad 100%);
  color: #fff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.why-choose-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.75rem;
}

.why-choose-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.why-choose-list li {
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 1.75rem;
  position: relative;
  opacity: 0.95;
}

.why-choose-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #d4a8ff;
  font-weight: var(--font-weight-bold);
}

.why-choose-closing {
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto;
}

.why-choose-closing strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .why-choose-us {
    padding: 2rem 1.25rem;
  }

  .why-choose-list {
    text-align: left;
  }
}

/* ============================================================
   Security: Honeypot field — visually hidden, not in tab order
   ============================================================ */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ============================================================
   Why Humble Active Solutions — Story Section
   ============================================================ */
#our-story {
  background: #fff;
}

.story-container {
  max-width: 820px;
}

.story-header {
  text-align: center;
  margin-bottom: 3rem;
}

.story-lead {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  font-style: italic;
  margin-top: 0.75rem;
}

.story-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Origin / Humble the dog block */
.story-origin {
  background: linear-gradient(135deg, #f8f0ff 0%, #f0e6ff 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 16px 16px 0;
  padding: 2rem 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-paw {
  font-size: 2.5rem;
  line-height: 1;
}

.story-origin p {
  font-size: 1.0625rem;
  color: #444;
  line-height: 1.8;
}

.story-section {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.story-section p {
  font-size: 1.0625rem;
  color: #444;
  line-height: 1.8;
}

.story-emphasis {
  font-size: 1.2rem !important;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary) !important;
  font-style: italic;
}

/* Mission statement */
.story-mission {
  text-align: center;
  padding: 2rem;
  border: 2px solid #e0c8ff;
  border-radius: 16px;
  background: #faf7ff;
}

.story-mission-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text);
  line-height: 1.7;
  font-weight: var(--font-weight-bold);
}

/* Beliefs list */
.story-beliefs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-beliefs-list li {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  padding-left: 1.75rem;
  position: relative;
}

.story-beliefs-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

/* Ripple effect block */
.story-ripple {
  background: linear-gradient(135deg, #2d0057 0%, #6a0dad 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.story-ripple-intro {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.story-ripple-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  margin-bottom: 1.5rem;
}

.story-ripple-items span {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  opacity: 0.95;
  position: relative;
  padding-left: 1.1rem;
}

.story-ripple-items span::before {
  content: "✦";
  position: absolute;
  left: 0;
  font-size: 0.6rem;
  top: 5px;
  opacity: 0.7;
}

.story-ripple-close {
  font-size: 1rem;
  opacity: 0.9;
  font-style: italic;
}

/* Closing statement */
.story-closing {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-closing p {
  font-size: 1.0625rem;
  color: #444;
  line-height: 1.7;
}

.story-closing strong {
  font-size: 1.15rem;
  color: var(--color-text);
}

.story-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   Contact Section (Req 4.1–4.11)
   ============================================================ */
#contact {
  background-color: var(--color-bg);
}

#contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  font-size: 0.9375rem;
  font-family: var(--font-family-base);
  color: var(--color-text);
  background-color: #ffffff;
  border: 1.5px solid #c9d0e0;
  border-radius: 6px;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.15);
}

/* Invalid state (Req 4.4) */
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

/* Inline error messages (Req 4.3, 7.8) */
.field-error {
  font-size: 0.8125rem;
  color: #d32f2f;
  min-height: 1.1em;
  display: block;
}

/* Submit button loading state (Req 4.6) */
.form-submit {
  align-self: flex-start;
  min-width: 160px;
  transition:
    background-color var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    opacity var(--transition-speed) ease;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Status message (Req 4.7, 4.8, 7.9) */
.form-status {
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  display: block;
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ============================================================
   Footer (Req 6.1–6.7)
   ============================================================ */
#footer {
  background-color: #0a1628;
  color: #b0bcd4;
  padding-top: 3rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: opacity var(--transition-speed) ease;
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-email {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #d4a8ff;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-email:hover {
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.875rem;
  opacity: 0.75;
  line-height: 1.5;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: #b0bcd4;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  color: #b0bcd4;
  line-height: 0;
  transition: color var(--transition-speed) ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.825rem;
  opacity: 0.65;
}

/* Stack footer columns on mobile (Req 6.7) */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

/* ============================================================
   Global Responsive Fixes & Polish
   ============================================================ */

/* Prevent horizontal overflow on all screens */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

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

/* ============================================================
   Nav logo responsive — smaller on mobile
   ============================================================ */
@media (max-width: 480px) {
  .nav-logo-img {
    height: 34px;
  }
}

/* ============================================================
   Hero responsive
   ============================================================ */
@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   Stats bar responsive
   ============================================================ */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item--wide {
    grid-column: span 1;
  }
}

/* ============================================================
   Why Us pillars responsive
   ============================================================ */
@media (max-width: 600px) {
  .why-us-pillars {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   How We Work responsive — reduce padding on small screens
   ============================================================ */
@media (max-width: 480px) {
  .step-bubble {
    width: 58px;
    height: 58px;
  }

  .step-title {
    font-size: 1.05rem;
  }

  .step-desc {
    font-size: 0.875rem;
  }
}

/* ============================================================
   Solutions grid — full responsive stack
   ============================================================ */
@media (max-width: 768px) {
  #service-industry,
  #service-training {
    grid-column: 1 / -1;
  }
}

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

/* ============================================================
   Story section responsive
   ============================================================ */
@media (max-width: 480px) {
  .story-origin {
    padding: 1.5rem 1.25rem;
  }

  .story-ripple-items {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ============================================================
   Contact form responsive
   ============================================================ */
@media (max-width: 480px) {
  .form-submit {
    width: 100%;
    align-self: stretch;
  }
}

/* ============================================================
   Footer responsive
   ============================================================ */
@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding: 1rem;
  }
}

/* ============================================================
   Section containers — padding on small screens
   ============================================================ */
@media (max-width: 480px) {
  .section-container {
    padding: 3rem 1.25rem;
  }

  .why-us-container {
    padding: 3rem 1.25rem;
  }
}
