/* ==========================================================================
   Netsville Revamp — design system
   Hybrid: dark grid hero/bands + white corporate body. Brand green accent.
   Heading font is a one-line swap: change --font-display below.
   ========================================================================== */

:root {
  /* Brand */
  --green: #2F9941;         /* logo green — light backgrounds */
  --green-bright: #45C25F;  /* brightened — dark backgrounds */
  --green-deep: #0B8821;

  /* Neutrals */
  --ink: #14171a;
  --charcoal: #1d2024;
  --dark: #131518;
  --gray: #5a6068;
  --gray-dim: #7d838b;
  --gray-dark-body: #9aa0a7;
  --line: #e3e5e8;
  --line-dark: #2c3036;
  --paper: #ffffff;
  --bg: #f4f5f6;

  /* Type — heading face swap lives here (Baird's pick still pending).
     Phosphor terminal look (current): Share Tech Mono / 400 / uppercase.
     For a grotesque (e.g. Sora): swap family, weight 800, transform none,
     and raise the size clamps (hero max ~84px, h2 max ~44px). */
  --font-display: 'Share Tech Mono', 'Courier New', monospace;
  --font-display-weight: 400;
  --font-display-transform: uppercase;
  --hero-size: clamp(36px, 5.2vw, 72px);
  --h2-size: clamp(26px, 3.2vw, 38px);
  --font-body: 'Archivo', Helvetica, Arial, sans-serif;

  /* Grid motif */
  --grid-size: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); }

::selection { background: var(--green); color: #fff; }

h1, h2, h3, h4 { margin: 0; }

/* ---------- Layout helpers ---------- */

.nv-wrap { max-width: 1180px; margin: 0 auto; }

.nv-section { padding: 96px 56px; }

.nv-white { background: var(--paper); }

.nv-dark-grid {
  background-color: var(--dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.nv-light-grid {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(19, 21, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 21, 24, 0.05) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.nv-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.nv-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* ---------- Buttons & chips ---------- */

.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nv-btn-lg { padding: 16px 30px; font-size: 16px; }

.nv-btn-solid { background: var(--green); color: #fff; }
.nv-btn-solid:hover { background: var(--green-deep); color: #fff; }

.nv-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: #f2f3f4; font-weight: 600; }
.nv-btn-ghost:hover { border-color: var(--green-bright); color: var(--green-bright); }

.nv-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.nv-chip .nv-sq { display: inline-block; width: 10px; height: 10px; background: var(--green-bright); }

.nv-chip-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8eaec;
}

.nv-chip-ink { background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; }
.nv-chip-ink .nv-sq { width: 8px; height: 8px; }

.nv-accent-text { color: var(--green-bright); }

/* ---------- Nav ---------- */

.nv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 56px;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-dark);
}

.nv-nav-logo img { height: 44px; width: auto; display: block; }

.nv-nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.nv-nav-links a { color: #d6d9dd; }
.nv-nav-links a:hover { color: #fff; }

/* ---------- Nav dropdown (Support) — click to open, see nav.js ---------- */

.nv-dd { position: relative; }

.nv-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  color: #d6d9dd;
  cursor: pointer;
}

.nv-dd-toggle:hover, .nv-dd-toggle[aria-expanded="true"] { color: #fff; }

.nv-dd-chevron { transition: transform 0.2s ease; }
.nv-dd-toggle[aria-expanded="true"] .nv-dd-chevron { transform: rotate(180deg); }

.nv-dd-menu {
  position: absolute;
  top: calc(100% + 26px);  /* clears the nav bar's bottom edge */
  right: -20px;
  z-index: 100;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--green-bright);
  border-radius: 0 0 4px 4px;
}

.nv-dd-menu a { padding: 10px 20px; }
.nv-dd-menu a:hover { background: var(--dark); }

.nv-dd-menu[hidden], .nv-drawer-sub[hidden] { display: none; }

/* ---------- Mobile drawer nav ---------- */

.nv-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nv-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #f2f3f4;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nv-menu-open .nv-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nv-menu-open .nv-burger span:nth-child(2) { opacity: 0; }
body.nv-menu-open .nv-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nv-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 999;
}

body.nv-menu-open .nv-scrim { opacity: 1; pointer-events: auto; }

.nv-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(320px, 85vw);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px 32px;
  background: var(--charcoal);
  border-left: 1px solid var(--line-dark);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 1000;
  overflow-y: auto;
}

body.nv-menu-open .nv-drawer { transform: none; }

body.nv-menu-open { overflow: hidden; }

.nv-drawer-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: #d6d9dd;
  cursor: pointer;
}

.nv-drawer-close:hover { color: #fff; }

.nv-drawer-links { display: flex; flex-direction: column; }

.nv-drawer-links a {
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  color: #d6d9dd;
  border-bottom: 1px solid var(--line-dark);
}

.nv-drawer-links a:hover { color: #fff; }

.nv-drawer-dd .nv-dd-toggle {
  width: 100%;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-dark);
}

.nv-drawer-sub { display: flex; flex-direction: column; }
.nv-drawer-links .nv-drawer-sub a { padding: 12px 4px 12px 20px; font-size: 16px; }

.nv-drawer-cta { margin-top: 24px; padding: 16px 22px; }

/* Desktop: drawer machinery fully inert */
@media (min-width: 1025px) {
  .nv-drawer, .nv-scrim, .nv-burger { display: none; }
}

/* ---------- Hero ---------- */

.nv-hero { position: relative; overflow: hidden; padding: 96px 56px 104px; }

.nv-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.nv-hero-title {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: var(--hero-size);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: var(--font-display-transform);
  color: #f2f3f4;
}

.nv-hero-sub { max-width: 720px; margin: 0; font-size: 19px; line-height: 1.6; color: #b8bdc3; }

.nv-hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }

.nv-hero-kicker { font-size: 14px; letter-spacing: 0.06em; color: var(--gray-dim); font-weight: 500; }

/* Pixel-block clusters (Agenio motif) */
.nv-pixels { position: absolute; width: 168px; height: 112px; }
.nv-pixels i { position: absolute; width: var(--grid-size); height: var(--grid-size); background: var(--green-bright); }
.nv-pixels-tr { top: 0; right: 112px; }
.nv-pixels-tr .p1 { top: 0; left: 56px; }
.nv-pixels-tr .p2 { top: 0; left: 112px; opacity: 0.35; }
.nv-pixels-tr .p3 { top: 56px; left: 0; opacity: 0.6; }
.nv-pixels-bl { bottom: 0; left: 0; }
.nv-pixels-bl .p4 { bottom: 0; left: 0; opacity: 0.5; }
.nv-pixels-bl .p5 { bottom: 56px; left: 56px; opacity: 0.25; }

/* ---------- Section scaffolding ---------- */

.nv-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: 56px;
}

.nv-section-head h2 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: var(--h2-size);
  line-height: 1.12;
  text-transform: var(--font-display-transform);
  color: var(--ink);
}

