/* ==========================================================================
   PRIMERAD INTEGRATED SERVICES — stylesheet
   Palette derived from the brand logo: deep slate navy + olive/sage green + cream
   ========================================================================== */

:root {
  --color-navy: #2b3a3a;
  --color-navy-dark: #1c2727;
  --color-green: #6b8e3f;
  --color-green-dark: #52702f;
  --color-green-light: #8fb35c;
  --color-cream: #f7f3e6;
  --color-cream-dark: #eee6cf;
  --color-white: #ffffff;
  --color-text: #2a2f2a;
  --color-text-muted: #5c6560;
  --color-border: #e2ddc9;

  /* Semantic surface/text tokens — these are what actually flip in dark mode */
  --bg: var(--color-white);
  --bg-alt: var(--color-cream);
  --surface: var(--color-white);
  --field-bg: var(--color-cream);
  --text-heading: var(--color-navy-dark);
  --text-body: var(--color-text);
  --text-muted: var(--color-text-muted);
  --border-color: var(--color-border);

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1800px;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(28, 39, 39, 0.08);
  --shadow-lg: 0 12px 32px rgba(28, 39, 39, 0.14);
  --transition: 0.25s ease;
  --header-h: 84px;
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
}

:root[data-theme="dark"] {
  --bg: #161f1e;
  --bg-alt: #1b2423;
  --surface: #212b2a;
  --field-bg: #263130;
  --text-heading: #f3f5ef;
  --text-body: #d9ddd5;
  --text-muted: #a6b0a4;
  --border-color: #34403d;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-green-dark);
  margin-bottom: 0.75em;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border-color);
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p { margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--text-heading);
}

.btn-outline:hover {
  background: var(--text-heading);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn:not(.btn-block)::after {
  content: "\2192";
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn:not(.btn-block):hover::after { transform: translateX(4px); }

.btn:active { transform: scale(0.96) !important; box-shadow: none !important; }

.btn:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

.hero .btn-outline:focus-visible,
.cta-banner .btn-outline:focus-visible {
  outline-color: #fff;
}

.btn-block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn:not(.btn-block):hover::after { transform: none; }
  .btn:active { transform: none !important; }
}

.hero-ctas, .cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.site-header.is-scrolled .nav { padding-top: 8px; padding-bottom: 8px; }

.site-header:not(.is-scrolled) .brand,
.site-header:not(.is-scrolled) .nav-links a,
.site-header:not(.is-scrolled) .theme-toggle {
  color: #fff;
}

.site-header:not(.is-scrolled) .brand-text span { color: rgba(255, 255, 255, 0.7); }
.site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
.site-header:not(.is-scrolled) .theme-toggle { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }
.site-header:not(.is-scrolled) .nav-links a:hover,
.site-header:not(.is-scrolled) .nav-links a.active { color: #cfe3a8; border-color: #cfe3a8; }

@media (max-width: 720px) {
  .site-header:not(.is-scrolled) .nav-links { background: var(--surface); }
  .site-header:not(.is-scrolled) .nav-links a { color: var(--text-body); }
  .site-header:not(.is-scrolled) .nav-links a:hover,
  .site-header:not(.is-scrolled) .nav-links a.active { color: var(--color-green-dark); border-color: var(--color-green); }
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-green), var(--color-green-light));
  transform: scaleX(0);
  transform-origin: left;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  padding: 12px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
}

.brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text span { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--text-heading);
  cursor: pointer;
  margin-left: 8px;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover { transform: translateY(-2px); background: var(--bg-alt); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-green-dark);
  border-color: var(--color-green);
}

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(160px + var(--header-h)) 0 140px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--color-navy-dark);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.1) translate3d(0, 0, 0);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 20, 15, 0.78) 0%, rgba(18, 24, 18, 0.62) 45%, rgba(12, 17, 13, 0.88) 100%);
}

@keyframes heroKenBurns {
  from { transform: scale(1.1) translate3d(0, 0, 0); }
  to   { transform: scale(1.22) translate3d(-1%, -1%, 0); }
}

.hero-inner { max-width: 780px; margin: 0 auto; }

