/* ============================================
   Apex Strategic Solutions — site stylesheet
   ============================================ */

:root {
  --navy-900: #081a33;
  --navy-800: #0b2244;
  --navy-700: #11315e;
  --navy-100: #e8eef7;
  --gold: #c9a227;
  --gold-light: #e3c558;
  --ink: #1c2530;
  --ink-soft: #4a5868;
  --paper: #ffffff;
  --paper-soft: #f5f7fa;
  --line: #dde4ec;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(8, 26, 51, 0.10);
  --maxw: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.2; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

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

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar {
  background: var(--navy-800);
  font-size: 0.82rem;
  color: var(--navy-100);
  padding: 0.35rem 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--navy-100); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
}
.brand-text { line-height: 1.15; }
.brand-text .name { font-size: 1.05rem; display: block; }
.brand-text .sub { font-size: 0.68rem; font-weight: 500; color: var(--gold-light); letter-spacing: 0.12em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: #d8e1ee; font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.site-nav .btn { padding: 0.55rem 1.2rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(201,162,39,0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: #fff;
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 17em; }
.hero .lead { color: #c4d1e3; margin: 1.2rem 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero .container { position: relative; }

/* page hero (interior pages) */
.page-hero { padding: 3.8rem 0 3.2rem; }
.page-hero p { max-width: 50em; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy-800); color: #b9c7da; padding: 1rem 0; font-size: 0.92rem; }
.trust-bar .container {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem; justify-content: center; align-items: center;
}
.trust-bar strong { color: #fff; font-weight: 600; }
.trust-bar span { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-bar svg { width: 18px; height: 18px; flex: none; color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper-soft); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); margin-top: 0.8rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--navy-100);
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.card .icon svg { width: 28px; height: 28px; color: var(--navy-700); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.card .card-link { margin-top: 1.2rem; font-weight: 600; color: var(--navy-700); }
.card .card-link::after { content: " \2192"; }

/* ---------- Feature list (checkmarks) ---------- */
.check-list { list-style: none; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft); }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.check-list strong { color: var(--ink); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split .panel {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius);
  color: #fff;
  padding: 2.4rem;
  box-shadow: var(--shadow);
}
.split .panel h3 { color: #fff; margin-bottom: 1rem; }
.split .panel p { color: #c4d1e3; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stat { padding: 1.6rem 1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--navy-800); display: block; line-height: 1.1; }
.stat .lbl { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Credentials table ---------- */
.cred-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cred-table th, .cred-table td { padding: 0.9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.cred-table th { background: var(--navy-100); color: var(--navy-900); width: 38%; font-weight: 600; }
.cred-table tr:last-child th, .cred-table tr:last-child td { border-bottom: 0; }

/* ---------- Past performance ---------- */
.project { border-left: 4px solid var(--gold); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem 1.8rem; box-shadow: var(--shadow); }
.project + .project { margin-top: 1.4rem; }
.project .meta { font-size: 0.85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.project p { color: var(--ink-soft); font-size: 0.97rem; margin-top: 0.4rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 350px at 15% 110%, rgba(201,162,39,0.22), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--navy-700));
  color: #fff;
  text-align: center;
  padding: 4.2rem 0;
}
.cta-band h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-band p { color: #c4d1e3; max-width: 38em; margin: 0 auto 1.8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
.contact-info { display: grid; gap: 1.3rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon {
  width: 46px; height: 46px; flex: none; border-radius: 10px;
  background: var(--navy-100); display: grid; place-items: center;
}
.contact-item .icon svg { width: 24px; height: 24px; color: var(--navy-700); }
.contact-item h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { color: var(--ink-soft); font-size: 0.97rem; }

form.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { font-weight: 600; font-size: 0.92rem; color: var(--navy-900); display: block; margin-bottom: 0.35rem; }
input, textarea, select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper-soft);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--navy-700); outline-offset: 1px; background: #fff; }
textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.alert { padding: 1rem 1.2rem; border-radius: 8px; font-weight: 600; }
.alert-ok { background: #e7f5ea; color: #1d6b34; border: 1px solid #bfe3c8; }
.alert-err { background: #fcebea; color: #9b2620; border: 1px solid #f3c6c3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c7da; padding: 3.5rem 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: #b9c7da; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.3rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.85rem; color: #8597ad;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: #c4d1e3; margin-bottom: 1.2rem; }
.breadcrumbs a { color: #c4d1e3; }
.breadcrumbs span { color: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .card-grid, .stats { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .card-grid, .stats, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 24px 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.open { display: flex; }
  .hero { padding: 3.5rem 0; }
  .section { padding: 3rem 0; }
}
