/* InfoQuest — Compunnel-adjacent enterprise UI (HTML/CSS/JS, no frameworks) */

:root {
  --color-text: #1c1f26;
  --color-text-muted: #5c6370;
  --color-text-on-dark: #f0f2f5;
  --color-text-on-dark-muted: #a8b0bc;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f6f9;
  --color-border: #e2e6ed;
  --color-hero: #0f1729;
  --color-hero-mid: #162038;
  --color-accent-green: #1e8f5a;
  --color-accent-green-hover: #167a4c;
  --color-accent-orange: #c75c28;
  --font-wordmark: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-height: 4.25rem;
  --max-width: 75rem;
  --radius: 4px;
  --shadow-card: 0 8px 32px rgba(15, 23, 41, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-surface-alt);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent-green);
}

a:hover {
  text-decoration: underline;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(15, 23, 41, 0.04), 0 10px 40px rgba(15, 23, 41, 0.04);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(15, 23, 41, 0.12);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand:focus-visible {
  outline: 2px solid var(--color-accent-green);
  outline-offset: 4px;
}

.brand__mark {
  display: block;
  height: 2.75rem;
  width: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.12;
  font-family: var(--font-wordmark);
}

.brand__line1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.brand__line2 {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-top: 0.08rem;
}

@media (min-width: 768px) {
  .brand__mark {
    height: 3rem;
  }
  .brand__line1 {
    font-size: 1.35rem;
  }
  .brand__line2 {
    font-size: 0.72rem;
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle:hover {
  border-color: var(--color-text-muted);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  display: none;
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex-wrap: nowrap;
  }
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-surface);
  padding: 1rem 1.25rem 2rem;
  overflow-y: auto;
  z-index: 150;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@media (min-width: 960px) {
  .site-nav.is-open {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    overflow: visible;
    box-shadow: none;
  }
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* ——— Chatbot widget (bottom-right) ——— */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.chatbot-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.15rem;
  z-index: 260;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-accent-green), #167a4c);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(15, 23, 41, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chatbot-launcher-icon {
  width: 1.55rem;
  height: 1.55rem;
}

.chatbot-launcher:hover,
.chatbot-launcher:focus-visible {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(15, 23, 41, 0.52);
}

.chatbot-launcher[aria-expanded="true"] {
  background: linear-gradient(145deg, #0f1729, #1a3050);
  border-color: rgba(255, 255, 255, 0.2);
}

.chatbot-launcher[data-theme="light"] {
  background: linear-gradient(145deg, #1e8f5a, #167a4c);
}

.chatbot-launcher[data-theme="dark"] {
  background: linear-gradient(145deg, #0f1729, #193354);
}

@media (max-width: 560px) {
  .chatbot-launcher {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 3.2rem;
    height: 3.2rem;
  }
}

.chatbot-widget {
  position: fixed;
  right: 1.15rem;
  bottom: 5rem;
  width: min(430px, calc(100vw - 1.4rem));
  height: min(620px, calc(100vh - 7.5rem));
  min-height: 430px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-radius: 18px;
  box-shadow: 0 34px 80px rgba(15, 23, 41, 0.42);
  border: 1px solid rgba(15, 23, 41, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 259;
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chatbot-widget[data-theme="dark"] {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 80px rgba(4, 8, 16, 0.62);
}

.chatbot-widget.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (max-width: 900px) {
  .chatbot-widget {
    width: min(400px, calc(100vw - 1rem));
  }
}

@media (max-width: 560px) {
  .chatbot-widget {
    right: 0.5rem;
    bottom: 4.3rem;
    width: calc(100vw - 1rem);
    min-height: 390px;
    height: min(560px, calc(100vh - 5.2rem));
    border-radius: 14px;
  }
}

.chatbot-header {
  padding: 0.95rem 1.05rem;
  background: linear-gradient(135deg, #0d1b30 0%, #153257 60%, #143048 100%);
  color: var(--color-text-on-dark);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-header-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.chatbot-header-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.chatbot-header-subtitle {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--color-text-on-dark-muted);
}

.chatbot-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: rgba(30, 143, 90, 0.22);
  color: #bbf7d0;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.chatbot-close-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.chatbot-close-btn:hover,
.chatbot-close-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.chatbot-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.95rem 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chatbot-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.chatbot-typing {
  display: none;
  align-items: center;
  gap: 0.32rem;
  margin: 0.15rem 0 0.45rem;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 600;
}

.chatbot-typing.is-visible {
  display: flex;
}

.chatbot-typing__dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #9aa4b7;
  animation: iqChatTyping 1.2s infinite ease-in-out;
}

.chatbot-typing__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-typing__dot:nth-child(3) {
  animation-delay: 0.3s;
}

.chatbot-typing__label {
  margin-left: 0.28rem;
}

@keyframes iqChatTyping {
  0%,
  80%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin: 0.1rem 0 0.1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.chatbot-suggestions.is-hidden {
  display: none;
}

.chatbot-chip {
  flex: 0 0 auto;
  border: 1px solid #d8dee8;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 0.33rem 0.62rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chatbot-chip:hover,
.chatbot-chip:focus-visible {
  border-color: rgba(30, 143, 90, 0.55);
  color: var(--color-accent-green);
  background: #f7fffb;
}

.chatbot-message {
  display: block;
  width: fit-content;
  max-width: 90%;
  margin: 0 0 0.7rem;
  padding: 0.58rem 0.72rem 0.62rem;
  border-radius: 12px;
  line-height: 1.45;
  font-size: 0.86rem;
}

.chatbot-message p {
  margin: 0;
}

.chatbot-message--assistant {
  background: #f7fafc;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.chatbot-message--user {
  margin-left: auto;
  background: linear-gradient(145deg, var(--color-accent-green), #167a4c);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(30, 143, 90, 0.25);
}

.chatbot-message-meta {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.28rem;
}

.chatbot-message--assistant .chatbot-message-meta {
  color: #586273;
}

.chatbot-message--user .chatbot-message-meta {
  color: rgba(255, 255, 255, 0.82);
}

.chatbot-footer {
  flex: 0 0 auto;
  padding: 0.78rem 0.95rem 0.88rem;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
}

.chatbot-input {
  width: 100%;
  resize: none;
  min-height: 2.7rem;
  max-height: 6.2rem;
  overflow-y: auto;
  padding: 0.6rem 0.72rem;
  border-radius: 10px;
  border: 1px solid #d7dde8;
  background: #f8fafd;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--color-text);
}

.chatbot-input::placeholder {
  color: #8a94a6;
}

.chatbot-input:focus-visible {
  outline: 2px solid rgba(30, 143, 90, 0.5);
  outline-offset: 1px;
  border-color: rgba(30, 143, 90, 0.55);
  background: #ffffff;
}

.chatbot-send-btn {
  min-height: 2.7rem;
  flex-shrink: 0;
  border-radius: 10px;
  border: none;
  padding: 0.56rem 0.92rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(145deg, var(--color-accent-green), #167a4c);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(30, 143, 90, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.chatbot-send-btn:hover,
.chatbot-send-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(30, 143, 90, 0.32);
}

.chatbot-send-btn[disabled] {
  opacity: 0.62;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.chatbot-powered {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  line-height: 1.3;
  color: #8a94a6;
  text-align: center;
}

.chatbot-powered a {
  color: #6c778a;
  text-decoration: none;
}

.chatbot-powered a:hover {
  color: var(--color-accent-green);
  text-decoration: underline;
}


.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.625rem 0.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  vertical-align: middle;
}

button.nav-link {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
}

@media (min-width: 960px) {
  .nav-link {
    width: auto;
    justify-content: center;
  }
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--color-surface-alt);
  color: var(--color-text);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--color-accent-green);
  font-weight: 700;
}

.nav-link[aria-expanded="true"] {
  background: var(--color-surface-alt);
}

.nav-chevron {
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  flex-shrink: 0;
  opacity: 0.55;
  align-self: center;
  transform: rotate(45deg);
  margin-top: 0.1em;
}

.nav-link[aria-expanded="true"] .nav-chevron {
  transform: rotate(-135deg);
  margin-top: 0.2em;
}

@keyframes iqMegaIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.mega {
  display: none;
  padding: 0.5rem 0 0.75rem;
}

.mega.is-open {
  display: block;
}

@media (min-width: 960px) {
  .mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 36rem;
    max-width: calc(100vw - 2rem);
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    z-index: 300;
  }

  .mega.is-open {
    display: block;
  }

  .nav-item:hover .mega,
  .nav-item:focus-within .mega {
    display: block;
  }

  .nav-item:hover .nav-link--mega,
  .nav-item:focus-within .nav-link--mega {
    background: var(--color-surface-alt);
  }

  /* Premium mega menu — wider, layered shadow, no harsh border */
  .mega.mega--premium {
    min-width: 52rem;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(15, 23, 41, 0.14), 0 0 0 1px rgba(15, 23, 41, 0.06);
    animation: iqMegaIn 0.22s ease-out;
  }

  .mega.mega--premium.mega--narrow {
    min-width: 42rem;
  }

  @media (prefers-reduced-motion: reduce) {
    .mega.mega--premium {
      animation: none;
    }
  }
}

.mega-overview {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}

.mega-overview a {
  font-weight: 700;
  color: var(--color-accent-green);
}

/* Premium mega header strip */
.mega-premium-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 1rem 1.35rem 1.15rem;
  background: linear-gradient(115deg, #0c1526 0%, #1a3356 48%, #154530 100%);
  color: var(--color-text-on-dark);
}

.mega-premium-head--industries {
  background: linear-gradient(115deg, #0c1526 0%, #243a5c 55%, #1e4a66 100%);
}

.mega-premium-head__cta {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mega-premium-head__cta:hover {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
}

.mega-premium-head__tagline {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 242, 245, 0.72);
}

.mega-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .mega-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .mega-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .mega-grid--premium {
    padding: 1.25rem 1.35rem 1.35rem;
    gap: 1rem;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  }
}

.mega-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface-alt);
  transition: border-color 0.15s, background 0.15s;
}

.mega-card:hover {
  border-color: var(--color-accent-green);
  background: var(--color-surface);
  text-decoration: none;
}

.mega-card--premium {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem 1.1rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(15, 23, 41, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.mega-card--premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(15, 23, 41, 0.1);
  border-color: rgba(30, 143, 90, 0.35);
  background: var(--color-surface);
}

.mega-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.mega-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.mega-card__icon--ai {
  background: rgba(30, 143, 90, 0.12);
  color: var(--color-accent-green);
}

.mega-card__icon--dt {
  background: rgba(22, 67, 110, 0.12);
  color: #2d6a9f;
}

.mega-card__icon--staff {
  background: rgba(199, 92, 40, 0.12);
  color: var(--color-accent-orange);
}

.mega-card__icon--public {
  background: rgba(22, 67, 110, 0.12);
  color: #2d6a9f;
}

.mega-card__icon--commercial {
  background: rgba(30, 143, 90, 0.1);
  color: var(--color-accent-green);
}

.mega-card__more {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-green);
}

.mega-card--premium:hover .mega-card__more {
  color: var(--color-accent-green-hover);
}

.mega-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.mega-card__desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--color-accent-green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-green-hover);
  color: #fff;
  text-decoration: none;
}

.btn--outline-light {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  background: var(--color-border);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background: #d8dce3;
  color: var(--color-text);
  text-decoration: none;
}

/* ——— Hero / carousel ——— */

.hero {
  background: linear-gradient(145deg, var(--color-hero) 0%, var(--color-hero-mid) 55%, #1a2744 100%);
  color: var(--color-text-on-dark);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

@media (min-width: 768px) {
  .hero__inner {
    padding: 3.5rem 1.25rem 4rem;
  }
}

.hero-carousel {
  position: relative;
}

.hero-slide {
  display: none;
  animation: fadeIn 0.45s ease;
}

.hero-slide.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-orange);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 32rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--color-text-on-dark-muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-dots li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button[aria-selected="true"] {
  background: #fff;
}

.hero-dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ——— Sections ——— */

.section {
  padding: 3rem 1.25rem;
}

.section--tight {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.stat-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .stat-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-hero);
  letter-spacing: -0.02em;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-card);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 23, 41, 0.55) 0%, rgba(15, 23, 41, 0.92) 100%);
  z-index: 0;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.service-card--ai::after {
  background: linear-gradient(135deg, #1a3a52 0%, #0f1729 50%, #1e8f5a 120%);
}

.service-card--dt::after {
  background: linear-gradient(135deg, #2c1f4a 0%, #0f1729 50%, #c75c28 130%);
}

.service-card--staff::after {
  background: linear-gradient(135deg, #0d3d2e 0%, #0f1729 55%, #1e8f5a 100%);
}

.service-card > *:not(.service-card__photo) {
  position: relative;
  z-index: 2;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.service-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  flex-grow: 1;
}

.service-card .link-arrow {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  margin-top: auto;
}

.service-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  transition: transform 0.2s;
}

.industry-card {
  display: block;
  padding: 2rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 2px 12px rgba(15, 23, 41, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.industry-card:hover {
  border-color: var(--color-accent-green);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.industry-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.industry-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.partners-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.partners-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.partner-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cta-band {
  background: var(--color-hero);
  color: var(--color-text-on-dark);
}

.cta-band__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0.35rem 0 0;
  color: var(--color-text-on-dark-muted);
  font-size: 0.95rem;
}

/* ——— Page content ——— */

.page-hero {
  background: linear-gradient(145deg, var(--color-hero) 0%, var(--color-hero-mid) 100%);
  color: var(--color-text-on-dark);
  padding: 2.5rem 1.25rem;
}

.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--color-text-on-dark-muted);
}

.content-block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.content-block h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block ul {
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-row {
  margin-bottom: 1rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* ——— Footer ——— */

.site-footer {
  background: #0a0f18;
  color: var(--color-text-on-dark-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--color-text-on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}
