/* GreenSpace GIS — minimal white, green accent */
:root {
  --green: #2d6b2d;
  --green-hover: #237023;
  --green-light: #e8f0e8;
  --white: #fff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --text: #1a1a1a;
  --text-muted: #525252;
  --max-width: 960px;
  --space: 1.5rem;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --header-height: 3.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Topo — hidden in minimal header; can be used in other sections if needed */
.site-header .topo-bg {
  display: none;
}
.topo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}

/* Header — crisp white */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space);
  min-height: var(--header-height);
}

.logo {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo:hover {
  text-decoration: none;
  color: var(--green);
}
.logo img {
  height: 2.5rem;
  width: auto;
}
.logo-text {
  letter-spacing: 0.08em;
}

/* Nav — desktop */
.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
}

.site-nav li + li::before {
  content: "◆";
  color: var(--gray-200);
  font-size: 0.4rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-nav a:hover {
  color: var(--green);
  text-decoration: none;
}

/* Hamburger — mobile only */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
.nav-toggle:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.nav-toggle-icon {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}
.nav-toggle-icon::before {
  top: -6px;
}
.nav-toggle-icon::after {
  top: 6px;
}
.site-header.nav-open .nav-toggle-icon {
  background: transparent;
}
.site-header.nav-open .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
  }
  .site-header.nav-open .site-nav {
    max-height: 12rem;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--space) 1rem;
    gap: 0;
  }
  .site-nav li + li::before {
    display: none;
  }
  .site-nav a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text);
  }
}

/* Hero — deeper area, light gray background, green accent */
.hero {
  background: var(--gray-50);
  color: var(--text);
  padding: 4rem 0 5rem;
  position: relative;
}

.hero .wrap {
  position: relative;
  padding-left: var(--space);
  border-left: 4px solid var(--green);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero p {
  margin: 0;
  max-width: 50ch;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section titles */
.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--gray-50);
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.services-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 0 !important;
}

/* Services grid — cards with soft shadow */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space);
  margin-top: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* About block */
.about-block {
  display: grid;
  gap: var(--space);
}
@media (min-width: 640px) {
  .about-block {
    grid-template-columns: auto 1fr 1fr;
    align-items: start;
  }
}

.about-photo {
  text-align: center;
}
.about-photo img {
  width: 200px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto 0.5rem;
}
.about-photo-caption {
  margin: 0;
  padding: 0;
  line-height: 1.25;
  font-size: 1rem;
}
.about-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}
.about-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA — light gray, green button */
.cta {
  background: var(--gray-100);
  color: var(--text);
  padding: 3rem var(--space);
  text-align: center;
}

.cta p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.cta .btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  transition: background 0.2s;
}
.cta .btn:hover {
  background: var(--green-hover);
  text-decoration: none;
}

/* Footer — CTA + copyright */
.site-footer {
  background: var(--gray-100);
  color: var(--text);
  padding: 3rem var(--space) 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.site-footer .wrap {
  display: block;
}

.footer-cta-text {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.site-footer .contact-actions {
  margin: 0 0 2rem;
  justify-content: center;
}

.site-footer .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  transition: background 0.2s;
}
.site-footer .btn:hover {
  background: var(--green-hover);
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--green);
  text-decoration: none;
}

/* Page content (inner pages) */
.page-content {
  padding: 2rem 0 4rem;
}

.page-content .section-title {
  margin-top: 0;
}

/* Contact actions in CTA */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem !important;
}
.contact-or {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.cta .contact-call {
  color: var(--green);
  background: transparent;
  padding: 0.5rem 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  text-decoration: underline;
}
.cta .contact-call:hover {
  background: transparent;
  color: var(--green-hover);
}
.contact-note {
  margin-top: 1rem !important;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cta .contact-note.cta-note {
  color: var(--text-muted);
  margin-top: 0.75rem !important;
}

/* Services page */
.service-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.service-list > li {
  margin-bottom: 2.5rem;
  padding: 2rem 2rem 2rem 2.25rem;
  background: var(--gray-50);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.service-list > li:last-child {
  margin-bottom: 0;
}
/* Slight accent variation per section so the three areas read as distinct */
.service-list > li:nth-child(1) { border-left-color: var(--green); }
.service-list > li:nth-child(2) { border-left-color: #256325; }
.service-list > li:nth-child(3) { border-left-color: #1e5228; }

.service-list h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.service-list p,
.service-list ul {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

/* Sub-items under each section: bullet + indentation */
.service-item > p:first-of-type {
  margin-bottom: 1rem;
}
.service-item > p:not(:first-of-type) {
  position: relative;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  margin-bottom: 1rem;
}
.service-item > p:not(:first-of-type)::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}
.service-item > p:not(:first-of-type):last-child {
  margin-bottom: 0;
}

.service-list ul {
  padding-left: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--green-hover);
  text-decoration: none;
}

.page-content .btn {
  color: var(--white);
}

/* Legacy form/sidebar (kept for any future use) */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; font-size: 0.9rem; color: var(--text); }
.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-sidebar { margin-top: 2rem; padding: 1.5rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 8px; }
.contact-sidebar p { margin: 0 0 0.5rem; }
@media (min-width: 640px) {
  .contact-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
}
