:root {
  --ink: #121a17;
  --muted: #5e6d66;
  --green: #1f6842;
  --green-dark: #12482d;
  --green-soft: #dde9d8;
  --paper: #f7f3eb;
  --paper-deep: #ecefe7;
  --white: #fffdf8;
  --line: rgba(29, 68, 46, 0.14);
  --shadow: 0 24px 70px rgba(25, 49, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #f2eee5;
  isolation: isolate;
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.hero-brand-overlay {
  position: absolute;
  z-index: 4;
  left: 2.8%;
  top: 2.8%;
  display: inline-flex;
  align-items: center;
  min-width: 13.8rem;
  min-height: 3.2rem;
  padding: 0.2rem 1.25rem 0.2rem 0;
  color: var(--green-dark);
  background: linear-gradient(90deg, #f5f1e8 0%, #f5f1e8 82%, rgba(245, 241, 232, 0) 100%);
  font-size: clamp(1.35rem, 1.65vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: outline-color 160ms ease;
}

.hotspot:hover {
  background: transparent;
  box-shadow: none;
  outline: none;
  transform: none;
}

.hotspot:focus-visible {
  background: transparent;
  box-shadow: none;
  outline: 2px solid rgba(31, 104, 66, 0.72);
  outline-offset: 2px;
  transform: none;
}

.hotspot-services {
  left: 36.5%;
  top: 3.1%;
  width: 6.5%;
  height: 4.8%;
}

.hotspot-how {
  left: 43.3%;
  top: 3.1%;
  width: 7.7%;
  height: 4.8%;
}

.hotspot-about {
  left: 51.8%;
  top: 3.1%;
  width: 5.5%;
  height: 4.8%;
}

.hotspot-resources {
  left: 57.3%;
  top: 3.1%;
  width: 8.2%;
  height: 4.8%;
}

.hotspot-book-top {
  right: 4.8%;
  top: 2.4%;
  width: 10.1%;
  height: 5.2%;
}

.hotspot-book-main {
  left: 9.8%;
  top: 57.6%;
  width: 13.7%;
  height: 5.5%;
}

.hotspot-see-how {
  left: 24.5%;
  top: 57.6%;
  width: 12.1%;
  height: 5.5%;
}

.section {
  padding: 104px clamp(22px, 6vw, 112px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 850px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.15;
}

p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

.section-kicker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: end;
  margin-bottom: 48px;
}

.section-kicker > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -28px;
}

.section-kicker p:not(.eyebrow) {
  max-width: 560px;
}

.section-kicker.center {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-kicker.center .eyebrow {
  margin-bottom: 16px;
}

.section-kicker.center p {
  margin: 20px auto 0;
}

.services {
  background: linear-gradient(180deg, var(--white), #eff4ec 72%, var(--white));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.resource-card,
.mission-card,
.message-form,
.booking-card,
.process-steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 55px rgba(39, 67, 51, 0.08);
}

.service-card {
  min-height: 350px;
  padding: 28px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.resource-card:hover,
.process-steps article:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 95, 62, 0.3);
  box-shadow: var(--shadow);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 60px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 2rem;
  font-weight: 800;
}

.service-card a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.service-card a::after {
  content: "->";
}

.visual-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 52px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(231, 239, 226, 0.72));
}

.image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 104, 66, 0.17);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

.image-frame-wide {
  aspect-ratio: 16 / 9;
}

.process {
  background: var(--paper);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.process-steps article {
  position: relative;
  min-height: 300px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.process-steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 18px;
  border-top: 2px dotted rgba(31, 104, 66, 0.65);
}

.process-steps span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 52px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 800;
}

.outcome-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 54px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.outcome-strip div {
  padding: 28px;
  background: rgba(255, 253, 248, 0.75);
}

.outcome-strip strong,
.outcome-strip span {
  display: block;
}

.outcome-strip strong {
  margin-bottom: 8px;
  color: var(--green);
}

.outcome-strip span {
  color: var(--muted);
}

.blueprint {
  max-width: 980px;
  max-height: 460px;
  margin-inline: auto;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.78fr) minmax(260px, 0.56fr);
  gap: 22px;
  align-items: stretch;
  background: linear-gradient(180deg, #fdfbf5, #eef4ec);
}

.about-copy {
  align-self: center;
}

.about-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0;
}

