:root {
  --forest: #123e2b;
  --forest-2: #0b3022;
  --leaf: #b6e83a;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --ink: #17362a;
  --muted: #63746a;
  --line: #d9e0d6;
  --serif: "Manrope", sans-serif;
  --sans: "DM Sans", sans-serif;
  --shadow: 0 20px 55px rgba(18, 62, 43, 0.13);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

.wheelchair {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 24px 24px 120px 24px;
  display: block;
  transform-origin: right bottom;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll {
    min-height: auto;
  }

  .hero {
    position: static;
  }

  .wheelchair {
    transform: none;
    will-change: auto;
  }
}

a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 4px;
}
.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand strong {
  font-weight: 800;
}
.main-nav {
  display: flex;
  gap: 27px;
  align-items: center;
  font-size: 14px;
  color: #426052;
}
.main-nav a:not(.nav-cta):hover,
.footer-contact:hover,
.text-link:hover {
  color: var(--forest);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-toggle {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  color: #426052;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.nav-dropdown-toggle span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--forest);
  background: rgba(47, 123, 85, 0.1);
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  width: 260px;
  padding: 10px;
  visibility: hidden;
  background: #fffdf8;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(25, 65, 45, 0.16);
  opacity: 0;
  transform: translate(-50%, -8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.nav-dropdown-menu::before {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 16px;
  content: "";
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  line-height: 1.35;
  border-radius: 9px;
}

.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a:focus-visible {
  color: white;
  background: var(--forest);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-dropdown.is-open .nav-dropdown-toggle span {
  transform: translateY(2px) rotate(225deg);
}
.nav-cta {
  background: var(--forest);
  color: white;
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 700;
}
.nav-cta:hover,
.button-primary:hover {
  background: #205d41;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}
.hero-scroll {
  /* Keep the next section directly after the hero. */
  min-height: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 70px;
  align-items: center;
  padding: 78px 0 94px;
}
.location,
.section-label,
.footer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #577160;
}
.location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  display: inline-block;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.3vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 25px;
  max-width: 680px;
}
.hero h1 em {
  color: #4e7f4b;
  font-style: normal;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 530px;
  margin: 0 0 30px;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 999px;
  padding: 14px 19px;
  font-weight: 700;
  font-size: 14px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: var(--forest);
  color: white;
}
.button-secondary {
  border: 1px solid #aabbb0;
  color: var(--forest);
}
.response-note {
  font-size: 13px;
  color: #617569;
  margin: 21px 0 0;
}
.response-note span {
  color: #6a9636;
  margin-right: 6px;
}
.hero-visual {
  position: relative;
}
.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 849 / 463;
  object-fit: cover;
  object-position: center;
  border-radius: 24px 24px 120px 24px;
  display: block;
  box-shadow: var(--shadow);
}
.hero-note {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--leaf);
  color: var(--forest-2);
  padding: 17px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(50, 89, 20, 0.2);
  font-size: 14px;
  line-height: 1.25;
}
.note-mark {
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}
.quick-answers {
  background: var(--forest);
  color: white;
  padding: 55px 0;
}
.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.answer-grid > div {
  padding-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.answer-grid > div:last-child {
  border: 0;
}
.answer-number {
  font-size: 12px;
  color: var(--leaf);
  font-weight: 800;
  letter-spacing: 0.1em;
}
.answer-grid h2 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
  margin: 18px 0 10px;
  letter-spacing: -0.02em;
}
.answer-grid p {
  color: #c7d4cb;
  font-size: 14px;
  max-width: 280px;
  margin: 0 0 15px;
}
.answer-grid a {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 700;
}
.section {
  padding: 115px 0;
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 55px;
  align-items: end;
  margin-bottom: 44px;
}
.section-intro h2,
.support-grid h2,
.admission-heading h2,
.team-copy h2,
.governance-section h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 12px 0 0;
}
.section-intro > p:last-child {
  max-width: 430px;
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}
.service-list {
  border-top: 1px solid var(--line);
}
.service-item {
  display: grid;
  grid-template-columns: 54px 1fr 44px;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--leaf);
  display: grid;
  place-items: center;
  color: var(--forest);
  font-weight: 700;
  font-size: 21px;
}
.service-item h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  margin: 2px 0 8px;
}
.service-item p {
  max-width: 600px;
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.service-arrow {
  font-size: 12px;
  color: #6f8b7a;
  padding-top: 6px;
  text-align: right;
}
.support-section {
  background: #e6eee3;
}
.leaf-wind-section {
  position: relative;
  overflow: hidden;
}
.wind-leaf {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 5px 5px rgba(18, 62, 43, 0.12));
  animation: maple-leaf-wind 5.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.leaf-wind-section > .container {
  position: relative;
  z-index: 1;
}
@keyframes maple-leaf-wind {
  0% {
    opacity: 0;
    transform: translate3d(-30px, 20px, 0) rotate(-35deg) scale(0.7);
  }
  14% { opacity: 0.9; }
  100% {
    opacity: 0;
    transform: translate3d(var(--leaf-x), var(--leaf-y), 0) rotate(var(--leaf-rotation)) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wind-leaf { display: none; }
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.support-grid > div:first-child > p:not(.section-label) {
  color: var(--muted);
  max-width: 480px;
  font-size: 17px;
  margin: 25px 0;
}
.text-link {
  font-size: 14px;
  color: var(--forest);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.support-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  align-content: center;
}
.support-tags span {
  border: 1px solid #abc2aa;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 14px;
  color: #355947;
}
.admission-section {
  padding-bottom: 100px;
}
.admission-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 60px;
}
.admission-heading > p {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
  margin: 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  border-top: 2px solid var(--forest);
  padding-top: 19px;
}
.step span {
  color: #6c9164;
  font-weight: 800;
  font-size: 12px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  margin: 17px 0 8px;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.admission-cta {
  margin-top: 65px;
  background: var(--forest);
  color: white;
  padding: 28px 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.admission-cta strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
}
.admission-cta span {
  color: #bdd0c2;
  font-size: 14px;
}
.button-light {
  background: var(--leaf);
  color: var(--forest);
}
.team-section {
  background: var(--paper);
  padding: 100px 0;
}
.team-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 85px;
  align-items: center;
}
.team-image-wrap {
  position: relative;
}
.team-image {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: 18px;
}
.image-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: white;
  color: var(--forest);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.team-copy > p:not(.section-label):not(.placeholder) {
  color: var(--muted);
  font-size: 17px;
  max-width: 490px;
  margin: 25px 0;
}
.placeholder {
  border: 1px dashed #9eb5a2;
  background: #f4f7f1;
  color: #56705c;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 13px;
  max-width: 480px;
}
.placeholder strong {
  color: var(--forest);
}
.governance-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}
.governance-copy {
  padding-top: 12px;
}
.governance-copy > p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 0;
}
.emergency {
  background: #fff0d4;
  color: #513c20;
}
.emergency-inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
}
.emergency-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8a542;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.emergency strong {
  font-family: var(--serif);
  font-size: 16px;
}
.emergency p {
  font-size: 13px;
  margin: 3px 0 0;
  max-width: 900px;
}
.site-footer {
  background: var(--forest-2);
  color: #dce8df;
  padding: 68px 0 25px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 55px;
}
.footer-brand {
  color: white;
}
.footer-tagline {
  color: #a9bfaf;
  font-family: var(--serif);
  font-size: 18px;
  max-width: 240px;
  margin-top: 25px;
}
.footer-label {
  color: var(--leaf);
  margin: 3px 0 15px;
}
.footer-contact {
  display: block;
  color: white;
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 5px;
}
.footer-small,
.footer-grid p {
  font-size: 14px;
  color: #a9bfaf;
}
.footer-link {
  color: var(--leaf);
  display: inline-block;
  margin-top: 9px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 19px;
  display: flex;
  justify-content: space-between;
  color: #8fa99a;
  font-size: 12px;
}

