/* cursor: none is not a Tailwind utility */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  #cur,
  #cur-ring {
    display: none !important;
  }
}

/* Custom cursor elements */
#cur {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: multiply;
}
#cur-dot {
  width: 10px;
  height: 10px;
  background: #22a264;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s;
}
#cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  width: 38px;
  height: 38px;
  border: 1.5px solid #22a264;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s;
  opacity: 0;
}
body:hover #cur-ring {
  opacity: 1;
}
.c-grow #cur-dot {
  width: 56px;
  height: 56px;
  background: rgba(34, 162, 100, 0.12);
}
.c-grow #cur-ring {
  width: 0;
  height: 0;
  opacity: 0;
}

/* Noise overlay — pseudo-element, can't do with Tailwind alone */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* Nav link underline — pseudo-element */
.nl {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #2d4a38;
  transition: color 0.2s;
  cursor: none;
}
.nl::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #22a264;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nl:hover {
  color: #22a264;
}
.nl:hover::after {
  width: 100%;
}

/* Heading underline accent — pseudo-element */
.ha {
  position: relative;
  display: inline-block;
}
.ha::after {
  content: "";
  position: absolute;
  bottom: -0.08em;
  left: 0;
  width: 100%;
  height: 0.065em;
  background: linear-gradient(90deg, #22a264, #b3e7ca);
  border-radius: 1em;
}

/* Testimonial opening quote — pseudo-element */
.tc::before {
  content: "\201C";
  font-family: "Cormorant Garamond", serif;
  font-size: 9rem;
  color: #b3e7ca;
  position: absolute;
  top: -2rem;
  left: 0.75rem;
  line-height: 1;
  pointer-events: none;
}

/* Stats cross-pattern bg — can't use Tailwind bg-image with opacity overlay cleanly */
.ss-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Footer gradient divider — pseudo-approach not feasible with Tailwind */
.fdiv {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

/* Scroll cue line keyframe is in tailwind config but transform-origin mid-animation needs @keyframes */
.scl {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, #22a264, transparent);
  animation: scrollcue 2.2s ease-in-out infinite;
}

/* Split-word reveal */
.sw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.si {
  display: inline-block;
  transform: translateY(110%) rotate(3deg);
  opacity: 0;
  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s;
}
.sw.in .si {
  transform: none;
  opacity: 1;
}

/* Fade/slide-in observers */
.fu {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fl {
  opacity: 0;
  transform: translateX(-44px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fr {
  opacity: 0;
  transform: translateX(44px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.in {
  opacity: 1 !important;
  transform: none !important;
}
.d1 {
  transition-delay: 0.1s !important;
}
.d2 {
  transition-delay: 0.2s !important;
}
.d3 {
  transition-delay: 0.3s !important;
}
.d4 {
  transition-delay: 0.4s !important;
}
.d5 {
  transition-delay: 0.5s !important;
}

/* Hero BG scale reveal */
.hbg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1800&q=90&fit=crop")
    center/cover no-repeat;
  transform: scale(1.06);
  transition: transform 7s ease;
  will-change: transform;
}
.hbg.rdy {
  transform: scale(1);
}

/* Service card image hover */
.sc:hover .sci {
  transform: scale(1.07);
}
.sci {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dc:hover .diw img {
  transform: scale(1.06);
}
.diw img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.aim:hover img {
  transform: scale(1.04);
}
.aim img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gi:hover img {
  transform: scale(1.06);
}
.gi img {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.gi:hover .gov {
  opacity: 1;
}

/* Process card number colour on hover */
.pc:hover .pnum {
  color: #22a264;
}

/* Contact info icon hover */
.ci:hover .cii {
  background: #22a264;
  transform: scale(1.1);
}
.ci:hover .cii svg {
  color: #fff !important;
}

/* Row service card image hover */
.sc-row:hover .sci-row {
  transform: scale(1.05);
}
.sci-row {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
