/* Nate's Pro Property Management — staging site */

:root {
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --section-bg: #f4f4f4;
  --accent: #111111;
  --accent-dark: #000000;
  --red: #c8102e;
  --red-dark: #a00d25;
  --border: #e2e2e2;
  --radius: 10px;
  --max-width: 1120px;
  --font: "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Oswald", "Source Sans 3", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.logo-text small {
  display: block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--accent-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* Hero */
.hero {
  background: var(--section-bg);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.hero-copy h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero-copy .subhead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.hero-panel svg {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.hero-panel li:first-child {
  border-top: none;
}

.hero-panel li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  color: var(--accent);
}

/* Sections */
section {
  padding: 56px 0;
}

section.alt {
  background: var(--section-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

section.alt .card {
  background: var(--paper);
}

.card h3 {
  margin-bottom: 10px;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.card li {
  margin-bottom: 6px;
}

.card .card-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 10px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
  font-size: 1.1rem;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 52px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #cfcfcf;
  margin-bottom: 24px;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* Simple pages (tenants / contact / privacy) */
.page-hero {
  background: var(--section-bg);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
}

.page-hero h1 {
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 0;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.option-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-card h3 {
  margin-bottom: 0;
}

.option-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  flex-grow: 1;
}

.urgent-note {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: #fbeeee;
  border: 1px solid #e8c9c9;
  color: var(--ink);
}

.urgent-note strong {
  display: block;
  margin-bottom: 6px;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: var(--section-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.contact-info h2 {
  font-size: 1.2rem;
}

.contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.contact-info li:first-child {
  border-top: none;
}

.contact-info a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--accent-dark);
}

form.contact-form {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c4c4c4;
  border-radius: 7px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.required-mark {
  color: var(--accent-dark);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cfcfcf;
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #9a9a9a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sticky mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--accent);
}

.mobile-call-bar a {
  display: block;
  text-align: center;
  color: #fff;
  font-weight: 700;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 1rem;
}

/* 404 page */
.error-page {
  padding: 100px 0;
  text-align: center;
}

/* Icons */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.icon-circle svg {
  width: 24px;
  height: 24px;
}

.icon-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.icon-row .icon-circle {
  margin-bottom: 0;
}

.contact-info .icon-row {
  align-items: center;
}

.contact-info .icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.contact-info .icon-circle svg {
  width: 18px;
  height: 18px;
}

/* Buttons: arrow nudge */
.btn .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover .arrow {
    transform: translateX(4px);
  }
}

/* Image frames */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--section-bg);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .img-frame:hover img {
    transform: scale(1.03);
  }
}

/* Hero media */
.hero-media {
  position: relative;
}

.hero-media .img-frame {
  aspect-ratio: 4 / 5;
  border-radius: 16px 56px 16px 16px;
}

.hero-overlap-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-overlap-card .icon-circle {
  margin-bottom: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--paper);
}

.hero-overlap-card .icon-circle svg {
  width: 18px;
  height: 18px;
}

.hero-overlap-card span.overlap-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

/* Benefit trio */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.benefit-card h3 {
  font-size: 1.1rem;
}

.benefit-card p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

section.alt .review-card {
  background: var(--paper);
}

.stars {
  color: #c8952c;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-quote {
  margin: 0 0 16px;
  flex-grow: 1;
}

.review-attrib {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.tenant-review-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 44px;
}

/* About section media + watermark */
.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media .img-frame {
  aspect-ratio: 4 / 5;
  position: relative;
  z-index: 1;
}

.about-watermark {
  position: absolute;
  top: -8%;
  right: -12%;
  width: 65%;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

/* Maintenance / tenants banner strip images */
.wide-frame {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}

.wide-frame .img-frame {
  aspect-ratio: 16 / 7;
}

.page-hero-media {
  margin-top: 28px;
}

.page-hero-media .img-frame {
  aspect-ratio: 16 / 7;
  border-radius: 16px 48px 16px 16px;
}

/* Footer social */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #cfcfcf;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-social:hover {
  color: #fff;
}

.footer-social .icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  margin-bottom: 0;
}

.footer-social .icon-circle svg {
  width: 16px;
  height: 16px;
}

.footer-logo-chip {
  display: inline-flex;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 12px;
}

.footer-logo-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trust-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cfcfcf;
  margin-top: 4px;
}

.trust-line svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  margin-top: 22px;
}

