/* Nexus Business Solutions — site styles */

:root {
  --navy: #0b1f3a;
  --navy-2: #163256;
  --gold: #d4a24c;
  --gold-dark: #b8862f;
  --ink: #1d2433;
  --muted: #5d6679;
  --line: #e4e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8ecf4;
    --muted: #a7b0c2;
    --line: #22304a;
    --bg: #0a1628;
    --bg-alt: #0f1f36;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --ink: #e8ecf4;
  --muted: #a7b0c2;
  --line: #22304a;
  --bg: #0a1628;
  --bg-alt: #0f1f36;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}
.brand-text { font-size: 1.05rem; line-height: 1.1; display: flex; flex-direction: column; }
.brand-text span { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--muted);
}
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--bg-alt); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .95rem; background: var(--navy); color: #fff; }
.btn-small:hover { background: var(--navy-2); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(212, 162, 76, .18), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1.4fr 1fr;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--gold); }
.accent { color: var(--gold-dark); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
}
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.facts li:last-child { border-bottom: 0; }
.fact-num { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
[data-theme="dark"] .fact-num, :root:not([data-theme="light"]) .fact-num { color: var(--gold); }
.facts span:last-child { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #eef2f8; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.two-col {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}
.prose p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: none;
}
.steps li {
  position: relative;
  border-top: 3px solid var(--gold);
  padding: 24px 4px 0;
}
.step-no { display: block; font-weight: 800; color: var(--gold-dark); font-size: .9rem; letter-spacing: .1em; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Why list ---------- */
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.why-list li {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  color: #c9d2e3;
}
.why-list strong { color: #fff; display: block; margin-bottom: 4px; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid { align-items: start; }
.contact-details {
  font-style: normal;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.contact-details a { color: var(--ink); font-weight: 600; }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 46px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 162, 76, .25);
}
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #1e7b4a; }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c9d2e3;
  padding: 48px 0;
}
.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-text span { color: #9fb0cc; }
.site-footer .muted { color: #9fb0cc; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { text-decoration: none; color: #c9d2e3; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer p.small { margin: 0; }
.brand-footer { margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .contact-form { padding: 24px; }
}

@media (max-width: 420px) {
  body { font-size: 15px; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
