/* =========================================================
   GlobalOptimus Outsourcing — Shared Stylesheet
   Palette: Corporate Navy / BPO
   Display: Sora | Body: Inter | Utility/Data: IBM Plex Mono
   ========================================================= */

:root {
  --navy-950: #08152b;
  --navy-900: #0b2545;
  --navy-800: #13315c;
  --blue-600: #1b6ca8;
  --blue-500: #2683c9;
  --amber-500: #e8a33d;
  --amber-600: #cf8a24;
  --ink-900: #1c2430;
  --slate-600: #4b5768;
  --slate-400: #8592a3;
  --line: #dde3ea;
  --bg: #f5f7fa;
  --white: #ffffff;
  --success: #2f9e6b;

  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(11,37,69,0.06), 0 8px 24px -12px rgba(11,37,69,0.18);
  --shadow-hover: 0 4px 10px rgba(11,37,69,0.10), 0 16px 32px -14px rgba(11,37,69,0.28);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--slate-600); }
a { color: var(--blue-600); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-600);
  display: inline-block;
  margin-bottom: 12px;
}
section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy-900); color: #cfd9e6; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #a9bad0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--amber-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); }
.btn-block { width: 100%; justify-content: center; }

/* Header / Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 21, 43, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
/* The logo artwork uses dark navy + gray text, so it needs a light chip
   behind it to stay legible on the dark header/footer background. */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 12px;
}
.brand-logo { height: 30px; width: auto; display: block; }

nav.primary-nav { display: flex; align-items: center; gap: 4px; position: relative; }
nav.primary-nav > a, .has-mega > button {
  color: #cfd9e6;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
nav.primary-nav > a:hover, .has-mega > button:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.has-mega { position: relative; }
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 18px;
  width: 620px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 14px;
}
/* Invisible bridge closes the hover gap between the nav item and the
   dropdown so the menu doesn't vanish when the cursor moves down to it. */
.has-mega::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 14px;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu { display: grid; }
.mega-menu a {
  color: var(--ink-900);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mega-menu a:hover { background: var(--bg); color: var(--blue-600); }
.mega-icon { width: 30px; height: 30px; border-radius: 7px; background: #eaf1f8; display:flex; align-items:center; justify-content:center; flex-shrink:0; color: var(--blue-600); font-size: 0.8rem; font-family: var(--font-mono); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.88rem; }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(38,131,201,0.35), transparent),
              linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero p.lead { color: #b7c5d8; font-size: 1.1rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Waveform signature element */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  margin: 6px 0 22px;
}
.waveform span {
  width: 3px;
  background: var(--amber-500);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes wave {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}
.hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(4px);
}
.hero-panel .stat-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.12); }
.hero-panel .stat-row:last-child { border-bottom: none; }
.hero-panel .stat-label { font-size: 0.85rem; color: #a9bad0; }
.hero-panel .stat-value { font-family: var(--font-mono); font-weight: 600; color: var(--amber-500); font-size: 1rem; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--blue-600); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eaf1f8, #dde9f4);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600);
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.card a.card-link { font-size: 0.88rem; font-weight: 600; color: var(--blue-600); display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; }

/* Placeholder image blocks */
.placeholder-img {
  background: repeating-linear-gradient(135deg, #e4ebf2, #e4ebf2 10px, #eef2f7 10px, #eef2f7 20px);
  border: 1px dashed var(--slate-400);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  min-height: 220px;
  padding: 12px;
}

/* Section headers */
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.align-left { margin: 0 0 40px; text-align: left; }

/* Stats strip */
.stats-strip { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; padding: 36px 0; }
.stat-block { text-align: center; }
.stat-block .num { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--amber-500); }
.stat-block .label { font-size: 0.85rem; color: #a9bad0; margin-top: 4px; }

/* Process steps */
.process-step { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.process-step:last-child { border-bottom: none; }
.process-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--blue-600); font-weight: 600; flex-shrink: 0; width: 36px; }

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 32px;
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-900); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.78rem; color: var(--slate-400); margin-top: 10px; }
.form-success { display: none; background: #eaf7f0; border: 1px solid var(--success); color: #1c6b47; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; }

/* Sticky lead strip (used on service pages) */
.lead-strip {
  background: var(--amber-500);
  color: var(--navy-950);
}
.lead-strip .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 26px 24px; }
.lead-strip h3 { color: var(--navy-950); margin: 0; }
.lead-strip p { color: rgba(8,21,43,0.75); margin: 4px 0 0; }

/* Testimonial */
.quote-card { background: var(--white); border-left: 3px solid var(--amber-500); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-card); }
.quote-card p.quote-text { font-style: italic; color: var(--ink-900); font-size: 1.02rem; }
.quote-by { font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate-400); }

/* Footer */
footer.site-footer { background: var(--navy-950); color: #93a4ba; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid a { color: #93a4ba; display: block; font-size: 0.88rem; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }

/* Breadcrumb (service pages) */
.breadcrumb { font-size: 0.85rem; color: #a9bad0; margin-bottom: 14px; }
.breadcrumb a { color: #a9bad0; }
.breadcrumb span { color: var(--amber-500); }

/* Utility */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag { font-family: var(--font-mono); font-size: 0.75rem; background: #eaf1f8; color: var(--blue-600); padding: 6px 12px; border-radius: 20px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; color: var(--slate-600); }
.checklist li::before { content: "✓"; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega-menu { width: 92vw; left: 4vw; transform: none; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  nav.primary-nav { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { justify-content: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .waveform span { animation: none; height: 60%; }
  html { scroll-behavior: auto; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}
