/* =========================================================
   CSS VARIABLES
========================================================= */
:root {
  --bg: #f7faf7;
  --surface: #fff;
  --ink: #163225;
  --muted: #53635a;
  --line: #dfe7df;
  --soft: #eef5ef;

  --cta: #0f1f3d;
  --cta2: #16294f;
  --accent-green: #22c55e;
  --accent-blue: #5ec9d8;

  --max: 980px;
  --radius: 8px;

  --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(255, 255, 255, 0.94);
  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;
  text-decoration: none;
  color: #0f1f3d;
}

.brand-accent {
  color: var(--accent-green);
}

.brand-accent-word {
  color: var(--accent-blue);
}

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

.brand-wrap span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  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: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 18px rgba(15, 31, 61, 0.22);
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: none;
  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;
  overflow-wrap: anywhere;
}

.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: 16px 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.city-grid a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  font-weight: 700;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.city-grid a:hover {
  border-color: var(--cta);
  box-shadow: 0 6px 16px rgba(15, 31, 61, 0.10);
}

/* =========================================================
   LOCATION BAND (full-bleed section, e.g. city/state grid)
========================================================= */
.location-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 44px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  text-align: center;
}

.location-band h2 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.location-band .muted {
  margin: 0 auto;
  max-width: 60ch;
  font-size: 14px;
}

.location-band .city-grid {
  max-width: var(--max);
  margin: 24px auto 0;
  text-align: left;
}

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

.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 18px 32px;
}

.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand-col{
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.brand--footer{
  gap: 10px;
}

.brand-logo--footer{
  width: 30px;
  height: 30px;
}

.brand-name--footer{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.footer-tagline{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-legal-col{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-heading{
  margin: 0 0 2px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.footer-legal-col a{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.footer-divider{
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0 20px;
}

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

.footer-disclaimer{
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

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

  .footer-top{
    gap: 20px;
  }
}

/* =========================================================
   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(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: var(--accent-green);
  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{
  min-height: 100%;
  background: var(--bg);
}

/* body class on standalone pages (privacy, terms) */
.standalone-body{
  background: var(--bg);
}

/* 3-row viewport layout */
.est-page{
  min-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: 16px; }
}

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

.est-body .est-page footer{
  margin-top: 48px;
}

/* =========================================================
   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(15, 31, 61, 0.22);
}

.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(15, 31, 61, 0.06);
  border: 1px solid rgba(15, 31, 61, 0.22);
}

.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(15, 31, 61, 0.40);
  box-shadow: 0 0 0 3px rgba(15, 31, 61, 0.10);
}

.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(15, 31, 61, 0.22);
}

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

/* =========================================================
   PHOTO HERO (full-bleed background photo + centered search pill)
========================================================= */
.photo-hero{
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.photo-hero-media{
  position: absolute;
  inset: 0;
}

.photo-hero-media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.photo-hero-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,31,61,.55) 0%,
    rgba(15,31,61,.72) 100%
  );
}

.photo-hero-content{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 18px;
  text-align: center;
}

.photo-hero h1{
  margin: 0 0 14px;
  color: #fff;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.photo-hero-sub{
  margin: 0 0 28px;
  color: #e6ebf2;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 640px){
  .photo-hero{ min-height: 420px; }
  .photo-hero-content{ padding: 40px 18px; }
  .photo-hero h1{ font-size: 30px; }
  .photo-hero-sub{ font-size: 14px; margin-bottom: 22px; }
}

/* search pill (ZIP input + submit) */
.search-pill{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.search-pill-icon{
  padding-left: 10px;
  color: var(--muted);
  font-size: 15px;
}

.search-pill-input{
  border: 0;
  outline: none;
  padding: 12px 8px;
  font-size: 15px;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}

.search-pill-btn{
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 560px){
  .search-pill{
    grid-template-columns: auto 1fr;
  }
  .search-pill-btn{
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* =========================================================
   SPLIT SECTION (2-col: text + image, or text + bullet list)
========================================================= */
.split-section{
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 36px 0;
}

.split-section h2{
  margin-top: 0;
  font-size: 24px;
}

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

.split-section li{
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14px;
}

.split-section li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-green);
  font-weight: 900;
}

.trust-split-img{
  margin: 0;
}

@media (min-width: 760px){
  .split-section{
    grid-template-columns: 1fr 1fr;
  }

  .trust-split-img{
    max-width: 100%;
  }
}

/* =========================================================
   TRUST BAND (3-step "how it works")
========================================================= */
.trust-band{
  display: grid;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 760px){
  .trust-band{ grid-template-columns: repeat(3, 1fr); }
}

.trust-step{
  text-align: center;
}

.trust-step span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
}

.trust-step strong{
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.trust-step p{
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* =========================================================
   FEATURE GRID (service categories)
========================================================= */
.feature-grid{
  display: grid;
  gap: 14px;
  padding: 20px 0;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px){
  .feature-grid{ grid-template-columns: repeat(4, 1fr); }
}

.feature-grid article{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.feature-grid h2{
  margin: 0 0 6px;
  font-size: 15px;
}

.feature-grid p{
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* =========================================================
   ARTICLE STRIP
========================================================= */
.article-strip{
  display: grid;
  gap: 14px;
  padding: 20px 0;
}

@media (min-width: 760px){
  .article-strip{ grid-template-columns: repeat(3, 1fr); }
}

.article-strip article{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.article-strip span{
  color: var(--muted);
  font-size: 12px;
}

.article-strip h2{
  margin: 6px 0;
  font-size: 15px;
}

.article-strip p{
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* =========================================================
   FAQ
========================================================= */
.faq-block{
  padding: 20px 0 36px;
}

.faq-block h2{
  font-size: 24px;
  margin-top: 0;
}

.faq-block details{
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq-block summary{
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.faq-block details p{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
