/*!
 * modern-overlay.css — v3
 * Design system: Inter + Space Grotesk, permanent dark hero + light body, teal accent
 * Load AFTER Bootstrap and landing-page.min.css
 */

/* --------------------------------------------------------------------------
   1. Color tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --mo-blue: #2563eb;
  --mo-blue-deep: #1e40af;
  --mo-blue-light: #3b82f6;
  --mo-cyan: #06b6d4;
  --mo-teal: #0d9488;
  --mo-sky: #0ea5e9;

  /* Accent — teal, used for kickers and dark-hero highlights */
  --mo-accent: var(--mo-teal);

  /* Ink */
  --mo-ink: #0f172a;
  --mo-ink-soft: #334155;
  --mo-muted: #64748b;
  --mo-on-dark: #f8fafc;

  /* Hero — permanent dark navy */
  --mo-hero-navy: #0f172a;
  --mo-hero-navy-light: #1e293b;
  --mo-hero-navy-deep: #0b1220;

  /* Surfaces — light */
  --mo-bg: #ffffff;
  --mo-surface: #f8fafc;
  --mo-surface-elevated: #ffffff;
  --mo-surface-muted: #f1f5f9;
  --mo-border: rgba(15, 23, 42, 0.08);

  /* Glass */
  --mo-glass: rgba(255, 255, 255, 0.72);
  --mo-glass-border: rgba(37, 99, 235, 0.12);
  --mo-glass-border-hover: rgba(37, 99, 235, 0.3);
  --mo-glass-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(37,99,235,0.04);
  --mo-glass-shadow-hover: 0 8px 24px rgba(30,64,175,0.12), 0 0 0 1px rgba(37,99,235,0.1);

  /* Buttons */
  --mo-btn-radius: 0.5rem;
  --mo-btn-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  --mo-btn-gradient-hover: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  --mo-btn-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
  --mo-btn-shadow-hover: 0 4px 14px rgba(30, 64, 175, 0.35);
  --mo-focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.25);

  /* Links */
  --mo-link: #2563eb;
  --mo-link-hover: #1e40af;

  /* Gradient text — cyan-sky tone */
  --mo-gradient-text: linear-gradient(110deg, #7dd3fc 0%, #38bdf8 28%, #2563eb 52%, #22d3ee 78%, #67e8f9 100%);

  /* Body mesh */
  --mo-mesh: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* Type */
  --mo-font: "Inter", "Segoe UI", -apple-system, sans-serif;
  --mo-font-display: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  --mo-font-hero: "Bricolage Grotesque", "Space Grotesk", "Inter", sans-serif;

  /* Navbar */
  --mo-nav-bg: rgba(255, 255, 255, 0.92);
  --mo-nav-border: rgba(15, 23, 42, 0.06);
  --mo-nav-text: #334155;

  /* Footer */
  --mo-footer-bg: #111111;
  --mo-footer-text: #94a3b8;
  --mo-footer-heading: #f1f5f9;
}

/* --------------------------------------------------------------------------
   2. Font stack & base typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--mo-font);
  color: var(--mo-ink);
  background-color: var(--mo-bg);
  background-image: var(--mo-mesh);
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mo-font-display);
  color: var(--mo-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--mo-font);
  color: var(--mo-ink-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. Gradient text
   -------------------------------------------------------------------------- */