.mission-card {
  padding: clamp(28px, 4vw, 44px);
}

.mission-card h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.value-grid span {
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 800;
}

.tall-frame {
  max-height: 620px;
}

.tall-frame img,
.contact-preview img {
  object-position: top center;
}

.resources {
  background: var(--white);
}

.resource-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.filter-chip {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  color: var(--white);
  background: var(--green);
  outline: none;
}

.featured-resource {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(246, 242, 232, 0.8), rgba(236, 242, 232, 0.78));
}

.featured-resource figure {
  aspect-ratio: 1.45 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.featured-resource img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  min-height: 230px;
  padding: 28px;
  transition: opacity 180ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.resource-card.is-hidden {
  display: none;
}

.resource-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact {
  background: linear-gradient(180deg, #f7f3eb, var(--white));
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.82fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 44px;
}

.contact-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-preview {
  max-height: 500px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.78fr);
  gap: 26px;
}

.message-form,
.booking-card {
  padding: clamp(28px, 4vw, 42px);
}

.message-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(34, 95, 62, 0.16);
}

.calendar-card {
  display: grid;
  gap: 18px;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-top button,
.calendar-grid button {
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  text-align: center;
}

.calendar-grid span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-grid button {
  min-height: 34px;
  border-radius: 50%;
}

.calendar-grid button:hover,
.calendar-grid button:focus-visible,
.calendar-grid .selected {
  color: var(--white);
  background: var(--green);
  outline: none;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.faq {
  margin-top: 62px;
}

.faq > h2 {
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 14px 0 0;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(22px, 6vw, 112px) 80px;
  padding: clamp(32px, 6vw, 56px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 72, 45, 0.98), rgba(18, 72, 45, 0.78)),
    url("assets/humangood-home-expanded.png") center bottom / cover;
  box-shadow: var(--shadow);
}

.final-cta h1,
.final-cta p,
.final-cta .eyebrow {
  color: var(--white);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button {
  border: 0;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 15px 35px rgba(14, 44, 28, 0.25);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.secondary-button.light {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--green-dark);
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #2b744b;
  box-shadow: 0 19px 42px rgba(14, 44, 28, 0.34);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  box-shadow: 0 15px 34px rgba(14, 44, 28, 0.12);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 22, 17, 0.58);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(90vh, 780px);
  overflow: auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.32);
}

.modal h1 {
  margin-bottom: 26px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--green-soft);
  outline: none;
}

.booking-form {
  display: grid;
  gap: 16px;
}

.form-success {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .service-grid,
  .process-steps,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps article:not(:last-child)::after {
    display: none;
  }

  .about,
  .contact-hero,
  .contact-grid,
  .visual-feature {
    grid-template-columns: 1fr;
  }

  .tall-frame {
    max-height: 520px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 72px 22px;
  }

  .section-kicker,
  .featured-resource,
  .faq-grid,
  .form-row,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .section-kicker > .eyebrow {
    margin-bottom: -10px;
  }

  .final-cta {
    display: grid;
    margin-inline: 22px;
  }
}

@media (max-width: 640px) {
  .hero-brand-overlay {
    left: 2.5%;
    top: 2.2%;
    min-width: 6.8rem;
    min-height: 1.2rem;
    padding-right: 0.4rem;
    font-size: 0.62rem;
  }

  .hotspot-services,
  .hotspot-how,
  .hotspot-about,
  .hotspot-resources {
    display: none;
  }

  .hotspot-book-top {
    right: 5%;
    top: 2.4%;
    width: 30%;
    height: 6%;
  }

  .hotspot-book-main {
    left: 8%;
    top: 57%;
    width: 43%;
    height: 6.5%;
  }

  .hotspot-see-how {
    left: 53%;
    top: 57%;
    width: 35%;
    height: 6.5%;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .service-grid,
  .process-steps,
  .outcome-strip,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .icon-badge,
  .process-steps span {
    margin-bottom: 28px;
  }

  .calendar-grid {
    gap: 5px;
  }
}

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

  .hero-image-wrap {
    transform: none;
  }
}
