/* =========================================================
   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;
}

html, body{
  scroll-behavior: smooth;
  scroll-padding-top: calc(110px + env(safe-area-inset-top));
}

#quote-panel{
  scroll-margin-top: calc(110px + env(safe-area-inset-top));
}

/* desktop adjustment */
@media (min-width: 900px){
  html, body{ scroll-padding-top: 80px; }
  #quote-panel{ scroll-margin-top: 80px; }
}

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;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   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: 32px 18px 26px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-cta-text{
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 760px;
}

.footer-cta-btn{
  margin: 0 0 8px;
}

.footer-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

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

.footer-links a:hover{
  text-decoration: underline;
}


/* make copyright slightly larger */
.footer-copy{
  color: var(--muted);
  font-size: 12px;
  margin-top: 0;
}

@media (max-width: 640px){
  .footer-inner{
    padding: 26px 16px 22px;
    gap: 9px;
  }

  .footer-cta-text{
    font-size: 14px;
  }
}

/* =========================================================
   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;
}

/* =========================================================
   ESTIMATE PAGE (CLEAN + NO-SCROLL)
   (This REPLACES all previous estimate/wizard CSS)
========================================================= */

/* body class on estimate page */
.est-body{
  height: 100%;
  overflow: hidden;   /* no scroll */
  background: var(--bg);
}