.footer-credit a {
  color: var(--leaf);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-credit a:hover {
  color: #ffffff;
}
@media (max-width: 860px) {
  .hero-scroll {
    min-height: auto;
  }

  .myscroll {
    min-height: auto;
  }

  .myscroll .hero {
    position: static;
  }

  .container {
    width: min(100% - 36px, 620px);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 18px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);
  }
  .main-nav.is-open {
    display: flex;
  }

  .nav-dropdown-trigger {
    justify-content: space-between;
  }

  .nav-dropdown-toggle {
    width: 36px;
    height: 36px;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    width: auto;
    margin: 8px 0 4px;
    padding: 8px;
    visibility: visible;
    background: rgba(47, 123, 85, 0.07);
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
    transform: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .nav-dropdown-menu::before {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    position: static;
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 55px 0 76px;
  }
  .hero-note {
    left: 14px;
  }
  .answer-grid,
  .support-grid,
  .admission-heading,
  .governance-section,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .answer-grid > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0 0 25px;
  }
  .answer-grid > div:last-child {
    padding-bottom: 0;
  }
  .section {
    padding: 78px 0;
  }
  .section-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 34px;
  }
  .admission-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .team-image {
    height: 340px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 520px) {
  .container {
    width: calc(100% - 32px);
  }
  .brand span {
    font-size: 11px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero-lede {
    font-size: 17px;
  }
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .hero-image {
    border-radius: 18px 18px 72px 18px;
  }
  .hero-note {
    font-size: 12px;
    padding: 13px 15px;
    bottom: -22px;
  }
  .section-intro h2,
  .support-grid h2,
  .admission-heading h2,
  .team-copy h2,
  .governance-section h2 {
    font-size: 37px;
  }
  .service-item {
    grid-template-columns: 43px 1fr;
  }
  .service-arrow {
    display: none;
  }
  .service-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .service-item h3 {
    font-size: 21px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .team-image {
    height: 270px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
  .footer-bottom {
    gap: 12px;
    flex-direction: column;
  }
  .emergency-inner {
    gap: 12px;
  }
  .emergency p {
    font-size: 12px;
  }
}

/* About page values: a calmer, more editorial treatment for the principles. */
.values-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}
.values-grid > div {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
  padding: 58px 22px 22px;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #e1e7dd;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(18, 62, 43, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.values-grid > div::before {
  content: "";
  position: absolute;
  top: -28px;
  right: -18px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(182, 232, 58, 0.45);
  border-radius: 50%;
}
.values-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(18, 62, 43, 0.12);
}
.values-grid > div:nth-child(2n) { background: #f3f7ee; }
.values-grid > div:nth-child(3n) { background: #f8f1e7; }
.values-grid .value-mark {
  position: absolute;
  top: 20px;
  left: 22px;
  color: #789080;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
}
.values-grid strong {
  display: block;
  max-width: 100%;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-align: left;
}
.values-grid small {
  display: block;
  max-width: 23ch;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}
@media (max-width: 620px) {
  .values-grid { grid-template-columns: 1fr; }
  .values-grid > div { min-height: 140px; padding-top: 54px; }
}
.page-hero {
  padding: 92px 0 84px;
  background-image:
    linear-gradient(rgba(8, 39, 27, 0.78), rgba(8, 39, 27, 0.86)),
    url("Images/About.jpg");
  background-position: right bottom;
  background-size: cover;
  color: white;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 820px;
  margin: 18px 0 24px;
}
.page-hero p:not(.section-label) {
  color: #c5d6ca;
  font-size: 19px;
  max-width: 600px;
}
.page-hero .section-label {
  color: var(--leaf);
}

/* Page-specific hero images must come after the shared page-hero rule. */
.page-hero-about { background-image: linear-gradient(rgba(8, 39, 27, 0.78), rgba(8, 39, 27, 0.86)), url("Images/Who We Support.jpg"); }
.page-hero-support { background-image: linear-gradient(rgba(8, 39, 27, 0.72), rgba(8, 39, 27, 0.84)), url("Images/psychiatric consultation.jpg"); }
.page-hero-support { background-image: linear-gradient(rgba(8, 39, 27, 0.72), rgba(8, 39, 27, 0.84)), url("Images/psychiatric consultation.jpg"); }
.page-hero-admission { background-image: linear-gradient(rgba(8, 39, 27, 0.78), rgba(8, 39, 27, 0.86)), url("Images/Mental Health Services.jpg"); }
.page-hero-contact { background-image: linear-gradient(rgba(8, 39, 27, 0.72), rgba(8, 39, 27, 0.84)), url("Images/Happy Family.jpg"); }
.page-hero-facilities { background-image: linear-gradient(rgba(8, 39, 27, 0.76), rgba(8, 39, 27, 0.86)), url("Images/banner.png"); }
.page-hero-residential { background-image: linear-gradient(rgba(8, 39, 27, 0.72), rgba(8, 39, 27, 0.84)), url("Images/Happy Family.jpg"); }
.page-hero-support { background-image: linear-gradient(rgba(8, 39, 27, 0.72), rgba(8, 39, 27, 0.84)), url("Images/psychiatric consultation.jpg"); }

.page-hero-about { background-image: linear-gradient(rgba(8, 39, 27, 0.78), rgba(8, 39, 27, 0.86)), url("Images/Who We Support.jpg"); }
.page-hero-admission { background-image: linear-gradient(rgba(8, 39, 27, 0.78), rgba(8, 39, 27, 0.86)), url("Images/Mental Health Services.jpg"); }
.page-hero-contact { background-image: linear-gradient(rgba(8, 39, 27, 0.72), rgba(8, 39, 27, 0.84)), url("Images/Happy Family.jpg"); }
.page-hero-facilities { background-image: linear-gradient(rgba(8, 39, 27, 0.76), rgba(8, 39, 27, 0.86)), url("Images/banner.png"); }
.page-hero-residential { background-image: linear-gradient(rgba(8, 39, 27, 0.72), rgba(8, 39, 27, 0.84)), url("Images/Happy Family.jpg"); }
.page-hero-support { background-image: linear-gradient(rgba(8, 39, 27, 0.72), rgba(8, 39, 27, 0.84)), url("Images/psychiatric consultation.jpg"); }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.content-grid h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
}
.content-grid p {
  color: var(--muted);
  font-size: 17px;
}
.detail-list {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.detail-list div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.detail-list h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
}
.detail-list p {
  font-size: 14px;
  margin: 0;
}
.page-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 18px;
}
.quote-band {
  background: #e6eee3;
  padding: 75px 0;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 850px;
  margin: 0;
  color: var(--forest);
}
.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.tag-grid div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  font-family: var(--serif);
  font-weight: 700;
}
.placeholder {
  border: 1px dashed #9eb5a2;
  background: #f4f7f1;
  color: #56705c;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 13px;
  max-width: 480px;
}
.placeholder strong {
  color: var(--forest);
}
@media (max-width: 860px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .tag-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-hero {
    padding: 68px 0;
  }
  .page-image {
    height: 350px;
  }
}
@media (max-width: 520px) {
  .tag-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 49px;
  }
  .page-hero p:not(.section-label) {
    font-size: 17px;
  }
  .content-grid h2 {
    font-size: 37px;
  }

  .contact-card,
  .enquiry-form {
    padding: 24px;
  }
}