h1,
.hero-title {
  color: var(--mo-blue-deep);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1,
  .hero-title {
    background-image: var(--mo-gradient-text);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* Dark hero contexts */
header.masthead h1,
header.masthead1 h1,
header.masthead2 h1,
header.masthead3 h1,
header.masthead5 h1,
header.masthead6 h1,
header.masthead7 h1,
header.masthead8 h1,
header.masthead9 h1,
header.masthead10 h1,
header.masthead11 h1,
header.masthead12 h1,
header.masthead14 h1,
header.masthead15 h1,
header.company-bg h1,
header.services h1,
.text-white h1,
h1.text-white,
.hero-title.text-white,
.text-white .hero-title {
  color: var(--mo-on-dark);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  header.masthead h1,
  header.masthead1 h1,
  header.masthead2 h1,
  header.masthead3 h1,
  header.masthead5 h1,
  header.masthead6 h1,
  header.masthead7 h1,
  header.masthead8 h1,
  header.masthead9 h1,
  header.masthead10 h1,
  header.masthead11 h1,
  header.masthead12 h1,
  header.masthead14 h1,
  header.masthead15 h1,
  header.company-bg h1,
  header.services h1,
  .text-white h1,
  h1.text-white,
  .hero-title.text-white,
  .text-white .hero-title,
  h1.gradient-text,
  .gradient-text {
    background-image: var(--mo-gradient-text);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* Other heading levels / body copy inside dark hero contexts — plain on-dark
   color (no gradient clip), since the base h1-h6 rule in section 2 would
   otherwise leave them at the default dark ink color. */
.text-white h2,
.text-white h3,
.text-white h4,
.text-white p,
header.company-bg h2,
header.company-bg h3,
header.career-bg h2,
header.career-bg h3,
header.masthead11.bg h2,
header.masthead11.bg h3 {
  color: var(--mo-on-dark);
}

/* Legacy dark-background panels elsewhere on the site (not part of the hero
   system) that rely on CSS inheritance for white text — the base h1-h6/p
   color rules above win over that inheritance, so restore it explicitly. */
.u-palette-5-dark-3 h1,
.u-palette-5-dark-3 h2,
.u-palette-5-dark-3 h3,
.u-palette-5-dark-3 h4,
.u-palette-5-dark-3 p,
#why-us .content h3,
#why-us .content p,
#service_dark_bg h1,
#service_dark_bg h2,
#service_dark_bg h3 {
  color: var(--mo-on-dark);
}

#service_dark_bg p {
  color: rgba(248, 250, 252, 0.78);
}

/* --------------------------------------------------------------------------
   4. Card & panel surfaces
   -------------------------------------------------------------------------- */
.card,
.panel,
.well {
  background-color: var(--mo-surface-elevated);
  border-color: var(--mo-glass-border);
  border-style: solid;
  box-shadow: var(--mo-glass-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .card,
  .panel,
  .well {
    background-color: var(--mo-glass);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    backdrop-filter: blur(14px) saturate(1.25);
  }
}

.card:hover,
.panel:hover,
.well:hover {
  transform: translateY(-2px);
  border-color: var(--mo-glass-border-hover);
  box-shadow: var(--mo-glass-shadow-hover);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn,
.btn-custom {
  font-family: var(--mo-font);
  font-weight: 500;
  background-image: var(--mo-btn-gradient);
  background-color: var(--mo-blue);
  border-color: transparent;
  border-radius: var(--mo-btn-radius);
  color: var(--mo-on-dark);
  box-shadow: var(--mo-btn-shadow);
  transition: all 0.25s ease;
}

.btn:hover,
.btn:focus,
.btn-custom:hover,
.btn-custom:focus {
  background-image: var(--mo-btn-gradient-hover);
  background-color: var(--mo-blue);
  border-color: transparent;
  color: var(--mo-on-dark);
  box-shadow: var(--mo-btn-shadow-hover);
  transform: translateY(-1px);
}

.btn:active,
.btn-custom:active {
  transform: translateY(0);
  box-shadow: var(--mo-btn-shadow);
}

.btn-primary {
  background-image: var(--mo-btn-gradient);
  background-color: var(--mo-blue);
  border-color: transparent;
  color: var(--mo-on-dark);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  background-image: var(--mo-btn-gradient-hover);
  background-color: var(--mo-blue);
  border-color: transparent;
  color: var(--mo-on-dark);
}

.btn-outline-primary {
  background-image: none;
  background-color: transparent;
  border-color: var(--mo-blue);
  color: var(--mo-blue);
  box-shadow: none;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-image: var(--mo-btn-gradient);
  background-color: var(--mo-blue);
  border-color: transparent;
  color: var(--mo-on-dark);
  box-shadow: var(--mo-btn-shadow-hover);
}

.btn-light {
  background-image: none;
  background-color: var(--mo-surface-elevated);
  border-color: var(--mo-border);
  color: var(--mo-ink-soft);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-light:hover,
.btn-light:focus {
  background-color: var(--mo-surface-muted);
  color: var(--mo-blue);
  border-color: var(--mo-glass-border);
  box-shadow: var(--mo-btn-shadow);
}

/* Focus rings */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-custom:focus-visible,
.btn-outline-primary:focus-visible,
.btn-light:focus-visible {
  outline: 2px solid var(--mo-blue-light);
  outline-offset: 2px;
  box-shadow: var(--mo-focus-ring);
}

.btn:focus:not(:focus-visible),
.btn-primary:focus:not(:focus-visible),
.btn-custom:focus:not(:focus-visible) {
  outline: none;
}

/* Form focus */
.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--mo-blue-light);
  box-shadow: var(--mo-focus-ring);
  outline: none;
}

/* --------------------------------------------------------------------------
   6. Text links
   -------------------------------------------------------------------------- */
a:not(.btn):not(.btn-primary):not(.btn-custom):not(.navbar-brand):not(.page-link):not(.badge) {
  color: var(--mo-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:not(.btn):not(.btn-primary):not(.btn-custom):not(.navbar-brand):not(.page-link):not(.badge):hover,
a:not(.btn):not(.btn-primary):not(.btn-custom):not(.navbar-brand):not(.page-link):not(.badge):focus {
  color: var(--mo-muted);
}

.footer-bs a:not(.btn),
.text-white a:not(.btn) {
  color: var(--mo-sky);
}

.footer-bs a:not(.btn):hover,
.text-white a:not(.btn):hover {
  color: var(--mo-cyan);
}

/* --------------------------------------------------------------------------
   7. Fluid typography
   -------------------------------------------------------------------------- */
h1, .h1, .hero-title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h2, .h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.25rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

h3, .h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.7rem);
  line-height: 1.3;
}

h4, .h4 {
  font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.35rem);
}

h5, .h5, h6, .h6 {
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.15rem);
}

/* --------------------------------------------------------------------------
   8. Overflow defense
   -------------------------------------------------------------------------- */
html { overflow-x: hidden; max-width: 100%; }
body { overflow-x: hidden; max-width: 100%; }

img, svg, video, iframe, embed, object, canvas {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   9. Hero — permanent dark navy, interactive radial glow
   -------------------------------------------------------------------------- */
.hero-light {
  position: relative;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(13, 148, 136, 0.32), transparent 60%),
    radial-gradient(800px 500px at 8% 108%, rgba(14, 165, 233, 0.22), transparent 60%),
    linear-gradient(180deg, var(--mo-hero-navy-deep) 0%, var(--mo-hero-navy) 55%, var(--mo-hero-navy-light) 100%);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.hero-light:hover .hero-glow {
  opacity: 1;
}

.hero-light > *:not(.hero-glow) {
  position: relative;
  z-index: 1;
}

/* Hero heading — clean, lightweight, solid color on dark navy */
.hero-heading-clean {
  font-family: var(--mo-font-hero);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mo-on-dark) !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--mo-on-dark) !important;
}

