/* ============================================================
   UM GLOBAL SOLUTIONS — Brand System
   Colors (max 3): Navy (base), Orange→Red gradient (accent), White
   ============================================================ */
:root {
  --navy: #080b14;
  --navy-2: #0f1420;
  --navy-3: #161d2e;
  --white: #f7f8fa;
  --white-dim: rgba(247,248,250,0.65);
  --white-faint: rgba(247,248,250,0.12);
  --accent-1: #ef4136;
  --accent-2: #f2994a;
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-micro: cubic-bezier(.65,0,.35,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gradient);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .4s var(--ease-micro), box-shadow .4s var(--ease-micro), background .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(239,65,54,.5);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .65s var(--ease-micro);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -8px rgba(239,65,54,.65); }
.btn-primary:active { transform: translateY(-1px) scale(.98); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-faint);
}
.btn-outline:hover { border-color: var(--accent-2); transform: translateY(-3px); background: rgba(242,153,74,.06); }
.btn-outline:active { transform: translateY(-1px) scale(.98); }
.btn-sm { padding: 10px 22px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn-primary::after { transition: none !important; }
}

/* ---------- Navigation ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0%;
  background: var(--gradient);
  z-index: 1000;
  transition: width .12s linear;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 18px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,11,20,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  padding: 12px 0;
  border-color: var(--white-faint);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--white-dim);
  position: relative;
  transition: color .3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.nav-highlight { color: var(--accent-2); display: inline-flex; align-items: center; gap: 6px; }
.nav-links a.nav-highlight::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 0 rgba(239,65,54,.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,65,54,.4); }
  50% { box-shadow: 0 0 0 5px rgba(239,65,54,0); }
}
@media (prefers-reduced-motion: reduce) { .nav-links a.nav-highlight::before { animation: none; } }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer;
  transition: background .3s ease;
}
.nav-toggle:hover { background: var(--white-faint); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(3,5,10,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 940px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(78vw, 300px);
    background: var(--navy-2); flex-direction: column; justify-content: center; gap: 26px;
    transform: translateX(105%); transition: transform .5s var(--ease); border-left: 1px solid var(--white-faint); z-index: 995; padding: 0 40px; will-change: transform; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 17px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(239,65,54,.22), transparent 65%);
  filter: blur(60px);
  animation: float 14s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(242,153,74,.16), transparent 65%);
  filter: blur(60px);
  animation: float 18s ease-in-out infinite reverse;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-40px, 40px); }
}
.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
  transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px));
}
@media (prefers-reduced-motion: reduce) { .hero-content { transform: none !important; } }
.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 26px;
}
.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--white-dim);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 50px; row-gap: 20px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 30px; font-weight: 800; }
.hero-stats div span { font-size: 13px; color: var(--white-dim); text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 640px) {
  .hero { padding-top: 100px; padding-bottom: 40px; }
  .hero h1 { margin-bottom: 20px; }
  .hero p.lead { margin-bottom: 28px; }
  .hero-actions { margin-bottom: 40px; }
  .hero-stats { gap: 32px; row-gap: 16px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Motion system ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(50px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-fade-up   { animation: fadeUp .7s var(--ease-out) both; }
.animate-fade-down  { animation: fadeDown .6s var(--ease-out) both; }
.animate-hero-rise { animation: heroRise .9s var(--ease-out) both; }

/* Scroll-triggered reveal (JS adds .in when the element enters the viewport) */
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s var(--ease-out) both; }

.reveal-delay-1 { animation-delay: .08s; }
.reveal-delay-2 { animation-delay: .16s; }
.reveal-delay-3 { animation-delay: .24s; }
.reveal-delay-4 { animation-delay: .32s; }
.reveal-delay-5 { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up, .animate-fade-down, .animate-hero-rise, .reveal.in, .hero::before, .hero::after {
    animation: none !important;
  }
  .reveal { opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
section { padding: 120px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.section-head p { color: var(--white-dim); font-size: 17px; }
.section-alt { background: var(--navy-2); }

@media (max-width: 940px) {
  section { padding: 88px 0; }
  .page-header { padding: 140px 0 56px; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .section-head { margin-bottom: 42px; }
  .page-header { padding: 120px 0 48px; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--white-faint);
  border-radius: 20px;
  padding: 36px 30px;
  transition: transform .4s var(--ease-micro), border-color .4s var(--ease-micro), box-shadow .4s var(--ease-micro);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(242,153,74,.4); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform .4s var(--ease-micro);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon svg { width: 24px; height: 24px; stroke: white; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--white-dim); font-size: 14.5px; }
.card .learn { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--accent-2); transition: gap .3s var(--ease-micro); }
.card:hover .learn { gap: 10px; }

/* ---------- Marquee (logos / trust strip) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll-x 30s linear infinite; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--white-dim); white-space: nowrap; }

/* ---------- Free audit promo banner ---------- */
.audit-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(239,65,54,.1), rgba(242,153,74,.06));
  border: 1px solid rgba(242,153,74,.25);
  border-radius: 24px;
  padding: 32px 36px;
  transition: transform .4s var(--ease-micro), border-color .4s var(--ease-micro);
}
.audit-promo:hover { transform: translateY(-4px); border-color: rgba(242,153,74,.5); }
.audit-promo-tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(242,153,74,.12);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 12px;
}
.audit-promo-text h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.audit-promo-text p { color: var(--white-dim); font-size: 14.5px; }
.audit-promo .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .audit-promo { padding: 26px; flex-direction: column; align-items: flex-start; }
  .audit-promo .btn { width: 100%; justify-content: center; }
}

