:root {
  --kc-green: #009600;
  --kc-green-deep: #005f00;
  --kc-green-soft: #dbf2d7;
  --kc-ink: #182417;
  --kc-muted: #4f6050;
  --kc-card: #ffffff;
  --kc-border: rgba(20, 58, 22, 0.16);
  --kc-shadow: 0 14px 34px rgba(19, 44, 22, 0.11);
  --kc-shadow-soft: 0 10px 26px rgba(19, 44, 22, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body.public-site {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--kc-ink);
  background:
    radial-gradient(1200px 650px at -12% -16%, rgba(0, 150, 0, 0.15), transparent 52%),
    radial-gradient(1000px 680px at 115% 0%, rgba(0, 150, 0, 0.11), transparent 55%),
    linear-gradient(180deg, #f2f8f0 0%, #f8fcf6 52%, #f4f8f3 100%);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.012em;
  line-height: 1.16;
}

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

p {
  color: #2d3b2f;
  font-size: 1.13rem;
  line-height: 1.72;
}

a {
  color: var(--kc-green-deep);
  text-underline-offset: 0.16em;
}

.public-main {
  position: relative;
  z-index: 2;
}

.bg-orb {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 440px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.28;
  animation: float-orb 18s ease-in-out infinite;
}

.orb-one {
  top: -120px;
  left: -100px;
  background: radial-gradient(circle at 28% 28%, rgba(63, 170, 62, 0.34), rgba(63, 170, 62, 0));
}

.orb-two {
  top: 280px;
  right: -140px;
  background: radial-gradient(circle at 65% 22%, rgba(90, 215, 90, 0.25), rgba(90, 215, 90, 0));
  animation-delay: -7s;
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
  will-change: transform, opacity;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(170%) blur(10px);
  background: rgba(248, 252, 247, 0.9);
  border-bottom: 1px solid var(--kc-border);
}

.site-header .navbar {
  min-height: 86px;
  position: relative;
  z-index: 2;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(58vw, 280px);
}

.nav-link {
  color: var(--kc-ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.58rem 1.05rem;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--kc-green-deep);
  background: rgba(0, 150, 0, 0.11);
}

.nav-link.nav-pill {
  border: 1px solid rgba(0, 150, 0, 0.39);
}

.hero-banner {
  position: relative;
  min-height: clamp(310px, 46vw, 450px);
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(8, 23, 10, 0.63), rgba(5, 25, 8, 0.18) 60%, rgba(5, 25, 8, 0.36)),
    linear-gradient(180deg, rgba(8, 23, 10, 0.08), rgba(8, 23, 10, 0.48));
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(3.5rem, 9vw, 6.3rem);
}

.hero-banner-content h1 {
  max-width: 680px;
  color: #c7ff9f;
  font-size: clamp(2.25rem, 6.5vw, 5.1rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.hero-banner-content p {
  color: rgba(237, 255, 229, 0.92);
  max-width: 660px;
  font-size: clamp(1.02rem, 1.8vw, 1.35rem);
}

.hero-wrap {
  padding: 0 0 2.7rem;
}

.hero-surface {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 1.45rem;
}

.hero-copy,
.hero-story,
.hero-highlight,
.service-card,
.contact-card,
.download-panel,
.search-shell,
.about-panel,
.what-we-do,
.about-photo-wrap,
.gallery-card {
  background: var(--kc-card);
  border: 1px solid var(--kc-border);
  border-radius: 1.15rem;
  box-shadow: var(--kc-shadow-soft);
}

.hero-copy,
.hero-story {
  padding: clamp(1.25rem, 2.2vw, 1.9rem);
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--kc-green-deep);
  font-weight: 800;
  margin-bottom: 0.62rem;
}

.hero-copy h2 {
  font-size: clamp(1.95rem, 3.2vw, 3rem);
  margin-bottom: 0.9rem;
}

.hero-body {
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.78rem;
}

.btn-kc-primary,
.btn-kc-secondary {
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-kc-primary {
  background: var(--kc-green);
  color: #ffffff;
}

.btn-kc-primary:hover {
  background: #007a00;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-kc-secondary {
  background: #ffffff;
  border-color: rgba(0, 150, 0, 0.36);
  color: var(--kc-green-deep);
}

.btn-kc-secondary:hover {
  background: rgba(0, 150, 0, 0.07);
  transform: translateY(-1px);
}

.hero-story {
  display: grid;
  gap: 0.95rem;
}

.hero-story-image-wrap {
  margin: 0;
  overflow: hidden;
  border-radius: 0.95rem;
}

.hero-story-image {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.hero-story:hover .hero-story-image {
  transform: scale(1.06);
}

.hero-highlight {
  padding: 1rem;
  background: linear-gradient(170deg, #ffffff, #f7fdf5 65%);
}

.hero-highlight h2 {
  margin-bottom: 0.42rem;
}

.hero-highlight p {
  font-size: 1.05rem;
}

.content-section {
  padding: 1.5rem 0 3.7rem;
}

.content-section-spacious {
  padding-bottom: 5.2rem;
}

.section-title {
  margin-bottom: 1.45rem;
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.service-card,
.about-panel,
.contact-card,
.download-panel,
.search-shell,
.what-we-do {
  padding: clamp(1.1rem, 2.1vw, 1.5rem);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.service-card:hover,
.about-panel:hover,
.contact-card:hover,
.download-panel:hover,
.search-shell:hover,
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--kc-shadow);
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
}

.service-card p,
.about-panel p,
.contact-card p,
.what-we-do p {
  max-width: 70ch;
}

.service-subtitle {
  margin-bottom: 0.65rem;
  color: var(--kc-green-deep);
  font-weight: 800;
}

.what-we-do-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}

.what-we-do-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 0.9rem;
  border: 1px solid rgba(10, 55, 12, 0.14);
}

.page-header {
  padding: 3.6rem 0 1.4rem;
}

.page-header-large {
  padding-top: clamp(3rem, 8vw, 5.3rem);
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0.45rem;
}

.page-header p {
  color: var(--kc-muted);
  margin-bottom: 0;
  font-size: 1.2rem;
}

.about-grid {
  display: grid;
  gap: 1rem;
}

.about-panel h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 0.55rem;
}

.about-panel-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: center;
}

.about-photo-wrap {
  margin: 0;
  overflow: hidden;
}

.about-photo-wrap img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.about-panel-highlight {
  background: linear-gradient(160deg, rgba(0, 150, 0, 0.16), rgba(255, 255, 255, 0.94));
}

.gallery-grid {
  display: grid;
  gap: 1.05rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 58, 19, 0.6), rgba(16, 58, 19, 0.05) 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.8s ease;
}

