/* KLD Support — shared stylesheet
   White / mint / black, accent green sampled from the logo (#40B070).
   Mobile-first. No framework. */

:root {
  --green: #40B070;
  --green-dark: #2F8F58;
  --green-hover: #369A62;
  --green-soft: #E7F6EE;
  --green-mid: #C5EBD4;
  --ink: #111111;
  --slate: #3A3A3A;
  --muted: #5C5C5C;
  --paper: #FFFFFF;
  --paper-2: #EEF8F2;
  --white: #FFFFFF;
  --accent: var(--green);
  --accent-dark: var(--green-dark);
  --accent-soft: var(--green-soft);
  --line: #D7E8DE;
  --line-strong: #B7D4C4;
  --danger: #8B2E2E;
  --ok: #2F8F58;
  --focus: #40B070;
  --shadow: 0 1px 2px rgba(47, 143, 88, 0.06), 0 10px 28px rgba(47, 143, 88, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 70rem;
  --header-h: 5.75rem;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ----- Layout ----- */

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
}

main {
  min-height: 60vh;
}

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section--navy {
  background:
    linear-gradient(135deg, #2F8F58 0%, #40B070 55%, #4FBF80 100%);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--paper2 {
  background: var(--paper-2);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--slate);
  margin: 0.5rem 0 0;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}

.section--navy .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.05rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 38rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--green-mid);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark img {
  height: 80px;
  width: auto;
  max-height: 80px;
  max-width: min(16rem, 70vw);
  flex-shrink: 0;
}

.wordmark-loc {
  display: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@media (min-width: 52rem) {
  .wordmark-loc { display: block; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle .icon-close { display: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--green);
}

@media (max-width: 47.99rem) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }
}

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

  .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.45rem 0.8rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
    background: var(--green-soft);
  }

  .site-nav a.nav-cta {
    background: var(--green);
    color: var(--white);
    margin-left: 0.4rem;
  }

  .site-nav a.nav-cta:hover {
    background: var(--green-hover);
    color: var(--white);
  }
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--on-navy {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.btn--on-navy:hover {
  background: var(--green-soft);
  border-color: var(--green-soft);
  color: var(--green-dark);
}

.btn--on-navy-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--on-navy-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

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

.hero {
  padding: 3.25rem 0 3.75rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(64, 176, 112, 0.18), transparent 55%),
    linear-gradient(180deg, #F4FBF6 0%, var(--paper) 70%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -4rem;
  width: 22rem;
  height: 22rem;
  background:
    radial-gradient(circle at center, transparent 0 38%, rgba(64, 176, 112, 0.22) 39% 40%, transparent 41%),
    radial-gradient(circle at center, transparent 0 58%, rgba(64, 176, 112, 0.12) 59% 60%, transparent 61%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem 1.4rem 1.25rem;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.85rem;
}

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

.hero-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--slate);
}

.hero-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-list svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--green);
}

@media (min-width: 52rem) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }
}

/* ----- Cards / grids ----- */

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64rem) {
  .card-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.25rem;
  box-shadow: var(--shadow);
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

a.card:hover {
  border-color: var(--green);
  color: inherit;
}

.card h3 {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--slate);
  margin: 0;
  font-size: 1.02rem;
}

.card .more {
  margin-top: auto;
  padding-top: 0.85rem;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--green-dark);
}

.icon-tile {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
}

.icon-tile svg {
  width: 1.3rem;
  height: 1.3rem;
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; }
}

.prose p:last-child { margin-bottom: 0; }

.note {
  background: var(--white);
  border-left: 4px solid var(--green);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--slate);
  font-size: 1.02rem;
}

/* ----- Service detail ----- */