.hero .eyebrow { color: #b9d68a; }

.hero h1 { margin-bottom: 0.4em; color: #fff; }

.hero .tagline {
  font-size: 1.15rem;
  color: #cfe3a8;
  font-weight: 700;
  margin-bottom: 0.6em;
}

.hero p.lede {
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 2em;
  color: rgba(255, 255, 255, 0.88);
}

.hero-ctas { justify-content: center; }

.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.hero .btn-outline:hover { background: #fff; color: var(--color-green-dark); }

.hero-inner > .reveal:nth-child(1) { transition-delay: 0s; }
.hero-inner > .reveal:nth-child(2) { transition-delay: .12s; }
.hero-inner > .reveal:nth-child(3) { transition-delay: .24s; }
.hero-inner > .reveal:nth-child(4) { transition-delay: .36s; }

@media (max-width: 720px) {
  .hero { padding: calc(128px + var(--header-h)) 0 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: scale(1.02); }
}

/* ---------- Cards / Grids ---------- */

.grid {
  display: grid;
  gap: 28px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--color-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card ul {
  margin-top: 12px;
}

.card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
}

.card h3 { margin-bottom: 10px; }

/* ---------- Values / Feature list ---------- */

.feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.feature-row:last-child { border-bottom: none; }

.feature-row .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.feature-row h4 { margin-bottom: 4px; }
.feature-row p { margin: 0; }

/* ---------- Split (image/text) layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-stagger > div:first-child > .reveal:nth-child(1) { transition-delay: 0s; }
.split-stagger > div:first-child > .reveal:nth-child(2) { transition-delay: .08s; }
.split-stagger > div:first-child > .reveal:nth-child(3) { transition-delay: .16s; }
.split-stagger > div:first-child > .reveal:nth-child(4) { transition-delay: .24s; }
.split-stagger > div:first-child > .reveal:nth-child(5) { transition-delay: .32s; }

/* Clip-path mask reveal for feature images (varied from the default fade/slide reveal).
   IMPORTANT: clip-path must live on the IMG, not the observed .reveal wrapper — Chrome's
   IntersectionObserver treats a 100%-clipped target as having zero intersection ratio,
   which would permanently deadlock the reveal (never observed as intersecting, so never
   unclipped). Clipping the child keeps the wrapper's own box fully "visible" for observation. */
.media-mask.reveal {
  opacity: 1;
  transform: none;
}

.media-mask.reveal img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.12);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-mask.reveal.is-visible img {
  clip-path: inset(0 0 0% 0);
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .media-mask.reveal img { clip-path: none; transform: none; }
}

.split-media {
  position: relative;
  background: var(--color-navy-dark);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.split-media img { height: 100%; width: 100%; object-fit: cover; }

/* Subtle hover zoom for plain feature images — the clip-path (.media-mask) and hotspot
   (.hotspot-media) variants already have their own dedicated image interactions. */
.split-media:not(.media-mask):not(.hotspot-media) img { transition: transform 0.6s ease; }
.split-media:not(.media-mask):not(.hotspot-media):hover img { transform: scale(1.06); }

.services-media:hover .service-image.is-active { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .split-media:not(.media-mask):not(.hotspot-media):hover img { transform: none; }
}

.photo-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(28, 39, 39, 0.6);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-top-left-radius: 6px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  background: var(--field-bg);
  color: var(--text-heading);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

/* ---------- Stats ---------- */

.stat-strip {
  background: var(--color-navy-dark);
  color: var(--color-white);
  padding: 48px 0;
}

.stat-strip .grid { text-align: center; }
.stat-strip h3 { color: var(--color-green-light); font-size: 2rem; margin-bottom: 4px; }
.stat-strip p { color: rgba(255,255,255,0.75); margin: 0; font-size: 0.9rem; }

/* ---------- Services (interactive tabs) ---------- */

.services-interactive {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.services-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.service-tab .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--color-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}

.service-tab:hover { background: var(--bg-alt); }

.service-tab.is-active {
  background: var(--surface);
  border-color: var(--border-color);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.service-tab.is-active .icon { background: var(--color-green); color: var(--color-white); }

.service-tab:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

.services-panel {
  display: grid;
  gap: 28px;
}

.services-media {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-navy-dark);
  box-shadow: var(--shadow-lg);
}

.service-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.6s ease, transform 1s ease;
  cursor: zoom-in;
}

.service-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.services-content {
  position: relative;
}

.service-detail { display: none; }
.service-detail.is-active { display: block; animation: serviceFadeIn 0.5s ease; }

@keyframes serviceFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-detail h3 { margin-bottom: 10px; }

.service-detail ul { margin-top: 14px; }

.service-detail ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-detail ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
}

@media (prefers-reduced-motion: reduce) {
  .service-image, .services-media:hover .service-image.is-active { transition: opacity 0.3s ease; transform: none; }
  .service-tab.is-active { transform: none; }
  .service-detail.is-active { animation: none; }
}

@media (max-width: 900px) {
  .services-interactive { grid-template-columns: 1fr; }
  .services-tabs { flex-direction: row; flex-wrap: wrap; }
  .service-tab { width: auto; flex: 1 1 auto; justify-content: center; }
  .service-tab.is-active { transform: none; }
  .service-tab-title { display: none; }
  .service-tab { padding: 12px; }
}

@media (max-width: 560px) {
  .service-tab-title {
    display: inline;
    font-size: 0.78rem;
  }
  .services-tabs { gap: 8px; }
  .service-tab { flex: 1 1 42%; }
}

/* ---------- Crop Production stepper ---------- */

.crop-stepper { margin-top: 8px; }

.stepper-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 44px;
}