.gallery-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.72rem 0.9rem;
  background: rgba(242, 248, 239, 0.95);
  color: #325438;
  border-radius: 0.4rem;
  font-size: 1.02rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.gallery-card:hover img {
  transform: scale(1.07);
}

.gallery-card:hover::after,
.gallery-card:hover .gallery-caption {
  opacity: 1;
}

.gallery-card:hover .gallery-caption {
  transform: translateY(0);
}

.contact-card h2 {
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  margin-bottom: 0.35rem;
}

.contact-photo-wrap {
  margin: 0 0 1rem;
  border-radius: 0.9rem;
  overflow: hidden;
}

.contact-photo-wrap img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.contact-map-wrap {
  margin: 0.9rem 0 1rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(17, 54, 19, 0.21);
  box-shadow: var(--kc-shadow-soft);
}

.contact-map-wrap iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

.download-panel {
  max-width: 760px;
}

.download-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.65rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.78rem;
  margin-top: 1.2rem;
}

.download-store-button {
  min-width: 190px;
  text-align: center;
}

.contact-form .form-control,
.stock-form .form-control,
.stock-form .form-select {
  border-radius: 0.74rem;
  border: 1px solid rgba(17, 54, 19, 0.21);
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
}

.public-updates-banner {
  background: #e8fff1;
  border-bottom: 1px solid rgba(0, 150, 0, 0.24);
  color: #12411a;
  font-weight: 700;
  padding: 0.58rem 0;
}