.services-hero {
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(64, 176, 112, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 70% at 100% 20%, rgba(47, 143, 88, 0.12), transparent 45%),
    linear-gradient(180deg, #F0FAF4 0%, var(--paper) 85%);
}

.services-list {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 52rem) {
  .services-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 5.5rem;
}

.service:nth-child(even) {
  background: linear-gradient(180deg, #F7FCF9 0%, var(--green-soft) 100%);
  border-top-color: var(--green-dark);
}

.service:nth-child(3n) {
  border-top-color: #5BC48A;
}

.service-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.service .icon-tile {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #D7F2E3 0%, #B8E5CA 100%);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(47, 143, 88, 0.15);
}

.service .icon-tile svg {
  width: 1.45rem;
  height: 1.45rem;
}

.service h2 {
  margin: 0.15rem 0 0;
  font-size: 1.3rem;
}

.service p {
  color: var(--slate);
  font-size: 1.02rem;
}

.service p:last-child {
  margin-bottom: 0;
}

/* ----- Forms ----- */

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.req {
  color: var(--green-dark);
  font-weight: 700;
}

.hint {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green-soft);
  border-color: var(--green);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.5rem;
}

.mailto-fallback {
  font-size: 0.95rem;
  color: var(--slate);
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  border: 1px solid;
}

.alert--ok {
  background: #e7f3ec;
  border-color: #b7d4c4;
  color: var(--ok);
}

.alert--err {
  background: #f8ecec;
  border-color: #e0c4c4;
  color: var(--danger);
}

.placeholder-block {
  border: 1px dashed var(--line-strong);
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: var(--slate);
}

.placeholder-block strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.2rem;
}

.placeholder-block code {
  font-size: 0.85em;
  background: var(--white);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.aside-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.aside-card p {
  color: var(--slate);
  margin: 0;
  font-size: 1.02rem;
}

/* ----- CTA band ----- */

.cta-band {
  text-align: left;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
}

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

.site-footer {
  background: linear-gradient(180deg, #E7F6EE 0%, #EEF8F2 40%, #F5FBF7 100%);
  color: var(--slate);
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
  border-top: 3px solid var(--green);
}

.site-footer a {
  color: var(--green-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.footer-logo img {
  height: 72px;
  width: auto;
  max-height: 72px;
}

.footer-brand {
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

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

.site-footer li { margin: 0.25rem 0; }

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.legal {
  font-size: 0.88rem;
  padding-top: 1.1rem;
  color: var(--muted);
}

/* ----- 404 ----- */

.page-404 {
  padding: 4.5rem 0 5rem;
  text-align: left;
}

.page-404 .code {
  font-family: var(--font-sans);
  font-size: 4rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ----- Utilities ----- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

hr.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}


/* ----- Stock photos / media ----- */

.media-frame {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--green-soft);
}

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

.hero-media {
  position: relative;
  min-height: 18rem;
}

.hero-media .media-frame {
  height: 100%;
  min-height: 18rem;
}

.hero-media img {
  min-height: 18rem;
  aspect-ratio: 4 / 3;
}

.hero-media .hero-panel {
  position: relative;
  margin-top: -3.5rem;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  z-index: 1;
}

@media (min-width: 52rem) {
  .hero-media {
    min-height: 22rem;
  }
  .hero-media .media-frame,
  .hero-media img {
    min-height: 22rem;
  }
  .hero-media .hero-panel {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    margin: 0;
  }
}

.photo-band {
  padding: 0;
  overflow: hidden;
}

.photo-band .media-frame {
  border-radius: 0;
  border: 0;
  border-top: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  box-shadow: none;
  max-height: 18rem;
}

.photo-band img {
  width: 100%;
  max-height: 18rem;
  object-fit: cover;
  object-position: center;
}

.split-media {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 52rem) {
  .split-media {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.services-hero .split-media {
  align-items: center;
}

.services-hero .media-frame {
  max-height: 16rem;
}

.services-hero .media-frame img {
  max-height: 16rem;
  aspect-ratio: 16 / 10;
}

.about-photo {
  max-height: 22rem;
}

.about-photo img {
  max-height: 22rem;
  aspect-ratio: 4 / 3;
}

.photo-credit {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}