/* Professional support cards */
.tag-grid.support-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.tag-grid.support-card-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 220px;
  padding: 30px 26px 26px;
  background: #dcebdc;
  border: 1px solid #c4d9c6;
  border-radius: 14px;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.tag-grid.support-card-grid > div::before {
  content: "";
  position: static;
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--leaf);
}

.tag-grid.support-card-grid > div:hover {
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: none;
  transform: translateY(-3px);
}

.tag-grid.support-card-grid > div:hover h3 {
  color: #ffffff;
}

.tag-grid.support-card-grid > div:hover p {
  color: #e1ece4;
}

.tag-grid.support-card-grid h3 {
  margin: 0 0 12px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.tag-grid.support-card-grid p {
  max-width: 30ch;
  margin: 0;
  color: #405f4d;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .tag-grid.support-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-grid.support-card-grid > div {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  .tag-grid.support-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 30px;
  }

  .tag-grid.support-card-grid > div {
    min-height: auto;
    padding: 24px;
  }

  .tag-grid.support-card-grid > div::before {
    margin-bottom: 20px;
  }
}

/* Editorial detail cards aligned with section introductions */
main .detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  border: 0;
}

main .detail-list > div {
  min-height: 190px;
  padding: 28px;
  background: #f0f6ed;
  border: 1px solid #d4e1d3;
  border-radius: 14px;
  box-shadow: none;
  position: relative;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

main .detail-list > div::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--leaf);
}