/* Hero subtitle */
.hero-sub {
  font-family: var(--mo-font);
  font-weight: 400;
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.6;
}

/* Ghost button — minimal outline, light-surface usage */
.btn-ghost {
  background: transparent !important;
  background-image: none !important;
  border: 1.5px solid var(--mo-ink-soft);
  color: var(--mo-ink-soft);
  box-shadow: none;
  border-radius: var(--mo-btn-radius);
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  background-image: none !important;
  color: var(--mo-ink);
  border-color: var(--mo-ink);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   10. Legacy photographic hero — navy wash overlay
   -------------------------------------------------------------------------- */
header.services,
header.company-bg,
header.career-bg,
header.masthead11.bg {
  position: relative;
}

header.services::before,
header.company-bg::before,
header.career-bg::before,
header.masthead11.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.82) 0%, rgba(15, 23, 42, 0.6) 45%, rgba(15, 23, 42, 0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

header.services > .container-fluid,
header.company-bg > .container-fluid,
header.career-bg > .container-fluid,
header.masthead11.bg > .container-fluid {
  position: relative;
  z-index: 1;
}

/* Foreground photos on services/career headers sit inside the promoted
   .container-fluid (above the wash), so dim them directly to match. */
header.services img {
  filter: brightness(0.6) saturate(0.95);
}

/* A legacy rule (landing-page.min.css) forces `.pt-5 { padding-top: 1rem !important }`
   under ~592px, which guts the top spacing these hero headings rely on to clear
   the fixed navbar — pulling the heading text up underneath the navbar on mobile.
   Restore enough clearance, scoped to just these two hero columns. */
@media (max-width: 592px) {
  header.career-bg .pt-5,
  #contact-form_contactForm__2Ztl1.pt-5 {
    padding-top: 6.5rem !important;
  }
}