.stepper-track::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.stepper-progress {
  position: absolute;
  top: 19px;
  left: 4%;
  height: 2px;
  width: 92%;
  background: var(--color-green);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.stepper-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex: 1;
  padding: 4px;
  font-family: inherit;
}

.stepper-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.stepper-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: color var(--transition);
}

.stepper-step.is-complete .stepper-dot {
  background: var(--color-green-light);
  border-color: var(--color-green-light);
  color: var(--color-white);
}

.stepper-step.is-active .stepper-dot {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
  transform: scale(1.18);
}

.stepper-step.is-active .stepper-label { color: var(--text-heading); }

.stepper-step:focus-visible .stepper-dot { outline: 2px solid var(--color-green); outline-offset: 3px; }

.crop-stage { display: none; }
.crop-stage.is-active { display: block; animation: serviceFadeIn 0.5s ease; }

.crop-stage-media { min-height: 380px; }

.crop-stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.6s ease, transform 1s ease;
}

.crop-stage-image.is-active { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .stepper-step.is-active .stepper-dot { transform: none; }
  .crop-stage.is-active { animation: none; }
  .crop-stage-image { transition: opacity 0.3s ease; transform: none; }
}

@media (max-width: 720px) {
  .stepper-label { display: none; }
  .stepper-track::before { left: 6%; right: 6%; }
  .stepper-progress { left: 6%; width: 88%; }
}

/* ---------- Livestock hotspots ---------- */

.hotspot-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.6s ease, transform 1s ease;
  z-index: 0;
}

.hotspot-image.is-active { opacity: 1; transform: scale(1); z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hotspot-image { transition: opacity 0.3s ease; transform: none; }
}

.hotspot {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 5;
}

.hotspot-dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid var(--color-green);
  box-sizing: border-box;
  animation: hotspotPulse 2.2s ease-in-out infinite;
  transition: background var(--transition), border-color var(--transition);
}

.hotspot.is-active .hotspot-dot { background: var(--color-green); border-color: #fff; }

@keyframes hotspotPulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 142, 63, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(107, 142, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 142, 63, 0); }
}

.hotspot:focus-visible { outline: 2px solid var(--color-white); outline-offset: 3px; border-radius: 50%; }

.hotspot-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  z-index: 6;
}

.hotspot-panel h4 { margin-bottom: 4px; color: var(--text-heading); }
.hotspot-panel p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

.hotspot-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 8px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .hotspot-dot { animation: none; }
}

/* ---------- Partnerships ---------- */

.value-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.value-chain-node {
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-heading);
  box-shadow: var(--shadow);
}