main .detail-list h3 {
  max-width: 22ch;
  margin: 0 0 12px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 180ms ease;
}

main .detail-list p {
  max-width: 48ch;
  margin: 0;
  color: #51685a;
  font-size: 14px;
  line-height: 1.7;
  transition: color 180ms ease;
}

main .detail-list > div:hover {
  background: var(--forest);
  border-color: var(--forest);
  transform: translateY(-3px);
}

main .detail-list > div:hover h3,
main .detail-list > div:hover p {
  color: #ffffff;
}

/* Who We Support image panel with warm beige glass surfaces */
#support.support-section {
  background-image:
    linear-gradient(rgba(239, 226, 201, 0.8), rgba(239, 226, 201, 0.86)),
    url("Images/Who We Support.jpg");
  background-position: center;
  background-size: cover;
}

#support .support-grid > div:first-child {
  padding: 36px;
  background: rgba(255, 249, 237, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 16px;
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

#support .section-label {
  color: #4b6954;
}

#support .support-grid > div:first-child > p:not(.section-label) {
  color: #3f5949;
}

#support .support-tags span {
  min-height: 82px;
  padding: 20px;
  background: rgba(255, 250, 240, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--forest);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

#support .support-tags span:hover {
  background: rgba(255, 253, 247, 0.82);
  border-color: rgba(255, 255, 255, 0.92);
  transform: translateY(-3px);
}

@media (max-width: 620px) {
  #support .support-grid > div:first-child {
    padding: 26px;
  }
}

@media (max-width: 760px) {
  main .detail-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  main .detail-list > div {
    min-height: auto;
    padding: 24px;
  }

  main .detail-list > div::before {
    margin-bottom: 20px;
  }
}

/* Autism support article */
.article-hero {
  padding: 78px 0;
  background: #efe3cf;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

.article-back {
  display: inline-block;
  margin-bottom: 28px;
  color: #49634f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.article-hero h1 {
  max-width: 680px;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(44px, 5.7vw, 76px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.article-hero p {
  max-width: 600px;
  margin: 0;
  color: #506257;
  font-size: 18px;
  line-height: 1.7;
}

.article-hero img {
  width: 100%;
  height: 500px;
  display: block;
  object-fit: cover;
  border-radius: 18px 18px 90px 18px;
}

.article-body {
  padding: 100px 0;
  background: var(--paper);
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 90px;
  justify-content: center;
  align-items: start;
}

.article-summary {
  display: grid;
  gap: 13px;
  padding-top: 8px;
  position: sticky;
  top: 112px;
}

.article-summary strong {
  margin-bottom: 8px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 15px;
}

.article-summary a {
  color: #617568;
  font-size: 13px;
  line-height: 1.45;
}

.article-summary a:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content > section + section {
  margin-top: 76px;
}

.article-content h2 {
  margin: 0 0 22px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.article-content > section > p {
  max-width: 68ch;
  margin: 0 0 20px;
  color: #4f6256;
  font-size: 17px;
  line-height: 1.8;
}

.article-callout {
  margin-top: 34px;
  padding: 28px;
  background: #e6f0df;
  border-radius: 14px;
}

.article-callout strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 18px;
}

.article-callout p {
  margin: 8px 0 0;
  color: #4f6555;
  line-height: 1.65;
}

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

.article-support-grid > div {
  padding: 24px;
  background: #f2f6ee;
  border: 1px solid #dce6d9;
  border-radius: 14px;
}

.article-support-grid h3 {
  margin: 0 0 10px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
}

.article-support-grid p {
  margin: 0;
  color: #566a5d;
  font-size: 14px;
  line-height: 1.65;
}

.article-cta {
  padding: 72px 0;
  background: var(--forest);
  color: #ffffff;
}

.article-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.article-cta h2 {
  max-width: 650px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.article-cta p {
  margin: 0;
  color: #bfd1c4;
}

.article-call-button {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

@media (max-width: 860px) {
  .article-hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-hero img {
    height: 400px;
  }

  .article-summary {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px;
    background: #f2f6ee;
    border-radius: 14px;
  }

  .article-summary strong {
    grid-column: 1 / -1;
  }

  .article-cta .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .article-hero,
  .article-body {
    padding: 64px 0;
  }

  .article-hero img {
    height: 310px;
    border-radius: 16px 16px 60px 16px;
  }

  .article-summary,
  .article-support-grid {
    grid-template-columns: 1fr;
  }

  .article-content > section + section {
    margin-top: 56px;
  }
}

/* Clean editorial Who We Support layout */
#support.support-section {
  background: #efe3cf;
}

#support .support-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

#support .support-copy {
  max-width: 520px;
}

#support .support-copy h2 {
  margin: 12px 0 24px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

#support .support-copy > p:not(.section-label) {
  margin: 0 0 28px;
  color: #4f5f53;
  font-size: 17px;
  line-height: 1.75;
}

#support .support-image-wrap {
  min-height: 470px;
  position: relative;
}

#support .support-image-wrap img {
  width: 100%;
  height: 470px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

#support .support-image-note {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 250px;
  padding: 16px 18px;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#support .support-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

#support .support-tags span {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: #dcebdc;
  border: 1px solid #c5d7c6;
  border-radius: 12px;
  color: var(--forest);
  font-weight: 700;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

#support .support-tags span:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #ffffff;
  transform: translateY(-3px);
}