/* "Innovation starts with you." (career page) — the site-wide h1 gradient
   (section 3) leans pale cyan at its start/end stops, low contrast on white.
   Darken it here, scoped to this heading only. */
#faqtitle h1 {
  background-image: linear-gradient(110deg, #38bdf8 0%, #2563eb 45%, #1e3a8a 100%);
}

/* Career hero — the legacy min-height: 90vh (landing-page.min.css) makes this
   hero tower over the page now that it only holds a single heading. Shrink it
   and tighten the bottom padding so less empty space separates it from the
   "Innovation starts with you." section below. */
header.career-bg {
  min-height: 50vh !important;
  padding-bottom: 1rem !important;
}

/* Contact hero — darker navy-blue gradient (was a lighter, flatter blue set
   inline on the section) plus a subtle diagonal hairline texture and soft
   corner glows so the block reads as "hero" rather than a flat color fill. */
.contact-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(650px 420px at 92% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(600px 460px at 0% 115%, rgba(37, 99, 235, 0.22), transparent 60%),
    linear-gradient(135deg, #1e3a8a 0%, #1e40af 45%, #0b1220 100%);
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.045) 0,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
  z-index: 0;
}

.contact-hero > .container-fluid {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   11. Kicker labels — small uppercase eyebrow, teal accent on dark
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mo-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mo-muted);
  margin-bottom: 0.75rem;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.kicker-on-dark {
  color: var(--mo-accent);
}

.kicker-center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   12. Partner grid (static, scannable)
   -------------------------------------------------------------------------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem 3rem;
  align-items: center;
  justify-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.partner-item img {
  height: 90px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.08));
  transition: filter 0.25s ease;
}

.partner-item:hover img {
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.12));
}

.partner-fallback {
  mix-blend-mode: multiply;
  border-radius: 4px;
}

