/* ============================================================
   NICKNISH LANDSCAPING — WEBSITE STYLES
   Mobile-First | Clean | Accessible | High Contrast
   ============================================================ */

/* === CUSTOM PROPERTIES === */
:root {
  --green-950: #0d1f16;
  --green-900: #1b4332;
  --green-800: #2d6a4f;
  --green-700: #40916c;
  --green-600: #52b788;
  --green-500: #74c69d;
  --green-400: #95d5b2;
  --green-300: #b7e4c7;
  --green-200: #d8f3dc;
  --green-100: #eaf7ee;
  --green-50: #f0faf3;

  --earth-700: #6d4c41;
  --earth-500: #a1887f;

  --text-primary: #1a2e1f;
  --text-secondary: #3d5a3e;
  --text-muted: #6b8f6b;

  --bg-white: #ffffff;
  --bg-offwhite: #fafbf8;
  --bg-light: #f0f4f0;
  --border: #dde8de;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .08);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .12);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, .15);

  --max-w: 1100px;
  --nav-h: 64px;
  --pad: 20px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 250ms var(--ease);
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-offwhite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-800);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--green-700);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--green-900);
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  max-width: 680px;
}

.lead {
  font-size: 1.15rem;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section {
  padding: 64px 0;
}

.section-hd {
  text-align: center;
  margin-bottom: 44px;
}

.section-hd h2 {
  margin-bottom: 10px;
}

.section-hd p {
  margin-inline: auto;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  transition: all var(--t-base);
}

.btn-primary {
  background: var(--green-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-800);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--green-900);
  border: 2px solid var(--green-900);
}

.btn-outline:hover {
  background: var(--green-50);
  color: var(--green-900);
}

.btn-chat {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-md);
  font-size: 1.05rem;
  padding: 16px 32px;
}

.btn-chat:hover {
  background: var(--green-600);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: .9rem;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--green-800);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--green-900);
  font-size: 1.5rem;
}

.nav-toggle:hover {
  background: var(--bg-light);
}

/* Mobile nav overlay */
.nav-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #fff;
  flex-direction: column;
  padding: 100px var(--pad) 40px;
}

.nav-menu.open {
  display: flex;
}

.nav-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-900);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-menu .btn-chat {
  margin-top: 24px;
  justify-content: center;
}

@media (min-width:768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: transparent;
  }

  .nav-menu a {
    font-size: .95rem;
    padding: 0;
    border-bottom: none;
  }

  .nav-menu .btn-chat {
    margin-top: 0;
    padding: 10px 22px;
    font-size: .95rem;
  }
}