/* 3-row viewport layout */
.est-page{
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* brand-only topbar */
.topbar--estimate{
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner--estimate{
  justify-content: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* reuse brand look, just bigger */
.brand--estimate{
  gap: 12px;
  text-decoration: none;
}

.brand--estimate:hover{ text-decoration: none; }

.brand-logo--estimate{
  width: 36px;
  height: 36px;
}

.brand-name--estimate{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* center the wizard */
.est-main{
  display: grid;
  place-items: center;
  padding: 18px;
}

.est-shell{ width: min(760px, 100%); }

.est-title{
  margin: 0 0 12px 0;
  font-size: 42px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

@media (max-width: 560px){
  .est-title{ font-size: 32px; }
  .brand-name--estimate{ font-size: 18px; }
}

/* wizard card */
.est-form{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.est-header{ margin-bottom: 12px; }

.est-progress{
  height: 8px;
  background: var(--muted2);
  border-radius: 999px;
  overflow: hidden;
}

.est-bar{
  height: 100%;
  width: 25%;
  background: var(--cta);
  border-radius: 999px;
}

.est-meta{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
}

.est-error{
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(190, 30, 60, .25);
  background: rgba(190, 30, 60, .08);
  border-radius: 12px;
  font-size: 14px;
}

.est-panel label{
  display:block;
  margin: 10px 0;
  font-size: 13px;
  color: var(--muted);
}

.est-panel input,
.est-panel select,
.est-panel textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  font-size:16px;
  background:#fff;
  color: var(--ink);
}

.est-panel textarea{ resize: vertical; }


.est-panel textarea::placeholder{
  font-family: inherit;
  font-size:16px;
  color:#9aa0a6;
  opacity:1;
}

.est-tcpa{
  margin-top:12px;
  font-size:10px;
  line-height:1.2;
  color:#6b7280;
}

.est-tcpa a{
  color:#2563eb;
  text-decoration:underline;
  text-underline-offset:2px;
}

.est-row{
  display:grid;
  grid-template-columns: 1fr 140px 140px;
  gap: 10px;
}

@media (max-width: 720px){
  .est-row{ grid-template-columns: 1fr; }
}

.est-actions{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  margin-top: 14px;
}

/* slightly tighter footer on estimate */
.est-page footer .footer-inner{
  padding-top: 16px;
  padding-bottom: 16px;
}

/* =========================================================
   HOMEPAGE QUOTE STRIP
========================================================= */
.quote-strip{
  margin: 14px 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(17,24,39,0.05);
}

@media (min-width: 760px){
  .quote-strip{
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }
}

.quote-strip__title{
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 14px;
}

.quote-strip__form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.quote-strip__form input{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
}

.quote-strip__btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.04);
  background: var(--cta);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
}

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

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

.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;
}

/* =========================================================
   NAVBAR ZIP CTA
========================================================= */
.nav-cta{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.10);
  border: 1px solid rgba(22, 163, 74, 0.18);
}

.nav-cta input{
  width: 84px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.nav-cta input:focus{
  border-color: rgba(22, 163, 74, 0.40);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.nav-cta-btn{
  border: 0;
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
}

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

/* screenreader label helper (if you don't already have it) */
.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;
}

/* Mobile: make it full-width and stack nicely */
@media (max-width: 640px){
  .nav-cta{
    width: 100%;
    justify-content: space-between;
    padding: 8px;
  }
  .nav-cta input{
    width: 40%;
    min-width: 110px;
  }
  .nav-cta-btn{
    width: 58%;
    text-align: center;
  }
}

/* =========================================================
   WEAVE HERO (image + zip form)
   - Mobile: stable 4:3 crop, centered
   - Desktop: 16:10 landscape crop + side-by-side layout
   - Full-bleed inside .card (matches 18px card padding)
========================================================= */

.weave{
  display: grid;
  gap: 18px;

  /* full-bleed inside the padded .card (card padding is 18px) */
  margin: -18px -18px 18px;
  padding: 18px;
}

@media (max-width: 640px){
  .weave{
    margin: -18px -18px 14px;
    padding: 14px;
    gap: 14px;
  }
}

/* LEFT: image card */
.weave-media{
  margin: 0; /* reset default figure margin */

  position: relative;
  overflow: hidden;
  border-radius: 18px;

  background: var(--soft, #f5f5f4);
  border: 1px solid var(--line, #e7e5e4);
  box-shadow: var(--shadow, 0 10px 30px rgba(17,24,39,.06));

  /* Mobile: predictable crop */
  aspect-ratio: 4 / 3;
}

.weave-media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Mobile default crop anchor */
  object-position: center;
}

.weave-panel{
  overflow: hidden;
  border-radius: 18px;

  background: linear-gradient(
    150deg,
    rgba(21,137,64,0.12) 0%,
    #ffffff 70%
  );

  border: 1px solid rgba(21,137,64,0.19);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 24px rgba(17,24,39,.08);

  padding: 14px;
}

.weave-title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;

  line-height: 1.3;
  min-height: 2.6em;   /* reserves space for ~2 lines */

  text-align: center;
}

.weave-form{
  display: grid;
  gap: 10px;
}

.weave-label{
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #4b5563);
}

.weave-row{
  display: grid;
  gap: 10px;
}

.weave-input{
  width: 100%;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 12px;
  padding: 12px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.weave-input::placeholder{
  font-size: 14px;
}

.weave-input:focus{
  border-color: rgba(21,137,64,.45);
  box-shadow: 0 0 0 4px rgba(21,137,64,.12);
}

.weave-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  border-radius: 12px;
  padding: 12px;

  border: 1px solid transparent;
  background: var(--cta, #158940);
  color: #fff;

  font-weight: 800;
  cursor: pointer;
}

.weave-btn:hover{
  filter: brightness(.98);
}

/* Section separator used later */
.weave-sep{
  border: 0;
  border-top: 1px solid var(--line, #e7e5e4);
  margin: 18px 0;
}

/* Desktop: 2-column layout + landscape crop + inline form row */
@media (min-width: 880px){
  .weave{
    grid-template-columns: 1.25fr .75fr;
    gap: 18px;
    align-items: center;
  }

  .weave-media{
    aspect-ratio: 16 / 10;
  }

  /* Desktop crop anchor (your original look) */
  .weave-media img{
    object-position: center 35%;
  }

  .weave-row{
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .weave-btn{
    width: auto;
    padding: 12px 16px;
    white-space: nowrap;
  }
}