.partner-item span {
  font-family: var(--mo-font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mo-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .partner-item img {
    height: 70px;
    max-width: 200px;
  }
}

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

/* --------------------------------------------------------------------------
   13. Mobile touch targets
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .btn,
  .btn-primary,
  .btn-custom,
  .btn-light,
  .btn-outline-primary,
  button:not([disabled]),
  input[type="submit"],
  input[type="button"],
  .navbar-toggler,
  .page-link,
  .back-to-top {
    min-height: 44px;
    box-sizing: border-box;
  }

  .navbar .nav-link,
  .navbar-nav .nav-item > a,
  .footer-bs .footer-nav a,
  .footer-bs .footer-social a,
  .footer_signupform .btn,
  #submit {
    min-height: 44px;
    box-sizing: border-box;
  }

  .footer-bs .footer-social a {
    min-width: 44px;
  }

  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="search"],
  input[type="tel"],
  select {
    min-height: 44px;
    box-sizing: border-box;
  }

  .container,
  .container-fluid,
  .row,
  [class*="col-"],
  header, section, footer {
    max-width: 100%;
  }

  #hero-heading,
  h1, h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #hero-heading {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   14. Outline / ghost button helper — for dark hero backgrounds
   -------------------------------------------------------------------------- */
.btn-outline-hero {
  background: transparent !important;
  background-image: none !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  box-shadow: none;
}

.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  background-image: none !important;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

/* Hero CTA buttons — matched pair, centered box + label */
.hero-ctas .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 220px;
  padding: 0.9rem 2rem;
  font-family: var(--mo-font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border-radius: var(--mo-btn-radius);
}

.hero-ctas .btn-outline-hero {
  border-width: 1.5px;
}

/* --------------------------------------------------------------------------
   15. Section transitions
   -------------------------------------------------------------------------- */
section, header, footer, .navbar {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.partner-section {
  background: var(--mo-surface);
  border-bottom: 1px solid var(--mo-border);
}

/* --------------------------------------------------------------------------
   16. Service palette gallery (fanned panels)
   -------------------------------------------------------------------------- */
.services-overview {
  background: var(--mo-bg);
}

.palette-gallery {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  height: 460px;
}

.palette-stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--mo-surface-muted);
}

.palette-stage-bg {
  position: absolute;
  inset: 0;
  background-color: var(--mo-ink);
  background-size: cover;
  background-position: center;
}

.palette-stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.15) 40%, rgba(15, 23, 42, 0.85) 100%);
}

.palette-stage-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2rem;
  color: var(--mo-on-dark);
}

.palette-stage-content h3 {
  margin-bottom: 0.5rem;
  color: var(--mo-on-dark);
  font-weight: 600;
}

.palette-stage-content p {
  margin: 0;
  max-width: 420px;
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.95rem;
}

.palette-tabs {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 220px;
  gap: 0.75rem;
}

.palette-tab {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  border: none;
  border-radius: 0.9rem;
  background: var(--tab-color);
  color: var(--mo-on-dark);
  text-align: left;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.palette-tab:hover {
  opacity: 0.8;
}

.palette-tab.is-active {
  opacity: 1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transform: translateX(-4px);
}

.palette-tab-num {
  font-family: var(--mo-font-display);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
}

.palette-tab-label {
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .palette-gallery {
    flex-direction: column;
    height: auto;
  }
  .palette-stage {
    height: 280px;
  }
  .palette-tabs {
    flex-direction: row;
    width: 100%;
  }
  .palette-tab {
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
    height: 70px;
    padding: 0.75rem 0.5rem;
    text-align: center;
  }
  .palette-tab.is-active {
    transform: translateY(-4px);
  }
  .palette-tab-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   17. Content sections (stats, check-list)
   -------------------------------------------------------------------------- */
.content-sections {
  background: var(--mo-surface);
}

.content-sections h2 {
  color: var(--mo-ink);
}

.content-sections p {
  color: var(--mo-ink-soft);
  line-height: 1.7;
}

.info-highlight {
  background: var(--mo-surface-muted);
  border: 1px solid var(--mo-border);
  border-radius: 0.75rem;
}

.stat-number {
  font-family: var(--mo-font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--mo-blue);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--mo-muted);
  margin-top: 0.25rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding: 0.6rem 0;
  color: var(--mo-ink-soft);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--mo-border);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list i {
  color: var(--mo-blue);
  margin-right: 0.75rem;
  font-size: 0.8rem;
}

.section-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--mo-border);
  box-shadow: var(--mo-glass-shadow);
}

/* --------------------------------------------------------------------------
   17b. Cloud costs animated widget
   -------------------------------------------------------------------------- */