/* === HERO === */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, rgba(27, 67, 50, 0.85) 0%, rgba(45, 106, 79, 0.75) 55%, rgba(64, 145, 108, 0.65) 100%),
    url('../img/Other/Homepage background.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 60%, rgba(255, 255, 255, .06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(255, 255, 255, .04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 660px;
  padding-inline: var(--pad);
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.hero-sub {
  color: #fff;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  margin-bottom: 32px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  max-width: 680px;
  margin-inline: auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--green-200);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: .88rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@media (min-width:480px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-hero-pri {
  background: #fff;
  color: var(--green-900);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .2);
  font-size: 1.1rem;
  padding: 18px 36px;
}

.btn-hero-pri:hover {
  background: var(--green-100);
  color: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

.btn-hero-sec {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .5);
  padding: 16px 32px;
}

.btn-hero-sec:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* === TRUST PILLARS === */
.trust-section {
  background: var(--bg-white);
  padding: 56px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.trust-card {
  text-align: center;
  padding: 32px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-offwhite);
  border: 1px solid var(--border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.trust-card h3 {
  margin-bottom: 8px;
}

.trust-card p {
  margin-inline: auto;
  font-size: .95rem;
}

/* === SEASONAL SERVICES === */
.seasons-section {
  background: var(--bg-offwhite);
}

.season-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.season-tab {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: .92rem;
  font-weight: 600;
  background: var(--bg-white);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.season-tab:hover {
  border-color: var(--green-400);
}

.season-tab.active {
  background: var(--green-900);
  color: #fff;
  border-color: var(--green-900);
}

.season-panel {
  display: none;
}

.season-panel.active {
  display: block;
}

.season-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .season-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }
}

@media (min-width: 900px) {
  .season-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.season-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
  position: relative;
}

.season-list li::before {
  content: '✓';
  color: var(--green-700);
  font-weight: 700;
  flex-shrink: 0;
}

.premium-featured,
.best-value-featured {
  font-weight: 600;
  color: var(--green-900) !important;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-left: 8px;
}

.badge-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* === PROJECT CARDS === */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width:480px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.project-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base), box-shadow var(--t-base);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-img {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.project-img .img-before,
.project-img .img-after {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.project-img .img-before {
  z-index: 1;
  transition: opacity .45s ease;
}

.project-card:hover .img-before {
  opacity: 0;
}

.img-lbl {
  position: absolute;
  z-index: 2;
  padding: 4px 10px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: var(--radius-xs);
  transition: opacity .3s ease;
  pointer-events: none;
}

.img-lbl-before {
  top: 8px;
  left: 8px;
}

.img-lbl-after {
  top: 8px;
  right: 8px;
  opacity: 0;
}

.project-card:hover .img-lbl-before {
  opacity: 0;
}

.project-card:hover .img-lbl-after {
  opacity: 1;
}

@media (hover: none) {
  .project-img .img-before {
    animation: crossfadeLoop 6s infinite;
  }

  .img-lbl-before {
    animation: crossfadeLoop 6s infinite !important;
  }

  .img-lbl-after {
    animation: crossfadeLoopReverse 6s infinite !important;
  }
}

@keyframes crossfadeLoop {

  0%,
  40%,
  100% {
    opacity: 1;
  }

  50%,
  90% {
    opacity: 0;
  }
}

@keyframes crossfadeLoopReverse {

  0%,
  40%,
  100% {
    opacity: 0;
  }

  50%,
  90% {
    opacity: 1;
  }
}

.project-info {
  padding: 16px;
}

.project-nb {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.project-info h3 {
  margin-bottom: 4px;
  color: var(--green-900);
  font-size: 1.05rem;
}

.project-info p {
  font-size: .88rem;
  margin-bottom: 6px;
}

.project-meta {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* === PROJECT MODAL === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: var(--pad);
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  transition: background var(--t-fast);
}

.modal-close:hover {
  background: rgba(0, 0, 0, .7);
}

.modal-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-img-lbl {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.modal-body {
  padding: 24px;
}

.modal-body .project-nb {
  margin-bottom: 8px;
}

.modal-body h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.modal-body p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 100%;
}

@media (max-width:480px) {
  .modal-imgs {
    grid-template-columns: 1fr;
  }

  .modal-img {
    height: 180px;
  }
}

/* === MAP === */
.map-wrap {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

@media (min-width:768px) {
  .map-wrap {
    height: 460px;
  }
}

.leaflet-container {
  font-family: inherit;
}

/* === FILTERS === */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 600;
  transition: all var(--t-fast);
}

.filter-btn:hover {
  border-color: var(--green-500);
  color: var(--green-800);
}

.filter-btn.active {
  background: var(--green-900);
  color: #fff;
  border-color: var(--green-900);
}

/* === REVIEWS === */
.reviews-section {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--bg-white) 100%);
}

.reviews-hd {
  text-align: center;
  margin-bottom: 36px;
}

.star-row {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 8px;
}

.star {
  color: #f59e0b;
  font-size: 1.5rem;
}

.review-count {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.review-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 740px;
  margin-inline: auto;
  margin-bottom: 36px;
}

@media (min-width:580px) {
  .review-quotes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.review-card .star-row {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.review-card .star {
  font-size: 1rem;
}

.review-card blockquote {
  font-size: .95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.55;
}

.review-author {
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-800);
}

.btn-g-review {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--bg-white);
  border: 2px solid #dadce0;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
  text-decoration: none;
}

.btn-g-review:hover {
  box-shadow: var(--shadow-md);
  border-color: #bbb;
  color: var(--text-primary);
  transform: translateY(-1px);
}

.g-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
}

/* === NEIGHBORHOODS STRIP === */
.nb-strip {
  background: var(--green-900);
  padding: 52px 0;
}

.nb-strip .section-hd h2 {
  color: #fff;
}

.nb-strip .section-hd p {
  color: var(--green-300);
}

.nb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.nb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--green-900);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.nb-link:hover {
  background: var(--green-50);
  border-color: var(--green-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Dark theme overrides (e.g., homepage strip) */
.nb-strip .nb-link {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  box-shadow: none;
}

.nb-strip .nb-link:hover {
  background: rgba(255, 255, 255, .2);
  border-color: #fff;
}

/* === FOOTER === */
.site-footer {
  background: var(--green-950);
  color: var(--green-300);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width:600px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--green-400);
  font-size: .9rem;
  padding: 4px 0;
  transition: color var(--t-fast);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  font-size: .9rem;
  color: var(--green-400);
  line-height: 1.6;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  margin-top: 22px;
  font-size: .82rem;
  color: var(--green-400);
  text-align: center;
}

/* === CHATBOT WIDGET === */
.chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  transition: all var(--t-base);
  border: none;
  cursor: pointer;
}