.nv-section-head h2.nv-on-dark { color: #f2f3f4; }

.nv-section-sub { margin: 0; font-size: 17px; color: var(--gray); }

.nv-lede {
  max-width: 760px;
  margin: 56px auto 0;
  text-align: center;
  font-size: 18px;
  color: var(--ink);
}

/* ---------- Cards ---------- */

.nv-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--paper); }

.nv-card p { margin: 0; font-size: 16px; color: var(--gray); }

.nv-card h3 { font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--ink); }

.nv-card-line { border: 1px solid var(--line); }

.nv-ghost-num {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 58px;
  line-height: 1;
  color: var(--line);
}

.nv-card-step { border-top: 3px solid var(--green); padding: 36px 32px; gap: 18px; }

.nv-step-label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--green); }

.nv-step-title {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 26px;
  text-transform: var(--font-display-transform);
  color: var(--ink);
}

.nv-proof-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--green); }

.nv-card h3 + p { margin-top: 0; }

.nv-card-line h3 { font-size: 20px; line-height: 1.35; }

/* ---------- IPM strip ---------- */

.nv-ipm { margin-top: 32px; padding: 40px; background: var(--charcoal); display: flex; flex-direction: column; gap: 24px; }

.nv-ipm-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }

.nv-ipm-head h3 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 22px;
  text-transform: var(--font-display-transform);
  color: #f2f3f4;
}

.nv-ipm-tag { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; color: var(--green-bright); }

.nv-ipm-item { padding-left: 16px; border-left: 2px solid var(--green-bright); display: flex; flex-direction: column; gap: 8px; }

.nv-ipm-item h4 { font-size: 16px; font-weight: 700; color: #f2f3f4; }

.nv-ipm-item p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--gray-dark-body); }

/* ---------- Pattern pull-quote ---------- */

.nv-pattern {
  margin-top: 56px;
  padding: 36px 48px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.nv-pattern-label { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--green); }

.nv-pattern p { margin: 0; max-width: 860px; font-size: 24px; font-weight: 600; line-height: 1.45; color: var(--ink); }

/* ---------- Why Netsville (dark) ---------- */

.nv-why {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nv-why h3 { font-size: 17px; font-weight: 700; color: #f2f3f4; }

.nv-why p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--gray-dark-body); }

/* ---------- CTA ---------- */

.nv-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 860px;
  text-align: center;
}

.nv-cta-inner h2 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: var(--h2-size);
  line-height: 1.14;
  text-transform: var(--font-display-transform);
  color: var(--ink);
}

.nv-cta-alt { margin: 0; font-size: 15px; color: var(--gray-dim); }

/* ---------- Footer ---------- */

.nv-footer { background: var(--charcoal); padding: 64px 56px 40px; }

.nv-footer-cols { display: flex; justify-content: space-between; gap: 64px; flex-wrap: wrap; }

.nv-footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.nv-footer-brand img { height: 48px; width: auto; align-self: flex-start; }
.nv-footer-brand p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--gray-dark-body); }
.nv-footer-dim { font-size: 14px; color: #6b7178; }

.nv-footer-col { display: flex; flex-direction: column; gap: 10px; }
.nv-footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: #f2f3f4; margin-bottom: 4px; }
.nv-footer-col a, .nv-footer-col span { font-size: 15px; color: var(--gray-dark-body); }
.nv-footer-col a:hover { color: var(--green-bright); }

.nv-footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: #6b7178;
}