.cloud-costs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--mo-surface);
  border: 1px solid var(--mo-border);
  box-shadow: var(--mo-glass-shadow);
}

.cloud-costs-providers {
  display: flex;
  gap: 0.75rem;
}

.cloud-costs-provider {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.75rem;
  border: 2px solid var(--mo-border);
  border-radius: 0.75rem;
  background: var(--mo-surface-elevated);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.cloud-costs-provider img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cloud-costs-provider span {
  font-family: var(--mo-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mo-ink-soft);
  transition: color 0.3s ease;
}

.cloud-costs-provider:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.cloud-costs-provider.is-active {
  opacity: 1;
  border-color: var(--mo-blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.cloud-costs-provider.is-active img {
  transform: scale(1.1);
}

.cloud-costs-provider.is-active span {
  color: var(--mo-ink);
}

.cloud-costs-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cloud-costs-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cloud-costs-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cloud-costs-label {
  flex: none;
  width: 80px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mo-ink-soft);
  font-family: var(--mo-font-display);
}

.cloud-costs-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cloud-costs-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--bar-color);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  opacity: 0.3;
}

.cloud-costs-bar.is-visible {
  width: var(--bar-pct);
}

.cloud-costs-bar.is-highlighted {
  opacity: 1;
  height: 10px;
}

.cloud-costs-bar.is-dimmed {
  opacity: 0.12;
}

.cloud-costs.all-visible .cloud-costs-bar {
  opacity: 0.65;
}

.cloud-costs-detail {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--mo-ink);
  color: #ffffff;
  transition: background 0.5s ease;
}

.cloud-costs-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cloud-costs-detail-name {
  font-family: var(--mo-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.cloud-costs-detail-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.cloud-costs-detail .cloud-costs-detail-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767.98px) {
  .cloud-costs {
    padding: 1.25rem;
  }
  .cloud-costs-provider img {
    width: 28px;
    height: 28px;
  }
  .cloud-costs-label {
    width: 64px;
    font-size: 0.72rem;
  }
}

/* --------------------------------------------------------------------------
   18. CTA section
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--mo-bg);
}

.cta-section h2 {
  color: var(--mo-ink);
}

/* --------------------------------------------------------------------------
   19. Navbar — transparent over hero, solid on scroll
   -------------------------------------------------------------------------- */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

.navbar-custom .navbar-brand img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.navbar-custom .nav-link,
.navbar-custom .home {
  font-family: var(--mo-font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--mo-on-dark) !important;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-item .nav-link:hover {
  color: rgba(248, 250, 252, 0.72) !important;
}

.navbar-custom .navbar-toggler-awesome {
  color: var(--mo-on-dark);
}

.navbar-custom.navbar-scrolled {
  background-color: var(--mo-nav-bg) !important;
  border-bottom: 1px solid var(--mo-nav-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .navbar-custom.navbar-scrolled {
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
  }
}

.navbar-custom.navbar-scrolled .navbar-brand img {
  filter: none;
}

.navbar-custom.navbar-scrolled .nav-link,
.navbar-custom.navbar-scrolled .home {
  color: var(--mo-nav-text) !important;
}

.navbar-custom.navbar-scrolled .nav-link:hover,
.navbar-custom.navbar-scrolled .nav-item .nav-link:hover {
  color: var(--mo-ink) !important;
}

.navbar-custom.navbar-scrolled .navbar-toggler-awesome {
  color: var(--mo-ink);
}

/* ============================================
   Compact solution cards (services page)
   ============================================ */
.solutions .solution-item {
  padding-bottom: 0.85rem;
}

.solutions .solution-item img.img-fluid {
  height: 130px;
  width: 100%;
  object-fit: cover;
}

.solutions .solution-item h5 {
  font-size: 0.95rem !important;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

.solutions .solution-item p {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solutions .solution-item.mb-5 {
  margin-bottom: 1.5rem !important;
}
