:root {
  --green: #2d8f4e;
  --green-dark: #1f6b38;
  --green-light: #e8f5ec;
  --charcoal: #1c1f24;
  --charcoal-soft: #2a2f36;
  --text: #3d4349;
  --text-light: #6b7280;
  --white: #ffffff;
  --cream: #f8f9f7;
  --border: #e2e8e4;
  --shadow: 0 4px 24px rgba(28, 31, 36, 0.08);
  --shadow-lg: 0 12px 40px rgba(28, 31, 36, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  color: var(--charcoal);
  line-height: 1.2;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h1 em {
  font-style: normal;
  color: var(--green);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header p:last-child {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 2rem;
}

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

.logo-img {
  height: 110px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--green-dark) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(45, 143, 78, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-sub {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green);
  font-style: italic;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 999px;
}

.hero-photos {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: end;
}

.hero-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

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

.hero-photo-primary {
  min-height: 340px;
}

.hero-photo-primary img {
  min-height: 340px;
}

.hero-photo-secondary {
  transform: translateY(1.5rem);
}

.hero-photo figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--green-dark);
  background: var(--green-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

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

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

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

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

.btn-light {
  background: var(--white);
  color: var(--green-dark);
  flex-shrink: 0;
}

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

.btn-full {
  width: 100%;
}

/* Stats bar */
.stats-bar {
  background: var(--charcoal);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.feature-card .card-icon {
  width: 48px;
  height: 48px;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Split section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.value-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.value-card h3 {
  margin-bottom: 0.35rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step {
  padding: 1.5rem;
  border-left: 3px solid var(--green);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.resident-flow,
.customer-flow {
  background: var(--charcoal);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.resident-flow h3,
.customer-flow h3 {
  color: var(--white);
  margin-bottom: 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.flow-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.flow-item strong {
  color: var(--white);
}

.flow-item span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 300;
}

/* Machines */
.machine-dim {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.machine-card-photo {
  padding: 0;
  overflow: hidden;
}

.machine-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}

.machine-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machine-card-body {
  padding: 1.75rem;
}

.machine-card p:last-child {
  color: var(--text-light);
  font-size: 0.95rem;
}

.products-strip {
  margin-top: 2.5rem;
  text-align: center;
}

.products-strip h3 {
  margin-bottom: 1.25rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tag-list li {
  padding: 0.5rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.location-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.industry-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green-light);
}

.industry-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.industry-list li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding-left: 1.1rem;
  position: relative;
}

.industry-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* CTA Banner */
.cta-banner {
  padding: 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
}

.cta-banner-inner h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-banner-inner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: color 0.2s;
}

a.contact-link:hover {
  color: var(--green);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.optional {
  font-weight: 400;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 143, 78, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  background: var(--green-light);
  color: var(--green-dark);
}

.form-status.error {
  background: #fdecea;
  color: #9b2c2c;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
  background: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-photos {
    order: -1;
    grid-template-columns: 1fr 1fr;
  }

  .hero-photo-primary,
  .hero-photo-primary img {
    min-height: 220px;
  }

  .hero-photo-secondary {
    transform: none;
  }

  .three-col,
  .four-col,
  .two-col,
  .steps-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero-photos {
    grid-template-columns: 1fr;
  }

  .logo-img {
    height: 72px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .three-col,
  .four-col,
  .two-col,
  .steps-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .flow-arrow {
    display: none;
  }
}