.chat-btn:hover {
  background: var(--green-700);
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
}

.chat-btn .icon-open {
  display: block;
}

.chat-btn .icon-close {
  display: none;
}

.chat-btn.open .icon-open {
  display: none;
}

.chat-btn.open .icon-close {
  display: block;
}

.chat-btn::before {
  content: 'Get Instant Quote';
  position: absolute;
  right: 88px;
  background: var(--green-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.chat-btn.open::before {
  opacity: 0;
  transform: translateX(20px);
}

.chat-btn::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse 2s infinite;
}

.chat-btn.notified::after,
.chat-btn.open::after {
  display: none;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.3);
    opacity: .7
  }
}

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: calc(100% - 48px);
  max-width: 380px;
  height: 520px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-panel.open {
  display: flex;
}

@media (max-width:480px) {
  .chat-panel {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    /* slightly taller on mobile */
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .chat-btn {
    top: 80px;
    right: 20px;
    bottom: auto;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  /* Move close button to top-right when panel is open to avoid covering 'send' */
  .chat-btn.open {
    top: 12px;
    right: 12px;
    bottom: auto;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    background: #fff;
    color: var(--green-900);
    border: none;
    box-shadow: var(--shadow-md);
    opacity: 1;
  }
}

.chat-hd {
  background: var(--green-900);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width:480px) {
  .chat-hd {
    padding-right: 60px;
    /* Room for the close button at top-right */
  }
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chat-hd-info h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 2px;
}

.chat-hd-info span {
  font-size: .77rem;
  color: var(--green-300);
  display: flex;
  align-items: center;
  gap: 4px;
}

.online-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
}

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-msg.bot {
  background: var(--bg-light);
  color: var(--text-primary);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--green-800);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
}

.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
  width: fit-content;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: .2s
}

.typing-dot:nth-child(3) {
  animation-delay: .4s
}

@keyframes bounce {

  0%,
  60%,
  100% {
    transform: translateY(0)
  }

  30% {
    transform: translateY(-6px)
  }
}

.chat-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 8px;
}

.chat-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: var(--bg-white);
  border: 1.5px solid var(--green-600);
  border-radius: var(--radius-full);
  color: var(--green-800);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}

.chat-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.chat-opt:hover {
  background: var(--green-100);
  border-color: var(--green-700);
}

.chat-opt.sel {
  background: var(--green-800);
  color: #fff;
  border-color: var(--green-800);
}

