/* Apex Outpost LLC — dark theme, no external dependencies */

:root {
  --bg: #0b0f14;
  --bg-alt: #0f151d;
  --surface: #141c26;
  --surface-2: #1a2432;
  --border: #223041;
  --text: #e6edf3;
  --text-dim: #9aa8b6;
  --text-faint: #6b7a89;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --accent-2: #fbbf24;
  --radius: 14px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.logo-lockup {
  height: 42px;
  width: auto;
  flex: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-menu a:hover,
.nav-menu a:focus { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #0b0f14 !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding: 4.5rem 1.25rem 4rem;
  background:
    radial-gradient(1000px 400px at 80% -10%, rgba(249, 115, 22, 0.09), transparent 60%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b0f14;
}

.btn-primary:hover { background: var(--accent-2); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- sections ---------- */
.section {
  padding: 4.5rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 0;
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* ---------- about ---------- */
.about-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.about-copy h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.about-copy p { margin: 0 0 1.5rem; color: var(--text-dim); }
.about-copy p strong { color: var(--text); }

.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cred {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cred-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.cred-label {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- technologies ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tech-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.tech-icon { margin: 0 0 0.5rem; }
.tech-icon img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 0.5rem);
  border: 1px solid var(--border);
}

.tech-card h3 {
  margin: 1rem 0 0.15rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.soon-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.tech-machine {
  margin: 0 0 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.98rem;
}

.tech-card p:last-child {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.tech-card-soon { opacity: 0.92; }

/* ---------- who it's for ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.who-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.who-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  color: var(--text);
}

.who-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.who-closing {
  margin: 1.5rem 0 0;
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 500;
}

.typical-work {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.typical-work h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.chip-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

/* ---------- service area ---------- */
.area-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

/* owner-provided service-area infographic (light bg) — framed for the dark theme */
.area-visual {
  margin: 0;
}
.area-map {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.area-copy p {
  margin: 0 0 1rem;
  color: var(--text-dim);
}

.area-copy p strong { color: var(--text); }

.nap-line {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.6);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.county-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
}

.county-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.96rem;
}

.county-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-card .contact-form {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.contact-identity h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.contact-link {
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-text {
  font-weight: 600;
  color: var(--text);
}

.contact-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-lines li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.contact-ico {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}

.contact-side p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .tech-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-card { grid-template-columns: 1fr; }
  .area-card { grid-template-columns: 1fr; padding: 1.5rem; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 0.8rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu li:last-child a { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }

  .hero { padding: 3rem 1.25rem 3rem; }
  .section { padding: 3.25rem 1.25rem; }
  .who-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .county-list { grid-template-columns: 1fr; }
}

/* ---------- Wix Forms: Start a Project ---------- */
.f-loading,
.f-fallback {
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 0.5rem 0;
}
.f-fallback p { margin: 0 0 0.25rem; }
.f-fallback a { color: var(--accent-2); }

.f-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
@media (max-width: 640px) {
  .f-grid { grid-template-columns: 1fr; }
}

.f-field { display: flex; flex-direction: column; gap: 0.35rem; }
.f-field[data-span] { grid-column: 1 / -1; }
.f-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}
.f-label .req { color: var(--accent); }

.f-field input,
.f-field select,
.f-field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  padding: 0.6rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, outline-color 0.15s ease;
}
.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.f-field input[aria-invalid="true"],
.f-field select[aria-invalid="true"],
.f-field textarea[aria-invalid="true"] {
  border-color: #c0392b;
  outline-color: #c0392b;
}

.f-field input[type="file"] {
  padding: 0.5rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: calc(var(--radius) - 4px);
  color: var(--text-dim);
  cursor: pointer;
}
.f-field input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: calc(var(--radius) - 6px);
  padding: 0.4rem 0.9rem;
  margin-right: 0.75rem;
  cursor: pointer;
}
.f-filelist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.f-filename {
  font-size: 0.8rem;
  color: var(--accent-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.f-filehint {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.f-error {
  margin: 0;
  min-height: 1em;
  font-size: 0.8rem;
  color: #e07a6d;
}
.f-error:empty { display: none; }

.f-submit-row {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.f-submit {
  width: auto;
  padding: 0.7rem 1.6rem;
  align-self: flex-start;
}
.f-form-error { margin-top: 0.25rem; }

.f-success {
  padding: 1rem 0;
}
.f-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--accent-2);
}
.f-success p {
  margin: 0;
  color: var(--text-dim);
}

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

/* ---------- service pages (multi-page site) ---------- */

/* Page hero reuses .hero / .hero-inner / .hero-visual; tighten top padding. */
.svc-hero { padding-top: 3.75rem; }

/* "What it is" body copy. */
.svc-body { max-width: 46rem; }
.svc-body p { margin: 0 0 1.25rem; color: var(--text-dim); }
.svc-body p:last-child { margin-bottom: 0; }
.svc-body p strong { color: var(--text); }

/* DFM review card — reuses the .about-card surface look. */
.svc-dfm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.svc-dfm h3 { margin: 0 0 1rem; font-size: 1.4rem; }
.svc-dfm p { margin: 0 0 1.25rem; color: var(--text-dim); }
.svc-dfm p:last-child { margin-bottom: 0; }
.svc-dfm p strong { color: var(--text); }

/* CTA band. */
.svc-cta {
  background:
    radial-gradient(640px 220px at 12% 0%, rgba(249, 115, 22, 0.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.75rem 2rem;
  text-align: center;
}
.svc-cta h3 { margin: 0 0 0.75rem; font-size: 1.65rem; }
.svc-cta p { margin: 0 0 1.75rem; color: var(--text-dim); max-width: 40rem; margin-inline: auto; }
.svc-cta .hero-actions { justify-content: center; }

/* Card link styling — wrap a tech card in an <a>. */
a.tech-card-link { display: block; text-decoration: none; color: inherit; }
a.tech-card-link .tech-card { height: 100%; }
a.tech-card-link:hover .tech-card { border-color: var(--accent); transform: translateY(-3px); }
a.tech-card-link .tech-card:hover { transform: none; }

/* "Best for" typical-parts list reuses .typical-work / .chip-row / .chip. */
@media (max-width: 640px) {
  .svc-cta { padding: 2rem 1.5rem; }
  .svc-dfm { padding: 1.5rem; }
}
