/* GreenSpace GIS — card-inspired, clean */
:root {
  --green-muted: #5f7d5a;
  --green-muted-light: #7d9b76;
  --green-muted-bg: #8fa88a;
  --green-dark: #2d3d2c;
  --green-text: #3d513c;
  --white: #fff;
  --off-white: #f8faf8;
  --text: #2d3d2c;
  --text-muted: #4a5c48;
  --max-width: 960px;
  --space: 1.5rem;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::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(--off-white);
}

a {
  color: var(--green-muted);
  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 pattern — img element so it loads with the page and sits behind content */
.topo-pattern {
  position: relative;
}
.topo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}
.topo-pattern .wrap {
  position: relative;
  z-index: 1;
}

/* Header — muted green, white logo, contour pattern like the card */
.site-header {
  background: var(--green-muted);
  color: var(--white);
  padding: 1.25rem 0;
  position: relative;
}
.site-header .wrap {
  position: relative;
  z-index: 1;
}
.site-header .topo-bg {
  z-index: 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space);
}

.logo {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo:hover {
  text-decoration: none;
  color: var(--white);
  opacity: 0.9;
}
.logo img {
  height: 2.5rem;
  width: auto;
}
.logo-text {
  letter-spacing: 0.1em;
}

/* Nav with diamond separators (card-style) */
.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(--white);
  opacity: 0.5;
  font-size: 0.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.site-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-nav a:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Hero — muted green, subtle pattern, white text */
.hero {
  background: var(--green-muted-light);
  color: var(--white);
  padding: 3.5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.hero p {
  margin: 0;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 400;
}

/* Section titles — dark green, clean */
.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--white);
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.services-tagline {
  font-size: 0.9rem;
  color: var(--green-text);
  margin: 1rem 0 0 !important;
  letter-spacing: 0.02em;
}

/* Services grid — white cards, light borders */
.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 rgba(95, 125, 90, 0.2);
  border-radius: 6px;
  padding: 1.5rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-text);
  letter-spacing: 0.02em;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* About block */
.about-block {
  display: grid;
  gap: var(--space);
}
@media (min-width: 640px) {
  .about-block {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* CTA — same muted green as header */
.cta {
  background: var(--green-muted);
  color: var(--white);
  padding: 2.5rem var(--space);
  text-align: center;
  position: relative;
}

.cta p {
  margin: 0 0 1rem;
  color: var(--white);
}

.cta a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--white);
  color: var(--green-muted);
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cta a:hover {
  background: var(--off-white);
  color: var(--green-dark);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--green-muted);
  color: var(--white);
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
}

.site-footer a {
  color: var(--white);
}
.site-footer a:hover {
  opacity: 0.9;
  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: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
.cta .contact-call {
  color: var(--white);
  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(--white);
  opacity: 0.9;
}
.contact-note {
  margin-top: 1rem !important;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cta .contact-note.cta-note {
  color: rgba(255,255,255,0.75);
  margin-top: 0.75rem !important;
}

/* Services page */
.service-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(95, 125, 90, 0.2);
}
.service-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.service-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-text);
}

.service-list p,
.service-list ul {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.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-muted);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn:hover {
  background: var(--green-muted-light);
  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 rgba(95, 125, 90, 0.3);
  border-radius: 6px;
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-sidebar { margin-top: 2rem; padding: 1.5rem; background: var(--white); border: 1px solid rgba(95, 125, 90, 0.2); border-radius: 6px; }
.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; }
}
