/* ==========================================================================
   NetNextDoor — Stylesheet
   Brand colours: green #4F8063 (primary), sage/dark green accents on white
   Note: --blue variables are kept for minimal markup churn but now hold the
   brand green, replacing the retired blue accent.
   ========================================================================== */

:root {
  --blue: #4f8063;
  --blue-dark: #385c48;
  --blue-light: #eef4f0;
  --green: #4f8063;
  --green-dark: #385c48;
  --green-light: #eef4f0;
  --cream: #faf6f0;
  --cream-dark: #f1eade;
  --ink: #22302a;
  --ink-soft: #55655d;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 40px -20px rgba(34, 48, 42, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(34, 48, 42, 0.18);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--green-dark);
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

a {
  color: inherit;
}

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

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

.eyebrow {
  display: inline-block;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(79, 128, 99, 0.55);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green);
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(79, 128, 99, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 34px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(79, 128, 99, 0.12), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(56, 92, 72, 0.16), transparent 55%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.4em;
}

.hero h1 span {
  color: var(--blue);
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-trust div {
  display: flex;
  flex-direction: column;
}

.hero-trust strong {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.5rem;
  color: var(--green-dark);
}

.hero-trust span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 48px;
  border: 1px solid rgba(79, 128, 99, 0.12);
}

.hero-visual-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
}

.hero-visual-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.hero-visual-badge .dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-visual-badge strong {
  display: block;
  font-family: "Baloo 2", sans-serif;
  color: var(--blue-dark);
}

.hero-visual-badge span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Section shared ---------- */

section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: 2.1rem;
}

.section-alt {
  background: var(--white);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(79, 128, 99, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -18px rgba(34, 48, 42, 0.28);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
  color: var(--white);
}

.service-card:nth-child(1) .service-icon { background: var(--blue); }
.service-card:nth-child(2) .service-icon { background: var(--green-dark); }
.service-card:nth-child(3) .service-icon { background: #e07a3f; }

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

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

/* ---------- About / family feel ---------- */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-card {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.about-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(56, 92, 72, 0.25);
  right: -70px;
  bottom: -70px;
}

.about-card h3 {
  color: var(--white);
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
}

.about-card p {
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  z-index: 1;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.about-values div {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.about-copy .eyebrow {
  margin-bottom: 18px;
}

.about-copy h2 {
  font-size: 2rem;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step .step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
}

.step h3 {
  font-size: 1.1rem;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  border: 1px solid rgba(79, 128, 99, 0.14);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  border: 2px solid var(--blue);
  transform: translateY(-10px);
}

.pricing-card .price {
  font-family: "Baloo 2", sans-serif;
  font-size: 2.2rem;
  color: var(--green-dark);
  margin: 8px 0 4px;
}

.pricing-card .price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex-grow: 1;
}

.pricing-card ul li {
  padding: 8px 0;
  border-top: 1px solid var(--cream-dark);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.pricing-card ul li:first-child {
  border-top: none;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Testimonial / referral banner ---------- */

.banner {
  background: linear-gradient(120deg, var(--blue) 0%, #79a888 100%);
  border-radius: var(--radius-lg);
  padding: 52px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-soft);
}

.banner h2 {
  color: var(--white);
  font-size: 1.8rem;
}

.banner p {
  color: rgba(255, 255, 255, 0.9);
}

.banner .btn-primary {
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: none;
}

.banner .btn-primary:hover {
  background: var(--cream);
}

/* ---------- Contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info .eyebrow {
  margin-bottom: 18px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.3rem;
  color: var(--green-dark);
  text-decoration: none;
  margin: 18px 0 28px;
}

.contact-email .service-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  margin-bottom: 0;
  font-size: 1.2rem;
  border-radius: 12px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(79, 128, 99, 0.15);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-list li:first-child {
  border-top: none;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(79, 128, 99, 0.12);
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79, 128, 99, 0.25);
  background: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 28px;
}

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

.footer-logo img {
  height: 30px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container,
  .about,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .services-grid,
  .pricing-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .main-nav,
  .header-actions .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-card);
    padding: 20px 24px;
  }

  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    gap: 18px;
  }

  .hero {
    padding: 60px 0 70px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .services-grid,
  .pricing-grid,
  .steps,
  .about-values,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  section {
    padding: 64px 0;
  }

  .banner {
    padding: 36px 24px;
  }

  .contact-form {
    padding: 26px;
  }
}