.trust-strip .icon-row {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.trust-strip .icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.trust-strip .icon-circle svg {
  width: 16px;
  height: 16px;
}

/* Scroll reveal (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  .js .reveal.in-view {
    opacity: 1;
    transform: none;
  }
}

/* Card hover lift */
@media (prefers-reduced-motion: no-preference) {
  .card, .option-card, .review-card, .benefit-card {
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  }
  .card:hover, .option-card:hover, .review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }
}

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy .eyebrow,
  .js .hero-copy h1,
  .js .hero-copy .subhead,
  .js .hero-copy .hero-actions {
    opacity: 0;
    transform: translateY(10px);
    animation: hero-in 0.6s ease-out forwards;
  }
  .js .hero-copy .eyebrow { animation-delay: 0.05s; }
  .js .hero-copy h1 { animation-delay: 0.15s; }
  .js .hero-copy .subhead { animation-delay: 0.28s; }
  .js .hero-copy .hero-actions { animation-delay: 0.4s; }
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Mobile */
@media (max-width: 860px) {
  .main-nav ul {
    display: none;
  }
  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
  }
  .main-nav.open ul li {
    padding: 10px 0;
    border-top: 1px solid var(--border);
  }
  .main-nav.open ul li:first-child {
    border-top: none;
  }
  .main-nav {
    position: static;
  }
  .nav-toggle {
    display: inline-block;
  }
  .header-actions .phone-link {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 1.9rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .option-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .benefit-grid,
  .review-grid,
  .tenant-review-strip {
    grid-template-columns: 1fr;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-media {
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-media .img-frame {
    aspect-ratio: 16 / 10;
  }
  .hero-overlap-card {
    position: static;
    margin-top: 12px;
  }
  .wide-frame .img-frame,
  .page-hero-media .img-frame {
    aspect-ratio: 4 / 3;
  }
  body {
    padding-bottom: 58px;
  }
  body.no-call-bar {
    padding-bottom: 0;
  }
  .mobile-call-bar {
    display: block;
  }
  body.no-call-bar .mobile-call-bar {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 1.65rem;
  }
  section {
    padding: 42px 0;
  }
}


/* ---------- Colour scheme: black, white and greys; red used sparingly as an outline/highlight ---------- */
a:hover, .main-nav a:hover, .contact-info a:hover { color: var(--red); }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline-color: var(--red); }
.btn-primary:hover { background: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--red); }
.hero-copy .eyebrow, .required-mark, .stars { color: var(--red); }
.hero-panel li svg { color: var(--red); }
.icon-circle, .hero-overlap-card .icon-circle { background: var(--paper); border: 1.5px solid var(--red); color: var(--ink); }
.footer-social .icon-circle { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.step-num { background: var(--paper); color: var(--red); border: 2px solid var(--red); }
.section-head h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--red); margin: 12px auto 0; border-radius: 2px; }
.hero-overlap-card { border-left: 3px solid var(--red); }
.card, .option-card, .review-card { transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out; }
.card:hover, .option-card:hover, .review-card:hover { border-color: var(--red); }
.cta-band { border-top: 3px solid var(--red); }
.mobile-call-bar { border-top: 3px solid var(--red); }

/* ---------- "Text with Nate" chat widget (public/js/chat.js) ---------- */
/* Black, white and grey; red only as outlines and small highlights. */
.nwc-root [hidden] { display: none !important; }

.nwc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nwc-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 160;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.nwc-launcher:hover { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--red), 0 8px 24px rgba(0, 0, 0, 0.22); }
.nwc-launcher svg { flex-shrink: 0; }

.nwc-dot {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--red);
}

.nwc-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 170;
  width: 370px;
  max-width: calc(100vw - 24px);
  height: min(580px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-size: 1rem;
}
.nwc-panel[data-view="start"] { height: auto; max-height: calc(100vh - 40px); }
/* First screen: the form sits right under the intro rather than at the foot. */
.nwc-panel[data-view="start"] .nwc-body { flex: 0 0 auto; overflow: visible; padding-bottom: 4px; }
.nwc-panel[data-view="start"] .nwc-form { border-top: 0; padding-top: 6px; }
.nwc-panel:focus { outline: none; }