@media (max-width: 860px) {
  #support .support-editorial {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  #support .support-image-wrap,
  #support .support-image-wrap img {
    min-height: 380px;
    height: 380px;
  }

  #support .support-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #support .support-image-wrap,
  #support .support-image-wrap img {
    min-height: 310px;
    height: 310px;
  }

  #support .support-image-note {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }

  #support .support-tags {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
}

/* Six areas of service */
.service-detail-section {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding: 100px max(48px, calc((100vw - 1160px) / 2));
  background: var(--forest);
  color: #ffffff;
}

.service-detail-section .section-label {
  color: var(--leaf);
}

.service-detail-section .section-intro > p:last-child {
  color: #d7e4da;
}

.service-detail-section .detail-list > div {
  background: #f3f6ed;
  border-color: #f3f6ed;
}

.service-detail-section .detail-list > div:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.service-detail-section .detail-list > div:hover h3 {
  color: var(--forest);
}

.service-detail-section .detail-list > div:hover p {
  color: #51685a;
}

@media (max-width: 620px) {
  .service-detail-section {
    padding: 72px 18px;
  }
}

/* Six-part service infographic */
.service-infographic {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 290px minmax(250px, 1fr);
  grid-template-rows: repeat(3, minmax(150px, auto));
  gap: 24px 64px;
  align-items: center;
  margin-top: 64px;
}

.infographic-center {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 290px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 58px;
  border-radius: 50%;
  background: conic-gradient(
    #b6e83a 0deg 58deg,
    #d7bd82 58deg 118deg,
    #77a783 118deg 178deg,
    #b6e83a 178deg 238deg,
    #d7bd82 238deg 298deg,
    #77a783 298deg 360deg
  );
  color: #ffffff;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.infographic-center::before {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: -1;
  border-radius: 50%;
  background: var(--forest-2);
}

.infographic-center span {
  color: var(--leaf);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.infographic-center strong {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.infographic-center small {
  max-width: 18ch;
  color: #cbdace;
  font-size: 12px;
  line-height: 1.45;
}

.infographic-item {
  min-height: 150px;
  padding: 24px 24px 22px 70px;
  border-radius: 16px;
  background: #f7f4ec;
  color: var(--forest);
  position: relative;
  box-shadow: 0 12px 28px rgba(5, 25, 17, 0.2);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.infographic-item::after {
  content: "";
  width: 64px;
  height: 2px;
  background: rgba(182, 232, 58, 0.72);
  position: absolute;
  top: 50%;
}

.infographic-item:nth-of-type(-n + 3)::after {
  right: -64px;
}

.infographic-item:nth-of-type(n + 4)::after {
  left: -64px;
}

.infographic-item:hover {
  background: #ffffff;
  transform: translateY(-3px);
}

.infographic-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 800;
  position: absolute;
  top: 24px;
  left: 20px;
}

.infographic-item h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.infographic-item p {
  margin: 0;
  color: #53675a;
  font-size: 12px;
  line-height: 1.55;
}

.item-1 {
  grid-column: 1;
  grid-row: 1;
}

.item-2 {
  grid-column: 1;
  grid-row: 2;
}

.item-3 {
  grid-column: 1;
  grid-row: 3;
}

.item-4 {
  grid-column: 3;
  grid-row: 3;
}

.item-5 {
  grid-column: 3;
  grid-row: 2;
}

.item-6 {
  grid-column: 3;
  grid-row: 1;
}

@media (max-width: 980px) {
  .service-infographic {
    grid-template-columns: minmax(210px, 1fr) 230px minmax(210px, 1fr);
    gap: 20px 34px;
  }

  .infographic-center {
    width: 230px;
    padding: 45px;
  }

  .infographic-center strong {
    font-size: 25px;
  }

  .infographic-item {
    padding: 20px 18px 18px 60px;
  }

  .infographic-item::after {
    width: 34px;
  }

  .infographic-item:nth-of-type(-n + 3)::after {
    right: -34px;
  }

  .infographic-item:nth-of-type(n + 4)::after {
    left: -34px;
  }

  .infographic-number {
    top: 20px;
    left: 14px;
  }
}

@media (max-width: 760px) {
  .service-infographic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 14px;
    margin-top: 44px;
  }

  .infographic-center,
  .infographic-item,
  .item-1,
  .item-2,
  .item-3,
  .item-4,
  .item-5,
  .item-6 {
    grid-column: 1;
    grid-row: auto;
  }

  .infographic-center {
    width: 220px;
    margin-bottom: 20px;
    order: -1;
  }

  .infographic-item {
    min-height: auto;
    padding: 24px 22px 24px 70px;
  }

  .infographic-item::after {
    display: none;
  }

  .infographic-number {
    top: 24px;
    left: 20px;
  }
}

/* Homepage readability and card system */
::selection {
  background: var(--leaf);
  color: var(--forest-2);
}
body {
  font-size: 16px;
}
main {
  overflow: hidden;
}
.section {
  position: relative;
}
.section > p,
.content-grid > div > p {
  max-width: 68ch;
}
.section-intro {
  align-items: start;
}
.section-intro h2 {
  max-width: 13ch;
}
.section-intro > p:last-child {
  line-height: 1.75;
}

.quick-answers {
  padding: 40px 0;
}
.answer-grid {
  gap: 16px;
}
.answer-grid > div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.answer-grid > div:last-child {
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.answer-grid > div:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-3px);
}
.answer-grid h2 {
  margin-top: 12px;
}

