/* ============================================================
   ORI — Outsource Recovery, Inc.
   Shared Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

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

:root {
  /* Brand Colors */
  --purple:        #7B6FC4;
  --purple-light:  #9B8FD8;
  --purple-dark:   #5A50A0;
  --purple-dim:    rgba(123,111,196,0.15);
  --green:         #4DCB3A;
  --green-light:   #6EDE5A;
  --green-dark:    #38A829;
  --green-dim:     rgba(77,203,58,0.12);

  /* Neutrals */
  --bg:            #0D0D12;
  --bg2:           #12121A;
  --bg3:           #181824;
  --bg4:           #1E1E2E;
  --border:        rgba(123,111,196,0.18);
  --border-green:  rgba(77,203,58,0.2);

  /* Text */
  --text:          #F0EFF8;
  --muted:         #8B87B0;
  --muted2:        #6B678A;
  --white:         #FFFFFF;

  /* Typography */
  --font-display:  'Manrope', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  /* Transitions */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--purple-dark); border-radius: 3px; }

/* ── SELECTION ─────────────────────────────── */
::selection { background: var(--purple); color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 3rem;
  background: rgba(13,13,18,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--ease), box-shadow 0.3s;
}

nav.scrolled {
  padding: 0.4rem 3rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 100px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
  max-width: 140px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--green); }

/* Dropdown */
.nav-links .dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 300;
}

.nav-links li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-links .dropdown a {
  display: block;
  padding: 0.7rem 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-links .dropdown a:hover {
  color: var(--green);
  background: rgba(77,203,58,0.05);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.4rem;
  background: var(--green);
  color: var(--bg) !important;
  font-family: var(--font-display) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s !important;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--green-light) !important; color: var(--bg) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  position: relative;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   LAYOUT & CONTAINERS
   ============================================================ */
section { padding: 6rem 2rem; }
.container { max-width: 1140px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--green);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.section-title em {
  font-style: normal;
  color: var(--purple-light);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(77,203,58,0.3); }

.btn-outline {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid var(--purple);
}
.btn-outline:hover { background: var(--purple-dim); border-color: var(--purple-light); color: var(--white); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border-green);
}
.btn-ghost:hover { background: var(--green-dim); border-color: var(--green); color: var(--white); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2.25rem;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.card:hover {
  border-color: var(--purple);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(123,111,196,0.12);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--purple-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.card-body {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ============================================================
   STAT COUNTERS
   ============================================================ */
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ============================================================
   DIVIDER LINES
   ============================================================ */
.line-green {
  width: 48px;
  height: 3px;
  background: var(--green);
  margin-bottom: 2rem;
}

.line-purple {
  width: 48px;
  height: 3px;
  background: var(--purple);
  margin-bottom: 2rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg4);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group select option { background: var(--bg4); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--purple); }

.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 2rem 3rem;
  max-width: 1140px;
  margin: 0 auto;
}

.footer-brand img { height: 100px; margin-bottom: 1.25rem; }

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }

.footer-contact-item {
  margin-bottom: 0.9rem;
}

.footer-contact-item .label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.15rem;
}

.footer-contact-item .val {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-contact-item a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 2rem;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted2);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  padding: 12rem 2rem 5rem;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(123,111,196,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(77,203,58,0.07) 0%, transparent 45%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted2);
}

.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--muted2); }

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.75;
}

/* ============================================================
   HIGHLIGHT BAND
   ============================================================ */
.highlight-band {
  background: var(--purple-dim);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.highlight-band-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.highlight-band-inner p {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--purple-light);
}

.highlight-band-inner strong {
  color: var(--white);
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: fixed; top: 0; left: 0; right: 0; bottom: auto; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 5rem 0 1.5rem; z-index: 190; }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 0.9rem 2rem; font-size: 0.9rem; }
  .nav-links .dropdown { position: static; opacity: 1; pointer-events: all; transform: none; border: none; background: transparent; padding-left: 1rem; }
  .nav-links .dropdown a { padding: 0.5rem 2rem; }
  .nav-cta { margin: 0.75rem 2rem; display: inline-block; text-align: center; }
  .hamburger { display: flex; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .nav-logo img { height: 56px; }
  .nav-logo-text { font-size: 0.6rem; max-width: 110px; }
}

@media (max-width: 600px) {
  section { padding: 4rem 1.25rem; }
  .page-hero { padding: 8rem 1.25rem 3.5rem; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