.chat-continue {
  padding: 8px 20px;
  background: var(--green-800);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: .84rem;
  font-weight: 600;
  margin: 8px 16px 0;
  align-self: flex-start;
  display: none;
  transition: background var(--t-fast);
}

.chat-continue:hover {
  background: var(--green-700);
}

.chat-continue.show {
  display: block;
}

.chat-loc-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--green-50);
  border: 1.5px solid var(--green-300);
  border-radius: var(--radius-full);
  color: var(--green-800);
  font-size: .82rem;
  font-weight: 600;
  margin: 6px 16px 0;
  width: fit-content;
  transition: all var(--t-fast);
}

.chat-loc-btn:hover {
  background: var(--green-100);
  border-color: var(--green-500);
}

.chat-loc-btn.hidden {
  display: none !important;
}

.chat-input-row {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  min-width: 0;
  /* Important: prevents parent overflow in flexbox */
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 1rem;
  /* 16px minimum to prevent iOS auto-zoom */
  color: var(--text-primary);
  background: var(--bg-offwhite);
  outline: none;
  transition: border-color var(--t-fast);
}

.chat-input:focus {
  border-color: var(--green-600);
  background: #fff;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-input:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--t-fast);
}

.chat-send:hover {
  background: var(--green-700);
}

.chat-send:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.chat-summary {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: .85rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 2px 0;
}

.chat-summary strong {
  color: var(--green-900);
}

.chat-final {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
  margin-top: 4px;
}

.chat-final .btn {
  justify-content: center;
  font-size: .88rem;
  padding: 10px 20px;
}

/* === NEIGHBORHOOD PAGES === */
.nb-hero {
  position: relative;
  padding: 140px 0 100px;
  background-color: var(--green-950);
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/Other/Homepage background.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.nb-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 20px;
  letter-spacing: -.03em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nb-hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-inline: auto;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nb-know {
  background: var(--bg-white);
  padding: 40px 0;
}

.nb-know-inner {
  background: var(--green-50);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-200);
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.local-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green-800);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 24px;
}

.nb-know blockquote {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--green-900);
  font-weight: 500;
  line-height: 1.6;
}

.nb-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.nb-svc-item {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.nb-svc-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
}

.nb-svc-icon {
  display: block;
  margin-bottom: 24px;
}

.nb-svc-icon img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  mix-blend-mode: multiply;
  transition: transform 0.4s var(--ease);
}

.nb-svc-item:hover .nb-svc-icon img {
  transform: scale(1.1) rotate(2deg);
}

.nb-svc-item h4 {
  margin-bottom: 12px;
  color: var(--green-900);
}

.nb-svc-item p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.nb-cta {
  background: var(--green-900);
  padding: 100px 0;
  color: #fff;
  text-align: center;
}

.nb-cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.nb-cta p {
  font-size: 1.15rem;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 40px;
}

/* === BRAND INTEGRATION === */
.logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  width: 60%;
  max-width: 500px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.site-footer {
  position: relative;
  overflow: hidden;
}

.logo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 60px 0;
}

.logo-divider::before,
.logo-divider::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}

.divider-icon {
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

/* Custom Marker Styling */
.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  transition: transform var(--t-fast);
}

.custom-marker:hover {
  transform: scale(1.15);
  z-index: 1000 !important;
}

.marker-pin {
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border: 2px solid var(--green-600);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.marker-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pin-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8em;
  height: 1.8em;
  background: var(--bg-white);
  border: 1.5px solid var(--green-600);
  border-radius: var(--radius-full);
  padding: 3px;
  vertical-align: middle;
  object-fit: contain;
  margin-right: 8px;
  box-shadow: var(--shadow-sm);
}

/* Fix for chatbot icons where they shouldn't have their own circular badge */
.chat-btn .pin-logo,
.chat-avatar .pin-logo {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin-right: 0 !important;
}

.site-footer .pin-logo {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* === SCROLL FADE-IN === */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* === UTILITY === */
.text-center {
  text-align: center
}

.mt-6 {
  margin-top: 24px
}

.mt-8 {
  margin-top: 32px
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}