.public-updates-banner.severity-warning {
  background: #fff7d8;
  border-bottom-color: rgba(128, 85, 0, 0.24);
  color: #5e4300;
}

.public-updates-banner.severity-critical {
  background: #ffe4e4;
  border-bottom-color: rgba(150, 0, 0, 0.28);
  color: #7a0b0b;
}

.public-updates-banner a {
  margin-left: 0.5rem;
  font-weight: 800;
}

.search-meta {
  color: var(--kc-muted);
  font-size: 1rem;
}

.search-results {
  display: grid;
  gap: 0.92rem;
}

.stock-result {
  border: 1px solid rgba(0, 100, 0, 0.2);
  border-radius: 0.95rem;
  padding: 1.05rem;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stock-result:hover {
  transform: translateY(-3px);
  box-shadow: var(--kc-shadow-soft);
}

.stock-result h3 {
  margin-bottom: 0.28rem;
  font-size: 1.3rem;
}

.stock-result .meta {
  color: var(--kc-muted);
  margin-bottom: 0.58rem;
  font-size: 1.03rem;
}

.stock-result .notes,
.stock-result .extra {
  margin-bottom: 0.52rem;
  color: #274a2d;
  font-size: 0.98rem;
}

.stock-result .search-hit {
  background: rgba(255, 217, 77, 0.48);
  border-radius: 0.18rem;
  color: inherit;
  font-weight: 800;
  padding: 0 0.08rem;
}

.stock-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin-top: 0.65rem;
}

.stock-links a {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(0, 150, 0, 0.26);
  padding: 0.32rem 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.stock-links a:hover {
  background: rgba(0, 150, 0, 0.08);
}

.site-footer {
  margin-top: 3.6rem;
  padding: 2.4rem 0;
  background: linear-gradient(140deg, #0d1f0f 0%, #103314 85%);
  color: #e8f3e6;
}

.site-footer h2 {
  font-size: 1.2rem;
  margin-bottom: 0.82rem;
}

.site-footer p {
  color: #d7e8d6;
  font-size: 1.05rem;
  line-height: 1.6;
}

.site-footer a {
  color: #9bed9b;
}

.footer-brand-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin-bottom: 0.78rem;
  border-radius: 0.45rem;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 26px, 0);
  }
}

@media (max-width: 1199px) {
  .hero-surface {
    grid-template-columns: 1fr;
  }

  .hero-story-image {
    height: 320px;
  }

  .what-we-do-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 991px) {
  .hero-banner-content {
    padding-top: 2.7rem;
  }

  .hero-banner {
    min-height: 300px;
  }

  .about-panel-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  .brand-logo {
    height: 46px;
    max-width: min(64vw, 240px);
  }

  p {
    font-size: 1.04rem;
    line-height: 1.62;
  }

  .hero-body,
  .hero-highlight p {
    line-height: 1.62;
  }

  .section-title {
    margin-bottom: 1rem;
  }

  .contact-photo-wrap img,
  .what-we-do-grid img,
  .hero-story-image,
  .about-photo-wrap img {
    height: 220px;
  }

  .download-actions {
    display: grid;
  }

  .download-store-button {
    min-width: 0;
    width: 100%;
  }

  .contact-map-wrap iframe {
    height: 220px;
  }

  .site-footer {
    margin-top: 2.6rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    aspect-ratio: 16 / 11;
  }

  .gallery-caption {
    opacity: 1;
    transform: none;
  }
}

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

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
