/* =========================================================
   CSS VARIABLES
========================================================= */
:root {
  --bg: #fafaf9;
  --surface: #fff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e7e5e4;
  --soft: #f5f5f4;

  --cta: #158940;
  --cta2: #147a38;

  --max: 980px;
  --radius: 16px;

  --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  --shadow2: 0 10px 24px rgba(17, 24, 39, 0.08);
}

/* =========================================================
   BASE / RESET
========================================================= */
* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

/* =========================================================
   TOP NAVIGATION
========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* =========================================================
   NAV LINKS / BUTTONS
========================================================= */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a:not(.btn) {
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.nav a:not(.btn):hover {
  background: var(--soft);
  border-color: var(--line);
}

.nav a:not(.btn)[aria-current="page"] {
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
}

.btn {
  display: inline-block;
  padding: 9px 12px;
  background: var(--cta);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
}

.btn:hover {
  background: var(--cta2);
}

/* =========================================================
   HERO / HEADER
========================================================= */
header {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      1200px 380px at 10% -20%,
      rgba(22, 163, 74, 0.08),
      transparent 55%
    ),
    radial-gradient(
      900px 320px at 95% -25%,
      rgba(17, 24, 39, 0.06),
      transparent 50%
    ),
    #fbfbfa;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 18px 24px;
  display: grid;
  gap: 10px;
}

.hero h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.sub {
  margin: 0;
  color: var(--muted);
  max-width: 78ch;
  font-size: 14px;
}

/* =========================================================
   MAIN CONTENT
========================================================= */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 46px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 100%;
}

.img {
  margin-top: 14px;
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: var(--shadow2);
  width: 100%;
}

.img img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .img {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}

h2 {
  margin: 18px 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

/* =========================================================
   CITY GRID
========================================================= */
.city-grid {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.city-grid a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.city-grid a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
}

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

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px;
  display: grid;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.small {
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   TABLES
========================================================= */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

thead th {
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}

tbody tr:last-child td {
  border-bottom: none;
}

.table-scroll {
  max-width: 100%;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav {
    justify-content: center;
  }

  .nav .btn {
    width: 100%;
    text-align: center;
  }

  .topbar-inner .brand-wrap {
    justify-content: center;
  }

  .topbar-inner .brand-wrap span {
    text-align: center;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll table {
    min-width: 720px;
  }
}

/* =========================================================
   CONTACT FORM
========================================================= */
.form-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 320px;
  align-items: start;
}

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

.embed-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--soft);
}

.nx-center {
  display: flex;
  justify-content: center;
}

#nx_form {
  width: 242px;
  height: 375px;
}

#networx_form_container iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

/* =========================================================
   WHY BOX
========================================================= */
.why-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.why-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.why-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.tick {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tick::before {
  content: "✓";
  font-weight: 900;
  font-size: 12px;
}