/* ---------- Generic content (index.php fallback) ---------- */

.nv-content h1 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 24px;
}

/* ---------- Pages (page.php: blank canvas, content from the editor) ---------- */

.nv-page-inner { max-width: 860px; }

.nv-page-inner > * { margin-top: 0; margin-bottom: 0; }
.nv-page-inner > * + * { margin-top: 28px; }

.nv-page h1,
.nv-page h2 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: var(--h2-size);
  line-height: 1.14;
  text-transform: var(--font-display-transform);
  color: var(--ink);
}

.nv-page p { font-size: 17px; }

/* Editor classes (Block > Advanced > Additional CSS class):
   nv-center centers a block; nv-lead is the gray sub-line under a
   headline; nv-cta-alt is the small "Or call us" line. */
.nv-page .nv-center,
.nv-page .nv-lead,
.nv-page .nv-cta-alt { text-align: center; }

.nv-page .nv-lead { color: var(--gray); }

.nv-page .nv-cta-alt { font-size: 15px; }

/* ---------- Forms (Contact Form 7) ----------
   Class hook, not per-form CSS: wrap the [contact-form-7] shortcode in a
   Group with class "nv-form". Large rounded fields (orgreenx-style) are a
   deliberate exception to the site's sharp 4px radii. */

.nv-page .nv-form { max-width: 720px; margin: 48px auto 0; }
.nv-page .nv-form + * { margin-top: 32px; }

.nv-form .wpcf7-form { display: flex; flex-direction: column; gap: 16px; }

.nv-f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.nv-form label { display: block; }
.nv-form .wpcf7-form-control-wrap { display: block; }

.nv-form input[type="text"],
.nv-form input[type="email"],
.nv-form input[type="tel"],
.nv-form textarea {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 60px;
  padding: 0 22px;
  border: 2px solid #c9cdd2;
  border-radius: 14px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}

.nv-form textarea { height: 168px; padding: 18px 22px; line-height: 1.5; resize: vertical; }

.nv-form ::placeholder { color: var(--gray-dim); opacity: 1; }
.nv-form :focus::placeholder { color: transparent; }

.nv-form input:hover,
.nv-form textarea:hover { border-color: #a9aeb5; }

.nv-form input:focus,
.nv-form textarea:focus { border-color: var(--green); }

.nv-form input[aria-invalid="true"],
.nv-form textarea[aria-invalid="true"] { border-color: #b32d2e; }

.nv-form .wpcf7-not-valid-tip { margin: 6px 0 0 22px; font-size: 14px; color: #b32d2e; }

.nv-f-submit { position: relative; margin-top: 8px; }

.nv-form input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nv-form input[type="submit"]:hover { background: var(--green-deep); }
.nv-form input[type="submit"]:disabled { opacity: 0.7; cursor: default; }

/* CF7's spinner sits inside the button's right edge instead of beside it */
.nv-form .wpcf7-spinner { position: absolute; top: 50%; right: 18px; margin: -12px 0 0; }

.nv-form .wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: 14px 20px;
  border: 2px solid #c9cdd2;
  border-radius: 14px;
  font-size: 15px;
  text-align: center;
}

.nv-form .wpcf7 form.sent .wpcf7-response-output { border-color: var(--green); }
.nv-form .wpcf7 form.invalid .wpcf7-response-output,
.nv-form .wpcf7 form.unaccepted .wpcf7-response-output,
.nv-form .wpcf7 form.failed .wpcf7-response-output,
.nv-form .wpcf7 form.aborted .wpcf7-response-output,
.nv-form .wpcf7 form.spam .wpcf7-response-output { border-color: #b32d2e; }

/* Visible to screen readers only (field labels; placeholders carry the look) */
.nv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot decoy (see functions.php): off-screen, NOT display:none */
.nv-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nv-section { padding: 72px 32px; }
  .nv-hero { padding: 72px 32px 80px; }
  .nv-nav { padding: 14px 24px; }
  /* Tablet threshold: inline links + CTA give way to the hamburger */
  .nv-nav-links, .nv-nav-cta { display: none; }
  .nv-burger { display: flex; }
  .nv-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nv-section { padding: 56px 20px; }
  .nv-hero { padding: 56px 20px 64px; }
  .nv-grid-3, .nv-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .nv-pixels { display: none; }
  .nv-hero-sub { font-size: 17px; }
  .nv-ipm { padding: 28px 20px; }
  .nv-pattern { padding: 28px 20px; }
  .nv-pattern p { font-size: 20px; }
  .nv-footer { padding: 48px 20px 32px; }
  .nv-footer-cols { flex-direction: column; gap: 36px; }
  .nv-page .nv-form { margin-top: 36px; }
}

@media (max-width: 600px) {
  .nv-f-row { grid-template-columns: minmax(0, 1fr); }
}
