/* ===========================================================================
   NEWT Colocation Services
   Palette and type per the NEWT Brand Guidelines:
     NEWT Green  #8CC643   Opaque White #FFFFFF   Opaque Black #000000
     Primary font: Open Sans (Light 300 / Regular 400 / Semibold 600)
     Acceptable fallbacks: Arial, Calibri
   Neutrals below are tints of Opaque Black, used for body copy and surfaces.
   =========================================================================== */

:root {
  --green: #8cc643;
  --green-deep: #6d9c33;      /* hover/active state for green surfaces */
  --black: #000000;
  --white: #ffffff;

  --ink: #14181c;
  --ink-soft: #55606a;
  --line: #e2e6ea;
  --surface: #f5f7f8;
  --dark: #101315;
  --dark-2: #1b1f22;

  --wrap: 1180px;
  --radius: 4px;
  --header-h: 74px;

  --font: "Open Sans", Arial, Calibri, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--green); color: var(--black);
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ── Buttons ─────────────────────────────────────────────────────────────
   Black on NEWT Green: on-palette and legible. White on green would fall
   below the 4.5:1 contrast floor. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green);
  color: var(--black);
  font-weight: 600; font-size: 15px; line-height: 1;
  letter-spacing: .01em;
  padding: 16px 30px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

.btn--sm { padding: 11px 20px; font-size: 14px; }

.btn--ghost {
  background: transparent; color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.logo { flex: none; }
.logo img { width: 118px; height: 40px; }

.primary-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 28px;
}
.primary-nav a {
  color: var(--white);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease;
}
.primary-nav a:not(.btn):hover { color: var(--green); }
.nav-phone { color: var(--green) !important; }

.nav-toggle {
  margin-left: auto;
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #0c0f11 0%, #14191d 48%, #1d2529 100%);
  color: var(--white);
  padding: 96px 0 104px;
}
.hero::after {
  content: "";
  position: absolute; right: -14%; top: -28%;
  width: 62%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(140, 198, 67, .3) 0%, rgba(140, 198, 67, 0) 68%);
  pointer-events: none;
}
/* Rack-and-rail suggestion, drawn rather than photographed. */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 100% 34px, 168px 100%;
  mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 88%);
  -webkit-mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 88%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid rgba(140, 198, 67, .5);
  border-radius: 100px;
  color: var(--green);
  font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 7.5vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -.025em;
  margin-bottom: .12em;
}
.hero__tagline {
  margin: 0 0 26px;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 300;
  color: var(--green);
  letter-spacing: .01em;
}
.hero__copy { max-width: 620px; }
.hero__copy p { color: rgba(255, 255, 255, .82); font-weight: 300; font-size: 1.06rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ── Facts strip ────────────────────────────────────────────────────────── */
.facts { background: var(--black); color: var(--white); }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .12);
  border-left: 1px solid rgba(255, 255, 255, .12);
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.fact {
  background: var(--black);
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 4px;
}
.fact__num {
  font-size: 1.9rem; font-weight: 600; line-height: 1.1;
  color: var(--green); letter-spacing: -.02em;
}
.fact__plus, .fact__unit { font-size: 1.15rem; font-weight: 400; margin-left: 2px; }
.fact__label {
  font-size: 13px; font-weight: 400; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255, 255, 255, .66);
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section--form { background: var(--surface); border-top: 1px solid var(--line); }

.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  position: relative;
  padding-bottom: 18px;
}
.section__head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 62px; height: 4px; background: var(--green); border-radius: 2px;
}
.section__sub { color: var(--ink-soft); font-size: 1.05rem; font-weight: 300; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 24, 28, .09);
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-bottom: 18px;
  background: rgba(140, 198, 67, .16);
  border-radius: var(--radius);
  color: var(--green-deep);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: .55em; }
.card p { color: var(--ink-soft); font-size: .98rem; font-weight: 300; margin: 0; }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.cta-band { background: var(--dark-2); color: var(--white); padding: 46px 0; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 22px;
}
.cta-band__text { margin: 0; font-size: 1.2rem; font-weight: 300; }

/* ── Form ───────────────────────────────────────────────────────────────── */
.form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.25fr);
  gap: 54px;
  align-items: start;
}
.form-intro h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  position: relative; padding-bottom: 18px;
}
.form-intro h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 62px; height: 4px; background: var(--green); border-radius: 2px;
}
.form-intro > p { color: var(--ink-soft); font-weight: 300; }
.form-intro__list { list-style: none; margin: 26px 0; padding: 0; }
.form-intro__list li {
  position: relative;
  padding: 0 0 0 30px; margin-bottom: 12px;
  color: var(--ink-soft); font-size: .97rem; font-weight: 300;
}
.form-intro__list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.form-intro__call { font-size: .97rem; }
.form-intro__call a { color: var(--green-deep); font-weight: 600; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px 34px;
  box-shadow: 0 10px 30px rgba(20, 24, 28, .06);
}
#leadForm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; }
.field--wide { grid-column: 1 / -1; }

label {
  font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 8px; color: var(--ink);
}
.req { color: var(--green-deep); }

input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  font: inherit; font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfd6dc;
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(140, 198, 67, .25);
}
textarea { resize: vertical; min-height: 140px; }

input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c0392b; }
.err { margin: 7px 0 0; font-size: 13px; color: #c0392b; min-height: 0; }
.err:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: 13px; color: var(--ink-soft); }

.form-status {
  grid-column: 1 / -1; margin: 4px 0 0;
  font-size: .96rem; font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-ok {
  color: #2f6d13;
  background: rgba(140, 198, 67, .14);
  border-left: 3px solid var(--green);
  padding: 14px 16px; border-radius: var(--radius);
}
.form-status.is-error {
  color: #a5281b;
  background: rgba(192, 57, 43, .08);
  border-left: 3px solid #c0392b;
  padding: 14px 16px; border-radius: var(--radius);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: var(--white); padding: 62px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 52px;
}
.footer-col h4 {
  font-size: 15px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 18px; color: var(--white);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, .72);
  font-size: .94rem; font-weight: 300; text-decoration: none;
  transition: color .16s ease;
}
.footer-col a:hover { color: var(--green); }
.footer-blurb {
  margin: 18px 0 14px; max-width: 320px;
  color: rgba(255, 255, 255, .72); font-size: .94rem; font-weight: 300;
}
.footer-phone {
  color: var(--green); font-size: 1.15rem; font-weight: 600; text-decoration: none;
}

.copyright { background: #05070800; border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; }
.copyright__inner {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  justify-content: space-between; align-items: center;
}
.copyright p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.copyright a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.copyright a:hover { color: var(--green); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 10px 24px 22px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }
  .primary-nav .btn { margin-top: 16px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .hero { padding: 64px 0 72px; }
  .section { padding: 62px 0; }
  #leadForm { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 26px 20px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

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