.value-chain-node:first-child {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

.value-chain-arrow {
  color: var(--color-green);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Editorial "connected ecosystem" diagram — visually distinct from the linear value-chain
   (outlined nodes + soft-rounded rectangles + bidirectional arrows) to keep image/diagram
   treatments varied across sections, per design brief. */
.eco-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.eco-chain-node {
  padding: 12px 20px;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid var(--color-green);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--text-heading);
}

.eco-chain-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.partner-node {
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  display: block;
  width: 100%;
  transition: opacity var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* Scoped with the #partnerNodes id so this reliably wins over the .reveal.is-visible
   opacity:1 rule once an element has both classes (equal 2-class specificity would
   otherwise make source order decide, which is fragile). */
#partnerNodes .partner-node:not(.is-active) { opacity: 0.72; }
#partnerNodes .partner-node:hover { opacity: 1; }

.partner-node.is-active {
  opacity: 1;
  border-color: var(--color-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.partner-node h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.partner-node h3::after {
  content: "+";
  flex-shrink: 0;
  color: var(--color-green);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}

.partner-node.is-active h3::after { content: "\2212"; }

.partner-node-desc { display: none; margin: 10px 0 0; }
.partner-node.is-active .partner-node-desc { display: block; animation: serviceFadeIn 0.4s ease; }

.partner-node:focus-visible { outline: 2px solid var(--color-green); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .partner-node.is-active { transform: none; }
  .partner-node.is-active .partner-node-desc { animation: none; }
}

.partner-grid { grid-template-columns: repeat(4, 1fr); }

.partner-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-heading);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.partner-card:hover {
  background: var(--bg-alt);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--color-green-dark), var(--color-green));
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}

.cta-banner h2, .cta-banner p { color: var(--color-white); }
.cta-banner .btn-outline { border-color: var(--color-white); color: var(--color-white); }
.cta-banner .btn-outline:hover { background: var(--color-white); color: var(--color-green-dark); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info .card { margin-bottom: 20px; }

.contact-info h4 { color: var(--color-green-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: background var(--transition), border-color var(--transition);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-heading);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--field-bg);
  transition: border-color var(--transition), background var(--transition);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-green);
  background: var(--surface);
}

.field textarea { resize: vertical; min-height: 130px; }

.field .error-msg {
  display: none;
  color: #b3432b;
  font-size: 0.8rem;
  margin-top: 4px;
}

.field.has-error input,
.field.has-error textarea { border-color: #b3432b; }

.field.has-error .error-msg { display: block; }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.is-visible { display: block; }
.form-status.success { background: color-mix(in srgb, var(--color-green-light) 22%, var(--surface)); color: var(--color-green-dark); border: 1px solid var(--color-green-light); }
.form-status.error { background: color-mix(in srgb, #e3a794 30%, var(--surface)); color: #d15d3f; border: 1px solid #e3a794; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .brand-text strong { color: var(--color-white); }
.footer-brand .brand-text span { color: rgba(255,255,255,0.55); }

.site-footer p { color: rgba(255, 255, 255, 0.6); }

.site-footer h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-grid ul li { margin-bottom: 10px; }

.footer-grid ul li a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-grid ul li a:hover { color: var(--color-green-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover { color: var(--color-green-light); }
.footer-legal { display: flex; gap: 16px; }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media { min-height: 240px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Node/arrow chains wrap unpredictably at narrow widths (an arrow can land at the
     start of a new row pointing at nothing), so stack them vertically instead. */
  .value-chain, .eco-chain {
    flex-direction: column;
  }

  .value-chain-arrow, .eco-chain-arrow {
    transform: rotate(90deg);
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    background: var(--surface);
    padding: 24px;
    gap: 8px;
    align-items: stretch;
    text-align: center;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
    border-top: 1px solid var(--border-color);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { padding: 12px; border-bottom: 1px solid var(--border-color); }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: flex; }

  .grid-3, .grid-2, .partner-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-banner { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { background: var(--color-green-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 13, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  max-width: min(900px, 92vw);
  max-height: 88vh;
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  margin-top: 14px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-close svg { width: 18px; height: 18px; }

[data-lightbox] { cursor: zoom-in; }

/* ---------- Map ---------- */

.map-frame {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  margin-top: 20px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
}

:root[data-theme="dark"] .map-frame iframe {
  filter: grayscale(0.3) invert(0.92) contrast(0.9) brightness(1.05) hue-rotate(180deg);
}
