/* ==========================================================================
   RoxIntel — Shared Stylesheet
   ========================================================================== */

:root {
  --navy-900: #081428;
  --navy-800: #0b2545;
  --navy-700: #12335e;
  --slate-600: #4a5568;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --gold-500: #c9a227;
  --gold-400: #d9b84a;
  --white: #ffffff;
  --ink: #1a2331;
  --max-width: 1160px;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(8, 20, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(8, 20, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 16px; color: var(--slate-600); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 10px;
}

.lead {
  font-size: 1.15rem;
  color: var(--slate-600);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-900);
}

.brand .mark {
  display: block;
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.brand .tagline-mini {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate-600);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-900);
  border-bottom-color: var(--gold-500);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy-900);
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--slate-200);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--slate-100);
  }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.14) 0%, rgba(201,162,39,0) 70%);
}

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

.hero h1 { color: var(--white); max-width: 780px; }
.hero .lead { color: rgba(255,255,255,0.82); max-width: 620px; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
}

.badge.gold {
  background: rgba(201,162,39,0.16);
  border-color: rgba(201,162,39,0.45);
  color: var(--gold-400);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-alt {
  background: var(--slate-100);
}

.section-navy {
  background: var(--navy-900);
  color: var(--white);
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.75); }

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card .num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-500);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

/* ---------- Stats ---------- */
.stat {
  text-align: center;
}
.stat .num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-500);
}
.stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--white);
}

thead th {
  background: var(--navy-900);
  color: var(--white);
  text-align: left;
  padding: 14px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--slate-200);
  font-size: 0.92rem;
  color: var(--slate-600);
  vertical-align: top;
}

tbody tr:nth-child(even) { background: var(--slate-100); }

.placeholder-text {
  color: var(--slate-500);
  font-style: italic;
}

/* ---------- Quote / callout ---------- */
.callout {
  background: var(--slate-100);
  border-left: 4px solid var(--gold-500);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin: 32px 0;
}

.callout p { margin: 0; color: var(--navy-900); font-weight: 600; font-size: 1.05rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  border-radius: 12px;
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

.form-note {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 10px;
}

#form-status {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Contact info list ---------- */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-200);
}
.info-list .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
}
.info-list .k {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 2px;
}
.info-list .v {
  font-weight: 600;
  color: var(--navy-900);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-400); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-brand .footer-mark {
  display: block;
  height: 32px;
  width: auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-badges span {
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.72rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero .lead { color: rgba(255,255,255,0.8); margin-bottom: 0; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--gold-400); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.center-wrap { margin-left: auto; margin-right: auto; }