/* ---------- Testimonials ---------- */
.t-card { background: var(--navy-3); border: 1px solid var(--white-faint); border-radius: 20px; padding: 34px; }
.t-stars { color: var(--accent-2); font-size: 15px; margin-bottom: 16px; letter-spacing: 3px; }
.t-msg { font-size: 16px; margin-bottom: 24px; color: var(--white); }
.t-person { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.t-person strong { display: block; font-size: 14.5px; }
.t-person span { font-size: 12.5px; color: var(--white-dim); }

/* ---------- Blog ---------- */
.blog-card { border-radius: 20px; overflow: hidden; background: var(--navy-3); border: 1px solid var(--white-faint); transition: transform .5s var(--ease); }
.blog-card:hover { transform: translateY(-8px); }
.blog-thumb { height: 200px; background: var(--gradient); position: relative; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 26px; }
.blog-meta { font-size: 12.5px; color: var(--white-dim); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.blog-body h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.blog-body p { color: var(--white-dim); font-size: 14.5px; margin-bottom: 16px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--white-dim); }
.field input, .field select, .field textarea {
  background: var(--navy-2);
  border: 1px solid var(--white-faint);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: 14.5px;
  transition: border-color .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); }
.field textarea { min-height: 140px; resize: vertical; }
.budget-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 480px) { .budget-row { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-2), var(--navy-3));
  border-radius: 28px;
  padding: 70px 50px;
  text-align: center;
  border: 1px solid var(--white-faint);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 18px; }
.cta-band p { color: var(--white-dim); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .cta-band { padding: 44px 24px; border-radius: 22px; }
}

/* ---------- Footer ---------- */
footer { background: var(--navy-2); border-top: 1px solid var(--white-faint); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--white-dim); font-size: 14px; max-width: 320px; margin-bottom: 20px; }
.footer-col h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--white-dim); font-size: 14.5px; margin-bottom: 12px; transition: color .3s ease; }
.footer-col a:hover { color: var(--white); }
.social-row { display: flex; gap: 12px; margin-top: 10px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--white-faint); display: flex; align-items: center; justify-content: center; transition: all .3s ease; }
.social-row a:hover { background: var(--gradient); border-color: transparent; transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 30px; border-top: 1px solid var(--white-faint); font-size: 13px; color: var(--white-dim); }
.footer-bottom a { color: var(--white-dim); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Live chat widget ---------- */
.chat-fab {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  z-index: 998;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(239,65,54,.6);
  animation: pulse-fab 2.6s ease-in-out infinite;
  border: none;
}
@keyframes pulse-fab {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(239,65,54,.6); }
  50% { box-shadow: 0 10px 40px -4px rgba(239,65,54,.85); }
}
@media (prefers-reduced-motion: reduce) { .chat-fab { animation: none; } }
.chat-fab svg { width: 26px; height: 26px; }
.chat-panel {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom));
  right: calc(16px + env(safe-area-inset-right));
  left: 16px;
  z-index: 998;
  width: 340px; max-width: calc(100vw - 32px);
  margin-left: auto;
  background: var(--navy-3);
  border: 1px solid var(--white-faint);
  border-radius: 20px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.7);
  transform: translateY(20px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: all .4s var(--ease);
  max-height: min(70vh, 480px);
  display: flex;
  flex-direction: column;
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head { background: var(--gradient); padding: 20px; border-radius: 20px 20px 0 0; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head span { font-size: 12.5px; opacity: .9; }
.chat-body { padding: 18px 20px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.chat-faq-item { padding: 12px 0; border-bottom: 1px solid var(--white-faint); cursor: pointer; font-size: 13.5px; }
.chat-faq-item:hover { color: var(--accent-2); }
.chat-answer { font-size: 13px; color: var(--white-dim); padding: 8px 0 4px; display: none; }
.chat-answer.show { display: block; }
.chat-footer { padding: 16px 20px; border-top: 1px solid var(--white-faint); }
.chat-footer a { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: #fff; padding: 12px; border-radius: 12px; font-weight: 600; font-size: 13.5px; }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 170px 0 80px; text-align: center; position: relative; overflow: hidden; }
.page-header h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -0.02em; }
.page-header p { color: var(--white-dim); max-width: 600px; margin: 18px auto 0; }

/* Misc utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
