:root {
  --pine: #0b3d24;
  --forest: #0f512e;
  --leaf: #1f7a3c;
  --lime: #7ac943;
  --cream: #f7f1dc;
  --burgundy: #4a0d14;
  --ink: #111713;
}

html { scroll-behavior: smooth; }
body { background: #f8faf7; color: var(--ink); }
::selection { background: var(--lime); color: #07130b; }

.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 2;
}

.grid-fade {
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 92%);
}

.glass {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 18px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}

.nav-link {
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--lime); }

.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::before {
  content: "";
  position: absolute;
  inset: -80% -50%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.42) 50%, transparent 65%);
  transform: translateX(-70%) rotate(10deg);
  transition: transform .65s ease;
  z-index: -1;
}
.btn-shine:hover::before { transform: translateX(70%) rotate(10deg); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1);
}
.reveal.reveal-left { transform: translateX(-34px); }
.reveal.reveal-right { transform: translateX(34px); }
.reveal.reveal-scale { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

.stagger > * { opacity: 0; transform: translateY(24px); }
.stagger.is-visible > * { animation: rise .62s cubic-bezier(.2,.8,.2,1) forwards; }
.stagger.is-visible > *:nth-child(2) { animation-delay: .08s; }
.stagger.is-visible > *:nth-child(3) { animation-delay: .16s; }
.stagger.is-visible > *:nth-child(4) { animation-delay: .24s; }
.stagger.is-visible > *:nth-child(5) { animation-delay: .32s; }
.stagger.is-visible > *:nth-child(6) { animation-delay: .40s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.float-slow { animation: floaty 5.8s ease-in-out infinite; }
.float-slower { animation: floaty 7.8s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

.pulse-ring { animation: pulseRing 2.2s ease-out infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(122,201,67,.45); } 75%,100% { box-shadow: 0 0 0 18px rgba(122,201,67,0); } }

.service-card {
  transform-style: preserve-3d;
  transition: transform .18s ease, box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,50%), rgba(122,201,67,.14), transparent 42%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { box-shadow: 0 22px 55px rgba(11,61,36,.15); border-color: rgba(31,122,60,.35); }
.service-card > * { transform: translateZ(18px); }

.photo-frame { position: relative; }
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 2px solid rgba(122,201,67,.8);
  border-radius: 1.6rem;
  z-index: -1;
  transition: transform .4s ease;
}
.photo-frame:hover::before { transform: translate(-6px,-6px); }

.road-dash {
  background-image: repeating-linear-gradient(90deg, rgba(122,201,67,.95) 0 38px, transparent 38px 72px);
  animation: roadMove 2.8s linear infinite;
}
@keyframes roadMove { to { background-position: 72px 0; } }

.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; min-width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--lime), #d7ff9f);
  box-shadow: 0 0 16px rgba(122,201,67,.65);
}

#preloader {
  animation: preloaderFallback .5s ease 2.2s forwards;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; transform: scale(1.02); }
@keyframes preloaderFallback { to { opacity: 0; visibility: hidden; } }
.gear-spin { animation: gearSpin 1.4s linear infinite; }
@keyframes gearSpin { to { transform: rotate(360deg); } }

.mobile-panel { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease; }
.mobile-panel.is-open { max-height: 380px; opacity: 1; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.is-open .faq-answer { max-height: 280px; }
.faq-item.is-open .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .3s ease; }

.phone-glow { position: relative; }
.phone-glow::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  filter: blur(20px);
  background: rgba(122,201,67,.24);
  z-index: -1;
}

.mask-gradient { mask-image: linear-gradient(to bottom, black 75%, transparent 100%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================
   DARK GREEN THEME / CONTRAST PASS
   Keeps the site in the Green Machine brand while ensuring
   all content remains readable on every section and card.
   ========================================================== */
:root {
  --pine: #071f13;
  --forest: #0b2e1c;
  --deep-green: #06150d;
  --panel-green: #0c2a1a;
  --card-green: #103521;
  --card-green-2: #143d27;
  --leaf-bright: #a7e36d;
  --lime: #8ddd55;
  --cream: #f7f2df;
  --ink: #eef5ef;
}

body {
  background: var(--deep-green);
  color: var(--cream);
}

/* Main page surfaces */
main section.bg-white,
main [class~="bg-white"] {
  background-color: var(--panel-green) !important;
}

main [class~="bg-[#edf5eb]"] {
  background-color: #092418 !important;
}

main [class~="bg-[#f8fbf7]"] {
  background-color: var(--card-green) !important;
}

main [class~="bg-cream"] {
  background-color: var(--card-green-2) !important;
}

/* Darken brand sections further for stronger visual hierarchy */
main [class~="bg-pine"] {
  background-color: #061c11 !important;
}

header.bg-pine\/95,
header [class~="bg-pine"] {
  background-color: rgba(6, 28, 17, .97) !important;
}

/* Readable type on dark surfaces */
main .text-pine {
  color: var(--cream) !important;
}

main .text-leaf {
  color: var(--leaf-bright) !important;
}

main [class*="text-ink/"] {
  color: rgba(238, 245, 239, .78) !important;
}

main .text-pine\/75 {
  color: rgba(247, 242, 223, .78) !important;
}

/* Keep lime buttons dark-on-light for maximum contrast */
main .bg-lime.text-pine,
header .bg-lime.text-pine,
footer .bg-lime.text-pine,
.bg-lime.text-pine {
  color: #06180f !important;
}

/* Cards, bordered callouts and form controls */
main [class~="border-pine/10"],
main [class~="border-pine/15"] {
  border-color: rgba(255,255,255,.13) !important;
}

main [class~="ring-pine/10"] {
  --tw-ring-color: rgba(255,255,255,.13) !important;
}

.service-card {
  background: linear-gradient(145deg, #103521, #0b2a1b) !important;
  border-color: rgba(167, 227, 109, .15) !important;
}

.service-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,.34), 0 0 0 1px rgba(141,221,85,.18);
  border-color: rgba(141,221,85,.45) !important;
}

/* White utility cards become deep green cards instead of light boxes */
main div.bg-white,
main article.bg-white {
  background-color: #0f3220 !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* Inputs / textareas: dark, clear and accessible */
input,
textarea,
select {
  background: #071f13 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.22) !important;
}
input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,.52) !important;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--lime) !important;
  box-shadow: 0 0 0 3px rgba(141,221,85,.16) !important;
}

/* Slightly brighter muted white text for readability */
main .text-white\/55 { color: rgba(255,255,255,.72) !important; }
main .text-white\/60 { color: rgba(255,255,255,.76) !important; }
main .text-white\/65 { color: rgba(255,255,255,.80) !important; }
main .text-white\/68 { color: rgba(255,255,255,.82) !important; }
main .text-white\/70 { color: rgba(255,255,255,.84) !important; }
main .text-white\/72 { color: rgba(255,255,255,.86) !important; }
main .text-white\/80 { color: rgba(255,255,255,.90) !important; }
main .text-white\/85 { color: rgba(255,255,255,.94) !important; }

/* Keep footer dark and readable */
footer {
  background: #030c07 !important;
}
footer .text-white\/40 { color: rgba(255,255,255,.62) !important; }
footer .text-white\/55 { color: rgba(255,255,255,.72) !important; }
footer .text-white\/65 { color: rgba(255,255,255,.78) !important; }

/* Give image blocks a stronger dark-theme frame */
.photo-frame img,
main img.rounded-\[2rem\] {
  box-shadow: 0 24px 70px rgba(0,0,0,.42) !important;
}

/* Accessible hover/focus treatment */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