.tag-grid {
  gap: 16px;
}
.tag-grid div {
  min-height: 108px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: var(--paper);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(18, 62, 43, 0.08);
  font-size: 17px;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tag-grid > div h3 {
  margin: 0 0 9px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
}

.tag-grid > div p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.tag-grid-residential {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tag-grid-residential > div {
  flex: 0 0 calc(50% - 8px);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px;
  background: #f6f8f3;
  border: 1px solid #dfe8dc;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(18, 62, 43, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.residential-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 24px 26px;
  background: var(--forest);
  color: #fff;
  border-radius: 16px;
}

.residential-next-step strong { font-family: var(--serif); font-size: 19px; }
.residential-next-step p { margin: 4px 0 0; color: #cbdace; font-size: 14px; }
.residential-next-step .button { flex-shrink: 0; background: var(--leaf); color: var(--forest-2); }

@media (max-width: 620px) {
  .residential-next-step { align-items: flex-start; flex-direction: column; }
  .residential-next-step .button { width: 100%; }
}

.tag-grid-residential > div:nth-child(even) {
  background: #f8f1e7;
  border-color: #ecdfca;
}

.tag-grid-residential > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(18, 62, 43, 0.12);
}

.tag-grid-residential > div::before {
  top: 24px;
  left: 28px;
  width: 10px;
  height: 10px;
  background: var(--leaf);
  box-shadow: 0 0 0 5px rgba(182, 232, 58, 0.18);
}

.tag-grid-residential h3 {
  font-size: 19px;
}

.tag-grid-residential p {
  max-width: 38ch;
}

@media (max-width: 560px) {
  .tag-grid-residential > div {
    flex-basis: 100%;
  }
}
.tag-grid div::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;

}
.tag-grid div:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(18, 62, 43, 0.13);
}