.nwc-panel p { margin: 0; }

.nwc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px 18px;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--red);
  flex-shrink: 0;
}
.nwc-panel .nwc-head h2 {
  margin: 0 0 2px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.2;
}
.nwc-head p { color: #cfcfcf; font-size: 0.9rem; }
.nwc-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -4px -2px 0 0;
  padding: 0;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
}
.nwc-close:hover { border-color: var(--red); }
.nwc-head .nwc-close:focus-visible { outline-color: #fff; }

.nwc-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
}
.nwc-intro { color: var(--ink-soft); font-size: 0.97rem; }
.nwc-help { color: var(--ink-soft); font-size: 0.93rem; }

.nwc-messages { display: flex; flex-direction: column; gap: 8px; }
.nwc-messages:empty { display: none; }
.nwc-msg {
  max-width: 86%;
  padding: 9px 13px;
  font-size: 0.97rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nwc-msg-visitor {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-radius: 12px 12px 3px 12px;
}
.nwc-msg-nate {
  align-self: flex-start;
  background: var(--section-bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 12px 12px 12px 3px;
}

.nwc-note {
  padding: 12px 14px;
  background: var(--section-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}
.nwc-note p { margin-bottom: 10px; }

.nwc-h3 {
  margin: 0 0 2px;
  font-size: 1.1rem;
}
.nwc-done-text { color: var(--ink-soft); margin-bottom: 14px; }
.nwc-done-text a { color: var(--ink); font-weight: 700; }
.nwc-done { margin-top: 6px; }
.nwc-done .nwc-h3 { margin-bottom: 6px; }
.nwc-handoff { display: flex; flex-direction: column; gap: 12px; }

.nwc-form {
  flex-shrink: 0;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.nwc-field { margin-bottom: 10px; }
.nwc-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nwc-panel input[type="text"],
.nwc-panel input[type="tel"],
.nwc-panel textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c4c4c4;
  border-radius: 7px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
  background: #fff;
  color: var(--ink);
}
.nwc-panel textarea { resize: none; display: block; }
.nwc-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nwc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.nwc-check input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.nwc-check label {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink);
}

.nwc-reply-row { display: flex; gap: 8px; align-items: flex-end; }
.nwc-reply-row textarea { flex: 1 1 auto; min-width: 0; }

.nwc-btn {
  display: inline-block;
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.nwc-btn:hover { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--red); }
.nwc-btn[disabled] { opacity: 0.55; cursor: default; box-shadow: none; }
.nwc-btn-block { width: 100%; }
.nwc-btn-line { background: transparent; color: var(--ink); }
.nwc-btn-line:hover { background: var(--ink); color: #fff; box-shadow: none; }
.nwc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.nwc-error {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--red);
  border-radius: 7px;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
}

.nwc-foot {
  flex-shrink: 0;
  padding: 10px 18px 12px;
  text-align: center;
  background: var(--section-bg);
  border-top: 1px solid var(--border);
}
.nwc-link {
  padding: 6px 4px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}
.nwc-link:hover { color: var(--red); }

@media (prefers-reduced-motion: no-preference) {
  .nwc-panel { animation: nwc-in 0.18s ease-out; }
  .nwc-msg { animation: nwc-in 0.18s ease-out; }
}
@keyframes nwc-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Phones: the launcher sits above the sticky call bar; the open panel is full screen. */
@media (max-width: 860px) {
  .nwc-launcher { right: 12px; bottom: 72px; }
  body.no-call-bar .nwc-launcher { bottom: 16px; }
  .nwc-panel,
  .nwc-panel[data-view="start"] {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body.nwc-lock { overflow: hidden; }
  .nwc-head { padding-top: 12px; }
}

@media (max-width: 380px) {
  .nwc-body { padding: 14px; }
  .nwc-form, .nwc-foot { padding-left: 14px; padding-right: 14px; }
  .nwc-launcher { padding: 12px 14px; }
}
