/* Motion supports orientation and feedback without changing the care-first theme. */
:root {
  --motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-height: 86px;
}
html {
  scroll-padding-top: calc(var(--header-height) + 18px);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}
.site-header.is-scrolled {
  background: #fffdf6f5;
  box-shadow: 0 5px 25px #163a2512;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 80;
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #006a35, #64a35b 55%, #f68024);
  transform: scaleX(0);
  transform-origin: left;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--motion-ease);
}
.primary-nav a.active::after,
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}
.primary-nav a,
.primary-nav button {
  transition: color 0.2s;
}
.brand-mark {
  transition: transform 0.35s var(--motion-ease);
}
.brand:hover .brand-mark {
  transform: rotate(-5deg);
}
.menu-toggle .icon {
  transition: transform 0.25s;
}
.menu-toggle[aria-expanded="true"] .icon {
  transform: rotate(90deg);
}
.hero-art > img {
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.035);
  transform-origin: center;
}
.motion-ready .hero-copy > * {
  animation: hero-enter 0.8s var(--motion-ease) backwards;
}
.motion-ready .hero-copy h1 {
  animation-delay: 80ms;
}
.motion-ready .hero-description {
  animation-delay: 160ms;
}
.motion-ready .hero-buttons {
  animation-delay: 240ms;
}
.motion-ready .hero-art {
  animation: photo-enter 1s ease both;
}
.motion-ready [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 0.65s var(--motion-ease) var(--reveal-delay, 0ms),
    translate 0.65s var(--motion-ease) var(--reveal-delay, 0ms),
    transform 0.3s var(--motion-ease),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.motion-ready [data-reveal].is-revealed,
.motion-ready [data-reveal]:focus-within {
  opacity: 1;
  translate: 0 0;
}
.service-card,
.testimonial {
  position: relative;
  isolation: isolate;
}
.service-card::before,
.testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    240px circle at var(--pointer-x, 50%) var(--pointer-y, 30%),
    #ffd08a3d,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.35s;
}
.service-icon,
.round-icon {
  transition:
    transform 0.35s var(--motion-ease),
    box-shadow 0.35s ease;
}
.service-card:focus-within {
  border-color: #80ac74;
  box-shadow: 0 8px 24px #005a2710;
}
.service-card:focus-within .service-icon {
  transform: translateY(-3px);
}
.text-link .icon,
.button .icon,
.button-small .icon {
  transition: transform 0.25s var(--motion-ease);
}
.text-link:hover .icon,
.text-link:focus-visible .icon {
  transform: translateX(4px);
}
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s var(--motion-ease),
    box-shadow 0.25s ease,
    background-color 0.25s;
}
.button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -75%;
  width: 45%;
  background: linear-gradient(90deg, transparent, #ffffff4d, transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.button:active {
  transform: translateY(0) scale(0.975);
}
.button-ripple {
  position: absolute;
  border-radius: 50%;
  background: #ffffff55;
  pointer-events: none;
  z-index: 1;
  animation: button-ripple 0.65s ease-out both;
}
.steps li .round-icon {
  position: relative;
}
.steps li .round-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #95b784;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.step-number {
  transition:
    background-color 0.25s,
    transform 0.25s;
}
.steps li:hover .round-icon::after {
  opacity: 1;
  transform: scale(1);
}
.steps li:hover .step-number {
  background: var(--orange);
  transform: scale(1.08);
}
.contact-details > a .round-icon {
  transition:
    transform 0.3s,
    background-color 0.3s;
}
.contact-details > a:hover .round-icon {
  transform: translateX(4px);
  background: #fce7c4;
}
.contact-field label {
  transition: color 0.2s;
}
.contact-field:focus-within label,
.contact-field.has-value label {
  color: #007343;
}
.contact-field.has-value:not(:focus-within) input:not([aria-invalid="true"]),
.contact-field.has-value:not(:focus-within) select:not([aria-invalid="true"]),
.contact-field.has-value:not(:focus-within)
  textarea:not([aria-invalid="true"]) {
  border-color: #9eb999;
}
.contact-submit[disabled] .icon {
  animation: sending-arrow 0.7s ease-in-out 3;
}
.form-status:not([hidden]) {
  animation: status-enter 0.3s var(--motion-ease);
}
.modal[open] {
  animation: dialog-enter 0.28s var(--motion-ease);
}
.modal[open]::backdrop {
  animation: photo-enter 0.2s ease;
}
.faq-modal summary {
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-modal summary::-webkit-details-marker {
  display: none;
}
.faq-modal summary::after {
  content: "+";
  position: absolute;
  top: -2px;
  right: 3px;
  color: var(--green);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.25s;
}
.faq-modal details[open] summary::after {
  transform: rotate(45deg);
}
.faq-modal details[open] > p {
  animation: status-enter 0.25s ease;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #ffffffa6;
  border-radius: 50%;
  background: #00673c;
  color: white;
  box-shadow: 0 5px 20px #003d3226;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  cursor: pointer;
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s,
    background-color 0.25s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #f16b14;
  transform: translateY(-3px);
}
.back-to-top:focus-visible {
  outline: 3px solid #eea239;
  outline-offset: 4px;
}
.back-to-top svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .testimonial:hover {
    transform: perspective(850px) translateY(-6px) rotateX(var(--tilt-x, 0deg))
      rotateY(var(--tilt-y, 0deg));
    box-shadow: 0 12px 28px #7a652c15;
    border-color: #e8bf86;
  }
  .service-card:hover::before,
  .testimonial:hover::before {
    opacity: 1;
  }
  .service-card:hover .service-icon {
    transform: translateY(-3px) rotate(-5deg) scale(1.04);
  }
  .benefit:hover .round-icon {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px #4f713216;
  }
  .steps li:hover > .round-icon {
    transform: translateY(-4px);
  }
  .button:hover::after {
    animation: button-sheen 0.65s ease;
  }
  .button:hover > .icon:last-child {
    transform: translateX(3px);
  }
  .button:hover > .icon:first-child {
    transform: rotate(-8deg);
  }
}
@media (max-width: 900px) {
  .primary-nav.is-open {
    animation: menu-enter 0.23s var(--motion-ease);
  }
}
@media (max-width: 580px) {
  .back-to-top {
    right: 15px;
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    width: 43px;
    height: 43px;
  }
  .motion-ready [data-reveal] {
    translate: 0 16px;
  }
  .motion-ready [data-reveal].is-revealed,
  .motion-ready [data-reveal]:focus-within {
    translate: 0 0;
  }
  .hero-art > img {
    transform: none;
  }
}
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes photo-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes button-sheen {
  to {
    left: 135%;
  }
}
@keyframes button-ripple {
  from {
    opacity: 0.65;
    transform: scale(0);
  }
  to {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes menu-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes status-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes sending-arrow {
  50% {
    transform: translateX(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .motion-ready [data-reveal] {
    opacity: 1;
    translate: none;
  }
  .hero-art > img,
  .service-card:hover,
  .testimonial:hover,
  .button:hover,
  .brand:hover .brand-mark {
    transform: none;
  }
  .button::after,
  .button-ripple {
    display: none;
  }
}