/* Calm tonal variation for the care principles cards. */
.care-card {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.care-card > div {
  flex: 1 1 calc(25% - 14px);
  min-width: 220px;
}

.care-card > div {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid rgba(18, 62, 43, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(18, 62, 43, 0.06);
}

.care-card > div::before {
  top: 24px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: var(--leaf);
  box-shadow: 0 0 0 6px rgba(182, 232, 58, 0.18);
}

.care-card h3 {
  max-width: 18ch;
  margin: 0 0 10px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.care-card p {
  max-width: 34ch;
  margin: 0;
  color: #53675a;
  font-size: 14px;
  line-height: 1.65;
}

.care-card > div:nth-child(odd) { background: #dfeedd; }
.care-card > div:nth-child(even) { background: #f4e3cc; }

.care-card > div:hover {
  border-color: rgba(18, 62, 43, 0.14);
}
.support-card-grid div {
  display: block;
  min-height: 176px;
  padding-top: 48px;
}
.tag-grid.support-card-grid > div::before {
  content: "";
  position: static;
  display: block;
  flex: 0 0 28px;
  margin-bottom: 14px;
  top: 18px;
  left: 22px;
  width: 28px;
  height: 28px;
  border: 1px solid #b6e83a;
  border-radius: 50%;
  background:
    linear-gradient(#123e2b, #123e2b) center / 2px 10px no-repeat,
    linear-gradient(#123e2b, #123e2b) center / 10px 2px no-repeat,
    #b6e83a;
}
.support-card-grid h3 {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.support-card-grid p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.services-section {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding: 88px max(48px, calc((100vw - 1160px) / 2));
  border-radius: 0;
  background-image:
    linear-gradient(rgba(8, 39, 27, 0.76), rgba(8, 39, 27, 0.84)),
    url("Images/About.jpg");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  overflow: hidden;
}

.services-section .section-label {
  color: var(--leaf);
}

.services-section .section-intro > p:last-child {
  color: #e0ebe3;
}
.service-list {
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-item {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 26px;
  background: var(--paper);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(18, 62, 43, 0.09);
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.services-section .service-item {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.services-section .service-item h3 {
  color: #ffffff;
}

.services-section .service-item p {
  color: #e6efe8;
}

.services-section .service-arrow {
  color: var(--leaf);
}

.services-section .service-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(18, 62, 43, 0.14);
}
.service-item h3 {
  margin-top: 24px;
}
.service-item p {
  line-height: 1.7;
}
.service-arrow {
  position: absolute;
  right: 22px;
  top: 22px;
}

.content-grid {
  gap: 64px;
}

/* Three-point residential care infographic */
.section-residentialcare {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
}

.section-residentialcare > div:first-child {
  position: relative;
  padding: 42px 0;
}

.section-residentialcare > div:first-child::after {
  content: "CARE PATHWAY";
  display: block;
  margin-top: 34px;
  color: #789080;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-residentialcare .detail-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 34px 0;
  border: 0;
}

.section-residentialcare .detail-list::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 25%;
  width: 50%;
  height: 1px;
  background: #b9cfad;
}

.section-residentialcare .detail-list > div {
  position: relative;
  z-index: 1;
  min-height: 190px;
  padding: 30px 24px 24px;
  background: #eef5ea;
  border: 1px solid #d8e5d3;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(18, 62, 43, 0.08);
}

.section-residentialcare .detail-list > div:nth-child(2) {
  transform: translateY(66px);
  background: #f4e3cc;
  border-color: #ead4b4;
}

.section-residentialcare .detail-list > div:nth-child(3) {
  grid-column: 1 / -1;
  width: calc(50% - 10px);
  justify-self: center;
  background: #eaf2f3;
  border-color: #d2e2e5;
}

.section-residentialcare .detail-list > div::before {
  content: "";
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--leaf);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 800;
}

.section-residentialcare .detail-list > div:nth-child(1)::before { content: "01"; }
.section-residentialcare .detail-list > div:nth-child(2)::before { content: "02"; }
.section-residentialcare .detail-list > div:nth-child(3)::before { content: "03"; }

.section-residentialcare .detail-list h3 {
  margin: 0 0 8px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
}

.section-residentialcare .detail-list p {
  margin: 0;
  color: #53675a;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .section-residentialcare {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-residentialcare > div:first-child { padding: 0; }
}

@media (max-width: 620px) {
  .section-residentialcare .detail-list {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .section-residentialcare .detail-list::before { display: none; }
  .section-residentialcare .detail-list > div,
  .section-residentialcare .detail-list > div:nth-child(2),
  .section-residentialcare .detail-list > div:nth-child(3) {
    grid-column: auto;
    width: auto;
    transform: none;
  }
}

.content-grid > div:first-child {
  position: sticky;
  top: 118px;
}
.detail-list {
  border: 0;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.detail-list div {
  padding: 22px;
  background: var(--paper);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 9px 26px rgba(18, 62, 43, 0.075);
}
.detail-list h3 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.detail-list p {
  line-height: 1.65;
}

.support-grid {
  align-items: start;
}
.support-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.support-tags span {
  display: flex;
  align-items: center;
  min-height: 72px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(18, 62, 43, 0.06);
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.step {
  min-height: 220px;
  border: 0;
  background: var(--paper);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(18, 62, 43, 0.08);
  position: relative;
}
.step span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8f3d5;
  color: var(--forest);
  font-weight: 800;
}
.step h3 {
  margin-top: 28px;
}
.admission-detail .steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.admission-detail {
  padding-top: 80px;
}

.team-grid {
  background: var(--paper);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 16px 45px rgba(18, 62, 43, 0.1);
  gap: 58px;
}
.team-section {
  background: #eef3e9;
}
.governance-section > div {
  background: var(--paper);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(18, 62, 43, 0.08);
}
.emergency {
  margin: 0;
  padding: 12px 0;
}
.emergency-inner {
  background: #fff8eb;
  border-radius: 14px;
  padding: 22px 24px;
}

@media (max-width: 980px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .admission-detail .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 860px) {
  .content-grid > div:first-child {
    position: static;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    padding: 18px;
  }
}
@media (max-width: 620px) {
  .service-list,
  .support-tags,
  .steps,
  .admission-detail .steps {
    grid-template-columns: 1fr;
  }
  .service-item,
  .step {
    min-height: auto;
  }
  .tag-grid div {
    min-height: 88px;
  }
  .quick-answers {
    padding: 24px 0;
  }

  .services-section {
    width: 100vw;
    padding: 60px 18px;
    border-radius: 0;
  }
}
.page-hero {
  padding: 92px 0 84px;
  background-image:
    linear-gradient(rgba(8, 39, 27, 0.78), rgba(8, 39, 27, 0.86)),
    url("Images/About.jpg");
  background-position: center;
  background-size: cover;
  color: white;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 820px;
  margin: 18px 0 24px;
}
.page-hero p:not(.section-label) {
  color: #c5d6ca;
  font-size: 19px;
  max-width: 600px;
}
.page-hero .section-label {
  color: var(--leaf);
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.page-hero-about { background-image: linear-gradient(rgba(8, 39, 27, 0.78), rgba(8, 39, 27, 0.86)), url("Images/Who We Support.jpg"); }
.content-grid h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
}
.content-grid p {
  color: var(--muted);
  font-size: 17px;
}
.detail-list {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.detail-list div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.detail-list h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
}
.detail-list p {
  font-size: 14px;
  margin: 0;
}
.page-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 18px;
}
.quote-band {
  background: #e6eee3;
  padding: 75px 0;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 850px;
  margin: 0;
  color: var(--forest);
}
.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.tag-grid div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  font-family: var(--serif);
  font-weight: 700;
}
.form-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.contact-card {
  background: var(--forest);
  color: white;
  border-radius: 18px;
  padding: 38px;
  box-shadow: 0 18px 42px rgba(18, 62, 43, 0.14);
}
.contact-card h2 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 20px;
}
.contact-card p {
  color: #c5d6ca;
}
.contact-card a {
  color: var(--leaf);
  font-family: var(--serif);
  font-size: 22px;
  display: block;
  margin: 12px 0;
}
.enquiry-form {
  display: grid;
  gap: 18px;
  padding: 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(18, 62, 43, 0.08);
}
.enquiry-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
}
.enquiry-form input,
.enquiry-form textarea,
.enquiry-form select {
  width: 100%;
  border: 1px solid #b9c9bc;
  border-radius: 10px;
  background: #fff;
  padding: 13px 14px;
  margin-top: 6px;
  font: inherit;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.enquiry-form input:focus,
.enquiry-form textarea:focus,
.enquiry-form select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(182, 232, 58, 0.28);
}
.enquiry-form textarea {
  min-height: 130px;
  resize: vertical;
}
.enquiry-form small {
  color: var(--muted);
  font-size: 12px;
}
  .footer-brand img {
  background: transparent;
}

/* Scroll reveals: the page remains legible before the observer runs. */
.js .scroll-reveal {
  opacity: 0.01;
  transform: translate3d(0, 22px, 0);
  filter: blur(5px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .scroll-reveal,
  .js .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition-duration: 180ms;
    transition-delay: 0ms;
  }
}
@media (max-width: 860px) {
  .content-grid,
  .form-wrap {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .tag-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-hero {
    padding: 68px 0;
  }
  .page-image {
    height: 350px;
  }
}
@media (max-width: 520px) {
  .tag-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 49px;
  }
  .page-hero p:not(.section-label) {
    font-size: 17px;
  }
  .content-grid h2 {
    font-size: 37px;
  }
}

/* Final values-grid composition overrides the shared tag styles. */
.tag-grid.values-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.values-section {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(48px, calc((100vw - 1160px) / 2));
  background: var(--forest);
  color: #ffffff;
}
.values-section .section-label,
.values-section h2 {
  color: #ffffff;
}
.values-section .tag-grid.values-grid > div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.values-section .tag-grid.values-grid > div:nth-child(2n),
.values-section .tag-grid.values-grid > div:nth-child(3n) {
  background: rgba(255, 255, 255, 0.1);
}
.values-section .tag-grid.values-grid > div:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}
.values-section .tag-grid.values-grid strong { color: #ffffff; }
.values-section .tag-grid.values-grid small { color: #d8e8dc; }
.values-section .tag-grid.values-grid .value-mark { color: var(--leaf); }

.residential-section {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(48px, calc((100vw - 1160px) / 2));
  background-image: url("Images/dandellion.png");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}
.residential-section h2 { color: var(--forest); }
.residential-section .section-label { color: #4f7d4b; }
.residential-section p { color: var(--forest); }

.residential-support {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(48px, calc((100vw - 1160px) / 2));
  background: var(--forest);
  color: #ffffff;
}
.residential-support h2,
.residential-support h3,
.residential-support .section-label { color: #ffffff; }
.residential-support p { color: #dce9df; }
.residential-support .tag-grid-residential > div {
  position: relative;
  flex: 1 1 0;
  min-height: 228px;
  justify-content: flex-start;
  padding: 62px 26px 26px;
  background: #fffdf8;
  border-color: #fffdf8;
  box-shadow: 0 12px 28px rgba(5, 31, 20, 0.16);
}
.residential-support .tag-grid-residential > div:nth-child(even) {
  background: #f2f7ee;
  border-color: #f2f7ee;
}
.residential-support .tag-grid-residential h3 { color: var(--forest); }
.residential-support .tag-grid-residential p { color: #51685a; }
.residential-support .tag-grid-residential > div::before {
  content: counter(residential-card, decimal-leading-zero);
  counter-increment: residential-card;
  position: absolute;
  top: 24px;
  left: 26px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid #b6e83a;
  border-radius: 50%;
  background: #e8f3d5;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  box-shadow: none;
}
.residential-support .tag-grid-residential { counter-reset: residential-card; }
.residential-support .tag-grid-residential > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(5, 31, 20, 0.22);
}
@media (max-width: 620px) {
  .residential-support .tag-grid-residential > div { flex-basis: 100%; }
}
.residential-support .residential-next-step {
  background: #e5f1d1;
  color: var(--forest);
}
.residential-support .residential-next-step p { color: #51685a; }

@media (max-width: 620px) {
  .residential-support { padding-inline: 18px; }
}

@media (max-width: 620px) {
  .residential-section { padding-inline: 18px; }
}

@media (max-width: 620px) {
  .values-section {
    padding-inline: 18px;
  }
}
.tag-grid.values-grid > div {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
  padding: 58px 22px 22px;
  text-align: left;
}
.tag-grid.values-grid > div::before {
  top: -28px;
  right: -18px;
  left: auto;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(182, 232, 58, 0.45);
  border-radius: 50%;
  background: none;
}
.tag-grid.values-grid .value-mark {
  top: 20px;
  left: 22px;
  color: #789080;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
}
.tag-grid.values-grid strong,
.tag-grid.values-grid small {
  display: block;
  width: auto;
  max-width: 100%;
  text-align: left;
}
.tag-grid.values-grid strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.tag-grid.values-grid small {
  max-width: 23ch;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}
@media (max-width: 620px) {
  .tag-grid.values-grid { grid-template-columns: 1fr; }
  .tag-grid.values-grid > div { min-height: 140px; padding-top: 54px; }
}
