/* =========================================================
   Orion Global — Global Stylesheet
   Brand: orionglobal.ai
   Author: site v1
   ========================================================= */

:root {
  /* Brand palette — anchored on logo navy */
  --brand-900: #0a2540;
  --brand-800: #103655;
  --brand-700: #1a4a73;
  --brand-600: #1f5f8a;
  --brand-500: #2a7fb0;
  --brand-100: #e6eef5;
  --brand-050: #f4f7fb;

  --accent:    #16a3b8;   /* teal accent for CTA underlines / dots */

  --ink-900:   #0a1628;
  --ink-700:   #2b3a4a;
  --ink-500:   #5b6a7d;
  --ink-300:   #8a98aa;
  --ink-100:   #d9dfe7;

  --bg:        #ffffff;
  --bg-soft:   #f7f9fb;
  --bg-dark:   #0a2540;

  --border:    #e3e8ef;
  --border-strong: #c4cdd9;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(10,37,64,.06);
  --shadow:    0 4px 16px rgba(10,37,64,.08);
  --shadow-lg: 0 12px 36px rgba(10,37,64,.10);

  --container: 1180px;
  --gutter:    24px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink-900);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand-700);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--brand-900); }

img, svg { display: block; max-width: 100%; height: auto; }

/* ----------- Layout primitives ----------- */
.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--gutter);
  margin: 0 auto;
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.dark {
  background: var(--bg-dark);
  color: #e9eef5;
}
section.soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 16px;
}
section.dark .eyebrow { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }

h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }

p  { margin: 0 0 16px; color: var(--ink-700); }
section.dark p { color: #b9c4d3; }

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 720px;
}
section.dark .lead { color: #b9c4d3; }

ul.clean { list-style: none; padding: 0; margin: 0; }

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--brand-900);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-primary:disabled,
.btn-primary:disabled:hover {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-ghost {
  background: transparent;
  color: var(--brand-900);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand-700); color: var(--brand-700); }

section.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
section.dark .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.05); }

/* ----------- Header / Nav ----------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-900);
}
.brand .logo {
  width: 36px;
  height: 36px;
  color: var(--brand-900);
}
.brand .word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand .word .ai {
  color: var(--accent);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--brand-900); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--accent);
}

.nav .btn { padding: 10px 18px; font-size: 14px; }
/* Button text colors must override the .nav a default color (higher specificity wins otherwise). */
.nav a.btn-primary,
.nav a.btn-primary:hover,
.nav a.btn-primary:focus,
.nav a.btn-primary.active { color: #fff; }
.nav a.btn-ghost { color: var(--brand-900); }
.nav a.btn-ghost:hover { color: var(--brand-700); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink-900); margin: 5px auto;
  transition: transform .2s ease;
}

/* ----------- Hero ----------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(42,127,176,.10), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(22,163,184,.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero h1 { max-width: 880px; }
.hero p.lead { margin-top: 8px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .tag-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 36px;
}
.tag {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-050);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
}

/* ----------- Grids ----------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

/* ----------- Card ----------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  border-color: var(--brand-500);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card .num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .12em;
}
.card h3 { margin-top: 10px; }
.card p:last-child { margin-bottom: 0; }

.card.dark {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: #e9eef5;
}
.card.dark h3 { color: #fff; }
.card.dark p { color: #b9c4d3; }

/* ----------- Section heading block ----------- */
.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

/* ----------- Three-zone (small visual on About page) ----------- */
.zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.zone {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg);
}
.zone .dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:8px; vertical-align: middle; }
.zone .dot.g { background:#16a34a; }
.zone .dot.y { background:#ca8a04; }
.zone .dot.r { background:#dc2626; }
.zone h4 { margin:0 0 8px; font-size: 15px; }
.zone p { font-size: 14px; color: var(--ink-500); margin:0; }
@media (max-width: 700px) { .zones { grid-template-columns: 1fr; } }

/* ----------- Stats ----------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat .n {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--brand-900);
  line-height: 1;
}
.stat .l {
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 8px;
}
section.dark .stat .n { color: #fff; }
section.dark .stat .l { color: #b9c4d3; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ----------- Logo strip (placeholder client logos) ----------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
  opacity: .65;
}
.logo-strip .l {
  height: 32px;
  background: var(--ink-100);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: .1em;
  font-weight: 600;
}
@media (max-width: 700px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }

/* ----------- Forms (Contact) ----------- */
.form {
  display: grid;
  gap: 16px;
  max-width: 640px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink-900);
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(31,95,138,.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form .hint { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.form-feedback {
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.form-feedback--success {
  color: var(--ink-800);
  background: #f0f7f4;
  border-color: #b8d9c8;
}
.form-feedback--error {
  color: #7a1f1f;
  background: #fdf4f4;
  border-color: #e8b4b4;
}

/* ----------- Detail rows ----------- */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.detail-row:first-of-type { border-top: 0; padding-top: 0; }
.detail-row h3 { font-size: 22px; }
@media (max-width: 800px) {
  .detail-row { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
}

/* ----------- FAQ ----------- */
details.faq {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
details.faq:last-of-type { border-bottom: 1px solid var(--border); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-900);
  display: flex; justify-content: space-between; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; color: var(--brand-700); font-weight: 400; font-size: 22px;
}
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: 12px; color: var(--ink-700); }

/* ----------- Footer ----------- */
.site-footer {
  background: var(--brand-900);
  color: #b9c4d3;
  padding: 56px 0 28px;
}
.site-footer a { color: #e9eef5; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h5 {
  color: #fff; font-size: 13px;
  text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 14px;
}
.footer-grid ul li { margin-bottom: 8px; font-size: 14px; }
.footer-grid p { color: #b9c4d3; font-size: 14px; }
.footer-grid .brand { color: #fff; }
.footer-grid .brand .logo { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #8a98aa;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----------- Utility ----------- */
.center { text-align: center; }
.muted  { color: var(--ink-500); }
.mt-0   { margin-top: 0; }
.mt-1   { margin-top: 8px; }
.mt-2   { margin-top: 16px; }
.mt-4   { margin-top: 32px; }
.mb-0   { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----------- Mobile nav ----------- */
@media (max-width: 800px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
         flex-direction: column; gap: 0; background: #fff; padding: 8px 0;
         border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-bottom: 1px solid var(--border); }
  .nav a:last-of-type { border-bottom: 0; }
  .nav a.active::after { display: none; }
  .nav .btn { margin: 12px var(--gutter); align-self: flex-start; }
  .nav-toggle { display: block; }
}
